/* FilmFactory — layout: one long dive. The page background darkens from surface
   cream to abyss as you scroll; video carries every section, text stays sparse. */
:root {
  --z: 1;                 /* page scale, raised on big screens below */
  --surface: #ede7d9;     /* sunlit surface */
  --ink: #0c1a1f;         /* text on light water */
  --foam: #f4eee2;        /* text on dark water */
  --teal: #1b6f6a;        /* accent on light */
  --aqua: #9fe1cb;        /* accent on dark */
  --glow: #76f0d0;        /* bioluminescence, abyss accent */
  --coral: #ff6a3d;       /* signal / calls to action */
  --abyss: #04141a;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(20px, 8vw, 140px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--surface); }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
::selection { background: var(--coral); color: #fff; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ── Fixed environment ─────────────────────────────── */
#bg { position: fixed; inset: 0; z-index: 0; background: var(--surface); }
.fx { position: fixed; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
#caustics { mix-blend-mode: soft-light; }
#caustics i { position: absolute; top: -25%; height: 150%; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0) 72%); filter: blur(14px); animation: shimmer var(--d) ease-in-out var(--dl) infinite; }
#snow, #bio { opacity: 0; }
#snow i { position: absolute; top: 0; border-radius: 50%; background: rgba(220,238,232,.9); animation: snow var(--d) linear var(--dl) infinite; }
#bio i { position: absolute; border-radius: 50%; animation: glow var(--d) ease-in-out var(--dl) infinite; }
@keyframes shimmer { 0%,100% { transform: translateX(0) skewX(-14deg); opacity: .18; } 50% { transform: translateX(40px) skewX(-14deg); opacity: .55; } }
@keyframes snow { from { transform: translate(0,-12vh); } to { transform: translate(var(--sway),112vh); } }
@keyframes glow { 0%,100% { opacity: 0; transform: translate(-50%,-50%) scale(1); } 50% { opacity: .45; transform: translate(-50%,-50%) scale(1.18); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* Depth ruler + dive computer (desktop only) */
#ruler { position: fixed; left: clamp(14px,2.2vw,30px); top: 50%; transform: translateY(-50%); z-index: 40; height: min(calc(56vh / var(--z)),440px); width: 50px; pointer-events: none; }
#ruler::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: currentColor; opacity: .25; }
#ruler span { position: absolute; left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 7px; font: 9.5px var(--mono); letter-spacing: .04em; opacity: .55; }
#ruler span::before { content: ""; width: 12px; height: 1px; background: currentColor; }
#dot { position: absolute; left: 3.5px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(255,106,61,.22); }
#hud { position: fixed; right: clamp(14px,2.2vw,30px); top: 50%; transform: translateY(-50%); z-index: 40; pointer-events: none; padding: 14px 15px 13px; border: 1px solid; border-radius: 4px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); min-width: 150px; font-family: var(--mono); }
#hud .t { font-size: 9px; letter-spacing: .22em; color: var(--coral); margin-bottom: 11px; }
#hud .l { font-size: 8.5px; letter-spacing: .16em; opacity: .55; margin-bottom: 2px; }
#hud .big { font-size: 21px; font-weight: 500; }
#hud .u { font-size: 9.5px; opacity: .55; margin-left: 3px; }
#hud .row { display: flex; gap: 16px; margin: 10px 0; font-size: 13px; }
#hud .bar { width: 116px; height: 4px; border-radius: 2px; background: rgba(128,128,128,.25); overflow: hidden; margin-top: 4px; }
#light { height: 100%; width: 100%; background: linear-gradient(90deg, var(--coral), #ffb38f); }
@media (max-width: 960px) {
  #ruler { display: none; }
  /* Compact dive computer for phones and tablets: depth + temperature pill */
  #hud { top: auto; transform: none; min-width: 0; display: flex; align-items: baseline; gap: 12px; padding: 8px 12px; border-radius: 20px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 14px); right: calc(env(safe-area-inset-right, 0px) + 14px); }
  #hud .t, #hud .l, #hud .bar, #hud .row > div:last-child { display: none; }
  #hud .row { margin: 0; font-size: 12px; opacity: .8; }
  #hud .big { font-size: 16px; }
  #hud > div:nth-child(3)::before { content: "↓ "; color: var(--coral); }
}

/* ── Nav ───────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(env(safe-area-inset-top,0px) + clamp(16px,2.2vw,26px)) max(clamp(18px,4vw,52px), env(safe-area-inset-right,0px)) clamp(16px,2.2vw,26px) max(clamp(18px,4vw,52px), env(safe-area-inset-left,0px));
  color: var(--foam); transition: color .3s ease, background .3s ease; }
.nav.scrolled { background: linear-gradient(180deg, rgba(4,20,26,.35), rgba(4,20,26,0)); }
.nav { padding-bottom: clamp(22px,3vw,34px); }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo svg { flex: none; }
.logo b { font-weight: 500; font-size: 14px; letter-spacing: .2em; }
.nav ul { display: flex; align-items: center; gap: clamp(14px,2.2vw,32px); list-style: none; margin: 0; padding: 0; }
.nav ul a { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; opacity: .75; }
.nav ul a:hover { opacity: 1; }
.nav .cta { color: var(--coral); opacity: 1; border: 1px solid rgba(255,106,61,.55); padding: 8px 13px; border-radius: 3px; }
.nav .cta:hover { background: var(--coral); color: #fff; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .logo b { font-size: 12px; letter-spacing: .14em; } }

/* ── Shared type ───────────────────────────────────── */
main { position: relative; z-index: 5; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left,0px)); padding-right: max(var(--gutter), env(safe-area-inset-right,0px)); }
.eyebrow { font: 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
em { font-style: italic; }
.btn { display: inline-flex; align-items: center; gap: 9px; font: 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 15px 24px; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-ghost { border-color: rgba(244,238,226,.4); color: var(--foam); background: transparent; }
.btn-glow { background: var(--glow); color: var(--abyss); box-shadow: 0 0 40px rgba(118,240,208,.3); }

/* Video helpers: soft edges so footage melts into the water colour */
.fade-v { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }

/* ── 1. Hero ───────────────────────────────────────── */
.hero { position: relative; min-height: calc(100svh / var(--z)); display: flex; align-items: flex-end; color: var(--foam); overflow: hidden; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(4,20,26,.72) 0%, rgba(4,20,26,.35) 45%, rgba(4,20,26,0) 75%), linear-gradient(180deg, rgba(4,20,26,.45) 0%, rgba(4,20,26,0) 25%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-top: 110px; padding-bottom: clamp(100px,calc(16vh / var(--z)),170px); }
.hero .eyebrow { color: var(--coral); }
.hero h1 { font-size: clamp(48px,8vw,124px); line-height: .95; letter-spacing: -.015em; max-width: 11ch; }
.hero .tag { font: italic clamp(20px,2.2vw,32px)/1.3 var(--serif); color: var(--aqua); margin: 26px 0 0; max-width: 30ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.scrollcue { position: absolute; z-index: 2; bottom: clamp(24px,5vh,48px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none; font: 9.5px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: rgba(244,238,226,.7); }
.scrollcue span { width: 1px; height: 38px; background: linear-gradient(180deg, rgba(255,106,61,.8), rgba(255,106,61,0)); position: relative; }
.scrollcue span::after { content: ""; position: absolute; top: 0; left: -1.5px; width: 4px; height: 4px; border-radius: 50%; background: var(--coral); animation: cue 2.3s ease-in-out infinite; }

/* ── 2. About ──────────────────────────────────────── */
.about { padding-block: clamp(90px,14vh,170px); }
.about .grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: clamp(32px,5vw,80px); align-items: center; }
.about .eyebrow { color: var(--teal); }
.about h2 { font-size: clamp(32px,4.2vw,58px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
.about h2 em { color: var(--teal); }
.about p.body { font-weight: 300; font-size: clamp(16px,1.3vw,19px); line-height: 1.75; color: rgba(12,26,31,.75); margin: 28px 0 0; max-width: 46ch; }
.about .types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.about .types li { font: 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--teal); border: 1px solid rgba(27,111,106,.35); padding: 6px 11px; border-radius: 20px; }
.frame { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 12 / 5; background: #06222e; box-shadow: 0 30px 70px rgba(4,20,26,.28); }
.frame video, .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.frame .rec { position: absolute; top: 12px; left: 14px; right: 14px; display: flex; justify-content: space-between; font: 9.5px var(--mono); letter-spacing: .08em; color: rgba(244,238,226,.8); z-index: 2; }
.rec i { color: var(--coral); font-style: normal; }
@media (max-width: 860px) { .about .grid { grid-template-columns: minmax(0,1fr); } }

/* Thermocline: the band where light water turns dark */
.thermo { display: flex; align-items: center; gap: 16px; padding-block: 22vh; font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(159,225,203,.85); }
.thermo::before, .thermo::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(159,225,203,.5) 0 8px, transparent 8px 16px); }
.thermo span { white-space: nowrap; }

/* ── 3. Work ───────────────────────────────────────── */
.work { padding-block: clamp(80px,12vh,150px); color: var(--foam); }
.work .eyebrow { color: var(--aqua); }
.work h2 { font-size: clamp(36px,5vw,72px); line-height: 1; letter-spacing: -.01em; margin-bottom: clamp(32px,5vh,52px); }
.reel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(10px,1.2vw,18px); }
.tile { position: relative; aspect-ratio: 12 / 5; border-radius: 5px; overflow: hidden; background: #06222e; border: 1px solid rgba(159,225,203,.14); cursor: pointer; padding: 0; color: inherit; font: inherit; text-align: left; transition: transform .45s cubic-bezier(.2,.7,.2,1), border-color .45s ease; }
.tile:hover, .tile:focus-visible { transform: translateY(-4px); border-color: rgba(159,225,203,.55); }
.tile video, .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,12,18,0) 50%, rgba(4,12,18,.75) 100%); }
.tile .rec { position: absolute; z-index: 2; top: 11px; left: 13px; right: 13px; display: flex; justify-content: space-between; font: 9.5px var(--mono); letter-spacing: .08em; color: rgba(244,238,226,.75); }
.tile .lab { position: absolute; z-index: 2; left: 14px; bottom: 12px; font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); }
.tile .lab b { font-weight: 500; color: var(--foam); }
.note { font: 11px var(--mono); letter-spacing: .04em; color: rgba(244,238,226,.42); margin: 22px 0 0; }
@media (max-width: 700px) { .reel { grid-template-columns: minmax(0,1fr); } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(2,8,12,.94); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top,0px)) max(16px, env(safe-area-inset-right,0px)) max(16px, env(safe-area-inset-bottom,0px)) max(16px, env(safe-area-inset-left,0px)); }
.lightbox[hidden] { display: none; }
.lightbox video { width: min(1400px, 100%); max-height: calc(86vh / var(--z)); aspect-ratio: 12 / 5; object-fit: contain; background: #000; }
.lightbox .close { position: absolute; top: calc(env(safe-area-inset-top,0px) + 18px); right: calc(env(safe-area-inset-right,0px) + 18px); font: 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--foam); background: none; border: 1px solid rgba(244,238,226,.35); border-radius: 3px; padding: 9px 14px; cursor: pointer; }
.lightbox .cap { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom,0px) + 18px); text-align: center; font: 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); }

/* ── 4. One shot to the whole story ────────────────── */
.scale { color: var(--foam); }
.panel { position: relative; min-height: calc(88svh / var(--z)); display: flex; align-items: center; overflow: hidden; }
.panel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.panel .wrap { position: relative; z-index: 2; width: 100%; }
.panel .eyebrow { color: var(--aqua); }
.panel h2 { font-size: clamp(38px,6.4vw,96px); line-height: 1.02; letter-spacing: -.015em; max-width: 13ch; text-shadow: 0 2px 30px rgba(2,10,16,.5); }
.panel h2 em { color: var(--aqua); }
.panel:nth-child(2) .wrap { display: flex; justify-content: flex-end; text-align: right; }
.panel:nth-child(2) .wrap > div { display: flex; flex-direction: column; align-items: flex-end; }
.panel .small { font-weight: 300; font-size: clamp(16px,1.35vw,20px); line-height: 1.7; color: rgba(244,238,226,.8); margin: 26px 0 0; max-width: 44ch; }

/* ── 5. Why ────────────────────────────────────────── */
.why { padding-block: clamp(90px,14vh,170px); color: var(--foam); }
.why .eyebrow { color: var(--aqua); }
.why h2 { font-size: clamp(32px,4.4vw,60px); line-height: 1.08; margin-bottom: clamp(36px,6vh,60px); max-width: 16ch; }
.why ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(24px,3vw,44px); }
.why li { border-top: 1px solid rgba(159,225,203,.25); padding-top: 20px; min-width: 0; }
.why li .k { font: 10px var(--mono); letter-spacing: .14em; color: var(--coral); }
.why li h3 { font-size: clamp(22px,2vw,28px); line-height: 1.12; margin: 12px 0 10px; color: var(--foam); }
.why li p { font-weight: 300; font-size: 15px; line-height: 1.6; color: rgba(244,238,226,.68); margin: 0; }
@media (max-width: 980px) { .why ul { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .why ul { grid-template-columns: minmax(0,1fr); } }

/* ── 6. Crew strip ─────────────────────────────────── */
.crew { padding-block: clamp(80px,12vh,150px); color: var(--foam); }
.crew .eyebrow { color: var(--aqua); }
.crew .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.crew h2 { font-size: clamp(32px,4.6vw,62px); line-height: 1.05; max-width: 14ch; }
.crew h2 em { color: var(--aqua); }
.more { font: 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--coral); text-decoration: none; border-bottom: 1px solid rgba(255,106,61,.4); padding-bottom: 5px; white-space: nowrap; }
.strip { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.strip a { display: block; text-decoration: none; color: inherit; }
.ph { position: relative; aspect-ratio: 4 / 5; border-radius: 5px; overflow: hidden; background: linear-gradient(160deg, rgba(27,111,106,.45), rgba(6,26,40,.8)); border: 1px solid rgba(159,225,203,.18); display: flex; align-items: center; justify-content: center; font: 22px var(--mono); color: var(--aqua); }
.ph small { position: absolute; top: 9px; right: 10px; font-size: 9px; letter-spacing: .06em; color: var(--glow); }
.strip h3 { font-size: 19px; line-height: 1.1; margin: 12px 0 4px; }
.strip p { font: 9.5px/1.5 var(--mono); letter-spacing: .04em; color: rgba(159,225,203,.8); margin: 0; text-transform: uppercase; }
@media (max-width: 1100px) { .strip { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 560px) { .strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ── 7. Contact ────────────────────────────────────── */
.contact { position: relative; padding-block: clamp(100px,16vh,190px); color: var(--foam); overflow: hidden; }
.contact > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.contact .wrap { position: relative; z-index: 2; }
.contact .grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(36px,6vw,90px); align-items: start; }
.contact .eyebrow { color: var(--glow); }
.contact h2 { font-size: clamp(40px,5.6vw,84px); line-height: 1.02; letter-spacing: -.02em; }
.contact h2 em { color: var(--glow); text-shadow: 0 0 36px rgba(118,240,208,.45); }
.contact .lede { font-weight: 300; font-size: clamp(16px,1.3vw,19px); line-height: 1.7; color: rgba(244,238,226,.72); margin: 26px 0 0; max-width: 40ch; }
.direct { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 14px; }
.direct li { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.direct .k { font: 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(244,238,226,.45); width: 92px; }
.direct a, .direct span.v { font-size: 17px; color: var(--foam); text-decoration: none; border-bottom: 1px solid rgba(118,240,208,.35); user-select: all; }
.direct a:hover { color: var(--glow); }
form { display: grid; gap: 14px; background: rgba(4,18,26,.55); border: 1px solid rgba(118,240,208,.2); border-radius: 6px; padding: clamp(22px,2.6vw,34px); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.f2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 14px; }
label { display: grid; gap: 7px; font: 9.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(159,225,203,.85); }
input, select, textarea { font: 15px var(--sans); color: var(--foam); background: rgba(244,238,226,.06); border: 1px solid rgba(244,238,226,.18); border-radius: 3px; padding: 12px 13px; width: 100%; }
select option { color: #0c1a1f; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glow); }
form .btn { justify-self: start; margin-top: 4px; }
.formnote { font: 11px/1.6 var(--mono); color: rgba(244,238,226,.55); margin: 0; }
.formnote[hidden] { display: none; }
@media (max-width: 860px) { .contact .grid, .f2 { grid-template-columns: minmax(0,1fr); } }

/* ── Footer ────────────────────────────────────────── */
footer { position: relative; z-index: 5; color: rgba(244,238,226,.6); border-top: 1px solid rgba(159,225,203,.14); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; padding-block: 40px calc(40px + env(safe-area-inset-bottom,0px)); }
footer .tag { font: italic 18px var(--serif); color: var(--glow); }
footer small { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { font: 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: rgba(244,238,226,.7); }

/* ── Crew page ─────────────────────────────────────── */
.crew-hero { min-height: calc(72svh / var(--z)); display: flex; align-items: flex-end; padding-block: 150px 80px; }
.crew-hero .eyebrow { color: var(--coral); }
.crew-hero h1 { font-size: clamp(46px,7vw,108px); line-height: 1; letter-spacing: -.015em; color: var(--ink); max-width: 13ch; }
.crew-hero h1 em { color: var(--teal); }
.crew-hero p { font-weight: 300; font-size: clamp(16px,1.35vw,20px); line-height: 1.7; color: rgba(12,26,31,.72); margin: 30px 0 0; max-width: 52ch; }
.line { position: relative; padding-block: 40px 120px; color: var(--foam); }
.member { display: grid; grid-template-columns: 70px minmax(0,300px) minmax(0,1fr); gap: clamp(20px,3vw,48px); align-items: center; padding-block: clamp(36px,6vh,64px); }
.member .depth { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.member .depth::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: rgba(118,240,208,.3); }
.member .depth span { position: relative; background: rgba(6,18,24,.85); border: 1px solid rgba(118,240,208,.3); border-radius: 4px; padding: 7px 8px; font: 500 13px var(--mono); color: var(--glow); }
.member .ph { font-size: 34px; box-shadow: 0 24px 60px rgba(2,10,16,.35); }
.member .card { min-width: 0; }
.member h2 { font-size: clamp(30px,3.6vw,50px); line-height: 1.05; }
.member .role { font: 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--aqua); margin: 10px 0 18px; }
.member .bio { font-weight: 300; font-size: clamp(15px,1.15vw,17px); line-height: 1.72; color: rgba(244,238,226,.75); margin: 0; max-width: 52ch; }
.group { display: flex; align-items: center; gap: 16px; padding-top: 30px; font: 12px var(--mono); letter-spacing: .26em; color: var(--glow); }
.group::after { content: ""; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, rgba(118,240,208,.4) 0 8px, transparent 8px 16px); }
.crew-end { text-align: center; padding-block: 60px 140px; color: var(--foam); }
.crew-end h2 { font-size: clamp(34px,5vw,72px); line-height: 1.04; margin: 0 auto; max-width: 16ch; }
.crew-end h2 em { color: var(--glow); }
.crew-end .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
@media (max-width: 760px) {
  .member { grid-template-columns: minmax(0,1fr); }
  .member .depth { display: none; }
  .member .ph { max-width: 260px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #caustics i, #snow i, #bio i, .scrollcue span::after { animation: none; }
  .tile, .btn { transition: none; }
}

/* Crew photos */
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph small { z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* ── Events page ───────────────────────────────────── */
.events { padding-block: 20px 120px; color: var(--foam); }
.events .eyebrow { color: var(--aqua); }
.ev-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.ev-head h2 { font-size: clamp(36px,5vw,72px); line-height: 1; }
.ev-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-filters[hidden] { display: none; }
.filt { font: 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--aqua); background: transparent; border: 1px solid rgba(159,225,203,.3); border-radius: 20px; padding: 8px 14px; cursor: pointer; }
.filt.on, .filt:hover { background: var(--aqua); color: var(--abyss); border-color: var(--aqua); }
.ev-list { display: grid; gap: 16px; }
.ev { display: grid; grid-template-columns: 92px minmax(0,280px) minmax(0,1fr); gap: clamp(16px,2.4vw,32px); align-items: stretch; background: rgba(4,18,26,.5); border: 1px solid rgba(159,225,203,.16); border-radius: 6px; padding: clamp(16px,2vw,24px); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ev[hidden] { display: none; }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid rgba(159,225,203,.18); padding-right: 16px; font-family: var(--mono); text-align: center; }
.ev-date b { font: 400 54px/1 var(--serif); color: var(--foam); }
.ev-date span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--coral); margin-top: 4px; }
.ev-date small { font-size: 10px; color: rgba(244,238,226,.45); margin-top: 3px; }
.ev-img { position: relative; border-radius: 4px; overflow: hidden; min-height: 150px; background: #06222e; }
.ev-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-body { min-width: 0; display: flex; flex-direction: column; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font: 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--abyss); background: var(--aqua); padding: 4px 9px; border-radius: 2px; }
.chip.ex { background: transparent; color: #ffb38f; border: 1px dashed rgba(255,179,143,.6); }
.soon { font: 9.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--coral); padding: 4px 0; }
.ev h3 { font-size: clamp(24px,2.4vw,34px); line-height: 1.08; color: var(--foam); }
.ev-meta { font: 11px/1.7 var(--mono); letter-spacing: .04em; color: var(--aqua); margin: 10px 0 0; text-transform: uppercase; }
.ev-desc { font-weight: 300; font-size: 15px; line-height: 1.65; color: rgba(244,238,226,.74); margin: 12px 0 0; max-width: 60ch; }
.ev-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.ev-facts { font: 12px var(--mono); letter-spacing: .06em; color: var(--foam); }
.ev-foot .btn { padding: 12px 18px; font-size: 11px; }
.ev-empty { text-align: center; padding: 70px 20px; border: 1px dashed rgba(159,225,203,.3); border-radius: 6px; }
.ev-empty h3 { font-size: clamp(26px,3vw,40px); }
.ev-empty p { font-weight: 300; color: rgba(244,238,226,.7); max-width: 48ch; margin: 14px auto 0; line-height: 1.7; }
.ev-empty .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.ev-log { margin-top: 80px; }
.ev-log[hidden] { display: none; }
.ev-log ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(159,225,203,.18); }
.ev-log li { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(159,225,203,.12); align-items: baseline; }
.ev-log li span { font: 11px var(--mono); color: rgba(244,238,226,.5); }
.ev-log li b { font: 400 19px var(--serif); }
.ev-log li em { font: normal 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--aqua); }
@media (max-width: 900px) {
  .ev { grid-template-columns: 72px minmax(0,1fr); }
  .ev-img { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 12 / 5; min-height: 0; }
  .ev-date b { font-size: 42px; }
}
@media (max-width: 560px) { .ev-log li { grid-template-columns: minmax(0,1fr); gap: 4px; } }

/* Nav button: full label on desktop, short on phones */
.nav .cta { white-space: nowrap; }
.nav .cta .short { display: none; }
@media (max-width: 640px) {
  .nav ul { gap: 14px; }
  .nav .cta .long { display: none; }
  .nav .cta .short { display: inline; }
}

/* ── Phone layout: calmer, swipeable ───────────────── */
.menu-btn { display: none; }
.swipe-hint { display: none; }
@media (max-width: 760px) {
  /* Menu becomes one button + full-screen panel */
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -10px; padding: 10px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; z-index: 2; }
  .menu-btn span { display: block; height: 1.5px; background: currentColor; transition: transform .25s ease; }
  .nav.open .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav > nav { position: fixed; inset: 0; z-index: 1; background: rgba(4,20,26,.97); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
  .nav.open > nav { opacity: 1; visibility: visible; }
  .nav.open { color: var(--foam) !important; }
  .nav ul { flex-direction: column; gap: 26px; text-align: center; }
  .nav .hide-sm { display: list-item; }
  .nav ul a { font: 400 34px/1 var(--serif); letter-spacing: 0; text-transform: none; opacity: 1; color: var(--foam); }
  .nav .cta { font: 12px var(--mono) !important; letter-spacing: .14em !important; text-transform: uppercase !important; padding: 14px 22px; margin-top: 10px; display: inline-block; }
  .nav .cta .long { display: inline; } .nav .cta .short { display: none; }

  /* Hero: one clear call to action */
  .hero .eyebrow { display: none; }
  .hero .btn-ghost { display: none; }
  .hero .tag { margin-top: 18px; }
  .hero .actions { margin-top: 28px; }

  /* About: drop the tag pills */
  .about .types { display: none; }

  /* Work + crew: horizontal swipe rows instead of long stacks */
  .reel, .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left,0px))); padding-inline: max(var(--gutter), env(safe-area-inset-left,0px)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .reel::-webkit-scrollbar, .strip::-webkit-scrollbar { display: none; }
  .reel .tile { flex: 0 0 86%; scroll-snap-align: center; }
  .strip li { flex: 0 0 46%; scroll-snap-align: start; }
  .swipe-hint { display: block; font: 10px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(159,225,203,.6); margin: 14px 0 0; text-align: right; }
  .work .note { display: none; }

  /* Fewer depth labels, more air */
  .why ul { gap: 22px; }
  .why li p { font-size: 14.5px; }
  .contact .lede { display: none; }
  .thermo { padding-block: 14vh; }

  /* Compact dive computer */
  #hud { padding: 6px 10px; gap: 9px; opacity: .9; }
  #hud .big { font-size: 14px; }
  #hud .row { font-size: 11px; }

  /* Events: date folds into the text */
  .ev { grid-template-columns: minmax(0,1fr); }
  .ev-date { display: none; }
  .ev-img { grid-column: auto; }
  .ev-desc { font-size: 14.5px; }
}

/* ── Equipment page ───────────────────────────────── */
.kit-wrap { padding-block: 20px 120px; color: var(--foam); }
.kit-wrap > .wrap > .eyebrow { color: var(--aqua); }
.kit-group { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.6fr); gap: clamp(24px,4vw,64px); padding-block: clamp(36px,6vh,64px); border-top: 1px solid rgba(159,225,203,.18); }
.kit-head { display: flex; gap: 16px; align-items: baseline; }
.kit-idx { font: 11px var(--mono); color: var(--coral); letter-spacing: .1em; }
.kit-head h2 { font-size: clamp(30px,3.6vw,50px); line-height: 1.04; }
.kit-head p { font-weight: 300; font-size: 15.5px; line-height: 1.65; color: rgba(244,238,226,.7); margin: 14px 0 0; max-width: 36ch; }
.kit-list { list-style: none; margin: 0; padding: 0; }
.kit-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 20px; align-items: baseline; padding: 18px 0; border-bottom: 1px dashed rgba(159,225,203,.2); }
.kit-item.has-img { grid-template-columns: 160px minmax(0,1fr) auto; align-items: center; }
.kit-img { aspect-ratio: 3 / 2; border-radius: 4px; overflow: hidden; background: #06222e; }
.kit-img img { width: 100%; height: 100%; object-fit: cover; }
.kit-text { min-width: 0; }
.kit-item h3 { font-size: clamp(20px,1.8vw,26px); line-height: 1.15; color: var(--foam); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kit-item p { font-weight: 300; font-size: 14.5px; line-height: 1.55; color: rgba(244,238,226,.66); margin: 5px 0 0; }
.kit-spec { font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); white-space: nowrap; border: 1px solid rgba(159,225,203,.3); border-radius: 20px; padding: 5px 11px; }
@media (max-width: 860px) {
  .kit-group { grid-template-columns: minmax(0,1fr); gap: 18px; }
  .kit-item.has-img { grid-template-columns: 110px minmax(0,1fr); }
  .kit-item.has-img .kit-spec { grid-column: 2; justify-self: start; }
}

/* ── WhatsApp chat popup ──────────────────────────── */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.chat { position: fixed; z-index: 45; right: calc(env(safe-area-inset-right,0px) + 20px); bottom: calc(env(safe-area-inset-bottom,0px) + 20px); display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-family: var(--sans); }
.chat-btn { position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(2,10,16,.35); transition: transform .2s ease; }
.chat-btn:hover { transform: scale(1.06); }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); border: 2px solid #fff; }
.chat.is-open .chat-dot { display: none; }
.chat-box { width: min(330px, calc(100vw - 40px)); background: #f4eee2; color: #0c1a1f; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(2,10,16,.45); animation: chatIn .3s ease; }
.chat-box[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.chat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; background: #04141a; color: #f4eee2; }
.chat-top b { display: block; font: 500 15px var(--sans); letter-spacing: .04em; }
.chat-top small { display: block; font: 10px var(--mono); letter-spacing: .06em; color: var(--aqua); margin-top: 3px; }
.chat-x { background: none; border: 0; color: #f4eee2; font-size: 15px; cursor: pointer; padding: 6px; opacity: .8; }
.chat-msgs { display: grid; gap: 8px; padding: 18px 16px 8px; background: #e9e1d2; }
.bubble { margin: 0; justify-self: start; max-width: 85%; background: #fff; border-radius: 4px 12px 12px 12px; padding: 10px 13px; font-size: 15px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.chat-form { display: flex; gap: 8px; padding: 12px; background: #e9e1d2; }
.chat-form input { flex: 1; min-width: 0; color: #0c1a1f; background: #fff; border: 1px solid rgba(12,26,31,.12); border-radius: 22px; padding: 11px 15px; font-size: 15px; }
.chat-form input:focus { outline: none; border-color: #25d366; }
.chat-form button { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #25d366; color: #fff; font-size: 16px; cursor: pointer; }
.chat-note { margin: 0; padding: 0 12px 12px; background: #e9e1d2; font: 10px var(--mono); letter-spacing: .04em; color: rgba(12,26,31,.55); text-align: center; }
@media (max-width: 960px) {
  /* move the depth pill to the left so it never sits under the chat button */
  #hud { right: auto; left: calc(env(safe-area-inset-left,0px) + 14px); }
  .chat { right: calc(env(safe-area-inset-right,0px) + 14px); bottom: calc(env(safe-area-inset-bottom,0px) + 14px); }
  .chat-btn { width: 52px; height: 52px; }
}


/* ── Big screens & TVs: scale the whole page up ─────── */
html { zoom: var(--z); }
@media (min-width: 1600px) { :root { --z: 1.1; } }
@media (min-width: 1880px) { :root { --z: 1.3; } }
@media (min-width: 2300px) { :root { --z: 1.5; } }
@media (min-width: 2700px) { :root { --z: 1.8; } }
@media (min-width: 3400px) { :root { --z: 2.4; } }
