/* DEEPMEN home — underwater descent. Scroll sets custom properties from dive.js: --d (0 surface … 1 seabed),
   --w1/--w2 water column colours, --caus (caustics), --ray (light shafts), --vig (vignette), --tint (diver water colour),
   --dtop (diver top). Diver: photorealistic transparent artwork, shown whole; water colour and light are overlays masked by
   its own alpha. Environment textures in env/ are procedural. Operation media in media2/ are DEEPMEN field records. */
:root {
  --d: 0; --w1: #9ff0f4; --w2: #2cc3cf; --caus: .42; --ray: .9; --vig: .15; --tint: #e8fbfc; --tinta: .1;
  --enter: 0; --sway: 0; --dtop: 14vh;
  --navy: #0d2a3f; --ink: #0b1d2b; --gold: #d6b260; --gold-l: #f0d79b; --turq: #22c1c3;
  --line: rgba(160, 225, 245, .2); --card-line: rgba(255, 255, 255, .16);
  --dw: 340px;              /* diver image box width; height = 1.5 × width (1024×1536) */
  --col: 380px;             /* centre lane reserved for the diver */
  --pad: max(16px, calc((100% - 1320px) / 2));
  --font: "Helvetica Neue", Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; scroll-padding-bottom: 90px; }   /* keep focused links clear of the fixed contact buttons */
body { margin: 0; font: 16px/1.6 var(--font); color: #e8f1f7; background: #02101b; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 14px; }
.skip:focus { left: 12px; position: fixed; }

/* ================================================================ the water column (fixed, behind content) */
.ocean { position: fixed; inset: 0; z-index: -2; overflow: hidden; contain: strict; }
.o-col { position: absolute; inset: 0; background: linear-gradient(180deg, var(--w1) 0%, var(--w2) 100%); }
/* sun caustics: two tiles of the same procedural pattern drifting at different scales → shimmering interference */
.o-caustic { position: absolute; inset: -420px 0 0 -420px; mix-blend-mode: screen; pointer-events: none; will-change: transform;
  background: url("env/caustics.png") 0 0 / 420px 420px; opacity: var(--caus);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.15) 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.15) 100%);
  animation: caus-a 26s linear infinite; }
.o-caustic.c2 { inset: -640px -640px 0 0; background-size: 640px 640px; opacity: calc(var(--caus) * .6); animation: caus-b 41s linear infinite; }
@keyframes caus-a { to { transform: translate3d(420px, 420px, 0); } }
@keyframes caus-b { to { transform: translate3d(-640px, 640px, 0) ; } }
/* light shafts from the surface */
.o-rays { position: absolute; inset: -12vh -10vw 0; opacity: var(--ray); mix-blend-mode: screen; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.7) 45%, transparent 92%);
          mask-image: linear-gradient(#000 0%, rgba(0,0,0,.7) 45%, transparent 92%); }
.o-rays i { position: absolute; top: -10%; height: 120%; width: 9vw; transform-origin: 50% 0; filter: blur(22px);
  background: linear-gradient(180deg, rgba(240, 255, 255, .85), rgba(205, 250, 255, .3) 40%, transparent 85%);
  animation: ray 11s ease-in-out infinite alternate; will-change: transform, opacity; }
.o-rays i:nth-child(1) { left: 6%;  width: 7vw;  transform: rotate(14deg);  animation-duration: 13s; }
.o-rays i:nth-child(2) { left: 19%; width: 12vw; transform: rotate(10deg);  animation-duration: 9s;  animation-delay: -3s; }
.o-rays i:nth-child(3) { left: 34%; width: 5vw;  transform: rotate(7deg);   animation-duration: 15s; animation-delay: -6s; }
.o-rays i:nth-child(4) { left: 47%; width: 14vw; transform: rotate(3deg);   animation-duration: 12s; animation-delay: -1s; }
.o-rays i:nth-child(5) { left: 61%; width: 6vw;  transform: rotate(-2deg);  animation-duration: 10s; animation-delay: -7s; }
.o-rays i:nth-child(6) { left: 72%; width: 11vw; transform: rotate(-6deg);  animation-duration: 14s; animation-delay: -4s; }
.o-rays i:nth-child(7) { left: 86%; width: 8vw;  transform: rotate(-10deg); animation-duration: 12s; animation-delay: -9s; }
@keyframes ray { from { opacity: .35; translate: -2vw 0; } to { opacity: 1; translate: 2vw 0; } }
.o-particles { position: absolute; inset: 0; width: 100%; height: 100%; }
/* depth haze: the far water column loses light toward the bottom and the edges */
.o-haze { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(1, 10, 20, calc(var(--d) * .55)) 100%); }
.o-vignette { position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 38%, transparent 45%, rgba(0, 8, 16, var(--vig)) 100%); }
html.deep .o-caustic, html.deep .o-rays { display: none; }                  /* nothing to show below ~20 m: stop painting */

/* ================================================================ the diver + continuous umbilical */
.diver-c { position: fixed; z-index: 3; pointer-events: none; width: var(--dw); aspect-ratio: 1024 / 1536; isolation: isolate;
  left: calc(50% - var(--dw) / 2); top: 0; --bx: 0px; --by: 0px; --roll: 0deg; --yaw: 0deg;
  /* whole-body motion only: transform origin = the umbilical attachment on the helmet (x 63 %, top); vertical position is a
     transform too (compositor-only, no layout per frame) */
  transform: perspective(1100px) translate3d(var(--bx), calc(var(--dtop) + var(--by)), 0) rotate(calc(var(--sway) * 1deg + var(--roll))) rotateY(var(--yaw))
             scale(calc(1 - var(--d) * .06)); transform-origin: 63% 0;
  will-change: transform; }
.diver-c picture, .diver-c .diver-photo { display: block; width: 100%; height: auto; }
.diver-c .diver-photo { filter: drop-shadow(0 26px 34px rgba(0, 12, 24, .35)) contrast(calc(1 - var(--d) * .12)); }
/* water colour on the figure: absorption grows with depth (overlay masked by the asset's own alpha) */
.d-tint, .d-light { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1024 / 1536; pointer-events: none;
  -webkit-mask: url("art/diver-commercial.webp") 0 0 / 100% 100% no-repeat; mask: url("art/diver-commercial.webp") 0 0 / 100% 100% no-repeat; }
.d-tint { background: var(--tint); mix-blend-mode: multiply; opacity: var(--tinta); }
.d-sheen { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1024 / 1536; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("art/diver-commercial.webp") 0 0 / 100% 100% no-repeat; mask: url("art/diver-commercial.webp") 0 0 / 100% 100% no-repeat;
  background: linear-gradient(104deg, transparent 38%, rgba(220, 250, 255, .5) 50%, transparent 62%) 0 0 / 320% 100%;
  opacity: calc(var(--caus) * 1.6); animation: sheen 8s ease-in-out infinite; }               /* light passing over the wet suit */
html.landed .d-sheen { opacity: .22; background-image: linear-gradient(104deg, transparent 38%, rgba(255, 236, 200, .55) 50%, transparent 62%); }
@keyframes sheen { 0% { background-position: 100% 0; } 100% { background-position: -10% 0; } }
/* sprung umbilical drawn by JS on .umb with the asset's own umbilical texture; the straight CSS piece stays as fallback */
.umb { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; display: none; }
html.umb-on .umb { display: block; } html.umb-on .diver-c .umbilical { display: none; }
.d-light { background: url("env/caustics.png") 0 0 / 260px 260px; mix-blend-mode: screen; opacity: calc(var(--caus) * 1.1);
  animation: dlight 9s linear infinite; }
@keyframes dlight { to { background-position: 260px 260px; } }
/* continuation of the asset's own umbilical (tile cut from the same file: x 628–684 of 1024) */
.diver-c .umbilical { position: absolute; left: calc(628 / 1024 * 100%); width: calc(56 / 1024 * 100%);
  bottom: 99.9%; height: 300vh; background: url("art/umbilical-tile.png") repeat-y center bottom / 100% auto;
  filter: brightness(calc(1 - var(--d) * .35)) saturate(calc(1 - var(--d) * .3)); }
.d-tag { position: absolute; left: 98%; top: 21%; margin: 0; white-space: nowrap; font: 600 11px/1 var(--font); letter-spacing: .14em;
  color: #fff; padding: 5px 8px 5px 22px; border-radius: 999px; background: rgba(2, 18, 30, .55); border: 1px solid var(--line);
  backdrop-filter: blur(4px); }
.d-tag::before { content: ""; position: absolute; left: -26px; top: 50%; width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-l)); }
.d-tag b { color: var(--gold-l); font-variant-numeric: tabular-nums; font-size: 13px; }
.d-tag b::before { content: attr(data-m); }


/* ================================================================ header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 10px clamp(14px, 3vw, 40px); background: rgba(4, 24, 40, .78); backdrop-filter: blur(10px) saturate(1.2); color: #fff;
  border-bottom: 1px solid rgba(160, 230, 255, .12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
/* authentic live logo file (DEEPMEN-Site-SEO@4d1555a public/media/deepmen-logo.webp, 193x200 RGBA): height only, width follows the native aspect; no background, padding or filter */
.brand-logo { height: 50px; width: auto; background: none; padding: 0; border: 0; filter: none; } .foot-logo { height: 42px; }
.brand b { display: block; letter-spacing: .08em; } .brand small { display: block; font-size: 10px; letter-spacing: .12em; opacity: .85; }
.top nav ul { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.top nav a { text-decoration: none; font-size: 13px; letter-spacing: .06em; padding: 10px 2px; display: inline-block; }
.lang { margin: 0 0 0 auto; } .lang a { padding: 10px 4px; display: inline-block; } .lang a[aria-current] { font-weight: 700; }
.cta, .ghost { display: inline-block; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; min-height: 44px; }
.cta { background: linear-gradient(180deg, #e6c477, var(--gold)); color: #1b1404; box-shadow: 0 6px 18px rgba(214, 178, 96, .25); }
.cta.small { padding: 8px 14px; font-size: 13px; min-height: 40px; }
.ghost { border: 1.5px solid currentColor; }

/* ================================================================ surface: underside of the sea surface */
.surface-c { position: relative; min-height: 100vh; padding: 14vh var(--pad) 12vh;
  display: grid; grid-template-columns: 1fr var(--col) 1.15fr; align-items: center; color: var(--ink); }
.s-surface { position: absolute; left: 0; right: 0; top: 0; height: 44vh; pointer-events: none; overflow: hidden; }
.s-surface::before { content: ""; position: absolute; inset: 0; z-index: 1;                       /* the bright ceiling: Snell's window */
  background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0, rgba(225, 255, 255, .55) 9%, rgba(190, 248, 252, .18) 30%, transparent 70%); }
.s-surface::after { content: ""; position: absolute; left: 0; right: 0; top: 6vh; height: 3vh; z-index: 2; opacity: .8;  /* undulating meniscus */
  background: radial-gradient(60px 10px at 50% 0, rgba(255, 255, 255, .9), transparent 70%) 0 0 / 120px 100% repeat-x;
  animation: meniscus 6s linear infinite; }
@keyframes meniscus { to { background-position: 120px 0; } }
.s-surface .sheet { position: absolute; inset: 0 -1400px 0 0; animation: sheet 60s linear infinite;
  background: url("env/surface.webp") 0 0 / 1400px 100% repeat-x; will-change: transform; }
.s-surface .sheet::after { content: ""; position: absolute; inset: 0; mix-blend-mode: screen; opacity: .7;
  background: url("env/caustics.png") 0 0 / 520px 150px;
  -webkit-mask-image: linear-gradient(#000, transparent 70%); mask-image: linear-gradient(#000, transparent 70%); }
.s-surface .glint { position: absolute; left: 58%; top: -18vh; width: 46vw; height: 40vh; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 250, .85), rgba(220, 255, 255, .25) 55%, transparent);
  filter: blur(8px); animation: glint 7s ease-in-out infinite alternate; }
@keyframes sheet { to { transform: translate3d(-1400px, 0, 0); } }
@keyframes glint { to { opacity: .7; transform: translateX(-3vw) scale(1.06); } }
.surface-photo { position: relative; margin: 0; grid-column: 1; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 40, 60, .35), 0 0 0 1px rgba(255, 255, 255, .5); transform: rotate(-1.2deg); }
.surface-photo img { width: 100%; transform: scale(1.14); }   /* live file has a baked-in soft white edge; display crop only */
.hero-c { grid-column: 3; position: relative; padding: clamp(18px, 2.4vw, 30px); border-radius: 12px;
  background: linear-gradient(160deg, rgba(240, 253, 255, .78), rgba(210, 246, 250, .62)); backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 30px 60px rgba(0, 50, 70, .22); }
.hero-c h1 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.08; margin: 10px 0 14px; letter-spacing: .01em; }
.hero-c h1 span { display: block; color: #0b6f86; }
.lede { font-size: clamp(16px, 1.4vw, 19px); }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: #a07c2c; }
.eyebrow.alt { color: inherit; opacity: .8; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.fine { font-size: 13px; opacity: .85; }
.evid { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; letter-spacing: .1em; }
.evid b { width: 100%; } .evid span { background: var(--navy); color: #fff; padding: 3px 7px; border-radius: 4px; }

/* ================================================================ glass panels (shared) */
.glass { position: relative; padding: clamp(18px, 2vw, 28px); border-radius: 12px; color: #eaf4f9;
  background: linear-gradient(160deg, rgba(12, 48, 70, .74), rgba(3, 18, 30, .86));
  backdrop-filter: blur(12px) saturate(1.25); border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 10, 22, .45), inset 0 1px 0 rgba(255, 255, 255, .09); }
.glass::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; border-radius: 12px 12px 0 0;
  background: linear-gradient(90deg, transparent, rgba(190, 245, 255, .55), transparent); }
.glass h3 { margin: 0 0 8px; font-size: clamp(18px, 1.6vw, 23px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.22; }

/* ================================================================ the water column of stations */
.column { position: relative; padding: 0 var(--pad); overflow-x: clip; }   /* beams/insets never widen the page */
.panel, .scene { position: relative; width: calc(50% - var(--col) / 2); }
.panel { margin-bottom: 14vh; }
.panel.side-l, .scene.side-l { margin-right: auto; }
.panel.side-r, .scene.side-r { margin-left: auto; }
.panel.side-r { margin-top: -6vh; }
.plabel { margin: 0 0 8px; font: 700 13px/1 var(--font); letter-spacing: .14em; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
.plabel .bar { margin: 0 10px; opacity: .6; } .plabel .pdepth { color: var(--gold-l); }
.intro-panel .glass { background: linear-gradient(160deg, rgba(240, 253, 255, .82), rgba(214, 246, 250, .7)); color: var(--ink);
  border-color: rgba(255, 255, 255, .7); }
.intro-panel .glass::before { display: none; }
.intro-panel .svcno { color: #8a6720; } .intro-panel h3 { text-transform: none; letter-spacing: 0; font-size: clamp(19px, 1.8vw, 24px); }
.column-h { margin-bottom: 12vh; } .column-h h2 { font-size: clamp(24px, 2.6vw, 36px); margin: 0; text-shadow: 0 2px 12px rgba(0, 30, 50, .45); }
.column-h .eyebrow { color: #fff3cf; }

/* a station = layered scene: feathered authentic photo dissolving into the water + inset field stills + glass copy */
.scene { margin: 0 0 18vh; }
.scene.side-r { margin-top: -4vh; }
.s-media { position: relative; height: clamp(300px, 30vw, 440px); }
.s-media figure { margin: 0; }
.m-main { position: absolute; inset: 0; }
.ph { position: relative; height: 100%; overflow: hidden; border-radius: 14px; }
.m-main .ph { -webkit-mask-image: radial-gradient(ellipse 70% 66% at 50% 48%, #000 50%, rgba(0,0,0,.55) 72%, transparent 100%);
                      mask-image: radial-gradient(ellipse 70% 66% at 50% 48%, #000 50%, rgba(0,0,0,.55) 72%, transparent 100%); }
.ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08);
  filter: saturate(calc(1 - var(--sd, .3) * .45)) contrast(1.06) brightness(calc(1.02 - var(--sd, .3) * .22)); }
.ph img[src*="underwater-welding"] { transform: scale(1.28); }   /* live file has a baked-in white vignette; display crop only, file unmodified */
.ph img[src*="hull-biofouling"], .ph img[src*="night-inspection"], .ph img[src*="sea-chest.webp"], .ph img[src*="diver-close"],
.ph img[src*="diver-descent"] { transform: scale(1.22); }           /* same baked-in soft white edge on these live files */
/* water between the lens and the subject: colour absorption + a little shallow caustic light */
.ph::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(40, 170, 190, calc(.32 - var(--sd, .3) * .2)), rgba(4, 30, 52, calc(.15 + var(--sd, .3) * .45))); mix-blend-mode: multiply; }
.ph::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: url("env/caustics.png") 0 0 / 320px 320px; opacity: calc(.4 - var(--sd, .3) * .7); animation: dlight 14s linear infinite; }
.m-main figcaption, .m-sub figcaption { position: absolute; z-index: 3; left: 9%; bottom: 7%; max-width: 78%; margin: 0;
  font-size: 11.5px; line-height: 1.4; letter-spacing: .04em; color: #fff; padding: 5px 9px; border-radius: 6px;
  background: rgba(2, 16, 28, .72); border-left: 2px solid var(--gold); }
.m-sub { position: absolute; z-index: 2; width: 44%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 8, 20, .55), 0 0 0 1px rgba(190, 240, 255, .28); }
.m-sub .ph { border-radius: 0; }
.m-sub figcaption { left: 6px; right: 6px; bottom: 6px; max-width: none; font-size: 10.5px; }
/* one inset: top outer corner, clear of the copy panel and its depth label */
.side-l .m-sub1 { left: -2%; top: -8%; } .side-r .m-sub1 { right: -2%; top: -8%; }
/* two insets: stacked on the outer edge of the main photo, clear of the copy panel */
.s-media.multi:has(.m-sub2) { height: clamp(360px, 33vw, 470px); }
.s-media.multi:has(.m-sub2) .m-main { inset: 0 30% 0 0; } .side-r .s-media.multi:has(.m-sub2) .m-main { inset: 0 0 0 30%; }
.side-l .m-sub1:has(~ .m-sub2), .side-l .m-sub2 { right: 0; left: auto; width: 40%; }
.side-r .m-sub1:has(~ .m-sub2), .side-r .m-sub2 { left: 0; right: auto; width: 40%; }
.m-sub1:has(~ .m-sub2) { top: -4%; bottom: auto; } .m-sub2 { top: 33%; }
.s-copy { position: relative; z-index: 3; width: 86%; margin-top: -96px; }
.side-l .s-copy { margin-right: auto; } .side-r .s-copy { margin-left: auto; }
.s-media.multi + .s-copy { margin-top: -60px; }
/* authentic operation media (C2): true aspect ratio, never cropped, light grading only, honest caption */
.s-media.has-op { height: auto; }
.s-media.has-op .m-main, .s-media.multi.has-op:has(.m-sub2) .m-main { position: relative; inset: auto; aspect-ratio: var(--ar);
  width: min(100%, calc(440px * var(--ar))); }
.s-media.multi.has-op:has(.m-sub2) .m-main { width: min(60%, calc(440px * var(--ar))); }
.side-r .s-media.has-op .m-main { margin-left: auto; }
.op .ph img, .op .ph video { width: 100%; height: 100%; object-fit: contain; display: block; transform: none !important;
  filter: contrast(1.03) saturate(calc(1 - var(--sd, .3) * .18)); }
.op .ph::after { opacity: calc(.22 - var(--sd, .3) * .5); }
.m-main.op .ph { -webkit-mask-image: radial-gradient(ellipse 84% 82% at 50% 50%, #000 64%, rgba(0,0,0,.6) 84%, transparent 100%);
                         mask-image: radial-gradient(ellipse 84% 82% at 50% 50%, #000 64%, rgba(0,0,0,.6) 84%, transparent 100%); }
.m-sub.op { aspect-ratio: var(--ar); width: calc(44% * min(1, var(--ar))); }
/* real footage is never covered: main clip first (full width, or a portrait at its natural width), insets in a row below */
.s-media.has-op, .s-media.multi.has-op:has(.m-sub2) { height: auto; min-height: 0; }
.s-media.has-op .m-main, .s-media.multi.has-op:has(.m-sub2) .m-main { width: min(100%, calc(440px * var(--ar))); }
.s-media.has-op .m-sub, .s-media.has-op .m-sub1:has(~ .m-sub2), .s-media.has-op .m-sub2 {
  position: relative; inset: auto; display: inline-block; vertical-align: top; margin: 14px 2% 0 0; width: calc(46% * min(1, var(--ar, 1.333))); }
.s-media.has-op .m-sub:not(.op) { aspect-ratio: 4 / 3; width: 46%; }
.side-r .s-media.has-op { text-align: right; } .side-r .s-media.has-op .m-sub { margin: 14px 0 0 2%; }
.s-media.has-op + .s-copy { margin-top: 26px; }
.op figcaption { border-left-color: #36d1c4; }
.vbtn { position: absolute; z-index: 4; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer;
  background: rgba(2, 16, 28, .72); border: 1px solid rgba(190, 240, 255, .45); display: grid; place-items: center; padding: 0; }
.vbtn span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
.vbtn[data-state="paused"] span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.vbtn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.op.v-fail .vbtn { display: none; }

/* leader line from the umbilical lane to the station */
.s-leader { position: absolute; top: 34%; height: 1px; width: calc(var(--col) / 2 - 18px); pointer-events: none; }
.side-l .s-leader { left: 100%; background: linear-gradient(90deg, rgba(240, 215, 155, .0), rgba(240, 215, 155, .7)); }
.side-r .s-leader { right: 100%; background: linear-gradient(270deg, rgba(240, 215, 155, .0), rgba(240, 215, 155, .7)); }
.s-leader span { position: absolute; top: -10px; font: 700 11px/1 var(--font); letter-spacing: .14em; color: var(--gold-l); }
.side-l .s-leader span { right: 0; transform: translateX(110%); } .side-r .s-leader span { left: 0; transform: translateX(-110%); }

.svcno { margin: 0 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-l); font-weight: 700; }
.svcno .num { margin-right: 8px; }
.desc { margin: 0 0 12px; font-size: 14.5px; opacity: .94; }
.go { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.ring { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--gold); border-radius: 50%; color: var(--gold); }
.go-t { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.related { margin-top: 10px; border-top: 1px solid var(--card-line); padding-top: 8px; }
.related-h { margin: 0 0 4px; font-size: 10.5px; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.related ul, .mini-cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.related a { font-size: 13.5px; font-weight: 700; display: inline-block; padding: 5px 0; }
.related .cat, .case .cat { font-size: 10.5px; letter-spacing: .1em; opacity: .75; }
.mini-cases a { display: grid; gap: 2px; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--card-line); }
.mini-cases b { color: var(--gold-l); font-size: 14px; } .mini-cases span { font-size: 13px; opacity: .9; }
.chips { font-size: 12px; letter-spacing: .1em; }
.ticker { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; letter-spacing: .12em; opacity: .85; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.step { border-left: 3px solid var(--gold); padding-left: 10px; } .step h4 { margin: 2px 0; font-size: 15px; } .step p { margin: 0; font-size: 13.5px; }
.num { color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; }
.more { font-weight: 700; text-decoration: none; display: inline-block; padding: 8px 0; min-height: 44px; }
.field-block { margin-top: 12px; border-top: 1px solid var(--card-line); padding-top: 10px; }
.field-block h4 { margin: 0 0 6px; } .field-block p { font-size: 14px; }
.evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .evidence figure { margin: 0; }
.evidence img { border-radius: 6px; } .evidence figcaption { font-size: 11px; letter-spacing: .12em; margin-top: 4px; }

/* ================================================================ deep-water class zone */
.class-zone { margin-top: 4vh; }
.class-zone .beam { position: absolute; left: -10%; right: -10%; top: -34vh; height: 70vh; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 46% 100% at 50% 0, rgba(150, 220, 255, .22), rgba(90, 170, 220, .06) 55%, transparent 75%);
  filter: blur(6px); }
.class-zone .glass { border-color: rgba(240, 215, 155, .35);
  box-shadow: 0 40px 80px rgba(0, 6, 16, .6), 0 0 0 1px rgba(240, 215, 155, .12), inset 0 1px 0 rgba(255, 255, 255, .1); }
.logo-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; padding: 12px; border-radius: 10px;
  background: radial-gradient(120% 140% at 50% 0, rgba(200, 235, 255, .16), rgba(255, 255, 255, .03)); border: 1px solid var(--line); }
.logo-row img { width: 64px; height: 40px; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.nk-intro a { display: inline-block; background: rgba(240, 215, 155, .14); border: 1px solid rgba(240, 215, 155, .6); border-radius: 8px;
  padding: 8px 12px; text-decoration: none; color: var(--gold-l); min-height: 44px; font-size: 14px; }
.sub { font-size: 14px; font-weight: 400; opacity: .9; margin: 0 0 10px; }
.grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.certs { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cert { position: relative; background: rgba(255, 255, 255, .05); border: 1px solid var(--card-line); border-radius: 8px; padding: 12px; font-size: 13px; }
.cert img { width: 100px; height: 54px; object-fit: contain; background: #fff; border-radius: 4px; padding: 4px; margin-bottom: 6px; }
.cert h4 { margin: 2px 0; font-size: 14px; } .cert h4 small { display: block; font-weight: 400; font-size: 11px; opacity: .8; }
.cert p { margin: 3px 0; } .cert .verify a { color: var(--gold-l); display: inline-block; padding: 6px 0; }
.cert.nk { border-color: rgba(240, 215, 155, .6); padding-top: 34px; }
.badge { position: absolute; top: 10px; left: 12px; font-size: 10px; letter-spacing: .08em; font-weight: 700; background: var(--gold-l); color: #2a1d00; padding: 3px 8px; border-radius: 999px; }
.case-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.case a { display: block; text-decoration: none; background: rgba(255, 255, 255, .05); border: 1px solid var(--card-line); border-radius: 8px; padding: 10px; height: 100%; font-size: 13px; }
.case img { border-radius: 6px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; margin-bottom: 6px; }
.case .kind, .case .media { font-size: 10.5px; letter-spacing: .1em; opacity: .85; } .case .cat { display: block; margin-top: 3px; }
.case h4 { margin: 4px 0; font-size: 14px; } .case p { margin: 0 0 6px; opacity: .9; } .case .more { padding: 0; min-height: 0; color: var(--gold-l); }
.pin { color: var(--gold); margin-left: 6px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: 5px 11px; font-size: 11px; letter-spacing: .12em; }
.base { margin: 12px 0 0; } .base img { border-radius: 6px; }

/* ================================================================ seabed: illuminated working zone */
.floor { position: relative; padding-top: 4vh; overflow-x: clip;
  background: linear-gradient(180deg, transparent 0, rgba(2, 12, 20, .0) 30vh, #04111b 60%, #020a11 100%); }
.seabed-c { position: relative; padding: 0 var(--pad) 8vh; }
.seabed-title { max-width: calc(50% - var(--col) / 2); }
.seabed-title h2 { font-size: clamp(20px, 2vw, 28px); margin: 4px 0 8px; letter-spacing: .03em; } .seabed-title .eyebrow { color: var(--gold-l); }
.ground { position: relative; margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%) 6vh; isolation: isolate;   /* full-bleed; .floor clips x */
  background: url("env/seabed.webp") center top / 2048px auto repeat-x, #2a2c22; }
.ground::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;     /* water above the floor + edges into darkness */
  background: linear-gradient(180deg, rgba(5, 22, 34, .85) 0, rgba(5, 22, 34, .15) 20%, rgba(3, 14, 22, .05) 60%, rgba(2, 10, 16, .8) 100%),
              radial-gradient(60% 85% at 50% 45%, transparent 40%, rgba(2, 10, 16, .85) 100%); }
.ground::after { content: ""; position: absolute; left: 50%; top: -30vh; width: min(1500px, 120%); height: calc(100% + 30vh); z-index: -1;
  transform: translateX(-50%); pointer-events: none; mix-blend-mode: screen;                          /* controlled work light */
  background: radial-gradient(ellipse 40% 50% at 50% 58%, rgba(255, 242, 212, .62), rgba(255, 228, 176, .2) 48%, transparent 74%),
              conic-gradient(from 166deg at 50% 0, transparent 0deg, rgba(255, 242, 214, .16) 9deg, rgba(255, 242, 214, .16) 19deg, transparent 28deg); }
html.landed .diver-c::after { content: ""; position: absolute; left: 26%; right: 20%; bottom: 1%; height: 5%; z-index: -1;   /* boots on the sediment */
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); }
.spot { display: none; }
.landing { height: 20vh; }          /* the diver's boots settle at the bottom edge of this band */
.folders { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.folder { position: relative; display: flex; flex-direction: column; border-radius: 10px; padding: 18px 12px 12px; min-height: 236px;
  background: linear-gradient(170deg, rgba(14, 44, 60, .86), rgba(4, 18, 28, .92)); border: 1px solid rgba(240, 215, 155, .28);
  box-shadow: 0 22px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .1);
  opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.folder::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -16px; height: 18px; border-radius: 50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent); }        /* contact shadow on the sediment */
.folder h3 { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; }
.folder p { margin: 0 0 10px; font-size: 13px; opacity: .92; }
.folder .ftab { position: absolute; top: -10px; left: 10px; background: var(--gold); color: #241800; font-size: 9.5px; letter-spacing: .14em; font-weight: 700; padding: 3px 8px; border-radius: 4px 4px 0 0; text-transform: uppercase;
  white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; }
.folder .chip { display: inline-block; background: #0d2a3f; border: 1px solid var(--card-line); color: #fff; font-size: 9.5px; letter-spacing: .1em; padding: 2px 6px; border-radius: 3px; margin: 2px 0; }
.folder a { color: var(--gold-l); font-weight: 700; display: inline-block; padding: 6px 0; }
.folder .num { margin-right: 6px; }
.folder > :nth-last-child(2) { margin-bottom: 30px; }   /* room for the sheet that rises out of the folder */
/* manila folder with a blank sheet: a UI pictogram, no document content */
.folder .fpaper { margin-top: auto; height: 74px; border-radius: 3px; position: relative;
  background: linear-gradient(#c9a764, #b08c4a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .25), 0 10px 18px rgba(0, 0, 0, .35); }
.folder .fpaper::before { content: ""; position: absolute; left: 14%; right: 14%; top: -22px; height: 46px; background: #f4f6f8; border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25); }
.folder .fpaper::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: #c9a764; border-radius: 3px 3px 0 0; }
.delivery.revealed .folder { opacity: 1; transform: none; }
.delivery.revealed .folder:nth-child(2) { transition-delay: .08s; } .delivery.revealed .folder:nth-child(3) { transition-delay: .16s; }
.delivery.revealed .folder:nth-child(4) { transition-delay: .24s; } .delivery.revealed .folder:nth-child(5) { transition-delay: .32s; }
.delivery.revealed .folder:nth-child(6) { transition-delay: .40s; }
.ui-note { font-style: italic; margin: 22px 0 0; color: #d9e6ee; text-shadow: 0 1px 3px #000; }

/* plain sections (request, about, index) rest on the dark floor above the diver */
.wide { position: relative; z-index: 4; max-width: 1100px; margin: 0 auto 6vh; padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(160deg, rgba(10, 34, 50, .9), rgba(3, 14, 24, .95)); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.wide h2 { margin: 4px 0 10px; font-size: clamp(20px, 2vw, 28px); } .wide .eyebrow { color: var(--gold-l); }
.fields { list-style: none; padding: 0; display: grid; gap: 6px; } .fields li { border-bottom: 1px solid var(--card-line); padding: 6px 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.facts dt { font-size: 11px; letter-spacing: .14em; color: var(--gold); } .facts dd { margin: 4px 0 0; }
.idx { grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr); align-items: start; gap: 24px; }
.idx article h4 { color: var(--gold-l); font-size: 18px; margin: 0 0 8px; }
.idx nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.idx nav a { display: block; min-height: 44px; padding: 10px 12px; border-bottom: 1px solid var(--card-line); color: #fff; text-decoration: none; }
.idx nav a:hover, .idx nav a:focus-visible { color: var(--gold-l); background: rgba(255, 255, 255, .04); }
.foot { position: relative; z-index: 4; background: #010a12; color: #cfdde6; padding: 30px clamp(14px, 4vw, 40px) 90px; }
.foot ul { list-style: none; padding: 0; display: grid; gap: 4px; } .foot a { display: inline-block; padding: 6px 0; }
.float { position: fixed; right: 12px; bottom: 16px; z-index: 6; display: flex; gap: 8px; margin: 0; }
.float .wa { background: #1f8f4e; color: #fff; padding: 12px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.float .wa span { margin-right: .35em; }
.float .cta { padding: 12px 18px; }   /* the float sits inside .foot, whose link padding would otherwise win */
.float a { flex: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }

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

/* ================================================================ mobile */
@media (max-width: 900px) {
  :root { --dw: 128px; --col: 0px; }
  .top { position: relative; } .top nav { order: 3; width: 100%; overflow-x: auto; } .top nav ul { flex-wrap: nowrap; } .top nav a { white-space: nowrap; }
  .diver-c { left: calc(-.2 * var(--dw)); }                  /* the figure's own left margin is ~20% transparent */
  .d-tag { left: 70%; top: 2%; font-size: 9px; padding: 3px 6px 3px 8px; } .d-tag::before { display: none; } .d-tag b { font-size: 11px; }
  .surface-c { grid-template-columns: 1fr; min-height: 0; padding: 18vh 12px 10vh 82px; gap: 16px; }
  .s-surface { height: 30vh; }
  .surface-photo, .hero-c { grid-column: 1; }
  .column { padding-left: 82px; padding-right: 10px; }
  .panel, .panel.side-r, .scene, .scene.side-r { width: auto; margin: 0 0 9vh; }
  .s-media { height: 230px; } .m-sub { width: 50%; } .side-l .m-sub1, .side-r .m-sub1 { left: auto; right: 0; top: -6%; } .side-l .m-sub2, .side-r .m-sub2 { display: none; }
  .s-copy, .side-l .s-copy, .side-r .s-copy { width: auto; margin: -36px 0 0; }
  .s-media.multi + .s-copy { margin-top: 24px; }
  .s-leader { display: none; }
  .class-zone .beam { left: 0; right: 0; }
  .glass, .hero-c, .top { backdrop-filter: none; }
  .glass { background: linear-gradient(160deg, rgba(10, 42, 62, .94), rgba(3, 16, 28, .96)); }
  .hero-c { background: rgba(236, 251, 253, .93); }
  .o-caustic.c2, .o-rays i:nth-child(n+5), .d-light, .d-sheen { display: none; }
  .d-tint { -webkit-mask-image: url("art/diver-commercial-512.webp"); mask-image: url("art/diver-commercial-512.webp"); }   /* same file as the phone <img>: one download */
  .s-media.has-op .m-main { width: 100%; } .s-media.multi.has-op:has(.m-sub2) .m-main { width: 100%; }
  .s-media.multi.has-op:has(.m-sub2) { min-height: 0; } .s-media.has-op .m-sub { position: relative; inset: auto; display: inline-block; vertical-align: top; width: calc(48% * min(1, var(--ar))); margin: 10px 2% 0 0; }
  .s-media.has-op .m-sub:not(.op) { aspect-ratio: auto; }
  .s-media.has-op .m-sub { overflow: visible; box-shadow: none; } .s-media.has-op .m-sub .ph { border-radius: 8px; box-shadow: 0 0 0 1px rgba(190, 240, 255, .28); }
  .s-media.has-op .m-sub:not(.op) .ph { aspect-ratio: 4 / 3; height: auto; }
  .s-media.has-op .m-sub figcaption { position: static; margin-top: 6px; font-size: 10.5px; }
  .s-media.has-op .m-main.op-still { width: min(100%, calc(300px * var(--ar))); }
  .seabed-c { padding-left: 82px; padding-right: 10px; }
  .seabed-title { max-width: none; }
  .ground { margin: 0 -10px 0 -82px; padding: 0 10px 6vh 82px; background-size: 1200px auto, auto; }
  .landing { height: 26vh; }
  .folders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide { margin-left: 82px; margin-right: 10px; }
  .float { left: 0; right: 0; bottom: 0; gap: 0; } .float a, .float .wa, .float .cta { flex: 1; text-align: center; border-radius: 0; padding: 12px 8px; min-height: 48px; font-size: 15px; }
  .folder { padding-top: 18px; } .folder .ftab { letter-spacing: .08em; font-size: 9px; }
  .folder p:empty { display: none; }
  .foot { padding-bottom: 80px; }
}

/* ================================================================ reduced motion: same scene, no movement */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diver-c { transform: none; transition: none; }
  .o-caustic, .o-rays i, .d-light, .d-sheen, .ph::after, .s-surface .sheet, .s-surface .glint, .s-surface::after { animation: none; }
  .umb { display: none !important; } .diver-c .umbilical { display: block !important; }
  .folder { opacity: 1; transform: none; transition: none; }
  [data-par] { transform: none !important; }
}
html.rm .folder { opacity: 1; transform: none; transition: none; }
