/* ============================================================
   Kahaunaele Foundation, design system
   Hand-written CSS. No CDN framework, no runtime compile.
   ============================================================ */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
    /* Brand */
    --ink: #08171c;
    --ink-2: #0d2830;
    --deep: #0f4c5c;
    --primary: #003441;
    --gold: #c9a961;
    --gold-lt: #e4c87f;
    --sand: #f5f1e8;
    --paper: #fbf8f1;
    --leaf: #4f7942;

    /* Semantic, light theme is the default */
    --bg: var(--paper);
    --bg-alt: #f2ede2;
    --surface: #ffffff;
    --surface-2: #f7f3ea;
    --text: #13252b;
    --text-soft: #4c5f66;
    --text-faint: #7b8c93;
    --line: rgba(19, 37, 43, 0.12);
    --line-soft: rgba(19, 37, 43, 0.07);
    --accent: var(--primary);
    --accent-ink: #ffffff;
    --shadow-sm: 0 1px 2px rgba(8, 23, 28, 0.05), 0 4px 12px rgba(8, 23, 28, 0.05);
    --shadow-md: 0 2px 6px rgba(8, 23, 28, 0.06), 0 18px 40px -12px rgba(8, 23, 28, 0.18);
    --shadow-lg: 0 4px 10px rgba(8, 23, 28, 0.08), 0 40px 80px -24px rgba(8, 23, 28, 0.35);

    /* Type */
    --font-display: 'Fraunces', 'Lora', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

    /* Fluid scale, clamp() means no breakpoint jumps */
    --t-hero: clamp(2.75rem, 1.2rem + 6.6vw, 7rem);
    --t-h1: clamp(2.25rem, 1.3rem + 4vw, 4.5rem);
    --t-h2: clamp(1.75rem, 1.2rem + 2.3vw, 3rem);
    --t-h3: clamp(1.25rem, 1.05rem + 0.85vw, 1.75rem);
    --t-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.375rem);
    --t-body: 1.0625rem;
    --t-sm: 0.875rem;
    --t-xs: 0.75rem;

    /* Space + shape */
    --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 4rem);
    --section: clamp(4.5rem, 2rem + 9vw, 10rem);
    --max: 1320px;
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-xl: 40px;

    /* Motion */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
    --dur: 0.6s;

    --nav-h: 76px;
}

html.dark {
    --bg: var(--ink);
    --bg-alt: #0b1f26;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.03);
    --text: #eef3f2;
    --text-soft: rgba(238, 243, 242, 0.72);
    --text-faint: rgba(238, 243, 242, 0.48);
    --line: rgba(238, 243, 242, 0.14);
    --line-soft: rgba(238, 243, 242, 0.08);
    --accent: var(--gold);
    --accent-ink: #08171c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
}

/* ---------- 2. Reset ----------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--t-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.025em;
    text-wrap: balance;
    font-variation-settings: 'SOFT' 0, 'WONK' 0, 'opsz' 40;
}

p { text-wrap: pretty; }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: var(--gold); color: var(--ink); }

/* ---------- 3. Layout helpers -------------------------------------------- */

.wrap {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.skip {
    position: absolute;
    left: -9999px;
}
.skip:focus {
    left: 1rem;
    top: 1rem;
    z-index: 200;
    position: fixed;
    background: var(--gold);
    color: var(--ink);
    padding: 0.75rem 1.25rem;
    border-radius: var(--r-sm);
    font-weight: 700;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
}

.lead {
    font-size: var(--t-lead);
    color: var(--text-soft);
    line-height: 1.55;
    max-width: 58ch;
}

/* Film-grain veil, keeps big flat colour fields from banding */
.grain::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- 4. Buttons --------------------------------------------------- */

.btn {
    --btn-bg: var(--accent);
    --btn-fg: var(--accent-ink);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.01em;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease);
    will-change: transform;
}

/* Radial sheen that tracks the pointer (coords set in JS) */
.btn::before {
    content: '';
    position: absolute;
    inset: -40%;
    z-index: -1;
    background: radial-gradient(circle 120px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--ink); }
.btn--gold:hover { --btn-bg: var(--gold-lt); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-fg: currentColor;
    box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.1); }

.btn--lg { padding: 1.15rem 2.25rem; font-size: 1rem; }

.btn .ico { transition: transform 0.35s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }

/* Text link with a wipe underline */
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    font-size: var(--t-sm);
    color: var(--accent);
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0% 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s var(--ease);
    padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; }
.link .ico { transition: transform 0.35s var(--ease); }
.link:hover .ico { transform: translateX(4px); }

/* ---------- 5. Chrome: progress bar, nav --------------------------------- */

.progress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-lt));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 120;
    pointer-events: none;
}

.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    transition: background-color 0.45s var(--ease), box-shadow 0.45s var(--ease),
                backdrop-filter 0.45s var(--ease), border-color 0.45s var(--ease);
    border-bottom: 1px solid transparent;
    color: var(--sand);
}
.nav__inner {
    width: 100%;
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Solid state once the hero is behind us */
.nav.is-stuck {
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    backdrop-filter: saturate(180%) blur(16px);
    border-bottom-color: var(--line);
    box-shadow: 0 1px 24px rgba(8, 23, 28, 0.06);
    color: var(--text);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.brand__mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--deep), var(--primary));
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.brand small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.6;
}

.nav__links {
    display: none;
    align-items: center;
    gap: 0.35rem;
}
.nav__link {
    position: relative;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: var(--t-sm);
    font-weight: 500;
    opacity: 0.82;
    transition: opacity 0.25s, background-color 0.25s;
}
.nav__link:hover { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.nav__link.is-here { opacity: 1; font-weight: 600; }
.nav__link.is-active { opacity: 1; }
.nav__link.is-here::after,
.nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    transform: translateX(-50%);
}

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    transition: background-color 0.25s, transform 0.25s var(--ease);
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

/* Show the sun in dark mode, the moon in light, i.e. the theme you'd switch to. */
.i-dark { display: none; }
html.dark .i-dark { display: block; }
html.dark .i-light { display: none; }

.nav__cta { display: none; }

/* Burger */
.burger { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; }
.burger span {
    display: block;
    width: 20px;
    height: 1.75px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.75px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.75px) rotate(-45deg); }

/* Full-screen mobile sheet */
.sheet {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: grid;
    grid-template-rows: var(--nav-h) 1fr auto;
    background: var(--bg);
    clip-path: circle(0% at calc(100% - 3.5rem) 2.4rem);
    transition: clip-path 0.65s var(--ease), visibility 0.65s;
    visibility: hidden;
}
.sheet.is-open { clip-path: circle(150% at calc(100% - 3.5rem) 2.4rem); visibility: visible; }
.sheet__nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    padding-inline: var(--gutter);
}
.sheet__link {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.2rem + 4vw, 3.25rem);
    letter-spacing: -0.03em;
    padding-block: 0.35rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
.sheet.is-open .sheet__link { opacity: 1; transform: none; }
.sheet__link:hover { color: var(--gold); }
.sheet__link i {
    font-family: var(--font-sans);
    font-style: normal;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-faint);
}
.sheet__foot {
    padding: var(--gutter);
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.sheet__foot .btn { flex: 1 1 12rem; }

/* ---------- 6. Hero ------------------------------------------------------ */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    isolation: isolate;
    overflow: hidden;
    color: var(--sand);
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}
.hero__media img,
.hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slow push-in; the parallax offset is written by JS */
    transform: scale(1.06) translate3d(0, var(--py, 0px), 0);
    animation: heroZoom 22s var(--ease) forwards;
}
@keyframes heroZoom {
    from { transform: scale(1.12) translate3d(0, var(--py, 0px), 0); }
    to   { transform: scale(1.02) translate3d(0, var(--py, 0px), 0); }
}
.hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 23, 28, 0.75) 0%, rgba(8, 23, 28, 0.15) 32%, rgba(8, 23, 28, 0.6) 72%, var(--ink) 100%),
        linear-gradient(96deg, rgba(8, 23, 28, 0.82) 8%, rgba(8, 23, 28, 0.28) 52%, rgba(15, 76, 92, 0.25) 100%);
}

.hero__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: calc(var(--nav-h) + 3rem);
    padding-bottom: 2.5rem;
}
.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
    padding: 0.45rem 0.95rem 0.45rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.hero__pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.7);
    animation: pulse 2.4s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 12px rgba(201, 169, 97, 0); }
    100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0); }
}

.hero h1 {
    font-size: var(--t-hero);
    line-height: 0.94;
    letter-spacing: -0.04em;
    margin-block: 1.5rem 1.25rem;
    max-width: 16ch;
    font-variation-settings: 'SOFT' 0, 'WONK' 1, 'opsz' 144;
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
    font-variation-settings: 'SOFT' 8, 'WONK' 1, 'opsz' 144;
}

/* Per-line mask reveal */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.reveal-line > span {
    display: block;
    transform: translateY(105%);
    animation: lineUp 1s var(--ease) forwards;
}
@keyframes lineUp { to { transform: translateY(0); } }

.hero .lead { color: rgba(245, 241, 232, 0.86); max-width: 46ch; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.hero__rail {
    border-top: 1px solid rgba(245, 241, 232, 0.16);
    background: linear-gradient(180deg, transparent, rgba(8, 23, 28, 0.5));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero__rail .wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem 1.5rem;
    padding-block: 1.25rem;
}
.hero__stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--gold);
}
.hero__stat span {
    font-size: var(--t-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.65);
}

.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: 8.5rem;
    display: none;
    writing-mode: vertical-rl;
    align-items: center;
    gap: 0.9rem;
    font-size: var(--t-xs);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(245, 241, 232, 0.6);
}
.scroll-cue::after {
    content: '';
    width: 1px;
    height: 60px;
    background: linear-gradient(rgba(245, 241, 232, 0.6), transparent);
    animation: cue 2.4s var(--ease-io) infinite;
    transform-origin: top;
}
@keyframes cue {
    0% { transform: scaleY(0); }
    45% { transform: scaleY(1); }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- 7. Marquee --------------------------------------------------- */

.ticker {
    background: var(--ink);
    color: var(--sand);
    padding-block: 1.15rem;
    overflow: hidden;
    border-block: 1px solid rgba(245, 241, 232, 0.1);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
    display: flex;
    width: max-content;
    gap: 3.5rem;
    animation: marquee 38s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--t-sm);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(245, 241, 232, 0.72);
}
.ticker__item svg { width: 15px; height: 15px; color: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 8. Stats ----------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.stat {
    background: var(--bg);
    padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
    transition: background-color 0.4s var(--ease);
}
.stat:hover { background: var(--surface-2); }
.stat b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--accent);
    font-variation-settings: 'opsz' 144;
}
.stat p { margin-top: 0.6rem; font-size: var(--t-sm); color: var(--text-soft); }

/* ---------- 9. Bento ----------------------------------------------------- */

.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 0.4rem + 1vw, 1.25rem);
}
.tile {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    isolation: isolate;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
    color: var(--sand);
    background: var(--ink-2);
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 23, 28, 0.2) 0%, rgba(8, 23, 28, 0.62) 48%, rgba(8, 23, 28, 0.95) 100%);
}
.tile h3 { font-size: var(--t-h3); }
.tile p { font-size: var(--t-sm); color: rgba(245, 241, 232, 0.78); margin-top: 0.4rem; max-width: 34ch; }
.tile__kicker {
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.55rem;
}

/* Tiles that carry data rather than a photo */
.tile--flat { background: var(--accent); color: var(--accent-ink); }
.tile--flat::after { display: none; }
.tile--flat p { color: inherit; opacity: 0.78; }
.tile--flat .tile__kicker { color: inherit; opacity: 0.6; }

.tile--quote {
    background: var(--gold);
    color: var(--ink);
    justify-content: center;
}
.tile--quote::after { display: none; }
.tile--quote blockquote {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 1rem + 1.5vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    font-style: italic;
    font-variation-settings: 'SOFT' 10, 'WONK' 1, 'opsz' 72;
}
.tile--quote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

.tile__num {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variation-settings: 'opsz' 144;
}

/* ---------- 10. Pathway cards -------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
}
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover .card__media img { transform: scale(1.07); }
.card__step {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    display: grid;
    place-items: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding-inline: 0.6rem;
    border-radius: 999px;
    background: rgba(8, 23, 28, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--gold);
    font-size: var(--t-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.card__body { padding: clamp(1.25rem, 0.9rem + 1vw, 1.75rem); display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.card__body h3 { font-size: var(--t-h3); }
.card__body p { font-size: var(--t-sm); color: var(--text-soft); flex: 1; }
.card .link { margin-top: 0.35rem; }

/* ---------- 11. Process -------------------------------------------------- */

.process { display: grid; gap: clamp(2rem, 1rem + 3vw, 4rem); }
.process__head { align-self: start; }
.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 0.6rem + 1.5vw, 2.25rem);
    padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
    border-top: 1px solid var(--line);
    transition: opacity 0.5s var(--ease);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
    font-family: var(--font-display);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gold);
    padding-top: 0.35rem;
}
.step h3 { font-size: var(--t-h3); margin-bottom: 0.4rem; }
.step p { font-size: var(--t-sm); color: var(--text-soft); max-width: 52ch; }
.step__bar {
    grid-column: 1 / -1;
    height: 2px;
    background: var(--line-soft);
    margin-top: 1.1rem;
    overflow: hidden;
}
.step__bar i {
    display: block;
    height: 100%;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.9s var(--ease);
}
.step.is-on .step__bar i { transform: scaleX(1); }

/* ---------- 12. Editorial / founder -------------------------------------- */

.editorial {
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 4.5rem);
    align-items: center;
}
.portrait {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.portrait__badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--r-md);
    background: rgba(8, 23, 28, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    color: var(--sand);
}
.portrait__badge img { width: 40px; height: 40px; aspect-ratio: 1; border-radius: 9px; object-fit: cover; flex: none; }
.portrait__badge b { display: block; font-size: var(--t-sm); }
.portrait__badge span { font-size: var(--t-xs); opacity: 0.7; }

.pullquote {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.1rem + 2vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
    font-style: italic;
    font-variation-settings: 'SOFT' 10, 'WONK' 1, 'opsz' 100;
    margin-block: 1.25rem 1.5rem;
}
.pullquote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-sans);
    font-style: normal;
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ---------- 13. Values switcher ------------------------------------------ */

.values { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.values__list { display: flex; flex-direction: column; }
.value {
    width: 100%;
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding-block: 1.15rem;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
    transition: color 0.4s var(--ease), padding-inline 0.4s var(--ease);
}
.values__list .value:last-child { border-bottom: 1px solid var(--line); }
.value:hover { color: var(--text-soft); }
.value.is-on { color: var(--text); }
.value__i {
    font-family: var(--font-display);
    font-size: var(--t-xs);
    letter-spacing: 0.14em;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.4s;
}
.value.is-on .value__i { opacity: 1; }
.value__name { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -0.03em; }
.value__desc {
    grid-column: 2 / -1;
    font-size: var(--t-sm);
    color: var(--text-soft);
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 0.5s var(--ease), opacity 0.4s var(--ease), margin-top 0.5s var(--ease);
}
.value__desc > span { overflow: hidden; }
.value.is-on .value__desc { grid-template-rows: 1fr; opacity: 1; margin-top: 0.5rem; }

.values__stage {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--ink-2);
    box-shadow: var(--shadow-md);
}
.values__stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.8s var(--ease), transform 1.2s var(--ease);
}
.values__stage img.is-on { opacity: 1; transform: scale(1); }

/* ---------- 14. Gallery strip -------------------------------------------- */

.strip {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.strip__track {
    display: flex;
    width: max-content;
    gap: clamp(0.75rem, 0.5rem + 0.8vw, 1.25rem);
    animation: marquee 60s linear infinite;
}
.strip:hover .strip__track { animation-play-state: paused; }
.strip figure {
    position: relative;
    width: clamp(180px, 22vw, 320px);
    aspect-ratio: 3 / 4;
    border-radius: var(--r-md);
    overflow: hidden;
    flex: none;
}
.strip figure:nth-child(even) { aspect-ratio: 4 / 3; align-self: center; }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.strip figure:hover img { transform: scale(1.08); }
.strip figcaption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.75rem 0.9rem 0.75rem;
    background: linear-gradient(transparent, rgba(8, 23, 28, 0.85));
    color: var(--sand);
    font-size: var(--t-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- 15. CTA ------------------------------------------------------ */

.cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-xl);
    background:
        radial-gradient(120% 140% at 12% 0%, rgba(15, 76, 92, 0.95) 0%, transparent 55%),
        radial-gradient(100% 120% at 100% 100%, rgba(201, 169, 97, 0.5) 0%, transparent 60%),
        var(--ink);
    color: var(--sand);
    padding: clamp(2.5rem, 1.5rem + 5vw, 6rem);
    isolation: isolate;
}
.cta img.cta__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: saturate(0.5);
}
.cta h2 { font-size: var(--t-h1); max-width: 18ch; }
.cta .lead { color: rgba(245, 241, 232, 0.82); margin-top: 1.25rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- 16. Footer --------------------------------------------------- */

.footer {
    background: var(--ink);
    color: rgba(245, 241, 232, 0.72);
    padding-block: clamp(3rem, 2rem + 3vw, 5rem) 2rem;
}
.footer a:hover { color: var(--gold); }
.footer__grid {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(245, 241, 232, 0.12);
}
.footer h4 {
    font-family: var(--font-sans);
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.7rem; font-size: var(--t-sm); }
.footer__brand { color: var(--sand); }
.footer__brand p { font-size: var(--t-sm); margin-top: 1rem; max-width: 34ch; color: rgba(245, 241, 232, 0.65); }
.footer__social { display: flex; gap: 0.6rem; margin-top: 1.5rem; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    transition: background-color 0.3s, transform 0.3s var(--ease);
}
.footer__social a:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.footer__social svg { width: 18px; height: 18px; }
.footer__base {
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: var(--t-xs);
    color: rgba(245, 241, 232, 0.5);
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); animation: pulse 2.4s infinite; }

/* ---------- 17. Sticky mobile action bar --------------------------------- */

.dock {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 90;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    box-shadow: var(--shadow-md), inset 0 0 0 1px var(--line);
    transform: translateY(150%);
    transition: transform 0.5s var(--ease);
}
.dock.is-up { transform: none; }
.dock .btn { flex: 1; padding-block: 0.8rem; }

/* ---------- 18. Scroll reveal -------------------------------------------- */

/* Scoped to .js: if the script never runs, nothing is ever hidden. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 19. Breakpoints ---------------------------------------------- */

@media (min-width: 600px) {
    .hero__rail .wrap { grid-template-columns: repeat(4, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

/* The stat block sits in the narrow column of a two-up editorial layout, so it
   stays 2x2 rather than squeezing four captions into ~90px each. */
.stats { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 900px) {
    .nav__links, .nav__cta { display: flex; }
    .burger { display: none; }
    .scroll-cue { display: flex; }
    .dock { display: none; }

    .bento {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 210px;
    }
    .bento > *:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .bento > *:nth-child(2) { grid-column: span 1; }
    .bento > *:nth-child(3) { grid-column: span 1; }
    .bento > *:nth-child(4) { grid-column: span 2; }
    .bento > *:nth-child(5) { grid-column: span 2; grid-row: span 2; }
    .bento > *:nth-child(6) { grid-column: span 2; grid-row: span 2; }
    .tile { min-height: 0; }

    .cards { grid-template-columns: repeat(3, 1fr); }
    .process { grid-template-columns: 1fr 1.6fr; }
    .process__head { position: sticky; top: calc(var(--nav-h) + 3rem); }
    .editorial { grid-template-columns: 0.85fr 1fr; }
    .values { grid-template-columns: 1fr 1fr; align-items: center; }
    .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

/* Phones: the hero photo is bright behind the copy, so lean on the vertical
   scrim rather than the side one, and stop the data tiles ballooning. */
@media (max-width: 599px) {
    .hero__scrim {
        background: linear-gradient(180deg, rgba(8, 23, 28, 0.72) 0%, rgba(8, 23, 28, 0.55) 30%,
                    rgba(8, 23, 28, 0.82) 70%, var(--ink) 100%);
    }
    .hero__tag { font-size: 0.6875rem; }
    .tile--flat, .tile--quote { min-height: 170px; }
}

/* Short laptop screens: the display type has to give way so the hero CTAs
   and the stat rail stay above the fold. */
@media (min-width: 900px) and (max-height: 900px) {
    .hero h1 { font-size: clamp(2.5rem, 3.6vw + 1rem, 4.75rem); margin-block: 1rem 0.85rem; }
    .hero .lead { font-size: 1.0625rem; }
    .hero__body { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 1.75rem; }
    .hero__actions { margin-top: 1.5rem; }
    .hero__rail .wrap { padding-block: 1rem; }
    .scroll-cue { bottom: 7.5rem; }
}

/* ---------- 20. Motion & print preferences ------------------------------- */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
    .reveal-line > span { transform: none; }
    .hero__media img { transform: none; }
    .ticker__track, .strip__track { animation: none; }
    .hero__media video { animation: none; }
    .dock { transform: none; }
}
