/* AD ducts: main stylesheet. Mobile first; breakpoints 40em / 64em / 80em. */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/barlow-condensed-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }

/* ---------- Tokens: AD ducts brand palette ---------- */
:root {
    --primary: #0A3D91;      /* Primary Navy: hero, dark bands, headings, links (10:1 on white) */
    --accent: #00B4FF;       /* Bright Blue: CTA buttons (always with --text, 6:1), icons, highlights. Never text on light. */
    --accent-2: #7ED6FF;     /* Light Blue: decorative accents; highlights on dark only (6.2:1 on navy) */
    --neutral: #E4E7EB;      /* Silver: section backgrounds, borders */
    --text: #1F2D3D;         /* Dark Charcoal: body text, navigation, footer background */
    --paper: #FFFFFF;
    --muted: #4A5868;        /* secondary text: 7.3:1 on white, 5.9:1 on silver */
    --line: #E4E7EB;         /* hairlines on light */
    --on-dark: rgba(255, 255, 255, 0.8);
    --line-dark: rgba(126, 214, 255, 0.25);
    --error: #B42318;
    --field-border: #6E7B8A; /* 4.3:1 on white: form field boundary (WCAG 1.4.11 needs 3:1) */
    --placeholder: #5B6878;  /* 5.7:1 on white */
    /* Hero overlay: dense behind the text on the left, lighter on the right so the video shows. */
    --hero-overlay: linear-gradient(90deg, rgba(10, 61, 145, 0.95) 0%, rgba(10, 61, 145, 0.86) 45%, rgba(10, 61, 145, 0.45) 100%);

    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Barlow", system-ui, sans-serif;

    --wrap: 76rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4.5rem, 9vw, 8rem);
    --slant: clamp(2rem, 5vw, 5rem);  /* height of the diagonal band edges */
    --radius-card: 16px;
    --radius-btn: 10px;
    --radius-field: 8px;
    --header-h: 68px;           /* white header, top of page (mobile) */
    --header-h-compact: 56px;   /* after scrolling */

    --focus: var(--primary);
}
@media (min-width: 48em) { :root { --header-h: 76px; --header-h-compact: 60px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* In-page targets stop below the sticky header instead of under it. */
[id] { scroll-margin-top: calc(var(--header-h) + 0.75rem); }
body {
    margin: 0;
    background: var(--neutral);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1; overflow-wrap: break-word; }  /* long words wrap instead of overflowing */
h2 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    line-height: 0.92;
    text-transform: uppercase;
    letter-spacing: -0.005em;
    color: var(--text);
}
h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--primary); text-underline-offset: 0.18em; }
:where(ul[role="list"], ol) { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    padding: 0.75rem 1rem; background: var(--accent); color: var(--text);
    font-weight: 600; border-radius: var(--radius-btn); text-decoration: none;
}
.skip-link:focus { top: 1rem; }

@media (max-width: 39.99em) { .u-hide-sm { display: none; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Dark surfaces switch the focus ring to light blue, which is visible on navy and charcoal. */
.topbar, .hero, .section--why, .cta-band, .site-footer, .action-bar { --focus: var(--accent-2); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 3rem; padding: 0.75rem 1.5rem;
    border: 2px solid transparent; border-radius: var(--radius-btn);
    font: 600 1.0625rem/1.2 var(--font-body);
    text-decoration: none; cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--text); }
.btn--primary:hover { background: var(--accent-2); }
.btn--outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--outline:hover { background: var(--primary); color: var(--paper); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--paper); background: transparent; }
.btn--ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.1); }
.btn--sm { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 1rem; }
.btn--block { width: 100%; }
.text-link { font-weight: 600; }

/* ---------- Top bar ---------- */
.topbar { background: var(--primary); color: var(--paper); font-size: 0.9375rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.5rem; }
.topbar p { margin: 0; }
.topbar__links { display: flex; gap: 1.5rem; }
.topbar a { color: var(--paper); text-decoration: none; font-weight: 500; padding-block: 0.5rem; }
.topbar__links a { white-space: nowrap; }   /* long hours label wraps; the links never break mid-label */
.topbar a:hover span { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--paper); color: var(--text);
    transition: box-shadow 0.25s ease, margin-bottom 0.25s ease;
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    min-height: var(--header-h); transition: min-height 0.25s ease;
}
/* Scrolled: shadow + compact bar. The height it loses becomes margin, so the page never jumps. */
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(31, 45, 61, 0.35); margin-bottom: calc(var(--header-h) - var(--header-h-compact)); }
.site-header.is-scrolled .site-header__inner { min-height: var(--header-h-compact); }
.site-header .brand__mark, .site-header .brand__name { transition: height 0.25s ease, font-size 0.25s ease; }
.site-header.is-scrolled .brand__mark { height: 34px; }
.site-header.is-scrolled .brand__name { font-size: 1.5rem; }
@media (min-width: 48em) {
    .site-header.is-scrolled .brand__mark { height: 42px; }
    .site-header.is-scrolled .brand__name { font-size: 1.625rem; }
}

/* Logo: the AD mark image plus the business name as live text. */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand__mark { width: auto; height: 44px; }
.brand__name {
    font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; line-height: 1;
    text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap;
}
.brand__ad { color: var(--primary); }
.brand__ducts { color: var(--text); }
.brand--on-dark .brand__ad { color: var(--accent-2); }
.brand--on-dark .brand__ducts { color: var(--paper); }
.brand--on-dark picture { display: inline-flex; padding: 6px; border-radius: 10px; background: var(--paper); }
.brand--on-dark .brand__mark { height: 44px; }
@media (min-width: 48em) { .brand__mark { height: 56px; } .brand__name { font-size: 2rem; } }

.nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    min-height: 2.75rem; padding: 0.5rem 0.9rem;
    background: transparent; color: var(--text);
    border: 1px solid rgba(31, 45, 61, 0.3); border-radius: var(--radius-btn);
    font: 600 1rem var(--font-body); cursor: pointer;
}
.nav-toggle[hidden] { display: none; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* Without JS the nav is simply shown; with JS it becomes a disclosure panel below 64em. */
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; padding-block: 0.5rem; display: inline-block; }
.site-nav a:not(.btn):hover { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

@media (max-width: 63.99em) {
    .site-header__inner { flex-wrap: wrap; }
    .js .site-nav {
        display: none; width: 100%;
        padding: 0.5rem 0 1.25rem; border-top: 1px solid var(--line);
    }
    .js .site-nav.is-open { display: block; }
    .js .site-nav ul { flex-direction: column; gap: 0; margin-bottom: 1rem; }
    .js .site-nav a:not(.btn) { display: block; padding-block: 0.75rem; font-size: 1.125rem; }
    .site-nav .btn { width: 100%; }
}
@media (min-width: 64em) {
    .nav-toggle { display: none !important; }
    .site-nav { display: flex; align-items: center; gap: 2rem; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate; overflow: hidden;
    background-color: var(--primary);
    color: var(--paper);
    padding-block: clamp(2.5rem, 6vw, 5rem) calc(var(--slant) + 2.5rem);
}
/* Diagonal bottom edge: a static wedge in the next section's colour. */
.hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: calc(var(--slant) + 1px);
    background: var(--neutral);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}
/* Background: poster image (all devices) with the looping video on top (wide screens with motion allowed). */
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--primary); }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
@media (max-width: 47.99em) { .hero__video { display: none; } }
.hero__grid { display: grid; gap: 2.5rem; align-items: center; }

.hero__title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(4rem, 17vw, 9rem);
    line-height: 0.84; letter-spacing: -0.012em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__line > span { display: block; }
.hero__lede { max-width: 34rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--on-dark); }

@media (min-width: 64em) {
    .hero__grid { grid-template-columns: minmax(0, 1fr) 25rem; gap: 4rem; }
}

/* Availability card */
.avail-card {
    background: var(--paper); color: var(--text);
    border-radius: var(--radius-card);
    padding: clamp(1.5rem, 3vw, 2rem);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55);
    --focus: var(--primary);
}
.avail-card__title { font-family: var(--font-display); font-weight: 700; font-size: 2rem; text-transform: uppercase; line-height: 1; margin-bottom: 0.4rem; }
.avail-card__intro { color: var(--muted); margin-bottom: 1.25rem; }
.avail-form[hidden], .avail-result[hidden] { display: none; }

/* Promotion mode: the offer replaces the card's intro; its button reveals the same form. */
.avail-card--promo { border-top: 6px solid var(--accent); }
.promo__image { width: 96px; height: 96px; object-fit: cover; border-radius: 12px; margin-bottom: 1rem; }
.promo__offer { font-size: 1.125rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; overflow-wrap: anywhere; }
.promo__valid { font-weight: 700; color: var(--primary); margin-bottom: 0.5rem; }
.promo__terms { font-size: 0.875rem; line-height: 1.5; color: var(--muted); margin-bottom: 1.25rem; overflow-wrap: anywhere; }
.promo__cta[hidden] { display: none; }
.avail-card--promo .avail-form { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.js .avail-card--promo .avail-form:not(.is-open) { display: none; }

.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; }
.field input, .field select {
    width: 100%; min-height: 3rem; padding: 0.625rem 0.875rem;
    font: 400 1.0625rem var(--font-body); color: var(--text);
    background: var(--paper); border: 1.5px solid var(--field-border); border-radius: var(--radius-field);
}
.field select {
    appearance: none; padding-right: 2.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2D3D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.1rem;
}
.field input::placeholder { color: var(--placeholder); opacity: 1; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); border-radius: var(--radius-field); }
.field__error { margin: 0.3rem 0 0; font-size: 0.9375rem; font-weight: 500; color: var(--error); min-height: 0; }
.field__error:empty { display: none; }
.field--error input, .field--error select { border-color: var(--error); }

.avail-result:focus { outline: none; }
.avail-result__title { font-size: 1.75rem; text-transform: uppercase; font-weight: 700; margin-bottom: 0.35rem; }
.avail-result > p { color: var(--muted); font-size: 1rem; }
.avail-result__message {
    margin: 1rem 0; padding: 0.875rem 1rem;
    background: var(--neutral); border-left: 3px solid var(--primary); border-radius: 0 var(--radius-field) var(--radius-field) 0;
    font: 500 1rem/1.5 var(--font-body); color: var(--text); white-space: pre-wrap;
}
.avail-result__actions { display: grid; gap: 0.625rem; margin-bottom: 0.75rem; }
.avail-result .avail-result__hint { font-size: 0.9375rem; }
.avail-result .avail-result__areas { font-size: 0.9375rem; border-top: 1px solid var(--line); padding-top: 0.75rem; }

/* Service chips */
.hero__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.chip {
    display: inline-flex; align-items: center;
    min-height: 2.5rem; padding: 0.4rem 1rem;
    max-width: 100%; line-height: 1.3;
    border: 1px solid var(--line-dark); border-radius: 1.25rem;  /* a pill on one line, still tidy if a long label wraps */
    background: rgba(31, 45, 61, 0.7);
    color: var(--paper); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
a.chip:hover { border-color: var(--accent-2); }
.chip--static { color: var(--accent-2); border-style: dashed; }

/* Hero entrance: hidden only when JS is on; a CSS failsafe reveals it if the script never runs. */
.js .hero__line > span { transform: translateY(105%); }
.js [data-hero-fade] { opacity: 0; }
.js:not(.gsap-on) .hero__line > span,
.js:not(.gsap-on) [data-hero-fade] { animation: failsafe-reveal 0.01s 2.5s forwards; }
@keyframes failsafe-reveal { to { transform: none; opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head p { color: var(--muted); max-width: 32rem; font-size: 1.1875rem; }
.section-head--light h2 { color: var(--paper); }
@media (min-width: 64em) {
    .section-head { grid-template-columns: 1fr auto; align-items: end; }
    .section-head p { text-align: right; }
}

/* Services */
.section--services { padding-top: calc(var(--section) - 1rem); background: var(--neutral); }
.service-cards { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.service-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card);
    overflow: hidden;
}
.service-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary); }
.service-card__media picture, .service-card__media img { display: block; width: 100%; height: 100%; }
.service-card__media img { object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.service-card:hover .service-card__media img,
.service-card:focus-within .service-card__media img { transform: scale(1.05); }
/* No photo yet: a neutral branded panel (decorative), never a stock image. */
.service-card__placeholder {
    display: grid; place-items: center; width: 100%; height: 100%;
    color: var(--accent-2);
    background-color: var(--primary);
    background-image:
        repeating-linear-gradient(-12deg, rgba(126, 214, 255, 0.08) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 70% 20%, rgba(0, 180, 255, 0.3), transparent 60%);
}
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem 1.5rem 1.5rem; }
.service-card__name { font-size: 1.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.4rem; }
.service-card__body p { color: var(--muted); font-size: 1.0625rem; margin-bottom: 1rem; }
.service-card__more {
    margin-top: auto; align-self: flex-start;
    font-weight: 600; color: var(--primary);
    text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}
/* The whole card is clickable through the "Learn more" link. */
.service-card__more::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.service-card__more:focus-visible { outline: none; }
.service-card__more:focus-visible::after { outline: 3px solid var(--primary); outline-offset: -3px; }
.service-card:hover { border-color: var(--accent-2); }
@media (min-width: 40em) { .service-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .service-cards { grid-template-columns: repeat(3, 1fr); } }

.audiences { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }
.audiences li {
    display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.3rem 1rem;
    border: 1.5px solid var(--primary); border-radius: 1.125rem; max-width: 100%;
    font-weight: 600; font-size: 1rem; color: var(--primary);
}

/* Before / after */
.section--results { background: var(--paper); padding-bottom: calc(var(--section) + var(--slant)); }
.results { display: grid; gap: 2.5rem; align-items: center; }
.results__copy h2 { margin-bottom: 1.25rem; }
.results__copy p { color: var(--muted); max-width: 26rem; }
.results__note { font-size: 1rem; border-left: 3px solid var(--primary); padding-left: 0.875rem; }
@media (min-width: 64em) { .results { grid-template-columns: 5fr 7fr; gap: 4rem; } }

.ba { margin: 0; --pos: 50%; }
.ba__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--text); }
.ba__frame:has(.ba__range:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.ba__img { position: absolute; inset: 0; display: grid; place-items: center; }
.ba__img--before { background-color: var(--text); }
.ba__img--after { background-color: var(--neutral); clip-path: inset(0 0 0 var(--pos)); }
.ba__img picture, .ba__img img { display: block; width: 100%; height: 100%; }
.ba__img img { object-fit: cover; }
.ba__handle {
    position: absolute; top: 0; bottom: 0; left: var(--pos);
    width: 3px; margin-left: -1.5px; background: var(--paper);
    box-shadow: 0 0 0 1px rgba(31, 45, 61, 0.25);
    pointer-events: none;
}
.ba__handle span {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 3rem; height: 3rem;
    border-radius: 50%; background: var(--accent); color: var(--text);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.ba__range {
    position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
    opacity: 0; cursor: ew-resize; touch-action: pan-y;
}
.ba__caption { display: flex; justify-content: space-between; margin-top: 0.75rem; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; text-transform: uppercase; color: var(--muted); }

/* Why band: dark, diagonal on both edges */
.section--why {
    background: var(--primary); color: var(--paper);
    padding-block: calc(var(--section) + var(--slant));
    margin-block: calc(var(--slant) * -1);
    clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%);
    position: relative; z-index: 1;
}
.benefits { display: grid; gap: 2.5rem 2rem; }
.benefit { border-top: 2px solid var(--accent-2); padding-top: 1.25rem; }
.benefit h3 { font-size: 1.625rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.6rem; }
.benefit p { color: var(--on-dark); font-size: 1.0625rem; }
@media (min-width: 40em) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .benefits { grid-template-columns: repeat(4, 1fr); } }

/* How it works: a real sequence, so the steps are numbered */
.section--steps { padding-top: calc(var(--section) + var(--slant)); background: var(--neutral); }
.steps { display: grid; gap: 2rem; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 0.5rem; }
.step::before {
    content: counter(step);
    display: block; margin-bottom: 1rem;
    font-family: var(--font-display); font-weight: 700; font-size: 6rem; line-height: 0.8;
    color: transparent; -webkit-text-stroke: 2px var(--primary);
}
.step__title { font-size: 1.75rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; }
.step p { color: var(--muted); max-width: 28ch; }
@media (min-width: 64em) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
    .step:not(:last-child)::after {
        content: ""; position: absolute; top: 2.6rem; left: 5rem; right: -1.5rem;
        border-top: 2px dashed var(--line);
    }
}

/* Areas */
.section--areas { background: var(--paper); }
.areas { display: grid; gap: 2.5rem; }
.areas__copy h2 { margin-bottom: 1.25rem; }
.areas__copy p { color: var(--muted); }
.areas__list { display: grid; grid-template-columns: repeat(2, 1fr); }
.areas__list li {
    display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem;
    padding: 1rem 0.25rem 1rem 0; border-top: 1px solid var(--line);
    font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.05;
}
.areas__list li:nth-child(odd) { padding-right: 1.25rem; }
.areas__list li:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.areas__list span { font-family: var(--font-body); font-weight: 600; font-size: 0.8125rem; color: var(--muted); }
@media (min-width: 64em) { .areas { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; } }

/* CTA band */
.cta-band { background: var(--primary); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.cta-band__inner { display: grid; gap: 2rem; align-items: center; }
.cta-band__title { color: var(--paper); margin-bottom: 0.75rem; }
.cta-band p { font-size: 1.1875rem; max-width: 34rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (min-width: 64em) {
    .cta-band__inner { grid-template-columns: 1fr auto; }
    .cta-band__actions { justify-content: flex-end; max-width: 30rem; }
}

/* ---------- Inner pages (services) ---------- */
/* Compact navy hero: same colours and diagonal edge as the homepage hero, no video. */
.page-hero {
    position: relative; background: var(--primary); color: var(--paper);
    padding-block: clamp(1.5rem, 4vw, 2.5rem) calc(var(--slant) + clamp(2rem, 5vw, 3.5rem));
    --focus: var(--accent-2);
}
.page-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: calc(var(--slant) + 1px);
    background: var(--hero-next, var(--paper)); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none;
}
.page-hero--plain { --hero-next: var(--neutral); }
.page-hero__grid { display: grid; gap: 2rem; align-items: center; }
.page-hero__title {
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    font-size: clamp(2.75rem, 8vw, 5rem); line-height: 0.92; letter-spacing: -0.005em;
    margin: 0.75rem 0 1rem;
}
.page-hero__lede { max-width: 36rem; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--on-dark); }
.page-hero__lede + p { margin-top: 1.5rem; }
.page-hero__media { position: relative; z-index: 1; }
.page-hero__media picture, .page-hero__media img { display: block; width: 100%; height: auto; }
.page-hero__media img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55); }
@media (min-width: 64em) { .page-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 34rem); gap: 4rem; } }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.breadcrumbs li { display: inline-flex; align-items: center; color: var(--on-dark); }
.breadcrumbs li + li::before { content: "/"; margin-inline: 0.6rem; color: var(--accent-2); }
.breadcrumbs a { color: var(--accent-2); text-underline-offset: 0.2em; }
.breadcrumbs a:hover { color: var(--paper); }
.breadcrumbs [aria-current="page"] { color: var(--paper); font-weight: 600; }

.section--detail { background: var(--paper); padding-top: clamp(2.5rem, 5vw, 4rem); }
.detail { display: grid; gap: clamp(2.5rem, 5vw, 4rem); }
.detail__what h2 { margin-bottom: 1.25rem; }
.detail__what p { max-width: 38rem; font-size: 1.1875rem; color: var(--text); }
.detail__lists { display: grid; gap: 2.5rem; }
.detail__list h3 { font-size: 1.75rem; font-weight: 700; text-transform: uppercase; padding-top: 1.25rem; border-top: 2px solid var(--primary); margin-bottom: 1rem; }
.check-list { margin: 0; padding: 0 0 0 1.25rem; }
.check-list li { padding: 0.3rem 0 0.3rem 0.25rem; color: var(--text); }
.check-list li::marker { color: var(--primary); }
@media (min-width: 40em) { .detail__lists { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
@media (min-width: 64em) { .detail { grid-template-columns: 5fr 7fr; align-items: start; } }

.section--faq { background: var(--paper); }
.faq { display: grid; gap: 2rem; }
.faq__items { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    min-height: 3.5rem; padding: 1rem 0; cursor: pointer; list-style: none;
    font-weight: 600; font-size: 1.125rem; color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--primary); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item summary:hover { color: var(--primary); }
.faq__item p { margin: 0 0 1.25rem; max-width: 44rem; color: var(--muted); }
@media (min-width: 64em) { .faq { grid-template-columns: 4fr 8fr; gap: 4rem; align-items: start; } }

.section--related { background: var(--neutral); }
.service-cards--related { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40em) { .service-cards--related { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .service-cards--related { grid-template-columns: repeat(5, 1fr); } }
.service-card--small .service-card__body { padding: 0.875rem 1rem 1rem; }
.service-card--small .service-card__name { font-size: 1.25rem; }
.service-card--small .service-card__more { font-size: 0.9375rem; }

.section--book { background: var(--paper); }
.section--book .avail-card { border: 1px solid var(--neutral); }
.book { display: grid; gap: 2rem; align-items: start; }
.book__copy h2 { margin-bottom: 1rem; }
.book__copy p { max-width: 28rem; color: var(--muted); font-size: 1.1875rem; }
.book__copy .book__hours { color: var(--text); font-weight: 600; font-size: 1rem; }
@media (min-width: 64em) { .book { grid-template-columns: 1fr 25rem; gap: 4rem; align-items: center; } }

/* "How it works" on inner pages: no diagonal band above it, so normal top padding. */
.page-service .section--steps, .page-services .section--steps { padding-top: var(--section); }
.page-services .section--steps { background: var(--paper); }

.audience-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.audience-note .audiences { margin-top: 0; }
.audience-note p { margin: 0; color: var(--muted); }

/* ---------- Service areas, gallery, about, contact, privacy ---------- */
.page-about .section--steps, .page-areas .section--steps { padding-top: var(--section); }
.section--areas-page { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section--areas-page + .section--book { background: var(--neutral); }

.site-nav a[aria-current="page"]:not(.btn) { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.35em; }

.section--gallery { background: var(--neutral); padding-top: clamp(2.5rem, 5vw, 4rem); }
/* Filters need JS: shown from the first paint when the js class is set in <head>, so nothing shifts. */
.gallery-filters {
    display: none; flex-wrap: nowrap; gap: 0.5rem; margin-bottom: 1.75rem;
    /* One row that scrolls sideways on small screens: its height never changes when fonts load. */
    overflow-x: auto; overscroll-behavior-x: contain; padding: 3px 3px 6px; margin-inline: -3px;
}
.gallery-filter { flex: none; white-space: nowrap; }
.js .gallery-filters { display: flex; }
.gallery-filter {
    min-height: 2.75rem; padding: 0.5rem 1rem; border-radius: 1.375rem; cursor: pointer;
    border: 1.5px solid var(--primary); background: var(--paper); color: var(--primary);
    font: 600 1rem var(--font-body);
}
.gallery-filter span { font-weight: 500; }
.gallery-filter[aria-pressed="true"] { background: var(--primary); color: var(--paper); }
.gallery-filter:hover { border-color: var(--text); }
.gallery { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40em) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64em) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item[hidden] { display: none; }
.gallery__item figure { margin: 0; }
.gallery__link { display: block; border-radius: 12px; overflow: hidden; background: var(--primary); }
.gallery__link picture, .gallery__link img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__link img { transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.gallery__link:hover img, .gallery__link:focus-visible img { transform: scale(1.04); }
.gallery__item figcaption { margin-top: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.section--results-gallery { padding-bottom: var(--section); }

.lightbox { width: min(72rem, 100vw - 2rem); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius-card); background: var(--text); color: var(--paper); --focus: var(--accent-2); }
.lightbox::backdrop { background: rgba(31, 45, 61, 0.85); }
.lightbox__inner { display: grid; }
.lightbox__img { width: 100%; height: auto; max-height: calc(100vh - 8rem); object-fit: contain; background: #000; }
.lightbox__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.75rem 1rem; }
.lightbox__caption { margin: 0; font-weight: 500; }
.lightbox__buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.about { display: grid; gap: 2.5rem; }
.about__block h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.about__block p { color: var(--text); }
@media (min-width: 64em) { .about { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.page-thanks .about, .page-404 .about { max-width: 52rem; }
@media (min-width: 64em) { .page-thanks .about, .page-404 .about { grid-template-columns: repeat(2, 1fr); } }
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; }
.facts dt { font-weight: 600; color: var(--text); }
.facts dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.plain-steps { margin: 0; padding-left: 1.25rem; }
.plain-steps li { padding: 0.3rem 0; }
.plain-steps li::marker { color: var(--primary); font-weight: 700; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

.section--contact { background: var(--neutral); padding-top: clamp(2.5rem, 5vw, 4rem); }
.contact { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64em) { .contact { grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; } }
.contact__form { background: var(--paper); border-radius: var(--radius-card); padding: clamp(1.5rem, 3vw, 2.5rem); }
.contact__form h2 { margin-bottom: 1.25rem; }
.contact__promo { padding: 0.75rem 1rem; border-left: 4px solid var(--accent); background: var(--neutral); border-radius: 0 var(--radius-field) var(--radius-field) 0; }
.contact__aside h2 { font-size: 2rem; margin-bottom: 1.25rem; }
.contact__aside h3 { font-size: 1.375rem; font-weight: 700; text-transform: uppercase; margin: 1.75rem 0 0.5rem; }
.contact__aside p { color: var(--text); }
.contact-form__grid { display: grid; gap: 0 1.25rem; }
@media (min-width: 40em) {
    .contact-form__grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form__grid .field--wide, .contact-form__grid .field--choice { grid-column: 1 / -1; }
}
.field textarea {
    width: 100%; padding: 0.625rem 0.875rem; resize: vertical;
    font: 400 1.0625rem/1.5 var(--font-body); color: var(--text);
    background: var(--paper); border: 1.5px solid var(--field-border); border-radius: var(--radius-field);
}
.field textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field--error textarea { border-color: var(--error); }
.field__hint { margin: 0.3rem 0 0; font-size: 0.9375rem; color: var(--muted); }
.field__optional { font-weight: 400; color: var(--muted); }
.field--choice { border: 0; padding: 0; margin: 0 0 1rem; }
.field--choice legend { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.35rem; padding: 0; }
.field--choice .choice { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; margin: 0 1.5rem 0 0; font-size: 1rem; font-weight: 500; cursor: pointer; }
.choice input { width: 1.25rem; height: 1.25rem; accent-color: var(--primary); }
.contact-form__consent { font-size: 0.9375rem; color: var(--muted); }
.form-alert { margin-bottom: 1.5rem; padding: 1rem 1.25rem; border: 2px solid var(--error); border-radius: var(--radius-field); background: var(--paper); color: var(--text); }
.form-alert:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.form-alert { scroll-margin-top: calc(var(--header-h) + 5rem); }
.form-alert p { margin: 0 0 0.5rem; font-weight: 600; }
.form-alert p:last-child { margin: 0; }
.form-alert ul { margin: 0; padding-left: 1.25rem; }
.form-alert a { color: var(--error); font-weight: 500; }
/* Honeypot: off-screen for people and screen readers, still filled in by naive bots. */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.section--prose { background: var(--paper); padding-top: clamp(2.5rem, 5vw, 4rem); }
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.75rem, 3.5vw, 2.25rem); margin: 2.25rem 0 0.75rem; }
.prose h3 { font-size: 1.375rem; font-weight: 700; margin: 1.5rem 0 0.4rem; }
.prose p { color: var(--text); }
.prose__updated { color: var(--muted); font-size: 0.9375rem; }

.site-footer__heading a { color: inherit; text-decoration: none; }
.site-footer__heading a:hover { color: var(--accent-2); text-decoration: underline; }
.site-footer__base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.site-footer__base p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-footer__legal a { display: inline-block; padding-block: 0.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: var(--on-dark); font-size: 1rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 4.5rem); }
.site-footer__brand p { margin-top: 1rem; max-width: 22rem; }
.site-footer__heading { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; letter-spacing: 0.01em; }
.site-footer__list li { display: flex; align-items: center; gap: 0.6rem; padding-block: 0.3rem; }
.site-footer a { color: var(--paper); text-decoration: none; }
.site-footer a:hover { color: var(--accent-2); text-decoration: underline; }
.site-footer__base { background: rgba(0, 0, 0, 0.22); font-size: 0.875rem; }
.site-footer__base .wrap { padding-block: 1.1rem; }
@media (min-width: 40em) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1.4fr 1.2fr 1fr 1fr; } }

/* ---------- Sticky mobile action bar ---------- */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom));
    background: rgba(31, 45, 61, 0.97);
    border-top: 1px solid var(--line-dark);
}
.action-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    min-height: 3rem; border-radius: var(--radius-btn);
    font-weight: 600; text-decoration: none;
    color: var(--paper); border: 1px solid rgba(255, 255, 255, 0.35);
}
.action-bar__btn--primary { background: var(--accent); color: var(--text); border-color: var(--accent); }
body { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
@media (min-width: 64em) {
    .action-bar { display: none; }
    body { padding-bottom: 0; }
}

/* ---------- 404 ---------- */
.not-found { padding-block: var(--section); }
.not-found__title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(3rem, 9vw, 6rem); line-height: 0.9; margin-bottom: 1.5rem; }
.not-found__inner > p { max-width: 36rem; color: var(--muted); }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .hero__line > span, .js [data-hero-fade] { transform: none; opacity: 1; animation: none; }
    .hero__video { display: none; }
    .btn { transition: none; }
    .site-header, .site-header__inner, .site-header .brand__mark, .site-header .brand__name { transition: none; }
    .service-card__media img, .gallery__link img { transition: none; }
    .service-card:hover .service-card__media img, .service-card:focus-within .service-card__media img { transform: none; }
}
