:root {
    --bg: #faf8fd;
    --surface: #fff;
    --ink: #241638;
    --muted: #5e5472;
    --brand: #5b4590;
    --deep: #2a1646;
    --tint: #ece6f6;
    --line: #d9d0e8;
    --cable: #e8833a;
    --blue: #3d6fd1;
    --on-deep: #f3effa;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px)
}

@media (prefers-color-scheme:dark) {
    :root:not([data-theme="light"]) {
        --bg: #17102a;
        --surface: #21183b;
        --ink: #f1ecfa;
        --muted: #b4a9cc;
        --brand: #a591d8;
        --deep: #0f0a1e;
        --tint: #2b2048;
        --line: #3a2d5c
    }
}

:root[data-theme="dark"] {
    --bg: #17102a;
    --surface: #21183b;
    --ink: #f1ecfa;
    --muted: #b4a9cc;
    --brand: #a591d8;
    --deep: #0f0a1e;
    --tint: #2b2048;
    --line: #3a2d5c
}

html {
    scroll-padding-top: env(safe-area-inset-top, 0px);
    scroll-behavior: smooth
}

*,
*::before,
*::after {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 17px/1.6 Figtree, system-ui, sans-serif
}

h1,
h2,
h3 {
    font-family: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
    line-height: 1.1;
    margin: 0
}

a {
    color: inherit
}

:focus-visible {
    outline: 3px solid var(--cable);
    outline-offset: 3px
}

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 22px
}

header {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 5;
    background: var(--bg);
    border-bottom: 1px solid var(--line)
}

body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top, 0px);
    background: var(--bg);
    z-index: 10
}

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 800 19px "Bricolage Grotesque", sans-serif;
    text-decoration: none;
    letter-spacing: .02em
}

.logo svg {
    width: 30px;
    height: 30px;
    color: var(--brand)
}

nav {
    display: flex;
    gap: 22px;
    font-weight: 500;
    font-size: 15px
}

nav a {
    text-decoration: none;
    color: var(--muted)
}

nav a:hover {
    color: var(--ink)
}

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 8px;
    background: var(--cable);
    color: #1d1005;
    font-weight: 600;
    text-decoration: none
}

.btn:hover {
    filter: brightness(1.07)
}

.btn.alt {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--brand);
    margin-left: 8px
}

.hero {
    background: var(--deep);
    color: var(--on-deep);
    padding: 72px 0 80px;
    overflow: hidden
}

.hero .wrap {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center
}

.hero h1 {
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 800
}

.hero p {
    max-width: 46ch;
    color: #cfc4e6;
    margin: 22px 0 30px;
    font-size: 19px
}

.hero .btn.alt {
    color: var(--on-deep);
    border-color: #8d7bc2
}

.rack {
    background: #1a1030;
    border: 1px solid #4a3a74;
    border-radius: 12px;
    padding: 18px;
    display: grid;
    gap: 12px
}

.unit {
    background: #2b2048;
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.ports {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    flex: 1
}

.port {
    aspect-ratio: 1.25;
    background: #0d0818;
    border: 2px solid #5d4c8a;
    border-radius: 3px;
    position: relative
}

.port::after {
    content: "";
    position: absolute;
    top: -6px;
    right: -2px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3b7a4a
}

.port.on::after {
    background: #58e07f;
    animation: blink 3s ease-out 1 both
}

@keyframes blink {
    0% {
        opacity: 0
    }

    30% {
        opacity: 1
    }
}

.tag {
    font: 600 12px Figtree;
    color: #a99bd0;
    min-width: 64px
}

.bundle {
    display: flex;
    gap: 5px;
    height: 36px
}

.bundle i {
    flex: 1;
    border-radius: 4px;
    background: var(--cable)
}

.bundle i:nth-child(3n) {
    background: var(--blue)
}

section {
    padding: 80px 0
}

h2 {
    font-size: clamp(30px, 4.2vw, 44px);
    font-weight: 700;
    max-width: 20ch
}

.lead {
    color: var(--muted);
    max-width: 60ch;
    margin: 14px 0 40px
}

.stack {
    display: block
}

.stack>* {
    position: sticky;
    top: calc(84px + env(safe-area-inset-top, 0px) + var(--i, 0)*14px);
    margin-bottom: 28px
}

.svc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2fr;
    gap: 28px;
    align-items: center;
    min-height: 170px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 -8px 24px rgba(36, 22, 56, .08)
}

.svc h3 {
    font-size: 24px
}

.svc p {
    margin: 0;
    color: var(--muted);
    font-size: 16px
}

.gear {
    background: var(--tint)
}

.gear-list {
    display: grid;
    gap: 16px
}

.item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 28px;
    padding: 26px 0;
    border-top: 1.5px solid var(--brand)
}

.item h3 {
    font-size: 28px
}

.item .for {
    color: var(--muted);
    font-size: 15px;
    margin-top: 4px
}

.item p {
    margin: 0 0 10px
}

.item ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted)
}

.note {
    margin-top: 20px;
    color: var(--muted);
    font-size: 15px
}

.proj {
    display: block
}

.p {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2fr;
    gap: 28px;
    align-items: center;
    min-height: 170px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 -8px 24px rgba(36, 22, 56, .08)
}

.p h3 {
    font-size: 21px
}

.p p {
    margin: 0;
    color: var(--muted)
}

.p b {
    color: var(--ink)
}

.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px
}

.person {
    padding: 22px;
    border-left: 4px solid var(--brand);
    background: var(--surface)
}

.person b {
    display: block;
    font: 700 19px "Bricolage Grotesque", sans-serif
}

.person span {
    color: var(--muted);
    font-size: 15px
}

.why {
    background: var(--deep);
    color: var(--on-deep)
}

.why h2 {
    max-width: none
}

.why ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px
}

.why li {
    border-top: 2px solid var(--cable);
    padding-top: 14px;
    font-size: 18px
}

.why li span {
    display: block;
    color: #cfc4e6;
    font-size: 15px;
    margin-top: 6px
}

.contact {
    background: var(--tint)
}

.cbox {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start
}

.clist {
    display: grid;
    gap: 14px;
    font-size: 19px
}

.clist a {
    text-decoration: none;
    font-weight: 600
}

.clist small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    font-size: 14px
}

footer {
    padding: 28px 0;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid var(--line)
}

footer .wrap {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px
}

@media (max-width:820px) {

    .hero .wrap,
    .cbox {
        grid-template-columns: 1fr
    }

    .item,
    .p,
    .svc {
        grid-template-columns: 1fr;
        gap: 10px
    }

    nav {
        display: none
    }

    .btn.alt {
        margin: 10px 0 0
    }

    section {
        padding: 60px 0
    }
}

@media (prefers-reduced-motion:reduce) {
    .port.on::after {
        animation: none
    }

    html {
        scroll-behavior: auto
    }
}