/* Baanchan Innovation & Produce
   Concept: the whole site is a stage. Black house lights, a warm spotlight,
   Baanchan red for the production/studio world, a scene change to navy and
   gold for The Human Lab. */

:root {
  --ink: #000;
  --stage: #151517;
  --stage-2: #1d1d20;
  --paper: #f2ede4;
  --ash: #a39e94;
  --line: rgba(242, 237, 228, .14);
  --red: #e0262e;
  --red-ink: #ff4d53;
  --navy: #0e1a3f;
  --navy-2: #16245a;
  --gold: #cda85e;

  --f-body: "Anuphan", system-ui, sans-serif;
  --f-display: "Bodoni Moda", "Chonburi", Georgia, serif;
  --f-thai: "Chonburi", "Bodoni Moda", serif;

  --wrap: min(1240px, 100% - 2 * var(--gut));
  --gut: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 300 17px/1.75 var(--f-body);
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.15; }
p { margin: 0 0 1em; }
ol, ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { left: 8px; }
.nw { display: inline-block; }
[hidden] { display: none !important; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--paper); border-radius: 999px;
  font: 500 15px/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn--ghost { background: transparent; color: var(--paper); border-color: rgba(242,237,228,.45); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--paper); border-color: var(--paper); color: var(--navy); }

.link {
  display: inline-block; background: none; border: 0; padding: 0 0 2px; cursor: pointer;
  color: var(--paper); font: 500 15px/1.4 var(--f-body); text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.link:hover { color: var(--red-ink); }

/* ---------- viewfinder corners (from the camera-viewfinder reference) ---------- */
.vf { position: absolute; pointer-events: none; }
.vf i { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(242,237,228,.7); }
.vf i:nth-child(1) { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.vf i:nth-child(2) { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.vf i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.vf i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-right: 8px; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--ink);
  display: grid; place-items: center; align-content: center; gap: 22px;
}
.vf--loader { inset: 24px; }
.loader__rec { position: absolute; top: 40px; left: 46px; font: 500 12px/1 var(--f-body); letter-spacing: .12em; }
.loader__mark { width: min(260px, 60vw); opacity: .9; }
.loader__count { font: 400 clamp(64px, 12vw, 140px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.loader__count small { font-size: .35em; color: var(--ash); margin-left: 4px; }
.loader__bar { width: min(260px, 60vw); height: 1px; background: var(--line); }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s linear; }
.curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; background: #5b0d10 linear-gradient(90deg, rgba(0,0,0,.35) 0 2%, transparent 2% 6%) 0 0 / 60px 100%; transform: scaleX(0); }
.curtain--l { left: 0; transform-origin: left; }
.curtain--r { right: 0; transform-origin: right; }

.loader.is-closing .curtain { transform: scaleX(1); transition: transform .55s var(--ease); }
.loader.is-open { background: transparent; pointer-events: none; }
.loader.is-open > :not(.curtain) { opacity: 0; }
.loader.is-open .curtain--l { transform: translateX(-101%) scaleX(1); transition: transform 1.1s var(--ease); }
.loader.is-open .curtain--r { transform: translateX(101%) scaleX(1); transition: transform 1.1s var(--ease); }
.loader.is-gone { display: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--gut);
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.nav.is-solid { background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.nav__brand img { width: 150px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { font-size: 15px; font-weight: 400; text-decoration: none; color: rgba(242,237,228,.78); position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--paper); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--paper); transition: transform .3s; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mmenu { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.96); display: grid; place-items: center; }
.mmenu[hidden] { display: none; }
.mmenu nav { display: grid; gap: 14px; text-align: center; }
.mmenu a { font: 400 28px/1.3 var(--f-display); text-decoration: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero__stage { position: absolute; inset: 0; z-index: -1; --x: 62%; --y: 42%; --r: 34vmax; }
.hero__slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 1.6s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 9s linear; }
.slide.is-on img { transform: scale(1); }
/* House lights down: everything is dark and desaturated except the spotlight pool */
.hero__dark {
  position: absolute; inset: 0;
  background: radial-gradient(circle var(--r) at var(--x) var(--y), rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 35%, rgba(0,0,0,.9) 75%, #000 100%);
  backdrop-filter: grayscale(1);
  -webkit-backdrop-filter: grayscale(1);
  -webkit-mask: radial-gradient(circle calc(var(--r) * .55) at var(--x) var(--y), transparent 0 30%, #000 100%);
          mask: radial-gradient(circle calc(var(--r) * .55) at var(--x) var(--y), transparent 0 30%, #000 100%);
}
.hero__beam {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle calc(var(--r) * .5) at var(--x) var(--y), rgba(255,226,170,.16), transparent 70%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 45%; background: linear-gradient(transparent, #000); z-index: -1; }

.vf--hero { inset: 84px var(--gut) 28px; }
.hero__hud { position: absolute; font: 500 12px/1 var(--f-body); letter-spacing: .1em; color: rgba(242,237,228,.8); font-variant-numeric: tabular-nums; }
.hero__hud--tl { top: 104px; left: calc(var(--gut) + 22px); }
.hero__hud--tr { top: 104px; right: calc(var(--gut) + 22px); }

.hero__copy { width: var(--wrap); margin: 0 auto; padding: 0 0 clamp(80px, 13vh, 140px); position: relative; }
.hero__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(46px, 9.2vw, 148px); line-height: .96; letter-spacing: -.02em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; padding-left: clamp(0px, 8vw, 140px); }
.hero__title em { font-style: italic; }
.is-ready .hero__title .line > span { transform: none; }
.hero__th { max-width: 34em; margin: 28px 0 32px; font-size: clamp(16px, 1.6vw, 20px); color: rgba(242,237,228,.86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__th, .hero__actions { opacity: 0; transform: translateY(14px); transition: opacity .9s .5s, transform .9s .5s var(--ease); }
.is-ready .hero__th, .is-ready .hero__actions { opacity: 1; transform: none; }

.hero__slate { position: absolute; right: calc(var(--gut) + 22px); bottom: 48px; text-align: right; font-size: 13px; color: rgba(242,237,228,.8); }
.hero__slate-k { display: block; color: var(--ash); font-size: 12px; }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.sec-head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head__logo { width: 170px; opacity: .9; }
.sec-title { font: 400 clamp(40px, 6.4vw, 92px)/1 var(--f-display); letter-spacing: -.015em; }
.sec-desc { font-size: clamp(17px, 1.5vw, 19px); color: rgba(242,237,228,.82); max-width: 40em; }
.sub-title { font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--f-display); margin-bottom: 8px; }
.sub-note { color: var(--ash); font-size: 15px; margin-bottom: 26px; }

/* ---------- about ---------- */
.about { padding: clamp(96px, 14vw, 180px) 0 clamp(80px, 10vw, 140px); }
.about__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(80px, 11vw, 150px); }
.about__quote { font: 400 clamp(30px, 4.2vw, 60px)/1.35 var(--f-thai); letter-spacing: 0; text-wrap: balance; }
.about__body .lead { font-size: 20px; font-weight: 400; }
.about__body p { color: rgba(242,237,228,.82); }
.about__body strong { color: var(--paper); font-weight: 500; }

.lineage__title { font: 400 clamp(22px, 2.2vw, 28px)/1.3 var(--f-thai); margin-bottom: 40px; color: rgba(242,237,228,.9); }
.lineage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: l; position: relative; }
.lineage::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: linear-gradient(90deg, var(--red), var(--red) 60%, var(--gold)); }
.lineage__item { position: relative; padding: 44px 32px 0 0; display: flex; flex-direction: column; gap: 18px; }
.lineage__item::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 6px #000, 0 0 30px var(--c); }
.lineage__step { font-size: 14px; color: var(--ash); }
.lineage__logo { height: 64px; width: auto; object-fit: contain; object-position: left; }
.lineage__logo--lab { height: 92px; }
.lineage__item p { color: rgba(242,237,228,.8); font-size: 16px; margin: 0; flex: 1; }
.lineage__item .link { align-self: flex-start; }

/* ---------- production ---------- */
.production { padding: clamp(96px, 12vw, 160px) 0; background: var(--ink); border-top: 1px solid var(--line); }
.services { border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); cursor: default;
  transition: padding .4s var(--ease);
}
.services h3 { font: 400 clamp(24px, 2.7vw, 40px)/1.1 var(--f-display); transition: color .3s; }
.services p { margin: 0; color: var(--ash); font-size: 16px; transition: color .3s; }
.services li:hover { padding-left: 18px; }
.services li:hover h3 { color: var(--red-ink); }
.services li:hover p { color: var(--paper); }
.services__peek { position: fixed; top: 0; left: 0; z-index: 30; width: 300px; aspect-ratio: 4/5; pointer-events: none; overflow: hidden; border-radius: 4px; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .3s, transform .3s var(--ease); }
.services__peek.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.services__peek img { width: 100%; height: 100%; object-fit: cover; }

.feature { width: var(--wrap); margin: clamp(100px, 12vw, 170px) auto 0; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.feature--flip { grid-template-columns: 1fr 1.1fr; margin-top: clamp(80px, 9vw, 130px); }
.feature--flip .feature__media { order: 2; }
.feature__media { position: relative; aspect-ratio: 1 / 1.05; }
.feature__poster { position: absolute; left: 0; top: 0; width: 76%; aspect-ratio: 3/2; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.feature__still { position: absolute; object-fit: cover; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.feature__still--a { right: 0; top: 34%; width: 56%; aspect-ratio: 3/2; }
.feature__still--b { left: 10%; bottom: 0; width: 44%; aspect-ratio: 3/2; }
.feature__media--single { aspect-ratio: 4/3; }
.feature__media--single img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2) contrast(1.05); }
.feature__kicker { color: var(--red-ink); font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.feature__title { font: 400 clamp(40px, 5vw, 72px)/1.05 var(--f-thai); margin-bottom: 24px; }
.feature__title span { display: block; font-family: var(--f-display); font-style: italic; font-size: .55em; color: rgba(242,237,228,.75); margin-top: 6px; }
.feature__text > p { color: rgba(242,237,228,.84); max-width: 34em; }
.credits { margin: 28px 0 28px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.credits div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.credits dt { color: var(--ash); }
.credits dd { margin: 0; }

/* ---------- arts studio ---------- */
.studio { padding: clamp(96px, 12vw, 160px) 0 0; background: var(--stage); }
.tickets { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; padding: 8px 2px 24px; margin-bottom: clamp(64px, 8vw, 110px); scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--red) transparent; }
.ticket {
  scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  background: var(--paper); color: #17171a; border-radius: 12px; padding: 0 22px 22px; overflow: hidden;
  -webkit-mask: radial-gradient(circle 11px at 0 calc(100% - 64px), transparent 98%, #000) , radial-gradient(circle 11px at 100% calc(100% - 64px), transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: transform .35s var(--ease);
}
.ticket:nth-child(even) { margin-top: 36px; }
.ticket:hover { transform: translateY(-6px) rotate(-.6deg); }
.ticket__clap { height: 30px; margin: 0 -22px 22px; background: repeating-linear-gradient(-45deg, #17171a 0 16px, #2e3a3d 16px 32px); }
.ticket h4 { font: 600 24px/1.1 var(--f-body); letter-spacing: -.01em; margin-bottom: 12px; }
.ticket p { font-size: 15px; line-height: 1.6; color: #3b3a38; flex: 1; margin-bottom: 30px; }
.ticket__for { display: block; padding-top: 14px; border-top: 2px dashed #b9b2a6; font-size: 13.5px; font-weight: 500; color: #a2121a; }

.classes { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 24px; }
.classes li { padding: 26px 24px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.classes li:hover { background: var(--stage-2); }
.classes li:last-child { grid-column: span 2; background: linear-gradient(120deg, rgba(224,38,46,.16), transparent 70%); }
.classes h4 { font: 400 24px/1.2 var(--f-display); margin-bottom: 8px; }
.classes p { margin: 0; font-size: 15px; color: var(--ash); }

.showcase { padding: clamp(80px, 10vw, 140px) 0 clamp(90px, 10vw, 140px); }
.showcase__head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.showcase__head p { margin: 0; color: rgba(242,237,228,.82); }
.reel { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.reel__track { display: flex; gap: 14px; width: max-content; animation: reel 60s linear infinite; }
.reel:hover .reel__track { animation-play-state: paused; }
.reel img { height: clamp(240px, 32vw, 420px); width: auto; border-radius: 4px; }
@keyframes reel { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- the human lab ---------- */
.lab {
  padding: clamp(110px, 13vw, 180px) 0 clamp(100px, 12vw, 160px);
  background: radial-gradient(120% 70% at 50% 0%, var(--navy-2), var(--navy) 55%, #08102a);
  overflow: hidden; --line: rgba(205,168,94,.22);
}
.lab__stars { position: absolute; inset: 0; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, var(--gold), transparent),
    radial-gradient(1px 1px at 72% 12%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 88% 40%, var(--gold), transparent),
    radial-gradient(1px 1px at 30% 62%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 55% 85%, var(--gold), transparent),
    radial-gradient(1px 1px at 8% 90%, #fff, transparent);
}
.lab__head { display: grid; justify-items: center; text-align: center; gap: 20px; margin-bottom: clamp(70px, 9vw, 120px); }
.lab__logo { width: min(320px, 70vw); }
.lab__tag { font: italic 400 clamp(20px, 2.4vw, 30px)/1.3 var(--f-display); color: var(--gold); margin: 0; }

.belief { max-width: 900px; margin: 0 auto clamp(90px, 11vw, 150px); text-align: center; }
.belief__intro { font-size: clamp(18px, 1.8vw, 22px); color: rgba(242,237,228,.85); margin-bottom: 30px; }
.belief__lines li { font: 400 clamp(30px, 5vw, 66px)/1.35 var(--f-thai); opacity: .14; transition: opacity 1s, color 1s; }
.belief__lines li.is-lit { opacity: 1; }
.belief__lines li:last-child { font-size: clamp(22px, 3vw, 40px); margin-top: 10px; }
.belief__lines li:last-child.is-lit { color: var(--gold); }

.lab__about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 90px); align-items: center; margin-bottom: clamp(90px, 11vw, 150px); }
.venn { width: 100%; max-width: 400px; justify-self: center; overflow: visible; }
.venn circle { fill: rgba(205,168,94,.07); stroke: var(--gold); stroke-width: 1; mix-blend-mode: screen; }
.venn text { fill: var(--paper); font: 400 15px var(--f-display); text-anchor: middle; }
.venn__star { fill: var(--gold); }
.lab__h2 { font: 400 clamp(28px, 3.4vw, 46px)/1.3 var(--f-thai); margin-bottom: 24px; }
.lab__about-text p { color: rgba(242,237,228,.84); }
.lab__h3 { font: 400 clamp(28px, 3vw, 40px)/1.2 var(--f-thai); margin-bottom: 32px; }

.offer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: clamp(90px, 11vw, 150px); }
.offer__item img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 200px 200px 6px 6px; margin-bottom: 20px; filter: saturate(.8); transition: filter .4s; }
.offer__item:hover img { filter: saturate(1.05); }
.offer__item h4 { font: 400 26px/1.2 var(--f-display); color: var(--gold); margin-bottom: 8px; }
.offer__item p { font-size: 15.5px; color: rgba(242,237,228,.8); margin: 0; }

.workshop { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); padding: clamp(28px, 4vw, 56px); border: 1px solid var(--line); border-radius: 10px; background: rgba(8,16,42,.45); }
.workshop__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.workshop__media img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 6px; }
.workshop__media img:last-child { margin-top: 60px; }
.workshop__kicker { color: var(--gold); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.workshop h3 { font: 400 clamp(30px, 3.4vw, 46px)/1.1 var(--f-display); margin-bottom: 20px; }
.workshop__text > p { color: rgba(242,237,228,.84); }
.modules { counter-reset: m; margin: 26px 0 32px; border-top: 1px solid var(--line); }
.modules li { counter-increment: m; display: grid; grid-template-columns: 44px 1fr; column-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.modules li::before { content: counter(m); grid-row: span 2; font: italic 400 26px/1 var(--f-display); color: var(--gold); }
.modules b { font-weight: 500; }
.modules span { font-size: 15px; color: rgba(242,237,228,.75); }

/* ---------- works ---------- */
.works { padding: clamp(96px, 12vw, 160px) 0; background: var(--ink); }
.works__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; color: rgba(242,237,228,.8); font: 400 14px/1 var(--f-body); cursor: pointer; transition: all .25s; }
.chip:hover { border-color: var(--paper); color: var(--paper); }
.works__more { display: flex; justify-content: center; margin-top: 36px; }
.chip.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.masonry { columns: 4 260px; column-gap: 14px; }
.masonry button { display: block; width: 100%; margin: 0 0 14px; padding: 0; border: 0; background: none; cursor: zoom-in; break-inside: avoid; border-radius: 4px; overflow: hidden; position: relative; }
.masonry img { width: 100%; height: auto; transition: transform .7s var(--ease), filter .4s; filter: grayscale(.25); }
.masonry button:hover img { transform: scale(1.04); filter: none; }
.masonry button span { position: absolute; left: 12px; bottom: 10px; font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.8); opacity: 0; transition: opacity .3s; }
.masonry button:hover span, .masonry button:focus-visible span { opacity: 1; }

/* ---------- contact ---------- */
.contact { padding: clamp(96px, 12vw, 160px) 0; background: radial-gradient(70% 90% at 15% 100%, rgba(224,38,46,.28), transparent 60%), var(--stage); }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__title { font: 400 clamp(34px, 4.6vw, 64px)/1.3 var(--f-thai); margin-bottom: 20px; }
.contact__lead { color: rgba(242,237,228,.82); margin-bottom: 34px; }
.line-btn { display: inline-flex; align-items: center; gap: 16px; padding: 14px 26px 14px 16px; border-radius: 999px; background: #06c755; color: #fff; text-decoration: none; font-weight: 500; font-size: 18px; transition: transform .25s; }
.line-btn:hover { transform: translateY(-2px); }
.line-btn svg { width: 40px; height: 40px; fill: #fff; }
.line-btn small { display: block; font-size: 12px; font-weight: 400; opacity: .85; line-height: 1.2; }
.line-btn span { line-height: 1.3; }
.map-btn { display: flex; align-items: center; gap: 14px; margin-top: 18px; max-width: 440px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .25s, background .25s; }
.map-btn:hover { border-color: var(--paper); background: rgba(255,255,255,.04); }
.map-btn svg { flex: none; width: 30px; height: 30px; fill: var(--red-ink); }
.map-btn small { display: block; font-size: 12px; color: var(--ash); }
.map-btn span { line-height: 1.4; font-size: 15px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; transition: border-color .25s, color .25s; }
.social a:hover { border-color: var(--paper); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.footer__social { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px !important; }
.footer__social a { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__social a:hover { border-color: var(--paper); }

.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); background: rgba(0,0,0,.45); border: 1px solid var(--line); border-radius: 10px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: rgba(242,237,228,.85); }
.form input, .form select, .form textarea { width: 100%; padding: 13px 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(242,237,228,.22); border-radius: 6px; color: var(--paper); font: 400 16px/1.4 var(--f-body); }
.form select option { color: #000; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form input[aria-invalid="true"] { border-color: var(--red-ink); }
.form__err { margin: 0; color: var(--red-ink); font-size: 14px; }
.form__note { margin: 0; font-size: 13px; color: var(--ash); }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
.footer { padding: 70px 0 40px; border-top: 1px solid var(--line); background: #000; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; align-items: center; }
.footer__logos { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.footer__logos img { height: 44px; width: auto; opacity: .85; }
.footer__logos .footer__lab { height: 64px; }
.footer__meta { font-size: 14px; color: var(--ash); }
.footer__meta p { margin: 0 0 4px; }
.footer__meta strong { color: var(--paper); font-weight: 500; }
.footer__copy { margin-top: 14px !important; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox img { max-height: 82vh; width: auto; border-radius: 4px; }
.lightbox figcaption { color: var(--ash); font-size: 14px; }
.lightbox button { background: none; border: 1px solid var(--line); color: var(--paper); width: 52px; height: 52px; border-radius: 50%; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox button:hover { border-color: var(--paper); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .offer { grid-template-columns: repeat(2, 1fr); }
  .classes { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .about__grid, .feature, .feature--flip, .showcase__head, .lab__about, .workshop, .contact__grid { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .lineage { grid-template-columns: 1fr; gap: 44px; padding-left: 34px; }
  .lineage::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; background: linear-gradient(var(--red), var(--red) 60%, var(--gold)); }
  .lineage__item { padding: 0; }
  .lineage__item::before { left: -34px; top: 4px; }
  .services li { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .services__peek { display: none; }
  .credits div { grid-template-columns: 1fr; gap: 2px; }
  .hero__hud--tr, .hero__slate { display: none; }
  .vf--hero { inset: 76px 12px 16px; }
  .hero__hud--tl { top: 92px; left: 30px; }
  .ticket:nth-child(even) { margin-top: 0; }
  .workshop__media img:last-child { margin-top: 30px; }
  .lightbox { grid-template-columns: 1fr; padding: 70px 12px 90px; }
  .lightbox__prev, .lightbox__next { position: absolute; bottom: 24px; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
}
@media (max-width: 520px) {
  .offer { grid-template-columns: 1fr 1fr; gap: 14px; }
  .offer__item h4 { font-size: 21px; }
  .offer__item p { font-size: 14px; }
  .masonry { columns: 2; column-gap: 8px; }
  .classes { grid-template-columns: 1fr; }
  .classes li:last-child { grid-column: auto; }
  .masonry button { margin-bottom: 8px; }
  .feature__media { aspect-ratio: 1 / 1.1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reel { overflow-x: auto; }
}

/* ---------- hero v2: AnimatedWebs film print + kinetic headline ----------
   Adapted from AnimatedWebs "16mm Film Grain and Light Leaks" and
   "Cursor-Repel Kinetic Headline", recoloured to the Baanchan stage. */
.film { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.film__grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .1; mix-blend-mode: overlay; image-rendering: pixelated; }
.film__flicker { position: absolute; inset: 0; background: #000; opacity: 0; }
.leak { position: absolute; border-radius: 50%; filter: blur(90px); mix-blend-mode: screen; opacity: 0; will-change: transform, opacity; transition: filter .6s; }
.leak--1 { width: 70vmax; height: 55vmax; left: -35vmax; top: -20vmax; background: radial-gradient(closest-side, var(--red), transparent); animation: leak1 19s ease-in-out infinite, glow1 19s linear infinite; }
.leak--2 { width: 60vmax; height: 50vmax; right: -30vmax; top: 10vmax; background: radial-gradient(closest-side, #ffb35c, transparent); animation: leak2 27s ease-in-out infinite, glow2 27s linear infinite; }
.leak--3 { width: 80vmax; height: 50vmax; left: 10vmax; bottom: -32vmax; background: radial-gradient(closest-side, #8c1a1f, transparent); animation: leak3 34s ease-in-out infinite, glow3 34s linear infinite; }
@keyframes leak1 { 0%,100% { transform: translate(0,0) rotate(0) } 50% { transform: translate(22vmax, 12vmax) rotate(25deg) } }
@keyframes leak2 { 0%,100% { transform: translate(0,0) } 40% { transform: translate(-18vmax, -8vmax) } 75% { transform: translate(-8vmax, 10vmax) } }
@keyframes leak3 { 0%,100% { transform: translate(0,0) scale(1) } 50% { transform: translate(-14vmax, -10vmax) scale(1.15) } }
/* irregular burn-in / burn-out, like a real leak */
@keyframes glow1 { 0% { opacity: 0 } 12% { opacity: .38 } 18% { opacity: .22 } 31% { opacity: .42 } 47% { opacity: .05 } 63% { opacity: 0 } 78% { opacity: .3 } 100% { opacity: 0 } }
@keyframes glow2 { 0% { opacity: .1 } 22% { opacity: 0 } 41% { opacity: .32 } 49% { opacity: .18 } 60% { opacity: .36 } 85% { opacity: .04 } 100% { opacity: .1 } }
@keyframes glow3 { 0% { opacity: .2 } 30% { opacity: .34 } 37% { opacity: .12 } 58% { opacity: .28 } 80% { opacity: 0 } 100% { opacity: .2 } }
.leak--warm { width: 70vmax; height: 45vmax; left: -10vmax; bottom: -18vmax; background: radial-gradient(closest-side, #ff6a3d, transparent); transition: opacity .6s; }
.hero.is-warm .leak--warm { opacity: .55; }
.film__dust i { position: absolute; display: none; border-radius: 50%; }
.film__dust svg { position: absolute; display: none; width: 60px; height: 60px; overflow: visible; }
.film__dust .is-on { display: block; }

/* kinetic headline: letters drop in, then the spotlight's cursor pushes them around */
.hero__title .w { display: inline-block; white-space: nowrap; }
.hero__title .ch { display: inline-block; transform: translateY(-120%); opacity: 0; transition: transform .9s cubic-bezier(.34,1.56,.64,1), opacity .4s, color .25s; transition-delay: calc(var(--i) * 30ms); will-change: translate; }
.hero__title.is-split .line > span { transform: none; transition: none; }
.is-ready .hero__title .ch { transform: none; opacity: 1; }
.hero__title.is-live .line { overflow: visible; }
.hero__title.is-live .ch { transition: color .25s; }
.hero__title .ch.is-flash { color: var(--red-ink); }

@media (max-width: 860px) {
  .leak { filter: blur(60px); }
}
@media (prefers-reduced-motion: reduce) {
  .leak { animation: none !important; opacity: .22; }
  .hero__title .ch { transform: none; opacity: 1; transition: none; }
}

/* ---------- feedback round 1 ---------- */
.credits__role { display: block; font-size: 13px; color: var(--ash); }
.ticket p, .ticket__for, .classes p, .sec-desc, .showcase__head p { text-wrap: pretty; line-break: strict; }
.contact__wrap { display: grid; gap: 8px; justify-items: start; }
.contact__title { margin-bottom: 18px; }
.contact__wrap .map-btn, .contact__wrap .social { margin-top: 10px; }
.services p { font-size: clamp(16px, 1.35vw, 19px); color: rgba(242,237,228,.78); }
.tickets { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); overflow: visible; scroll-snap-type: none; padding: 8px 0 0; }
.ticket:nth-child(even) { margin-top: 0; }
@media (min-width: 1081px) {
  .tickets { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ticket { grid-column: span 2; }
  .ticket:nth-child(n+4) { grid-column: span 3; }
}
