/* =========================================================
   Smart Pix Studio — Ayush Man Kayastha
   Palette shifts per chapter: night → ivory → mono → forest → parchment → night
   ========================================================= */

:root {
  /* Theme tokens (animated by main.js; defaults = "night") */
  --bg: #0e0d0c;
  --fg: #f3ede4;
  --muted: rgba(243, 237, 228, 0.62);
  --accent: #c9a46a;
  --line: rgba(243, 237, 228, 0.14);
  --card: #1a1816;
  --shadow: rgba(0, 0, 0, 0.28);

  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand: "Caveat", "Segoe Print", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --radius: 4px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --shadow-soft:
    0 1px 2px var(--shadow),
    0 4px 8px var(--shadow),
    0 14px 28px var(--shadow);
  --shadow-deep:
    0 1px 1px var(--shadow),
    0 3px 6px var(--shadow),
    0 10px 20px var(--shadow),
    0 24px 48px var(--shadow),
    0 48px 96px var(--shadow);
}

/* Fallback when the theme animation isn't running: each section paints its own palette */
html:not(.theme-js) [data-theme="ivory"] {
  --bg: #f4ede2; --fg: #1d1915; --muted: rgba(29, 25, 21, 0.64); --accent: #9a7337;
  --line: rgba(29, 25, 21, 0.14); --card: #fffaf2; --shadow: rgba(70, 50, 20, 0.12);
}
html:not(.theme-js) [data-theme="mono"] {
  --bg: #ededeb; --fg: #0b0b0b; --muted: rgba(11, 11, 11, 0.6); --accent: #0b0b0b;
  --line: rgba(11, 11, 11, 0.14); --card: #ffffff; --shadow: rgba(0, 0, 0, 0.12);
}
html:not(.theme-js) [data-theme="forest"] {
  --bg: #12201a; --fg: #ece6d6; --muted: rgba(236, 230, 214, 0.64); --accent: #c9a85c;
  --line: rgba(236, 230, 214, 0.14); --card: #1b2c24; --shadow: rgba(0, 0, 0, 0.3);
}
html:not(.theme-js) [data-theme="parchment"] {
  --bg: #e9e0cf; --fg: #22261f; --muted: rgba(34, 38, 31, 0.64); --accent: #8a6a32;
  --line: rgba(34, 38, 31, 0.15); --card: #f4ecdd; --shadow: rgba(60, 45, 20, 0.14);
}
html:not(.theme-js) [data-theme] { background: var(--bg); color: var(--fg); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
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(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.08rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ol, ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote { margin: 0; }
em { font-style: italic; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 1rem; left: 1rem; z-index: 2000;
  padding: 0.75rem 1.25rem; background: var(--fg); color: var(--bg); border-radius: 999px;
  transform: translateY(-200%); transition: transform 0.3s var(--ease);
}
.skip-link:focus { transform: none; }

main > section, .footer { position: relative; padding-block: clamp(6rem, 13vw, 11rem); }

/* ---------- Typography ---------- */
.display, .hero__title, .footer__big, .menu__word, .words__quote blockquote,
.hcard__end-kicker, .film__title, .entry__name, .sessions__title, .events__title, .inquiry__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
}
.display {
  --wght: 340;
  font-size: clamp(2.7rem, 1.6rem + 5.4vw, 7.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: var(--wght);
  font-variation-settings: "SOFT" 60, "WONK" 0;
  max-width: 14ch;
}
.display em, .hero__title em, .footer__big em, .hcard__end-kicker em, .film__title em, .wild__band-text em {
  font-weight: 300;
  color: var(--accent);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.eyebrow, .chapter-label {
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.chapter-label { margin-bottom: 1.6rem; display: flex; align-items: center; flex-wrap: wrap; }
.chapter-label span { color: var(--accent); display: inline-flex; align-items: center; }
.chapter-label span::after {
  content: ""; width: 2.8em; height: 1px; background: currentColor; margin-inline: 0.9em; opacity: 0.7;
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 1rem + 0.7vw, 1.5rem);
  line-height: 1.45;
  font-weight: 350;
  color: var(--fg);
}

/* split-text pieces */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.word__inner { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.pill {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  border: 1px solid transparent; cursor: pointer;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.pill:hover::before { transform: none; }
.pill--solid { background: var(--fg); color: var(--bg); box-shadow: var(--shadow-soft); }
.pill--solid:hover { color: #14110e; }
.pill--ghost { border-color: color-mix(in srgb, var(--fg) 35%, transparent); color: var(--fg); }
.pill--ghost:hover { color: #14110e; border-color: var(--accent); }
.pill--block { width: 100%; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  --r: 0vmax;
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  background: #0e0d0c; color: #f3ede4;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
          mask: radial-gradient(circle at 50% 50%, transparent var(--r), #000 calc(var(--r) + 1px));
  animation: loader-failsafe 0.6s 8s forwards; /* never trap the page if scripts fail */
}
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }
.loader__inner { display: grid; justify-items: center; gap: 1.4rem; }
.aperture { width: min(42vmin, 260px); height: auto; overflow: visible; }
.aperture__glass { fill: #050505; }
.aperture__blade { fill: #1d1a17; stroke: rgba(201, 164, 106, 0.55); stroke-width: 0.8; }
.aperture__ring { fill: none; stroke: #c9a46a; stroke-width: 1.2; }
.aperture__ring--outer { stroke-opacity: 0.3; stroke-dasharray: 2 5; }
.loader__brand {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem); letter-spacing: 0.02em;
}
.loader__count { font-size: 0.72rem; letter-spacing: 0.3em; color: rgba(243, 237, 228, 0.55); font-variant-numeric: tabular-nums; }

/* ---------- Film grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 2500; pointer-events: none;
  opacity: 0.055;
  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)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Custom cursor ---------- */
.cursor { display: none; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__dot, .cursor__ring {
  position: fixed; top: 0; left: 0; z-index: 3100; pointer-events: none;
  border-radius: 50%;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; mix-blend-mode: difference; }
.cursor__ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 1px solid #fff; mix-blend-mode: difference;
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease),
              background-color 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor__label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: #14110e; opacity: 0; transition: opacity 0.25s;
}
.cursor.is-hover .cursor__ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.cursor.has-label .cursor__ring {
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  background: var(--accent); border-color: var(--accent); mix-blend-mode: normal;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cursor.has-label .cursor__label { opacity: 1; }
.cursor.has-label .cursor__dot { opacity: 0; }
.cursor.is-hidden .cursor__ring, .cursor.is-hidden .cursor__dot { opacity: 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 2000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  color: var(--fg);
  transition: transform 0.6s var(--ease), background-color 0.4s, backdrop-filter 0.4s, padding 0.4s;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
          backdrop-filter: blur(14px) saturate(1.2);
  padding-block: 0.75rem;
}
.header.is-hidden { transform: translateY(-110%); }
.menu-open .header {
  --bg: #0e0d0c; --fg: #f3ede4; --accent: #c9a46a; --shadow: rgba(0, 0, 0, 0.3);
  background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none;
}
.logo { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 600; letter-spacing: 0.02em; }
.logo__mark {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--accent);
  background:
    radial-gradient(circle, var(--accent) 0 3px, transparent 3.5px),
    conic-gradient(from 30deg, transparent 0 50deg, color-mix(in srgb, var(--accent) 45%, transparent) 50deg 60deg,
      transparent 60deg 110deg, color-mix(in srgb, var(--accent) 45%, transparent) 110deg 120deg,
      transparent 120deg 170deg, color-mix(in srgb, var(--accent) 45%, transparent) 170deg 180deg,
      transparent 180deg 230deg, color-mix(in srgb, var(--accent) 45%, transparent) 230deg 240deg,
      transparent 240deg 290deg, color-mix(in srgb, var(--accent) 45%, transparent) 290deg 300deg,
      transparent 300deg 350deg, color-mix(in srgb, var(--accent) 45%, transparent) 350deg 360deg);
  transition: transform 0.8s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(120deg); }
.logo__text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.logo__text em { color: var(--accent); font-weight: 300; }
.header__actions { display: flex; align-items: center; gap: 0.6rem; }
.header .pill { padding: 0.8em 1.4em; font-size: 0.72rem; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 0.7em 1.2em; cursor: pointer;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.3s;
}
.menu-btn:hover { border-color: var(--accent); }
.menu-btn__lines { display: grid; gap: 5px; width: 20px; }
.menu-btn__lines i { display: block; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__lines i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ---------- Full-screen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 1900;
  background: #0e0d0c; color: #f3ede4;
  --accent: #c9a46a;
  overflow: auto;
}
.menu[hidden] { display: none; }
.menu__inner {
  min-height: 100%;
  display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr auto;
  gap: 2rem 4rem;
  padding: 7rem var(--gutter) 2rem;
}
.menu__nav ol { display: grid; gap: 0.2rem; counter-reset: m; }
.menu__nav a {
  display: inline-flex; align-items: baseline; gap: 1.1rem;
  padding-block: 0.15rem;
  transition: opacity 0.4s, transform 0.6s var(--ease);
}
.menu__nav ol:hover a { opacity: 0.35; }
.menu__nav ol:hover a:hover, .menu__nav a:focus-visible { opacity: 1; transform: translateX(1rem); }
.menu__num { font-size: 0.8rem; color: #c9a46a; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }
.menu__word {
  font-size: clamp(2.3rem, 1rem + 5vw, 5.4rem); line-height: 1.05; font-weight: 300; letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  transition: font-variation-settings 0.5s;
}
.menu__nav a:hover .menu__word { font-style: italic; color: #c9a46a; font-variation-settings: "SOFT" 100, "WONK" 1; }
.menu__preview {
  align-self: center; justify-self: center;
  width: min(100%, 420px); aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden;
  rotate: 3deg;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 10px 20px rgba(0, 0, 0, 0.4);
}
.menu__preview img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s; }
.menu__foot {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(243, 237, 228, 0.14);
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 237, 228, 0.6);
}
.menu__social { display: flex; gap: 1.6rem; }
.menu__social a:hover { color: #c9a46a; }

/* ---------- Side chapter indicator ---------- */
.chapters {
  position: fixed; right: clamp(14px, 1.6vw, 28px); top: 50%; z-index: 1500;
  transform: translateY(-50%);
  display: none;
}
.chapters ol { position: relative; display: grid; gap: 1.15rem; }
.chapters__track {
  position: absolute; top: 4px; bottom: 4px; left: 50%; width: 1px;
  background: var(--line); transform: translateX(-50%);
}
.chapters__fill {
  position: absolute; inset: 0; background: var(--accent);
  transform-origin: top; transform: scaleY(var(--progress, 0));
}
.chapters a {
  position: relative; display: block;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--fg) 55%, transparent);
  transition: transform 0.4s var(--ease), background-color 0.4s, border-color 0.4s;
}
.chapters a.is-active { background: var(--accent); border-color: var(--accent); transform: scale(1.45); }
.chapters a::after {
  content: attr(data-label);
  position: absolute; right: 22px; top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg); opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.4s var(--ease);
}
.chapters a:hover::after, .chapters a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
@media (min-width: 1024px) { .chapters { display: block; } }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  padding-block: 7rem 6rem;
}
.hero__collage { position: absolute; inset: 0; pointer-events: none; }
.hero__img {
  position: absolute;
  overflow: hidden; border-radius: var(--radius);
  rotate: var(--rot, 0deg);
  translate: calc(var(--mx, 0) * 1px) calc(var(--my, 0) * 1px); /* mouse parallax (main.js) */
  box-shadow: var(--shadow-deep);
  will-change: transform;
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.82) saturate(0.95); }
.hero__img--1 { --rot: -6deg; left: 5%;  top: 15%;    width: clamp(150px, 17vw, 300px); aspect-ratio: 4 / 5; }
.hero__img--2 { --rot: 5deg;  right: 6%; top: 12%;    width: clamp(130px, 14vw, 250px); aspect-ratio: 1; }
.hero__img--3 { --rot: 4deg;  left: 15%; bottom: 7%;  width: clamp(110px, 11vw, 200px); aspect-ratio: 3 / 4; }
.hero__img--4 { --rot: -3deg; right: 11%; bottom: 9%; width: clamp(180px, 21vw, 380px); aspect-ratio: 3 / 2; }
.hero__img--5 { --rot: -2deg; left: 30%; top: 5%;     width: clamp(90px, 9vw, 160px);   aspect-ratio: 1; }
.hero__content { position: relative; z-index: 2; text-align: center; max-width: 1100px; display: grid; justify-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 0.9em; flex-wrap: wrap; justify-content: center; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero__title {
  margin-block: 1.6rem 1.8rem;
  font-size: clamp(3.4rem, 1rem + 10vw, 11rem);
  line-height: 0.9;
  font-weight: 300;
  letter-spacing: -0.045em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-shadow: 0 10px 50px rgba(0, 0, 0, 0.55);
}
.hero__title em { display: block; }
.hero__sub { max-width: 46ch; color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 2.2rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; z-index: 2; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.6rem;
  font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}
.scroll-cue__line { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: var(--accent); animation: cue 2s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.about__visual { position: relative; padding-bottom: 12%; }
.about__portrait { width: 86%; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.about__legacy {
  position: absolute; right: 0; bottom: 0; width: 50%;
  background: #f1ead8; color: #2b2620;
  padding: 0.6rem 0.6rem 0;
  rotate: 4deg;
}
.about__legacy img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; filter: sepia(0.35) contrast(1.05); }
.about__legacy figcaption { font-family: var(--font-hand); font-size: 1.15rem; padding: 0.4rem 0.2rem 0.5rem; line-height: 1.2; }
.about__story { display: grid; gap: 1.2rem; margin-top: 2.4rem; max-width: 58ch; }
.about__story p:not(.lead) { color: var(--muted); }
.signature {
  font-family: var(--font-hand); font-size: clamp(2.6rem, 4vw, 3.6rem); color: var(--accent);
  rotate: -5deg; margin-top: 1.5rem; display: inline-block;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  margin-top: clamp(5rem, 9vw, 8rem); padding-top: 3rem;
  border-top: 1px solid var(--line);
}
.stats li { display: flex; flex-wrap: wrap; align-items: baseline; }
.stats__num {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.8rem, 1.6rem + 3.6vw, 5.4rem); line-height: 1; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.stats__plus { font-family: var(--font-display); color: var(--accent); font-size: clamp(1.6rem, 3vw, 2.6rem); margin-left: 0.1em; }
.stats__label { flex-basis: 100%; margin-top: 0.8rem; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* ---------- Chapter heads ---------- */
.chapter-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.chapter-head__intro { max-width: 46ch; margin-top: 1.8rem; color: var(--muted); font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); }
.chapter-head--split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; }

/* ---------- Weddings: horizontal gallery ---------- */
.hscroll { overflow: hidden; }
.hscroll__track {
  display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem);
  padding-inline: var(--gutter);
  width: max-content;
}
.hcard { flex: none; }
.hcard__img {
  height: min(64svh, 600px);
  aspect-ratio: 2 / 3;
  overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
}
.hcard--wide .hcard__img { aspect-ratio: 3 / 2; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; scale: 1.18; }
.hcard figcaption {
  margin-top: 1rem; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.hcard figcaption span { font-family: var(--font-display); font-style: italic; color: var(--accent); letter-spacing: 0; font-size: 1rem; margin-right: 0.5rem; }
.hcard--end {
  width: min(36vw, 460px); padding-inline: 2rem 4rem;
  display: grid; gap: 2rem; align-content: center; justify-items: start;
}
.hcard__end-kicker { font-size: clamp(2rem, 1rem + 3vw, 3.6rem); line-height: 1.02; font-weight: 300; letter-spacing: -0.03em; }
.hcard__end-kicker em { display: block; }

@media (max-width: 767px) {
  .hscroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hscroll::-webkit-scrollbar { display: none; }
  .hcard { scroll-snap-align: center; }
  .hcard__img { height: 58svh; max-height: 460px; }
  .hcard--wide .hcard__img { height: auto; width: 86vw; }
  .hcard__img img { scale: 1; }
  .hcard--end { width: 78vw; padding-inline: 1rem 2rem; }
}

/* ---------- Featured film ---------- */
.film { margin-top: clamp(5rem, 10vw, 9rem); }
.film__poster {
  position: relative; display: block; width: 100%;
  aspect-ratio: 21 / 9; padding: 0; border: 0; overflow: hidden;
  border-radius: 6px; background: #000; cursor: pointer; text-align: left; color: #fff;
}
.film__poster img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter 0.8s; filter: brightness(0.72); }
.film__poster:hover img { transform: scale(1.05); filter: brightness(0.6); }
.film__poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
}
.film__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: clamp(76px, 9vw, 120px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.film__play::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.film__play svg { width: 34%; fill: #fff; margin-left: 6%; }
.film__poster:hover .film__play { transform: translate(-50%, -50%) scale(1.08); background: rgba(201, 164, 106, 0.85); }
.film__meta { position: absolute; left: clamp(1.25rem, 3vw, 3rem); bottom: clamp(1.25rem, 3vw, 2.6rem); z-index: 2; display: grid; gap: 0.5rem; }
.film__kicker { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.8; }
.film__title { font-size: clamp(1.4rem, 0.8rem + 2.6vw, 3rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.film__title em { color: #e3c690; }

/* ---------- Events ---------- */
.events { margin-top: clamp(5rem, 10vw, 9rem); }
.events__head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.5rem; }
.events__head p { color: var(--muted); max-width: 44ch; justify-self: end; }
.events__title, .sessions__title { font-size: clamp(1.9rem, 1rem + 2.6vw, 3.2rem); font-weight: 350; line-height: 1.05; letter-spacing: -0.02em; }
.events__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 1.5rem); }
.events__item {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
}
.events__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.events__item:hover img { transform: scale(1.07); }
.events__item span {
  position: absolute; left: 0.8rem; bottom: 0.8rem;
  padding: 0.45em 0.95em; border-radius: 999px;
  background: rgba(20, 17, 14, 0.45); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}

/* ---------- Studio ---------- */
.studio__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(170px, 21vw, 320px);
  gap: clamp(0.6rem, 1.2vw, 1.1rem);
}
.studio__item { overflow: hidden; border-radius: 3px; background: #d8d8d6; box-shadow: var(--shadow-soft); }
.studio__item--tall, .studio__item:nth-child(5) { grid-row: span 2; }
.studio__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.98);
  transition: filter 1.1s var(--ease), transform 1.4s var(--ease);
}
.studio__item.is-colour img, .studio__item:hover img { filter: grayscale(0) contrast(1) brightness(1); transform: scale(1.035); }
.sessions {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center;
  margin-top: clamp(5rem, 10vw, 9rem);
}
.sessions__img { aspect-ratio: 16 / 11; overflow: hidden; border-radius: var(--radius); }
.sessions__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); }
.sessions__list { margin-block: 2rem 2.4rem; border-top: 1px solid var(--line); }
.sessions__list li {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.7vw, 1.55rem); font-weight: 350;
  transition: padding-left 0.5s var(--ease), color 0.3s;
}
.sessions__list li:hover { padding-left: 0.8rem; }
.sessions__list span { font-family: var(--font-body); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--muted); }

/* ---------- Into the Wild ---------- */
.wild { padding-top: 0; overflow-x: clip; }
.wild__opening { position: relative; }
.wild__hero { height: 88svh; overflow: hidden; position: relative; }
.wild__hero img { width: 100%; height: 125%; object-fit: cover; filter: saturate(0.85) brightness(0.8); }
.wild__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 35%, transparent) 0%, transparent 35%, var(--bg) 96%);
}
.wild__intro { position: relative; z-index: 1; margin-top: -32svh; }
.wild__quote { margin-top: 2.6rem; padding-left: 1.6rem; border-left: 1px solid var(--accent); max-width: 34ch; }
.wild__quote p { font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 1rem + 1.3vw, 2.1rem); line-height: 1.3; }
.wild__quote cite { display: block; margin-top: 0.8rem; font-family: var(--font-hand); font-style: normal; font-size: 1.8rem; color: var(--accent); }

.journal { display: grid; gap: clamp(5rem, 11vw, 10rem); margin-top: clamp(6rem, 12vw, 10rem); }
.entry { display: grid; grid-template-columns: 7fr 5fr; align-items: center; }
.entry__img {
  grid-column: 1; grid-row: 1;
  aspect-ratio: 4 / 3; overflow: hidden;
  border: clamp(6px, 0.9vw, 12px) solid #f1ead8;
  rotate: -1.5deg;
}
.entry__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.entry__img:hover img { transform: scale(1.05); }
.entry__note {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 1;
  margin-left: -5rem;
  padding: 2.4rem 2.2rem 2.2rem;
  color: #2a2a22;
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(60, 80, 70, 0.13) 31px 32px),
    linear-gradient(135deg, #f2ebd9, #e8dfc8);
  rotate: 1.2deg;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.18), 0 18px 40px rgba(0, 0, 0, 0.35);
}
.entry__note::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 120px; height: 30px;
  translate: -50% 0; rotate: -3deg;
  background: rgba(226, 214, 180, 0.75);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.entry--flip { grid-template-columns: 5fr 7fr; }
.entry--flip .entry__img { grid-column: 2; rotate: 1.5deg; }
.entry--flip .entry__note { grid-column: 1; margin-left: 0; margin-right: -5rem; rotate: -1.2deg; }
.entry__no { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: #8a6a32; }
.entry__name { font-size: clamp(1.7rem, 1rem + 1.8vw, 2.5rem); font-weight: 450; line-height: 1.05; margin-top: 0.5rem; letter-spacing: -0.02em; }
.entry__latin { font-family: var(--font-display); font-style: italic; color: #5a5a4c; margin-top: 0.2rem; }
.entry__place { margin-top: 1rem; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: #3f5a4a; }
.entry__place::before { content: "◎"; margin-right: 0.5em; color: #8a6a32; }
.entry__hand { font-family: var(--font-hand); font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.8rem); line-height: 1.2; color: #2f4a3c; margin-top: 1rem; }

.wild__band { position: relative; height: 72svh; overflow: hidden; margin-top: clamp(6rem, 12vw, 10rem); }
.wild__band img { width: 100%; height: 130%; object-fit: cover; filter: brightness(0.7); }
.wild__band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, var(--bg), transparent 30%, transparent 70%, var(--bg));
}
.wild__band figcaption { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: var(--gutter); text-align: center; }
.wild__band-text {
  font-family: var(--font-display); font-weight: 300; color: #fff;
  font-size: clamp(2rem, 1rem + 4.6vw, 5.6rem); line-height: 1; letter-spacing: -0.03em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.wild__band-text em { display: block; color: #e3c690; }

/* ---------- Testimonials ---------- */
.words__inner { text-align: center; display: grid; justify-items: center; }
.words__inner .chapter-label { justify-content: center; }
.words__stage { display: grid; width: 100%; margin-top: 1rem; }
.words__quote {
  grid-area: 1 / 1; display: grid; justify-items: center; align-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.words__quote.is-active { opacity: 1; visibility: visible; }
.words__quote blockquote {
  max-width: 24ch;
  font-size: clamp(1.8rem, 1rem + 3.4vw, 4rem); line-height: 1.12; font-weight: 320; letter-spacing: -0.025em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.words__quote figcaption { margin-top: 2rem; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.words__controls { display: flex; align-items: center; gap: 1.4rem; margin-top: 3.2rem; }
.words__btn {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.1rem;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.words__btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.words__progress { width: 160px; height: 1px; background: var(--line); overflow: hidden; }
.words__progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.words__progress.is-running span { animation: progress var(--dur, 7s) linear forwards; }
.words__progress.is-paused span { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.18; filter: grayscale(0.4); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--bg), color-mix(in srgb, var(--bg) 55%, transparent) 50%, var(--bg)); }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.contact__intro .lead { margin-top: 2rem; max-width: 40ch; }
.contact__direct { display: grid; gap: 0.75rem; margin-top: 2.5rem; max-width: 440px; }
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.95rem 1.2rem; border-radius: 16px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--fg) 4%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.35s, background-color 0.35s, box-shadow 0.35s;
}
.contact-card:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: var(--shadow-soft); }
.contact-card small { display: block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-card__icon {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #14110e;
}
.contact-card__icon svg { width: 20px; height: 20px; fill: currentColor; }
.contact__address { font-style: normal; margin-top: 2.2rem; display: grid; gap: 0.2rem; color: var(--muted); }
.contact__address strong { color: var(--fg); font-weight: 600; }
.contact__address a { color: var(--accent); margin-top: 0.3rem; width: fit-content; border-bottom: 1px solid currentColor; }
.socials { display: flex; gap: 0.7rem; margin-top: 2rem; }
.social {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line);
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.social svg { width: 20px; height: 20px; fill: currentColor; }
.social:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.inquiry {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.6rem, 3vw, 3rem);
}
.inquiry__title { font-size: 2.1rem; font-weight: 300; font-style: italic; margin-bottom: 1.5rem; }
.field { position: relative; margin-bottom: 1.3rem; }
.field input, .field textarea {
  width: 100%; background: transparent; color: var(--fg);
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 1.45rem 0 0.55rem; font: inherit; font-size: 1rem;
  transition: border-color 0.3s;
  color-scheme: dark;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field label {
  position: absolute; left: 0; top: 1.4rem; pointer-events: none;
  color: var(--muted); transition: top 0.3s var(--ease), font-size 0.3s, color 0.3s, letter-spacing 0.3s;
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-static {
  top: 0; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent);
}
.field.is-invalid input { border-bottom-color: #e58b7b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.chips { border: 0; padding: 0; margin: 0.4rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips legend { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; padding: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 0.55em 1.1em; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.86rem; cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chips label:hover span { border-color: var(--accent); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #14110e; }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.inquiry .pill { margin-top: 0.6rem; }
.inquiry__status { margin-top: 1rem; min-height: 1.5em; font-size: 0.92rem; }
.inquiry__status.is-error { color: #e58b7b; }
.inquiry__status.is-success { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(5rem, 9vw, 8rem) 2rem; border-top: 1px solid var(--line); }
.footer__big {
  font-size: clamp(3.2rem, 0.5rem + 12vw, 13rem); line-height: 0.88; font-weight: 300; letter-spacing: -0.05em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--muted);
}
.footer__top:hover { color: var(--accent); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2800;
  display: grid; place-items: center;
  background: rgba(8, 8, 8, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: var(--gutter);
}
.lightbox[hidden] { display: none; }
.lightbox__frame {
  width: min(1200px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  display: grid; place-items: center;
}
.lightbox__frame iframe { width: 100%; height: 100%; border: 0; }
.lightbox__msg { color: #f3ede4; text-align: center; padding: 2rem; max-width: 40ch; }
.lightbox__msg strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: 2rem; margin-bottom: 0.5rem; }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox__close:hover { background: #fff; color: #000; }

/* Shared shadow utility */
.shadow-deep { box-shadow: var(--shadow-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .about__grid, .contact__grid, .sessions, .chapter-head--split, .events__head { grid-template-columns: 1fr; }
  .about__visual { max-width: 560px; }
  .events__head p { justify-self: start; }
  .events__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .menu__inner { grid-template-columns: 1fr; }
  .menu__preview { display: none; }
}
@media (max-width: 767px) {
  .header .pill { display: none; }
  .menu-btn { padding: 0.65em 1em; }
  .hero__img { opacity: 0.55; }
  .hero__img--1 { left: -6%; top: 9%; width: 36vw; }
  .hero__img--2 { right: -5%; top: 12%; width: 30vw; }
  .hero__img--3 { left: 4%; bottom: 6%; width: 26vw; }
  .hero__img--4 { right: -8%; bottom: 10%; width: 46vw; }
  .hero__img--5 { display: none; }
  .studio__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 52vw; }
  .studio__item:nth-child(6) { grid-column: 1 / -1; }
  .entry, .entry--flip { grid-template-columns: 1fr; }
  .entry__img, .entry--flip .entry__img { grid-column: 1; grid-row: 1; }
  .entry__note, .entry--flip .entry__note { grid-column: 1; grid-row: 2; margin: -2.5rem 1rem 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .film__poster { aspect-ratio: 4 / 3; }
  .words__progress { width: 90px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .loader { display: none; }
  .grain, .scroll-cue__line::after, .film__play::before { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
