/* ---------- utility / mono ---------- */
.mono {
    font-family: "JetBrains Mono", ui-monospace, monospace
}

.eyebrow .lead-white {
    color: var(--ink)
}

/* ---------- nav ---------- */

/* ---------- hero ---------- */
.hero {
    padding: 118px 0 60px;
    position: relative
}

.hero h1 {
    font-family: "Switzer", sans-serif;
    font-weight: 800;
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 16ch;
    margin: 22px 0 26px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent)
}

.hero .sub {
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--ink-dim);
    max-width: 60ch;
    line-height: 1.55
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px
}

.btn {
    font-family: "JetBrains Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    padding: 13px 22px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform .15s, background .18s, border-color .18s;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.btn-primary {
    background: var(--accent);
    color: #F5F7FA;
    font-weight: 600;
    border: 1px solid var(--accent)
}

.btn-primary:hover {
    transform: translateY(-2px)
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong)
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent)
}

/* ---------- hero layout with portrait ---------- */
.hero-inner {
    display: grid;
    grid-template-columns:1.25fr 0.82fr;
    gap: 52px;
    align-items: center
}

.hero-copy {
    min-width: 0
}

.hero-copy h1 {
    max-width: none
}

.hero-photo {
    position: relative
}

.hero-photo img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: center 22%;
    border-radius: 22px;
    border: 1px solid var(--line-strong);
    display: block;
    position: relative;
    z-index: 2
}

.hero-photo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, 400px);
    height: 100%;
    transform: translate(18px, 18px);
    border-radius: 22px;
    background: linear-gradient(135deg, var(--accent-dim), rgba(124, 147, 255, 0.05));
    z-index: 1
}

/* ---------- level meter signature ---------- */
.hero-lead {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: fit-content;
    max-width: 100%
}

.meter {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 44px;
    margin-top: 12px;
    margin-bottom: 5px;
    opacity: 0.9
}

.meter span {
    /* --h is overwritten per-bar at runtime by the script in index.njk */
    --h: 60%;
    flex: 1 1 0;
    min-width: 0;
    background: linear-gradient(to top, var(--accent), rgba(31, 208, 163, 0.25));
    border-radius: 2px;
    height: 20%;
    animation: lvl 1.6s ease-in-out infinite;
}

@keyframes lvl {
    0%, 100% {
        height: 14%
    }
    50% {
        height: var(--h, 60%)
    }
}

.meter-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.12em;
    margin-top: 14px
}

/* ---------- section frame ---------- */
section {
    padding: 76px 0;
    border-top: 1px solid var(--line)
}

.sec-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 44px;
    flex-wrap: wrap
}

.sec-head h2 {
    font-family: "Switzer", sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 3.5vw, 38px);
    letter-spacing: -0.02em
}

.sec-index {
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    color: var(--muted)
}

/* ---------- stats ---------- */
.stats {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden
}

.stat {
    background: var(--bg-2);
    padding: 26px 24px
}

.stat .num {
    font-family: "Switzer", sans-serif;
    font-weight: 800;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.02em
}

.stat .num b {
    color: var(--accent);
    font-weight: 600
}

.stat .lbl {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: var(--muted);
    margin-top: 7px;
    letter-spacing: 0.04em
}
/* ---------- color highlight ---------- */

.acc {
    color: var(--primary);
}

/* ---------- services ---------- */
.svc-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px
}

.svc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 26px 24px;
    transition: border-color .2s, transform .2s
}

.svc:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 14px 42px var(--glow)
}

.svc .tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.08em
}

.svc h3 {
    font-family: "Switzer", sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin: 12px 0 9px;
    letter-spacing: -0.01em
}

.svc p {
    font-size: 15px;
    color: var(--ink-dim);
    line-height: 1.55
}

/* ---------- work ---------- */
.work-grid {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 16px
}

.case {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, transform .2s
}

.case:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px var(--accent-dim), 0 14px 42px var(--glow)
}

.case .thumb {
    height: 150px;
    background: linear-gradient(135deg, var(--surface-2), #0f1116);
    display: flex;
    align-items: flex-end;
    padding: 18px;
    border-bottom: 1px solid var(--line)
}

.case .thumb .metric {
    font-family: "Switzer", sans-serif;
    font-weight: 600;
    font-size: 34px;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1
}

.case .body {
    padding: 22px 22px 24px
}

.case .kind {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase
}

.case h3 {
    font-family: "Switzer", sans-serif;
    font-weight: 600;
    font-size: 19px;
    margin: 9px 0 8px;
    letter-spacing: -0.01em
}

.case p {
    font-size: 14.5px;
    color: var(--ink-dim);
    line-height: 1.55
}

.case .link {
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    color: var(--accent);
    margin-top: 16px;
    display: inline-block
}

/* ---------- about ---------- */
.about-grid {
    display: grid;
    grid-template-columns:1.4fr 1fr;
    gap: 48px;
    align-items: start
}

.about p {
    color: var(--ink-dim);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 18px;
    max-width: 56ch
}

.about p b {
    color: var(--ink);
    font-weight: 600
}

.about-side {
    border-left: 1px solid var(--line);
    padding-left: 28px
}

.about-side .row {
    padding: 14px 0;
    border-bottom: 1px solid var(--line)
}

.about-side .row:last-child {
    border-bottom: none
}

.about-side .row:first-child {
    padding-top: 0
}

.about-side .k {
    font-family: "JetBrains Mono", monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    text-transform: uppercase
}

.about-side .v {
    font-size: 15px;
    color: var(--ink);
    margin-top: 4px
}

/* ---------- contact ---------- */
.contact {
    text-align: center;
    border-top: 1px solid var(--line)
}

.contact h2 {
    font-family: "Switzer", sans-serif;
    font-weight: 800;
    font-size: clamp(30px, 5vw, 54px);
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    line-height: 1.02
}

.contact p {
    color: var(--ink-dim);
    max-width: 48ch;
    margin: 0 auto 30px;
    font-size: 18px
}

.contact .btn {
    margin: 0 6px 10px
}

/* ---------- footer ---------- */

/* ---------- reveal ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease
}

.js .reveal.in {
    opacity: 1;
    transform: none
}

/* ---------- focus ---------- */

/* ---------- responsive ---------- */
@media (max-width: 860px) {
    .nav-links {
        display: none
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line);
        padding: 8px 0
    }

    .nav-links.open a {
        padding: 13px 28px;
        width: 100%
    }

    .nav-links.open .nav-cta {
        margin: 8px 28px;
        text-align: center
    }

    .nav-toggle {
        display: inline-flex
    }

    .hero-inner {
        grid-template-columns:1fr;
        gap: 36px
    }

    .hero-photo {
        order: -1
    }

    .hero-photo img, .hero-photo::before, .orbit-frame {
        max-width: 300px;
        width: 300px;
        height: 300px;
        aspect-ratio: auto
    }

    .svc-grid, .work-grid {
        grid-template-columns:1fr 1fr
    }

    .stats {
        grid-template-columns:1fr 1fr
    }

    .about-grid {
        grid-template-columns:1fr;
        gap: 32px
    }

    .about-side {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--line);
        padding-top: 8px
    }
}

@media (max-width: 560px) {
    .nav-links {
        display: none
    }

    .nav-links.open {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--line);
        padding: 8px 0;
    }

    .nav-links.open a {
        padding: 13px 28px;
        width: 100%
    }

    .nav-links.open .nav-cta {
        margin: 8px 28px;
        text-align: center
    }

    .nav-toggle {
        display: inline-flex
    }

    .svc-grid, .work-grid, .stats {
        grid-template-columns:1fr
    }

    body {
        font-size: 16px
    }

    section {
        padding: 56px 0
    }

    .hero {
        padding: 76px 0 40px
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    .meter span {
        animation: none;
        height: 26%
    }

    .js .reveal, .js .reveal.in {
        transition: none;
        opacity: 1;
        transform: none
    }

    .btn:hover, .svc:hover, .case:hover {
        transform: none
    }
}

/* --- neon brand overrides --- */
.btn-primary {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #F5F7FA;
    box-shadow: 0 4px 22px var(--glow)
}

.btn-primary:hover {
    box-shadow: 0 8px 34px var(--glow)
}

/* --- neon pass 2: ambient hero glow --- */
.page-head, .article-head, .review-head {
    background: radial-gradient(720px 380px at 12% -12%, rgba(31, 208, 163, 0.07), transparent 60%)
}

/* --- neon pass 2 index --- */
.svc .tag {
    color: var(--accent)
}

.svc {
    transition: background .2s ease
}

.svc:hover {
    background: rgba(31, 208, 163, 0.06)
}

/* --- hero glow variety --- */
.hero {
    background: radial-gradient(700px 460px at 4% 52%, rgba(31, 208, 163, 0.12), transparent 60%), radial-gradient(560px 480px at 97% 92%, rgba(31, 208, 163, 0.08), transparent 62%)
}

/* home newsletter section */
.newsletter {
    border-top: 1px solid var(--line);
    padding: 72px 0
}

.newsletter h2 {
    font-family: "Switzer", sans-serif;
    font-weight: 800;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -0.02em;
    margin: 10px 0 12px
}

.newsletter .sub {
    color: var(--ink-dim);
    font-size: 17px;
    max-width: 520px;
    margin-bottom: 26px
}

/* orbiting glow point + comet trail around the hero photo */
.orbit-frame{position:relative;display:block;width:100%;max-width:400px;aspect-ratio:1/1;z-index:2}
.orbit-dot,.orbit-trail{position:absolute;border-radius:50%;offset-path:inset(0 round 22px);offset-distance:0%;offset-rotate:0deg;animation:orbit 10s linear infinite;pointer-events:none;z-index:3}
.orbit-dot{width:4px;height:4px;background:#eafff8;box-shadow:0 0 6px 2px var(--accent),0 0 14px 5px var(--glow),0 0 26px 9px rgba(31,208,163,0.28)}
.orbit-trail{width:calc(5px - var(--d) * 0.5px);height:calc(5px - var(--d) * 0.5px);background:var(--accent);opacity:calc(0.5 - var(--d) * 0.08);box-shadow:0 0 5px 2px var(--glow);animation-delay:calc(var(--d) * 0.07s)}
@keyframes orbit{to{offset-distance:100%}}
@media (prefers-reduced-motion:reduce){.orbit-dot,.orbit-trail{animation:none}.orbit-trail{display:none}}

/* desktop only: no orbit dot or trail once the hero stacks */
@media (max-width:860px){.orbit-dot,.orbit-trail{display:none}}


/* button: match sitewide deep-teal primary */
.btn-primary{background:var(--primary);border:1px solid var(--primary);color:#F5F7FA;box-shadow:0 4px 22px var(--glow)}
.btn-primary:hover{box-shadow:0 8px 34px var(--glow)}
