/* ============================================================
   Bull Reef Design + Engineering
   Palette: abyssal navy -> surface teal depth column
   Type: Fraunces (display) / Inter (body) / IBM Plex Mono (data)
   ============================================================ */

:root {
    --abyss:      #04121f;
    --deep:       #0a2740;
    --deep-2:     #123a5c;
    --brand:      #30477f;   /* parent-brand tie-in */
    --teal:       #23a89b;   /* living-reef accent */
    --teal-ink:   #1a7f75;   /* teal darkened to clear 4.5:1 on BOTH paper and sand */
    --teal-bright:#3fd0c0;
    --coral:      #ff6b4a;   /* CTA only */
    --coral-dark: #e2543a;
    --coral-ink:  #bd4630;   /* coral darkened to AA for error text on light */

    --sand:       #f4f7fa;
    --paper:      #ffffff;
    --ink:        #0d2438;
    --ink-soft:   #3d556b;
    --mist:       #607384;   /* darkened to AA on paper and sand */
    --line:       #dbe4ee;

    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --wrap: 1180px;
    --r: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.2rem, 4vw, 2.5rem); }

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

a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute; left: 0; top: -60px;
    background: var(--coral); color: var(--abyss);
    padding: 10px 18px; z-index: 1200; font-weight: 700;
    border-radius: 0 0 6px 0; transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }

/* ---------- Shared type ---------- */
.eyebrow {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--teal-bright);
    margin-bottom: 1.1rem;
}
.eyebrow-dark { color: var(--teal-ink); }  /* light sections: AA at 11.5px */

.block-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-bottom: 1.1rem;
    max-width: 20ch;
}
.block-intro {
    font-size: 1.12rem;
    color: var(--ink-soft);
    max-width: 62ch;
    margin-bottom: 1rem;
}

.block { padding: clamp(4rem, 9vw, 7rem) 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    padding: .85rem 1.7rem;
    border-radius: 100px;
    text-decoration: none;
    transition: transform .18s ease, background .2s ease, box-shadow .2s ease;
    cursor: pointer;
    border: none;
}
.btn-coral { background: var(--coral); color: var(--abyss); box-shadow: 0 6px 20px -8px rgba(255,107,74,.7); }
.btn-coral:hover { background: var(--coral-dark); transform: translateY(-2px); }
.btn-ghost { color: #eaf3f7; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.6); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.wordmark { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: 0 0 auto; }
.wordmark-mark { width: 38px; height: 38px; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1; }
.wordmark-name { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); letter-spacing: -.01em; }
.wordmark-sub { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .13em; text-transform: uppercase; color: var(--teal-ink); margin-top: 3px; white-space: nowrap; }

/* Gap tightens as the viewport narrows so the link row still clears the
   wordmark between the 900px hamburger breakpoint and full desktop width. */
.nav { display: flex; align-items: center; gap: clamp(.95rem, 1.8vw, 1.6rem); }
.nav a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav-cta { background: var(--brand); color: #fff !important; padding: .55rem 1.15rem; border-radius: 100px; }
.nav-cta:hover { background: var(--deep-2); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 10px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero  — the depth column signature
   ============================================================ */
.hero {
    position: relative;
    background:
        radial-gradient(120% 90% at 80% -10%, rgba(63,208,192,.18), transparent 55%),
        linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 42%, var(--abyss) 100%);
    color: #eaf3f7;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
}

/* Bathymetric depth markers running down the right edge */
.depth-scale {
    position: absolute; top: 0; bottom: 0; right: max(1.2rem, 4vw);
    display: flex; flex-direction: column; justify-content: space-around;
    padding: 3rem 0; pointer-events: none; z-index: 1;
}
.depth-scale span { position: relative; display: block; }
.depth-scale span::before {
    content: attr(data-depth);
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .1em;
    color: rgba(191,225,232,.5);
    position: absolute; right: 0; top: -.7em; white-space: nowrap;
}
.depth-scale span::after {
    content: ""; position: absolute; right: 3.2rem; top: 0;
    width: 42vw; max-width: 520px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63,208,192,.28));
}

.hero-grid {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-lead .eyebrow { color: var(--teal-bright); }
.hero h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.3rem, 5.6vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 1.4rem;
}
.hero-sub { font-size: 1.15rem; color: #c4d6de; max-width: 46ch; margin-bottom: 2rem; }
.hero-sub strong { color: var(--teal-bright); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* Flagship dossier card — engineering spec sheet */
.dossier {
    background: rgba(4,18,31,.55);
    border: 1px solid rgba(63,208,192,.28);
    border-radius: var(--r);
    padding: 1.6rem 1.7rem;
    backdrop-filter: blur(6px);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.dossier-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; }
.dossier-tag { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); }
.dossier-status {
    font-family: var(--font-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
    color: var(--teal-bright); display: inline-flex; align-items: center; gap: .4rem;
}
.dossier-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bright); box-shadow: 0 0 8px var(--teal-bright); }
.dossier-name {
    font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; color: #fff;
    line-height: 1; margin-bottom: 1.3rem;
}
.dossier-name span { display: block; font-family: var(--font-mono); font-size: .68rem; font-weight: 400; letter-spacing: .08em; color: #93b3c0; margin-top: .5rem; }
.dossier-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 8px; overflow: hidden; }
.dossier-specs > div { background: rgba(4,18,31,.6); padding: .9rem 1rem; }
.dossier-specs dt { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; color: #7fa0af; margin-bottom: .35rem; }
.dossier-specs dd { font-size: .92rem; color: #eaf3f7; font-weight: 600; line-height: 1.3; }
.dossier-specs dd em { display: block; font-style: normal; font-weight: 400; font-size: .78rem; color: #9fbcc8; }
.dossier-foot { font-size: .78rem; color: #93b3c0; margin-top: 1.1rem; line-height: 1.5; }

/* ============================================================
   Trust strip
   ============================================================ */
.trust { background: var(--abyss); border-top: 1px solid rgba(63,208,192,.15); }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2rem 0; }
.trust-item { font-size: .9rem; color: #9fbcc8; line-height: 1.4; }
.trust-item span { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: #fff; margin-bottom: .2rem; }

/* ============================================================
   Services
   ============================================================ */
.services { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.card {
    position: relative;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 2rem 1.8rem 2rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(18,58,92,.5); border-color: var(--teal); }
.card-index { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; color: var(--teal-ink); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin: .5rem 0 .8rem; }
.card p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1.1rem; }
.card ul { list-style: none; }
.card li { position: relative; padding-left: 1.3rem; font-size: .92rem; color: var(--ink-soft); margin-bottom: .5rem; }
.card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }

/* ============================================================
   Automation (dark deep-dive section)
   ============================================================ */
.automation { background: linear-gradient(180deg, var(--abyss) 0%, var(--deep) 100%); color: #eaf3f7; }
.automation .block-title { color: #fff; }
.automation .block-intro { color: #bcd2dc; max-width: 70ch; }
.automation .eyebrow { color: var(--teal-bright); }
.auto-proof {
    font-size: 1rem; color: #9fbcc8 !important;
    border-left: 3px solid var(--teal); padding-left: 1.2rem;
}
.auto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 2.6rem 0 2rem; }
.auto-tile {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(63,208,192,.2);
    border-radius: var(--r);
    padding: 1.6rem 1.5rem;
    transition: transform .2s ease, border-color .2s ease;
}
.auto-tile:hover { transform: translateY(-3px); border-color: var(--teal); }
.auto-code { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.auto-tile h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: #fff; margin: .5rem 0 .6rem; }
.auto-tile p { color: #bcd2dc; font-size: .94rem; }
.auto-note { margin-top: .5rem; font-size: 1rem; color: #d7e4ea; max-width: 76ch; }
.auto-note strong { color: #fff; font-family: var(--font-display); font-weight: 600; }

/* ============================================================
   AI / data platform (light section, tiles echo .card)
   ============================================================ */
.intelligence { background: var(--paper); }
.intel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 2.6rem 0 2rem; }
.intel-tile {
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 1.6rem 1.5rem;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.intel-tile:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 24px 40px -28px rgba(18,58,92,.5); }
.intel-code { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); }
.intel-tile h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); margin: .5rem 0 .6rem; }
.intel-tile p { color: var(--ink-soft); font-size: .94rem; }
.intel-tile p em { font-style: italic; color: var(--ink); }

/* Development-status disclosure — plainly styled on purpose; it is a caveat,
   not a selling point, and shouldn't read like one. */
.rnd-status {
    background: linear-gradient(180deg, rgba(35,168,155,.07), rgba(35,168,155,.02));
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: var(--r);
    padding: 1.6rem 1.8rem;
    margin: 2.4rem 0 0;
}
.rnd-tag { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-ink); }
.rnd-status p { color: var(--ink-soft); font-size: 1rem; margin: .7rem 0 0; max-width: 78ch; }
.rnd-status strong { color: var(--ink); font-weight: 600; }

.intel-offer { font-size: 1.05rem; color: var(--ink); margin-top: 1.8rem; }
.intel-offer a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.intel-offer a:hover { text-decoration: underline; }

/* ============================================================
   Process timeline
   ============================================================ */
/* Dark, like .automation and .conservation. Process sits between two light
   sections and breaks up what would otherwise be the page's longest unbroken
   light run (ai-services -> process -> flagship). */
.process { background: linear-gradient(180deg, var(--deep) 0%, var(--abyss) 100%); color: #eaf3f7; }
.process .block-title { color: #fff; }
.process .block-intro { color: #bcd2dc; }
.timeline { list-style: none; margin-top: 3rem; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.1); align-items: start; }
.timeline li:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.tl-num {
    font-family: var(--font-mono); font-size: 1rem; font-weight: 500;
    color: #fff; background: var(--deep-2);
    border: 1px solid rgba(63,208,192,.3);
    width: 46px; height: 46px; border-radius: 10px;
    display: grid; place-items: center;
}
.timeline li:hover .tl-num { background: var(--teal); border-color: var(--teal); }
.tl-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: #fff; margin-bottom: .3rem; }
.tl-body p { color: #bcd2dc; max-width: 60ch; }

/* ============================================================
   Flagship case study
   ============================================================ */
.flagship { background: var(--paper); }
.flagship-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.flagship-media { position: relative; }
.flagship-media img { border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(13,36,56,.6); }
.flagship-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--deep); border-radius: 12px; margin-top: 1rem; overflow: hidden;
    border: 1px solid var(--deep-2);
}
.flagship-stats div { padding: 1rem .6rem; text-align: center; border-right: 1px solid rgba(255,255,255,.08); }
.flagship-stats div:last-child { border-right: none; }
.flagship-stats strong { display: block; font-family: var(--font-display); font-size: 1.55rem; color: #fff; line-height: 1; }
.flagship-stats span { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-bright); }
.flagship-copy p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 1rem; }
.pull-quote {
    font-family: var(--font-display); font-style: italic; font-weight: 400;
    font-size: 1.3rem; line-height: 1.4; color: var(--ink);
    border-left: 3px solid var(--coral); padding-left: 1.3rem; margin: 1.5rem 0;
}
.pull-quote cite {
    display: block; margin-top: .8rem;
    font-family: var(--font-mono); font-style: normal; font-weight: 500;
    font-size: .78rem; letter-spacing: .04em; color: var(--mist);
}
.flagship-meta { font-size: .92rem; color: var(--mist); }

/* ============================================================
   Conservation
   ============================================================ */
.conservation { background: linear-gradient(180deg, var(--deep) 0%, var(--abyss) 100%); color: #eaf3f7; }
.conservation .block-title { color: #fff; }
.conservation .block-intro { color: #bcd2dc; max-width: 74ch; }
.conservation .eyebrow { color: var(--teal-bright); }

.program-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2.6rem 0 2rem; }
.program {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(63,208,192,.22);
    border-radius: var(--r);
    padding: 1.8rem 1.7rem;
}
.program-tag { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.program h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: #fff; margin: .5rem 0 .7rem; }
.program p { color: #bcd2dc; font-size: .96rem; margin-bottom: 1.3rem; }
.mini-stats { list-style: none; display: grid; gap: .6rem; }
.mini-stats li { font-size: .88rem; color: #9fbcc8; padding-top: .6rem; border-top: 1px solid rgba(255,255,255,.08); }
.mini-stats strong { font-family: var(--font-display); font-weight: 600; color: var(--teal-bright); font-size: 1.15rem; margin-right: .5rem; }
.proof {
    background: linear-gradient(180deg, rgba(255,107,74,.09), rgba(255,107,74,.03));
    border: 1px solid rgba(255,107,74,.35);
    border-left: 4px solid var(--coral);
    border-radius: var(--r);
    padding: 1.6rem 1.8rem;
    margin: 0 0 2.2rem;
}
.proof-tag { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--coral); }
.proof p { color: #d7e4ea; font-size: 1rem; margin: .7rem 0 0; }
.proof p strong { color: #fff; font-weight: 600; }
.proof-kicker { font-family: var(--font-display); font-style: italic; font-size: 1.12rem; color: #fff !important; }

.rescue-offer { font-size: 1.05rem; color: #eaf3f7; }
.rescue-offer a { color: var(--teal-bright); font-weight: 600; text-decoration: none; white-space: nowrap; }
.rescue-offer a:hover { text-decoration: underline; }

.video-link {
    display: inline-block; margin-top: .6rem;
    font-family: var(--font-mono); font-size: .82rem; letter-spacing: .03em;
    color: var(--teal-ink); font-weight: 500; text-decoration: none;
}
.video-link:hover { text-decoration: underline; }

/* ============================================================
   About
   ============================================================ */
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-mark { display: grid; place-items: center; }
.about-mark img { width: clamp(120px, 20vw, 180px); height: auto; filter: drop-shadow(0 20px 30px rgba(48,71,127,.3)); }
.about-copy p:not(.eyebrow) { color: var(--ink-soft); margin-bottom: 1rem; }
.about-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.4rem; }
.about-links a { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; font-weight: 500; text-decoration: none; }
.about-links a:hover { text-decoration: underline; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--sand); }
.faq-grid { display: grid; grid-template-columns: 1fr 0.82fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.faq-media { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 44px -26px rgba(10,39,64,.55); }
.faq-media picture { display: block; height: 100%; }
.faq-media img { width: 100%; height: 100%; object-fit: cover; }
.faq-list { margin-top: 2rem; }
.faq-item { border-bottom: 1px solid rgba(13,36,56,.12); }
.faq-item:first-child { border-top: 1px solid rgba(13,36,56,.12); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.3rem 2.75rem 1.3rem 0;
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.3;
    color: var(--ink);
    transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: .3rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--teal-ink);
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--brand); }
.faq-item summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.faq-a { padding: 0 2.75rem 1.5rem 0; }
.faq-a p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }

/* ============================================================
   Contact
   ============================================================ */
.contact { background: var(--paper); }
.contact-inner { max-width: 720px; }
.contact-inner .block-title, .contact-inner .block-intro { max-width: none; }
.contact-form { margin-top: 2.2rem; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.fg { margin-bottom: 1.2rem; }
.fg label { display: block; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem; }
.fg input, .fg select, .fg textarea {
    width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
    padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px;
    background: var(--sand); transition: border-color .2s, background .2s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus { outline: none; border-color: var(--teal-ink); background: #fff; }
.fg textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-coral { margin-top: .4rem; }
.contact-direct { margin-top: 1.4rem; font-size: .9rem; color: var(--mist); }
.contact-direct a { font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }

/* Inline validation + submit feedback */
.fg input[aria-invalid="true"], .fg select[aria-invalid="true"], .fg textarea[aria-invalid="true"] {
    border-color: var(--coral);
    background: #fff6f3;
}
.field-error { display: block; margin-top: .4rem; font-size: .82rem; color: var(--coral-ink); }
.form-status { margin: 1.2rem 0 0; padding: .85rem 1.1rem; border-radius: 8px; font-size: .92rem; }
.form-status.is-error { background: #fdeee9; color: var(--coral-ink); border: 1px solid rgba(226,84,58,.35); }
.form-thanks { margin-top: 2.2rem; padding: 1.8rem 1.6rem; border-radius: 10px; background: rgba(35,168,155,.08); border: 1px solid rgba(35,168,155,.3); }
.form-thanks h3 { font-family: var(--font-display); color: var(--ink); margin: 0 0 .4rem; }
.form-thanks p { margin: 0; color: var(--ink-soft); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--abyss); color: #93b3c0; padding: 3.5rem 0 2rem; border-top: 1px solid rgba(63,208,192,.15); }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand .wordmark-name { font-family: var(--font-display); font-size: 1.3rem; color: #fff; display: block; }
.footer-brand .wordmark-sub { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--teal); display: block; margin: .3rem 0 .8rem; }
.footer-brand p { font-size: .9rem; max-width: 30ch; }
.footer-phone { margin-top: .8rem; font-family: var(--font-mono); }
.footer-phone a { color: var(--teal-bright); text-decoration: none; font-weight: 600; }
.footer-phone a:hover { color: #fff; }
.footer-nav { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: .6rem 2.5rem; }
.footer-nav a { color: #9fbcc8; text-decoration: none; font-size: .9rem; }
.footer-nav a:hover { color: var(--teal-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .78rem; color: #8ba1b2; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.22,.61,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
/* The header nav gets its own breakpoint, well above the 900px layout one: the
   link row stops clearing the wordmark long before the layout collapses, and
   the overflow shows up as horizontal page scroll rather than a wrapped nav.
   This value is measured, not guessed — re-run tools/shot.py after adding or
   renaming a nav link and raise it if the reported slack goes negative. */
@media (max-width: 1120px) {
    .nav {
        position: fixed; inset: 72px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--paper); border-bottom: 1px solid var(--line);
        padding: .5rem 1.2rem 1.2rem;
        transform: translateY(-120%); transition: transform .3s ease;
        box-shadow: 0 20px 30px -20px rgba(0,0,0,.3);
    }
    .nav.open { transform: translateY(0); }
    .nav a { padding: .9rem .2rem; border-bottom: 1px solid var(--line); }
    .nav-cta { text-align: center; margin-top: .8rem; border-bottom: none !important; }
    .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .dossier { max-width: 460px; }
    .depth-scale { display: none; }
    .cards { grid-template-columns: 1fr; }
    .auto-grid, .intel-grid { grid-template-columns: 1fr 1fr; }
    .flagship-grid, .about-grid, .program-cards, .faq-grid { grid-template-columns: 1fr; }
    .faq-media { height: 240px; }
    .about-mark { justify-content: flex-start; }
    .trust-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .fg-row { grid-template-columns: 1fr; gap: 0; }
    .footer-inner { flex-direction: column; }
    .footer-nav { grid-auto-flow: row; grid-template-rows: none; }
}

@media (max-width: 460px) {
    .trust-inner { grid-template-columns: 1fr; }
    .dossier-specs { grid-template-columns: 1fr; }
    .flagship-stats strong { font-size: 1.3rem; }
    .wordmark-name { font-size: 1.08rem; }
    .wordmark-sub { font-size: .48rem; letter-spacing: .08em; }
    .wordmark-mark { width: 32px; height: 32px; }
    .auto-grid, .intel-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
    .btn, .card { transition: none !important; }
}
