/* ChopAIN — chopain.art
   A Romantic-era salon: ivory paper, sepia ink, claret and antique gold; Didone headings (Playfair Display), the
   same typography-first layout and sound-wave motion (see ../js/site.js), the waves drawn like ink on paper. */

:root {
  --bg: #f4ecdf;          /* ivory paper */
  --bg-card: #fbf6ec;     /* a lighter sheet */
  --bg-card-2: #efe4d1;   /* parchment */
  --line: rgba(74, 52, 36, .14);
  --ink: 42, 33, 28;      /* sepia ink, for rgba() */
  --fg: #2a211c;
  --fg-2: #6b5a4c;
  --fg-3: #9c8a79;
  --c1: #3f5370;          /* Prussian-blue ink */
  --c2: #7b2d3b;          /* claret */
  --c3: #a35a3c;          /* rosewood */
  --c4: #b48a4f;          /* antique gold */
  --grad: linear-gradient(90deg, var(--c2), var(--c3) 50%, var(--c4));
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --radius: 28px;
  --ease: cubic-bezier(.16, .84, .24, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nav-h: 52px;
}
/* Playfair Display has no Kazakh letters, Arabic, Hebrew or Devanagari: these languages get a classical face of their own
   (loaded in base.html); scripts with no italic tradition stay upright and unspaced */
:root:lang(kk) { --serif: "Old Standard TT", Georgia, serif; }
:root:lang(ar) { --serif: "Amiri", "Noto Naskh Arabic", serif; }
:root:lang(fa) { --serif: "Noto Naskh Arabic", serif; }
:root:lang(he) { --serif: "Frank Ruhl Libre", serif; }
:root:lang(hi) { --serif: "Noto Serif Devanagari", serif; }
:root:is(:lang(ar), :lang(fa), :lang(he), :lang(hi)) :is(h1, h2, h3, .statement__big, .viz--lyric p) { letter-spacing: 0; }
:root:is(:lang(ar), :lang(fa), :lang(he), :lang(hi)) :is(.hero__title span, .viz--lyric p) { font-style: normal; }
:root:is(:lang(ar), :lang(fa), :lang(hi)) :is(.hero__title, .section-title, .statement__big) { line-height: 1.3; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
body::before {  /* the grain of paper over everything: a faint noise tile */
  content: ""; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .16 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(180, 138, 79, .35); color: var(--fg); }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 22px; }
@media (max-width: 480px) { .container { padding: 0 16px; } }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--fg); color: var(--bg); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; border-radius: 8px; }

.gradient-text {
  background: linear-gradient(90deg, var(--c2), var(--c3), var(--c4), #c9a467, var(--c4), var(--c3), var(--c2));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
  /* the text is painted only inside the box: room for italic overhangs, descenders and stacked accents, given back by
     the margins so the layout does not move */
  padding: .12em .14em .2em;
  margin: -.12em -.14em -.2em;
}
@keyframes shimmer { to { background-position: 200% 0; } }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section { padding: clamp(96px, 13vw, 176px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-title { font-size: clamp(38px, 6vw, 76px); font-weight: 600; line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.section-lead { margin-top: 18px; font-size: clamp(18px, 2vw, 22px); line-height: 1.4; color: var(--fg-2); text-wrap: balance; }

/* ───────────── buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  border: 0; border-radius: 999px;
  background: var(--fg); color: var(--bg);
  font-size: 17px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: scale(1.035); box-shadow: 0 12px 34px -10px rgba(123, 45, 59, .45); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn--ghost { background: rgba(var(--ink), .03); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(var(--ink), .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn--ghost:hover { background: rgba(var(--ink), .07); box-shadow: inset 0 0 0 1px rgba(var(--ink), .45), 0 12px 34px -12px rgba(180, 138, 79, .5); }
.btn--ghost:hover svg { transform: none; }
.btn--ghost .icon-stop, .btn--ghost[aria-pressed="true"] .icon-play { display: none; }
.btn--ghost[aria-pressed="true"] .icon-stop { display: block; }
.btn--small { padding: 7px 15px; font-size: 13px; font-weight: 500; }
.btn--small:hover { box-shadow: none; }
.btn--large { padding: 20px 40px; font-size: 19px; }

/* ───────────── navigation ───────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(244, 236, 223, .82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.nav__inner { max-width: 1160px; height: 100%; margin: 0 auto; padding: 0 22px; display: flex; align-items: center; gap: 28px; }
/* the logo is defined once (logo-sprite.svg.html) and drawn with <use>; mark is 437×596, wordmark 772×206 */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); }
.brand__mark { flex: none; width: 23px; height: 31px; fill: currentColor; }
.brand__word { flex: none; width: 79px; height: 21px; fill: currentColor; }
.nav__links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 13px; color: var(--fg-2); }
.nav__links a { transition: color .25s; }
.nav__links a:hover { color: var(--fg); }
.nav__right { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(var(--ink), .06); font-size: 12px; font-weight: 600; }
.lang__item { padding: 4px 9px; border-radius: 999px; color: var(--fg-2); transition: color .25s, background .25s; }
.lang__item:hover { color: var(--fg); }
.lang__item.is-active { background: rgba(var(--ink), .1); color: var(--fg); }
/* the header's language menu: the current code, the twelve languages under it */
.langmenu { position: relative; font-size: 12px; font-weight: 600; }
.langmenu__btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(var(--ink), .06); color: var(--fg); cursor: pointer; list-style: none; user-select: none; transition: background .25s; }
.langmenu__btn::-webkit-details-marker { display: none; }
.langmenu__btn::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; transition: transform .25s; }
.langmenu[open] .langmenu__btn::after { transform: translateY(1px) rotate(-135deg); }
.langmenu__btn:hover, .langmenu[open] .langmenu__btn { background: rgba(var(--ink), .11); }
.langmenu__list { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; min-width: 260px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: rgba(251, 246, 236, .97); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 18px 48px rgba(60, 40, 25, .18); }
.langmenu__item { padding: 8px 10px; border-radius: 9px; color: var(--fg-2); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .2s, background .2s; }
.langmenu__item:hover { color: var(--fg); background: rgba(var(--ink), .06); }
.langmenu__item.is-active { color: var(--fg); background: rgba(var(--ink), .1); }
@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav__right { margin-inline-start: auto; }
}
@media (max-width: 420px) { .nav .btn--small { display: none; } }

/* ───────────── hero ───────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 24px) 0 170px;
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::after {  /* vignette keeps the text readable over the waves */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 52% 30% at 50% 40%, rgba(244, 236, 223, .82), rgba(244, 236, 223, .2) 70%, transparent),
    linear-gradient(to bottom, rgba(244, 236, 223, .7), transparent 16%, transparent 84%, var(--bg));
}
.hero__content { text-align: center; position: relative; }
/* the logo mark draws its own outline, then fills in; while the demo plays it breathes with the sound (--lvl) */
.hero__logo { --lvl: 0; position: relative; width: fit-content; margin: 0 auto 18px; transform: scale(calc(1 + var(--lvl) * .16)); transition: transform .1s linear; }
.hero__logo::before {
  content: ""; position: absolute; inset: -90% -150%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(180, 138, 79, .28), rgba(123, 45, 59, .06) 50%, transparent);
  opacity: 0; animation: logo-glow 2.2s var(--ease) 1.2s forwards;
}
.hero__mark {
  --h: clamp(50px, 6vw, 72px);
  display: block; height: var(--h); width: calc(var(--h) * .733); overflow: visible;
  fill: var(--fg); fill-opacity: 0;
  stroke: url(#brand-g); stroke-width: 6; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: mark-draw 2s cubic-bezier(.65, 0, .35, 1) .2s forwards, mark-fill 1.1s var(--ease) 1.7s forwards;
}
@keyframes mark-draw { to { stroke-dashoffset: 0; } }
@keyframes mark-fill { to { fill-opacity: 1; } }
@keyframes logo-glow { to { opacity: calc(.7 + var(--lvl) * 1.6); } }
.hero__title { font-size: clamp(46px, 8.6vw, 116px); font-weight: 600; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
.hero__title span:last-child { font-style: italic; }
.hero__title span { display: block; }
.hero__lead { max-width: 680px; margin: 28px auto 0; font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: var(--fg-2); text-wrap: balance; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__hint { margin-top: 22px; font-size: 14px; color: var(--fg-3); opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero__hint.is-shown { opacity: 1; transform: none; }
.hero__notes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.note-pop {
  position: absolute;
  padding: 6px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--fg); background: rgba(251, 246, 236, .88);
  box-shadow: inset 0 0 0 1px rgba(var(--ink), .16), 0 8px 24px -12px rgba(60, 40, 25, .35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: note-pop 2.6s var(--ease) forwards;
}
.note-pop::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: var(--dot, var(--c1)); box-shadow: 0 0 12px var(--dot, var(--c1)); vertical-align: 1px; }
@keyframes note-pop {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); }
  15% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -90px) scale(.96); }
}
.scroll-cue { position: absolute; left: 50%; bottom: 30px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px rgba(var(--ink), .35); }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--fg); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ───────────── reveal on scroll ───────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ───────────── how it works (sticky scrollytelling) ───────────── */
.how { position: relative; height: 320vh; }
.how__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 26px; }
.step { display: flex; gap: 18px; opacity: .3; transition: opacity .6s var(--ease), transform .6s var(--ease); transform: translateX(-6px); }
.step.is-active { opacity: 1; transform: none; }
.step__num { font-size: 14px; font-weight: 700; padding-top: 5px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 6px; color: var(--fg-2); }
.how__stage {
  position: relative;
  aspect-ratio: 7 / 5;
  border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 0%, #fdf9f1, #ece0cb 75%);
  box-shadow: inset 0 0 0 1px var(--line), 0 40px 100px -50px rgba(80, 55, 35, .45);
  overflow: hidden;
}
.how__stage canvas { width: 100%; height: 100%; }
.how__file {
  position: absolute; right: 22px; bottom: 22px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 16px;
  background: rgba(251, 246, 236, .9); box-shadow: inset 0 0 0 1px rgba(var(--ink), .14), 0 10px 30px -14px rgba(60, 40, 25, .4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 14px; font-weight: 600;
  opacity: 0; transform: translateY(12px) scale(.96);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.how__file svg { width: 22px; height: 22px; color: var(--c2); }
.how__file.is-shown { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .how { height: 300vh; }
  .how__grid { grid-template-columns: 1fr; gap: 26px; }
  .how__text .section-title { font-size: clamp(34px, 9vw, 52px); }
  .steps { margin-top: 20px; gap: 12px; }
  .step { display: none; }
  .step.is-active { display: flex; }
  .how__stage { aspect-ratio: 4 / 3; }
}

/* ───────────── features (bento) ───────────── */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  min-height: 380px; padding: 34px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -48px rgba(80, 55, 35, .45);
  isolation: isolate;
}
.card--wide { grid-column: span 2; }
.card::before {  /* glow that follows the pointer (--mx/--my set in JS) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(180, 138, 79, .16), transparent 45%);
  transition: opacity .5s var(--ease);
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: clamp(25px, 2.7vw, 34px); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; }
.card p { margin-top: 10px; color: var(--fg-2); max-width: 460px; text-wrap: pretty; }
.card__tag { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 15px; font-weight: 600; color: var(--c2) !important; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bg-card); background: var(--grad); }
.card--ai { background: radial-gradient(140% 120% at 100% 100%, rgba(180, 138, 79, .22), transparent 55%), radial-gradient(120% 100% at 0% 100%, rgba(123, 45, 59, .08), transparent 50%), var(--bg-card); }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card { min-height: 320px; padding: 28px; }
}

.viz { position: relative; height: 150px; }
/* audio → MIDI: waveform, playhead and notes appearing behind it */
.viz--roll { height: 170px; border-radius: 18px; background: repeating-linear-gradient(to bottom, transparent 0 20px, rgba(var(--ink), .08) 20px 21px); overflow: hidden; }
.roll-wave { position: absolute; inset: 0; display: flex; align-items: center; gap: 3px; padding: 0 8px; opacity: .55; }
.roll-wave span { flex: 1; min-width: 2px; border-radius: 2px; background: linear-gradient(var(--c1), var(--c2)); height: var(--h); }
.roll-notes i {
  position: absolute; left: var(--x); top: var(--y); width: var(--w); height: 14px;
  border-radius: 5px; background: var(--grad); background-size: 400% 100%; background-position: var(--x) 0;
  box-shadow: 0 4px 14px -4px rgba(123, 45, 59, .45);
  opacity: 0; transform: scaleX(.2); transform-origin: left;
  animation: roll-note 5s var(--ease) infinite; animation-delay: var(--t);
}
@keyframes roll-note { 0% { opacity: 0; transform: scaleX(.2); } 8% { opacity: 1; transform: none; } 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }
.viz--roll::after {  /* playhead */
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px;
  background: var(--c2); box-shadow: 0 0 10px 1px rgba(123, 45, 59, .35);
  animation: playhead 5s linear infinite;
}
@keyframes playhead { from { left: 0; } 80% { left: 100%; opacity: 1; } 81%, 100% { left: 100%; opacity: 0; } }

/* melody fragment: equalizer + ripples */
.viz--eq { display: flex; align-items: center; justify-content: center; gap: 5px; }
.viz--eq::before, .viz--eq::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(180, 138, 79, .6);
  animation: ripple 3s var(--ease) infinite;
}
.viz--eq::after { animation-delay: 1.5s; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.viz--eq span {
  width: 5px; height: 90px; border-radius: 3px;
  background: linear-gradient(var(--c1), var(--c3));
  transform-origin: center; transform: scaleY(.15);
  animation: eq 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -.137s);
}
.viz--eq span:nth-child(3n) { animation-duration: .8s; }
.viz--eq span:nth-child(4n + 1) { animation-duration: 1.4s; }
@keyframes eq { to { transform: scaleY(1); } }

/* title search: typing */
.viz--search { display: flex; align-items: center; }
.search {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 18px 20px; border-radius: 18px;
  background: rgba(251, 246, 236, .7); box-shadow: inset 0 0 0 1px rgba(var(--ink), .14);
  font-size: 18px; font-weight: 500;
}
.search svg { width: 22px; height: 22px; color: var(--fg-3); flex: none; }
.typing { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-inline-start: 2px; vertical-align: -3px; background: var(--c2); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

/* line from a song: highlighted words */
.viz--lyric { display: flex; align-items: center; height: auto; min-height: 120px; }
.viz--lyric p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--fg-3); max-width: none; margin: 0; }
.viz--lyric mark {
  color: var(--fg);
  background: linear-gradient(90deg, rgba(180, 138, 79, .38), rgba(163, 90, 60, .26)) no-repeat 0 88% / 0% 38%;
  animation: highlight 4.5s var(--ease) infinite;
}
@keyframes highlight { 0%, 10% { background-size: 0% 38%; } 45%, 85% { background-size: 100% 38%; } 100% { background-size: 100% 38%; opacity: 1; } }

/* ───────────── statement (words light up on scroll) ───────────── */
.statement { padding: 40px 0 0; }
.statement + .audience { padding-top: clamp(96px, 11vw, 150px); }
.statement__big { font-family: var(--serif); font-size: clamp(30px, 4.4vw, 58px); font-weight: 600; line-height: 1.16; letter-spacing: -.012em; max-width: 1000px; }
.statement__big .muted { color: inherit; }
.statement__big .w { transition: color .35s linear; color: #d9cbb6; }
.statement__big .w.is-lit { color: var(--fg); }

/* ───────────── audience ───────────── */
.audience__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 32px; }
.audience__item svg { width: 34px; height: 34px; color: var(--c3); margin-bottom: 22px; }
.audience__item:nth-child(2) svg { color: var(--c2); }
.audience__item:nth-child(3) svg { color: var(--c1); }
.audience__item:nth-child(4) svg { color: var(--c4); }
.audience__item h3 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
.audience__item p { margin-top: 10px; color: var(--fg-2); font-size: 16px; }
@media (max-width: 1000px) { .audience__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audience__grid { grid-template-columns: 1fr; gap: 36px; } }

/* ───────────── team (light section) ───────────── */
/* about page (linked from the footer): the team as a quiet list — names and roles */
.about { padding-top: calc(var(--nav-h) + clamp(64px, 9vw, 120px)); }
.about__block { max-width: 760px; margin-top: clamp(48px, 6vw, 72px); }
.about__block h3 { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 18px; }
.about__block p { color: var(--fg-2); font-size: 18px; margin-bottom: 26px; }
.about__team { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.about__team li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about__team strong { font-weight: 600; letter-spacing: -.015em; }
.about__team span { color: var(--fg-2); }

/* ───────────── final call to action ───────────── */
.cta { position: relative; padding: clamp(120px, 15vw, 200px) 0 clamp(200px, 20vw, 280px); text-align: center; overflow: hidden; }
.cta__wave { position: absolute; left: 0; right: 0; bottom: 10px; width: 100%; height: 200px; opacity: .8; filter: drop-shadow(0 2px 6px rgba(123, 45, 59, .25)); }
.cta__inner { position: relative; }
.cta__inner > :not(.cta__logo) { position: relative; z-index: 1; }
.cta .section-lead { margin: 18px auto 44px; }
/* full logo lockup (mark over wordmark, exactly as in the original); sound rings spread from the mark, a click plays a chord */
.cta__logo {
  --h: clamp(190px, 21vw, 270px); --r: calc(var(--h) * 1.15);
  position: relative; z-index: 0; display: block; margin: 0 auto clamp(56px, 7vw, 84px); padding: 0;
  border: 0; background: none; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.cta__logo::before {
  content: ""; position: absolute; left: 45%; top: 36%; width: calc(var(--h) * 1.6); height: calc(var(--h) * 1.6);
  transform: translate(-50%, -50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(180, 138, 79, .26), rgba(123, 45, 59, .07) 60%, transparent);
}
.cta__logo:focus-visible { outline: 2px solid var(--c2); outline-offset: 12px; border-radius: 24px; }
.lockup { display: block; height: var(--h); width: calc(var(--h) * .945); overflow: visible; transition: transform .5s var(--ease); }
.lockup__mark { fill: url(#brand-g-live); }
.lockup__word { fill: var(--fg); }
.cta__logo:hover .lockup { transform: scale(1.025); }
.cta__logo.is-hit .lockup { animation: lockup-hit .5s var(--ease); }
@keyframes lockup-hit { 30% { transform: scale(1.06); } }
.cta__rings { position: absolute; left: 45.4%; top: 36.5%; z-index: -1; pointer-events: none; }
.cta__rings i {
  position: absolute; left: calc(var(--r) / -2); top: calc(var(--r) / -2); width: var(--r); height: var(--r);
  border-radius: 50%; border: 1.5px solid rgba(123, 45, 59, .55); opacity: 0;
  animation: ring 6.4s cubic-bezier(.2, .6, .3, 1) infinite paused;
}
.cta__rings i:nth-child(2) { animation-delay: 1.6s; border-color: rgba(180, 138, 79, .65); }
.cta__rings i:nth-child(3) { animation-delay: 3.2s; border-color: rgba(163, 90, 60, .5); }
.cta__rings i:nth-child(4) { animation-delay: 4.8s; border-color: rgba(63, 83, 112, .45); }
.cta__inner.is-visible .cta__rings i { animation-play-state: running; }
.cta__rings i.is-burst { animation: ring 2.2s cubic-bezier(.1, .7, .3, 1) 1 running; border-width: 2px; }
@keyframes ring { 0% { transform: scale(.5); opacity: 0; } 10% { opacity: .75; } 100% { transform: scale(2.4); opacity: 0; } }

/* ───────────── footer ───────────── */
.footer { border-top: 1px solid var(--line); padding: 44px 0 36px; font-size: 14px; color: var(--fg-3); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand .brand__mark { width: 27px; height: 37px; fill: var(--fg); }
.footer__brand .brand__word { display: block; width: 72px; height: 19px; margin-bottom: 4px; fill: var(--fg); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a:hover { color: var(--fg); }
.lang--footer { flex-wrap: wrap; gap: 2px; max-width: 520px; padding: 0; background: none; font-size: 13px; font-weight: 500; }
.footer__copy { margin-top: 28px; font-size: 12px; }

/* ───────────── reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .roll-notes i { opacity: 1; transform: none; }
}
