/* ==========================================================================
   DevStack — "Retro Signal" design system
   Single hand-written stylesheet, no build step. Desktop values match the
   1440px reference designs exactly; breakpoints adapt down to 320px.

   Some text colours are darkened/brightened from the reference for WCAG AA:
   - kicker orange  #B4671C -> #945413 (small mono text on paper/panel)
   - teal band text #A9E0D5 -> #EAF6F3 (body/captions on teal)
   - CTA banner body #5C4420 -> #3F2D12 (on amber)
   Original values stay in use for decorative/large elements.
   ========================================================================== */

/* ---------- fonts (self-hosted, latin subset) ---------- */

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* ---------- tokens ---------- */

:root {
    --paper: #f4ecd8;
    --ink: #26221a;
    --panel: #fbf6e9;
    --amber: #e0812b;
    --teal: #1f7a6b;

    --text-muted: #4a4232;
    --text-soft: #6b6045;
    --kicker: #945413; /* darkened from #B4671C for AA */
    --stripe-bg: #ede2c6;
    --shadow-tan: #e2d7bc;
    --hairline: #d6c9a8;
    --hairline-soft: #e2d7bc;
    --placeholder-text: #9b8e6e;

    --dark-muted: #c9bfa6;
    --dark-soft: #a89b7b;
    --dark-hairline: #3e382c;
    --near-black: #1a1712;

    --teal-pale: #eaf6f3;
    --teal-light: #a9e0d5; /* decorative / large only */
    --teal-dark: #1a6a5c;
    --teal-border: #2c9585;

    --cta-body: #3f2d12; /* darkened from #5C4420 for AA */
    --error: #9c2b1b;

    --font-head: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

    --pad-x: clamp(20px, 3.9vw, 56px);
    --scan-light: repeating-linear-gradient(0deg, rgba(38, 34, 26, 0.035) 0 1px, transparent 1px 5px);
    --scan-img: repeating-linear-gradient(0deg, rgba(38, 34, 26, 0.04) 0 1px, transparent 1px 6px);
    --scan-dark: repeating-linear-gradient(0deg, rgba(244, 236, 216, 0.03) 0 1px, transparent 1px 5px);
    --scan-teal: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 6px);
}

/* ---------- reset / base ---------- */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--paper);
    font-family: var(--font-head);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

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

a {
    color: inherit;
    text-decoration: none;
}
p a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
p.kicker a,
p.case-card__stat a,
.mono-link {
    text-decoration: none;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}
.on-dark :focus-visible,
.on-dark:focus-visible {
    outline-color: var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.ds-page {
    max-width: 1440px;
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 14px;
    padding: 10px 16px;
    border-radius: 4px;
    transform: translateY(-200%);
}
.skip-link:focus {
    transform: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- shared bits ---------- */

.kicker {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kicker);
    margin: 0 0 24px;
}

.mono {
    font-family: var(--font-mono);
}

.scanlines {
    background-image: var(--scan-light);
}

.img-placeholder {
    background: var(--scan-img), var(--stripe-bg);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}
.img-placeholder span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--placeholder-text);
}

/* mono "+" bullet list */
.plus-list {
    display: grid;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 14.5px;
    color: var(--text-muted);
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.5;
}
.plus-list li {
    display: flex;
    gap: 12px;
}
.plus-list li::before {
    content: '+';
    color: var(--kicker);
    flex: none;
}
.plus-list--dark {
    color: var(--dark-muted);
}
.plus-list--dark li::before {
    color: var(--amber);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    border-radius: 4px;
    padding: 15px 28px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
}
.btn--primary {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: 3px 3px 0 var(--ink);
}
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
    padding: 15px 26px;
}
.btn--ink {
    background: var(--ink);
    color: var(--paper);
    padding: 15px 30px;
}
.btn--paper {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--ink);
    padding: 15px 30px;
}
.btn--paper-teal {
    background: var(--paper);
    color: var(--teal);
    padding: 16px 30px;
}
.btn--amber-borderless {
    background: var(--amber);
    color: var(--ink);
    border-color: var(--amber);
    padding: 16px 30px;
}
.btn--sm {
    font-size: 13.5px;
    padding: 11px 20px;
}

@media (prefers-reduced-motion: no-preference) {
    .btn {
        transition:
            transform 0.12s ease,
            box-shadow 0.12s ease;
    }
    .btn--primary:hover {
        transform: translate(-1px, -1px);
        box-shadow: 4px 4px 0 var(--ink);
    }
}

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

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px var(--pad-x);
    border-bottom: 2px solid var(--ink);
    position: relative;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand__mark {
    flex: none;
}
.brand__name {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    gap: 30px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: inherit;
}
.nav-links a[aria-current='page'] {
    color: var(--ink);
    border-bottom: 2px solid var(--amber);
    padding-bottom: 2px;
}
.nav-links a:hover {
    color: var(--ink);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle-icon {
    display: block;
    width: 20px;
}
.nav-toggle-icon span {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
}

.nav-panel {
    display: none;
    border-bottom: 2px solid var(--ink);
    background: var(--panel);
    padding: 10px var(--pad-x) 24px;
}
.nav-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 16px;
}
.nav-panel li a {
    display: block;
    padding: 13px 0;
    border-bottom: 1.5px solid var(--hairline-soft);
    color: var(--ink);
}
.nav-panel li a[aria-current='page'] {
    color: var(--kicker);
}
.nav-panel__actions {
    margin-top: 18px;
}

@media (max-width: 920px) {
    .site-header .nav-links {
        display: none;
    }
    .site-header .nav-cta {
        display: none;
    }
    .nav-toggle {
        display: block;
    }
    html.js.nav-open .nav-panel {
        display: block;
    }
    html:not(.js) .nav-panel {
        display: block;
    } /* no-JS fallback: menu always visible */
}

/* ---------- breadcrumbs ---------- */

.breadcrumbs {
    padding: 16px var(--pad-x);
    border-bottom: 1.5px solid var(--hairline-soft);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-soft);
}
.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
}
.breadcrumbs li + li::before {
    content: '/';
    margin-right: 6px;
}
.breadcrumbs [aria-current='page'] {
    color: var(--ink);
}

/* ---------- hero (homepage) ---------- */

.hero {
    position: relative;
    padding: 84px var(--pad-x) 80px;
    background-image: var(--scan-light);
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--ink);
    border-radius: 999px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.hero__badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--amber);
    border-radius: 999px;
}
.hero h1 {
    font-weight: 700;
    font-size: clamp(44px, 6.7vw, 96px);
    line-height: 0.94;
    letter-spacing: -0.03em;
    margin: 0 0 26px;
    max-width: 1050px;
}
.hero h1 em,
.accent {
    color: var(--amber);
    font-style: normal;
}
.hero__lead {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 0 36px;
}
.hero__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

@media (prefers-reduced-motion: no-preference) {
    @keyframes dsFade {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: none;
        }
    }
    .hero {
        animation: dsFade 0.7s ease both;
    }
}

/* ---------- interior page hero ---------- */

.page-hero {
    padding: 72px var(--pad-x) 64px;
    background-image: var(--scan-light);
}
.page-hero h1 {
    font-weight: 700;
    font-size: clamp(36px, 4.6vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.03em;
    margin: 0 0 24px;
    max-width: 1000px;
}
.page-hero p {
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0;
}

/* ---------- split hero (service / about / contact) ---------- */

.split-hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-bottom: 2px solid var(--ink);
}
.split-hero__body {
    padding: 72px var(--pad-x);
    border-right: 2px solid var(--ink);
    background-image: var(--scan-light);
}
.split-hero__body h1 {
    font-weight: 700;
    font-size: clamp(32px, 3.9vw, 56px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 22px;
}
.split-hero__body > p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 30px;
}
.split-hero__media {
    min-height: 280px;
}
.split-hero__media--img {
    min-height: 280px;
    overflow: hidden;
}
.split-hero__media--img .img-scan {
    width: 100%;
    height: 100%;
}
.split-hero__media--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 860px) {
    .split-hero {
        grid-template-columns: 1fr;
    }
    .split-hero__body {
        border-right: none;
        border-bottom: 2px solid var(--ink);
    }
    .split-hero__media {
        min-height: 220px;
    }
}

/* ---------- trust strip / reassurance strip ---------- */

.trust-strip {
    display: flex;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-mono);
    background: var(--stripe-bg);
    list-style: none;
    margin: 0;
    padding: 0;
}
.trust-strip li {
    flex: 1;
    padding: 18px 32px;
    font-size: 13px;
    letter-spacing: 0.03em;
    color: var(--ink);
    border-right: 1.5px solid var(--hairline);
}
.trust-strip li:last-child {
    border-right: none;
}
.trust-strip li::before {
    content: '> ';
}

@media (max-width: 860px) {
    .trust-strip {
        flex-wrap: wrap;
    }
    .trust-strip li {
        flex: 1 1 50%;
        border-bottom: 1.5px solid var(--hairline);
        padding: 15px 20px;
    }
    .trust-strip li:nth-last-child(-n + 2) {
        border-bottom: none;
    }
}
@media (max-width: 480px) {
    .trust-strip li {
        flex: 1 1 100%;
        border-right: none;
        border-bottom: 1.5px solid var(--hairline);
    }
    .trust-strip li:nth-last-child(2) {
        border-bottom: 1.5px solid var(--hairline);
    }
    .trust-strip li:last-child {
        border-bottom: none;
    }
}

/* ---------- split prose (heading left / copy right) ---------- */

.split-prose {
    padding: 92px var(--pad-x);
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
}
.split-prose h2 {
    font-weight: 700;
    font-size: clamp(30px, 3.2vw, 46px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0;
}
.split-prose p {
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 18px;
}
.split-prose p:last-child {
    margin-bottom: 0;
}
.split-prose p.strong {
    color: var(--ink);
    font-weight: 600;
}

@media (max-width: 860px) {
    .split-prose {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 56px;
        padding-bottom: 56px;
    }
}

/* ---------- section headings ---------- */

.section {
    padding: 92px var(--pad-x);
}
.section--flush-top {
    padding-top: 0;
}
.section--tight {
    padding-top: 64px;
    padding-bottom: 64px;
}
.section--tight .section__title {
    font-size: clamp(26px, 2.4vw, 34px);
    margin-bottom: 30px;
}
.section h2.section__title {
    font-weight: 700;
    font-size: clamp(30px, 3.1vw, 44px);
    letter-spacing: -0.025em;
    margin: 0 0 40px;
}
.section__head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.section__head h2 {
    margin: 0;
}
.section__head .mono-link {
    white-space: nowrap;
}

.mono-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--kicker);
}
.mono-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 860px) {
    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .section--flush-top {
        padding-top: 0;
    }
}

/* ---------- panel cards ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}
.card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
}
.card-grid--5 {
    grid-template-columns: repeat(5, 1fr);
}

.card {
    background: var(--panel);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 4px 4px 0 var(--shadow-tan);
}
.card h3,
.card .card__title {
    font-weight: 700;
    font-size: 24px;
    margin: 0 0 12px;
    line-height: 1.2;
}
.card p {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--text-soft);
    margin: 0;
}

.card--dark {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 4px 4px 0 var(--amber);
}
.card--dark h3,
.card--dark .card__title {
    color: #fff;
}
.card--dark p {
    color: var(--dark-muted);
}

/* hub/service cards: slightly smaller title, with arrow link */
.card--hub {
    padding: 30px;
}
.card--hub h3,
.card--hub .card__title {
    font-size: 21px;
    margin-bottom: 10px;
}
.card--hub p {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 16px;
}
.card--hub .mono-link {
    font-size: 13px;
}
.card--dark .mono-link {
    color: var(--amber);
}
a.card {
    display: block;
}
@media (prefers-reduced-motion: no-preference) {
    a.card {
        transition:
            transform 0.12s ease,
            box-shadow 0.12s ease;
    }
    a.card:hover {
        transform: translate(-1px, -1px);
        box-shadow: 5px 5px 0 var(--shadow-tan);
    }
    a.card--dark:hover {
        box-shadow: 5px 5px 0 var(--amber);
    }
}

/* numbered value cards ([01] …) */
.card__num {
    font-family: var(--font-mono);
    color: var(--kicker);
    font-size: 13px;
    margin-bottom: 12px;
}
.card--dark .card__num {
    color: var(--amber);
}

/* small "why" cards */
.card--compact {
    padding: 24px;
    border-radius: 8px;
    background: transparent;
}
.card--compact h3,
.card--compact .card__title {
    font-size: 16px;
    margin-bottom: 8px;
}
.card--compact p {
    font-size: 13.5px;
    line-height: 1.5;
}

@media (max-width: 1080px) {
    .card-grid--4,
    .card-grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .card-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 680px) {
    .card-grid,
    .card-grid--2,
    .card-grid--4,
    .card-grid--5 {
        grid-template-columns: 1fr;
    }
}

/* ---------- joined cell grid (homepage services, process strips) ---------- */

.cell-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5px;
    background: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    overflow: hidden;
    list-style: none;
    margin: 0;
    padding: 0;
}
.cell-grid--5 {
    grid-template-columns: repeat(5, 1fr);
}
.cell-grid > * {
    background: var(--panel);
    padding: 26px;
}
.cell-grid h3,
.cell-grid .cell__title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px;
}
.cell-grid p {
    margin: 0;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}
a.cell-grid__cell:hover h3 {
    color: var(--kicker);
}

.cell-grid--process > * {
    padding: 24px;
}
.cell-grid--process .cell__num {
    font-family: var(--font-mono);
    color: var(--kicker);
    margin-bottom: 10px;
    font-size: 13px;
}
.cell-grid--process h3 {
    font-size: 15.5px;
    margin-bottom: 6px;
}
.cell-grid--process p {
    font-size: 13px;
}

@media (max-width: 1080px) {
    .cell-grid,
    .cell-grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .cell-grid,
    .cell-grid--5 {
        grid-template-columns: 1fr;
    }
}

/* ---------- process cards (bordered, offset shadow) ---------- */

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.process-card {
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    padding: 26px;
    box-shadow: 4px 4px 0 var(--shadow-tan);
}
.process-card__num {
    font-family: var(--font-mono);
    color: var(--kicker);
    margin-bottom: 12px;
}
.process-card h3 {
    font-weight: 700;
    font-size: 19px;
    margin: 0 0 8px;
}
.process-card p {
    margin: 0;
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.55;
}

@media (max-width: 1080px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- dark band ---------- */

.band-dark {
    background: var(--ink);
    color: var(--paper);
    padding: 92px var(--pad-x);
    background-image: var(--scan-dark);
}
.band-dark__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.band-dark__grid--narrow {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}
.band-dark h2 {
    font-weight: 700;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    margin: 0 0 20px;
    color: #fff;
}
.band-dark__lead {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.65;
    color: var(--dark-muted);
    margin: 0 0 32px;
    max-width: 440px;
}
.band-dark--prose h2 {
    margin: 0;
}
.band-dark--prose p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.65;
    color: var(--dark-muted);
    margin: 0 0 18px;
}
.band-dark--prose p:last-child {
    margin-bottom: 0;
}
.band-dark--prose {
    padding-top: 72px;
    padding-bottom: 72px;
}

.stat-hero {
    display: flex;
    align-items: baseline;
    gap: 14px;
}
.stat-hero__value {
    font-weight: 700;
    font-size: clamp(56px, 6.1vw, 88px);
    line-height: 1;
    color: var(--amber);
}
.stat-hero__label {
    font-size: 15px;
    color: var(--dark-muted);
    max-width: 190px;
    font-family: var(--font-mono);
}

.feature-rows {
    display: grid;
    gap: 2px;
}
.feature-rows > div {
    padding: 22px 0;
    border-bottom: 1px solid var(--dark-hairline);
}
.feature-rows > div:last-child {
    border-bottom: none;
}
.feature-rows h3 {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 5px;
    color: #fff;
}
.feature-rows p {
    margin: 0;
    color: var(--dark-muted);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .band-dark {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .band-dark__grid,
    .band-dark__grid--narrow {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ---------- teal band ---------- */

.band-teal {
    background: var(--teal);
    color: var(--teal-pale);
    padding: 92px var(--pad-x);
}
.band-teal--tight {
    padding-top: 64px;
    padding-bottom: 64px;
}
.band-teal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.band-teal__grid--cta {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
}
.band-teal .kicker {
    color: var(--teal-pale);
    margin-bottom: 22px;
}
.band-teal h2 {
    font-weight: 700;
    font-size: clamp(28px, 2.8vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 30px;
    color: #fff;
}
.band-teal__grid--cta h2 {
    font-size: clamp(28px, 2.9vw, 40px);
    line-height: 1.04;
    margin-bottom: 14px;
}
.band-teal p {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.6;
    color: var(--teal-pale);
    margin: 0;
    max-width: 560px;
}
.band-teal__attribution {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--teal-pale);
    margin: 0 0 28px;
}
.band-teal__stats {
    display: flex;
    gap: 44px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.band-teal__stats dt {
    font-weight: 700;
    font-size: clamp(38px, 3.9vw, 54px);
    line-height: 1;
    color: #fff;
    font-family: var(--font-head);
}
.band-teal__stats dd {
    font-size: 13.5px;
    color: var(--teal-pale);
    margin: 6px 0 0;
    font-family: var(--font-mono);
}
.band-teal__stats > div {
    margin: 0;
}
.band-teal__media {
    aspect-ratio: 16 / 11;
    border-radius: 8px;
    background: var(--scan-teal), var(--teal-dark);
    border: 1.5px solid var(--teal-border);
    display: flex;
    align-items: flex-end;
    padding: 24px;
}
.band-teal__media span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--teal-light);
}
.band-teal__media--img {
    padding: 0;
    overflow: hidden;
}
.band-teal__media--img .img-scan {
    width: 100%;
    height: 100%;
    border-radius: inherit;
}
.band-teal__media--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.band-teal__end {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 860px) {
    .band-teal {
        padding-top: 56px;
        padding-bottom: 56px;
    }
    .band-teal__grid,
    .band-teal__grid--cta {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .band-teal__end {
        justify-content: flex-start;
    }
}

/* ---------- bordered panel band (AI panel) ---------- */

.panel-band {
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
    background: var(--panel);
    box-shadow: 6px 6px 0 var(--shadow-tan);
}
.panel-band h2 {
    font-weight: 700;
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}
.panel-band p {
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 16px;
}
.panel-band p:last-child {
    margin-bottom: 0;
}

@media (max-width: 860px) {
    .panel-band {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 24px;
    }
}

/* ---------- CTA banner (amber) ---------- */

.cta-banner {
    background: var(--amber);
    color: var(--ink);
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    padding: 76px 56px;
    text-align: center;
    box-shadow: 8px 8px 0 var(--ink);
}
.cta-banner--compact {
    padding: 64px 56px;
}
.cta-banner h2 {
    font-weight: 700;
    font-size: clamp(32px, 3.75vw, 54px);
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}
.cta-banner--compact h2 {
    font-size: clamp(30px, 3.1vw, 44px);
    margin-bottom: 20px;
}
.cta-banner p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--cta-body);
    max-width: 620px;
    margin: 0 auto 32px;
}
.cta-banner__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* full-bleed variant (work page) */
.cta-strip {
    background: var(--amber);
    color: var(--ink);
    border-top: 2px solid var(--ink);
    padding: 56px var(--pad-x);
    text-align: center;
}
.cta-strip h2 {
    font-weight: 700;
    font-size: clamp(28px, 2.8vw, 38px);
    letter-spacing: -0.025em;
    margin: 0 0 18px;
}

@media (max-width: 680px) {
    .cta-banner,
    .cta-banner--compact {
        padding: 44px 24px;
    }
}

/* ---------- FAQ cards ---------- */

.faq-list {
    display: grid;
    gap: 14px;
}
.faq-list details,
.faq-list .faq-item {
    background: var(--panel);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    padding: 26px 30px;
}
.faq-item h3 {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 8px;
}
.faq-item p {
    margin: 0;
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.6;
}

/* ---------- services hub ---------- */

.hub-group__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 28px;
}
.hub-group__num {
    font-family: var(--font-mono);
    color: var(--kicker);
    font-size: 14px;
}
.hub-group__head h2 {
    font-weight: 700;
    font-size: clamp(26px, 2.4vw, 34px);
    letter-spacing: -0.02em;
    margin: 0;
}
.hub-group {
    padding: 40px var(--pad-x) 24px;
}
.hub-group--first {
    padding-top: 64px;
    border-top: 2px solid var(--ink);
}
.hub-group--last {
    padding-bottom: 64px;
}

/* ---------- work / case studies ---------- */

.filter-pills {
    padding: 0 var(--pad-x) 40px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 13px;
    list-style: none;
    margin: 0;
}
.filter-pills li {
    display: contents;
}
.filter-pill {
    border: 1.5px solid var(--ink);
    padding: 8px 16px;
    border-radius: 999px;
}
.filter-pill--active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.featured-case {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ink);
    color: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--amber);
}
.featured-case__body {
    padding: 48px;
    background-image: var(--scan-dark);
}
.featured-case__kicker {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber);
    margin: 0 0 20px;
}
.featured-case h2,
.featured-case h3 {
    font-weight: 700;
    font-size: clamp(24px, 2.4vw, 34px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 16px;
    color: #fff;
}
.featured-case p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-muted);
    margin: 0 0 28px;
}
.featured-case__outcomes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.featured-case__outcomes li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--paper);
}
.featured-case__outcomes li::before {
    content: '+';
    color: var(--amber);
    flex: none;
    font-family: var(--font-mono);
}
.featured-case__media {
    background: var(--scan-teal), var(--near-black);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    min-height: 340px;
}
.featured-case__media span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-soft);
}
.featured-case__media--img {
    padding: 0;
    min-height: 0;
}
.featured-case__media--img .img-scan {
    width: 100%;
    height: 100%;
}
.featured-case__media--img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section--featured-case {
    padding-bottom: 24px;
}
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.case-card {
    display: block;
    background: var(--panel);
    border: 1.5px solid var(--ink);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 4px 4px 0 var(--shadow-tan);
}
.case-card__media {
    height: 170px;
    padding: 18px;
}
.case-card__media--img {
    padding: 0;
    height: auto;
    border-bottom: 1.5px solid var(--ink);
}
.case-card__media--img img {
    display: block;
    width: 100%;
    height: auto;
}
.case-card__media span {
    font-size: 11.5px;
}
.case-card__body {
    padding: 26px;
}
.case-card__tag {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kicker);
    margin: 0 0 10px;
}
.case-card h3 {
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 8px;
    line-height: 1.15;
}
.case-card p {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
}
.case-card__stat {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--ink);
}

@media (max-width: 1080px) {
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 860px) {
    .featured-case {
        grid-template-columns: 1fr;
    }
    .featured-case__body {
        padding: 32px 24px;
    }
    .featured-case__media {
        min-height: 220px;
    }
}
@media (max-width: 680px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- case study page ---------- */

.meta-bar {
    display: flex;
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    font-family: var(--font-mono);
    margin: 0;
}
.meta-bar > div {
    flex: 1;
    padding: 20px 32px;
    border-right: 1.5px solid var(--hairline-soft);
}
.meta-bar > div:last-child {
    border-right: none;
}
.meta-bar dt {
    font-size: 11px;
    color: var(--text-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.meta-bar dd {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

.case-hero-img {
    height: 460px;
    border-bottom: 2px solid var(--ink);
}
/* Illustration hero: framed, shown whole, centred on a subtle band. */
.case-hero-img--illus {
    height: auto;
    border-bottom: 2px solid var(--ink);
    background: var(--stripe-bg);
    display: flex;
    justify-content: center;
    padding: 48px var(--pad-x);
}
.case-hero-img--illus .img-scan {
    width: 100%;
    max-width: 820px;
    border: 2px solid var(--ink);
    border-radius: 10px;
    box-shadow: 6px 6px 0 var(--shadow-tan);
}
.case-hero-img--illus img {
    display: block;
    width: 100%;
    height: auto;
}

/* Retro scanline overlay laid over illustration images. */
.img-scan {
    position: relative;
    display: block;
    overflow: hidden;
}
.img-scan::after {
    content: '';
    position: absolute;
    inset: 0;
    /* horizontal scanlines + a warm ink wash so illustrations sit in the
       palette like the striped placeholders. Stronger/tighter than the shared
       --scan-img so the lines read over a busy illustration. Tune to taste:
       line alpha for line visibility, background-color alpha for darkness. */
    background-image: repeating-linear-gradient(0deg, rgba(20, 18, 14, 0.28) 0 1px, transparent 1px 4px);
    background-color: rgba(38, 34, 26, 0.16);
    pointer-events: none;
}

.outcomes-band {
    background: var(--ink);
    color: var(--paper);
    padding: 56px var(--pad-x);
    background-image: var(--scan-dark);
}
.outcomes-band .kicker {
    color: var(--amber);
    margin-bottom: 24px;
}
.outcomes-band .plus-list {
    font-family: var(--font-head);
    font-size: clamp(16px, 1.5vw, 19px);
    gap: 16px;
    max-width: 900px;
}

.narrative {
    display: grid;
    grid-template-columns: 200px 1fr;
}
.narrative__rail {
    border-right: 2px solid var(--ink);
    padding: 56px 0 0 40px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--placeholder-text);
    letter-spacing: 0.08em;
}
.narrative__body {
    padding: 56px;
    border-bottom: 1.5px solid var(--hairline-soft);
}
.narrative--last .narrative__body {
    border-bottom: none;
}
.hww-steps {
    border-top: 2px solid var(--ink);
}
.narrative h2 {
    font-weight: 700;
    font-size: clamp(24px, 2.1vw, 30px);
    letter-spacing: -0.02em;
    margin: 0 0 16px;
}
.narrative p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 20px;
    max-width: 760px;
}
.narrative p:last-child {
    margin-bottom: 0;
}
.narrative .plus-list {
    max-width: 760px;
    margin-top: 20px;
}

.testimonial {
    padding: 64px var(--pad-x);
}
.testimonial__inner {
    max-width: 900px;
    margin: 0;
}
.testimonial blockquote {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(22px, 2.3vw, 32px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 24px;
    color: #fff;
}
.testimonial figcaption {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--teal-pale);
}

.case-cta {
    padding: 56px var(--pad-x);
    text-align: center;
    border-top: 2px solid var(--ink);
}
.case-cta h2 {
    font-weight: 700;
    font-size: clamp(28px, 2.9vw, 40px);
    letter-spacing: -0.025em;
    margin: 0 0 18px;
}

@media (max-width: 860px) {
    .narrative {
        grid-template-columns: 1fr;
    }
    .narrative__rail {
        border-right: none;
        padding: 32px var(--pad-x) 0;
    }
    .narrative__rail br {
        display: none;
    }
    .narrative__body {
        padding: 16px var(--pad-x) 32px;
    }
    .case-hero-img {
        height: 260px;
    }
}

/* ---------- service page blocks ---------- */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.two-col__left {
    padding: 64px var(--pad-x);
    border-right: 2px solid var(--ink);
}
.two-col__right {
    padding: 64px var(--pad-x);
    background: var(--panel);
}
.two-col h2 {
    font-weight: 700;
    font-size: clamp(24px, 2.1vw, 30px);
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}
.two-col__right h2 {
    margin-bottom: 20px;
}
.two-col__right p {
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text-soft);
    margin: 0 0 20px;
}
.two-col__right p:last-child {
    margin-bottom: 0;
}
.two-col__right p.emphasis {
    color: var(--ink);
}

@media (max-width: 860px) {
    .two-col {
        grid-template-columns: 1fr;
    }
    .two-col__left {
        border-right: none;
        border-bottom: 2px solid var(--ink);
        padding-top: 48px;
        padding-bottom: 48px;
    }
    .two-col__right {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* ---------- stats strip (about) ---------- */

.stats-strip {
    display: flex;
    border-bottom: 2px solid var(--ink);
    margin: 0;
}
.stats-strip > div {
    flex: 1;
    padding: 40px;
    border-right: 1.5px solid var(--hairline-soft);
}
.stats-strip > div:last-child {
    border-right: none;
}
.stats-strip dt {
    font-weight: 700;
    font-size: clamp(36px, 3.4vw, 48px);
    line-height: 1;
    color: var(--ink);
    font-family: var(--font-head);
}
.stats-strip dd {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-soft);
    margin: 8px 0 0;
}

@media (max-width: 860px) {
    .stats-strip {
        flex-wrap: wrap;
    }
    .stats-strip > div {
        flex: 1 1 50%;
        padding: 24px;
        border-bottom: 1.5px solid var(--hairline-soft);
    }
    .stats-strip > div:nth-last-child(-n + 2) {
        border-bottom: none;
    }
    .stats-strip > div:nth-child(2n) {
        border-right: none;
    }
}

/* ---------- team grid (about) ---------- */

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.team-card__portrait {
    aspect-ratio: 1 / 1;
    background: var(--scan-img), var(--stripe-bg);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    margin-bottom: 14px;
    display: flex;
    align-items: flex-end;
    padding: 12px;
}
.team-card__portrait span {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--placeholder-text);
}
.team-card h3 {
    font-weight: 700;
    font-size: 17px;
    margin: 0;
}
.team-card p {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-soft);
    margin: 4px 0 0;
}

@media (max-width: 1080px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- contact page ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}
.contact-form-col {
    padding: 68px var(--pad-x);
    border-right: 2px solid var(--ink);
    background-image: var(--scan-light);
}
.contact-form-col h1 {
    font-weight: 700;
    font-size: clamp(32px, 3.6vw, 52px);
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}
.contact-form-col > p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 36px;
}

.contact-aside {
    padding: 68px var(--pad-x);
    background: var(--ink);
    color: var(--paper);
}
.contact-aside .kicker {
    color: var(--amber);
    margin-bottom: 26px;
}
.contact-aside__items {
    display: grid;
    gap: 26px;
}
.contact-aside__label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--dark-soft);
    margin-bottom: 6px;
    text-transform: uppercase;
}
.contact-aside__value {
    font-weight: 700;
    font-size: 22px;
    color: #fff;
}
a.contact-aside__value:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.contact-aside__address {
    font-size: 16px;
    color: var(--dark-muted);
    line-height: 1.55;
    font-style: normal;
}
.contact-aside__divider {
    height: 1px;
    background: var(--dark-hairline);
    margin: 34px 0;
    border: none;
}
.offer-chips {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.offer-chips li {
    border: 1.5px solid var(--dark-hairline);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14.5px;
}

.reassurance-strip {
    background: var(--stripe-bg);
    border-top: 2px solid var(--ink);
    padding: 30px var(--pad-x);
    display: flex;
    gap: 40px;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    list-style: none;
    margin: 0;
    flex-wrap: wrap;
}
.reassurance-strip li::before {
    content: '> ';
}

.useful-block {
    margin-top: 44px;
    border-top: 1.5px solid var(--hairline-soft);
    padding-top: 30px;
}
.useful-block__title {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kicker);
    margin: 0 0 18px;
    font-weight: 500;
}

@media (max-width: 980px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
    .contact-form-col {
        border-right: none;
        border-bottom: 2px solid var(--ink);
    }
    .reassurance-strip {
        gap: 14px 28px;
    }
}

/* ---------- forms ---------- */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.field--full {
    grid-column: 1 / -1;
}

.field--checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--panel);
    border: 1.5px solid var(--hairline);
    border-radius: 6px;
    padding: 16px 18px;
}
.field.field--checkbox input {
    width: 18px;
    height: 18px;
    flex: none;
    margin: 1px 0 0;
    padding: 0;
    box-shadow: none;
    accent-color: var(--amber);
}
.field.field--checkbox label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--font-head);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-soft);
    margin-bottom: 8px;
}
.field label .optional {
    text-transform: none;
    color: var(--dark-soft);
}
.field input,
.field select,
.field textarea {
    width: 100%;
    background: var(--panel);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    padding: 14px 16px;
    font-size: 15px;
    font-family: var(--font-head);
    color: var(--ink);
    box-shadow: 3px 3px 0 var(--shadow-tan);
}
.field input::placeholder,
.field textarea::placeholder {
    color: var(--placeholder-text);
}
.field textarea {
    min-height: 120px;
    resize: vertical;
}
.field .hint {
    font-family: var(--font-head);
    font-size: 13.5px;
    color: var(--text-soft);
    margin: -2px 0 8px;
    text-transform: none;
    letter-spacing: 0;
}
.field--invalid input,
.field--invalid select,
.field--invalid textarea {
    border-color: var(--error);
}
.field__error {
    color: var(--error);
    font-size: 13.5px;
    margin: 8px 0 0;
    font-family: var(--font-mono);
}

.form-errors {
    border: 1.5px solid var(--error);
    border-left-width: 6px;
    background: var(--panel);
    border-radius: 6px;
    padding: 18px 22px;
    margin-bottom: 26px;
}
.form-errors h2 {
    font-size: 17px;
    margin: 0 0 10px;
}
.form-errors ul {
    margin: 0;
    padding-left: 18px;
}
.form-errors a {
    color: var(--error);
    text-decoration: underline;
}
.form-errors p {
    margin: 0;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.form-note {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-soft);
    max-width: 260px;
    line-height: 1.5;
    margin: 0;
}

/* honeypot — off-screen, hidden from AT and tabbing */
.field--website {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

/* ---------- insights ---------- */

.insight-card__topic {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kicker);
    margin: 0 0 10px;
}
.insight-card__status {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11.5px;
    border: 1.5px solid var(--hairline);
    border-radius: 999px;
    padding: 4px 12px;
    color: var(--text-soft);
    margin-top: 16px;
}

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

.site-footer {
    border-top: 2px solid var(--ink);
}
.footer-links {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px var(--pad-x) 8px;
}
.footer-links h2 {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kicker);
    margin: 0 0 14px;
    font-weight: 500;
}
.footer-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 9px;
}
.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-links__tagline {
    font-size: 14.5px;
    color: var(--text-soft);
    line-height: 1.6;
    margin: 12px 0 0;
    max-width: 300px;
}

.footer-bar {
    padding: 32px var(--pad-x) 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: var(--text-soft);
    font-family: var(--font-mono);
    font-size: 13px;
    flex-wrap: wrap;
}
.footer-bar .brand__name {
    font-size: 18px;
}
.footer-bar__contact {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-bar__contact a:hover {
    color: var(--ink);
}
.footer-legal {
    padding: 0 var(--pad-x) 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-soft);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-legal a:hover {
    color: var(--ink);
}

@media (max-width: 1080px) {
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 560px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ---------- scroll reveal (progressive enhancement) ---------- */

@media (prefers-reduced-motion: no-preference) {
    html.js .rv {
        opacity: 0;
        transform: translateY(14px);
        transition:
            opacity 0.55s ease,
            transform 0.55s ease;
    }
    html.js .rv.in {
        opacity: 1;
        transform: none;
    }
}

/* ---------- error pages ---------- */

.error-page {
    padding: 96px var(--pad-x) 120px;
    background-image: var(--scan-light);
}
.error-page h1 {
    font-weight: 700;
    font-size: clamp(40px, 5vw, 72px);
    letter-spacing: -0.03em;
    margin: 18px 0;
}
.error-page p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 32px;
}
.error-page pre {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--panel);
    border: 1.5px solid var(--ink);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    color: var(--text-muted);
}

/* ---------- legal / prose pages ---------- */

.prose {
    padding: 64px var(--pad-x);
    max-width: 860px;
}
.prose h1 {
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -0.03em;
    margin: 0 0 24px;
}
.prose h2 {
    font-size: 24px;
    margin: 36px 0 12px;
}
.prose p,
.prose li {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-muted);
}
.prose .notice {
    font-family: var(--font-mono);
    font-size: 13.5px;
    border: 1.5px solid var(--amber);
    border-radius: 8px;
    background: var(--panel);
    padding: 16px 20px;
    color: var(--text-muted);
}
.prose h3 {
    font-size: 18px;
    margin: 26px 0 8px;
}
.prose ul {
    margin: 12px 0;
    padding-left: 20px;
}
.prose li {
    margin-bottom: 6px;
}
.prose a {
    color: var(--kicker);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.prose .updated {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-soft);
    margin-top: -12px;
}
.prose .table-wrap {
    overflow-x: auto;
}
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}
.prose th,
.prose td {
    border: 1.5px solid var(--hairline);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
    color: var(--text-muted);
    line-height: 1.5;
}
.prose th {
    background: var(--stripe-bg);
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
}

/* ---------- thank you ---------- */

.thanks-page {
    padding: 110px var(--pad-x) 130px;
    background-image: var(--scan-light);
    text-align: center;
}
.thanks-page h1 {
    font-size: clamp(36px, 4.5vw, 64px);
    letter-spacing: -0.03em;
    margin: 0 0 18px;
}
.thanks-page p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 34px;
    line-height: 1.65;
}
.thanks-page .hero__actions {
    justify-content: center;
}

/* Cookie consent banner (shown only when analytics is configured and the
   visitor has not yet chosen; toggled via the [hidden] attribute in JS) */
.consent-banner {
    position: fixed;
    left: var(--pad-x);
    right: var(--pad-x);
    bottom: clamp(16px, 3vw, 28px);
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
    max-width: 940px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--panel);
    border: 1.5px solid var(--ink);
    border-radius: 6px;
    box-shadow: 5px 5px 0 var(--ink);
}
.consent-banner[hidden] {
    display: none;
}
.consent-banner__text {
    flex: 1 1 320px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
}
.consent-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.consent-banner__btn {
    flex: 0 0 auto;
}
@media (max-width: 640px) {
    .consent-banner__actions {
        width: 100%;
    }
    .consent-banner__btn {
        flex: 1 1 auto;
    }
}
