/* ==========================================================================
   idash Software — design system
   Brand navy #023857 / brand blue #096FA8 (sampled from the logo)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand */
    --navy-950: #01131f;
    --navy-900: #021f31;
    --navy-800: #023857;
    --navy-700: #04476c;
    --brand-600: #06618f;
    --brand-500: #096fa8;
    --brand-400: #1a8dcd;
    --brand-300: #4fb0e6;
    --cyan-400: #2fc9e3;
    --cyan-300: #66dcef;

    /* Neutrals */
    --ink: #0b1f2e;
    --ink-soft: #34506a;
    --muted: #5f7c93;
    --line: #e3ebf2;
    --paper: #ffffff;
    --paper-2: #f4f8fb;
    --paper-3: #eaf2f8;

    /* Gradients */
    --grad-brand: linear-gradient(120deg, var(--brand-500) 0%, var(--brand-400) 45%, var(--cyan-400) 100%);
    --grad-deep: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, #05496f 100%);

    /* Shape */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;

    /* Elevation */
    --sh-sm: 0 2px 8px rgba(2, 56, 87, .06);
    --sh-md: 0 12px 32px -12px rgba(2, 56, 87, .18);
    --sh-lg: 0 32px 64px -28px rgba(2, 56, 87, .35);
    --sh-glow: 0 24px 60px -24px rgba(9, 111, 168, .55);

    /* Rhythm */
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 9vw, 8.5rem);
    --maxw: 1240px;

    /* Type */
    --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    /* `clip` (not `hidden`) so position:sticky keeps working */
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

body.nav-open {
    overflow: hidden;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--brand-500);
    text-decoration: none;
    transition: color .2s var(--ease-out);
}

a:hover {
    color: var(--brand-400);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.022em;
    margin: 0 0 .6em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.1rem);
}

h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
}

h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
    font-weight: 700;
}

p {
    margin: 0 0 1.15rem;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--brand-400);
    color: #fff;
}

:focus-visible {
    outline: 3px solid var(--cyan-400);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: #fff;
    color: var(--navy-800);
    padding: .75rem 1.25rem;
    font-weight: 700;
    border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
    left: 0;
}

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--narrow {
    max-width: 860px;
}

.section {
    padding-block: var(--section-y);
    position: relative;
}

.section--tight {
    padding-block: clamp(3rem, 6vw, 5rem);
}

.section--dark {
    background: var(--navy-900);
    color: #cfe1ee;
}

.section--deep {
    background: var(--grad-deep);
    color: #cfe1ee;
}

.section--tint {
    background: var(--paper-2);
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--deep h2,
.section--deep h3,
.section--deep h4,
.section--deep h5 {
    color: #fff;
}

.grid {
    display: grid;
    gap: clamp(1.25rem, 2.4vw, 2rem);
}

.grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.grid--3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.stack>*+* {
    margin-top: 1rem;
}

.text-center {
    text-align: center;
}

.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--ink-soft);
    line-height: 1.65;
}

.section--dark .lead,
.section--deep .lead {
    color: #a8c6dc;
}

/* Eyebrow + section headings ------------------------------------------------ */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--brand-500);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
}

.section--dark .eyebrow,
.section--deep .eyebrow {
    color: var(--cyan-300);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow::before {
    display: none;
}

.section-head p {
    color: var(--ink-soft);
    font-size: 1.08rem;
}

.section--dark .section-head p,
.section--deep .section-head p {
    color: #a8c6dc;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    --btn-bg: var(--grad-brand);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.6rem;
    border: 0;
    border-radius: var(--r-pill);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-display);
    font-size: .97rem;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1;
    cursor: pointer;
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), color .2s, background-color .2s;
    box-shadow: var(--sh-glow);
}

.btn svg {
    flex: none;
    transition: transform .25s var(--ease-out);
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-2px);
    box-shadow: 0 28px 54px -20px rgba(9, 111, 168, .7);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn:active {
    transform: translateY(0);
}

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: #fff;
    box-shadow: none;
    border: 1.5px solid rgba(255, 255, 255, .32);
    backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .6);
    box-shadow: none;
}

.btn--dark {
    --btn-bg: var(--navy-800);
    box-shadow: var(--sh-md);
}

.btn--dark:hover {
    box-shadow: 0 24px 44px -20px rgba(2, 56, 87, .6);
}

.btn--outline {
    --btn-bg: transparent;
    --btn-fg: var(--navy-800);
    box-shadow: none;
    border: 1.5px solid var(--line);
}

.btn--outline:hover {
    --btn-fg: var(--brand-500);
    border-color: var(--brand-300);
    background: var(--paper-2);
    box-shadow: none;
}

.btn--block {
    width: 100%;
}

/* Text link with arrow */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    color: var(--brand-500);
}

.link-arrow svg {
    transition: transform .25s var(--ease-out);
}

.link-arrow:hover svg {
    transform: translateX(4px);
}

.section--dark .link-arrow,
.section--deep .link-arrow {
    color: var(--cyan-300);
}

/* --------------------------------------------------------------------------
   5. Site header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out), backdrop-filter .3s;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transition: opacity .3s var(--ease-out);
}

.site-header.is-stuck::before {
    opacity: 1;
}

.site-header.is-stuck {
    box-shadow: 0 8px 30px -18px rgba(2, 56, 87, .45);
}

.header-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.brand img {
    height: 38px;
    width: auto;
    transition: opacity .25s;
}

.brand .logo-dark {
    display: none;
}

.site-header.is-stuck .brand .logo-dark,
body.header-solid .brand .logo-dark {
    display: block;
}

.site-header.is-stuck .brand .logo-light,
body.header-solid .brand .logo-light {
    display: none;
}

.nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: clamp(.6rem, 1.6vw, 1.6rem);
}

.nav a {
    position: relative;
    font-family: var(--font-display);
    font-size: .95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .82);
    padding: .4rem 0;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--grad-brand);
    transition: right .3s var(--ease-out);
}

.nav a:hover::after,
.nav a.is-active::after {
    right: 0;
}

.nav a:hover {
    color: #fff;
}

.nav .nav-cta,
.nav .nav-phone {
    display: none;
}

.site-header.is-stuck .nav a,
body.header-solid .nav a {
    color: var(--ink-soft);
}

.site-header.is-stuck .nav a:hover,
body.header-solid .nav a:hover {
    color: var(--navy-800);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: none;
}

.header-cta .btn {
    padding: .72rem 1.25rem;
    font-size: .9rem;
    box-shadow: none;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    white-space: nowrap;
}

.site-header.is-stuck .header-phone,
body.header-solid .header-phone {
    color: var(--navy-800);
}

.header-phone svg {
    opacity: .7;
}

/* Mobile menu */
.nav-toggle {
    display: none;
    flex: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
}

.nav-toggle span {
    display: block;
    position: relative;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: background .2s, transform .3s var(--ease-out);
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: inherit;
    transition: transform .3s var(--ease-out), opacity .2s;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 7px;
}

.site-header.is-stuck .nav-toggle span,
body.header-solid .nav-toggle span {
    background: var(--navy-800);
}

body.nav-open .nav-toggle span {
    background: transparent !important;
}

body.nav-open .nav-toggle span::before {
    background: #fff;
    transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span::after {
    background: #fff;
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1020px) {
    .nav-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        justify-content: center;
        gap: 1.5rem;
        background: var(--grad-deep);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
        margin: 0;
    }

    body.nav-open .nav {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav a,
    .site-header.is-stuck .nav a,
    body.header-solid .nav a {
        font-size: 1.55rem;
        font-weight: 800;
        color: #fff;
    }

    .nav .nav-cta {
        display: inline-flex;
        margin-top: 1rem;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .nav .nav-phone {
        display: block;
        font-family: var(--font-mono);
        font-size: 1rem;
        font-weight: 500;
        color: var(--cyan-300);
    }

    .nav .nav-phone::after {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   6. Hero — drafting sheet / exploded isometric
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--navy-950);
    color: #cfe3f2;
    padding-top: calc(var(--header-h) + clamp(1.4rem, 2.8vw, 2.2rem));
    padding-bottom: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
    isolation: isolate;
}

/* Blueprint ground: fine grid over major grid. Static — no drifting orbs. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(102, 220, 239, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 220, 239, .05) 1px, transparent 1px),
        linear-gradient(rgba(102, 220, 239, .1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 220, 239, .1) 1px, transparent 1px);
    background-size: 18px 18px, 18px 18px, 108px 108px, 108px 108px;
    background-position: center top;
}

.hero::after {
    /* just enough depth that the sheet isn't dead flat */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(72% 58% at 26% 26%, rgba(9, 111, 168, .3) 0%, transparent 72%),
        radial-gradient(60% 60% at 88% 96%, rgba(2, 56, 87, .55) 0%, transparent 70%);
}

.hero-sheet {
    position: relative;
}

/* Registration marks ------------------------------------------------------- */
.mark {
    position: absolute;
    width: 16px;
    height: 16px;
    opacity: .55;
    pointer-events: none;
}

.mark--tl {
    top: -6px;
    left: 0;
    border-top: 1px solid var(--cyan-400);
    border-left: 1px solid var(--cyan-400);
}

.mark--tr {
    top: -6px;
    right: 0;
    border-top: 1px solid var(--cyan-400);
    border-right: 1px solid var(--cyan-400);
}

/* Drawing header strip ----------------------------------------------------- */
.sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem 1.6rem;
    flex-wrap: wrap;
    padding-bottom: .75rem;
    margin-bottom: clamp(1.8rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(102, 220, 239, .2);
    font-family: var(--font-mono);
    font-size: .68rem;
    line-height: 1.4;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: #5f93b4;
}

.sheet-head b {
    color: var(--cyan-300);
    font-weight: 500;
}

@media (max-width: 720px) {
    .sheet-head__mid {
        display: none;
    }
}

/* Layout ------------------------------------------------------------------- */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: clamp(2rem, 4.5vw, 4rem);
}

@media (max-width: 980px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

/* Headline ----------------------------------------------------------------- */
.hero h1 {
    color: #fff;
    font-size: clamp(2.3rem, 4.3vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -.035em;
    max-width: 16ch;
    margin-bottom: 1.15rem;
}

/* Key phrase carries a dimension bracket rather than a gradient fill. */
.hero h1 em {
    position: relative;
    font-style: normal;
    color: var(--cyan-300);
    white-space: nowrap;
}

.hero h1 em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.2em;
    height: 8px;
    border: 1.5px solid var(--cyan-400);
    border-top: 0;
    opacity: .8;
}

.hero-note {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1.3rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    line-height: 1.6;
    color: #6fa8c8;
}

.hero-note::before {
    content: "\21B3";
    position: absolute;
    left: 0;
    top: -.05em;
    color: var(--cyan-400);
}

.hero-sub {
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    color: #a9c9dd;
    max-width: 38ch;
    margin-bottom: 1.7rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* Dimension callout -------------------------------------------------------- */
.dim {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-top: 1.7rem;
    font-family: var(--font-mono);
    font-size: .76rem;
    color: #7fb3cf;
}

.dim-bar {
    position: relative;
    flex: 0 0 auto;
    width: clamp(64px, 12vw, 108px);
    height: 10px;
    border-left: 1.5px solid var(--cyan-400);
    border-right: 1.5px solid var(--cyan-400);
}

.dim-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1.5px solid var(--cyan-400);
}

.dim-label b {
    color: #fff;
    font-weight: 500;
}

/* Exploded isometric drawing ----------------------------------------------- */
.hero-drawing {
    position: relative;
}

.hero-drawing svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 520px;
    margin-inline: auto;
    overflow: visible;
}

.iso-axis {
    fill: none;
    stroke: rgba(102, 220, 239, .3);
    stroke-width: 1;
    stroke-dasharray: 14 5 3 5;
}

.iso-plate {
    fill: rgba(9, 111, 168, .16);
    stroke: var(--cyan-400);
    stroke-width: 1.3;
    stroke-linejoin: round;
}

.iso-plate--top {
    fill: rgba(47, 201, 227, .2);
}

.iso-detail {
    fill: rgba(1, 19, 31, .45);
    stroke: rgba(102, 220, 239, .6);
    stroke-width: 1;
    stroke-linejoin: round;
}

.iso-leader {
    fill: none;
    stroke: rgba(102, 220, 239, .45);
    stroke-width: 1;
}

.iso-balloon {
    fill: rgba(1, 19, 31, .9);
    stroke: var(--cyan-400);
    stroke-width: 1.1;
}

.iso-balloon-t {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--cyan-300);
    text-anchor: middle;
}

.iso-label {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: .04em;
    fill: #b6dcee;
}

.iso-sub {
    font-family: var(--font-mono);
    font-size: 10.5px;
    fill: #5f93b4;
}

.iso-layer {
    opacity: 0;
    animation: isoIn .75s cubic-bezier(.2, .7, .3, 1) forwards;
}

.iso-layer:nth-of-type(1) {
    animation-delay: .1s;
}

.iso-layer:nth-of-type(2) {
    animation-delay: .25s;
}

.iso-layer:nth-of-type(3) {
    animation-delay: .4s;
}

.iso-layer:nth-of-type(4) {
    animation-delay: .55s;
}

@keyframes isoIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.drawing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    margin-top: 1.1rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: #6fa8c8;
    transition: opacity .25s ease;
}

.drawing-note .dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #34d97b;
    box-shadow: 0 0 0 0 rgba(52, 217, 123, .6);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 12px rgba(52, 217, 123, 0);
    }
}

/* Title block -------------------------------------------------------------- */
.title-block {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(1.8rem, 3.4vw, 2.5rem);
    border: 1px solid rgba(102, 220, 239, .26);
    background: rgba(2, 31, 49, .5);
    backdrop-filter: blur(4px);
}

.title-block>div {
    padding: .9rem 1.1rem;
    border-right: 1px solid rgba(102, 220, 239, .18);
}

.title-block>div:last-child {
    border-right: 0;
}

.title-block dt {
    font-family: var(--font-mono);
    font-size: .62rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #5f93b4;
    margin-bottom: .35rem;
}

.title-block dd {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(.98rem, 1.3vw, 1.08rem);
    font-weight: 700;
    letter-spacing: -.015em;
    color: #fff;
    line-height: 1.2;
}

.title-block p {
    margin: .2rem 0 0;
    font-size: .76rem;
    color: #85acc5;
}

@media (max-width: 860px) {
    .title-block {
        grid-template-columns: minmax(0, 1fr);
    }

    .title-block>div {
        border-right: 0;
        border-bottom: 1px solid rgba(102, 220, 239, .18);
    }

    .title-block>div:last-child {
        border-bottom: 0;
    }
}

/* Legend — replaces the in-drawing annotations on narrow screens ----------- */
.iso-legend {
    display: none;
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    gap: .8rem;
    max-width: 340px;
    margin-inline: auto;
}

.iso-legend li {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: .75rem;
    align-items: center;
}

.iso-legend span {
    grid-row: span 2;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--cyan-400);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--cyan-300);
}

.iso-legend b {
    font-family: var(--font-mono);
    font-size: .84rem;
    font-weight: 500;
    color: #b6dcee;
}

.iso-legend i {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: .74rem;
    color: #5f93b4;
}

@media (max-width: 980px) {
    .hero-sub {
        max-width: none;
    }
}

/* Once the hero stacks, the drawing column is too narrow to keep the
   in-drawing annotations legible: crop the sheet to the drawing itself and
   hand the annotations to the HTML legend below it. */
@media (max-width: 980px) {
    .drawing-frame {
        overflow: hidden;
        max-width: 350px;
        margin-inline: auto;
    }

    .drawing-frame svg {
        width: 160%;
        max-width: none;
        margin-inline: 0;
    }

    .iso-label,
    .iso-sub,
    .iso-leader--long {
        display: none;
    }

    .iso-legend {
        display: grid;
    }
}

@media (max-width: 460px) {
    .title-block {
        grid-template-columns: 1fr;
    }

    .title-block>div {
        border-right: 0;
        border-bottom: 1px solid rgba(102, 220, 239, .18);
    }

    .title-block>div:last-child {
        border-bottom: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .iso-layer,
    .drawing-note .dot {
        opacity: 1;
        animation: none;
    }
}

/* --------------------------------------------------------------------------
   7. Trust / accreditation strip
   -------------------------------------------------------------------------- */
.trust {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2rem, 4vw, 3rem);
}

.trust p {
    text-align: center;
    font-family: var(--font-mono);
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1.8rem, 5vw, 4rem);
}

.trust-logos img {
    height: clamp(30px, 4vw, 44px);
    width: auto;
    opacity: .55;
    filter: grayscale(1);
    transition: opacity .3s, filter .3s, transform .3s var(--ease-out);
}

.trust-logos a:hover img {
    opacity: 1;
    filter: none;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
    position: relative;
    padding: clamp(1.6rem, 2.4vw, 2.1rem);
    border-radius: var(--r-md);
    background: var(--paper);
    border: 1px solid var(--line);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
    border-color: #cfe0ee;
}

.card h3,
.card h4 {
    font-size: 1.18rem;
    margin-bottom: .55rem;
}

.card p {
    color: var(--ink-soft);
    font-size: .97rem;
    margin: 0;
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 1.2rem;
    color: var(--brand-500);
    background: linear-gradient(150deg, rgba(9, 111, 168, .12), rgba(47, 201, 227, .12));
    border: 1px solid rgba(9, 111, 168, .16);
    transition: color .3s, background .3s, transform .35s var(--ease-out);
}

.card:hover .card__icon {
    color: #fff;
    background: var(--grad-brand);
    border-color: transparent;
    transform: scale(1.06) rotate(-4deg);
}

.card__icon svg {
    width: 26px;
    height: 26px;
}

/* Dark variant */
.card--glass {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
}

.card--glass p {
    color: #a8c6dc;
}

.card--glass:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .2);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

.card--glass .card__icon {
    color: var(--cyan-300);
    background: rgba(47, 201, 227, .1);
    border-color: rgba(47, 201, 227, .22);
}

/* Feature card with gradient hairline on hover */
.card--edge::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--grad-brand);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}

.card--edge:hover::after {
    opacity: 1;
}

/* "Also asked for" chip row ------------------------------------------------- */
.also {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    padding-top: clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid var(--line);
}

.also span {
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: .5rem;
}

.also em {
    font-style: normal;
    padding: .45rem .95rem;
    border-radius: var(--r-pill);
    background: var(--paper-2);
    border: 1px solid var(--line);
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink-soft);
    transition: border-color .25s, color .25s, transform .25s var(--ease-out);
}

.also em:hover {
    border-color: var(--brand-300);
    color: var(--brand-500);
    transform: translateY(-2px);
}

/* Showcase cards (what we build) -------------------------------------------- */
.showcase {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--sh-sm);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

.showcase:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
}

.showcase__art {
    position: relative;
    background: var(--grad-deep);
    padding: .5rem;
    overflow: hidden;
}

.showcase__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 60% at 80% 0%, rgba(47, 201, 227, .22), transparent 70%);
    pointer-events: none;
}

.showcase__art svg {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .6s var(--ease-out);
}

.showcase:hover .showcase__art svg {
    transform: translateY(-4px) scale(1.02);
}

.showcase__body {
    padding: clamp(1.5rem, 2.4vw, 2rem);
    flex: 1;
}

.showcase__body h3 {
    font-size: 1.25rem;
    margin-bottom: .6rem;
}

.showcase__body p {
    color: var(--ink-soft);
    font-size: .97rem;
    margin: 0;
}

.framed-note {
    margin-top: 1.25rem;
    font-size: .92rem;
    color: var(--muted);
}

/* --------------------------------------------------------------------------
   9. Capability split (what we do)
   -------------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 1.6rem 0 2rem;
    display: grid;
    gap: .85rem;
}

.checklist li {
    position: relative;
    padding-left: 2.1rem;
    color: var(--ink-soft);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .35em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grad-brand);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm4.7 7.3l-5.6 5.6a1 1 0 01-1.4 0L7.3 12.5a1 1 0 011.4-1.4l2 2 4.9-4.9a1 1 0 011.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm4.7 7.3l-5.6 5.6a1 1 0 01-1.4 0L7.3 12.5a1 1 0 011.4-1.4l2 2 4.9-4.9a1 1 0 011.4 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.section--dark .checklist li,
.section--deep .checklist li {
    color: #a8c6dc;
}

/* Image with brand frame */
.framed {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--sh-lg);
}

.framed img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}

.framed:hover img {
    transform: scale(1.04);
}

.framed::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(2, 56, 87, .18), rgba(1, 19, 31, .55));
    pointer-events: none;
}

.framed-badge {
    position: absolute;
    left: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1.15rem;
    border-radius: var(--r-md);
    background: rgba(1, 19, 31, .72);
    border: 1px solid rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px);
    color: #fff;
}

.framed-badge b {
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
}

.framed-badge span {
    font-size: .78rem;
    color: #a8c6dc;
    display: block;
}

/* --------------------------------------------------------------------------
   10. Process timeline
   -------------------------------------------------------------------------- */
.process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: clamp(1.5rem, 3vw, 2.4rem);
    counter-reset: step;
    position: relative;
}

.step {
    position: relative;
    padding-top: 3.2rem;
}

.step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    color: var(--cyan-300);
    letter-spacing: .06em;
}

.step::after {
    content: "";
    position: absolute;
    top: 2.15rem;
    left: 0;
    right: -2.4rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(79, 176, 230, .5), rgba(79, 176, 230, .05));
}

.step:last-child::after {
    right: 0;
}

.step .dot {
    position: absolute;
    top: calc(2.15rem - 4px);
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--cyan-400);
    box-shadow: 0 0 0 4px rgba(47, 201, 227, .18);
}

.step h4 {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

.step p {
    color: #a8c6dc;
    font-size: .95rem;
}

@media (max-width: 640px) {
    .step::after {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   11. Tech marquee
   -------------------------------------------------------------------------- */
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
    display: flex;
    width: max-content;
    gap: .85rem;
    animation: slide 42s linear infinite;
}

.marquee:hover .marquee__track {
    animation-play-state: paused;
}

.marquee+.marquee .marquee__track {
    animation-duration: 54s;
    animation-direction: reverse;
    margin-top: .85rem;
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--ink-soft);
    white-space: nowrap;
    box-shadow: var(--sh-sm);
}

.chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-400);
    opacity: .7;
}

/* --------------------------------------------------------------------------
   12. Stats band
   -------------------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(1.5rem, 3vw, 2rem);
}

.stat {
    padding: clamp(1.4rem, 2.4vw, 2rem);
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}

.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -.03em;
    margin-bottom: .5rem;
    background: linear-gradient(120deg, #fff, var(--brand-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    font-size: .93rem;
    color: #a8c6dc;
}

/* --------------------------------------------------------------------------
   13. CTA + contact
   -------------------------------------------------------------------------- */
.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    padding: clamp(2.5rem, 6vw, 4.5rem);
    background: var(--grad-deep);
    box-shadow: var(--sh-lg);
    color: #cfe1ee;
    isolation: isolate;
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: auto -10% -60% 40%;
    height: 130%;
    z-index: -1;
    background: radial-gradient(50% 50% at 50% 50%, rgba(47, 201, 227, .32), transparent 70%);
}

.cta-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(120, 190, 230, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120, 190, 230, .06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(100% 100% at 0% 0%, #000, transparent 70%);
    -webkit-mask-image: radial-gradient(100% 100% at 0% 0%, #000, transparent 70%);
}

.cta-panel h2 {
    color: #fff;
    max-width: 18ch;
}

.cta-panel .lead,
.cta-panel p {
    color: #a8c6dc;
    max-width: 52ch;
}

.cta-panel .eyebrow {
    color: var(--cyan-300);
}

.cta-budget {
    margin-top: 1.3rem;
    padding-left: 1rem;
    border-left: 2px solid var(--cyan-400);
    font-size: .95rem;
}

.cta-budget b {
    font-family: var(--font-mono);
    font-weight: 500;
    color: #fff;
}

.cta-inner>div {
    max-width: 36rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    /* flex-shrink must stay 1. With `flex: 0 0 auto` this box refused to shrink
       below the combined max-content width of the two buttons, so on a narrow
       screen it kept its full width and hung outside the band instead of
       letting flex-wrap stack them. The overflow was invisible because
       `overflow-x: clip` on <body> suppressed the scrollbar, so the second
       button simply got cut off. min-width:0 is needed as well, because the
       automatic minimum size of a flex item would otherwise reintroduce the
       same floor. */
    flex: 0 1 auto;
    min-width: 0;
}

.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

@media (max-width: 720px) {

    /* Once the buttons stack, give them a full-width row each rather than two
       ragged widths determined by their label lengths. */
    .cta-actions {
        flex-basis: 100%;
    }

    .cta-actions .btn {
        flex: 1 1 100%;
    }
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

.contact-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: var(--r-md);
    border: 1px solid var(--line);
    background: var(--paper);
    transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
    color: var(--ink);
}

.contact-item:hover {
    transform: translateX(4px);
    border-color: var(--brand-300);
    box-shadow: var(--sh-sm);
    color: var(--ink);
}

.contact-item svg {
    flex: none;
    width: 22px;
    height: 22px;
    color: var(--brand-500);
    margin-top: .2rem;
}

.contact-item h5 {
    margin: 0 0 .1rem;
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--font-mono);
    font-weight: 500;
}

.contact-item p {
    margin: 0;
    font-weight: 600;
    font-family: var(--font-display);
}

/* Form */
.form-card {
    padding: clamp(1.75rem, 3.5vw, 2.6rem);
    border-radius: var(--r-lg);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--sh-md);
}

.form-card h3 {
    margin-bottom: .4rem;
}

.form-card>p {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1.6rem;
}

.field {
    margin-bottom: 1.1rem;
}

.field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: .45rem;
}

.field label .field-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--muted);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: .9rem 1.05rem;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--paper-2);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    transition: border-color .25s, background .25s, box-shadow .25s;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-color: var(--brand-400);
    background: var(--paper);
    box-shadow: 0 0 0 4px rgba(26, 141, 205, .14);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9db4c6;
}

.form-note {
    font-size: .84rem;
    color: var(--muted);
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    padding: .85rem 1.1rem;
    border-radius: var(--r-sm);
    font-size: .93rem;
    font-weight: 600;
    display: none;
}

.form-status.is-visible {
    display: block;
}

.form-status.is-ok {
    background: rgba(52, 217, 123, .12);
    color: #14713f;
    border: 1px solid rgba(52, 217, 123, .35);
}

.form-status.is-error {
    background: rgba(224, 74, 74, .1);
    color: #a52626;
    border: 1px solid rgba(224, 74, 74, .3);
}

.cf-turnstile {
    margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--navy-950);
    color: #93b3c8;
    padding-block: clamp(3.5rem, 6vw, 5rem) 2rem;
    font-size: .95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(2rem, 4vw, 3.5rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand img {
    height: 42px;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    max-width: 34ch;
    color: #7fa5bd;
    font-size: .95rem;
}

.footer-col h5 {
    color: #fff;
    font-size: .8rem;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .6rem;
}

.footer-col a {
    color: #93b3c8;
}

.footer-col a:hover {
    color: #fff;
}

.social {
    display: flex;
    gap: .6rem;
    margin-top: 1.5rem;
}

.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    color: #b9d5e6;
    transition: background .3s, color .3s, transform .3s var(--ease-out), border-color .3s;
}

.social a:hover {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    font-size: .86rem;
    color: #6f93ab;
}

.footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-bottom a {
    color: #93b3c8;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Back to top */
#back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--grad-brand);
    color: #fff;
    box-shadow: var(--sh-glow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .3s, transform .3s var(--ease-out), visibility .3s;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#back-to-top:hover {
    color: #fff;
    transform: translateY(-3px);
}

/* The email address and the street address are longer than a narrow column,
   and neither contains a space the browser will break at. Without this they
   spill sideways out of the column and get silently cut off by the
   `overflow-x: clip` on <body>. `anywhere` (rather than `break-word`) also
   lets the grid track shrink below the string's width, so the columns can
   still divide the space evenly on small screens. */
.footer-col a,
.footer-bottom p {
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {

    /* The auto-fit track had a hard 150px minimum, which squeezed the brand
       column down to ~138px while still not being wide enough to hold the
       contact details. Give the brand its own full-width row and let the
       remaining columns share the space in two shrinkable tracks. */
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem 1.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 48ch;
    }
}

@media (max-width: 460px) {
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-bottom {
        gap: .85rem;
    }
}

/* --------------------------------------------------------------------------
   15. Interior pages (legal, 404)
   -------------------------------------------------------------------------- */
/* Legacy alias so any older markup keeps a sensible width */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Legal pages */
.legal-page {
    max-width: 860px;
    padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4rem));
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.legal-page h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 1.5rem;
}

.legal-page h2,
.legal-page h3,
.legal-page strong {
    color: var(--navy-800);
}

.legal-page h3 {
    font-size: 1.2rem;
    margin-top: 2.2rem;
}

.legal-page p,
.legal-page li {
    color: var(--ink-soft);
    font-size: 1rem !important;
    line-height: 1.75;
}

.legal-page span {
    font-size: inherit !important;
    color: inherit !important;
}

/* 404 */
.error-page {
    min-height: 70vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding-top: calc(var(--header-h) + 3rem);
    padding-bottom: 4rem;
}

.error-page .code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 12rem);
    font-weight: 800;
    line-height: .9;
    letter-spacing: -.05em;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   16. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-reveal].is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   17. Cookie consent (override plugin palette)
   -------------------------------------------------------------------------- */
.cc-window {
    font-family: var(--font-body) !important;
    border-radius: var(--r-md);
    box-shadow: var(--sh-lg);
}

.cc-window.cc-floating {
    padding: 1.5rem;
    max-width: 340px;
}

.cc-btn {
    border-radius: var(--r-pill) !important;
    font-family: var(--font-display);
    font-weight: 700;
}
