/* ══════════════════════════════════════════════════════════════════════════
   AONYX "TIDELINE" DESIGN SYSTEM v9
   Field-naturalist expedition dossier, printed at night.
   Spec: DESIGN-SYSTEM-PROMPT.md — read it before adding anything here.
   Fonts (loaded per page): Fraunces · Inter · IBM Plex Mono
   ══════════════════════════════════════════════════════════════════════════ */

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

:root {
    /* ink — dark surfaces */
    --abyss: #0A1518;
    --ink: #102125;
    --ink-2: #162B30;
    /* paper — light surfaces */
    --bone: #F3EFE6;
    --paper: #FAF7F0;
    --sand: #E5DECE;
    /* accent */
    --gold: #D9A552;
    --gold-deep: #B9842F;
    --gold-soft: #E8C179;
    /* instrument cyan — mono data on dark only */
    --biolum: #8FE0CE;
    --biolum-dim: #5FA396;
    /* text */
    --t-ink: #14232A;
    --t-body: #3C4C50;
    --t-faint: #6E7D80;
    --t-bone: #F3EFE6;
    --t-mist: rgba(243, 239, 230, 0.72);
    --t-ghost: rgba(243, 239, 230, 0.45);
    /* lines */
    --line: rgba(20, 35, 42, 0.16);
    --line-dark: rgba(243, 239, 230, 0.16);
    /* geometry */
    --radius: 2px;
    --gutter: clamp(1.25rem, 4vw, 4rem);
    --container: min(1440px, 100% - 2 * var(--gutter));
    --prose: 65ch;
    /* type */
    --f-display: "Outfit", sans-serif;
    --f-body: "Inter", system-ui, -apple-system, sans-serif;
    --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
    --fs-display: clamp(3.4rem, 10vw, 8.75rem);
    --fs-h1: clamp(2.6rem, 6vw, 5.25rem);
    --fs-h2: clamp(2rem, 4.2vw, 3.4rem);
    --fs-h3: clamp(1.35rem, 2.4vw, 1.75rem);
    --fs-body: 1.0625rem;
    --fs-small: 0.875rem;
    --fs-mono: 0.75rem;
    /* motion */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --dur-fast: 0.3s;
    --dur: 0.7s;
    --dur-slow: 1.2s;
}

/* ── base ────────────────────────────────────────────────────────────────── */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-body);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--t-body);
    background: var(--bone);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* film grain — unifies photos and flat fields. pointer-events none, so it can
   sit above everything; at 3.5% it reads as texture, not haze. */
body::after {
    content: "";
    position: fixed;
    inset: -50%;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection {
    background: var(--gold);
    color: var(--abyss);
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

section[id] {
    scroll-margin-top: 140px;
}

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

/* ── typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
    font-family: var(--f-display);
    font-weight: 380;
    font-variation-settings: "SOFT" 60;
    color: var(--t-ink);
    line-height: 1.04;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
h4 { font-size: 1.15rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }

h1 em, h2 em, h3 em, .display em {
    font-style: italic;
    font-weight: 340;
    color: inherit;
}

p {
    max-width: var(--prose);
    margin-bottom: 1rem;
}

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

small {
    font-size: var(--fs-small);
    color: var(--t-faint);
}

/* mono label — the system's connective tissue. Uppercase comes from here so
   markup stays sentence-case. */
.mono,
.eyebrow {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.6;
}

.eyebrow {
    display: block;
    color: var(--t-faint);
    margin-bottom: 1.4rem;
}

.is-dark .eyebrow,
.section.is-dark .eyebrow {
    color: var(--t-ghost);
}

/* ── layout ──────────────────────────────────────────────────────────────── */

.section {
    padding-block: clamp(5rem, 11vw, 9.5rem);
    background: var(--bone);
}

.section.alt {
    background: var(--sand);
}

.section.is-paper {
    background: var(--paper);
}

.section.is-dark {
    background: var(--abyss);
    color: var(--t-mist);
}

.section.is-dark h1,
.section.is-dark h2,
.section.is-dark h3 {
    color: var(--t-bone);
}

.section.is-dark p {
    color: var(--t-mist);
}

.section-inner {
    width: var(--container);
    margin-inline: auto;
}

/* ruled section header: hairline → eyebrow + meta → big serif heading */
.section-header {
    border-top: 1px solid var(--line);
    padding-top: 1.1rem;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.is-dark .section-header {
    border-top-color: var(--line-dark);
}

.section-header .header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

/* Eyebrow and meta side by side leaves each ~150px on a phone, so both wrap
   into ragged stacks that read as one collided blob. Stack them properly. */
@media (max-width: 600px) {
    .section-header .header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

.section-header .header-meta {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.is-dark .section-header .header-meta {
    color: var(--t-ghost);
}

.section-header h2 {
    max-width: 16ch;
    margin-top: 0.8rem;
}

.section-header .eyebrow {
    margin-bottom: 0;
}

.prose {
    max-width: var(--prose);
}

.prose h3 {
    margin: 2.4rem 0 0.9rem;
}

.prose ul,
.prose ol {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

/* ── buttons ─────────────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    padding: 1.05em 1.9em;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    line-height: 1;
    transition: background-color var(--dur-fast) var(--ease-out),
        border-color var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out);
}

.btn::after {
    content: "→";
    font-family: var(--f-body);
    transition: transform var(--dur-fast) var(--ease-out);
}

.btn.no-arrow::after {
    content: none;
}

.btn:hover::after {
    transform: translateX(4px);
}

.btn.primary {
    background: var(--gold);
    color: var(--abyss);
}

.btn.primary:hover {
    background: var(--gold-deep);
}

.is-dark .btn.primary:hover,
.section.is-dark .btn.primary:hover,
.booking-modal .btn.primary:hover {
    background: var(--gold-soft);
}

/* Solid secondary — a transparent outline was too easy to miss over photos.
   background-color, never the `background` shorthand: the wipe-fill rule further
   down paints a gradient, and a shorthand here resets background-image to none,
   which left the hover state as bone text on a bone fill — an invisible label. */
.btn.ghost {
    background-color: var(--bone);
    border-color: rgba(20, 35, 42, 0.25);
    color: var(--abyss);
}

.btn.ghost:hover {
    border-color: rgba(20, 35, 42, 0.45);
}

.btn.ghost.dark {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--t-bone);
}

.btn.ghost.dark:hover {
    background-color: var(--ink-2);
}

/* tertiary text link with growing underline */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding-bottom: 0.35em;
    position: relative;
}

.btn-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: currentColor;
    opacity: 0.35;
}

.btn-link::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: var(--gold);
    transition: width var(--dur-fast) var(--ease-out);
    z-index: 1;
}

.btn-link:hover::before {
    width: 100%;
}

/* ── header / nav ────────────────────────────────────────────────────────── */

/* Always carry a dark scrim so links stay readable over any hero image. */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    transition: background-color var(--dur-fast) ease, border-color var(--dur-fast) ease;
    background: rgba(10, 21, 24, 0.72);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-dark);
}

.site-header.is-scrolled {
    background: rgba(10, 21, 24, 0.94);
}

.navbar {
    width: var(--container);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0.9rem 0;
    color: var(--t-bone);
}

.nav-logo img {
    height: 146px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav-links a {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-bone);
    position: relative;
    padding-bottom: 4px;
    transition: color var(--dur-fast) ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--gold-soft);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--dur-fast) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
    width: 100%;
}

.nav-cta {
    background: var(--gold);
    color: var(--abyss);
    padding: 0.9em 1.6em;
    border-radius: var(--radius);
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: background-color var(--dur-fast) ease;
    white-space: nowrap;
}

.nav-cta:hover {
    background: var(--gold-soft);
}

.nav-close {
    display: none;
}

.mobile-only-cta {
    display: none;
}

/* hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 220;
}

.hamburger-box {
    display: inline-block;
    width: 24px;
    height: 14px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 1.5px;
    background: var(--t-bone);
    transition: transform var(--dur-fast) var(--ease-out), top var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}

.hamburger-inner { top: 50%; }
.hamburger-inner::before { top: -6px; }
.hamburger-inner::after { top: 6px; }

.nav-toggle.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.nav-toggle.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
}

.nav-toggle.is-active .hamburger-inner::after {
    top: 0;
    transform: rotate(-90deg);
}

/* ── hero (home) ─────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    color: var(--t-bone);
    background: var(--abyss);
}

.hero_media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero_slide {
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    opacity: 0;
    will-change: opacity, transform;
}

/* content is visible without JS: first slide shows by default */
.hero_slide:first-child {
    opacity: 1;
}

.hero_overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 48%, rgba(10, 21, 24, 0.6), transparent 78%),
        linear-gradient(180deg, rgba(10, 21, 24, 0.72) 0%, rgba(10, 21, 24, 0.5) 42%, rgba(10, 21, 24, 0.95) 100%);
}

.hero_content {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin-inline: auto;
    padding-top: 7rem;
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.6rem;
}

.hero_kicker {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--biolum);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em 1.6em;
}

.hero_content h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.18;
    color: var(--t-bone);
    max-width: 14ch;
}

/* Bioluminescent headline: JS feeds each letter a --g (0..1) by cursor
   proximity; the glow stack below is plankton-in-the-water — a bright
   green-white core, cyan bloom, and a deep teal wash that lingers. */
.hl-word {
    display: inline-block;
    white-space: nowrap;
}

.hl-ch {
    --g: 0;
    display: inline-block;
    color: color-mix(in srgb, #EAFFF6 calc(var(--g) * 100%), var(--t-bone));
    text-shadow:
        0 0 calc(2px + 10px * var(--g)) rgb(186 246 226 / calc(0.9 * var(--g))),
        0 0 calc(6px + 28px * var(--g)) rgb(143 224 206 / calc(0.65 * var(--g))),
        0 0 calc(14px + 64px * var(--g)) rgb(74 176 178 / calc(0.45 * var(--g))),
        0 3px calc(20px + 46px * var(--g)) rgb(28 108 128 / calc(0.35 * var(--g)));
    transition: color 0.18s ease-out, text-shadow 0.45s var(--ease-out);
    will-change: text-shadow;
}

.hero_sub {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--t-mist);
    max-width: 44ch;
    line-height: 1.6;
}

.hero_actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 0.4rem;
}

/* "next departure" line — filled by events.js (#next-tour-date) */
.hero_next {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-ghost);
    display: inline-flex;
    gap: 0.8em;
    align-items: baseline;
}

.hero_next strong,
.hero_next span {
    color: var(--gold);
    font-weight: 400;
}

/* mono facts strip pinned to hero base */
.hero_facts {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid var(--line-dark);
    background: linear-gradient(180deg, rgba(10, 21, 24, 0), rgba(10, 21, 24, 0.35));
}

.hero_facts_inner {
    width: var(--container);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 3rem;
    padding: 1rem 0;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-ghost);
}

.hero_facts_inner span b {
    color: var(--t-mist);
    font-weight: 400;
}

.hero_scroll {
    position: absolute;
    right: var(--gutter);
    bottom: 5.5rem;
    z-index: 2;
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--t-ghost);
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.hero_scroll::after {
    content: "";
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, var(--t-ghost), transparent);
    animation: scrollLine 2.2s var(--ease-out) infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    45% { transform: scaleY(1); transform-origin: top; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── page hero (subpages) ────────────────────────────────────────────────── */

.page-hero {
    position: relative;
    min-height: min(68vh, 640px);
    display: flex;
    align-items: flex-end;
    color: var(--t-bone);
    background: var(--abyss);
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10, 21, 24, 0.5) 0%, rgba(10, 21, 24, 0.3) 45%, rgba(10, 21, 24, 0.9) 100%);
}

.page-hero_inner {
    width: var(--container);
    margin-inline: auto;
    padding: 9rem 0 3.5rem;
}

.page-hero .eyebrow {
    color: var(--biolum);
    margin-bottom: 1rem;
}

.page-hero h1 {
    color: var(--t-bone);
    max-width: 14ch;
}

.page-hero_meta {
    margin-top: 1.4rem;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-mist);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 2.2em;
}

.page-hero_meta .price {
    color: var(--gold);
}

/* ── expedition index (signature component) ──────────────────────────────── */

.exp-index {
    list-style: none;
    border-top: 1px solid var(--line-dark);
    position: relative;
}

.exp-row {
    border-bottom: 1px solid var(--line-dark);
    position: relative;
    transition: background-color var(--dur-fast) ease;
}

.exp-row_link {
    display: grid;
    grid-template-columns: 3.5rem 1fr auto 2.5rem;
    align-items: center;
    gap: 1.2rem 2rem;
    padding: 2.1rem 1rem;
    position: relative;
    z-index: 1;
}

.exp-row_no {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    color: var(--t-ghost);
}

.exp-row_titles {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.exp-row_name {
    font-family: var(--f-display);
    font-weight: 380;
    font-variation-settings: "SOFT" 60;
    font-size: clamp(1.7rem, 3.4vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--t-bone);
    transition: transform var(--dur-fast) var(--ease-out), font-style 0s;
}

.exp-row_sub {
    font-size: var(--fs-small);
    color: var(--t-ghost);
    max-width: 52ch;
}

.exp-row_meta {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-mist);
    text-align: right;
    white-space: nowrap;
}

.exp-row_meta .price {
    color: var(--gold);
    display: block;
    margin-top: 0.3em;
}

.exp-row_arrow {
    font-size: 1.4rem;
    color: var(--t-ghost);
    transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast) ease;
    justify-self: end;
}

/* hover photo — desktop pointer devices only */
.exp-row_media {
    display: none;
}

@media (hover: hover) and (min-width: 900px) {
    .exp-row_media {
        display: block;
        position: absolute;
        right: clamp(8rem, 22vw, 22rem);
        top: 50%;
        width: 300px;
        aspect-ratio: 3 / 2;
        object-fit: cover;
        transform: translateY(-46%) rotate(-2deg);
        opacity: 0;
        z-index: 2;
        pointer-events: none;
        transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
    }

    .exp-row:hover {
        background: var(--ink-2);
    }

    .exp-row:hover .exp-row_media {
        opacity: 1;
        transform: translateY(-50%) rotate(0deg);
    }

    .exp-row:hover .exp-row_name {
        font-style: italic;
        transform: translateX(10px);
    }

    .exp-row:hover .exp-row_arrow {
        transform: translateX(8px);
        color: var(--gold);
    }
}

/* per-row book affordance sits outside the link */
.exp-row_book {
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    z-index: 3;
}

@media (min-width: 900px) {
    .exp-row_book {
        right: 4.7rem;
        top: auto;
        bottom: 1.1rem;
        transform: none;
        opacity: 0;
        transition: opacity var(--dur-fast) ease;
    }

    .exp-row:hover .exp-row_book,
    .exp-row:focus-within .exp-row_book {
        opacity: 1;
    }
}

.exp-row_book .btn-link {
    color: var(--gold);
}

/* index on light background (adventures page) */
.exp-index.on-light {
    border-top-color: var(--line);
}

.exp-index.on-light .exp-row {
    border-bottom-color: var(--line);
}

.exp-index.on-light .exp-row_name { color: var(--t-ink); }
.exp-index.on-light .exp-row_no { color: var(--t-faint); }
.exp-index.on-light .exp-row_sub { color: var(--t-faint); }
.exp-index.on-light .exp-row_meta { color: var(--t-body); }
.exp-index.on-light .exp-row_arrow { color: var(--t-faint); }

@media (hover: hover) and (min-width: 900px) {
    .exp-index.on-light .exp-row:hover {
        background: var(--paper);
    }
}

/* mobile: thumb above text */
@media (max-width: 899px) {
    .exp-row_link {
        grid-template-columns: 2.2rem 1fr 1.6rem;
        grid-template-areas:
            "media media media"
            "no titles arrow"
            "no meta arrow";
        padding: 1.4rem 0 3.4rem;
    }

    .exp-row_media {
        display: block;
        grid-area: media;
        position: static;
        width: 100%;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        opacity: 1;
        transform: none;
        margin-bottom: 1.2rem;
    }

    .exp-row_no { grid-area: no; }
    .exp-row_titles { grid-area: titles; }
    .exp-row_arrow { grid-area: arrow; align-self: start; }

    .exp-row_meta {
        grid-area: meta;
        text-align: left;
        margin-top: 0.6rem;
        white-space: normal;
    }

    .exp-row_meta .price {
        display: inline;
        margin-left: 1em;
    }
}

/* ── stats strip (replaces icon circles; keeps GSAP hooks) ───────────────── */

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.feature-item {
    padding: 2.6rem 2rem 2.6rem 0;
    border-left: 1px solid var(--line);
    padding-left: 2rem;
}

.feature-item:first-child {
    border-left: none;
    padding-left: 0;
}

.feature-item .stat {
    font-family: var(--f-display);
    font-weight: 360;
    font-size: clamp(2.6rem, 4.5vw, 4rem);
    line-height: 1;
    color: var(--t-ink);
    display: block;
    margin-bottom: 0.7rem;
}

.feature-item h3 {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-body);
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: var(--fs-small);
    color: var(--t-faint);
}

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

    .feature-item,
    .feature-item:first-child {
        border-left: none;
        border-top: 1px solid var(--line);
        padding: 1.6rem 0;
    }

    .about-grid .feature-item:nth-child(-n+2) {
        border-top: none;
    }
}

/* ── editorial split (image + prose) ─────────────────────────────────────── */

.split {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.split.flip {
    grid-template-columns: 7fr 5fr;
}

.split_media {
    position: relative;
    overflow: hidden;
}

.split_media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

.split_media figcaption {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-faint);
    padding-top: 0.7rem;
}

@media (max-width: 899px) {
    .split,
    .split.flip {
        grid-template-columns: 1fr;
    }
}

/* full-bleed image break */
.image-break {
    position: relative;
    height: clamp(320px, 60vh, 640px);
    overflow: hidden;
}

.image-break img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-break figcaption {
    position: absolute;
    left: var(--gutter);
    bottom: 1.2rem;
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-mist);
}

/* ── marquee (typographic) ───────────────────────────────────────────────── */

.marquee {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 0;
    background: var(--bone);
}

.is-dark .marquee,
.marquee.on-dark {
    border-color: var(--line-dark);
    background: var(--abyss);
}

.marquee_track {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: marquee 70s linear infinite;
}

.marquee:hover .marquee_track {
    animation-play-state: paused;
}

.marquee_track span {
    font-family: var(--f-display);
    font-style: italic;
    font-weight: 340;
    font-size: clamp(1.2rem, 2.4vw, 1.9rem);
    color: var(--t-faint);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.marquee.on-dark .marquee_track span {
    color: var(--t-ghost);
}

.marquee_track span::after {
    content: "·";
    color: var(--gold);
    font-style: normal;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ── image filmstrip (gallery-track: JS clones + scrolls) ────────────────── */

.gallery-track-container {
    overflow: hidden;
}

.gallery-track {
    display: flex;
    gap: 2px;
    width: max-content;
}

.gallery-track .insta-item,
.gallery-track img {
    width: clamp(220px, 24vw, 360px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    flex-shrink: 0;
}

/* ── instagram strip ─────────────────────────────────────────────────────── */

.insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
}

.insta-item {
    position: relative;
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.insta-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 21, 24, 0.55);
    color: var(--t-bone);
    opacity: 0;
    transition: opacity var(--dur-fast) ease;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

@media (max-width: 899px) {
    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── pull-quote testimonials ─────────────────────────────────────────────── */

.quote-block {
    max-width: 56rem;
}

.quote-block blockquote {
    font-family: var(--f-display);
    font-weight: 360;
    font-variation-settings: "SOFT" 60;
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--t-ink);
    text-indent: -0.45em;
}

.is-dark .quote-block blockquote {
    color: var(--t-bone);
}

.quote-block blockquote::before {
    content: "“";
    color: var(--gold);
}

.quote-block blockquote::after {
    content: "”";
    color: var(--gold);
}

.quote-block figcaption {
    margin-top: 1.6rem;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.is-dark .quote-block figcaption {
    color: var(--t-ghost);
}

.quote-list > .quote-block {
    padding: 3rem 0;
    border-top: 1px solid var(--line);
}

.quote-list > .quote-block:first-child {
    border-top: none;
    padding-top: 0;
}

.is-dark .quote-list > .quote-block {
    border-top-color: var(--line-dark);
}

/* ── video feature ───────────────────────────────────────────────────────── */

.video-feature {
    position: relative;
}

.video-parallax {
    position: relative;
    width: 100%;
    height: min(78vh, 720px);
    overflow: hidden;
    background: var(--abyss);
}

.video-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-scrim {
    position: absolute;
    inset: 0;
    background: rgba(10, 21, 24, 0.35);
    pointer-events: none;
}

/* fullscreen drive-video overlay (built by main.js) */
.video-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 21, 24, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 4rem);
}

.video-overlay iframe {
    width: min(1100px, 100%);
    aspect-ratio: 16 / 9;
    border: none;
}

/* Local files: let the clip's own ratio decide, so portrait footage isn't
   letterboxed into a 16:9 box. */
.video-overlay video {
    width: auto;
    height: auto;
    max-width: min(1100px, 100%);
    max-height: 100%;
    background: #000;
}

.video-overlay_close {
    position: absolute;
    top: 1.2rem;
    right: 1.6rem;
    font-size: 2.2rem;
    color: var(--t-bone);
    line-height: 1;
}

/* the in-page hero-video scrim GSAP animates (legacy hook) */
.video-parallax .video-overlay {
    position: absolute;
    z-index: 1;
    background: rgba(10, 21, 24, 0.4);
    pointer-events: none;
    padding: 0;
}

/* ── tour detail (day / night / snorkel / kayak) ─────────────────────────── */

.tour-layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.tour-rail {
    position: sticky;
    top: 110px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 2rem;
}

.tour-rail .btn {
    width: 100%;
    margin-top: 1.6rem;
}

.tour-rail_note {
    font-size: var(--fs-small);
    color: var(--t-faint);
    margin-top: 1rem;
}

.fact-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fact-table th,
.fact-table td {
    text-align: left;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-weight: 400;
    vertical-align: top;
}

.fact-table th {
    color: var(--t-faint);
    padding-right: 1.5rem;
    white-space: nowrap;
}

.fact-table td {
    color: var(--t-ink);
    text-align: right;
}

.fact-table .price td {
    color: var(--gold-deep);
}

@media (max-width: 899px) {
    .tour-layout {
        grid-template-columns: 1fr;
    }

    .tour-rail {
        position: static;
    }
}

/* species / highlight mono tags */
.species-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    margin: 1.4rem 0;
}

.species-tags li {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-body);
    border: 1px solid var(--line);
    padding: 0.5em 0.9em;
}

/* checklist ("what to bring / included") */
.detail-list {
    list-style: none;
    max-width: var(--prose);
}

.detail-list li {
    padding: 0.9rem 0 0.9rem 2rem;
    border-bottom: 1px solid var(--line);
    position: relative;
}

.detail-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--gold-deep);
}

/* ── FAQ (native details) ────────────────────────────────────────────────── */

.faq-list {
    border-top: 1px solid var(--line);
    max-width: 52rem;
}

.faq-item {
    border-bottom: 1px solid var(--line);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
    padding: 1.5rem 0;
    font-family: var(--f-display);
    font-weight: 380;
    font-size: var(--fs-h3);
    line-height: 1.2;
    color: var(--t-ink);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-family: var(--f-body);
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--gold-deep);
    transition: transform var(--dur-fast) var(--ease-out);
    flex-shrink: 0;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding-bottom: 1.6rem;
    max-width: var(--prose);
}

/* ── process (how it works) ──────────────────────────────────────────────── */

.process-list {
    list-style: none;
    border-top: 1px solid var(--line);
    counter-reset: step;
}

.process-step {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 1.5rem 3rem;
    padding: 2.6rem 0;
    border-bottom: 1px solid var(--line);
}

.process-step::before {
    counter-increment: step;
    content: "0" counter(step);
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    color: var(--t-faint);
    padding-top: 0.6rem;
}

.process-step h3 {
    margin-bottom: 0.6rem;
}

.process-step img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

@media (max-width: 899px) {
    .process-step {
        grid-template-columns: 3rem 1fr;
    }

    .process-step img {
        grid-column: 2;
    }
}

/* ── contact ─────────────────────────────────────────────────────────────── */

.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

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

.contact-channels {
    list-style: none;
    border-top: 1px solid var(--line);
}

.contact-channels li {
    border-bottom: 1px solid var(--line);
    padding: 1.3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 2rem;
}

/* A label opposite a long email leaves no room between them at 390px, and the
   address ends up running edge to edge. Stack the pair instead. */
@media (max-width: 600px) {
    .contact-channels li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        padding: 1rem 0;
    }

    .contact-channels a,
    .contact-channels li > :last-child {
        overflow-wrap: anywhere;
    }

    .contact-channels a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
}

.contact-channels .label {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.contact-channels a {
    color: var(--t-ink);
    transition: color var(--dur-fast) ease;
}

.contact-channels a:hover {
    color: var(--gold-deep);
}

/* form fields: mono label above, hairline-bottom inputs */
.contact-form,
.booking-form {
    display: grid;
    gap: 1.7rem;
}

.contact-form {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.contact-form label,
.booking-form label {
    display: block;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.booking-form input,
.booking-form select,
.booking-form textarea {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.7rem 0.1rem;
    font-family: var(--f-body);
    font-size: 1rem;
    color: var(--t-ink);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    transition: border-color var(--dur-fast) ease;
}

.contact-form textarea,
.booking-form textarea {
    resize: vertical;
    min-height: 90px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-bottom-color: var(--gold-deep);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

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

/* ── booking modal (markup from booking.js — style only) ─────────────────── */

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 21, 24, 0.82);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    overflow-y: auto;
}

.booking-modal[hidden] {
    display: none;
}

.booking-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.8rem);
}

.booking-dialog .eyebrow {
    margin-bottom: 0.6rem;
}

.booking-dialog h3 {
    margin-bottom: 1.8rem;
}

.booking-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--t-faint);
    line-height: 1;
    transition: color var(--dur-fast) ease;
}

.booking-close:hover {
    color: var(--t-ink);
}

.booking-row.is-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

@media (max-width: 520px) {
    .booking-row.is-split {
        grid-template-columns: 1fr;
    }
}

.booking-optional {
    text-transform: none;
    letter-spacing: 0.05em;
    color: var(--t-faint);
}

.booking-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-family: var(--f-mono);
    font-size: var(--fs-small);
    letter-spacing: 0.08em;
    color: var(--t-body);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0.9rem 0;
    max-width: none;
}

.booking-total:empty {
    display: none;
}

.booking-total strong {
    font-size: 1.15rem;
    color: var(--t-ink);
    font-weight: 500;
}

.booking-error {
    color: #A03B2E;
    font-size: var(--fs-small);
    max-width: none;
}

.booking-fineprint {
    font-size: 0.8rem;
    color: var(--t-faint);
    max-width: none;
    line-height: 1.6;
}

.booking-submit {
    width: 100%;
}

/* post-payment banner */
.booking-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 3.5rem 1rem 1.5rem;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--abyss);
    color: var(--biolum);
    border-bottom: 1px solid var(--line-dark);
}

.booking-banner.is-error {
    color: #E8A08F;
}

.booking-banner-close {
    position: absolute;
    right: 1.2rem;
    font-size: 1.4rem;
    color: inherit;
}

/* ── events ──────────────────────────────────────────────────────────────── */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 2px;
}

.event-card {
    background: var(--paper);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}

.event-media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ink);
}

.event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur) var(--ease-out);
}

.event-card:hover .event-media img {
    transform: scale(1.03);
}

.event-media.is-empty {
    background: linear-gradient(160deg, var(--ink), var(--ink-2));
    aspect-ratio: auto;
    min-height: 8px;
}

.event-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
}

.event-date {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.event-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em 1.6em;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.event-desc {
    font-size: var(--fs-small);
    color: var(--t-body);
}

.event-foot {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.event-price {
    font-family: var(--f-mono);
    font-size: var(--fs-small);
    letter-spacing: 0.1em;
    color: var(--t-ink);
}

.events-status {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-faint);
    padding: 2rem 0;
}

/* ── tide / weather instrument panel ─────────────────────────────────────── */

.tide-section {
    background: transparent;
    color: var(--t-body);
}

.tide-widget {
    background: var(--paper);
    border: 1px solid var(--line);
}

.tide-header {
    padding: 1.6rem 2rem;
    border-bottom: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem 2rem;
}

.tide-header h3 {
    color: var(--t-ink);
    font-size: var(--fs-h3);
}

.tide-date,
.tide-updated {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.tide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.tide-item {
    padding: 1.6rem 2rem;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.tide-item:first-child {
    border-left: none;
}

.tide-item .label {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--t-faint);
    display: block;
    margin-bottom: 0.7rem;
}

.tide-item .value {
    font-family: var(--f-mono);
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    letter-spacing: 0.06em;
    color: var(--t-ink);
}

.tide-item .sub {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-faint);
    display: block;
    margin-top: 0.5rem;
}

@media (max-width: 899px) {
    .tide-item {
        border-left: none;
    }
}

/* 7-day forecast columns */
.forecast-section {
    margin-top: 2px;
}

.forecast-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.forecast-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 2px solid transparent;
    padding: 1.3rem 1rem;
    text-align: left;
    cursor: pointer;
    transition: background-color var(--dur-fast) ease;
    color: var(--t-body);
}

.forecast-card:hover {
    background: var(--sand);
}

.forecast-card.active {
    border-top-color: var(--gold);
    background: var(--sand);
}

.forecast-day {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-faint);
    margin-bottom: 0.8rem;
}

.forecast-icon {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    filter: grayscale(0.4);
}

.forecast-temp {
    font-family: var(--f-mono);
    font-size: 1.05rem;
    color: var(--t-ink);
}

.forecast-desc {
    font-family: var(--f-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-faint);
    margin-top: 0.4rem;
}

@media (max-width: 899px) {
    .forecast-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

/* live marine ticker (data-marine hooks) */
.marine-ticker {
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 0.9rem 0;
}

.marine-ticker-track {
    display: flex;
    gap: 4rem;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marine-ticker-item {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-body);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.marine-ticker-item::after {
    content: "///";
    color: var(--gold-deep);
    letter-spacing: 0;
}

/* ── gallery ─────────────────────────────────────────────────────────────── */

.gallery-grid {
    columns: 3 320px;
    gap: 2px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    transition: transform var(--dur) var(--ease-out);
}

.gallery-item:hover img {
    transform: scale(1.025);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2rem 1.2rem 1rem;
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-bone);
    background: linear-gradient(180deg, transparent, rgba(10, 21, 24, 0.75));
    opacity: 0;
    transition: opacity var(--dur-fast) ease;
}

.gallery-item:hover figcaption {
    opacity: 1;
}

/* No hover on touch, so the caption would never appear. Show it outright. */
@media (hover: none) {
    .gallery-item figcaption {
        opacity: 1;
    }
}

/* lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(10, 21, 24, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 5vw, 4rem);
}

.lightbox[hidden] {
    display: none;
}

.lightbox_image {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.lightbox_caption {
    margin-top: 1.2rem;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-ghost);
}

.lightbox_close {
    position: absolute;
    top: 1.2rem;
    right: 1.6rem;
    font-size: 2rem;
    font-weight: 300;
    color: var(--t-bone);
}

.lightbox_nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--t-mist);
    padding: 1rem;
}

.lightbox_nav:hover {
    color: var(--gold);
}

.lightbox_nav.prev { left: var(--gutter); }
.lightbox_nav.next { right: var(--gutter); }

/* ── team / about ────────────────────────────────────────────────────────── */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
    gap: clamp(1.5rem, 3vw, 3rem);
}

.team-card {
    background: transparent;
}

/* Compact ringed portrait — the ring is the border, the padding is the gap. */
.team-img {
    width: 172px;
    height: 172px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    padding: 7px;
    border: 1px solid var(--gold-deep);
    margin-bottom: 1.4rem;
}

.team-img-placeholder {
    display: grid;
    place-items: center;
    background: var(--paper);
    color: var(--t-body);
    font-size: var(--fs-small);
    text-align: center;
}

.team-content h3 {
    margin-bottom: 0.2rem;
}

.team-role {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    display: block;
    margin-bottom: 0.8rem;
}

.team-content p {
    font-size: var(--fs-small);
}

/* press / articles */
.article-list {
    border-top: 1px solid var(--line);
}

.article-widget {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.4rem 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.article-title {
    font-family: var(--f-display);
    font-weight: 380;
    font-size: var(--fs-h3);
    color: var(--t-ink);
    transition: color var(--dur-fast) ease;
}

.article-widget:hover .article-title {
    color: var(--gold-deep);
    font-style: italic;
}

.article-meta {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.article-snippet {
    grid-column: 1 / -1;
    font-size: var(--fs-small);
    color: var(--t-body);
    max-width: var(--prose);
}

/* ── partners (Explore The Shore) ────────────────────────────────────────── */

.partner-intro {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

@media (max-width: 899px) {
    .partner-intro {
        grid-template-columns: 1fr;
    }
}

/* Right-hand column of the intro. The two blocks were loose images and <p>s at
   three different widths, which read as ragged next to the prose column. */
.partner-aside {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.partner-aside_card {
    display: grid;
    justify-items: center;
    gap: 1.15rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.partner-aside_mark {
    width: min(180px, 60%);
    height: auto;
}

.partner-aside_cover {
    width: 100%;
    max-width: 260px;
    height: auto;
    border: 1px solid var(--line);
}

.partner-aside_caption {
    text-align: center;
    text-wrap: balance;
    font-size: var(--fs-small);
    color: var(--t-body);
}

/* Full width so both buttons line up with the media stacked above them. */
.partner-aside .btn {
    width: 100%;
}

.partner-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
}

.partner-stat {
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.partner-stat .stat {
    font-family: var(--f-display);
    font-weight: 360;
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--t-ink);
    display: block;
}

.partner-stat .label {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--t-faint);
}

.playlist-set {
    display: grid;
    gap: 2px;
}

.playlist {
    background: var(--paper);
    border: 1px solid var(--line);
}

.playlist-summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr) auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.1rem 1.4rem;
}

.playlist-summary::-webkit-details-marker {
    display: none;
}

/* Uncropped: YouTube stills are 4:3 — show the whole frame at natural ratio. */
.playlist-thumb {
    width: 168px;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

@media (max-width: 640px) {
    .playlist-summary {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: baseline;
    }

    .playlist-thumb {
        grid-column: 1 / -1;
        width: 100%;
    }

    /* Name and blurb are inline spans, so they ran together as one wrapping
       paragraph next to the count. Put the blurb on its own line. */
    .playlist-heading {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .playlist-blurb {
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

.playlist-name {
    font-family: var(--f-display);
    font-weight: 380;
    font-size: 1.3rem;
    color: var(--t-ink);
}

.playlist-blurb {
    font-size: var(--fs-small);
    color: var(--t-faint);
    max-width: 60ch;
}

.playlist-count {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--t-faint);
    white-space: nowrap;
}

.partner-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 2px;
    padding: 0 1.4rem 1.4rem;
}

.partner-video {
    background: var(--bone);
}

.partner-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
    width: 100%;
    cursor: pointer;
    background: var(--ink);
}

.partner-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur) var(--ease-out);
}

.partner-video-thumb:hover img {
    transform: scale(1.04);
}

.partner-video-thumb::after {
    content: "▶";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t-bone);
    font-size: 1.1rem;
    background: rgba(10, 21, 24, 0.3);
    transition: background-color var(--dur-fast) ease;
}

.partner-video-thumb:hover::after {
    background: rgba(10, 21, 24, 0.12);
}

/* ── video modal (partners) ──────────────────────────────────────────────── */

.video-modal {
    /* The global `* { margin: 0 }` reset kills the centring a dialog gets by default. */
    margin: auto;
    width: fit-content;
    max-width: calc(100% - 2rem);
    padding: 0;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--t-bone);
}

.video-modal::backdrop {
    background: rgba(10, 21, 24, 0.92);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.video-modal_bar,
.video-modal_foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
}

.video-modal_bar {
    justify-content: space-between;
    border-bottom: 1px solid var(--line-dark);
}

.video-modal_foot {
    justify-content: space-between;
    border-top: 1px solid var(--line-dark);
}

.video-modal_count,
.video-modal_close,
.video-modal_nav {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.video-modal_count {
    color: var(--t-ghost);
}

.video-modal_close,
.video-modal_nav {
    color: var(--t-mist);
    white-space: nowrap;
}

.video-modal_close:hover,
.video-modal_nav:hover:not(:disabled) {
    color: var(--gold);
}

.video-modal_nav:disabled {
    color: rgba(243, 239, 230, 0.25);
    cursor: not-allowed;
}

/* Height-driven so the bars always fit on screen; the 16:9 ratio then sets the
   width, and the fit-content dialog wraps to it. */
/* The 620px cap kept the player around 1100x620, and YouTube picks quality
   partly from rendered size — a player that small biases it towards 720p.
   Letting it fill the viewport is the most reliable of the 1080p levers. */
.video-modal_frame {
    aspect-ratio: 16 / 9;
    height: min(calc((100vw - 2rem) * 9 / 16), calc(100vh - 8rem), 820px);
    background: var(--abyss);
}

.video-modal_frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal_title {
    /* min-width:0 + ellipsis so a long episode name can't widen the dialog. */
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-family: var(--f-body);
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--t-mist);
}

@media (max-width: 640px) {
    .video-modal_title {
        display: none;
    }
}

.partner-video-info {
    padding: 0.8rem 0.9rem 1.1rem;
    font-size: var(--fs-small);
    color: var(--t-body);
}

.partner-channel-cta {
    margin-top: 3rem;
}

.news-drop .news-count {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    color: var(--t-faint);
}

/* ── floating whatsapp ───────────────────────────────────────────────────
   Desktop shows the Aonyx mascot; mobile falls back to the discreet glyph
   button, which is too narrow for a full-body figure. Both live in the same
   anchor so the link and its label never change. */

.floating-whatsapp {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-fast) var(--ease-out);
}

.floating-whatsapp_mascot {
    width: auto;
    height: 83px;
    display: block;
    filter: drop-shadow(0 10px 22px rgba(10, 21, 24, 0.35));
}

.floating-whatsapp svg {
    display: none;
}

.floating-whatsapp:hover {
    transform: translateY(-4px);
}

/* Hover/focus label. Sits to the left of the mascot so it never runs off the
   right edge. aria-hidden — the anchor's own label already says this. */
.floating-whatsapp_label {
    margin-right: 0.5rem;
    padding: 0.35rem 0.7rem;
    background: var(--abyss);
    color: var(--t-bone);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
}

.floating-whatsapp:hover .floating-whatsapp_label,
.floating-whatsapp:focus-visible .floating-whatsapp_label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 900px) {
    .floating-whatsapp {
        width: 48px;
        height: 48px;
        background: var(--abyss);
        border: 1px solid var(--line-dark);
        border-radius: 50%;
        transition: border-color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out);
    }

    .floating-whatsapp_mascot,
    .floating-whatsapp_label {
        display: none;
    }

    .floating-whatsapp svg {
        display: block;
        width: 22px;
        height: 22px;
        fill: var(--biolum);
    }

    .floating-whatsapp:hover {
        border-color: var(--biolum-dim);
        transform: translateY(-2px);
    }
}

/* ── pre-footer CTA + footer ─────────────────────────────────────────────── */

.footer-cta {
    background: var(--abyss);
    color: var(--t-mist);
    text-align: center;
    padding-block: clamp(5rem, 11vw, 9rem);
    border-bottom: 1px solid var(--line-dark);
}

.footer-cta .eyebrow {
    color: var(--t-ghost);
}

.footer-cta h2 {
    color: var(--t-bone);
    font-size: var(--fs-h1);
    max-width: 14ch;
    margin-inline: auto;
    margin-bottom: 2.2rem;
}

.footer {
    background: var(--abyss);
    color: var(--t-mist);
    overflow: hidden;
}

.footer-inner {
    width: var(--container);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 3rem;
    padding: clamp(3.5rem, 7vw, 6rem) 0 3rem;
}

.footer-inner > div:first-child img {
    height: 64px;
    margin-bottom: 1.4rem;
}

.footer-inner p {
    color: var(--t-ghost);
    font-size: var(--fs-small);
    max-width: 34ch;
}

.footer-contact {
    margin-top: 1.4rem;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.12em;
    color: var(--t-mist);
    display: grid;
    gap: 0.4rem;
}

.footer-contact a:hover {
    color: var(--gold);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.nav-group a {
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-mist);
    transition: color var(--dur-fast) ease;
}

.nav-group a:hover {
    color: var(--gold);
}

.nav-group a.nav-sub {
    color: var(--t-ghost);
}

.nav-group a.nav-sub:hover {
    color: var(--gold);
}

/* giant clipped wordmark */
.footer-wordmark {
    width: var(--container);
    margin-inline: auto;
    font-family: var(--f-display);
    font-weight: 380;
    font-variation-settings: "SOFT" 60;
    font-size: clamp(4.5rem, 17vw, 15rem);
    line-height: 0.78;
    letter-spacing: -0.03em;
    color: rgba(243, 239, 230, 0.1);
    user-select: none;
    pointer-events: none;
    transform: translateY(0.08em);
}

.footer-bottom {
    border-top: 1px solid var(--line-dark);
    padding: 1.4rem 0;
}

.footer-bottom_inner {
    width: var(--container);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem 2.5rem;
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-ghost);
}

.footer-coords {
    color: var(--biolum-dim);
}

.social-links {
    display: flex;
    gap: 1.8rem;
}

.social-links a {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--t-mist);
    transition: color var(--dur-fast) ease;
}

.social-links a:hover {
    color: var(--gold);
}

/* ── responsive nav (mobile full-screen overlay) ─────────────────────────── */

@media (max-width: 980px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 95px made the fixed header 133px — 16% of a phone screen permanently
       covered. 52px keeps the wordmark legible in ~72px. */
    .nav-logo img {
        height: 68px;
    }

    .nav-cta {
        display: none;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 210;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 0.4rem;
        padding: var(--gutter);
        background: var(--abyss);
        visibility: hidden;
        opacity: 0;
        transition: opacity var(--dur-fast) ease, visibility 0s linear var(--dur-fast);
    }

    .nav-links.is-open {
        visibility: visible;
        opacity: 1;
        transition: opacity var(--dur-fast) ease;
    }

    /* The chat button sits at z-index 300, above the menu's 210, so it hovered
       over the open overlay. Nothing should float over a full-screen menu. */
    body:has(.nav-links.is-open) .floating-whatsapp {
        display: none;
    }

    .nav-links a {
        font-family: var(--f-display);
        font-size: var(--fs-h2);
        font-weight: 380;
        letter-spacing: -0.02em;
        text-transform: none;
        color: var(--t-bone);
        /* 36px was under the comfortable tap floor; style.css does the same. */
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        opacity: 0;
        transform: translateY(14px);
        transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
    }

    .nav-links.is-open a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.is-open a:nth-child(2) { transition-delay: 0.05s; }
    .nav-links.is-open a:nth-child(3) { transition-delay: 0.09s; }
    .nav-links.is-open a:nth-child(4) { transition-delay: 0.13s; }
    .nav-links.is-open a:nth-child(5) { transition-delay: 0.17s; }
    .nav-links.is-open a:nth-child(6) { transition-delay: 0.21s; }
    .nav-links.is-open a:nth-child(7) { transition-delay: 0.25s; }
    .nav-links.is-open a:nth-child(8) { transition-delay: 0.29s; }
    .nav-links.is-open a:nth-child(9) { transition-delay: 0.33s; }

    .nav-links a::after {
        content: none;
    }

    .nav-close {
        display: block;
        position: absolute;
        top: 1.4rem;
        right: 1.4rem;
        font-family: var(--f-mono);
        font-size: 0.9rem;
        letter-spacing: 0.2em;
        color: var(--t-mist);
        padding: 0.6rem;
    }

    .mobile-only-cta {
        display: inline-flex;
        margin-top: 1.6rem;
        background: var(--gold);
        color: var(--abyss) !important;
        font-family: var(--f-mono) !important;
        font-size: var(--fs-mono) !important;
        letter-spacing: 0.16em !important;
        text-transform: uppercase;
        padding: 1em 1.8em;
        border-radius: var(--radius);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        grid-template-columns: 1fr 1fr;
    }

    /* 16-19px tall text links are an awkward fingertip target. Give the footer
       links a comfortable height without changing how they look. */
    .footer-nav a,
    .footer .nav-group a,
    .footer-contact a,
    .social-links a {
        display: inline-flex;
        align-items: center;
        min-height: 40px;
    }
}

/* ── reduced motion ──────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .marquee_track,
    .marine-ticker-track {
        animation: none;
    }

    .hero_scroll::after {
        animation: none;
        transform: none;
    }
}

/* ── team cards: hairline frame, gold lift on hover ── */
.team-card {
    border: 1px solid var(--line);
    padding: 1.8rem;
    transition: border-color var(--dur-fast) ease,
        background-color var(--dur-fast) ease,
        transform 0.45s var(--ease-out);
}

.team-card:hover {
    border-color: var(--gold);
    background: var(--paper);
    transform: translateY(-6px);
}

.team-card .team-img {
    transition: border-color var(--dur-fast) ease, transform 0.45s var(--ease-out);
}

.team-card:hover .team-img {
    border-color: var(--gold);
    transform: scale(1.04);
}

/* ══════════════════════════════════════════════════════════════════
   UNIFIED NAVBAR — matches the homepage header exactly.
   Appended last so it overrides the tideline nav styles above.
   ══════════════════════════════════════════════════════════════════ */

.site-header {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(7, 20, 29, 0.44);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 30px rgba(7, 20, 29, 0.35);
}

.navbar {
    width: min(1120px, 90vw);
    margin: 0 auto;
    padding: 1.2rem 0;
    color: #ffffff;
}

.nav-logo img {
    height: 123px;
}

.nav-links {
    gap: 2rem;
    font-weight: 500;
}

.nav-links a {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #ffffff;
    opacity: 0.85;
    padding-bottom: 0;
    transition: opacity 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: #ffffff;
    opacity: 1;
}

.nav-links a::after {
    bottom: -6px;
    height: 2px;
    border-radius: 999px;
    background: #f5c15b;
    width: 0;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a[aria-current="page"]:not(:hover)::after {
    width: 0;
}

.nav-cta {
    background: #f5c15b;
    color: #0F172A;
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-cta:hover {
    background: #e8aa35;
    transform: translateY(-2px);
}

/* hamburger — homepage style */
.nav-toggle {
    display: none;
    padding: 0.5rem;
    border: none;
    background: transparent;
    width: auto;
    height: auto;
}

.hamburger-box {
    width: 24px;
    height: 24px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 999px;
    transition: transform 0.15s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    top: -8px;
    opacity: 1;
}

.hamburger-inner::after {
    top: auto;
    bottom: -8px;
}

.nav-toggle.is-active .hamburger-inner {
    background-color: transparent;
    transform: translateY(-50%);
}

.nav-toggle.is-active .hamburger-inner::before {
    transform: translateY(8px) rotate(45deg);
    opacity: 1;
    top: -8px;
}

.nav-toggle.is-active .hamburger-inner::after {
    transform: translateY(-8px) rotate(-45deg);
    top: auto;
}

/* desktop + tablet: links inline, exactly like the homepage */
@media (min-width: 721px) {
    .nav-links {
        position: static;
        inset: auto;
        width: auto;
        height: auto;
        flex-direction: row;
        background: none;
        padding: 0;
        transform: none;
        visibility: visible;
        opacity: 1;
        overflow: visible;
    }

    .nav-links a {
        opacity: 0.85;
        transform: none;
    }

    .nav-links a:hover {
        opacity: 1;
    }

    .nav-close,
    .mobile-only-cta {
        display: none;
    }

    .nav-cta {
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
}

/* phone: homepage slide-down overlay menu */
@media (max-width: 720px) {
    .navbar {
        width: 90%;
        margin: 0 auto;
        padding: 1.2rem 0;
    }

    /* 95px made the fixed header 133px — 16% of a phone screen permanently
       covered. 52px keeps the wordmark legible in ~72px. */
    .nav-logo img {
        height: 68px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        background: rgba(7, 20, 29, 0.96);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: calc(6rem + env(safe-area-inset-top)) 2rem 2rem;
        gap: 1.5rem;
        transform: translateY(-100%);
        visibility: hidden;
        opacity: 1;
        transition: transform 0.3s ease, visibility 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.is-open {
        transform: translateY(0);
        visibility: visible;
        opacity: 1;
    }

    .nav-links a,
    .nav-links.is-open a {
        font-family: 'Inter', sans-serif;
        font-size: 1.1rem;
        font-weight: 500;
        letter-spacing: 0;
        text-transform: none;
        color: #ffffff;
        opacity: 1;
        transform: none;
        transition: opacity 0.2s ease;
        transition-delay: 0s;
    }

    .nav-close {
        position: absolute;
        top: calc(1.2rem + env(safe-area-inset-top));
        right: 1.2rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        font-size: 1.1rem;
        font-weight: 600;
        line-height: 1;
        font-family: 'Inter', sans-serif;
        letter-spacing: 0;
        padding: 0;
    }

    .nav-cta {
        display: none;
    }

    .mobile-only-cta {
        display: inline-flex;
        margin-top: 1rem;
        background: #f5c15b;
        color: #0F172A !important;
        font-family: 'Inter', sans-serif !important;
        font-size: 1rem !important;
        font-weight: 600;
        letter-spacing: 0 !important;
        text-transform: none;
        padding: 0.9rem 2rem;
        border-radius: 999px;
    }
}

/* --- Outline buttons: wipe-fill on hover ---------------------------------
   Same interaction as style.css so both halves of the mid-migration site
   behave identically. Gradient background rather than a pseudo-element, so
   nothing depends on stacking context. */
.btn.ghost {
    background-image: linear-gradient(to right, var(--ink), var(--ink));
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition: background-size 0.45s var(--ease-out), color 0.2s var(--ease-out),
        border-color 0.35s var(--ease-out);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
    background-color: var(--bone);
    background-size: 100% 100%;
    color: var(--t-bone);
    border-color: var(--ink);
}

.btn.ghost.dark {
    background-image: linear-gradient(to right, var(--ink-2), var(--ink-2));
}

.btn.ghost.dark:hover,
.btn.ghost.dark:focus-visible {
    background-color: var(--ink);
    color: var(--t-bone);
    border-color: var(--ink-2);
}

/* ── even behind-the-scenes grid (partners): rows align top and bottom ── */
.gallery-grid.is-even {
    columns: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.gallery-grid.is-even .gallery-item {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-grid.is-even .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* the split-level hero completes the rectangle by spanning two cells;
   8/3 = two 4/3 cells side by side, so its row stays the same height */
.gallery-grid.is-even .gallery-item.is-wide {
    grid-column: span 2;
    aspect-ratio: 8 / 3;
}

@media (max-width: 700px) {
    .gallery-grid.is-even {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── mobile: primary actions need a fingertip-sized target ───────────────── */

@media (max-width: 720px) {
    .btn {
        min-height: 48px;
    }
}

/* ── partners page: card grid ────────────────────────────────────────────── */

.partner-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: clamp(1rem, 2vw, 1.6rem);
}

.partner-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.partner-card_image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--line);
}

.partner-card_body {
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.partner-card_body h3 {
    font-family: var(--f-display);
    font-weight: 380;
    font-size: var(--fs-h3);
    color: var(--t-ink);
}

.partner-card_body p {
    font-size: var(--fs-small);
    color: var(--t-body);
}

.partner-card_note {
    margin-top: 0.3rem;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-deep);
}

.partner-card-cta {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.partner-card-cta .btn {
    margin-left: 0.5rem;
}

.footer-credit {
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(243, 239, 230, 0.72);
    transition: color 0.3s ease;
}

.footer-credit:hover {
    color: #D9A552;
}

/* ── press coverage articles ───────────────────────────────────────────────
   Was a two-column grid (title | date) with no narrow-width rule, so on a
   phone the headline and the tracked-out mono date fought over the same row
   and both wrapped badly. Rebuilt as one column that stacks in reading order
   — source, headline, standfirst — which needs no breakpoint to work. */
.article-list {
    border-top: 1px solid var(--line);
}

.article-widget {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    grid-template-areas:
        "meta    arrow"
        "title   arrow"
        "snippet snippet";
    row-gap: 0.5rem;
    column-gap: 1rem;
    align-items: start;
    /* Negative margin lets the hover tint bleed past the text column so the
       row reads as a target, while the text stays aligned to the grid. */
    padding: 1.65rem 1rem;
    margin-inline: -1rem;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: background-color var(--dur-fast) var(--ease-out);
}

.article-meta {
    grid-area: meta;
}

.article-title {
    grid-area: title;
    line-height: 1.25;
    text-wrap: balance;
}

.article-snippet {
    grid-area: snippet;
    margin: 0;
}

.article-widget::after {
    content: "→";
    grid-area: arrow;
    justify-self: end;
    font-family: var(--f-mono);
    font-size: var(--fs-mono);
    color: var(--t-faint);
    transition: transform var(--dur-fast) var(--ease-out),
        color var(--dur-fast) var(--ease-out);
}

/* Hover-only so the states cannot stick on a touch device after a tap. */
@media (hover: hover) {
    .article-widget:hover {
        background-color: rgba(20, 35, 42, 0.04);
    }

    .article-widget:hover::after {
        transform: translateX(5px);
        color: var(--gold-deep);
    }
}

.article-widget:focus-visible {
    outline: 2px solid var(--gold-deep);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .article-widget {
        padding: 1.35rem 0.85rem;
        margin-inline: -0.85rem;
        row-gap: 0.4rem;
        grid-template-columns: minmax(0, 1fr) 1.25rem;
    }

    /* fs-h3 tops out around 1.75rem, which is a lot of display serif on a
       375px screen once a headline runs to three lines. */
    .article-title {
        font-size: 1.15rem;
    }

    .article-snippet {
        font-size: 0.83rem;
        line-height: 1.5;
    }
}

/* ── about: press list disclosure (mobile only) ──────────────────────────── */

/* Desktop keeps the plain list: the summary is hidden and main.js holds the
   <details> open, so the markup change is invisible above 900px. */
.press-drop_summary {
    display: none;
}

@media (max-width: 900px) {
    .press-drop_summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        cursor: pointer;
        list-style: none;
        padding: 1.1rem 1.2rem;
        min-height: 56px;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        font-family: var(--f-mono);
        font-size: var(--fs-mono);
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--t-ink);
    }

    /* Safari still paints its own triangle without this. */
    .press-drop_summary::-webkit-details-marker {
        display: none;
    }

    .press-drop_summary::after {
        content: "+";
        font-size: 1.1rem;
        line-height: 1;
        color: var(--t-faint);
    }

    .press-drop[open] .press-drop_summary::after {
        content: "–";
    }

    .press-drop_count {
        color: var(--t-faint);
        letter-spacing: 0.12em;
    }

    .press-drop[open] .press-drop_summary {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .press-drop .article-list {
        padding-top: 1rem;
    }
}
