/* ==========================================================================
   Ultra Mastering · David Muñoz · "final_FINAL_v7.wav"
   Written from scratch for this funnel. Brand tokens from
   Ultra_Mastering_Paleta_de_color.docx. Gold is reserved for action and the
   "approved" state; it is never used as ambience.
   Radius system: pills for anything pressable (buttons, file chips),
   18px for media frames and panels, 12px for small tiles.
   ========================================================================== */

@font-face {
  font-family: 'Europa Grotesk SH';
  src: url('../fonts/europa-grotesk-sh-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Albert Sans';
  src: url('../fonts/albert-sans-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Albert Sans';
  src: url('../fonts/albert-sans-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Fragment Mono';
  src: url('../fonts/fragment-mono.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color: brand hex + violet-tinted neutrals derived from #08060C */
  --bg: #08060C;
  --surface: #110D17;
  --surface-2: #19141F;
  --surface-3: #221C2A;
  --line: rgba(245, 243, 239, 0.1);
  --line-strong: rgba(245, 243, 239, 0.2);
  --text: #F5F3EF;
  --text-dim: #9A968E;
  --text-faint: #75707B;
  --accent: #C9A227;
  --accent-hi: #DDB93F;
  --accent-soft: rgba(201, 162, 39, 0.14);
  --on-accent: #120E05;

  /* Type */
  --display: 'Europa Grotesk SH', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-small: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --fs-mono: clamp(0.8125rem, 0.76rem + 0.25vw, 0.9375rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.5rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.9vw, 2rem);
  --fs-h2: clamp(2.125rem, 1.5rem + 2.6vw, 4rem);
  --fs-h1: clamp(2.75rem, 1.6rem + 4.4vw, 5.25rem);
  --fs-mega: clamp(3.5rem, 2rem + 7vw, 8.5rem);

  /* Space */
  --maxw: 1240px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  --space-section: clamp(5rem, 3.5rem + 6vw, 10rem);
  --r-pill: 999px;
  --r-lg: 18px;
  --r-sm: 12px;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-fast: 160ms;
  --dur: 280ms;

  --topbar-h: 68px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, picture, svg { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 1rem; }

#nav-sentinel { position: absolute; top: 100px; left: 0; width: 1px; height: 1px; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.lead { font-size: var(--fs-lead); line-height: 1.45; color: var(--text); }
.muted { color: var(--text-dim); }
.link {
  color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 4px; transition: text-decoration-color var(--dur) ease;
}
.link:hover { text-decoration-color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad-y: 0.8rem; --btn-pad-x: 1.35rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.975rem;
  letter-spacing: 0.005em;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 10px 30px -12px rgba(201, 162, 39, 0.6);
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) ease, box-shadow var(--dur) ease;
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn__icon { width: 18px; height: 18px; flex: none; }
.btn--sm { --btn-pad-y: 0.55rem; --btn-pad-x: 1rem; font-size: 0.875rem; min-height: 40px; }
.btn--lg { --btn-pad-y: 1rem; --btn-pad-x: 1.6rem; font-size: 1.0625rem; min-height: 52px; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--accent-hi);
    box-shadow:
      inset 0 1px 0 rgba(255, 244, 214, 0.5),
      inset 0 -1px 0 rgba(0, 0, 0, 0.18),
      0 14px 36px -12px rgba(201, 162, 39, 0.75);
  }
  .btn--ghost:hover { background: rgba(245, 243, 239, 0.06); box-shadow: inset 0 0 0 1px rgba(245, 243, 239, 0.35); }
}

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  transition: transform 420ms var(--ease-out), background-color var(--dur) ease, box-shadow var(--dur) ease;
}
.topbar.is-scrolled {
  background: rgba(8, 6, 12, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__inner {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding: 0 var(--gutter);
  height: var(--topbar-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.topbar__brand { justify-self: start; display: block; }
.topbar__brand img { width: auto; height: 40px; }
.topbar__inner > .btn { justify-self: end; grid-column: 3; }
.topbar__file {
  display: none;
  align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-size: 0.8125rem; color: var(--text-dim);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line);
  background: rgba(17, 13, 23, 0.6);
  max-width: 42ch;
  transition: color 400ms ease;
}
.topbar__filename { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 200ms ease, filter 200ms ease; }
.topbar__filename.is-swapping, .history__file.is-swapping { opacity: 0; filter: blur(3px); }
.file-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--text-faint);
  transition: background-color 400ms ease, box-shadow 400ms ease;
}
.topbar__file.is-approved { color: var(--text); }
.topbar__file.is-approved .file-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
@media (min-width: 1024px) { .topbar__file { display: inline-flex; } }

.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; overflow: hidden; }
.progress__bar {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--topbar-h) + clamp(2rem, 1rem + 4vw, 5rem));
  padding-bottom: clamp(3.5rem, 2rem + 4vw, 6rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 1rem + 4vw, 5.5rem);
  align-items: center;
}
.hero__notice {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: var(--fs-mono);
  color: var(--text);
  margin-bottom: 1.6rem;
}
.hero__notice[hidden] { display: none; }
.hero__notice::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: 0.96;
  letter-spacing: -0.03em;
  max-width: 9.2em;
}
.hero__sub {
  margin-top: clamp(1.25rem, 1rem + 1vw, 2rem);
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--text-dim);
  max-width: 34ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1.75rem, 1.2rem + 1.5vw, 2.75rem); }

.hero__media { position: relative; width: 100%; max-width: 440px; justify-self: end; }
.hero__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.filebar {
  position: relative;
  margin: -1.6rem 1.1rem 0;
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r-pill);
  background: rgba(25, 20, 31, 0.94);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}
.filebar__play {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--text);
  position: relative;
}
.filebar__play::after {
  content: ''; position: absolute; left: 11px; top: 8px;
  border-left: 8px solid var(--bg); border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.filebar__name {
  font-family: var(--mono); font-size: 0.8125rem; color: var(--text);
  white-space: nowrap; overflow: hidden;
  flex: 1 1 auto; min-width: 0;
}
.filebar__name::after {
  content: ''; display: inline-block; width: 1px; height: 1em; margin-left: 2px;
  background: var(--text-dim); vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}
.filebar__meter { display: flex; align-items: flex-end; gap: 2px; height: 16px; flex: none; }
.filebar__meter i {
  display: block; width: 3px; height: 100%; border-radius: 2px;
  background: var(--text-dim);
  transform-origin: 50% 100%;
  animation: meter 1.1s var(--ease-in-out) infinite alternate;
}
.filebar__meter i:nth-child(2) { animation-delay: -0.3s; }
.filebar__meter i:nth-child(3) { animation-delay: -0.7s; }
.filebar__meter i:nth-child(4) { animation-delay: -0.15s; }
.filebar__meter i:nth-child(5) { animation-delay: -0.5s; }
.filebar__meter i:nth-child(6) { animation-delay: -0.9s; }
.filebar__meter i:nth-child(7) { animation-delay: -0.4s; }
@keyframes meter { from { transform: scaleY(0.2); } to { transform: scaleY(1); } }
@keyframes caret { 50% { opacity: 0; } }

/* Split words (hero + about titles) */
[data-split] { word-spacing: 0.06em; }
.word { display: inline-block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.12em; vertical-align: top; }
.word > span { display: inline-block; }
.js [data-split].is-split .word > span {
  transform: translateY(108%);
  transition: transform 900ms var(--ease-enter);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js [data-split].is-split.is-in .word > span { transform: none; }

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 800ms var(--ease-enter), transform 800ms var(--ease-enter);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.js [data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1100ms var(--ease-in-out);
}
.js [data-reveal="clip"].is-revealed { clip-path: inset(0 0 0 0); }

/* ---------- Credentials ---------- */
.creds { padding-block: clamp(1.5rem, 1rem + 1.5vw, 2.5rem); }
.creds__row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
}
.creds__item {
  padding: 1.5rem clamp(1rem, 0.5rem + 1.5vw, 2rem) 1.5rem 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.6rem;
  font-size: var(--fs-small); color: var(--text-dim);
  min-width: 0;
}
.creds__item + .creds__item { padding-left: clamp(1rem, 0.5rem + 1.5vw, 2rem); border-left: 1px solid var(--line); }
.creds__item img { width: auto; height: 36px; align-self: flex-start; margin-bottom: 0.25rem; }
.creds__item p { max-width: 30ch; }
.creds__big {
  font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  color: var(--text); line-height: 1; letter-spacing: -0.02em;
}

/* ---------- Folder (the motif) ---------- */
.folder { padding-block: var(--space-section); }
.folder__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem) clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.folder__title {
  font-family: var(--display);
  font-size: var(--fs-h2);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  position: sticky; top: calc(var(--topbar-h) + 2rem);
}
.folder__list { display: flex; flex-direction: column; gap: 0.35rem; }
.folder__list li {
  position: relative;
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--mono);
  font-size: clamp(0.875rem, 0.7rem + 0.8vw, 1.3125rem);
  color: var(--text);
  overflow: hidden;
}
.folder__list li::before {
  content: '';
  width: 22px; height: 26px; flex: none;
  border-radius: 3px 8px 3px 3px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.folder__name { position: relative; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: color 500ms ease; }
.folder__strike {
  position: absolute; left: 3.6rem; right: 1.25rem; top: 50%;
  height: 2px; margin-top: -1px;
  background: var(--text-dim);
  transform: scaleX(0); transform-origin: 0 50%;
}
.folder__list li.is-struck .folder__name { color: var(--text-faint); }
.folder__list li.is-struck .folder__strike { transform: scaleX(1); transition: transform 600ms var(--ease-in-out); }
.folder__copy { grid-column: 2; max-width: 52ch; display: grid; gap: 1rem; }
.folder__copy p:not(.lead) { color: var(--text-dim); }

/* ---------- Listen ---------- */
.listen { padding-block: var(--space-section); }
.listen__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem) clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.listen__head { grid-column: 1 / -1; display: grid; gap: 1rem; max-width: 60ch; }
.player {
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  position: sticky; top: calc(var(--topbar-h) + 1.5rem);
}
.player__cover { aspect-ratio: 16 / 11; overflow: hidden; }
.player__cover picture, .player__cover img { width: 100%; height: 100%; }
.player__cover img { object-fit: cover; object-position: 50% 30%; }
.player__body { padding: 1.5rem; display: grid; gap: 0.4rem; }
.player__title { font-family: var(--display); font-size: var(--fs-h3); line-height: 1.05; letter-spacing: -0.015em; }
.player__meta { font-family: var(--mono); font-size: var(--fs-small); color: var(--text-dim); }
.player__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem; margin-top: 1rem; }
.player__note { font-size: 0.8125rem; color: var(--text-faint); margin-top: 0.5rem; }
.play-glyph { width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.player.is-loaded .player__cover, .player.is-loaded .player__body { display: none; }
.player iframe { display: block; width: 100%; height: 480px; border: 0; }

.credits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.credits li {
  display: grid; gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  min-width: 0;
}
.credits li span:first-child { font-weight: 600; color: var(--text); }
.credits li span:last-child { font-size: var(--fs-small); color: var(--text-dim); }

/* ---------- Version history ---------- */
.history { padding-block: var(--space-section); }
.history__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}
.history__rail {
  position: sticky; top: calc(var(--topbar-h) + 2rem);
  display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.history__now {
  display: grid; gap: 0.9rem;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}
.history__label { font-size: var(--fs-small); color: var(--text-dim); }
.history__file {
  font-family: var(--mono);
  font-size: clamp(1rem, 0.8rem + 0.9vw, 1.5rem);
  color: var(--text);
  word-break: break-all;
  min-height: 2.6em;
  transition: color 400ms ease, opacity 200ms ease, filter 200ms ease;
}
.history__file.is-approved { color: var(--accent); }
.history__track { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.history__fill {
  display: block; height: 100%; width: 100%;
  background: var(--text);
  transform: scaleX(0.2); transform-origin: 0 50%;
  transition: transform 600ms var(--ease-out), background-color 400ms ease;
}
.history__fill.is-approved { background: var(--accent); }

.history__steps { display: grid; }
.step {
  min-height: clamp(18rem, 55vh, 30rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 0.9rem;
  transition: opacity 500ms ease;
}
.js .step { opacity: 0.32; }
.js .step.is-active { opacity: 1; }
.step__file { font-family: var(--mono); font-size: var(--fs-mono); color: var(--text-dim); }
.step--final .step__file { color: var(--accent); }
.step h3 { font-family: var(--display); font-size: clamp(1.75rem, 1.3rem + 1.8vw, 3rem); line-height: 1; letter-spacing: -0.02em; }
.step p:last-child { color: var(--text-dim); max-width: 44ch; font-size: var(--fs-lead); line-height: 1.45; }

/* ---------- Fit ---------- */
.fit { padding-block: var(--space-section); }
.fit__title { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.fit__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem; align-items: stretch; }
.fit__card {
  padding: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 3rem;
  min-height: clamp(16rem, 24vw, 22rem);
}
.fit__card--main { background: var(--surface-2); }
.fit__genre {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(2.75rem, 1.8rem + 3.6vw, 5.5rem);
  line-height: 0.9; letter-spacing: -0.035em;
}
.fit__card p { color: var(--text-dim); font-size: var(--fs-lead); line-height: 1.45; max-width: 36ch; }
.fit__no {
  margin-top: 1rem;
  padding: 1.25rem clamp(1.25rem, 1rem + 1vw, 2rem);
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-dim);
  font-size: var(--fs-small);
}

/* ---------- About ---------- */
.about { padding-block: var(--space-section); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 1rem + 5vw, 7rem);
  align-items: center;
}
.about__photos { position: relative; padding-bottom: 18%; padding-right: 14%; }
.about__main, .about__small { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.about__main { aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--line); }
.about__small {
  position: absolute; right: 0; bottom: 0; width: 46%;
  aspect-ratio: 3 / 4;
  box-shadow: 0 0 0 6px var(--bg), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.about__main picture, .about__small picture, .about__main img, .about__small img { width: 100%; height: 100%; }
.about__main img, .about__small img { object-fit: cover; }
.about__copy { display: grid; gap: 1.4rem; max-width: 52ch; }
.about__title {
  font-family: var(--display);
  font-size: var(--fs-mega);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
}
.about__copy p:not(.lead) { color: var(--text-dim); }

/* ---------- Reviews ---------- */
.reviews { padding-block: var(--space-section); }
.reviews__src { margin-top: 1rem; }
.marquee {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: clamp(2rem, 1.5rem + 2vw, 3.5rem) auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex; width: max-content;
  padding-block: 0.5rem;
  will-change: transform; backface-visibility: hidden;
  animation: marquee 90s linear infinite;
}
/* margin, not gap: with gap the duplicated half is off by gap/2 and the loop jumps */
.marquee__track > li { margin-right: 1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.quote {
  width: clamp(17rem, 22vw, 23rem); flex: none;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
}
.quote p:first-child { font-size: 1.0625rem; line-height: 1.5; }
.quote__by { font-weight: 600; font-size: var(--fs-small); display: flex; justify-content: space-between; gap: 1rem; }
.quote__by span { font-weight: 400; color: var(--text-dim); font-family: var(--mono); font-size: 0.75rem; }

.chats { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.chats__title { font-family: var(--display); font-size: var(--fs-h3); letter-spacing: -0.015em; margin-bottom: 1.5rem; }
.chats__grid { columns: 3 16rem; column-gap: 1rem; }
.chat {
  display: block; width: 100%;
  margin-bottom: 1rem; break-inside: avoid;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease;
  cursor: zoom-in;
}
.chat img { width: 100%; }
.chat:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .chat:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -24px rgba(0, 0, 0, 0.9); }
}

/* ---------- Studio (zoom) ---------- */
.studio { padding-block: var(--space-section) 0; }
.studio__pin {
  position: relative;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: min(88vh, 860px);
}
.studio__frame {
  position: relative; height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.studio__frame picture, .studio__frame img { width: 100%; height: 100%; }
.studio__frame img { object-fit: cover; object-position: 50% 68%; }
.studio__frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 12, 0) 40%, rgba(8, 6, 12, 0.9) 100%);
}
.studio__copy {
  position: absolute;
  left: calc(var(--gutter) + clamp(1.25rem, 1rem + 2vw, 3rem));
  right: calc(var(--gutter) + 1.25rem);
  bottom: clamp(1.5rem, 1rem + 2vw, 3rem);
  display: grid; gap: 0.75rem; max-width: 34rem;
  z-index: 1;
}
.studio__copy p { color: rgba(245, 243, 239, 0.85); font-size: var(--fs-lead); line-height: 1.4; }
.studio__strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
  margin-top: 1rem;
}
.studio__strip picture { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 11; background: var(--surface); }
.studio__strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services ---------- */
.services { padding-block: var(--space-section); }
.services__list { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.services__list li {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 1rem 2rem;
  align-items: baseline;
  padding-block: clamp(1.25rem, 1rem + 1vw, 2rem);
  border-top: 1px solid var(--line);
}
.services__list li:last-child { border-bottom: 1px solid var(--line); }
.services__list h3 {
  font-family: var(--display);
  font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1; letter-spacing: -0.02em;
}
.services__list p { color: var(--text-dim); max-width: 40ch; }
.services__note { margin-top: 2rem; color: var(--text); font-size: var(--fs-lead); max-width: 46ch; }

/* ---------- Final CTA ---------- */
.final { padding-block: 0 var(--space-section); }
.final__curtain { position: relative; }
/* Gotcha: the scrubbed curtain clips only this ::before, never the text. */
.final__curtain::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 162, 39, 0.1), transparent 60%),
    var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  clip-path: inset(var(--curtain-y, 0%) var(--curtain-x, 0%) round var(--r-lg));
}
.final__inner {
  position: relative; z-index: 1;
  padding: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(1.25rem, 1rem + 3vw, 4rem);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.4rem;
}
.final__file {
  font-family: var(--mono); font-size: var(--fs-mono); color: var(--text);
  padding: 0.5rem 1rem; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stamp {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.35em 0.8em 0.3em;
  border: 3px solid currentColor;
  border-radius: 10px;
  transform: rotate(-6deg);
}
.js .stamp { opacity: 0; transform: rotate(-6deg) scale(1.5); }
.js .stamp.is-stamped {
  opacity: 1; transform: rotate(-6deg) scale(1);
  transition: transform 420ms cubic-bezier(0.34, 1.3, 0.64, 1), opacity 160ms ease;
}
.final__title {
  font-family: var(--display);
  font-size: var(--fs-h2);
  line-height: 0.98; letter-spacing: -0.025em;
  max-width: 16ch; text-wrap: balance;
}
.final__sub { color: var(--text-dim); font-size: var(--fs-lead); line-height: 1.45; max-width: 40ch; margin-bottom: 0.5rem; }
.final__guarantee {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: var(--fs-mono); color: var(--text-dim);
}
.final__guarantee svg { flex: none; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding-block: 3rem calc(3rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__grid {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem 2.5rem; align-items: center;
}
.footer__logo { width: auto; height: 26px; }
.footer__line { color: var(--text-dim); font-size: var(--fs-small); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; font-size: var(--fs-small); color: var(--text-dim); }
.footer__legal a, .footer__legal button { text-decoration: none; color: inherit; min-height: 32px; display: inline-flex; align-items: center; transition: color var(--dur) ease; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--text); }
.footer__copy { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--text-faint); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(8, 6, 12, 0), rgba(8, 6, 12, 0.92) 35%);
  transform: translateY(110%);
  transition: transform 420ms var(--ease-out);
  display: none;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.is-visible { transform: none; }
@media (max-width: 820px) { .sticky-cta { display: block; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  padding: 4rem var(--gutter);
  background: rgba(8, 6, 12, 0.92);
  opacity: 0; visibility: hidden;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 240ms ease; }
.lightbox__stage { max-width: min(900px, 100%); max-height: 100%; }
.lightbox__stage img {
  max-height: calc(100vh - 8rem); width: auto; margin-inline: auto;
  border-radius: var(--r-sm);
  transform: scale(0.96); transition: transform 300ms var(--ease-out);
}
.lightbox.is-open .lightbox__stage img { transform: none; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.75rem; line-height: 1;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50;
  max-width: 560px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.9rem 1rem; align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -20px rgba(0, 0, 0, 0.9);
  font-size: var(--fs-small); color: var(--text-dim);
  opacity: 0; transform: translateY(12px);
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner__icon { width: 44px; height: 44px; }
.cookie-banner__body { fill: var(--surface-3); stroke: var(--accent); stroke-width: 1.4; }
.cookie-banner__chip { fill: var(--accent); animation: chip 2.4s ease-in-out infinite; }
.cookie-banner__chip:nth-of-type(2) { animation-delay: -0.8s; }
.cookie-banner__chip:nth-of-type(3) { animation-delay: -1.6s; }
.cookie-banner__crumb { fill: var(--text-dim); animation: crumb 3s ease-in-out infinite; }
@keyframes chip { 50% { opacity: 0.45; } }
@keyframes crumb { 50% { transform: translateY(-2px); } }
.cookie-banner__text a { color: var(--text); text-underline-offset: 3px; }
.cookie-banner__text--short { display: none; }
.cookie-banner__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 0.6rem; }
@media (max-width: 860px) { .cookie-banner { bottom: calc(1rem + 68px); } }
@media (max-width: 560px) {
  .cookie-banner { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0.75rem 0.85rem; gap: 0.6rem; }
  .cookie-banner__icon { width: 32px; height: 32px; }
  .cookie-banner__text--full { display: none; }
  .cookie-banner__text--short { display: inline; }
  .cookie-banner__actions { grid-column: auto; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr); }
}

@media (max-width: 820px) {
  :root { --topbar-h: 60px; }
  .topbar__brand img { height: 34px; }
  .hero { padding-top: calc(var(--topbar-h) + 1.75rem); }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .hero__title { max-width: 9.2em; }
  .hero__media { justify-self: center; max-width: 360px; }

  .creds__row { grid-template-columns: minmax(0, 1fr); }
  .creds__item, .creds__item + .creds__item { padding: 1.25rem 0; border-left: 0; }

  .folder__grid, .listen__grid, .history__grid, .about__grid { grid-template-columns: minmax(0, 1fr); }
  .folder__title { position: static; }
  .folder__copy { grid-column: auto; }
  .player { position: static; }

  .history__rail { top: var(--topbar-h); z-index: 2; gap: 1.25rem; padding-top: 0.5rem; background: var(--bg); }
  .history__now { padding: 1rem 1.1rem; }
  .history__file { min-height: 0; font-size: 0.9375rem; }
  .history__steps { position: relative; z-index: 1; }
  .step { min-height: 0; padding-block: 2rem; }

  .fit__grid { grid-template-columns: minmax(0, 1fr); }
  .fit__card { min-height: 0; gap: 1.5rem; }

  .about__photos { max-width: 480px; }
  .about__copy { order: -1; }

  .studio__pin { height: 72vh; }

  .services__list li { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
  .credits { grid-template-columns: minmax(0, 1fr); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .chats__grid { columns: 2; column-gap: 0.75rem; }
  .chat { margin-bottom: 0.75rem; }
  .folder__list li { padding: 0.95rem 1rem; gap: 0.75rem; }
  .folder__list li::before { width: 18px; height: 22px; }
  .folder__strike { left: 3rem; right: 1rem; }
}

@media (max-width: 820px) and (max-height: 740px) {
  .hero__media { max-width: 280px; }
}

/* ==========================================================================
   Reduced motion: everything visible, no loops, no pins
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .js [data-split].is-split .word > span { transform: none; transition: none; }
  .js .step { opacity: 1; }
  .js .stamp { opacity: 1; transform: rotate(-6deg); }
  .folder__list li .folder__strike { transition: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scroll-snap-type: x mandatory; }
  .marquee__track { animation: none; padding-inline: var(--gutter); }
  .quote { scroll-snap-align: start; }
  .filebar__name::after { animation: none; }
  .filebar__meter i { animation: none; transform: scaleY(0.6); }
  .topbar { transition: none; }
}
