/* Ritual Studio landing. Brand source: docs/brand/BRAND-SYSTEM.md (Brandbook Ed. 01). */

/* ---------- Tokens: two modes, never mixed ---------- */
:root,
:root[data-mode="club"] {
  --bg: #0A0A0A;
  --bg-2: #131211;
  --fg: #FFFFFF;
  --head: #FFFFFF;
  --muted: #A8A29B;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.9);
  --accent: #E8332A;
  --accent-ink: #0A0A0A;
  --accent-text: #FF5A50;
  --logo-filter: none;
  --video-filter: saturate(1.05) contrast(1.05);
  --shade: linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.15) 40%, rgba(10,10,10,0.85) 100%);
  color-scheme: dark;
}
:root[data-mode="editorial"] {
  --bg: #F3EFE9;
  --bg-2: #EAE3D8;
  --fg: #1A1613;
  --head: #5A1F1F;
  --muted: #6B5F57;
  --line: rgba(26, 22, 19, 0.18);
  --line-strong: rgba(26, 22, 19, 0.9);
  --accent: #5A1F1F;
  --accent-ink: #F3EFE9;
  --accent-text: #7F6029;
  --logo-filter: invert(1);
  --video-filter: grayscale(1) sepia(0.35) contrast(1.05) brightness(1.15);
  --shade: linear-gradient(180deg, rgba(243,239,233,0.6) 0%, rgba(243,239,233,0.25) 40%, rgba(243,239,233,0.92) 100%);
  color-scheme: light;
}
:root[data-mode="editorial"] .pill--live,
:root[data-mode="editorial"] .chip__dot { --dot: #AE8A4E; }

:root {
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Zalando Sans", system-ui, sans-serif;
  --exp: "Zalando Sans Expanded", "Zalando Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(16px, 3vw, 40px);
  --beat: 0;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color 0.9s var(--ease), color 0.9s var(--ease);
}
body.is-loading { overflow: hidden; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Film grain over everything */
body::after {
  content: "";
  position: fixed; inset: -50%;
  z-index: 90; 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='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.07;
  will-change: transform;
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 8px 12px; font-weight: 600; transform: translateY(-200%);
}
.skip:focus { transform: none; }

.label, .sec__num, .sec__label, .sec__aside, .chip, .pill, .course__lvl, figcaption {
  font-family: var(--sans);
  font-size: 12px; line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 150;
  color: #fff;
  pointer-events: none;
}
.loader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #0A0A0A; z-index: -1; }
.loader__panel--a { top: 0; }
.loader__panel--b { bottom: 0; }
.loader__grid { position: absolute; top: var(--pad); left: var(--pad); right: var(--pad); display: flex; justify-content: space-between; }
.loader__tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #A8A29B; }
.loader__line { position: absolute; left: 0; right: 0; top: 50%; height: 1px; }
.loader__line span { display: block; height: 100%; width: 100%; background: #E8332A; transform-origin: left; transform: scaleX(0); }
.loader__count {
  position: absolute; left: var(--pad); bottom: calc(var(--pad) - 0.12em);
  font-family: var(--exp); font-weight: 800; line-height: 0.8;
  font-size: clamp(96px, 22vw, 320px); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.loader__count em { font-size: 0.3em; color: #E8332A; font-style: normal; font-family: var(--exp); }

/* ---------- Cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 120; pointer-events: none; mix-blend-mode: difference; opacity: 0; }
.cursor__h, .cursor__v { position: absolute; background: #fff; transition: transform 0.5s var(--ease); }
.cursor__h { width: 28px; height: 1px; left: -14px; top: 0; }
.cursor__v { width: 1px; height: 28px; left: 0; top: -14px; }
.cursor__label {
  position: absolute; left: 16px; top: 10px; white-space: nowrap;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  opacity: 0; transform: translateY(4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.cursor.is-hover .cursor__h { transform: scaleX(2.2); }
.cursor.is-hover .cursor__v { transform: scaleY(2.2) rotate(0deg); }
.cursor.is-hover .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (hover: hover) and (pointer: fine) { body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 16px var(--pad);
  mix-blend-mode: normal;
  transition: transform 0.7s var(--ease), background-color 0.7s var(--ease);
}
.nav.is-solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo img { height: 28px; width: auto; filter: var(--logo-filter); }
.nav__meta { display: flex; justify-content: center; gap: 32px; font-size: 12px; line-height: 16px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.nav__meta b { color: var(--accent-text); font-weight: 500; }
.nav__actions { display: flex; gap: 8px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  border: 1px solid var(--line-strong);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.chip:hover, .chip[aria-pressed="true"] { background: var(--fg); color: var(--bg); }
.chip__dot { width: 8px; height: 8px; background: var(--dot, #E8332A); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2px; height: 3px; background: currentColor; transition: height 0.15s; }
.js-sound[aria-pressed="true"] .eq i { animation: eq 0.48s var(--ease) infinite alternate; }
.js-sound[aria-pressed="true"] .eq i:nth-child(2) { animation-delay: -0.12s; }
.js-sound[aria-pressed="true"] .eq i:nth-child(3) { animation-delay: -0.3s; }
.js-sound[aria-pressed="true"] .eq i:nth-child(4) { animation-delay: -0.2s; }
@keyframes eq { from { height: 2px; } to { height: 12px; } }

.burger { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-strong); background: var(--accent); }
.burger span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--accent-ink); transition: transform 0.7s var(--ease); }
.burger span:first-child { top: 13px; }
.burger span:last-child { top: 20px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 95;
  background: var(--accent); color: var(--accent-ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 96px var(--pad) var(--pad);
  clip-path: inset(0 0 100% 0);
}
.menu[hidden] { display: none; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; border-top: 1px solid currentColor; }
.menu__list a {
  display: flex; align-items: baseline; gap: 24px; text-decoration: none;
  font-family: var(--exp); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 6.4vw, 96px); line-height: 1; letter-spacing: -0.02em;
  padding: 8px 0;
  transition: padding-left 0.7s var(--ease);
}
.menu__list a:hover { padding-left: 24px; }
.menu__list small { font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; font-weight: 500; }
.menu__foot { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 32px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.12em; }
.menu__foot a { text-decoration: none; }
.menu__foot a:hover { text-decoration: underline; }

.menu-open .nav { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .nav__logo img { filter: none; }
:root[data-mode="club"] .menu-open .nav__logo img { filter: invert(1); }
.menu-open .nav__meta { visibility: hidden; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 56px; padding: 0 24px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.08em;
  overflow: hidden; isolation: isolate;
  transition: transform 0.7s var(--ease), color 0.5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); transition: transform 0.7s var(--ease); }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn__arrow { display: inline-block; transition: transform 0.7s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { color: var(--bg); }
.btn--line { border: 1px solid var(--line-strong); }
.btn--line:hover { color: var(--bg); }
.btn--xl { height: 80px; padding: 0 40px; font-size: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: 96px var(--pad) var(--pad);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__video { width: 100%; height: 100%; object-fit: cover; filter: var(--video-filter); transform: scale(1.08); transition: filter 0.9s var(--ease); }
.hero__shade { position: absolute; inset: 0; background: var(--shade); transition: background 0.9s var(--ease); }
.hero__wave { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line-strong); padding-top: 12px; }
.hero__top .label:nth-child(2) { text-align: center; }
.hero__ed { text-align: right; color: var(--muted); }
.hero__title {
  align-self: center; margin: 0; position: relative;
  font-family: var(--exp); font-weight: 800; text-transform: uppercase;
  color: var(--head);
  font-size: clamp(64px, min(21.5vw, 40svh), 640px); line-height: 0.78; letter-spacing: -0.045em;
  user-select: none;
}
.hero__word { display: flex; justify-content: space-between; gap: 0.02em; overflow: hidden; padding-bottom: 0.04em; }
.ch { display: inline-block; will-change: transform; }
.ch--spike { position: relative; width: 0.18em; }
.ch--spike i {
  position: absolute; left: 50%; top: -0.12em; bottom: -0.12em; width: max(3px, 0.03em);
  background: var(--accent); transform: translateX(-50%) scaleY(calc(1 + var(--beat) * 0.18)); transform-origin: center;
}
.hero__studio {
  position: absolute; right: 0.04em; bottom: -0.42em;
  font-family: var(--exp); font-weight: 700; text-transform: lowercase; letter-spacing: 0;
  font-size: 0.13em; line-height: 1;
}
.hero__bottom { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: end; border-bottom: 1px solid var(--line-strong); padding-bottom: 16px; }
.hero__lede { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 60px); line-height: 1; color: var(--head); text-wrap: balance; }
.hero__lede em { color: var(--accent-text); }
.hero__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero__note { margin: 0; font-size: 14px; color: var(--muted); }
.hero__scroll { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.hero__scroll i { width: 1px; height: 48px; background: var(--fg); transform-origin: top; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--accent); color: var(--accent-ink); border-block: 1px solid var(--line-strong); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 32px; padding: 16px 0; will-change: transform; }
.marquee__track span { font-family: var(--exp); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }
.marquee__track b { font-size: clamp(18px, 2.4vw, 36px); font-weight: 400; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: 0 var(--pad) 96px; }
.sec__head {
  position: relative;
  display: grid; grid-template-columns: 160px 1fr 1.4fr; gap: 24px; align-items: start;
  padding: 13px 0 64px;
}
.sec__head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-strong); transform-origin: left; transform: scaleX(var(--ls, 1)); }
.sec__num { color: var(--accent-text); font-variant-numeric: tabular-nums; }
.sec__label { margin: 0; }
.sec__aside { text-align: right; color: var(--muted); text-transform: none; letter-spacing: 0.02em; font-size: 14px; line-height: 20px; }

/* Manifesto */
.manifesto { padding-top: 96px; }
.manifesto__big {
  margin: 0 0 80px; max-width: 18ch;
  font-family: var(--exp); font-weight: 800; text-transform: uppercase;
  font-size: clamp(36px, 6.2vw, 104px); line-height: 0.95; letter-spacing: -0.03em;
  color: var(--head);
}
.manifesto__big em { text-transform: none; font-size: 1.12em; letter-spacing: -0.01em; color: var(--accent-text); }
.manifesto__cols { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: 32px; align-items: end; border-top: 1px solid var(--line); padding-top: 24px; }
.manifesto__cols p { margin: 0; font-size: 18px; line-height: 28px; max-width: 38ch; text-wrap: pretty; }
.manifesto__fig { margin: 0; overflow: hidden; }
.manifesto__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
figcaption { margin-top: 8px; color: var(--muted); }
.w { color: color-mix(in srgb, var(--head) 22%, transparent); transition: color 0.6s var(--ease); }
.w.is-on { color: inherit; }
em .w.is-on, .w.is-on em { color: var(--accent-text); }

/* Path (horizontal) */
.path { padding-bottom: 0; }
.path__pin { overflow: hidden; margin-inline: calc(var(--pad) * -1); }
@media (min-width: 721px) and (min-height: 560px) { .path__pin { height: 100svh; display: flex; align-items: center; } .reduce .path__pin { height: auto; } }
@media (max-width: 720px), (max-height: 559px) {
  .path__pin { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none; }
  .path__pin::-webkit-scrollbar { display: none; }
  .step { scroll-snap-align: start; }
}
.path__track { display: flex; width: max-content; padding-inline: var(--pad); }
.step {
  position: relative; flex: 0 0 auto;
  width: min(78vw, 720px); height: min(78svh, 680px);
  border-left: 1px solid var(--line-strong);
  display: grid; grid-template-rows: auto 1fr; padding: 0 32px 32px;
  overflow: hidden;
}
.step:last-of-type { border-right: 1px solid var(--line-strong); }
.step__n {
  font-family: var(--exp); font-weight: 800; color: transparent;
  -webkit-text-stroke: 1px var(--fg);
  font-size: clamp(96px, 13vw, 200px); line-height: 0.8; letter-spacing: -0.05em;
  padding-top: 32px; transition: color 0.7s var(--ease), -webkit-text-stroke-color 0.7s var(--ease);
}
.step:hover .step__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step__body { align-self: end; position: relative; z-index: 2; max-width: 30ch; }
.step__body h3 { margin: 16px 0 8px; font-family: var(--exp); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -0.02em; color: var(--head); }
.step__body p { margin: 0; font-size: 18px; line-height: 28px; color: var(--fg); }
.step__img {
  position: absolute; right: 32px; top: 32px; width: 42%; aspect-ratio: 3 / 4; object-fit: cover;
  filter: grayscale(1) contrast(1.1); transition: filter 0.9s var(--ease), transform 0.9s var(--ease);
}
.step:hover .step__img { filter: none; transform: scale(1.03); }
.step--end { display: flex; align-items: center; width: min(78vw, 640px); border-left: 1px solid var(--line-strong); padding: 32px; }
.step--end p { margin: 0; font-family: var(--serif); font-size: clamp(36px, 4.4vw, 72px); line-height: 1; color: var(--head); text-wrap: balance; }
.step--end em { color: var(--accent-text); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border: 1px solid var(--line-strong); }
.pill--live { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill--live::before { content: ""; width: 6px; height: 6px; background: currentColor; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Courses */
.courses { padding-top: 96px; }
.courses__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.course a {
  position: relative; display: grid; grid-template-columns: 160px 1fr 48px; column-gap: 24px; row-gap: 8px; align-items: center;
  padding: 24px 0; border-top: 1px solid var(--line-strong); text-decoration: none; isolation: isolate;
}
.course a::before { content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); z-index: -1; background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform 0.7s var(--ease); }
.course a:hover::before, .course a:focus-visible::before { transform: none; transform-origin: top; }
.course a:hover, .course a:focus-visible { color: var(--accent-ink); }
.course a:hover .course__name, .course a:hover em { color: var(--accent-ink); }
.course__lvl { color: var(--muted); }
.course a:hover .course__lvl { color: var(--accent-ink); }
.course__name { font-family: var(--exp); font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 8vw, 136px); line-height: 0.9; letter-spacing: -0.04em; color: var(--head); transition: transform 0.7s var(--ease), color 0.5s; }
.course a:hover .course__name { transform: translateX(16px); }
.course__name { grid-column: 2; grid-row: 1; }
.course__lvl { grid-column: 1; grid-row: 1 / 3; }
.course__desc { grid-column: 2; grid-row: 2; font-size: 18px; line-height: 28px; }
.course__go { grid-column: 3; grid-row: 1 / 3; }
.course__desc em { font-size: 24px; color: var(--accent-text); }
.course__go { font-size: 36px; justify-self: end; transition: transform 0.7s var(--ease); }
.course a:hover .course__go { transform: rotate(45deg); }
.courses__float { position: fixed; top: 0; left: 0; z-index: 60; width: 260px; aspect-ratio: 3 / 4; pointer-events: none; overflow: hidden; opacity: 0; transform: scale(0.6); }
.courses__float img { width: 100%; height: 100%; object-fit: cover; }

/* Space */
.space { padding-top: 96px; }
.space__zoom { position: relative; height: 300svh; margin-inline: calc(var(--pad) * -1); }
.space__frame { position: sticky; top: 0; height: 100svh; overflow: hidden; clip-path: inset(22% 30% 22% 30%); }
.space__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.3); }
.space__over {
  position: absolute; left: var(--pad); right: var(--pad); top: 50%; margin: 0; z-index: 3;
  font-family: var(--serif); font-size: clamp(36px, 6vw, 96px); line-height: 1; color: #fff; text-align: center;
  text-wrap: balance; pointer-events: none; opacity: 0; transform: translateY(-50%);
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.space__frame::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,10,0.35); opacity: var(--dim, 0); }
.space__over em { color: #fff; }
.space__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 80px; gap: 16px; margin-top: 96px;
}
.tile { margin: 0; position: relative; }
.tile img { width: 100%; height: calc(100% - 24px); object-fit: cover; filter: grayscale(0.2); transition: filter 0.9s var(--ease); }
.tile:hover img { filter: none; }
.tile--a { grid-column: 1 / 5; grid-row: 1 / 7; }
.tile--b { grid-column: 6 / 9; grid-row: 2 / 6; }
.tile--c { grid-column: 10 / 13; grid-row: 1 / 5; }
.tile--d { grid-column: 9 / 13; grid-row: 6 / 10; }
.tile--e { grid-column: 2 / 5; grid-row: 8 / 12; }
.tile--f { grid-column: 5 / 9; grid-row: 7 / 13; }
.tile--g { grid-column: 10 / 13; grid-row: 11 / 15; }

/* Offer */
.offer { padding-top: 96px; }
.offer__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid var(--line-strong); border-top: 1px solid var(--line-strong); }
.cell {
  position: relative; min-height: 320px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-start;
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  overflow: hidden; isolation: isolate; transition: color 0.5s var(--ease);
}
.cell::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); clip-path: circle(0% at var(--mx, 50%) var(--my, 50%)); transition: clip-path 0.9s var(--ease); }
.cell:hover::before { clip-path: circle(150% at var(--mx, 50%) var(--my, 50%)); }
.cell:hover { color: var(--accent-ink); }
.cell__n { font-family: var(--exp); font-weight: 800; font-size: 14px; letter-spacing: 0.16em; }
.cell h3 { margin: auto 0 12px; font-family: var(--exp); font-weight: 800; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 36px); line-height: 1; letter-spacing: -0.02em; }
.cell p { margin: 0; font-size: 16px; line-height: 24px; max-width: 32ch; }
.offer__quote { margin: 96px 0 0; font-family: var(--serif); font-size: clamp(36px, 6vw, 96px); line-height: 1; max-width: 16ch; color: var(--head); }
.offer__quote em { color: var(--accent-text); }

/* Community */
.community { padding-top: 96px; overflow: hidden; }
.community__strip { margin-inline: calc(var(--pad) * -1); overflow: hidden; cursor: grab; touch-action: pan-y; contain: paint; }
.community__strip:active { cursor: grabbing; }
.community__row { display: flex; gap: 16px; width: max-content; padding-inline: var(--pad); will-change: transform; }
.community__row { --skew: 0deg; }
.community__row figure { margin: 0; width: clamp(220px, 26vw, 400px); aspect-ratio: 3 / 4; overflow: hidden; flex: 0 0 auto; transform: skewX(var(--skew)); }
.community__row img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; -webkit-user-drag: none; transform: scale(1.15); }
.community__big { margin: 80px 0 0 auto; max-width: 18ch; text-align: right; font-family: var(--exp); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 4.8vw, 80px); line-height: 0.95; letter-spacing: -0.03em; color: var(--head); }
.community__big em { text-transform: none; color: var(--accent-text); font-size: 1.1em; }

/* FAQ */
.faq { padding-top: 96px; }
.faq__list { border-bottom: 1px solid var(--line-strong); }
.qa { border-top: 1px solid var(--line-strong); }
.qa summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; cursor: pointer; font-family: var(--exp); font-weight: 700; text-transform: uppercase; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.01em; transition: color 0.5s var(--ease), padding-left 0.7s var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-text); padding-left: 16px; }
.qa summary i { position: relative; flex: 0 0 24px; height: 24px; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: currentColor; transition: transform 0.7s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i::after { transform: rotate(0deg); }
.qa[open] summary i::before { transform: rotate(180deg); }
.qa__a { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 0 24px; max-width: 60ch; font-size: 18px; line-height: 28px; color: var(--muted); }
.qa__a a { color: var(--accent-text); }

/* CTA */
.cta { padding-top: 96px; padding-bottom: 64px; }
.cta__title { margin: 0; display: flex; flex-direction: column; font-family: var(--exp); font-weight: 800; text-transform: uppercase; font-size: clamp(96px, min(24vw, 62svh), 640px); line-height: 0.82; letter-spacing: -0.05em; color: var(--head); }
.cta__title span { display: block; overflow: hidden; padding-bottom: 0.04em; }
.cta__title em { text-transform: none; color: var(--accent-text); letter-spacing: -0.03em; padding-left: 0.4em; }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; border-top: 1px solid var(--line-strong); padding-top: 24px; }
.cta__alt { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 36px; }
.cta__alt a { color: var(--accent-text); }

/* Footer */
.foot { padding: 64px var(--pad) 32px; border-top: 1px solid var(--line-strong); }
.foot__word {
  position: relative; margin: 0 0 64px; display: flex; justify-content: space-between;
  font-family: var(--exp); font-weight: 800; color: var(--head);
  font-size: clamp(72px, 21.5vw, 640px); line-height: 0.78; letter-spacing: -0.045em;
}
.foot__word { padding-bottom: 0.24em; }
.foot__word::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0.36em; height: 0.045em; background: var(--bg); }
.foot__word::after { content: ""; position: absolute; z-index: 2; left: -3%; right: -3%; top: 0.38em; height: max(2px, 0.008em); background: var(--fg); }
.foot__word .ch--spike { width: 0.18em; z-index: 3; }
.foot__word small { position: absolute; right: 0.04em; bottom: 0; font-weight: 700; font-size: 0.13em; letter-spacing: 0; line-height: 1; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; font-size: 14px; line-height: 20px; color: var(--muted); }
.foot__cols p { margin: 0; }
.foot__cols a { text-decoration: none; }
.foot__cols a:hover { color: var(--fg); text-decoration: underline; }

/* Mode switch wipe */
.wipe { position: fixed; inset: 0; z-index: 140; pointer-events: none; display: grid; grid-template-columns: repeat(6, 1fr); }
.wipe i { background: var(--wipe, #E8332A); transform: scaleY(0); transform-origin: bottom; }

/* Beat pulse hooks */
body.is-beating .hero__title { transform: scale(calc(1 + var(--beat) * 0.008)); }
body.is-beating .chip__dot { transform: scale(calc(1 + var(--beat) * 0.8)); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .course a { grid-template-columns: 1fr 48px; }
  .course__lvl { grid-column: 1; grid-row: 1; }
  .course__name { grid-column: 1; grid-row: 2; }
  .course__desc { grid-column: 1; grid-row: 3; }
  .course__go { grid-column: 2; grid-row: 1 / 4; }
  .nav__meta { display: none; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__actions { justify-content: flex-end; }
  .sec__head { grid-template-columns: 100px 1fr; }
  .sec__aside { grid-column: 1 / -1; text-align: left; }
  .manifesto__cols { grid-template-columns: 1fr 1fr; }
  .manifesto__fig { grid-column: 1 / -1; }
  .offer__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .chip .js-mode-label, .chip .js-sound-label { display: none; }
  .hero { padding-top: 80px; }
  .hero__top { grid-template-columns: 1fr 1fr; }
  .hero__ed { display: none; }
  .hero__top .label:nth-child(2) { text-align: right; }
  .hero__bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero__scroll { display: none; }
  .btn { height: 52px; padding: 0 16px; font-size: 14px; }
  .course__name { font-size: 7.4vw; }
  .course a { grid-template-columns: 1fr 32px; }
  .course__go { font-size: 24px; }
  .manifesto__big { font-size: 8.6vw; }
  .course__desc em { font-size: 20px; }
  .nav { gap: 12px; }
  .chip { padding: 0 10px; }
  .btn--xl { height: 64px; padding: 0 24px; font-size: 16px; }
  .manifesto__cols { grid-template-columns: 1fr; }
  .step { width: 86vw; height: auto; min-height: 520px; padding: 0 16px 24px; }
  .step__img { width: 50%; right: 16px; top: 24px; }
  .space__frame { clip-path: inset(18% 12% 18% 12%); }
  .space__grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 64px; gap: 12px; }
  .tile--a { grid-column: 1 / 5; grid-row: 1 / 6; }
  .tile--b { grid-column: 4 / 7; grid-row: 5 / 9; }
  .tile--c { grid-column: 1 / 4; grid-row: 7 / 11; }
  .tile--d { grid-column: 4 / 7; grid-row: 10 / 14; }
  .tile--e { grid-column: 1 / 4; grid-row: 12 / 16; }
  .tile--f { grid-column: 3 / 7; grid-row: 15 / 20; }
  .tile--g { grid-column: 1 / 4; grid-row: 17 / 21; }
  .offer__grid { grid-template-columns: 1fr; }
  .cell { min-height: 200px; }
  .foot__cols { grid-template-columns: 1fr; }
}

.reduce .path__pin { overflow-x: auto; }
/* Phones held sideways: keep the hero readable in a short viewport */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding-top: 72px; }
  .hero__top { display: none; }
  .hero__bottom { grid-template-columns: 1fr auto; gap: 16px; padding-bottom: 12px; }
  .hero__lede { font-size: 30px; }
  .hero__scroll { display: none; }
  .cta__title { font-size: clamp(64px, 30svh, 160px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  body::after { display: none; }
  .space__zoom { height: auto; }
  .space__frame { position: relative; height: 70svh; clip-path: none; }
  .space__over { position: absolute; top: 50%; opacity: 1; }
  .w { color: inherit; }
}
