/* ==========================================================================
   Data In The Fields — Redesign 1 "Control Room"
   Dark, technical, data-led. Hand-written design system; no framework.
   ========================================================================== */

@import url("fonts.css");

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
    /* Surfaces */
    --bg:            #0b0f14;
    --bg-raised:     #10161f;
    --bg-sunken:     #080b0f;
    --panel:         rgba(255, 255, 255, 0.022);
    --line:          rgba(255, 255, 255, 0.09);
    --line-strong:   rgba(255, 255, 255, 0.17);

    /* Brand */
    --signal:        #47a0ff;
    --signal-dim:    #2e4c89;
    --signal-glow:   rgba(71, 160, 255, 0.28);

    /* Ink */
    --ink:           #e8eef6;
    --ink-soft:      #b6c4d6;
    --ink-muted:     #7d8fa5;

    /* Type */
    --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
    /* Matches the wordmark in the official logo (Montserrat ExtraBold) */
    --font-brand:   'Montserrat', 'Segoe UI', system-ui, sans-serif;

    /* Rhythm */
    --gutter:        clamp(1.25rem, 4vw, 2.5rem);
    --measure:       1240px;
    --section-y:     clamp(4.5rem, 9vw, 8rem);
    --nav-h:         84px;

    --ease:          cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
    line-height: 1.7;
    letter-spacing: -0.005em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* The page sits on a faint engineering grid. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.017) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.017) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 40%, transparent 100%);
    pointer-events: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--signal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: #8bc2ff; }

img { max-width: 100%; height: auto; display: block; }

ul { margin: 0 0 1.1rem; padding-left: 1.25rem; }
li { margin-bottom: 0.5rem; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--signal); color: #04070b; }

:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--signal);
    color: #04070b;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
    width: 100%;
    max-width: var(--measure);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section-y);
    border-top: 1px solid var(--line);
}

.section--flush { border-top: 0; }

/* Section eyebrow: mono index label, e.g. "01 / SERVICES" */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 1.5rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-head h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
    margin-bottom: 1rem;
}

.section-head .lede {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: var(--ink-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.9rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
                color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn i { font-size: 0.85em; transition: transform 0.25s var(--ease); }
.btn:hover i { transform: translateX(3px); }

.btn--primary {
    background: var(--signal);
    color: #04070b;
    border-color: var(--signal);
    box-shadow: 0 0 0 0 var(--signal-glow);
}

.btn--primary:hover {
    color: #04070b;
    background: #6bb2ff;
    border-color: #6bb2ff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -12px var(--signal-glow), 0 0 24px -6px var(--signal-glow);
}

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

.btn--ghost:hover {
    color: var(--ink);
    border-color: var(--signal);
    background: rgba(71, 160, 255, 0.07);
    transform: translateY(-2px);
}

.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(11, 15, 20, 0.72);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-stuck {
    background: rgba(8, 11, 15, 0.92);
    border-bottom-color: var(--line);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    max-width: var(--measure);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.nav__brand { display: flex; align-items: center; }
.nav__brand img { height: 52px; width: auto; }

.nav__menu { display: flex; align-items: center; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__link {
    position: relative;
    display: block;
    padding: 0.55rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted);
    transition: color 0.2s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.3rem;
    height: 1px;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: var(--ink); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta {
    margin-left: 0.75rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid var(--signal);
    color: var(--signal);
    border-radius: 2px;
    transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

.nav__cta:hover { background: var(--signal); color: #04070b; }

.nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    color: var(--ink);
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.nav__toggle:hover { border-color: var(--signal); color: var(--signal); }

@media (max-width: 900px) {
    .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }

    .nav__menu {
        position: fixed;
        inset: var(--nav-h) 0 auto 0;
        /* Opaque: the panel must stay legible over the hero headline even
           where backdrop-filter is unsupported. */
        background: var(--bg-sunken);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--line);
        padding: 1rem var(--gutter) 2rem;
        display: none;
    }

    .nav__menu.is-open { display: block; }

    .nav__links { flex-direction: column; align-items: stretch; gap: 0; }

    .nav__link {
        padding: 1rem 0;
        font-size: 0.85rem;
        border-bottom: 1px solid var(--line);
    }

    .nav__link::after { display: none; }

    .nav__cta {
        /* Block-level, otherwise the inline box's vertical padding bleeds
           upward over the divider beneath the last link. */
        display: block;
        margin: 1.75rem 0 0;
        text-align: center;
        padding: 1rem;
    }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(3.5rem, 8vw, 7rem));
    padding-bottom: clamp(4rem, 8vw, 7.5rem);
    overflow: hidden;
    isolation: isolate;
}

/* Signal glow behind the headline */
.hero::before {
    content: "";
    position: absolute;
    top: -30%;
    left: 50%;
    width: min(1100px, 130vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(46, 76, 137, 0.42) 0%, rgba(46, 76, 137, 0.12) 40%, transparent 68%);
    z-index: -1;
    pointer-events: none;
}

/* Abstract telemetry lines — decorative only, no data implied */
.hero__plot {
    position: absolute;
    inset: auto 0 0 0;
    height: min(58%, 460px);
    width: 100%;
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
    mask-image: linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
}

.hero__plot path {
    fill: none;
    stroke: var(--signal);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    opacity: 0.5;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: trace 3.4s var(--ease) forwards;
}

.hero__plot path:nth-child(2) { opacity: 0.3; animation-delay: 0.25s; }
.hero__plot path:nth-child(3) { opacity: 0.18; animation-delay: 0.5s; }

@keyframes trace { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
    .hero__watermark { display: none; }
    .hero__plot { opacity: 0.32; height: min(46%, 320px); }
}

.hero__watermark {
    position: absolute;
    top: 46%;
    right: 1.5rem;
    width: min(400px, 34vw);
    transform: translateY(-50%);
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
    filter: grayscale(1) brightness(2.2);
}

.hero__inner { max-width: 54rem; }

.hero h1 {
    font-family: var(--font-brand);
    font-weight: 800;
    font-size: clamp(2.15rem, 1.1rem + 4.4vw, 4.35rem);
    letter-spacing: 0.045em;
    text-transform: uppercase;
    line-height: 1.04;
    margin-bottom: 1.35rem;
}

.hero__sub {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 0.95rem + 0.8vw, 1.6rem);
    font-weight: 500;
    color: var(--signal);
    letter-spacing: -0.015em;
    margin-bottom: 1.75rem;
}

.hero__lede {
    font-size: clamp(1.05rem, 1rem + 0.45vw, 1.3rem);
    color: var(--ink-soft);
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

/* Capability strip beneath the hero — labels only, drawn from our services */
.hero__strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.5rem;
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.hero__strip span { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; }
.hero__strip span::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--signal);
    box-shadow: 0 0 8px var(--signal);
}

/* --------------------------------------------------------------------------
   7. Services — schematic grid
   -------------------------------------------------------------------------- */

.schematic {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    background: var(--panel);
}

.cell {
    position: relative;
    padding: clamp(1.75rem, 3vw, 2.6rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.35s var(--ease);
}

.schematic .cell:nth-child(3n) { border-right: 0; }
.schematic .cell:nth-last-child(-n+3) { border-bottom: 0; }

.cell::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: var(--signal);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s var(--ease);
}

.cell:hover { background: rgba(71, 160, 255, 0.045); }
.cell:hover::before { transform: scaleY(1); }

.cell__icon {
    font-size: 1.5rem;
    color: var(--signal);
    margin-bottom: 1.25rem;
    display: block;
    transition: transform 0.35s var(--ease);
}

.cell:hover .cell__icon { transform: translateY(-3px); }

.cell h3 {
    font-size: 1.1875rem;
    letter-spacing: -0.015em;
    margin-bottom: 0.75rem;
}

.cell p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

@media (max-width: 900px) {
    .schematic { grid-template-columns: repeat(2, 1fr); }
    .schematic .cell:nth-child(3n) { border-right: 1px solid var(--line); }
    .schematic .cell:nth-child(2n) { border-right: 0; }
    .schematic .cell:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
    .schematic .cell:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 620px) {
    .schematic { grid-template-columns: 1fr; }
    .schematic .cell { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
    .schematic .cell:last-child { border-bottom: 0 !important; }
}

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Framed logo panel with corner ticks */
.frame {
    position: relative;
    padding: clamp(2rem, 5vw, 3.5rem);
    background:
        radial-gradient(ellipse at 50% 50%, rgba(71, 160, 255, 0.09), transparent 70%),
        var(--bg-raised);
    border: 1px solid var(--line);
}

.frame::before,
.frame::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--signal);
}

.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.frame img { margin-inline: auto; }

.prose h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem); }

.prose .lede {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.4;
    padding-left: 1.25rem;
    border-left: 2px solid var(--signal);
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   9. Features — ruled list
   -------------------------------------------------------------------------- */

.ruled {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.25rem);
}

@media (max-width: 900px) { .ruled { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .ruled { grid-template-columns: 1fr; } }

.ruled__item { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }

.ruled__item h3 {
    font-size: 1.0625rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ruled__item h3 i { color: var(--signal); font-size: 0.95rem; }

.ruled__item p { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }

/* --------------------------------------------------------------------------
   10. Call to action
   -------------------------------------------------------------------------- */

.cta {
    position: relative;
    text-align: center;
    padding-block: clamp(4rem, 8vw, 7rem);
    border-top: 1px solid var(--line);
    background:
        radial-gradient(ellipse 70% 100% at 50% 100%, rgba(46, 76, 137, 0.4), transparent 70%),
        var(--bg-sunken);
    overflow: hidden;
}

.cta h2 {
    font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
    max-width: 22ch;
    margin-inline: auto;
}

.cta .lede {
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
    max-width: 46rem;
    margin: 0 auto 2.25rem;
}

.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   11. Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head {
    position: relative;
    padding-top: calc(var(--nav-h) + clamp(3rem, 6vw, 5.5rem));
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
}

.page-head::before {
    content: "";
    position: absolute;
    top: -60%;
    left: 50%;
    width: min(900px, 120vw);
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(46, 76, 137, 0.4) 0%, transparent 66%);
    z-index: -1;
}

.page-head h1 {
    font-size: clamp(2.2rem, 1.5rem + 3.4vw, 3.9rem);
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
}

.page-head .lede {
    font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
    color: var(--ink-muted);
    max-width: 44rem;
    margin: 0;
}

/* --------------------------------------------------------------------------
   12. Forms & contact
   -------------------------------------------------------------------------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.panel {
    background: var(--bg-raised);
    border: 1px solid var(--line);
    padding: clamp(1.75rem, 3.5vw, 2.75rem);
}

.panel h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 0.75rem; }

.field { margin-bottom: 1.4rem; }

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.6rem;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--bg-sunken);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder { color: #52627a; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--signal);
    background: #0a0e13;
    box-shadow: 0 0 0 3px rgba(71, 160, 255, 0.16);
}

.field textarea { resize: vertical; min-height: 150px; }

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}

@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

/* Honeypot — off-screen for humans, present for bots */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    z-index: -1;
}

.form-note {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 1.25rem;
    line-height: 1.6;
}

/* Contact info list */
.info-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding-block: 1.25rem;
    border-top: 1px solid var(--line);
}

.info-item:first-of-type { border-top: 0; padding-top: 0; }
.info-item:last-child { padding-bottom: 0; }

.info-item__icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    color: var(--signal);
    font-size: 0.95rem;
}

.info-item h5 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 0.35rem;
}

.info-item p { color: var(--ink); margin: 0; }

/* --------------------------------------------------------------------------
   13. Confirmation (thank you)
   -------------------------------------------------------------------------- */

.confirm {
    min-height: calc(100vh - var(--nav-h));
    display: grid;
    place-items: center;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 4rem;
    text-align: center;
}

.confirm__panel {
    max-width: 42rem;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--bg-raised);
    border: 1px solid var(--line);
    position: relative;
}

.confirm__mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.75rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--signal);
    border-radius: 50%;
    color: var(--signal);
    font-size: 1.6rem;
    box-shadow: 0 0 0 8px rgba(71, 160, 255, 0.07), 0 0 40px -8px var(--signal-glow);
}

.confirm h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.confirm .lede { color: var(--ink); font-size: 1.15rem; }
.confirm p { color: var(--ink-muted); }

.confirm .btn-row { justify-content: center; margin-top: 2.25rem; }

/* --------------------------------------------------------------------------
   14. Legal / long-form documents
   -------------------------------------------------------------------------- */

.doc { padding-block: clamp(3rem, 6vw, 5rem); }

.doc__inner { max-width: 52rem; }

.doc__meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding-bottom: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--line);
}

.doc h2 {
    font-size: 1.3rem;
    margin-top: 2.75rem;
    margin-bottom: 0.9rem;
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
}

.doc h2:first-of-type { margin-top: 0; }

.doc h2 .n {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--signal);
    font-weight: 500;
}

.doc li { color: var(--ink-soft); }
.doc strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.footer {
    background: var(--bg-sunken);
    border-top: 1px solid var(--line);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    padding-bottom: 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 3rem;
}

@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__brand img { height: 48px; width: auto; margin-bottom: 1.25rem; }
.footer__brand p { color: var(--ink-muted); font-size: 0.95rem; max-width: 30rem; }

.footer h5 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 0.65rem; }

.footer li a {
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

.footer li a:hover { color: var(--signal); }

.social {
    display: flex;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink-muted);
    font-size: 0.95rem;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.social a:hover { color: var(--signal); border-color: var(--signal); transform: translateY(-2px); }

.footer__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--ink-muted);
}

.footer__base a { color: var(--ink-muted); }
.footer__base a:hover { color: var(--signal); }
.footer__base .sep { opacity: 0.4; margin-inline: 0.6rem; }

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
    .hero__plot path { stroke-dashoffset: 0; }
}
