/* =========================================================================
   Atomic Advertising Limited — atomicadvertising.net
   Design direction: "emission spectrum". Every element emits a unique
   fingerprint of light; every brand emits a unique signal. Instrument-panel
   blacks, reactor orange, spectral lines used once, as the signature.
   Type: Archivo (expanded, display) / Instrument Sans (body) / Spline Sans Mono (data)
   ========================================================================= */

/* ---- Tokens ------------------------------------------------------------ */
:root {
    --bg:          #ECEEF2;
    --surface:     #FFFFFF;
    --surface-2:   #F4F6F9;
    --ink:         #13161D;
    --ink-2:       #414757;
    --ink-3:       #5A6173;
    --line:        rgba(19, 22, 29, 0.14);
    --line-soft:   rgba(19, 22, 29, 0.075);
    --reactor:     #E8410D;
    --reactor-hi:  #FF5A2B;
    --reactor-txt: #B83309;
    --signal:      #0C7A85;
    --panel:       #0A0C11;
    --panel-ink:   #E8EAF0;
    --panel-line:  rgba(232, 234, 240, 0.14);
    --shadow:      0 1px 2px rgba(19, 22, 29, 0.05), 0 12px 32px -18px rgba(19, 22, 29, 0.35);
    --shadow-lift: 0 2px 4px rgba(19, 22, 29, 0.06), 0 24px 48px -24px rgba(19, 22, 29, 0.4);

    --sp-violet: #7C5CFF;
    --sp-blue:   #3B82F6;
    --sp-cyan:   #22D3EE;
    --sp-green:  #34D399;
    --sp-amber:  #FBBF24;
    --sp-orange: #FF6B2C;
    --sp-red:    #F43F5E;

    --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
    --font-body:    'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono:    'Spline Sans Mono', ui-monospace, 'Cascadia Mono', monospace;

    --wrap: 1240px;
    --gutter: clamp(1.15rem, 4vw, 3rem);
    --radius: 3px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-theme="dark"] {
    --bg:          #0B0D12;
    --surface:     #12151C;
    --surface-2:   #171B24;
    --ink:         #E8EAF0;
    --ink-2:       #AEB4C4;
    --ink-3:       #838A9E;
    --line:        rgba(232, 234, 240, 0.16);
    --line-soft:   rgba(232, 234, 240, 0.08);
    --reactor:     #FF5A2B;
    --reactor-hi:  #FF7A50;
    --reactor-txt: #FF7A50;
    --signal:      #3FD0DE;
    --panel:       #070910;
    --shadow:      0 1px 2px rgba(0, 0, 0, 0.5), 0 16px 40px -20px rgba(0, 0, 0, 0.8);
    --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.55), 0 28px 56px -26px rgba(0, 0, 0, 0.9);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0125rem;
    line-height: 1.62;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--reactor); color: #fff; }

:focus-visible {
    outline: 2px solid var(--reactor);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--ink);
    color: var(--bg);
    padding: 0.75rem 1.15rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.container {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---- Type -------------------------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: 118%;
    line-height: 0.98;
    letter-spacing: -0.022em;
    margin: 0 0 0.6em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 7.2vw, 5.6rem); line-height: 0.92; }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.15rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.42rem); font-stretch: 108%; line-height: 1.12; }
h4 { font-size: 1.02rem; font-stretch: 105%; letter-spacing: -0.01em; }

p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.lead {
    font-size: clamp(1.06rem, 1.55vw, 1.24rem);
    line-height: 1.55;
    color: var(--ink-2);
}

.mono, .kicker, .rail-label, .stat-label {
    font-family: var(--font-mono);
    font-variant-ligatures: none;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 1.15rem;
}
.kicker::before {
    content: "";
    width: 1.6rem;
    height: 1px;
    background: var(--reactor);
}

.emph { color: var(--reactor-txt); }

.lnk {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--reactor);
    padding-bottom: 1px;
    transition: color 0.2s var(--ease);
}
.lnk:hover { color: var(--reactor-txt); }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--font-body);
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: -0.005em;
    padding: 0.82rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s var(--ease), background 0.2s var(--ease),
                color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--reactor); color: #fff; }
.btn--primary:hover { background: var(--reactor-hi); }

.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--reactor); color: #fff; }

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--reactor); color: var(--reactor-txt); }

.btn--lg { padding: 1rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---- Navigation -------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: 68px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.62rem;
    text-decoration: none;
    color: var(--ink);
    margin-right: auto;
}
.logo-mark { width: 34px; height: 34px; flex: none; }
.logo-mark circle.nucleus { fill: var(--reactor); }
.logo-mark ellipse { stroke: var(--ink); }
.logo-word {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.06rem;
    letter-spacing: -0.015em;
    line-height: 1.05;
    text-transform: uppercase;
}
.logo-word small {
    display: block;
    font-family: var(--font-mono);
    font-weight: 400;
    font-stretch: normal;
    font-size: 0.6rem;
    letter-spacing: 0.13em;
    color: var(--ink-3);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: block;
    padding: 0.5rem 0.72rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    border-radius: var(--radius);
    transition: color 0.18s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 3px;
    background: var(--reactor);
}
.nav-links a.nav-cta-m { display: none; }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.lang-switch a {
    padding: 0.32rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--ink-3);
    text-decoration: none;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--ink); color: var(--bg); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    color: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.icon-btn svg { width: 17px; height: 17px; }

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* The dark-theme orange is bright: dark text on it clears AA, white does not. */
[data-theme="dark"] .btn--primary { color: #0A0C11; }
[data-theme="dark"] .btn--primary:hover { color: #0A0C11; }
[data-theme="dark"] .btn--ink:hover { color: #0A0C11; }

.burger { display: none; }

/* ---- Sections ---------------------------------------------------------- */
.section {
    padding: clamp(3.6rem, 8vw, 6.4rem) 0;
    border-top: 1px solid var(--line-soft);
}
.section--flush { border-top: 0; }
.section--tight { padding-block: clamp(2.6rem, 5vw, 4rem); }
.section--panel {
    background: var(--panel);
    color: var(--panel-ink);
    border-top: 0;
}
.section--panel h2, .section--panel h3 { color: #fff; }
.section--panel .lead, .section--panel p { color: rgba(232, 234, 240, 0.76); }
.section--panel .kicker { color: rgba(232, 234, 240, 0.6); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head .lead { margin-top: 0.4rem; }

/* Instrument rail: a hairline axis with a mono label, echoing a spectrometer
   scale. Used to head major blocks instead of decorative numbering. */
.rail {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-bottom: 0.7rem;
    margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
    border-bottom: 1px solid var(--line);
}
.rail-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
}
.rail-note {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}

/* ---- Hero -------------------------------------------------------------- */
.hero { padding: clamp(3rem, 7vw, 5.4rem) 0 0; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
    gap: clamp(1.8rem, 4vw, 3.6rem);
    align-items: end;
}

.hero h1 { margin-bottom: 0.34em; }
.hero h1 .line { display: block; }
.hero h1 .thin {
    font-stretch: 92%;
    font-weight: 400;
    color: var(--ink-2);
}

.hero-aside {
    padding-bottom: 0.5rem;
    border-left: 1px solid var(--line);
    padding-left: clamp(1rem, 2vw, 1.6rem);
}
.hero-aside p { color: var(--ink-2); font-size: 0.985rem; }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.6rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta span::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--reactor);
}

/* ---- Signature: the emission spectrum panel ---------------------------- */
.spectrum {
    position: relative;
    margin-top: clamp(2.4rem, 5vw, 3.6rem);
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
}
.spectrum-stage {
    position: relative;
    height: clamp(150px, 21vw, 232px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 40%),
        var(--panel);
}
.spectrum-line {
    position: absolute;
    top: 12%;
    bottom: 12%;
    width: 2px;
    border-radius: 2px;
    background: currentColor;
    color: var(--sp-cyan);
    box-shadow: 0 0 10px 1px currentColor;
    opacity: 0;
    transform: scaleY(0.2);
    transform-origin: 50% 50%;
    filter: blur(3px);
    animation: emit 0.75s var(--ease) forwards;
}
@keyframes emit {
    from { opacity: 0; transform: scaleY(0.18); filter: blur(6px); }
    60%  { opacity: 1; }
    to   { opacity: var(--i, 0.85); transform: scaleY(1); filter: blur(0); }
}

.spectrum-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.62rem clamp(0.9rem, 2vw, 1.4rem);
    border-top: 1px solid var(--panel-line);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(232, 234, 240, 0.55);
}
.spectrum-scale strong {
    font-weight: 500;
    color: rgba(232, 234, 240, 0.92);
}
.spectrum-scale .sc-mid { text-align: center; }
.spectrum-scale .sc-right { text-align: right; }

/* ---- Element cells (services) ------------------------------------------ */
.cells {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.cell {
    position: relative;
    display: block;
    background: var(--surface);
    padding: clamp(1.4rem, 2.6vw, 1.9rem);
    text-decoration: none;
    color: inherit;
    transition: background 0.22s var(--ease);
}
.cell::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--reactor);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.32s var(--ease);
}
.cell:hover { background: var(--surface-2); }
.cell:hover::after { transform: scaleX(1); }

.cell-sym {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: 108%;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.9rem;
}
.cell h3 { margin-bottom: 0.5rem; }
.cell p { color: var(--ink-2); font-size: 0.94rem; margin: 0; }

.cell-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-3);
    letter-spacing: 0.02em;
}
.cell-list li { padding: 0.2rem 0; border-top: 1px solid var(--line-soft); }

/* ---- Cards & grids ----------------------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(1.2rem, 2.6vw, 2rem);
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: clamp(1.2rem, 2.4vw, 1.7rem);
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.35rem, 2.4vw, 1.85rem);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-2); font-size: 0.95rem; }

.section--panel .card {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--panel-line);
}

/* Numbered process — order genuinely matters here, so it is numbered. */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.step {
    counter-increment: step;
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2.4rem);
    background: var(--bg);
    padding: clamp(1.4rem, 3vw, 2rem) 0;
    align-items: start;
}
.step-idx {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--ink-3);
    padding-top: 0.35rem;
}
.step-idx::before {
    content: "0" counter(step);
    display: inline-block;
    padding-bottom: 0.15rem;
    border-bottom: 2px solid var(--reactor);
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { color: var(--ink-2); max-width: 68ch; margin: 0; }

/* Stat row — only verifiable, register-backed figures live here. */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 1px;
    background: var(--panel-line);
    border: 1px solid var(--panel-line);
    border-radius: var(--radius);
    overflow: hidden;
}
.stat { background: rgba(255, 255, 255, 0.03); padding: 1.35rem 1.4rem; }
.stat-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-stretch: 112%;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.03em;
    color: #fff;
}
.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(232, 234, 240, 0.6);
}

/* ---- Work / representative engagements --------------------------------- */
.work-item {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: clamp(1rem, 3vw, 2.6rem);
    padding: clamp(1.6rem, 3.2vw, 2.4rem) 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.work-item:last-child { border-bottom: 1px solid var(--line); }
.work-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--reactor-txt);
    margin-bottom: 0.6rem;
}
.work-item h3 { margin-bottom: 0.4rem; }
.work-item p { color: var(--ink-2); margin-bottom: 0.9rem; }
.work-scope {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.work-scope li {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.24rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-3);
}

.notice {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--reactor);
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    font-size: 0.92rem;
    color: var(--ink-2);
}
.notice svg { width: 18px; height: 18px; flex: none; color: var(--reactor); margin-top: 2px; }
.notice strong { color: var(--ink); }

/* ---- Page head --------------------------------------------------------- */
.page-head {
    padding: clamp(2.8rem, 6vw, 4.6rem) 0 clamp(1.6rem, 3vw, 2.4rem);
}
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.page-head .lead { max-width: 60ch; }

/* ---- Prose (privacy / terms) ------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.7rem);
    margin-top: 2.6rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.7rem; font-size: 1.02rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.15rem; margin: 0 0 1.1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--ink); text-decoration-color: var(--reactor); text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4rem; }
table.data {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: 0.9rem;
}
table.data th, table.data td {
    text-align: left;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    vertical-align: top;
    color: var(--ink-2);
}
table.data th {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--surface-2);
    font-weight: 500;
}

/* ---- Identity block (compliance) --------------------------------------- */
.identity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.identity div { background: var(--surface); padding: 1.1rem 1.25rem; }
.identity dt {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.35rem;
}
.identity dd {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ink);
    overflow-wrap: anywhere;
}
.identity dd a { text-decoration-color: var(--reactor); }

.verify-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.42rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-2);
    text-decoration: none;
    transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.verify-pill:hover { border-color: var(--reactor); color: var(--reactor-txt); }
.verify-pill svg { width: 14px; height: 14px; }

/* ---- Contact ----------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: clamp(1.4rem, 3vw, 2.4rem);
    align-items: start;
}

.form-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 3vw, 2.1rem);
}
.form-card h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 0.9rem;
}
.field { margin-bottom: 0.9rem; }
.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink);
}
.field .req { color: var(--reactor-txt); font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.68rem 0.8rem;
    transition: border-color 0.18s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--reactor);
    outline: none;
}
.field-err {
    display: none;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--reactor-txt);
}
.field.invalid input, .field.invalid textarea { border-color: var(--reactor); }
.field.invalid .field-err { display: block; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.86rem;
    color: var(--ink-2);
    margin: 0.4rem 0 1rem;
}
.consent input { margin-top: 0.25rem; accent-color: var(--reactor); }

.form-privacy { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 1rem; }
.form-note { font-size: 0.78rem; color: var(--ink-3); margin-top: 0.9rem; }

.form-msg {
    display: none;
    padding: 0.9rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.92rem;
    margin-bottom: 1.2rem;
}
.form-msg.show { display: block; }
.form-msg--ok { background: color-mix(in srgb, var(--signal) 12%, transparent); border: 1px solid var(--signal); color: var(--ink); }
.form-msg--err { background: color-mix(in srgb, var(--reactor) 10%, transparent); border: 1px solid var(--reactor); color: var(--ink); }

.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}
.info-card h4 {
    font-family: var(--font-mono);
    font-weight: 400;
    font-stretch: normal;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 0.6rem;
}
.info-card address { font-style: normal; color: var(--ink-2); font-size: 0.95rem; }
.info-meta { font-size: 0.95rem; color: var(--ink-2); }
.info-meta a { color: var(--ink); text-decoration-color: var(--reactor); }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    gap: clamp(1.4rem, 3vw, 3rem);
    align-items: center;
}
.cta-band h2 { margin-bottom: 0.35em; }

/* ---- Footer ------------------------------------------------------------ */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: clamp(2.8rem, 5vw, 4rem) 0 1.6rem;
    font-size: 0.92rem;
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.75fr));
    gap: clamp(1.4rem, 3vw, 2.4rem);
    padding-bottom: 2rem;
}
.footer-tagline { color: var(--ink-2); max-width: 34ch; margin: 0.9rem 0 1.1rem; }
.footer-id { font-size: 0.86rem; color: var(--ink-2); line-height: 1.75; }
.footer-id strong { color: var(--ink); }
.footer-id a { color: var(--ink-2); text-decoration-color: var(--reactor); }

.footer-col h5 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin: 0 0 0.85rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.18s var(--ease);
}
.footer-col a:hover { color: var(--reactor-txt); }

.footer-compliance {
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
    margin-top: 0.5rem;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 0.55rem;
}
.badge svg { width: 14px; height: 14px; }
.footer-compliance p,
.footer-disclaimer p {
    font-size: 0.82rem;
    color: var(--ink-3);
    max-width: 96ch;
    line-height: 1.65;
}
.footer-disclaimer { margin-top: 0.9rem; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--ink-3);
}
.footer-bottom a { color: var(--ink-3); text-decoration-color: var(--reactor); }
.footer-bottom a:hover { color: var(--reactor); }

/* ---- Cookie notice ----------------------------------------------------- */
.cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 120;
    display: none;
    gap: 0.9rem;
    align-items: center;
    max-width: 640px;
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 1rem 1.15rem;
}
.cookie.show { display: flex; }
.cookie-ico { color: var(--reactor); flex: none; }
.cookie-ico svg { width: 26px; height: 26px; }
.cookie-body { flex: 1 1 auto; }
.cookie-body strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.cookie-body p { font-size: 0.82rem; color: var(--ink-2); margin: 0; }
.cookie-body a { color: var(--ink); text-decoration-color: var(--reactor); }
.cookie .btn { flex: none; }

/* ---- 404 --------------------------------------------------------------- */
.err-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-stretch: 125%;
    font-size: clamp(5rem, 20vw, 13rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    color: var(--ink);
    margin: 0 0 1rem;
}
.err-code span { color: var(--reactor); }

/* ---- Reveal ------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal[data-d="1"] { transition-delay: 0.07s; }
.reveal[data-d="2"] { transition-delay: 0.14s; }
.reveal[data-d="3"] { transition-delay: 0.21s; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1000px) {
    .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .cells { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
    .hero-grid,
    .contact-grid,
    .cta-band,
    .work-item { grid-template-columns: minmax(0, 1fr); }

    .hero-aside {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 1.2rem;
    }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .burger { display: inline-grid; }
    .nav-cta { display: none; }
    .nav-links a.nav-cta-m { display: block; }

    .nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 0.6rem var(--gutter) 1.1rem;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.7rem 0; font-size: 1rem; }
    .nav-links a.active::after { width: 1.8rem; }
    .nav-links .btn { margin-top: 0.6rem; }

    .step { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .step-idx { padding-top: 0; }
}

@media (max-width: 560px) {
    .footer-top { grid-template-columns: minmax(0, 1fr); }
    .cookie { flex-wrap: wrap; }
    .cookie .btn { width: 100%; }
    .spectrum-scale { font-size: 0.58rem; letter-spacing: 0.08em; }
    .spectrum-scale .sc-mid { display: 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; }
    .spectrum-line { opacity: 0.85; transform: none; filter: none; }
}

@media print {
    .nav, .cookie, .footer-col, .hero-actions { display: none; }
    body { background: #fff; color: #000; }
}
