/* ==========================================================================
   Harken Innovations — Design System  ·  "Ideas, engineered."
   Editorial-technical: warm paper canvas, ink chapters, blueprint hairlines.
   Mobile-first. Breakpoints: 640 (sm) · 960 (md) · 1240 (lg)

   1 Tokens  2 Base  3 Layout  4 Type  5 Buttons & links  6 Header & nav
   7 Home hero  8 Product mock-ups  9 Sections  10 Inner pages  11 Forms
   12 Footer  13 Prose  14 Motion  15 Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Brand (from the logo) */
    --blue-50: #edf3f7;
    --blue-100: #d6e5ef;
    --blue-300: #8fb6cf;
    --blue-500: #437fa5;           /* logo wordmark */
    --blue-600: #36698a;           /* text & controls: 5.4:1 on paper */
    --blue-700: #2a5370;
    --signal: #3fb98a;             /* logo bulb green — accents on ink only */
    --signal-ink: #1f7a57;         /* green text on paper: 5.0:1 */
    --indigo: #4a5aa0;             /* logo bulb base */

    /* Neutrals */
    --paper: #f6f5f1;              /* page canvas */
    --paper-2: #efede7;            /* alternate band */
    --card: #fcfbf9;
    --ink: #0b1620;                /* headings & dark chapters */
    --ink-2: #13222f;
    --ink-3: #1e3140;
    --text: #3b4650;               /* body on paper: 8.9:1 */
    --muted: #626c75;              /* secondary on paper: 4.9:1 */
    --line: #dedad1;               /* hairlines on paper */
    --line-strong: #c9c4b8;
    --on-ink: #e9eef2;
    --on-ink-muted: #95a3af;       /* 6.6:1 on ink */
    --line-ink: rgba(255, 255, 255, 0.12);

    /* Type */
    --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
    --f-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
    --t-hero: clamp(2.75rem, 1.4rem + 6vw, 6.25rem);
    --t-1: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);
    --t-2: clamp(1.875rem, 1.4rem + 2vw, 3rem);
    --t-3: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
    --t-4: 1.125rem;
    --t-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
    --t-body: 1.0625rem;
    --t-sm: 0.9375rem;
    --t-xs: 0.8125rem;
    --t-label: 0.75rem;

    /* Space (4px base) */
    --s1: 0.25rem;
    --s2: 0.5rem;
    --s3: 0.75rem;
    --s4: 1rem;
    --s5: 1.25rem;
    --s6: 1.5rem;
    --s8: 2rem;
    --s10: 2.5rem;
    --s12: 3rem;
    --s16: 4rem;
    --s20: 5rem;
    --s24: 6rem;
    --section: clamp(4.5rem, 3rem + 6vw, 9rem);
    --gutter: 1.25rem;
    --max: 1280px;

    /* Shape & depth */
    --r-xs: 6px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-pill: 999px;
    --shadow-1: 0 1px 2px rgba(11, 22, 32, 0.06), 0 2px 8px rgba(11, 22, 32, 0.04);
    --shadow-2: 0 2px 6px rgba(11, 22, 32, 0.05), 0 16px 40px -8px rgba(11, 22, 32, 0.14);
    --shadow-3: 0 4px 12px rgba(11, 22, 32, 0.06), 0 40px 80px -20px rgba(11, 22, 32, 0.28);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --fast: 160ms;
    --med: 320ms;

    --header-h: 68px;
}

@media (min-width: 640px) {
    :root { --gutter: 2rem; }
}

@media (min-width: 1240px) {
    :root { --gutter: 2.5rem; --header-h: 76px; }
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

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

body {
    margin: 0;
    font-family: var(--f-sans);
    font-size: var(--t-body);
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--blue-600);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--blue-700);
}

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

.on-ink :focus-visible {
    outline-color: var(--signal);
}

::selection {
    color: var(--ink);
    background: var(--blue-100);
}

.icon {
    display: inline-block;
    flex-shrink: 0;
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.125em;
}

.skip-link {
    position: absolute;
    top: -120px;
    left: var(--s4);
    z-index: 1000;
    padding: var(--s3) var(--s5);
    font-weight: 600;
    color: #fff;
    background: var(--ink);
    border-radius: var(--r-sm);
}

.skip-link:focus {
    top: var(--s3);
    color: #fff;
}

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

/* 3. Layout ---------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: calc(var(--max) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section {
    position: relative;
    padding-block: var(--section);
}

/* Consecutive paper sections share one gap instead of two */
.section:not(.band):not(.on-ink) + .section:not(.band):not(.on-ink) {
    padding-top: 0;
}

.band {
    background: var(--paper-2);
}

.on-ink {
    color: var(--on-ink-muted);
    background: var(--ink);
}

.on-ink h1,
.on-ink h2,
.on-ink h3,
.on-ink h4 {
    color: #fff;
}

.on-ink a:not(.btn) {
    color: var(--on-ink);
}

/* 12-column editorial grid */
.cols {
    display: grid;
    gap: var(--s10) var(--s8);
}

@media (min-width: 960px) {
    .cols { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .c-4 { grid-column: span 4; }
    .c-5 { grid-column: span 5; }
    .c-6 { grid-column: span 6; }
    .c-7 { grid-column: span 7; }
    .c-8 { grid-column: span 8; }
    .c-12 { grid-column: 1 / -1; }
    /* Offsets run to the right edge: .c-5.start-8 = columns 8–12 */
    .start-6 { grid-column: 6 / -1; }
    .start-7 { grid-column: 7 / -1; }
    .start-8 { grid-column: 8 / -1; }
    .start-9 { grid-column: 9 / -1; }
    .align-end { align-self: end; }
    .align-center { align-self: center; }
    .sticky-col { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

.grid-2,
.grid-3 {
    display: grid;
    gap: var(--s6);
}

@media (min-width: 640px) {
    .grid-2,
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Blueprint frame: hairline box with corner marks */
.frame {
    position: relative;
    border: 1px solid var(--line);
}

.frame::before,
.frame::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-color: var(--line-strong);
    border-style: solid;
    pointer-events: none;
}

.frame::before {
    top: -5px;
    left: -5px;
    border-width: 1px 0 0 1px;
}

.frame::after {
    right: -5px;
    bottom: -5px;
    border-width: 0 1px 1px 0;
}

.on-ink .frame {
    border-color: var(--line-ink);
}

.on-ink .frame::before,
.on-ink .frame::after {
    border-color: rgba(255, 255, 255, 0.3);
}

/* 4. Type ------------------------------------------------------------------ */
h1,
h2,
h3,
h4 {
    margin: 0 0 var(--s4);
    font-family: var(--f-sans);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
}

h1 {
    font-size: var(--t-1);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

h2 {
    font-size: var(--t-2);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

h3 {
    font-size: var(--t-3);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h4,
.h4 {
    font-size: var(--t-4);
    font-weight: 500;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 var(--s4);
    text-wrap: pretty;
}

.serif {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.serif-blue {
    color: var(--blue-600);
}

.on-ink .serif-blue {
    color: var(--blue-300);
}

.lead {
    max-width: 38rem;
    font-size: var(--t-lead);
    line-height: 1.55;
    color: var(--text);
}

.on-ink .lead {
    color: var(--on-ink-muted);
}

.mono {
    font-family: var(--f-mono);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Section label: "01 — Services" */
.label {
    display: inline-flex;
    gap: var(--s3);
    align-items: center;
    margin-bottom: var(--s6);
    font-family: var(--f-mono);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.label b {
    font-weight: 500;
    color: var(--blue-600);
}

.label::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--line-strong);
}

.on-ink .label {
    color: var(--on-ink-muted);
}

.on-ink .label b {
    color: var(--signal);
}

.on-ink .label::after {
    background: var(--line-ink);
}

.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--signal);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(63, 185, 138, 0.18);
}

.head {
    max-width: 52rem;
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}

.head p:last-child {
    margin-bottom: 0;
}

/* A heading split across grid columns: one shared gap below the row, tight gap between parts */
.cols > .head {
    margin-bottom: 0;
}

.cols:has(> .head) {
    row-gap: var(--s5);
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 4.5rem);
}

/* 5. Buttons & links ------------------------------------------------------- */
.btn {
    display: inline-flex;
    gap: var(--s3);
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0.8rem 1.35rem;
    font-family: var(--f-sans);
    font-size: var(--t-sm);
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease),
                border-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.btn .icon {
    font-size: 0.85em;
    transition: transform var(--fast) var(--ease);
}

.btn:hover .icon-go {
    transform: translateX(3px);
}

.btn:active {
    transform: translateY(1px);
}

.btn-ink {
    color: #fff;
    background: var(--ink);
}

.btn-ink:hover {
    color: #fff;
    background: var(--blue-700);
}

.btn-blue {
    color: #fff;
    background: var(--blue-600);
}

.btn-blue:hover {
    color: #fff;
    background: var(--blue-700);
}

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

.btn-line:hover {
    color: var(--ink);
    background: var(--card);
    border-color: var(--ink);
}

.btn-paper {
    color: var(--ink);
    background: var(--paper);
}

.btn-paper:hover {
    color: var(--ink);
    background: #fff;
}

.btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-ghost:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.7);
}

.btn-sm {
    min-height: 40px;
    padding: 0.5rem 1rem;
    font-size: var(--t-xs);
}

.btn-wide {
    width: 100%;
}

.btn[disabled],
.btn[aria-busy="true"] {
    cursor: progress;
    opacity: 0.7;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    align-items: center;
}

.go {
    display: inline-flex;
    gap: var(--s2);
    align-items: center;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 2px;
    transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.go .icon {
    font-size: 0.8em;
    transition: transform var(--fast) var(--ease);
}

.go:hover {
    color: var(--blue-600);
    border-color: var(--blue-600);
}

.go:hover .icon {
    transform: translateX(3px);
}

.on-ink .go {
    color: #fff;
    border-color: var(--line-ink);
}

.on-ink .go:hover {
    color: var(--signal);
    border-color: var(--signal);
}

/* 6. Header & navigation --------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color var(--med) var(--ease), background-color var(--med) var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
}

@media (min-width: 1240px) {
    .site-header.is-scrolled {
        background: rgba(246, 245, 241, 0.86);
        -webkit-backdrop-filter: saturate(160%) blur(14px);
        backdrop-filter: saturate(160%) blur(14px);
    }
}

.header-bar {
    display: flex;
    gap: var(--s6);
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand img {
    width: 142px;
    height: auto;
}

@media (min-width: 1240px) {
    .brand img { width: 158px; }
}

.header-end {
    display: flex;
    gap: var(--s3);
    align-items: center;
}

.header-cta {
    display: none;
}

.menu-btn {
    display: inline-flex;
    gap: var(--s2);
    align-items: center;
    height: 42px;
    padding: 0 var(--s4);
    font: inherit;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
}

.menu-btn .bars {
    position: relative;
    width: 16px;
    height: 10px;
}

.menu-btn .bars::before,
.menu-btn .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--med) var(--ease), top var(--med) var(--ease);
}

.menu-btn .bars::before { top: 0; }
.menu-btn .bars::after { top: 8.5px; }

.nav-open .menu-btn .bars::before { top: 4.25px; transform: rotate(45deg); }
.nav-open .menu-btn .bars::after { top: 4.25px; transform: rotate(-45deg); }

/* Mobile panel */
.site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: var(--s2) var(--gutter) var(--s10);
    overflow-y: auto;
    visibility: hidden;
    background: var(--paper);
    opacity: 0;
    transition: opacity var(--med) var(--ease), visibility 0s linear var(--med);
}

.nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transition: opacity var(--med) var(--ease);
}

.nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list > li {
    border-bottom: 1px solid var(--line);
}

.nav-link,
.nav-toggle {
    display: flex;
    gap: var(--s2);
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--s5) 0;
    font: inherit;
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: 0;
}

.nav-link[aria-current="page"],
.nav-link:hover,
.nav-toggle:hover {
    color: var(--blue-600);
}

.nav-toggle .icon {
    font-size: 0.7rem;
    color: var(--muted);
    transition: transform var(--med) var(--ease);
}

.nav-toggle[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.nav-panel {
    display: none;
    padding-bottom: var(--s5);
}

.nav-toggle[aria-expanded="true"] + .nav-panel {
    display: block;
}

.nav-panel ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px var(--s4);
    align-items: baseline;
    padding: var(--s3) var(--s3);
    color: var(--ink);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: background-color var(--fast) var(--ease);
}

.nav-item:hover,
.nav-item[aria-current="page"] {
    color: var(--ink);
    background: var(--paper-2);
}

.nav-item .mono,
.nav-item .monogram {
    grid-row: span 2;
    align-self: start;
    color: var(--blue-600);
}

.nav-item strong {
    font-size: var(--t-sm);
    font-weight: 500;
}

.nav-item small {
    grid-column: 2;
    font-size: var(--t-xs);
    line-height: 1.4;
    color: var(--muted);
}

.nav-item .icon {
    margin-left: var(--s1);
    font-size: 0.65em;
    color: var(--muted);
}

.nav-panel-foot {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s6);
    margin-top: var(--s3);
    padding: var(--s4) var(--s3) 0;
    border-top: 1px dashed var(--line);
}

.nav-mobile-foot {
    display: grid;
    gap: var(--s3);
    margin-top: var(--s8);
}

.nav-mobile-foot p {
    margin: var(--s4) 0 0;
    font-size: var(--t-sm);
    color: var(--muted);
}

@media (min-width: 1240px) {
    .menu-btn,
    .nav-mobile-foot { display: none; }

    .header-cta { display: inline-flex; }

    .site-nav {
        position: static;
        flex-direction: row;
        padding: 0;
        overflow: visible;
        visibility: visible;
        background: none;
        opacity: 1;
    }

    .nav-list {
        display: flex;
        gap: var(--s1);
        align-items: center;
    }

    .nav-list > li {
        position: relative;
        border: 0;
    }

    .nav-link,
    .nav-toggle {
        width: auto;
        padding: var(--s2) var(--s4);
        font-size: var(--t-sm);
        letter-spacing: 0;
        border-radius: var(--r-pill);
    }

    .nav-link:hover,
    .nav-toggle:hover,
    .nav-toggle[aria-expanded="true"] {
        color: var(--ink);
        background: var(--paper-2);
    }

    .nav-panel {
        position: absolute;
        top: calc(100% + 14px);
        left: -12px;
        width: 420px;
        padding: var(--s3);
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        box-shadow: var(--shadow-3);
    }

    .nav-panel::before {
        content: "";
        position: absolute;
        inset: -16px 0 auto;
        height: 16px;
    }

    .has-panel:hover > .nav-panel,
    .has-panel:focus-within > .nav-panel {
        display: block;
    }

    .has-panel:hover > .nav-toggle .icon {
        transform: rotate(180deg);
    }
}

/* 7. Home hero ------------------------------------------------------------- */
.hero {
    position: relative;
    padding-top: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
    overflow: hidden;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3);
    align-items: center;
    margin-bottom: var(--s8);
    font-size: var(--t-sm);
    color: var(--muted);
}

.hero-kicker .pill {
    display: inline-flex;
    gap: var(--s2);
    align-items: center;
    padding: 0.35rem 0.8rem;
    font-family: var(--f-mono);
    font-size: var(--t-label);
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}

.hero-title {
    max-width: 15ch;
    margin-bottom: var(--s8);
    font-size: var(--t-hero);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.hero-title .serif {
    letter-spacing: -0.03em;
}

.hero-copy {
    display: grid;
    gap: var(--s8);
    align-items: end;
}

.hero-copy .lead {
    margin: 0;
}

@media (min-width: 960px) {
    .hero-copy { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s16); }
}

/* Spec strip — factual key/value row under the hero */
.spec-strip {
    display: grid;
    margin: clamp(3rem, 2rem + 4vw, 5.5rem) 0 0;
    padding: 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.spec-strip > div {
    display: flex;
    gap: var(--s4);
    justify-content: space-between;
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--line);
}

.spec-strip dt {
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.spec-strip dd {
    margin: 0;
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--ink);
    text-align: right;
}

@media (min-width: 960px) {
    .spec-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
    .spec-strip > div {
        flex-direction: column;
        gap: var(--s2);
        justify-content: flex-start;
        padding: var(--s5) var(--s6);
        border-bottom: 0;
        border-left: 1px solid var(--line);
    }
    .spec-strip > div:first-child { padding-left: 0; border-left: 0; }
    .spec-strip dd { text-align: left; }
}

/* Hero stage: product console composition */
.stage {
    position: relative;
    margin-top: clamp(3rem, 2rem + 4vw, 5rem);
    padding: clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
    overflow: hidden;
    background:
        linear-gradient(var(--line-ink) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, var(--line-ink) 1px, transparent 1px) 0 0 / 48px 48px,
        radial-gradient(70% 90% at 80% 0%, rgba(67, 127, 165, 0.45), transparent 60%),
        radial-gradient(50% 70% at 0% 100%, rgba(63, 185, 138, 0.22), transparent 60%),
        var(--ink);
    border-radius: var(--r-lg);
}

.stage-grid {
    position: relative;
    display: grid;
    gap: var(--s6);
    align-items: start;
}

@media (min-width: 960px) {
    .stage-grid { grid-template-columns: 1.15fr 1fr; gap: var(--s8); }
    .stage-grid > :last-child { margin-top: var(--s16); }
}

.stage-caption {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s6);
    justify-content: space-between;
    margin-top: var(--s8);
    padding-top: var(--s5);
    font-size: var(--t-sm);
    color: var(--on-ink-muted);
    border-top: 1px solid var(--line-ink);
}

.stage-caption .mono {
    color: var(--on-ink);
}

/* 8. Product mock-ups (decorative, built in HTML/CSS) ---------------------- */
.mock {
    position: relative;
    overflow: hidden;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--ink);
    background: var(--card);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-3);
}

.mock-bar {
    display: flex;
    gap: var(--s3);
    align-items: center;
    padding: 0.7rem 1rem;
    background: #f1efe9;
    border-bottom: 1px solid var(--line);
}

.mock-bar i {
    width: 9px;
    height: 9px;
    background: var(--line-strong);
    border-radius: 50%;
}

.mock-bar i:nth-child(1) { background: #e8a598; }
.mock-bar i:nth-child(2) { background: #e9cf8f; }
.mock-bar i:nth-child(3) { background: #a7d3b8; }

.mock-bar span {
    margin-left: auto;
    font-family: var(--f-mono);
    font-size: 0.6875rem;
    color: var(--muted);
}

.mock-body {
    padding: 1rem 1.1rem 1.2rem;
}

.mock-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.mock-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 0.2rem 0.55rem;
    font-family: var(--f-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--blue-700);
    background: var(--blue-50);
    border-radius: var(--r-pill);
}

.mock-chip.ok {
    color: var(--signal-ink);
    background: #e3f4ec;
}

.mock-chip.warn {
    color: #8a5a10;
    background: #f8ecd6;
}

.mock-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mock-rows li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--line);
}

.mock-rows .q {
    font-family: var(--f-mono);
    color: var(--muted);
}

.mock-rows .amt {
    min-width: 4.5rem;
    font-family: var(--f-mono);
    text-align: right;
}

.mock-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.8rem;
    font-weight: 600;
}

.mock-total b {
    font-family: var(--f-mono);
    font-size: 1rem;
}

.mock-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

.mock-btns span {
    padding: 0.55rem;
    font-weight: 600;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
}

.mock-btns span:last-child {
    color: #fff;
    background: var(--blue-600);
    border-color: var(--blue-600);
}

.mock-tables {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.mock-tables span {
    padding: 0.55rem 0;
    font-family: var(--f-mono);
    font-size: 0.6875rem;
    text-align: center;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
}

.mock-tables .busy {
    color: var(--blue-700);
    background: var(--blue-50);
    border-color: var(--blue-100);
}

.mock-tables .ready {
    color: var(--signal-ink);
    background: #e3f4ec;
    border-color: #c4e7d6;
}

.mock-ticket {
    padding: 0.8rem 0.9rem;
    background: #fffdf7;
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
}

.mock-ticket header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-family: var(--f-mono);
    font-size: 0.6875rem;
    color: var(--muted);
}

.mock-ticket ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mock-ticket li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.mock-wrap {
    position: relative;
}

.mock-label {
    display: flex;
    gap: var(--s3);
    align-items: center;
    margin-bottom: var(--s4);
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-ink-muted);
}

.mock-label strong {
    font-weight: 500;
    color: #fff;
}

/* 9. Sections -------------------------------------------------------------- */

/* Definition block: "harken — to listen" */
.define {
    padding: clamp(2rem, 1.5rem + 3vw, 4rem);
    background: var(--card);
}

.define-word {
    margin: 0 0 var(--s2);
    font-family: var(--f-serif);
    font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
    font-style: italic;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.define-meta {
    margin-bottom: var(--s6);
    font-family: var(--f-mono);
    font-size: var(--t-xs);
    color: var(--muted);
}

.define-text {
    margin: 0;
    font-size: var(--t-3);
    line-height: 1.35;
    letter-spacing: -0.015em;
    color: var(--ink);
}

/* Numbered principles */
.principles {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.principles li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    gap: var(--s4);
    padding: var(--s6) 0;
    border-bottom: 1px solid var(--line);
}

.principles .mono {
    padding-top: 0.3rem;
    color: var(--blue-600);
}

.principles h3 {
    margin-bottom: var(--s2);
    font-size: var(--t-4);
}

.principles p {
    margin: 0;
    font-size: var(--t-sm);
}

/* Services index — editorial list rows */
.index {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.index-row {
    position: relative;
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    gap: var(--s2) var(--s4);
    align-items: start;
    padding: var(--s6) 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: background-color var(--med) var(--ease);
}

.index-row .mono {
    padding-top: 0.55rem;
    color: var(--muted);
    transition: color var(--fast) var(--ease);
}

.index-row h3 {
    margin: 0;
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);
    letter-spacing: -0.035em;
    transition: transform var(--med) var(--ease), color var(--fast) var(--ease);
}

.index-row .detail {
    display: grid;
    grid-column: 2 / -1;
    gap: var(--s3);
}

.index-row p {
    max-width: 34rem;
    margin: 0;
    font-size: var(--t-sm);
}

.index-row .index-arrow {
    grid-row: 1;
    grid-column: 3;
}

.index-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: 0.15rem;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--med) var(--ease), border-color var(--fast) var(--ease);
}

.index-arrow .icon {
    font-size: 0.85rem;
    transform: rotate(-45deg);
    transition: transform var(--med) var(--ease);
}

a.index-row:hover {
    color: inherit;
}

a.index-row:hover .mono,
a.index-row:hover h3 {
    color: var(--blue-600);
}

a.index-row:hover .index-arrow {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

a.index-row:hover .index-arrow .icon {
    transform: rotate(0);
}

@media (min-width: 960px) {
    .index-row {
        grid-template-columns: 4rem minmax(0, 1.1fr) minmax(0, 1fr) auto;
        gap: var(--s8);
        align-items: center;
        padding: var(--s8) var(--s4) var(--s8) 0;
    }

    .index-row .detail,
    .index-row .index-arrow { grid-row: auto; grid-column: auto; }
    .index-row .mono { padding-top: 0; }
    a.index-row:hover h3 { transform: translateX(6px); }
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 0.2rem 0.6rem;
    font-family: var(--f-mono);
    font-size: 0.6875rem;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
}

.on-ink .tags li {
    color: var(--on-ink);
    border-color: var(--line-ink);
}

/* Inline "also on request" row */
.also {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3) var(--s6);
    align-items: baseline;
    margin-top: var(--s8);
    font-size: var(--t-sm);
}

.also .mono {
    color: var(--muted);
}

.also ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.also a {
    font-weight: 500;
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
}

.also a:hover {
    color: var(--blue-600);
    text-decoration-color: currentColor;
}

/* Product showcase (on ink) */
.product {
    display: grid;
    gap: var(--s10);
    align-items: center;
    padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem);
    border-top: 1px solid var(--line-ink);
}

.product:last-child {
    padding-bottom: 0;
}

@media (min-width: 960px) {
    .product { grid-template-columns: 1fr 1fr; gap: var(--s16); }
    .product.flip > :first-child { order: 2; }
}

.product-name {
    display: flex;
    gap: var(--s4);
    align-items: center;
    margin-bottom: var(--s5);
}

.product-name h3 {
    margin: 0;
    font-size: var(--t-2);
    letter-spacing: -0.04em;
}

.product-kind {
    display: block;
    margin-bottom: var(--s4);
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--signal);
}

.feature-cols {
    display: grid;
    gap: 0 var(--s8);
    margin: var(--s6) 0 var(--s8);
    padding: 0;
    list-style: none;
}

.feature-cols li {
    display: flex;
    gap: var(--s3);
    align-items: baseline;
    padding: var(--s3) 0;
    font-size: var(--t-sm);
    border-bottom: 1px solid var(--line);
}

.feature-cols li::before {
    content: "";
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    background: var(--blue-500);
    border-radius: 50%;
    transform: translateY(-2px);
}

.on-ink .feature-cols li {
    color: var(--on-ink);
    border-color: var(--line-ink);
}

.on-ink .feature-cols li::before {
    background: var(--signal);
}

@media (min-width: 640px) {
    .feature-cols { grid-template-columns: 1fr 1fr; }
}

.monogram {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    font-family: var(--f-serif);
    font-size: 1.75rem;
    font-style: italic;
    color: var(--ink);
    background: var(--paper);
    border-radius: 14px;
}

.monogram-sm {
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
    border-radius: 9px;
}

/* Process rail */
.rail {
    position: relative;
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.rail li {
    position: relative;
    padding: 0 0 var(--s8) var(--s10);
    counter-increment: step;
}

.rail li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-family: var(--f-mono);
    font-size: 0.6875rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--ink);
    border-radius: 50%;
}

.rail li::after {
    content: "";
    position: absolute;
    top: 32px;
    bottom: 4px;
    left: 13.5px;
    width: 1px;
    background: var(--line-strong);
}

.rail li:last-child::after {
    display: none;
}

.rail h3 {
    margin-bottom: var(--s2);
    font-size: var(--t-4);
    line-height: 1.75rem;
}

.rail p {
    margin: 0;
    font-size: var(--t-sm);
}

.rail .sub {
    display: grid;
    gap: 2px;
    margin: var(--s3) 0 0;
    padding: 0;
    font-size: var(--t-xs);
    color: var(--muted);
    list-style: none;
}

.rail .sub li {
    padding: 0;
    counter-increment: none;
}

.rail .sub li::before,
.rail .sub li::after {
    display: none;
}

@media (min-width: 960px) {
    .rail { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s6); }
    .rail li { padding: var(--s12) 0 0; }
    .rail li::after { top: 13.5px; right: calc(var(--s6) * -1); bottom: auto; left: 36px; width: auto; height: 1px; }
    .rail li:last-child::after { display: block; right: 0; background: linear-gradient(90deg, var(--line-strong), transparent); }
}

.on-ink .rail li::before {
    color: #fff;
    background: var(--ink);
    border-color: var(--signal);
}

.on-ink .rail li::after {
    background: var(--line-ink);
}

.on-ink .rail .sub {
    color: var(--on-ink-muted);
}

@media (min-width: 960px) {
    .on-ink .rail li:last-child::after { background: linear-gradient(90deg, var(--line-ink), transparent); }
}

/* Matrix — hairline grid of differentiators (no cards) */
.matrix {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.matrix > li {
    padding: var(--s8) var(--s6);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background-color var(--med) var(--ease);
}

.matrix > li:hover {
    background: var(--card);
}

.matrix .mono {
    display: block;
    margin-bottom: var(--s8);
    color: var(--blue-600);
}

.matrix h3 {
    margin-bottom: var(--s2);
    font-size: var(--t-4);
}

.matrix p {
    margin: 0;
    font-size: var(--t-sm);
}

@media (min-width: 640px) {
    .matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
    .matrix { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .matrix-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.on-ink .matrix,
.on-ink .matrix > li {
    border-color: var(--line-ink);
}

.on-ink .matrix > li:hover {
    background: var(--ink-2);
}

.on-ink .matrix .mono {
    color: var(--signal);
}

/* Typographic list (industries, audiences) */
.wordlist {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s1) 0;
    margin: 0;
    padding: 0;
    font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.75rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.035em;
    color: var(--ink);
    list-style: none;
}

.wordlist li:not(:last-child)::after {
    content: "/";
    margin: 0 0.4em;
    font-weight: 400;
    color: var(--line-strong);
}

/* Work rows — editorial project list */
.work {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.work-item {
    display: grid;
    gap: var(--s6);
    padding: var(--s10) 0;
    border-bottom: 1px solid var(--line);
}

.work-item h3 {
    margin-bottom: var(--s3);
    font-size: var(--t-2);
    letter-spacing: -0.04em;
}

.work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2) var(--s6);
    margin: 0;
    padding: 0;
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    list-style: none;
}

@media (min-width: 960px) {
    .work-item { grid-template-columns: 4rem 1.1fr 1fr; gap: var(--s10); align-items: start; }
}

/* CTA chapter */
.cta {
    position: relative;
    padding-block: clamp(5rem, 3.5rem + 7vw, 10rem);
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(67, 127, 165, 0.35), transparent 60%),
        radial-gradient(40% 60% at 0% 100%, rgba(63, 185, 138, 0.16), transparent 60%),
        var(--ink);
}

.cta h2 {
    max-width: 14ch;
    margin-bottom: var(--s8);
    font-size: clamp(2.5rem, 1.4rem + 5vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.cta-contacts {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-ink);
}

.cta-contacts a,
.cta-contacts div {
    display: flex;
    gap: var(--s4);
    align-items: center;
    justify-content: space-between;
    padding: var(--s5) 0;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid var(--line-ink);
}

.cta-contacts span {
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--on-ink-muted);
}

.cta-contacts strong {
    font-size: var(--t-4);
    font-weight: 500;
    text-align: right;
}

.cta-contacts a:hover strong {
    color: var(--signal);
}

/* 10. Inner pages ---------------------------------------------------------- */
.page-head {
    padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
    padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.page-head h1 {
    max-width: 18ch;
    margin-bottom: var(--s6);
}

.page-head .lead {
    margin-bottom: var(--s8);
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s2);
    margin: 0 0 var(--s10);
    padding: 0;
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.04em;
    color: var(--muted);
    list-style: none;
}

.crumbs li + li::before {
    content: "/";
    margin-right: var(--s2);
    color: var(--line-strong);
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--blue-600);
}

/* Spec sheet: definition list in a frame */
.sheet {
    margin: 0;
    padding: var(--s2) var(--s6);
    background: var(--card);
}

.sheet > div {
    display: grid;
    gap: var(--s1);
    padding: var(--s4) 0;
    border-bottom: 1px solid var(--line);
}

.sheet > div:last-child {
    border-bottom: 0;
}

.sheet dt {
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.sheet dd {
    margin: 0;
    font-size: var(--t-sm);
    color: var(--ink);
}

@media (min-width: 640px) {
    .sheet > div { grid-template-columns: 9rem 1fr; gap: var(--s4); }
}

.sheet-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--s4) 0;
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
}

/* Figure with blueprint frame */
.figure {
    margin: 0;
    padding: var(--s3);
    background: var(--card);
}

.figure img {
    width: 100%;
    border-radius: var(--r-sm);
}

.figure figcaption {
    display: flex;
    justify-content: space-between;
    padding: var(--s3) var(--s1) 0;
    font-family: var(--f-mono);
    font-size: var(--t-label);
    color: var(--muted);
}

/* Offer rows — two-column definition rows */
.offers {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.offers > li {
    display: grid;
    gap: var(--s3) var(--s8);
    padding: var(--s8) 0;
    border-bottom: 1px solid var(--line);
}

.offers h3 {
    margin: 0;
    font-size: var(--t-3);
}

.offers .mono {
    display: block;
    margin-bottom: var(--s2);
    color: var(--blue-600);
}

.offers p {
    margin: 0 0 var(--s3);
}

.offers .tags {
    margin-top: var(--s2);
}

@media (min-width: 960px) {
    .offers > li { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* Engagement models */
.models {
    display: grid;
    gap: var(--s4);
    margin: 0;
    padding: 0;
    list-style: none;
}

.models li {
    padding: var(--s8) var(--s6);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
}

.models .mono {
    display: block;
    margin-bottom: var(--s6);
    color: var(--blue-600);
}

.models h3 {
    margin-bottom: var(--s2);
    font-size: var(--t-4);
}

.models p {
    margin: 0;
    font-size: var(--t-sm);
}

@media (min-width: 640px) {
    .models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1240px) {
    .models { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Other services mini-list */
.svc-mini {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.svc-mini a {
    display: grid;
    grid-template-columns: 2.5rem 1fr auto;
    gap: var(--s4);
    align-items: center;
    padding: var(--s5) 0;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: color var(--fast) var(--ease);
}

.svc-mini .mono {
    color: var(--muted);
}

.svc-mini-name {
    font-size: var(--t-4);
    font-weight: 500;
    letter-spacing: -0.015em;
}

.svc-mini small {
    display: block;
    font-size: var(--t-xs);
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
}

.svc-mini .icon {
    font-size: 0.85rem;
    transition: transform var(--fast) var(--ease);
}

.svc-mini a:hover {
    color: var(--blue-600);
}

.svc-mini a:hover .icon {
    transform: translateX(4px);
}

/* Status pages */
.status {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--header-h) - 120px);
    padding-block: var(--section);
    text-align: center;
}

.status h1 {
    max-width: 16ch;
    margin-inline: auto;
}

.status .lead {
    margin: 0 auto var(--s8);
}

.status .actions {
    justify-content: center;
}

.status-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--s8);
    font-size: 1.4rem;
    color: var(--signal-ink);
    background: #e3f4ec;
    border-radius: 50%;
}

/* 11. Forms ---------------------------------------------------------------- */
.contact-grid {
    display: grid;
    gap: var(--s12);
}

@media (min-width: 960px) {
    .contact-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--s16); align-items: start; }
}

.reach {
    margin: 0 0 var(--s8);
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ink);
}

.reach a,
.reach div,
.reach address {
    font-style: normal;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--s1) var(--s4);
    align-items: center;
    padding: var(--s5) 0;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

.reach span {
    font-family: var(--f-mono);
    font-size: var(--t-label);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.reach strong {
    grid-column: 1;
    font-size: var(--t-4);
    font-weight: 500;
}

.reach .icon {
    grid-row: 1 / span 2;
    grid-column: 2;
    font-size: 0.9rem;
    color: var(--muted);
    transition: transform var(--fast) var(--ease), color var(--fast) var(--ease);
}

.reach a:hover strong,
.reach a:hover .icon {
    color: var(--blue-600);
}

.reach a:hover .icon {
    transform: translateX(3px);
}



.form-panel {
    padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-2);
}

.form-panel h2 {
    margin-bottom: var(--s2);
    font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
}

.form-panel > p {
    margin-bottom: var(--s8);
    color: var(--muted);
}

.form-grid {
    display: grid;
    gap: var(--s5);
}

@media (min-width: 640px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid .full { grid-column: 1 / -1; }
}

.field label {
    display: block;
    margin-bottom: var(--s2);
    font-size: var(--t-sm);
    font-weight: 500;
    color: var(--ink);
}

.field .optional {
    font-weight: 400;
    color: var(--muted);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0.8rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.field select {
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23626c75' d='M207 381L13 187c-9-9-9-25 0-34l23-23c9-9 24-9 34 0l154 153 154-153c10-9 25-9 34 0l23 23c9 9 9 25 0 34L241 381c-9 9-25 9-34 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 11px;
}

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

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(67, 127, 165, 0.16);
}

.field [aria-invalid="true"] {
    border-color: #b42318;
}

.field-error {
    display: none;
    margin: var(--s2) 0 0;
    font-size: var(--t-xs);
    font-weight: 500;
    color: #b42318;
}

.field [aria-invalid="true"] ~ .field-error {
    display: block;
}

.honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.form-note {
    margin: var(--s4) 0 0;
    font-size: var(--t-xs);
    color: var(--muted);
}

.form-status {
    display: none;
    margin-top: var(--s5);
    padding: var(--s4) var(--s5);
    font-size: var(--t-sm);
    border-radius: var(--r-sm);
}

.form-status.is-error {
    display: block;
    color: #7a1a12;
    background: #fdecea;
    border: 1px solid #f5c2bd;
}

.spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

[aria-busy="true"] .spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
    padding-top: clamp(4rem, 3rem + 4vw, 6.5rem);
    font-size: var(--t-sm);
    background: var(--paper);
}

.footer-top {
    display: grid;
    gap: var(--s12);
    padding-bottom: var(--s12);
}

@media (min-width: 960px) {
    .footer-top { grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s10); }
}

.footer-brand img {
    width: 160px;
    margin-bottom: var(--s6);
}

.footer-brand p {
    max-width: 22rem;
    color: var(--muted);
}

.footer-col h2 {
    margin-bottom: var(--s5);
    font-family: var(--f-mono);
    font-size: var(--t-label);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer-col ul {
    display: grid;
    gap: var(--s3);
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col a {
    color: var(--ink);
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--blue-600);
    text-decoration: underline;
}

.footer-col address {
    font-style: normal;
    line-height: 1.55;
    color: var(--text);
}

.social {
    display: flex;
    gap: var(--s2);
    margin: var(--s6) 0 0;
    padding: 0;
    list-style: none;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}

.social a:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s3) var(--s8);
    justify-content: space-between;
    padding-block: var(--s6);
    font-size: var(--t-xs);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s5);
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom a {
    color: var(--muted);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--ink);
}

.whatsapp {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    font-size: 1.6rem;
    color: #fff;
    background: #1f8f4e;
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(11, 22, 32, 0.25);
    transition: transform var(--fast) var(--ease);
}

.whatsapp:hover {
    color: #fff;
    transform: translateY(-2px);
}

.nav-open .whatsapp {
    display: none;
}

/* 13. Prose (legal) -------------------------------------------------------- */
.prose {
    max-width: 44rem;
    font-size: 1rem;
    line-height: 1.7;
}

.prose h2 {
    margin-top: var(--s12);
    padding-top: var(--s8);
    font-size: var(--t-3);
    border-top: 1px solid var(--line);
}

.prose h3 {
    margin-top: var(--s8);
    font-size: var(--t-4);
}

.prose ul,
.prose ol {
    margin: 0 0 var(--s4);
    padding-left: 1.2rem;
}

.prose li {
    margin-bottom: var(--s2);
}

.prose li::marker {
    color: var(--blue-500);
}

.prose strong {
    font-weight: 600;
    color: var(--ink);
}

.prose > :first-child {
    margin-top: 0;
}

.toc {
    margin: 0;
    padding: 0;
    font-size: var(--t-sm);
    list-style: none;
    counter-reset: toc;
}

.toc li {
    border-bottom: 1px solid var(--line);
}

.toc a {
    display: block;
    padding: var(--s3) 0;
    color: var(--text);
    text-decoration: none;
}

.toc a:hover {
    color: var(--blue-600);
}

/* 14. Motion --------------------------------------------------------------- */
.js-motion [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.js-motion [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js-motion [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}

.js-motion [data-reveal-stagger].is-visible > * {
    opacity: 1;
    transform: none;
}

.js-motion [data-reveal-stagger].is-visible > :nth-child(2) { transition-delay: 70ms; }
.js-motion [data-reveal-stagger].is-visible > :nth-child(3) { transition-delay: 140ms; }
.js-motion [data-reveal-stagger].is-visible > :nth-child(4) { transition-delay: 210ms; }
.js-motion [data-reveal-stagger].is-visible > :nth-child(5) { transition-delay: 280ms; }
.js-motion [data-reveal-stagger].is-visible > :nth-child(n+6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .js-motion [data-reveal],
    .js-motion [data-reveal-stagger] > * {
        opacity: 1;
        transform: none;
    }
}

/* 15. Utilities ------------------------------------------------------------ */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--s4); }
.mt-8 { margin-top: var(--s8); }
.mt-12 { margin-top: var(--s12); }
.muted { color: var(--muted); }
.ink { color: var(--ink); }
