/* DareDive — "Maison" identity.
   Onyx, ivory and one champagne accent. One typeface, Urbanist, set light and large; its weight axis is what moves.
   Layout: one long scroll stage; a fixed WebGL champagne-chrome form lives behind transparent sections (hero, work, play, contact)
   and solid ivory panels glide over it. */
:root {
  --onyx: #0B0A09;
  --ivory: #F4EFE6;
  --ink: #15130F;
  --gold: #C8A97E;
  --gold-2: #E3CFA8;
  --gold-deep: #9A7E55;       /* gold that holds up on ivory */
  --mute-light: color-mix(in srgb, var(--ivory) 58%, transparent);
  --mute-dark: #6F685D;
  --line-light: color-mix(in srgb, var(--ivory) 14%, transparent);
  --line-dark: color-mix(in srgb, var(--ink) 14%, transparent);

  --f-sans: "Urbanist", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gut: clamp(20px, 5vw, 88px);
  --step--1: clamp(.7rem, .68rem + .12vw, .8rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.15rem);
  --step-1: clamp(1.15rem, 1.05rem + .55vw, 1.6rem);
  --step-2: clamp(1.6rem, 1.25rem + 1.6vw, 2.8rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.8vw, 5.4rem);
  --step-4: clamp(2.8rem, 1.3rem + 6.6vw, 8.6rem);
  --ease: cubic-bezier(.22, 1, .36, 1);      /* the long, soft settle used everywhere */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  transition: color .6s var(--ease);
  font: 400 var(--step-0)/1.6 var(--f-sans);
  letter-spacing: .005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* a whisper of film grain over everything, so flat fields read as material */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; font-weight: inherit; }
h1 em, h2 em, h3 em, p em { color: var(--gold); }
.mono { font: 500 var(--step--1)/1.2 var(--f-sans); letter-spacing: .22em; text-transform: uppercase; }
.kicker { margin: 0 0 1.6rem; display: inline-flex; align-items: center; gap: 1em; color: var(--gold); }
.kicker::before { content: ""; width: 2.4em; height: 1px; background: currentColor; opacity: .7; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 5px; }
::selection { background: var(--gold); color: var(--onyx); }

/* hints that differ between mouse and touch */
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-fine { display: none; }
  .hint-touch { display: inline; }
}

#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .foot { position: relative; z-index: 1; }
/* AR glasses over the canvas (under the page's text) */
.visor { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.glasses { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; }
.glasses__rim { fill: none; stroke: #090807; stroke-linejoin: round; stroke-linecap: round; }
.glasses__lens { fill: rgba(227, 207, 168, .045); stroke: none; }
.glasses__line { fill: none; stroke: rgba(227, 207, 168, .75); stroke-width: 1.2; }
.glasses__temple { fill: none; stroke: #090807; stroke-linecap: round; }
.visor__edge { position: absolute; inset: 0; opacity: 0; border-radius: clamp(24px, 4vw, 56px);
  box-shadow: inset 0 0 0 1px rgba(227, 207, 168, .22), inset 0 0 140px 40px rgba(0, 0, 0, .55); }

/* ------------------------------------------------ loader */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--onyx); color: var(--ivory);
  display: grid; place-items: center; overflow: hidden; clip-path: inset(0 0 0% 0);
}
.loader__lock { position: relative; width: min(84vw, 980px); aspect-ratio: 2400 / 528; }
.loader__mark { position: absolute; left: 0; top: 0; width: 29.54%; height: 100%; overflow: visible; transform-origin: 0 0; opacity: 0; }   /* shown by the intro, already centred */
.loader__mark path { fill: var(--ivory); }
/* the lockup PNG as a mask, clipped to its wordmark: it slides out from behind the mark */
.loader__text {
  position: absolute; inset: 0; background: var(--ivory); clip-path: inset(0 100% 0 32.9%);
  -webkit-mask: url("../img/logo-lockup.png") 0 0 / 100% 100% no-repeat; mask: url("../img/logo-lockup.png") 0 0 / 100% 100% no-repeat;
}
.loader__count { position: absolute; left: var(--gut); bottom: calc(env(safe-area-inset-bottom, 0px) + 32px); font-variant-numeric: tabular-nums; color: var(--mute-light); }
.loader__bar { position: absolute; left: var(--gut); right: var(--gut); bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); height: 1px; background: var(--line-light); }
.loader__bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* ------------------------------------------------ cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.cursor__dot, .cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.cursor__dot { width: 5px; height: 5px; background: #fff; }
.cursor__ring { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, .55); display: grid; place-items: center; transition: width .6s var(--ease), height .6s var(--ease), background .5s, border-color .5s; }
.cursor__label { font: 600 9px/1 var(--f-sans); letter-spacing: .2em; color: var(--onyx); text-transform: uppercase; opacity: 0; transition: opacity .3s; }
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; border-color: #fff; }
.cursor.is-label { mix-blend-mode: normal; }
.cursor.is-label .cursor__ring { width: 78px; height: 78px; background: var(--gold); border-color: var(--gold); }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-label .cursor__label { opacity: 1; }

/* touch ripple, the mobile counterpart of the cursor */
.ripple { position: fixed; z-index: 89; left: 0; top: 0; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; border: 1px solid var(--gold-2); pointer-events: none; }

/* ------------------------------------------------ nav: clear at the top, frosted glass once you scroll */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 18px) var(--gut) 18px;
  color: var(--ivory); transition: color .6s var(--ease), transform .9s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease), background-color .6s;
  background: color-mix(in srgb, var(--onyx) 55%, transparent); border-bottom: 1px solid var(--line-light);
  backdrop-filter: saturate(160%) blur(20px); -webkit-backdrop-filter: saturate(160%) blur(20px);
}
.nav.is-scrolled::before { opacity: 1; }
.nav[data-theme="dark"]::before { background: color-mix(in srgb, var(--ivory) 62%, transparent); border-color: var(--line-dark); }
.nav.is-hidden { transform: translateY(-110%); }
.nav[data-theme="dark"] { color: var(--ink); }
.nav__brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav__brand svg { width: 26px; fill: currentColor; }
.nav__brand span { font: 500 .9rem/1 var(--f-sans); letter-spacing: .34em; text-transform: uppercase; }
.nav__links { display: flex; gap: clamp(1.2rem, 2.6vw, 2.8rem); }
.nav__links a { text-decoration: none; font: 500 var(--step--1)/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; position: relative; padding: .5em 0; opacity: .78; transition: opacity .4s; }
.nav__links a:hover { opacity: 1; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__right { display: flex; align-items: center; gap: .8rem; }

.sound {
  display: inline-flex; align-items: center; gap: .75rem; min-height: 42px;
  padding: .7rem 1.1rem; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: 999px;
  font: 500 var(--step--1)/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .5s var(--ease), border-color .5s, color .5s;
}
.sound:hover { border-color: currentColor; }
.sound__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sound__bars i { width: 1.5px; height: 30%; background: currentColor; transition: height .3s; }
.sound[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--onyx); }
.sound[aria-pressed="true"] .sound__bars i { animation: eq 1.1s ease-in-out infinite alternate; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(2) { animation-delay: -.35s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(3) { animation-delay: -.7s; }
.sound[aria-pressed="true"] .sound__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }

.mode { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); transition: border-color .5s, transform .8s var(--ease); }
.mode:hover { border-color: currentColor; }
.mode svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.mode .mode__sun { display: none; }
:root[data-mode="light"] .mode .mode__sun { display: block; }
:root[data-mode="light"] .mode .mode__moon { display: none; }
.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .6s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45; background: color-mix(in srgb, var(--onyx) 96%, transparent); color: var(--ivory);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: flex-end; gap: .4rem;
  padding: 100px var(--gut) calc(env(safe-area-inset-bottom, 0px) + 48px);
}
.menu a { font: 200 clamp(2.6rem, 12vw, 5.5rem)/1.05 var(--f-sans); text-decoration: none; letter-spacing: -.03em; }
.menu a:nth-child(even) { font-style: italic; color: var(--gold); }

/* ------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 50px;
  padding: 1.05em 1.9em; border-radius: 999px; text-decoration: none; white-space: nowrap;
  font: 600 var(--step--1)/1 var(--f-sans); letter-spacing: .18em; text-transform: uppercase;
  transition: background .6s var(--ease), color .6s var(--ease), border-color .6s var(--ease);
}
.btn--light { background: var(--ivory); color: var(--onyx); }
.btn--light:hover { background: var(--gold); }
.btn--line { border: 1px solid color-mix(in srgb, currentColor 40%, transparent); }
.btn--line:hover { border-color: var(--ivory); background: var(--ivory); color: var(--onyx); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--gold); color: var(--onyx); }
.btn--pink { background: var(--gold); color: var(--onyx); }
.btn--pink:hover { background: var(--ivory); }

/* ------------------------------------------------ hero: inside the speaker */
.hero {
  position: relative; min-height: 100svh; overflow: clip;
  display: grid; grid-template-rows: 1fr auto; grid-template-columns: minmax(0, 1fr);
  padding: calc(env(safe-area-inset-top, 0px) + 110px) var(--gut) clamp(28px, 5vh, 56px);
  touch-action: pan-y;
}
.hero::after {          /* a soft vignette so the type sits on the cone, not in it */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(120% 90% at 50% 45%, transparent 45%, color-mix(in srgb, var(--onyx) 75%, transparent) 100%);
}
.hero__foot { align-self: end; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2rem; align-items: end; }
.hero__line { margin: 0; font: 200 clamp(3.2rem, 1rem + 8.4vw, 10.5rem)/.92 var(--f-sans); letter-spacing: -.055em; }
.hero__line .hl { display: inline-block; }
.hero__line .hero__sub { display: block; margin-top: .55em; font-size: clamp(1.15rem, .7rem + 1.5vw, 2.3rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.2; color: color-mix(in srgb, var(--ivory) 82%, transparent); }
.hero__aside { display: grid; gap: 2.2rem; max-width: 22rem; justify-self: end; padding-bottom: .8rem; }
.hero__aside p { margin: 0; font: 300 var(--step-1)/1.45 var(--f-sans); color: color-mix(in srgb, var(--ivory) 78%, transparent); }
.hero__scroll { display: inline-flex; align-items: center; gap: 1.1rem; text-decoration: none; font: 500 var(--step--1)/1 var(--f-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); }
.hero__scroll i { position: relative; width: 1px; height: 46px; background: rgba(227, 207, 168, .25); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--gold-2); animation: drip 2.4s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ------------------------------------------------ passage: the tunnel of sound, four lines, one at a time */
.passage { position: relative; height: 100svh; overflow: clip; }
.passage__pin { position: relative; height: 100%; display: grid; justify-items: start; align-content: start; padding: calc(env(safe-area-inset-top, 0px) + 120px + 4vh) var(--gut) 0; }   /* the captions sit top-left, out of the scene's way */
.passage__line {
  grid-area: 1 / 1; margin: 0; text-align: left; opacity: 0;
  font: 250 clamp(1.45rem, .8rem + 2vw, 3.2rem)/1.1 var(--f-sans); letter-spacing: -.03em; max-width: min(14ch, calc(100vw - 2 * var(--gut)));
  /* each caption sits on its own small glass label: readable over a lit wall or a black speaker, and nothing else darkens */
  color: var(--ivory); padding: .55em .75em .6em; border-radius: .5em;
  background: rgba(14, 12, 10, .62); border: 1px solid rgba(227, 207, 168, .2);
}
/* a soft dark wash behind the captions so they read over the bright studio */
@media (min-width: 900px) and (hover: hover) { .passage__line { background: rgba(14, 12, 10, .5); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); } }
.passage__line { position: relative; align-self: start; }   /* each label hugs its own lines */
@media (max-width: 700px) { .passage__line { font-size: clamp(2.1rem, 9.6vw, 2.9rem); max-width: none; width: 100%; padding: .5em .6em .55em; } }   /* phones: big type, full width */
.passage__meter { position: absolute; left: 50%; bottom: clamp(28px, 6vh, 64px); width: 120px; height: 1px; translate: -50% 0; background: var(--line-light); }
.passage__meter i { display: block; height: 100%; width: 0; background: var(--gold); }

/* ------------------------------------------------ marquee: a slow, quiet ribbon */
.marquee { background: var(--onyx); color: var(--ivory); overflow: hidden; padding: clamp(1.4rem, 3vw, 2.6rem) 0; border-block: 1px solid var(--line-light); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: clamp(1.6rem, 3vw, 3.4rem); will-change: transform; }
.marquee__track span { font: 200 clamp(2rem, 5.4vw, 5.6rem)/1 var(--f-sans); letter-spacing: -.03em; white-space: nowrap; }
.marquee__track span:nth-of-type(even) { font-style: italic; color: var(--gold); }
.marquee__track b { width: 7px; height: 7px; flex: none; background: var(--gold); transform: rotate(45deg); opacity: .8; }

/* ------------------------------------------------ manifesto */
.manifesto { background: var(--ivory); color: var(--ink); padding: clamp(110px, 20vh, 240px) var(--gut); }
.manifesto .kicker { color: var(--gold-deep); }
.manifesto__text { margin: 0; max-width: 20ch; font: 300 var(--step-4)/1.02 var(--f-sans); letter-spacing: -.04em; }
.manifesto__text em { color: var(--gold-deep); font-variation-settings: "wght" var(--w, 300); }
.manifesto__text .word { display: inline-block; }

/* ------------------------------------------------ who we are */
.who { background: var(--onyx); color: var(--ivory); padding: clamp(110px, 18vh, 220px) var(--gut); }
.who__title { margin: 0 0 clamp(40px, 7vh, 88px); font: 300 var(--step-4)/1.02 var(--f-sans); letter-spacing: -.045em; }
.who__title em { color: var(--gold); }
.who__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: start; border-top: 1px solid var(--line-light); padding-top: 2.2rem; }
.who__text { display: grid; gap: 1.3rem; max-width: 56ch; }
.who__text p { margin: 0; color: color-mix(in srgb, var(--ivory) 74%, transparent); font: 300 var(--step-0)/1.6 var(--f-sans); }
.who__text .who__lead { color: var(--ivory); font: 300 var(--step-1)/1.4 var(--f-sans); letter-spacing: -.01em; }
.who__text .who__recog { padding-top: 1.1rem; border-top: 1px solid var(--line-light); color: var(--gold); font-weight: 400; }
.who__cert { display: grid; gap: .9rem; text-decoration: none; color: var(--ivory); }
.who__cert img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 0 0 1px rgba(227, 207, 168, .18), 0 30px 80px -30px rgba(0, 0, 0, .8); transition: transform .9s var(--ease), box-shadow .9s var(--ease); }
.who__cert:hover img { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(227, 207, 168, .35), 0 40px 90px -30px rgba(0, 0, 0, .85); }
.who__certnote { justify-self: start; color: var(--gold); letter-spacing: .2em; text-transform: uppercase; font-size: var(--step--1); }
@media (max-width: 900px) { .who__grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ what we do: pinned stage, one discipline at a time */
@property --ro { syntax: '<length>'; inherits: false; initial-value: 0px; }
.work { position: relative; height: 100svh; overflow: hidden; color: var(--ivory); transition: color .9s var(--ease); }
.work[data-tone="dark"] { color: var(--ink); }
.work__fx { position: absolute; inset: 0; pointer-events: none; }
.fx { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); overflow: hidden; }
.fx.is-on { opacity: 1; }
/* music technology: fine fader lanes drifting sideways */
.fx--0 { background: repeating-linear-gradient(90deg, rgba(200, 169, 126, .07) 0 1px, transparent 1px 96px); animation: lanes 14s linear infinite; }
@keyframes lanes { to { background-position: 96px 0; } }
/* audio-visual: soft scanlines and a single gold hairline */
.fx--1 { background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--ivory) 2%, transparent) 0 1px, transparent 1px 4px), radial-gradient(70% 60% at 70% 45%, rgba(200, 169, 126, .1), transparent 70%); }
.fx--1::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(227, 207, 168, .6), transparent); }
/* real-time 3D: a perspective grid rolling toward you */
.fx--2 b { position: absolute; left: -50%; right: -50%; bottom: -8%; height: 62%; background-image: linear-gradient(rgba(200, 169, 126, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(200, 169, 126, .16) 1px, transparent 1px); background-size: 72px 72px; transform: perspective(520px) rotateX(64deg); transform-origin: 50% 100%; animation: roll 3s linear infinite; -webkit-mask-image: linear-gradient(to top, #000 20%, transparent); mask-image: linear-gradient(to top, #000 20%, transparent); }
@keyframes roll { to { background-position: 0 72px; } }
/* sound design: rings rippling outward on ivory */
.fx--3 { background: repeating-radial-gradient(circle at 68% 52%, color-mix(in srgb, var(--ink) 7%, transparent) var(--ro) calc(var(--ro) + 1px), transparent calc(var(--ro) + 1px) calc(var(--ro) + 64px)); animation: rings 3.2s linear infinite; }
@keyframes rings { to { --ro: 64px; } }
/* interactive: a dot field lit by the pointer */
.fx--4 { background-image: radial-gradient(rgba(227, 207, 168, .45) 1.1px, transparent 1.6px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(circle 320px at var(--mx, 60%) var(--my, 50%), #000, transparent); mask-image: radial-gradient(circle 320px at var(--mx, 60%) var(--my, 50%), #000, transparent); }
/* live: warm beams sweeping from the rig */
.fx--5::before, .fx--5::after { content: ""; position: absolute; inset: -20% -10% 0; transform-origin: 50% 0; }
.fx--5::before { background: conic-gradient(from 168deg at 28% 0%, transparent 0deg, rgba(227, 207, 168, .16) 6deg, transparent 16deg); animation: beam 6s ease-in-out infinite alternate; }
.fx--5::after { background: conic-gradient(from 176deg at 74% 0%, transparent 0deg, color-mix(in srgb, var(--ivory) 10%, transparent) 5deg, transparent 13deg); animation: beam 7.5s ease-in-out infinite alternate-reverse; }
@keyframes beam { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }

.work__pin { position: relative; height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; padding: calc(env(safe-area-inset-top, 0px) + 100px) var(--gut) clamp(24px, 4.5vh, 48px); }
.work__top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 1.2em; }
.work__top .kicker { margin: 0; }
.work[data-tone="dark"] .kicker { color: var(--gold-deep); }
.work__count { margin: 0; font-variant-numeric: tabular-nums; opacity: .7; }
.work__stage { position: relative; min-height: 0; }
.disc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: clamp(.7rem, 1.8vh, 1.3rem); max-width: 56%; visibility: hidden; }
.disc__tag { color: var(--gold); }
.work[data-tone="dark"] .disc__tag { color: var(--gold-deep); }
.disc__big { margin: 0; display: flex; font: 200 20vw/.92 var(--f-sans); letter-spacing: -.05em; white-space: nowrap; }
.disc__big span { display: inline-block; font-variation-settings: "wght" var(--w, 200); }
.disc h3 { margin: 0; font: 300 var(--step-2)/1.08 var(--f-sans); letter-spacing: -.025em; text-wrap: balance; }
.disc__copy { margin: 0; max-width: 40ch; opacity: .7; font-weight: 300; }
.work__foot { display: grid; gap: 16px; }
.work__bar { height: 1px; background: color-mix(in srgb, currentColor 18%, transparent); }
.work__bar i { display: block; height: 100%; width: 0; background: var(--gold); }
.work__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .7em 1.2em; min-height: 38px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: 999px; transition: background .6s var(--ease), color .6s var(--ease), border-color .6s; }
.chip:hover { border-color: currentColor; }
.chip.is-on { background: var(--ivory); border-color: var(--ivory); color: var(--onyx); }
.work[data-tone="dark"] .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* ------------------------------------------------ play */
.play { padding: clamp(120px, 18vh, 200px) var(--gut) clamp(70px, 12vh, 130px); display: grid; gap: clamp(28px, 5vh, 56px); overflow-x: clip; }
.play__head { display: grid; gap: 1rem; }
.play__title { margin: 0; font: 300 var(--step-4)/1 var(--f-sans); letter-spacing: -.045em; }
.play__hint { margin: 0; color: var(--mute-light); max-width: 46ch; font-weight: 300; }
.play__keys { margin: 0; color: var(--mute-light); }

.seq__keys { display: grid; gap: 12px; }
.seq__keyhint { margin: 0; color: var(--mute-light); }
.seq__rec i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #e0574a; margin-right: .6em; vertical-align: 1px; }
.seq__rec[aria-pressed="true"] { background: #e0574a; border-color: #e0574a; color: var(--onyx); }
.seq__rec[aria-pressed="true"] i { background: var(--onyx); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.seq__cell .seq__note { pointer-events: none; font: 700 .62rem/1 var(--f-sans); letter-spacing: .04em; color: var(--onyx); }
.seq__cell { display: grid; place-items: center; }
.pads { display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(6px, .8vw, 12px); }
.pad {
  aspect-ratio: 1 / .62; border-radius: 16px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  padding: clamp(10px, 1.2vw, 18px);
  border: 1px solid var(--line-light); background: linear-gradient(160deg, color-mix(in srgb, var(--ivory) 6%, transparent), color-mix(in srgb, var(--ivory) 2%, transparent));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: transform .35s var(--ease), border-color .5s; touch-action: manipulation;
}
.pad:hover { border-color: rgba(200, 169, 126, .5); }
.pad::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, var(--gold-2), var(--gold)); opacity: 0; transition: opacity .9s var(--ease); }
.pad.is-hit { transform: scale(.96); border-color: var(--gold); }
.pad.is-hit::before { opacity: .85; transition: opacity 0s; }
.pad.is-hit .pad__note, .pad.is-hit .pad__key { color: var(--onyx); }
.pad > * { position: relative; transition: color .5s; }
.pad__key { color: var(--mute-light); }
.pad__note { font: 200 clamp(1.4rem, 2.6vw, 2.6rem)/1 var(--f-sans); letter-spacing: -.02em; }
.pad.is-rec { box-shadow: 0 0 0 1px #e0574a; }
@media (hover: none), (pointer: coarse) { .pad__key { display: none; } .pad { justify-content: center; align-items: center; } }

/* ------------------------------------------------ sequencer: a frosted instrument panel */
.seq {
  display: grid; gap: 20px; padding: clamp(16px, 2.4vw, 32px);
  border: 1px solid var(--line-light); border-radius: 28px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--onyx) 72%, transparent), color-mix(in srgb, var(--onyx) 72%, transparent));
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8), inset 0 1px 0 color-mix(in srgb, var(--ivory) 6%, transparent);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.seq__bar { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; }
.seq__play { min-width: 8rem; }
.seq__play[aria-pressed="true"] { background: var(--ivory); }
.seq__tempo { display: inline-flex; align-items: center; gap: .8rem; color: var(--mute-light); }
.seq__tempo output { color: var(--ivory); min-width: 3ch; font-variant-numeric: tabular-nums; }
.seq__tempo input { width: clamp(110px, 16vw, 200px); accent-color: var(--gold); }
.seq__tools { display: flex; gap: .5rem; margin-left: auto; }
.seq__btn { padding: .75em 1.2em; min-height: 40px; border: 1px solid var(--line-light); border-radius: 999px; transition: background .5s var(--ease), color .5s var(--ease), border-color .5s; }
.seq__btn:hover { background: var(--ivory); border-color: var(--ivory); color: var(--onyx); }
.seq__grid { display: grid; grid-template-columns: 5rem repeat(16, minmax(0, 1fr)); gap: 5px; }
.seq__label { grid-row: calc(var(--t) + 1); grid-column: 1; align-self: center; font: 500 var(--step--1)/1 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--tc); }
.seq__step { display: none; }
.seq__cell {
  grid-row: calc(var(--t) + 1); grid-column: calc(var(--s) + 2);
  height: clamp(30px, 3.6vw, 50px); border-radius: 8px;
  background: color-mix(in srgb, var(--ivory) 4%, transparent); border: 1px solid color-mix(in srgb, var(--ivory) 7%, transparent);
  transition: background .25s, transform .3s var(--ease), box-shadow .5s; touch-action: manipulation;
}
.seq__cell.is-beat { background: color-mix(in srgb, var(--ivory) 8%, transparent); }
.seq__cell[aria-pressed="true"] { background: var(--tc); border-color: var(--tc); }
.seq__cell.is-head { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ivory) 70%, transparent); }
.seq__cell.is-trig { transform: scale(.9); box-shadow: 0 0 22px color-mix(in srgb, var(--tc) 60%, transparent); }

.sound__icon { display: none; width: 20px; height: 20px; fill: currentColor; }

/* ------------------------------------------------ approach */
.approach { background: var(--ivory); color: var(--ink); padding: clamp(110px, 18vh, 220px) var(--gut); display: grid; gap: clamp(44px, 8vh, 96px); }
.approach .kicker, .founder .kicker { color: var(--gold-deep); }
.approach h2 em, .founder h2 em { color: var(--gold-deep); }
.approach__head h2 { margin: 0; font: 300 var(--step-4)/1 var(--f-sans); letter-spacing: -.045em; }
.approach__wave { width: 100%; height: clamp(70px, 12vw, 160px); overflow: visible; }
.approach__wave path { fill: none; stroke: var(--gold-deep); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.principle { display: grid; gap: 1rem; align-content: start; border-top: 1px solid var(--line-dark); padding-top: 1.6rem; }
.principle h3 { margin: 0; font: 400 var(--step-2)/1.1 var(--f-sans); letter-spacing: -.025em; }
.principle p { margin: 0; color: var(--mute-dark); max-width: 36ch; font-weight: 400; }
.gear { display: grid; gap: 1.2rem; border-top: 1px solid var(--line-dark); padding-top: 1.6rem; }
.gear p { margin: 0; color: var(--gold-deep); }
.gear__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.gear__row span { padding: .65em 1.15em; border: 1px solid var(--line-dark); border-radius: 999px; font: 500 var(--step--1)/1 var(--f-sans); letter-spacing: .12em; text-transform: uppercase; transition: background .5s var(--ease), color .5s var(--ease), border-color .5s; }
.gear__row span:hover { background: var(--ink); border-color: var(--ink); color: var(--ivory); }

/* ------------------------------------------------ founder */
.founder { background: var(--ivory); color: var(--ink); padding: 0 var(--gut) clamp(110px, 18vh, 220px); }
.founder__quote { margin: 0 0 clamp(44px, 8vh, 96px); max-width: 18ch; font: 300 var(--step-4)/1.02 var(--f-sans); letter-spacing: -.045em; }
.founder__grid { display: grid; grid-template-columns: .8fr 1.2fr auto; gap: 2.4rem; align-items: start; border-top: 1px solid var(--line-dark); padding-top: 2rem; }
.founder__name { display: grid; gap: .5rem; }
.founder__name strong { font: 500 var(--step-1)/1.15 var(--f-sans); letter-spacing: -.01em; }
.founder__name span { color: var(--mute-dark); }
.founder__grid p { margin: 0; max-width: 52ch; color: color-mix(in srgb, var(--ink) 85%, transparent); }

/* ------------------------------------------------ contact */
.contact { min-height: 100svh; padding: clamp(120px, 18vh, 200px) var(--gut) clamp(70px, 12vh, 130px); display: grid; align-content: space-between; gap: 3.5rem; }
.contact__big { margin: 0; font: 200 clamp(2.8rem, 11vw, 12.5rem)/.98 var(--f-sans); letter-spacing: -.05em; display: grid; user-select: none; }
.contact__big .row { display: flex; flex-wrap: nowrap; }
.contact__big .row + .row { justify-content: flex-end; color: var(--gold); font-style: italic; }
.contact__big .row span { display: inline-block; font-variation-settings: "wght" var(--w, 200); }
.form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem 2.4rem; max-width: 1100px; }
/* the journey replays behind this section: the form sits on its own dark glass card so it always reads */
.contact { position: relative; }
.contact::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, color-mix(in srgb, var(--onyx) 35%, transparent), color-mix(in srgb, var(--onyx) 55%, transparent) 60%, color-mix(in srgb, var(--onyx) 35%, transparent)); }
.contact > * { position: relative; }
.contact .form { padding: clamp(22px, 3.4vw, 44px); border-radius: 28px; border: 1px solid var(--line-light);
  background: color-mix(in srgb, var(--onyx) 84%, transparent); box-shadow: 0 40px 120px -30px color-mix(in srgb, var(--onyx) 90%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.contact__big { text-shadow: 0 0 50px color-mix(in srgb, var(--onyx) 70%, transparent); }
.field { display: grid; gap: .6rem; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 500 var(--step--1)/1 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mute-light); }
.field input, .field select, .field textarea {
  width: 100%; font: 300 max(16px, var(--step-1))/1.35 var(--f-sans); color: var(--ivory);
  background: transparent; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--ivory) 22%, transparent); border-radius: 0;
  padding: .6rem 0; outline: none; resize: vertical; transition: border-color .6s var(--ease);
}
.field select { appearance: none; -webkit-appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right .3rem center / 7px 7px no-repeat; }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field.is-bad input, .field.is-bad textarea { border-color: #e0574a; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; }
.form__note { margin: 0; color: var(--mute-light); letter-spacing: .12em; }
.form__note .sel { user-select: all; color: var(--ivory); overflow-wrap: anywhere; text-transform: none; letter-spacing: .04em; }

/* ------------------------------------------------ footer */
.foot { background: transparent; color: var(--ivory); padding: 0 var(--gut) calc(env(safe-area-inset-bottom, 0px) + 32px); overflow: hidden; }
.foot__logo {
  width: 100%; aspect-ratio: 2400 / 528; margin-top: clamp(32px, 6vw, 80px);
  /* the PNG is used as a mask so the mark takes the page colour */
  -webkit-mask: url("../img/logo-lockup.png") center / contain no-repeat; mask: url("../img/logo-lockup.png") center / contain no-repeat;
  background: var(--ivory);
}
.foot__again { display: inline-flex; gap: .6em; margin-top: 1.6rem; text-decoration: none; color: var(--gold-2); }
.foot__again:hover { color: var(--ivory); }
.foot__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.8rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-light); color: var(--mute-light); letter-spacing: .14em; }

/* ------------------------------------------------ tablets and phones */
@media (max-width: 1000px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hero__aside { justify-self: start; max-width: 30rem; gap: 1.4rem; }
  .principles { grid-template-columns: 1fr; }
  .founder__grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* on phones the copy sits over the 3D scene: fade the lower part of the stage into the discipline's own colour */
  .work__pin::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; pointer-events: none;
    background-color: var(--disc-bg, var(--onyx)); transition: background-color .9s var(--ease);
    -webkit-mask-image: linear-gradient(to top, #000 74%, transparent); mask-image: linear-gradient(to top, #000 74%, transparent);
  }
  .work__pin > * { position: relative; z-index: 1; }
  .disc { max-width: none; justify-content: flex-end; padding-bottom: 6px; }
  .disc__big { font-size: 28vw; }
  .work__chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .work__chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .pads { grid-template-columns: repeat(4, 1fr); }
  .pad { aspect-ratio: 1 / .7; }
}
@media (max-width: 700px) {
  /* sequencer turns on its side: instruments become columns, steps run down the page */
  .seq { border-radius: 22px; }
  .seq__grid { grid-template-columns: 2rem repeat(5, minmax(0, 1fr)); grid-auto-rows: 34px; gap: 4px; }
  .seq__label { grid-row: 1; grid-column: calc(var(--t) + 2); justify-self: center; font-size: .62rem; letter-spacing: .1em; }
  .seq__step { display: block; grid-row: calc(var(--s) + 2); grid-column: 1; align-self: center; font: 500 .62rem/1 var(--f-sans); color: var(--mute-light); }
  .seq__cell { grid-row: calc(var(--s) + 2); grid-column: calc(var(--t) + 2); height: auto; }
  .seq__tools { margin-left: 0; }
}
@media (max-width: 560px) {
  .sound__label, .sound__bars { display: none; }
  .sound { padding: 0; width: 44px; justify-content: center; }
  .sound[aria-pressed="false"] .sound__icon--off, .sound[aria-pressed="true"] .sound__icon--on { display: block; }
  .nav__brand span { display: none; }
  .hero { padding-top: calc(env(safe-area-inset-top, 0px) + 92px); }
  .hero__line { font-size: 17vw; }
  .contact__big { font-size: 13vw; }
  .hide-sm { display: none; }
  .foot__meta { flex-direction: column; }
}
@media (hover: none), (pointer: coarse), (max-width: 760px) {
  body::after { display: none; }                                         /* film grain: a full-screen layer repainted while scrolling */
  .nav::before, .seq, .pad, .menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav::before { background: color-mix(in srgb, var(--onyx) 88%, transparent); }
  .fx, .fx::before, .fx::after, .fx b { animation: none !important; }  /* animated full-screen gradients */
  main *, .nav *, .foot *, .loader * { filter: none !important; }       /* blur tweens: costly and prone to flicker on phones */
  .hero::after { display: none; }
  .passage__line { text-shadow: none; }                                 /* big blurred shadows repaint on every frame of a fade */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* masked line reveals: room below each line so descenders and italics are never clipped */
[data-split] .line-mask { padding-bottom: .14em; margin-bottom: -.14em; }

/* a field only bots fill in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* footer: the service pages, so visitors and search engines can find them */
.foot__services { display: flex; flex-wrap: wrap; gap: .7rem 1.8rem; margin-top: 2.4rem; }
.foot__services a { text-decoration: none; color: color-mix(in srgb, var(--ivory) 78%, transparent); transition: color .4s; }
.foot__services a:hover { color: var(--gold-2); }
