:root { color-scheme: dark; --bg: #001117; --bg2: #00212d; --head: 0, 17, 23; --hline: rgba(255,255,255,0.15); --hleft: max(16px, calc(var(--left) - 56px)); --ink: #f5f5f0; --muted: rgba(245,245,240,0.7); --line: rgba(245,245,240,0.18); --accent: #00bbff; --u64: clamp(30px, 5.9vw, 85px); --left: calc((100vw - min(100vw, 1100px)) / 2 + min(100vw, 1100px) * 0.06); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: Inter, Arial, sans-serif; line-height: 1.55; }
a { color: inherit; }

/* Top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 22px var(--hleft) 22px var(--left); font-family: 'Barlow Condensed', Arial, sans-serif; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 15px; font-weight: 600;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0));
  transition: background 0.25s;
}
.topbar.solid { background: rgba(var(--head), 0.94); border-bottom: 1px solid var(--hline); backdrop-filter: blur(6px); }
.topbar .brand { text-decoration: none; }
.topbar .brand { display: block; line-height: 0; }
.topbar .brand img { height: 55px; width: auto; display: block; }
.topbar nav { display: flex; gap: 22px; align-items: flex-end; line-height: 1; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .topbar { font-size: 13px; padding: 20px var(--hleft) 20px var(--left); }
  .topbar .brand img { height: 41px; }
  .topbar nav { gap: 12px; }
  .topbar { letter-spacing: 0.08em; }
  .topbar nav a { white-space: nowrap; }
}

/* Intro film (carried over from prototype) */
.scroll-spacer { position: relative; background: var(--bg); }
.stage { position: sticky; top: 0; width: 100vw; height: 100vh; overflow: hidden; }
canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.overlay { position: absolute; inset: 0; pointer-events: none; font-family: 'Barlow Condensed', Arial, sans-serif; }
.headline {
  position: absolute; top: calc(58% + 20px); left: var(--left); right: var(--left);
  font-size: clamp(2.2rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: 0.02em; line-height: 1.02;
  transition: opacity 0.1s linear;
}
.caption {
  position: absolute; bottom: 14%; left: var(--left); right: var(--left); max-width: 32ch;
  font-size: clamp(2.2rem, 4.8vw, 3.2rem); font-weight: 600;
}
.caption span { opacity: 0; transition: opacity 0.15s linear; }
.caption #cap1 { display: inline-block; transform-origin: left bottom; transition: opacity 0.15s linear, transform 0.15s linear; }
.rings { position: absolute; top: 50%; left: 50%; width: 70vmin; height: 70vmin; transform: translate(-50%, -50%); color: rgba(245,245,240,0.35); }
.rings circle { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; }
.scroll-hint {
  position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%);
  color: rgba(245,245,240,0.75); font-family: 'Silkscreen', monospace;
  font-size: clamp(11px, 1.3vw, 15px); letter-spacing: 0.15em; text-transform: uppercase;
  transition: opacity 0.2s linear; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.pixel-arrows { width: 20px; height: 34px; color: rgba(245,245,240,0.85); }
.pixel-arrows g { opacity: 0; }
.pixel-arrows .arrow-a { animation: intro-a 3s ease-in-out forwards; }
.pixel-arrows .arrow-b { animation: intro-b 3s ease-in-out forwards; }
.pixel-arrows .arrow-c { animation: intro-c 3s ease-in-out forwards, pixel-glow 2.6s ease-in-out 3s infinite alternate; }
.pixel-arrows .arrow-d { animation: intro-d 3s ease-in-out forwards, pixel-glow 2.6s ease-in-out 3.3s infinite alternate; }
#scrollText { opacity: 0; animation: intro-text 3s ease-in-out forwards; }
@keyframes intro-a { 0%, 5% { opacity: 0; } 20% { opacity: 1; } 55% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes intro-b { 0%, 20% { opacity: 0; } 35% { opacity: 1; } 65% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes intro-c { 0%, 35% { opacity: 0; } 50%, 100% { opacity: 1; } }
@keyframes intro-d { 0%, 50% { opacity: 0; } 65%, 100% { opacity: 1; } }
@keyframes intro-text { 0%, 65% { opacity: 0; } 80%, 100% { opacity: 1; } }
@keyframes pixel-glow { from { filter: drop-shadow(0 0 0 currentColor); opacity: 0.55; } to { filter: drop-shadow(0 0 4px currentColor); opacity: 1; } }
.bottom-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; background: linear-gradient(to top, rgba(0,0,0,0.25), rgba(0,0,0,0)); }
.final-blend { position: absolute; inset: 0; opacity: 0; background: linear-gradient(to bottom, var(--bg2), var(--bg)); }
.closing {
  position: absolute; left: var(--left); right: var(--left); top: 50%; transform: translateY(-50%);
  font-weight: 700; line-height: 1.15; font-size: clamp(1.6rem, 6.4vw, 4.4rem);
}
.closing div { display: block; }
.closing span { opacity: 0; transition: opacity 0.2s linear; }

/* Content */
main { position: relative; z-index: 1; background: transparent; }
.section { --sec-pad: clamp(96px, calc(var(--u64) * 2.4), 200px); padding: var(--sec-pad) var(--left); scroll-margin-top: 100px; }
/* Jumping to Contact (nav link, back from the form page): land with the heading just under the top bar so text and button stay in view */
#contact { scroll-margin-top: calc(120px - var(--sec-pad)); }
.eyebrow { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); font-size: clamp(15px, calc(var(--u64) * 22 / 64), 40px); line-height: 1; margin-bottom: 24px; }
h2 { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; margin-bottom: 28px; }
h2.big { font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.0; letter-spacing: 0.02em; margin-bottom: 36px; }
h3 { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 600; font-size: 1.6rem; line-height: 1.15; margin: 14px 0 6px; }
.lead { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: max(16px, calc(var(--u64) * 0.344)); line-height: 1.35; letter-spacing: 0.03em; max-width: 26em; color: var(--ink); margin-bottom: 36px; }
/* Manual line breaks of the copy (desktop only) */
.br { display: none; }
@media (min-width: 900px) { .br { display: inline; } .lead.manual { max-width: none; } }
.meta { font-size: 0.85rem; color: var(--muted); margin: 6px 0; }
/* What we do: 2x2 grid. Big blue number, 2-line headline beside it, copy below. */
#what { --hf: var(--u64); --n: calc(var(--hf) * 1.134); }
#what .eyebrow { margin-bottom: calc(var(--hf) * 0.48); }
#what h2 { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: var(--hf); line-height: 1; letter-spacing: 0.04em; white-space: nowrap; margin: 0 0 calc(var(--hf) * 1.75); }
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6vw; row-gap: calc(var(--n) * 1.4); }
.steps li { counter-increment: s; display: grid; grid-template-columns: auto 1fr; column-gap: calc(var(--n) * 0.142); align-items: start; align-content: start; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-size: var(--n); line-height: 0.7; letter-spacing: 0.02em; color: var(--accent); }
.steps h3 { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: calc(var(--n) * 0.38); line-height: 1.06; letter-spacing: 0.04em; margin: calc(var(--n) * -0.063) 0 0; }
.steps p { grid-column: 1 / -1; font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: calc(var(--n) * 0.303); line-height: 1.35; letter-spacing: 0.03em; max-width: 15.6em; margin-top: calc(var(--n) * 0.142); }
@media (max-width: 700px) {
  #what { --n: 56px; --hf: 40px; }
  #what h2 { font-size: 40px; white-space: normal; }
  .steps { grid-template-columns: 1fr; }
}
.scope { margin-top: 36px; font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: max(16px, calc(var(--u64) * 0.344)); line-height: 1.35; letter-spacing: 0.03em; max-width: 26em; color: var(--ink); }
.scope strong { font-weight: 600; }
.audience { list-style: none; margin-top: calc(var(--u64) * 1.2); }
.audience li { display: flex; align-items: center; column-gap: calc(var(--u64) * 0.42); padding: calc(var(--u64) * 0.35) 0; }
.audience .dl { position: static; flex: none; width: calc(var(--u64) * 1.92); height: calc(var(--u64) * 1.92); display: block; }
.audience h3 { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: calc(var(--u64) * 0.62); line-height: 1.13; letter-spacing: 0.04em; color: var(--ink); margin: 0; }
.audience em { font-style: normal; color: var(--accent); }
/* Team: round portraits, type follows the 22pt / 64pt system (name = 0.43 x 64pt, copy and role = 22pt). */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6vw; row-gap: 64px; margin-top: calc(var(--u64) * 0.5); }
.member { display: block; }
.face { width: calc(var(--u64) * 2.4); height: calc(var(--u64) * 2.4); max-width: 100%; border-radius: 50%; overflow: hidden; background: #000; }
.face img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); /* source circles have rough edges; crop in */ }
.member h3 { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: calc(var(--u64) * 0.43); line-height: 1.06; letter-spacing: 0.04em; margin: calc(var(--u64) * 0.3) 0 0; }
.member .role { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 600; font-size: calc(var(--u64) * 22 / 64); line-height: 1.2; letter-spacing: 0.03em; color: var(--accent); margin-top: calc(var(--u64) * 0.08); }
.member .bio { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: calc(var(--u64) * 22 / 64); line-height: 1.35; letter-spacing: 0.03em; max-width: 15.6em; margin-top: calc(var(--u64) * 0.16); }
@media (max-width: 700px) { .team { grid-template-columns: 1fr; } .face { width: 140px; height: 140px; } .member h3 { font-size: 30px; } .member .role, .member .bio { font-size: 15px; } }
/* Why DOCK11: teaser to the main studio site (opens in a new tab) */
.studio { margin-top: calc(var(--u64) * 1.4); }
.studio .lead { margin-bottom: 20px; }
.studio-link { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 600; font-size: max(15px, calc(var(--u64) * 0.24)); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.studio-link:hover { color: var(--ink); }

/* Back to top: appears once the intro film is over, hides over the footer */
.totop { position: fixed; right: max(16px, var(--hleft)); bottom: 24px; z-index: 9; font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); text-decoration: none; background: rgba(var(--head), 0.85); border: 1px solid var(--line); padding: 10px 14px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.totop.show { opacity: 1; pointer-events: auto; }
.totop:hover, .totop:focus-visible { color: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) { .totop { bottom: 16px; } }

/* Contact: button to the form page on dock11.com (Squarespace); after sending, that page redirects back here with ?sent=1 */
.thanks { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: max(16px, calc(var(--u64) * 0.344)); line-height: 1.35; letter-spacing: 0.03em; color: var(--accent); max-width: 26em; margin-bottom: 28px; }
.btn { display: inline-block; background: var(--accent); color: #04141a; padding: 14px 28px; font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: max(16px, calc(var(--u64) * 0.27)); text-decoration: none; }
.btn:hover { background: #fff; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.footer { background: var(--bg); padding: calc(var(--u64) * 1.2) var(--left) calc(var(--u64) * 0.9); color: var(--ink); font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; letter-spacing: 0.03em; font-size: max(15px, calc(var(--u64) * 0.21)); line-height: 1.5; }
.ft { display: grid; grid-template-columns: 0.9fr 1.1fr 1.2fr 1.1fr; column-gap: 3vw; row-gap: 40px; }
.ft h4 { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; letter-spacing: 0.04em; color: var(--accent); font-size: max(18px, calc(var(--u64) * 0.3)); line-height: 1; margin: 0 0 0.6em; white-space: nowrap; }
.ft p { color: var(--muted); }
.ft a { color: inherit; text-decoration: none; }
.ft a:hover { color: var(--accent); }
.ft-logo img { display: block; height: 56px; width: auto; }
.ft-social { display: flex; gap: 14px; margin-top: 24px; }
.ft-social a { width: 30px; height: 30px; color: var(--ink); }
.ft-social svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ft-fue { display: flex; align-items: center; gap: 14px; }
.ft-fue img { flex: none; width: 72px; height: 72px; }
.ft-legal { display: flex; flex-wrap: wrap; margin-top: 1em; }
.ft-legal a + a::before { content: "|"; margin: 0 0.8em; color: var(--line); }
@media (max-width: 900px) { .ft { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ft { grid-template-columns: 1fr; } }

/* Selected work: pinned stage. Default = static stack; .live (set by JS) = scroll-driven. */
.reel { background: transparent; padding: 72px var(--left); --h: clamp(30px, min(5.9vw, calc((100vh - 140px) / 8.4)), 85px); --sub: calc(var(--h) * 22 / 64); }
.work { margin-bottom: 56px; }
.w-title { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: var(--h); line-height: 0.89; letter-spacing: 0.03em; margin: 0; }
.w-copy { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: var(--sub); line-height: 1.3; letter-spacing: 0.02em; max-width: 34ch; margin-top: 14px; }
.w-meta { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 600; font-size: var(--sub); line-height: 1.2; letter-spacing: 0.03em; color: var(--accent); margin-top: 14px; }

.reel.live { position: relative; padding: 0; border-top: 0;
  /* Copy line height: a quarter of the 2-line headline block (desktop), never below 1.3x the copy size. */
  --lhc: max(calc(var(--h) * 0.445), calc(var(--sub) * 1.3));
  --rowh: max(calc(var(--h) * 1.78), calc(var(--lhc) * 4)); }
.reel.live .reel-stage {
  position: sticky; top: 0; height: 100vh; padding: 104px 0 28px var(--left);
  display: flex; flex-direction: column; justify-content: center; gap: calc(var(--h) * 0.756); overflow: hidden;
}
.reel.live .work { margin: 0; opacity: 0; will-change: transform, opacity; }
/* Headline and copy window share one box. Both sit on its bottom edge, so the subline below never moves. */
.reel.live .work-row { position: relative; height: var(--rowh); width: calc(100vw - var(--left) * 2); }
.reel.live .w-title { position: absolute; left: 0; bottom: 0; white-space: nowrap; will-change: opacity; }
/* Window = 4 copy lines. Bottom offset puts the last copy baseline on the headline's last baseline. */
.reel.live .w-copy { position: absolute; left: 0; bottom: calc(var(--h) * 0.145 - (var(--lhc) / 2 - var(--sub) * 0.4)); margin: 0; max-width: none; width: min(56ch, 100%); height: calc(var(--lhc) * 4); overflow: hidden; opacity: 0; line-height: var(--lhc); }
.reel.live .w-copy p { line-height: inherit; will-change: transform; }
.reel.live .w-meta { margin-top: calc(var(--h) * 0.052); }
@media (max-width: 600px) {
  .reel { --h: clamp(26px, 7.6vw, 48px); --sub: 15px; }
}

/* Why DOCK11: 4 blocks, same type sizes as What we do (title 0.43 x 64pt in blue, copy 22pt in white). No hover effects. */
#why h2.big, #partners h2.big, #contact h2.big { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: var(--u64); line-height: 1; letter-spacing: 0.04em; margin: 0 0 calc(var(--u64) * 1.2); }
.why-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 6vw; row-gap: calc(var(--u64) * 1.1); }
.why-list h3 { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: calc(var(--u64) * 1.134); line-height: 0.92; letter-spacing: 0.03em; color: var(--accent); margin: 0; }
.why-list p { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: calc(var(--u64) * 0.344); line-height: 1.35; letter-spacing: 0.03em; color: var(--ink); max-width: 15.6em; margin-top: calc(var(--u64) * 0.1); }
@media (max-width: 700px) {
  #why h2.big, #partners h2.big, #contact h2.big { font-size: 40px; }
  .why-list { grid-template-columns: 1fr; row-gap: 28px; }
  .why-list h3 { font-size: 48px; }
  .why-list p { font-size: 16px; }
}

/* Jellyfish film: fixed full-viewport (16:9 source on pure black, cover-fit in main.js), screen-blended over the page, behind the content.
   Opacity and frame are driven by scroll (main.js). */
.jelly { position: fixed; inset: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; }
.fx { position: fixed; inset: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; }
/* Relax mode (relax.js): a veil in the page colour fades over everything; once it is opaque, the particles and the baby
   jellyfish are lifted above it (.relax-on), so only they remain. Leaving reverses the order. */
.relax-veil { position: fixed; inset: 0; z-index: 11; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 2.4s ease; }
html.relax .relax-veil { opacity: 1; pointer-events: auto; }
html.relax { overflow: hidden; }
html.relax .fx { opacity: 0 !important; transition: opacity 2.4s ease; }   /* fade out with the page under the veil ... */
html.relax-on .fx { z-index: 12; opacity: 1 !important; transition: opacity 7.4s ease; }   /* ... then fade in above it, slowly */
html.relax-on .baby { z-index: 12; }
.relax-ui { position: fixed; left: 0; right: 0; bottom: 28px; z-index: 13; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 18px; font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0; transition: opacity 1.6s ease; }
.relax-ui { pointer-events: none; }   /* only the controls catch the mouse; the empty strip counts as the sea */
.relax-ui > * { pointer-events: auto; }
html.relax-on.relax-ui-show .relax-ui { opacity: 1; transition-duration: 0.4s; }   /* quick in on mouse move, slow out (relax.js) */
.relax-ui button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); background: rgba(var(--head), 0.6); border: 1px solid var(--line); padding: 10px 14px; cursor: pointer; }
.relax-ui button:hover, .relax-ui button:focus-visible { color: var(--accent); border-color: var(--accent); }
.relax-ui > button { font-size: 10.4px; padding: 5px 7px; }   /* the row of controls: text 20 % smaller, half the padding */
.relax-hint { flex-basis: 100%; text-align: center; color: var(--muted); font-weight: 500; transition: opacity 1.5s ease 4s; }
html.relax-on .relax-hint { opacity: 0; }
/* Credit for the whale recordings (CC BY 2.5 requires it): opens under the faders from the (i) next to Whales (mixer.js) */
.relax-credit { margin: 14px 0 0; text-align: center; font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: none; color: var(--muted); }
.relax-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.relax-credit a:hover, .relax-credit a:focus-visible { color: var(--accent); }
.relax-credit span { color: rgba(0,187,255,0.35); }
.relax-ui .mix-info { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-left: 5px; padding: 0; vertical-align: 2px; border-radius: 50%; border: 1px solid var(--muted); background: none; color: var(--muted); font: 500 9px/1 Inter, Arial, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.relax-ui .mix-info:hover, .relax-ui .mix-info:focus-visible, .relax-ui .mix-info[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
html.relax-on.relax-mix-open .relax-ui { opacity: 1; transition-duration: 0.4s; }   /* mixer open: controls stay */
/* Mixer (mixer.js): a small mixing desk floating in the water. Faders are thin vertical columns whose handle is a glowing
   particle like the ones drifting behind them; labels in Bebas. Advanced: a quiet two-column list. Square corners like the
   other buttons; no bold, no italics. */
.relax-mixer { flex-basis: 100%; display: flex; justify-content: center; }
.relax-mixer[hidden] { display: none; }
.mix-card { width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 150px); overflow-y: auto; user-select: none; -webkit-user-select: none; scrollbar-color: rgba(255,255,255,0.25) transparent; transition: width 0.3s ease; overscroll-behavior: contain; padding: 18px 22px 14px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); scrollbar-width: thin; }
.mix-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mix-title { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: 26px; line-height: 1; letter-spacing: 0.1em; color: var(--ink); margin: 0; }
/* Small framed buttons (close, Advanced, presets, Reset), styled like the button row below (Sound off ...); all 21 px high */
.relax-mixer .mix-btn { box-sizing: border-box; height: 21px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 9px; background: rgba(var(--head), 0.6); border: 1px solid var(--line); color: var(--ink); line-height: 1; }
.relax-mixer .mix-btn:hover, .relax-mixer .mix-btn:focus-visible { color: var(--accent); border-color: var(--accent); }
.relax-mixer .mix-close { width: 21px; padding: 0; font-size: 17px; font-weight: 400; }
.relax-mixer .mix-more::after { content: '\00a0+'; color: var(--accent); }
.relax-mixer .mix-more[aria-expanded="true"]::after { content: '\00a0\2212'; }
.mix-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 12px; }
.mix-presets { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.relax-mixer .mix-reset { margin-left: 14px; }   /* set apart from the presets */
.mix-desk { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.mix-fader { display: flex; flex-direction: column; align-items: center; gap: 12px; cursor: pointer; }
.mix-fader span { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: 15px; letter-spacing: 0.1em; color: var(--muted); transition: color 0.3s; }
.mix-fader:hover span, .mix-fader:focus-within span { color: var(--ink); }
.mix-fader input { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 132px; margin: 0; }
.relax-mixer input[type=range] { -webkit-appearance: none; appearance: none; background: transparent; cursor: pointer; }
.relax-mixer input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
.relax-mixer input[type=range]::-moz-range-track { background: linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat; }
.relax-mixer input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 10px; height: 10px; border: none; border-radius: 50%; background: #c8ecf5; box-shadow: 0 0 6px 1px rgba(0,187,255,0.75), 0 0 18px 4px rgba(0,187,255,0.25); transition: box-shadow 0.25s; }
.relax-mixer input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border: none; border-radius: 50%; background: #c8ecf5; box-shadow: 0 0 6px 1px rgba(0,187,255,0.75), 0 0 18px 4px rgba(0,187,255,0.25); }
.relax-mixer input[type=range]:hover::-webkit-slider-thumb, .relax-mixer input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 8px 2px rgba(0,187,255,0.95), 0 0 26px 8px rgba(0,187,255,0.35); }
.relax-mixer input[type=range]:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.mix-list[hidden] { display: none; }
.mix-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; margin-top: 14px; }
/* Advanced open: wider card with three columns and shorter faders, so everything fits on one screen */
.mix-card.adv-open { width: min(980px, calc(100vw - 32px)); }
.mix-card.adv-open .mix-fader input { height: 84px; }
@media (min-width: 900px) {
  .mix-card.adv-open .mix-list { grid-template-columns: 1fr 1fr 1fr; align-items: start; }
  /* Bubbles and Layers span two rows, so Space moves up into the free space under the short Underwater group */
  .mix-card.adv-open .mix-group:nth-child(2), .mix-card.adv-open .mix-group:nth-child(3) { grid-row: span 2; }
}
.mix-group-title { font-family: 'Bebas Neue', 'Barlow Condensed', Arial, sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 0.12em; color: var(--ink); margin: 8px 0 4px; }
.mix-group-title::before { content: '///  '; white-space: pre; color: rgba(0,187,255,0.35); }
.mix-row { display: grid; grid-template-columns: 7.5em 1fr 2.6em; align-items: center; gap: 8px; height: 24px; font-weight: 500; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.mix-row output { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); opacity: 0.6; }
.mix-row input[type=range] { width: 100%; height: 18px; margin: 0; }
.mix-row input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.mix-row input[type=range]::-moz-range-track { background: linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat; }
.mix-row input[type=range]::-webkit-slider-thumb { width: 7px; height: 7px; }
.mix-row input[type=range]::-moz-range-thumb { width: 7px; height: 7px; }
#relaxMix[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
@media (max-width: 600px) {
  .mix-card { padding: 14px 12px 10px; }
  .mix-desk { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .mix-fader input { height: 96px; }
  .mix-list { grid-template-columns: 1fr; }
}

/* Baby jellyfish (babies.js): small fixed canvases fed by hidden loop videos, screen-blended like the big jellyfish. */
.baby { position: fixed; inset: auto; left: 0; top: 0; height: auto; z-index: 0; aspect-ratio: 9 / 16; pointer-events: none; mix-blend-mode: screen; opacity: 0; will-change: transform; }
.baby-src { position: fixed; left: 0; top: 0; width: 2px; height: 2px; opacity: 0.01; pointer-events: none; }

/* Who it's for: lead line in CI type, same size as the copy under WE KNOW THE LIMITS (22pt). */
#who .lead { font-family: 'Barlow Condensed', Arial, sans-serif; font-weight: 500; font-size: calc(var(--u64) * 0.344); line-height: 1.35; letter-spacing: 0.03em; color: var(--ink); max-width: 26em; }

/* Scroll reveals (reveal.js): text emerges from depth (perspective, scale, focus pull), headlines unfold out of a line mask,
   numbers pop in, portraits come into focus. */
.rv-ready { --rv-ease: cubic-bezier(.16, 1, .3, 1); --rv-pop: cubic-bezier(.34, 1.56, .64, 1); }
.rv-ready .rvw { display: inline-block; opacity: 0; transform: perspective(700px) translate3d(0, .85em, -120px) rotateX(-32deg); transform-origin: 50% 100%; filter: blur(12px);
  transition: opacity 1.1s var(--rv-ease), transform 1.4s var(--rv-ease), filter 1.2s var(--rv-ease);
  transition-delay: calc(var(--k, 0) * 130ms + var(--b, 0ms) + var(--i, 0) * 28ms); }
.rv-ready .in .rvw { opacity: 1; transform: none; filter: none; }
.rv-ready .rvl { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.rv-ready .rvl > span { display: block; transform: perspective(900px) translateY(118%) rotateX(-65deg); transform-origin: 50% 100%; filter: blur(8px); transition: transform 1.5s var(--rv-ease), filter 1.1s var(--rv-ease); transition-delay: calc(var(--k, 0) * 130ms + var(--i, 0) * 130ms); }
.rv-ready .in .rvl > span { transform: none; filter: none; }
.rv-ready .steps li::before { opacity: 0; transform: scale(.5) translateY(.3em); transform-origin: 0 100%; filter: blur(10px); transition: transform 1.1s var(--rv-pop), opacity .6s linear, filter .9s var(--rv-ease); transition-delay: calc(var(--k, 0) * 130ms); }
.rv-ready .steps li.in::before { opacity: 1; transform: none; filter: none; }
.rv-ready .audience li .rvl > span { transition-delay: calc(var(--k, 0) * 130ms + 140ms + var(--i, 0) * 130ms); }
.rv-ready .audience li .dl { opacity: 0; transition: opacity .8s var(--rv-ease); transition-delay: calc(var(--k, 0) * 120ms); }
.rv-ready .audience li.in .dl { opacity: 1; }
.rv-ready .face { opacity: 0; transform: scale(.82); filter: blur(18px); transition: opacity 1.1s var(--rv-ease), transform 1.6s var(--rv-pop), filter 1.4s var(--rv-ease); }
.rv-ready .member.in .face { opacity: 1; transform: none; filter: none; }
