/* ==========================================================================
   Mise. Cooking School — shared stylesheet
   ========================================================================== */

:root {
  --bg: #f4f5ef;
  --bg-2: #e9ebe2;
  --bg-3: #dde1d3;
  --card: #fbfcf8;
  --ink: #15170f;
  --ink-2: rgba(21, 23, 15, 0.72);
  --ink-3: rgba(21, 23, 15, 0.5);
  --line: rgba(21, 23, 15, 0.13);
  --invert-bg: #15170f;
  --invert-ink: #f4f5ef;

  --tomato: #ef4f2c;
  --saffron: #f5b21a;
  --basil: #2f9d57;
  --plum: #7a5cf0;
  --sky: #3a98e3;
  --tomato-soft: #fbe1d8;
  --saffron-soft: #fbedc9;
  --basil-soft: #d9efdf;
  --plum-soft: #e7e1fd;
  --sky-soft: #dbecfa;
  --soft-ink: #15170f;
  --on-accent: #15170f;

  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 24px;
  --header-h: 76px;
  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f110c;
    --bg-2: #181b14;
    --bg-3: #23271d;
    --card: #1b1e17;
    --ink: #eef1e6;
    --ink-2: rgba(238, 241, 230, 0.74);
    --ink-3: rgba(238, 241, 230, 0.5);
    --line: rgba(238, 241, 230, 0.13);
    --invert-bg: #eef1e6;
    --invert-ink: #0f110c;
    --tomato-soft: #3b1d14;
    --saffron-soft: #3a2c0c;
    --basil-soft: #15301f;
    --plum-soft: #251d45;
    --sky-soft: #132b40;
    --soft-ink: #eef1e6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f110c;
  --bg-2: #181b14;
  --bg-3: #23271d;
  --card: #1b1e17;
  --ink: #eef1e6;
  --ink-2: rgba(238, 241, 230, 0.74);
  --ink-3: rgba(238, 241, 230, 0.5);
  --line: rgba(238, 241, 230, 0.13);
  --invert-bg: #eef1e6;
  --invert-ink: #0f110c;
  --tomato-soft: #3b1d14;
  --saffron-soft: #3a2c0c;
  --basil-soft: #15301f;
  --plum-soft: #251d45;
  --sky-soft: #132b40;
  --soft-ink: #eef1e6;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.035em; line-height: 0.95; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--saffron); color: #15170f; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); }
.section--alt { background: var(--bg-2); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.h1 { font-size: clamp(3.1rem, 9.2vw, 8.6rem); line-height: 0.88; letter-spacing: -0.05em; }
.h2 { font-size: clamp(2.3rem, 5.4vw, 4.8rem); line-height: 0.92; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.08; letter-spacing: -0.02em; }
.h4 { font-size: 1.2rem; line-height: 1.15; letter-spacing: -0.015em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--ink-2); max-width: 46ch; line-height: 1.5; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); }

.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { max-width: 40ch; }
.sec-head > div { display: grid; gap: 18px; }

/* split text helpers */
.split-line { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-char, .split-word { display: inline-block; will-change: transform; }

/* ---------- chips & buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; background: var(--bg-2); color: var(--ink);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 500;
}
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.c-tomato { --c: var(--tomato); --c-soft: var(--tomato-soft); }
.c-saffron { --c: var(--saffron); --c-soft: var(--saffron-soft); }
.c-basil { --c: var(--basil); --c-soft: var(--basil-soft); }
.c-plum { --c: var(--plum); --c-soft: var(--plum-soft); }
.c-sky { --c: var(--sky); --c-soft: var(--sky-soft); }
.chip[class*="c-"] { background: var(--c-soft); color: var(--soft-ink); }
.chip[class*="c-"] i { background: var(--c); }

.btn {
  --b-bg: var(--ink); --b-ink: var(--bg);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 8px 0 22px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-ink); font-weight: 600; font-size: 15px;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--saffron); transform: translateY(101%); transition: transform 0.5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #15170f; }
.btn-t { position: relative; display: block; height: 1.3em; line-height: 1.3em; overflow: hidden; }
.btn-t span { display: block; transition: transform 0.5s var(--ease); }
.btn-t span + span { position: absolute; top: 100%; left: 0; }
.btn:hover .btn-t span { transform: translateY(-100%); }
.btn-ic {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--b-ink); color: var(--b-bg); transition: transform 0.5s var(--ease), background 0.3s;
}
.btn:hover .btn-ic { transform: rotate(-45deg); background: #15170f; color: var(--saffron); }
.btn--light { --b-bg: var(--bg-2); --b-ink: var(--ink); }
.btn--light .btn-ic { background: var(--ink); color: var(--bg); }
.btn--accent { --b-bg: var(--saffron); --b-ink: #15170f; }
.btn--accent::before { background: var(--ink); }
.btn--accent:hover { color: var(--bg); }
.btn--accent .btn-ic { background: #15170f; color: var(--saffron); }
.btn--accent:hover .btn-ic { background: var(--bg); color: var(--ink); }
.btn--sm { height: 42px; font-size: 14px; padding: 0 6px 0 16px; }
.btn--sm .btn-ic { width: 30px; height: 30px; }
.btn--plain { padding: 0 22px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-u { position: relative; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: currentColor; transform: scaleX(0.3); transform-origin: left; transition: transform 0.5s var(--ease); }
.link-u:hover::after { transform: scaleX(1); }

/* ---------- header & mega menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform 0.6s var(--ease), background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header.is-open { background: var(--bg); border-color: var(--line); }
.hdr { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-family: var(--f-display); font-weight: 700; font-size: 28px; letter-spacing: -0.06em; display: inline-flex; align-items: baseline; }
.logo b { color: var(--tomato); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: static; }
.nav-top {
  display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px;
  font-weight: 500; font-size: 15px; transition: background 0.3s;
}
.nav-top:hover, .nav-item.is-open .nav-top { background: var(--bg-2); }
.nav-top svg { transition: transform 0.4s var(--ease); }
.nav-item.is-open .nav-top svg { transform: rotate(180deg); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); transition: background 0.3s, transform 0.5s var(--ease); }
.icon-btn:hover { background: var(--bg-3); }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.burger { display: none; }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0); visibility: hidden;
}
.mega-inner { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 32px; padding-block: 28px 36px; }
.mega-inner--classes { grid-template-columns: 1fr 1fr 1fr 1fr; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-title { color: var(--ink-3); padding: 0 12px 10px; }
.mlink {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 11px 12px; border-radius: var(--r-s); overflow: hidden; isolation: isolate; font-size: 16px;
}
.mlink::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); }
.mlink:hover::before, .mlink[aria-current="page"]::before { transform: scaleY(1); }
.mlink .chip { padding: 4px 8px; font-size: 9.5px; background: var(--bg-3); }
.mlink .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.mega-feature { position: relative; border-radius: var(--r-m); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; color: #fff; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mega-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10, 12, 8, 0.78)); }
.mega-feature:hover img { transform: scale(1.08); }
.mega-feature > div { position: relative; z-index: 1; padding: 20px; display: grid; gap: 6px; }
.mcard { display: grid; gap: 12px; }
.mcard-img { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; }
.mcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.mcard:hover .mcard-img img { transform: scale(1.08) rotate(1.5deg); }

.menu-veil { position: fixed; inset: 0; z-index: 80; background: rgba(10, 12, 8, 0.35); opacity: 0; visibility: hidden; transition: opacity 0.5s, visibility 0.5s; }
.menu-veil.is-on { opacity: 1; visibility: visible; }

/* mobile menu */
.mmenu {
  position: fixed; inset: 0; z-index: 85; background: var(--bg);
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; visibility: hidden; clip-path: inset(0 0 100% 0);
  display: flex; flex-direction: column; gap: 28px;
}
/* the menu scrolls: its blocks keep their own height instead of being squeezed to fit */
.mmenu > * { flex: 0 0 auto; min-width: 0; }
.mmenu-links { display: grid; }
.mmenu-links a { font-family: var(--f-display); font-size: clamp(1.9rem, 9.5vw, 3.6rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.08; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-block: 6px; }
.mmenu-links a span { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; }
.mmenu-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.mmenu-cards::-webkit-scrollbar { display: none; }

/* ---------- page curtain & loader ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 200; background: var(--saffron); color: #15170f;
  display: grid; place-items: center; pointer-events: none;
}
.curtain-mark { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; font-size: clamp(4rem, 16vw, 12rem); line-height: 1; overflow: hidden; }
.curtain-mark span { display: inline-block; }
.curtain-count { position: absolute; left: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-mono); font-size: 12px; }
.curtain-note { position: absolute; right: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; position: relative; display: flex; user-select: none; }
.marquee-track { display: flex; flex-shrink: 0; align-items: center; gap: 12px; padding-right: 12px; will-change: transform; }
.marquee--tags { padding-block: 10px; }
.marquee--tags .chip { font-size: 13px; padding: 12px 18px; letter-spacing: 0.02em; text-transform: none; font-family: var(--f-body); font-weight: 500; transition: transform 0.4s var(--ease); }
.marquee--tags .chip:hover { transform: rotate(-3deg) scale(1.05); }
.marquee--big .marquee-track { gap: 40px; padding-right: 40px; }
.mq-big { font-family: var(--f-display); font-weight: 600; font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -0.05em; line-height: 1.05; white-space: nowrap; }
.mq-big.outline { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.mq-star { width: clamp(36px, 5vw, 64px); height: auto; color: var(--tomato); flex-shrink: 0; }
.marquee-edge { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }

/* ---------- hero A ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px)); padding-bottom: clamp(40px, 5vw, 64px); position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 28px; align-content: start; }
.hero-copy .h1 em { font-style: normal; color: var(--tomato); }
.ticket {
  display: inline-grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; justify-self: start;
  padding: 12px 18px 12px 12px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); max-width: 100%;
}
.ticket img { grid-row: span 2; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.ticket .mono { color: var(--ink-3); }
.ticket strong { font-weight: 600; font-size: 15px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--basil); margin-right: 6px; box-shadow: 0 0 0 0 var(--basil); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero-media { position: relative; aspect-ratio: 1 / 1.05; width: 100%; }
.float { position: absolute; border-radius: var(--r-m); overflow: hidden; will-change: transform; box-shadow: 0 30px 60px -30px rgba(10, 12, 8, 0.45); }
.float img { width: 100%; height: 100%; object-fit: cover; }
.float--1 { width: 58%; aspect-ratio: 3 / 4; left: 20%; top: 8%; z-index: 2; }
.float--2 { width: 34%; aspect-ratio: 1; left: 0; top: 0; z-index: 3; rotate: -7deg; }
.float--3 { width: 36%; aspect-ratio: 4 / 5; right: 0; bottom: 4%; z-index: 3; rotate: 6deg; }
.float--4 { width: 30%; aspect-ratio: 1; left: 4%; bottom: 0; z-index: 1; rotate: 4deg; }
.float-badge {
  position: absolute; z-index: 4; right: 6%; top: 6%; width: clamp(92px, 11vw, 132px); aspect-ratio: 1; border-radius: 50%;
  background: var(--saffron); color: #15170f; display: grid; place-items: center; text-align: center;
}
.float-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.float-badge b { font-family: var(--f-display); font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.04em; line-height: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.stat { padding: 24px 20px 0 0; display: grid; gap: 6px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat-n { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-n sup { font-size: 0.45em; color: var(--tomato); vertical-align: top; position: relative; top: 0.25em; }
.stat p { color: var(--ink-2); font-size: 14px; }

/* ---------- class cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.ccard { display: grid; gap: 16px; align-content: start; }
.ccard-img { position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3.3; background: var(--bg-3); }
.ccard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.ccard:hover .ccard-img img { transform: scale(1.07); }
.ccard-img .chip { position: absolute; left: 12px; top: 12px; z-index: 1; }
.ccard-go {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); color: var(--ink); display: grid; place-items: center;
  transform: scale(0.6) rotate(-90deg); opacity: 0; transition: transform 0.6s var(--ease), opacity 0.4s;
}
.ccard:hover .ccard-go { transform: scale(1) rotate(-45deg); opacity: 1; }
.ccard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-3); }
.ccard-body { display: grid; gap: 10px; }
.ccard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ccard-chef { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ccard-chef img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.price { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.03em; }
.seats-low { color: var(--tomato); }

/* ---------- stacking cards ---------- */
.stack { display: grid; gap: 0; }
.stack-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px);
  min-height: min(620px, 78vh); padding: clamp(20px, 3vw, 40px); margin-bottom: 24px;
  border-radius: var(--r-l); background: var(--c-soft); color: var(--soft-ink); transform-origin: 50% 0;
}
.stack-card:last-child { margin-bottom: 0; }
.stack-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.stack-copy .h2 { font-size: clamp(2rem, 4.4vw, 4rem); }
.stack-copy p { max-width: 44ch; font-size: 17px; opacity: 0.8; }
.stack-num { font-family: var(--f-mono); font-size: 12px; display: flex; gap: 10px; align-items: center; }
.stack-num i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-style: normal; color: #15170f; }
.stack-media { border-radius: var(--r-m); overflow: hidden; position: relative; min-height: 260px; }
.stack-media img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; }
.stack-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stack-list li { display: flex; gap: 10px; align-items: baseline; font-weight: 500; }
.stack-list li::before { content: ""; width: 14px; height: 2px; background: var(--c); flex-shrink: 0; transform: translateY(-4px); }

/* ---------- categories drag slider ---------- */
.drag { overflow: hidden; cursor: grab; touch-action: pan-y; }
.drag.is-dragging { cursor: grabbing; }
.drag-track { display: flex; gap: 16px; width: max-content; will-change: transform; padding-inline: var(--gutter); }
.cat-card {
  position: relative; width: clamp(270px, 28vw, 380px); aspect-ratio: 3.3 / 4; flex-shrink: 0;
  border-radius: var(--r-l); padding: 24px; background: var(--c-soft); color: var(--soft-ink);
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; isolation: isolate;
  user-select: none;
}
.cat-card h3 { font-size: clamp(1.9rem, 2.8vw, 2.6rem); }
.cat-card p { opacity: 0.78; max-width: 26ch; margin-top: 10px; }
.cat-shape { position: absolute; right: -14%; top: 22%; width: 78%; z-index: -1; color: var(--c); transition: transform 0.9s var(--ease); }
.cat-card:hover .cat-shape { transform: rotate(22deg) scale(1.08); }
.cat-foot { display: flex; justify-content: space-between; align-items: center; }
.cat-foot .icon-btn { background: var(--bg); color: var(--ink); }
.cat-card:hover .cat-foot .icon-btn { transform: rotate(-45deg); }
.drag-hint { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.drag-bar { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; max-width: 320px; }
.drag-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0.2); }

/* ---------- chefs ---------- */
.chef { display: grid; gap: 14px; text-align: left; }
.chef-img { position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 3 / 3.6; background: var(--bg-3); }
.chef-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.8s var(--ease), transform 1.1s var(--ease); }
.chef:hover .chef-img img { filter: grayscale(0); transform: scale(1.05); }
.chef-img .chip { position: absolute; left: 12px; bottom: 12px; background: var(--bg); }
.chef-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chef-row .icon-btn { flex-shrink: 0; }
.chef:hover .chef-row .icon-btn { background: var(--saffron); color: #15170f; transform: rotate(90deg); }

.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal-veil { position: absolute; inset: 0; background: rgba(10, 12, 8, 0.55); opacity: 0; }
.modal-box {
  position: relative; width: min(820px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--bg); border-radius: var(--r-l); display: grid; grid-template-columns: 0.9fr 1.1fr;
}
.modal-box > img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal-copy { padding: clamp(20px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }

/* ---------- reviews ---------- */
.rev-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.rev-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.big-n { font-family: var(--f-display); font-weight: 600; font-size: clamp(5rem, 13vw, 11rem); letter-spacing: -0.07em; line-height: 0.85; font-variant-numeric: tabular-nums; }
.rev-cols { columns: 2; column-gap: 16px; }
.rev-cols--3 { columns: 3; }
.rev {
  break-inside: avoid; margin-bottom: 16px; padding: 24px; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line);
  display: grid; gap: 18px; transform-origin: 0 100%;
}
.section--alt .rev { background: var(--bg); }
.rev q { font-size: 17px; line-height: 1.5; quotes: "“" "”"; }
.rev-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rev-who { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c-soft); color: var(--soft-ink); font-family: var(--f-display); font-weight: 600; font-size: 15px; }
.stars { display: flex; gap: 2px; color: var(--saffron); }

/* partners marquee */
.partners { border-block: 1px solid var(--line); padding-block: 28px; }
.pw { font-size: clamp(1.5rem, 2.6vw, 2.2rem); white-space: nowrap; color: var(--ink-2); padding-inline: 20px; transition: color 0.3s; }
.pw:hover { color: var(--ink); }
.pw-0 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.04em; }
.pw-1 { font-family: var(--f-mono); font-weight: 600; letter-spacing: 0.12em; font-size: clamp(1.1rem, 1.9vw, 1.6rem); }
.pw-2 { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
.pw-3 { font-family: var(--f-body); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.1rem, 1.9vw, 1.6rem); }
.pw-sep { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex-shrink: 0; }

/* ---------- CTA ---------- */
.cta {
  position: relative; border-radius: clamp(20px, 3vw, 36px); background: var(--invert-bg); color: var(--invert-ink);
  padding: clamp(40px, 7vw, 110px) clamp(20px, 5vw, 80px); overflow: hidden; text-align: center;
  display: grid; justify-items: center; gap: 28px;
}
.cta .h2 { font-size: clamp(2.6rem, 7vw, 6.4rem); max-width: 12ch; }
.cta .lead { color: inherit; opacity: 0.72; }
.cta-img { position: absolute; width: clamp(90px, 14vw, 200px); aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; }
.cta-img img { width: 100%; height: 100%; object-fit: cover; }
.cta-img--1 { left: 5%; top: 12%; rotate: -10deg; }
.cta-img--2 { right: 6%; top: 8%; rotate: 8deg; }
.cta-img--3 { left: 12%; bottom: -6%; rotate: 6deg; }
.cta-img--4 { right: 10%; bottom: -8%; rotate: -6deg; }
.cta .btn--light { --b-bg: var(--invert-ink); --b-ink: var(--invert-bg); }
.cta .btn--light .btn-ic { background: var(--invert-bg); color: var(--invert-ink); }

/* ---------- journal ---------- */
.post-card { display: grid; gap: 16px; align-content: start; }
.post-img { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-3); }
.post-img img { width: 100%; height: 100%; object-fit: cover; transform-origin: center; transition: transform 1s var(--ease); }
.post-card:hover .post-img img { transform: scale(1.12) !important; }
.post-meta { display: flex; gap: 12px; align-items: center; color: var(--ink-3); flex-wrap: wrap; }
.post-card h3 { transition: color 0.3s; }
.post-card:hover h3 { color: var(--tomato); }
.post-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.post-feature .post-img { aspect-ratio: 16 / 11; }
.post-feature .h2 { font-size: clamp(2rem, 4vw, 3.6rem); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-layout .sec-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; text-align: left; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.2; }
.faq-plus { position: relative; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--bg-2); transition: background 0.4s, transform 0.5s var(--ease); }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.8px; background: currentColor; translate: -50% -50%; transition: transform 0.5s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq-item.is-open .faq-plus { background: var(--saffron); color: #15170f; transform: rotate(180deg); }
.faq-item.is-open .faq-plus::after { transform: rotate(0deg); }
.faq-a { height: 0; overflow: hidden; }
.faq-a p { padding: 0 60px 26px 0; color: var(--ink-2); max-width: 62ch; }
.section--alt .faq-plus { background: var(--bg); }

/* ---------- contact & forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.info-list { display: grid; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.info-row .mono { color: var(--ink-3); padding-top: 4px; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); }
.section--alt .form { background: var(--bg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; transition: border-color 0.3s, box-shadow 0.3s; }
.section--alt .form .input { background: var(--bg-2); }
textarea.input { height: 130px; padding: 14px 16px; resize: vertical; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--saffron) 45%, transparent); }
.form-note { font-size: 13px; color: var(--ink-3); }
.form-ok { display: none; padding: 14px 16px; border-radius: var(--r-s); background: var(--basil-soft); color: var(--soft-ink); font-weight: 500; }
.form.is-sent .form-ok { display: block; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; }
.nl-form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.nl-form .input { border: 0; background: transparent; height: 50px; border-radius: 999px; }
.nl-form .input:focus { box-shadow: none; }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); padding-top: clamp(56px, 8vw, 110px); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-bottom: 56px; }
.foot-top h4 { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-links { display: grid; gap: 6px; }
.foot-links a { width: fit-content; position: relative; color: var(--ink-2); transition: color 0.3s, transform 0.4s var(--ease); }
.foot-links a:hover { color: var(--ink); transform: translateX(6px); }
.foot-contact { display: grid; gap: 16px; align-content: start; }
.foot-contact p { color: var(--ink-2); }
.socials { display: flex; gap: 8px; }
.socials .icon-btn { background: var(--bg); }
.socials .icon-btn:hover { background: var(--ink); color: var(--bg); transform: rotate(-12deg); }
.foot-word { font-family: var(--f-display); font-weight: 700; font-size: clamp(6rem, 27vw, 26rem); line-height: 0.75; letter-spacing: -0.075em; display: flex; justify-content: center; overflow: hidden; padding-top: 0.06em; margin-bottom: -0.02em; }
.foot-word span { display: inline-block; }
.foot-word span:last-child { color: var(--tomato); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot-bottom div { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- page header (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.crumbs { display: flex; gap: 8px; color: var(--ink-3); margin-bottom: 24px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter { height: 44px; padding: 0 18px; border-radius: 999px; background: var(--bg-2); font-weight: 500; display: inline-flex; gap: 8px; align-items: center; transition: background 0.35s, color 0.35s; }
.filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); }
.filter sup { font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); top: 0; }
.filter:hover { background: var(--bg-3); }
.filter.is-active { background: var(--ink); color: var(--bg); }
.filter.is-active sup { color: inherit; opacity: 0.6; }

/* schedule rows with cursor image */
.sched { border-top: 1px solid var(--ink); }
.srow {
  position: relative; display: grid; grid-template-columns: 110px minmax(0, 2.2fr) minmax(0, 1fr) 110px 90px 52px;
  gap: 16px; align-items: center; padding: 22px 12px; border-bottom: 1px solid var(--line); isolation: isolate;
}
.srow::before { content: ""; position: absolute; inset: 0; background: var(--c-soft); z-index: -1; transform: scaleY(0); transform-origin: bottom; transition: transform 0.5s var(--ease); }
.srow:hover::before { transform: scaleY(1); }
.srow:hover { color: var(--soft-ink); }
.s-date { display: grid; line-height: 1.1; }
.s-date b { font-family: var(--f-display); font-size: 2rem; letter-spacing: -0.04em; font-weight: 600; }
.s-title { display: grid; gap: 8px; justify-items: start; }
.s-title h3 { font-size: clamp(1.3rem, 2.2vw, 2rem); transition: transform 0.5s var(--ease); }
.srow:hover .s-title h3 { transform: translateX(10px); }
.s-go { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.4s, transform 0.5s var(--ease); }
.srow:hover .s-go { background: var(--ink); color: var(--bg); transform: rotate(-45deg); border-color: transparent; }
.cursor-img { position: fixed; left: 0; top: 0; z-index: 70; width: 260px; aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; pointer-events: none; opacity: 0; scale: 0.6; }
.cursor-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- class detail ---------- */
.cd-hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 80px)); }
.cd-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.cd-head .h1 { font-size: clamp(2.8rem, 7.4vw, 7rem); }
.cd-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.cd-fact { padding: 16px 18px; display: grid; gap: 4px; }
.cd-fact + .cd-fact { border-left: 1px solid var(--line); }
.cd-fact .mono { color: var(--ink-3); }
.cd-fact b { font-family: var(--f-display); font-size: 1.4rem; letter-spacing: -0.03em; font-weight: 600; }
.cd-banner { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 7; position: relative; }
.cd-banner img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.cd-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.book {
  position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line);
  display: grid; gap: 18px;
}
.book-price { display: flex; justify-content: space-between; align-items: baseline; }
.book-price b { font-family: var(--f-display); font-size: 3rem; letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.book-seats { display: grid; gap: 8px; }
.seat-bar { display: grid; grid-auto-flow: column; gap: 4px; }
.seat-bar i { height: 8px; border-radius: 3px; background: var(--bg-3); }
.seat-bar i.on { background: var(--c, var(--tomato)); }
.book .btn { justify-content: space-between; }
.book ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.book li { display: flex; gap: 10px; }
.book li svg { flex-shrink: 0; margin-top: 3px; color: var(--basil); }
.alt-rows { display: grid; gap: clamp(40px, 6vw, 80px); }
.alt-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.alt-row:nth-child(even) .alt-img { order: 2; }
.alt-img { border-radius: var(--r-m); overflow: hidden; aspect-ratio: 1 / 1.05; }
.alt-img img { width: 100%; height: 100%; object-fit: cover; }
.alt-copy { display: grid; gap: 16px; }
.alt-copy .h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.program { border-top: 1px solid var(--line); }
.program .faq-q { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }
.program .faq-q small { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.04em; margin-right: 18px; }

.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.inc { padding: 28px; border-radius: var(--r-l); background: var(--bg); display: grid; gap: 40px; align-content: space-between; min-height: 280px; }
.inc-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--c-soft); color: var(--soft-ink); }
.inc div { display: grid; gap: 10px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { padding: 28px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 22px; transition: transform 0.6s var(--ease); }
.plan:hover { transform: translateY(-8px); }
.plan--hot { background: var(--invert-bg); color: var(--invert-ink); border-color: transparent; }
.plan--hot .muted, .plan--hot li { color: inherit; opacity: 0.8; }
.plan-price { font-family: var(--f-display); font-size: 3.4rem; letter-spacing: -0.05em; font-weight: 600; line-height: 1; }
.plan-price small { font-size: 1rem; letter-spacing: 0; font-family: var(--f-body); font-weight: 400; opacity: 0.6; }
.plan ul { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--line); flex: 1; }
.plan--hot ul { border-color: rgba(128, 128, 128, 0.35); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--basil); font-weight: 700; }
.plan .btn { justify-content: space-between; }
.plan--hot .btn { --b-bg: var(--saffron); --b-ink: #15170f; }
.plan--hot .btn .btn-ic { background: #15170f; color: var(--saffron); }

/* about */
.img-band { display: flex; gap: 16px; }
.img-band .band-img { width: clamp(220px, 26vw, 380px); aspect-ratio: 4 / 5; border-radius: var(--r-m); overflow: hidden; flex-shrink: 0; }
.img-band .band-img:nth-child(even) { aspect-ratio: 1; align-self: center; }
.band-img img { width: 100%; height: 100%; object-fit: cover; }
.sticky-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.sticky-split > :first-child { position: sticky; top: calc(var(--header-h) + 24px); }
.values { display: grid; gap: 16px; }
.value { padding: 28px; border-radius: var(--r-l); background: var(--c-soft); color: var(--soft-ink); display: grid; gap: 14px; }
.value .h3 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.reveal-text { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.8rem, 3.8vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.1; }
.reveal-text .split-word { opacity: 0.18; }

/* reviews page */
.rstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.rstat { padding: 28px; border-radius: var(--r-l); background: var(--c-soft); color: var(--soft-ink); display: grid; gap: 8px; }

/* article */
.article { max-width: 760px; margin-inline: auto; }
.article-hero-img { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; margin-block: 40px; position: relative; }
.article-hero-img img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.prose { display: grid; gap: 22px; font-size: 18px; line-height: 1.7; color: var(--ink-2); }
.prose .lead { font-size: 1.4rem; color: var(--ink); max-width: none; line-height: 1.45; font-family: var(--f-display); letter-spacing: -0.02em; }
.author { display: flex; align-items: center; gap: 12px; }
.author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.nf-n { font-family: var(--f-display); font-weight: 700; font-size: clamp(8rem, 30vw, 24rem); letter-spacing: -0.08em; line-height: 0.8; display: flex; align-items: center; justify-content: center; }
.nf-n .plate { width: 0.8em; height: 0.8em; border-radius: 50%; overflow: hidden; display: inline-block; margin-inline: -0.02em; }
.nf-n .plate img { width: 100%; height: 100%; object-fit: cover; }

/* tilt reveal starting state helper handled via GSAP */
[data-tilt] { transform-style: preserve-3d; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .hdr-actions .btn { display: none; }
  .burger { display: grid; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
  .srow { grid-template-columns: 90px minmax(0, 1fr) 100px 46px; }
  .srow .s-chef, .srow .s-seats { display: none; }
  .rev-cols--3 { columns: 2; }
}
@media (max-width: 900px) {
  .hero-grid, .page-hero-grid, .cd-head, .cd-body, .faq-layout, .contact-grid, .rev-layout, .sticky-split, .newsletter, .post-feature { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 560px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stack-media { min-height: 220px; order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .includes, .plans, .rstats { grid-template-columns: minmax(0, 1fr); }
  .faq-layout .sec-head, .rev-aside, .sticky-split > :first-child { position: static; }
  .book { position: static; }
  .modal-box { grid-template-columns: minmax(0, 1fr); }
  .modal-box > img { min-height: 0; aspect-ratio: 4 / 3; }
  .cd-facts { grid-template-columns: repeat(2, 1fr); }
  .cd-fact:nth-child(3) { border-left: 0; }
  .cd-fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .alt-row { grid-template-columns: minmax(0, 1fr); }
  .alt-row:nth-child(even) .alt-img { order: 0; }
  .rev-cols, .rev-cols--3 { columns: 1; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .srow { grid-template-columns: 64px minmax(0, 1fr) 46px; padding-inline: 4px; }
  .srow .s-price { display: none; }
  .s-date b { font-size: 1.6rem; }
  .info-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cta-img { width: 76px; opacity: 0.5; }
  .cd-banner { aspect-ratio: 4 / 3; }
  .faq-a p { padding-right: 0; }
  .nl-form { flex-direction: column; border-radius: var(--r-m); }
  .nl-form .btn { justify-content: space-between; }
  .hdr-actions .theme-btn { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- loading guards ---------- */
[hidden] { display: none !important; }
html.js-wait::after { content: ""; position: fixed; inset: 0; z-index: 199; background: var(--saffron); animation: waitFail 0.4s 4s forwards; }
@keyframes waitFail { to { opacity: 0; visibility: hidden; } }
.no-gsap .curtain { display: none; }
.sr { position: absolute !important; left: -9999px; }

/* ---------- home B ---------- */
.hero-b { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-b-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); color: var(--ink-2); }
.hero-b .h1 { font-size: clamp(3rem, 10.5vw, 10.5rem); }
.inline-img { display: inline-block; width: 1.55em; height: 0.74em; border-radius: 999px; overflow: hidden; vertical-align: 0.02em; margin-inline: 0.04em; position: relative; }
.inline-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-b-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-top: clamp(28px, 4vw, 48px); }
.hero-b-visual { position: relative; margin-top: clamp(36px, 5vw, 64px); border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 7.5; }
.hero-b-visual > img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.hero-b-quote { position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); max-width: min(380px, calc(100% - 24px)); padding: 20px; border-radius: var(--r-m); background: var(--bg); display: grid; gap: 12px; }

.skills { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.tab-list { border-top: 1px solid var(--line); }
.tab { width: 100%; text-align: left; display: grid; gap: 10px; padding: 22px 0 0; opacity: 0.45; transition: opacity 0.4s; }
.tab:hover, .tab.is-active { opacity: 1; }
.tab h3 { font-size: clamp(1.4rem, 2.4vw, 2.1rem); }
.tab p { color: var(--ink-2); max-width: 46ch; }
.tab-bar { height: 2px; background: var(--line); position: relative; overflow: hidden; margin-top: 12px; }
.tab-bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.skill-media { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--r-l); overflow: hidden; background: var(--bg-3); }
.skill-media [data-pane] { position: absolute; inset: 0; opacity: 0; }
.skill-media [data-pane]:first-child { opacity: 1; }
.skill-media img { width: 100%; height: 100%; object-fit: cover; }
.skill-media .chip { position: absolute; left: 16px; bottom: 16px; background: var(--bg); }
.rev--m { height: 100%; }

@media (max-width: 900px) {
  .hero-b-row, .skills { grid-template-columns: minmax(0, 1fr); }
  .hero-b-visual { aspect-ratio: 4 / 3.4; }
}
.split-word { white-space: nowrap; }

/* calmer tag marquee: outline chips, colour only in the dot */
.marquee--tags { padding-block: 6px; }
.marquee--tags .marquee-track { gap: 10px; padding-right: 10px; }
.marquee--tags .chip,
.marquee--tags .chip[class*="c-"] { background: transparent; color: var(--ink-2); border: 1px solid var(--line); font-size: 14px; padding: 10px 16px; transition: color 0.3s, border-color 0.3s, background 0.3s; }
.marquee--tags .chip:hover { transform: none; color: var(--ink); border-color: var(--ink); }

/* ---------- accent hero (home A) ---------- */
.curtain { background: #15170f; color: var(--saffron); }
.hero--accent {
  --ink: #15170f; --ink-2: rgba(21, 23, 15, 0.78); --ink-3: rgba(21, 23, 15, 0.58); --line: rgba(21, 23, 15, 0.2);
  --bg: #f4f5ef; --bg-2: rgba(255, 255, 255, 0.5); --bg-3: rgba(255, 255, 255, 0.75); --card: #fffaf0;
  background: var(--saffron); color: var(--ink);
  border-radius: 0 0 clamp(24px, 4vw, 56px) clamp(24px, 4vw, 56px);
  margin-bottom: clamp(24px, 4vw, 48px);
}
.hero--accent .eyebrow::before { background: #15170f; }
.hero--accent .h1 em {
  display: inline-block; color: #fff; background: var(--tomato);
  padding: 0 0.1em 0.04em; margin-inline: 0.02em; border-radius: 0.14em; rotate: -2deg;
}
.hero--accent .ticket { border-color: transparent; box-shadow: 0 18px 40px -24px rgba(21, 23, 15, 0.45); }
.hero--accent .float-badge { background: #15170f; color: var(--saffron); }
.hero--accent .stat-n sup { color: #15170f; }
.hero--accent .float { box-shadow: 0 30px 60px -28px rgba(21, 23, 15, 0.55); }

.site-header.on-accent:not(.is-open) { --ink: #15170f; --bg: #f4f5ef; --bg-2: rgba(255, 255, 255, 0.45); --bg-3: rgba(255, 255, 255, 0.75); color: #15170f; }
.site-header.on-accent.is-scrolled:not(.is-open) { background: color-mix(in srgb, var(--saffron) 88%, transparent); border-color: rgba(21, 23, 15, 0.15); }
.site-header.on-accent:not(.is-open) .logo b { color: #15170f; }
.hero--accent .btn::before { background: #fff; }
.hero--accent .btn:hover .btn-ic { background: #15170f; color: #fff; }

/* loader: never clip the wordmark, match the pre-JS cover */
html.js-wait::after { background: #15170f; }
.curtain-mark { padding: 0.08em 0.12em; line-height: 1.05; }

/* hero title: fixed two lines that scale with their column, so zoom never re-wraps */
.hero-copy { container-type: inline-size; min-width: 0; }
.hero-title { font-size: clamp(2.4rem, 15.5cqi, 9rem); }
.hero-title .ht-line { display: block; white-space: nowrap; }
.hero-title .ht-line { overflow: hidden; padding: 0.04em 0.06em 0.12em 0; margin-bottom: -0.1em; }
