/* The Ballroom at Djakarta Theater
   Identity: a ballroom built by a cinema company. Colour, framing and motion come from the cinema:
   house dark, velvet, gold fittings, screen-white; photos cropped to film ratios (2.39:1 scope, 1.85:1 flat). */

:root {
  --house: #170A0E;        /* the auditorium with the lights down */
  --house-2: #211117;      /* raised surfaces on dark */
  --velvet: #5A1020;       /* seat and curtain velvet */
  --velvet-deep: #430C18;
  --gold: #D2B072;         /* same gold as senayan.theballroom.id: rails, numbers, buttons */
  --gold-hover: #F0D9A6;
  --on-gold: #16120A;
  --ivory: #F2E8E5;        /* screen white, text on dark */
  --ivory-2: rgba(242, 232, 229, .74);
  --ivory-3: rgba(242, 232, 229, .5);
  --paper: #ECE1DF;        /* the printed programme */
  --ink: #2A1219;
  --ink-2: #5E4A4F;
  --rule-dark: rgba(242, 232, 229, .16);
  --rule-light: rgba(42, 18, 25, .18);

  --f-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; /* same pair as senayan.theballroom.id */
  --f-text: Manrope, 'Helvetica Neue', Arial, sans-serif;

  /* Type scale: 13 / 15 / 16 / 18 / 28 / 38 / 50 / 68 */
  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-md: 1rem;
  --t-lg: 1.125rem;
  --t-xl: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
  --t-2xl: clamp(1.875rem, 1.4rem + 1.7vw, 2.375rem);
  --t-3xl: clamp(2.25rem, 1.6rem + 2.6vw, 3.125rem);
  --t-4xl: clamp(2.75rem, 1.7rem + 4.1vw, 4.25rem);

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 11vw, 168px);
  --ease-film: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --tb: 34px;          /* the top bar with the Plaza Senayan link and the languages */
  --tb-now: var(--tb); /* 0 once the page is scrolled and the top bar has slid away */
}
.is-scrolled { --tb-now: 0px; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--house);
  color: var(--ivory);
  font-family: var(--f-text);
  font-size: var(--t-md);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--ivory); color: var(--ink); padding: 10px 16px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type roles ---------- */
.h2 {
  font-family: var(--f-display);
  font-size: var(--t-4xl);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-size: var(--t-2xl);
  line-height: 1.15;
  letter-spacing: -.005em;
}
/* Cormorant Garamond is set at 500 throughout, matching senayan.theballroom.id */
.h3, .statement, .facts dd, .plan-num, .rider-row dt, .menu p, .people span { font-weight: 500; }
/* Cormorant defaults to old-style figures; brand names like "Cinema 21" and capacities read better with lining figures. */
.h2, .h3, .statement, .hero-title { font-variant-numeric: lining-nums; }

/* ---------- Buttons ---------- */
/* Buttons match senayan.theballroom.id: gold pill, Manrope 700, uppercase, lifts on hover */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-text); font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-line { border-color: rgba(242, 232, 229, .45); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--ivory); color: var(--ivory); background: rgba(242, 232, 229, .08); }

/* ---------- Top bar: back to Plaza Senayan, and the two languages (as on senayan.theballroom.id) ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 51; height: var(--tb);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-inline: var(--gutter);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(14, 5, 8, .5); border-bottom: 1px solid var(--rule-dark);
  transition: transform .4s ease, visibility 0s linear 0s;
}
.is-scrolled .topbar { transform: translateY(-100%); visibility: hidden; transition: transform .4s ease, visibility 0s linear .4s; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tb); color: var(--ivory-2); text-decoration: none; transition: color .2s ease; }
.topbar a:hover, .topbar a:focus-visible { color: var(--ivory); }
.tb-back { min-width: 0; }
.tb-back svg { flex: none; }
.tb-back span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lang { display: flex; flex: none; }
.lang a { padding: 0 9px; }
.lang a:last-child { padding-right: 0; }
.lang a[aria-current] { color: var(--gold); }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; top: var(--tb-now);
  display: flex; align-items: center; gap: 32px;
  height: 76px; padding-inline: var(--gutter);
  transition: background-color .4s ease, border-color .4s ease, opacity .8s ease, top .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(23, 10, 14, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom-color: var(--rule-dark);
}
.nav-brand { flex: none; display: block; padding: 6px 0; }
.nav-brand img { width: 134px; height: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: .875rem; font-weight: 600; letter-spacing: .02em; text-decoration: none;
  color: var(--ivory-2); padding: 6px 0; border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.nav-links a:hover { color: var(--ivory); border-bottom-color: var(--gold); }
.nav-cta { min-height: 44px; padding: 0 22px; font-size: .75rem; white-space: nowrap; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav { gap: 12px; height: 64px; }
  .nav-brand img { width: 116px; }
  .nav-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    background: transparent; border: 1px solid rgba(242, 232, 229, .45); border-radius: 999px; cursor: pointer;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  }
  .js .nav-links {
    position: fixed; inset: calc(64px + var(--tb-now)) 0 auto 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--gutter) 24px; background: var(--house);
    border-bottom: 1px solid var(--rule-dark);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .js .nav.is-open .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav.is-open { background: var(--house); }
  .nav-links a { font-family: var(--f-display); font-weight: 500; letter-spacing: 0; font-size: var(--t-2xl); color: var(--ivory); padding: 12px 0; border-bottom: 1px solid var(--rule-dark); }
  html:not(.js) .nav-links { display: none; }
}
@media (max-width: 420px) {
  .nav-cta { padding-inline: 16px; }
}
@media (max-width: 360px) { /* the smallest phones: logo, button and menu still fit on one line */
  .nav { gap: 8px; }
  .nav-brand img { width: 96px; }
  .nav-cta { padding-inline: 12px; }
  .nav-toggle { padding: 0 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 600px; max-height: 1100px;
  display: flex; align-items: flex-end;
  background: var(--house);
}
.hero-frame { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  /* Aim the stage screen at the middle of the band between the menu and the title, never above the menu and never past the picture's edge.
     --t and --m are the top and the middle of the screen in the photo, as a share of its width
     (gala dinner: 147 and 231 px down a picture 1000 px wide). Each shot of the reel sets its own. */
  object-position: 50% clamp(100%, max(88px + var(--tb) - var(--t, 14.7vw), clamp(300px, 50svh, 550px) - 212px + var(--tb) * .5 - var(--m, 23.1vw)), 0px);
  transform-origin: var(--o, 50% 33%);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 10, 14, .5) 0%, rgba(23, 10, 14, 0) 20%),
    linear-gradient(0deg, rgba(23, 10, 14, .94) 0%, rgba(23, 10, 14, .7) 28%, rgba(23, 10, 14, .2) 48%, rgba(23, 10, 14, 0) 62%),
    linear-gradient(90deg, rgba(23, 10, 14, .45) 0%, rgba(23, 10, 14, 0) 50%);
}

/* The reel: three nights in the same room. Each shot holds for one slow camera move, then dissolves into the next,
   the way a trailer cuts. main.js runs it after the opening sequence; without it the first shot simply stays. */
.hero { --dwell: 7s; --fade: 1.8s; }
.hero-reel { position: absolute; inset: 0; z-index: 0; } /* own stack: the shots' z-index stays under the shade */
.shot { position: absolute; inset: 0; overflow: hidden; }
.shot + .shot, .reel-on .shot { opacity: 0; }
.reel-on .shot.was-on { opacity: 1; z-index: 1; }
.reel-on .shot.is-on { opacity: 1; z-index: 2; transition: opacity var(--fade) ease; }
.reel-on .shot.is-on .hero-img, .reel-on .shot.was-on .hero-img {
  animation: reel-move calc(var(--dwell) + var(--fade)) cubic-bezier(.33, 0, .67, 1) both;
}
.reel-paused.reel-on .shot.is-on .hero-img, .reel-paused.reel-on .shot.was-on .hero-img, .reel-paused .hero-grain { animation-play-state: paused; }
@keyframes reel-move { from { transform: var(--from); } to { transform: var(--to); } }
/* Three camera moves, in turn: push in on the stage, track across the room, settle back from high and close. */
.shot:nth-child(3n+1) { --from: scale(1); --to: scale(1.08); }
.shot:nth-child(3n+2) { --from: scale(1.1) translateX(2.6%); --to: scale(1.1) translateX(-2.6%); }
.shot:nth-child(3n+3) { --from: scale(1.16) translateY(-5%); --to: scale(1.05) translateY(-2%); --o: 50% 64%; }

/* Film grain over picture and shade alike, moved a few times a second like a projected print. */
.hero-grain {
  position: absolute; inset: -50%; pointer-events: none;
  background: 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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .14; mix-blend-mode: overlay;
  animation: grain .8s steps(1) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); }
  60% { transform: translate(-3%, -8%); } 80% { transform: translate(8%, 3%); } 100% { transform: translate(0, 0); }
}

/* What is on screen, with a line that fills until the next cut, and a button that holds the reel. */
.reel-bar {
  position: absolute; z-index: 3;
  right: max(var(--gutter), calc((100% - 1280px) / 2 + var(--gutter)));
  bottom: clamp(40px, 7vh, 88px);
  min-height: 52px; display: flex; align-items: center; gap: 18px;
  animation: reel-bar-in 1s ease both;
}
.reel-bar[hidden] { display: none; }
@keyframes reel-bar-in { from { opacity: 0; } }
.reel-caption {
  min-width: 10.5em; text-align: right;
  font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: var(--t-lg); line-height: 1.2;
  color: var(--ivory); text-shadow: 0 1px 14px rgba(14, 5, 8, .7);
}
.reel-caption span { display: block; transition: opacity .35s ease; }
.reel-caption.is-swapping span { opacity: 0; }
.reel-caption i { display: block; height: 1px; margin-top: 10px; background: rgba(242, 232, 229, .28); overflow: hidden; }
.reel-caption i::after {
  content: ''; display: block; height: 100%; background: var(--gold);
  transform: scaleX(0); transform-origin: 0 50%;
}
.reel-caption.is-ticking i::after { animation: reel-tick var(--dwell) linear both; }
.reel-paused .reel-caption i::after { animation-play-state: paused; }
@keyframes reel-tick { to { transform: scaleX(1); } }
.reel-pause {
  flex: none; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border-radius: 999px; border: 1px solid rgba(242, 232, 229, .45); background: rgba(14, 5, 8, .38); color: var(--ivory);
  cursor: pointer; transition: border-color .2s ease, background-color .2s ease;
}
.reel-pause:hover { border-color: var(--ivory); background: rgba(14, 5, 8, .62); }
.reel-pause svg { width: 14px; height: 14px; }
.reel-pause .i-play, .reel-held .reel-pause .i-pause { display: none; }
.reel-held .reel-pause .i-play { display: block; }

/* Screen masking: in a cinema, black masking frames the picture at 2.39:1 before the feature opens to full height. */
.mask {
  position: absolute; left: 0; right: 0; z-index: 2;
  height: max(0px, calc((100% - 100vw / 2.39) / 2));
  background: var(--house);
  transform: scaleY(0);
  pointer-events: none;
}
.mask-top { top: 0; transform-origin: 50% 0; }
.mask-bottom { bottom: 0; transform-origin: 50% 100%; }

.hero-copy { position: relative; z-index: 3; padding-bottom: clamp(40px, 7vh, 88px); }
.hero-place {
  font-size: var(--t-sm); color: var(--ivory-2); letter-spacing: .02em;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.hero-place::before { content: ''; width: 40px; height: 1px; background: var(--gold); }
.hero-title { display: block; margin-bottom: 26px; }
.hero-title .t1 {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(3.75rem, 1rem + 11.6vw, 12.5rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.025em;
  white-space: nowrap;
  margin-left: -.04em;
}
.hero-title .t2 {
  display: block; margin-top: .5em;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.625rem, 1rem + 1.9vw, 2.625rem);
  line-height: 1.1;
  color: var(--ivory);
}
.hero-lede { max-width: 40ch; font-size: var(--t-lg); line-height: 1.5; color: var(--ivory-2); margin-bottom: 32px; font-weight: 400; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
/* The picture behind the words is a lit room with white tables: a soft dark halo keeps the words clear of it. */
.hero-title .t1, .hero-title .t2 { text-shadow: 0 2px 28px rgba(14, 5, 8, .5); }
.hero-place, .hero-lede { text-shadow: 0 1px 14px rgba(14, 5, 8, .65); }

/* Opening sequence (only when html.intro is set by the head script). */
.intro .mask { transform: scaleY(1); }
.intro .hero-img { opacity: 0; transform: scale(1.07); }
.intro .hero-title .t1 { opacity: 0; letter-spacing: .12em; }
.intro .hero-place, .intro .hero-title .t2, .intro .hero-lede, .intro .hero-cta, .intro .nav, .intro .topbar { opacity: 0; }

.intro.play .hero-img {
  opacity: 1; transform: scale(1);
  transition: opacity 1.6s ease .05s, transform 4.2s var(--ease-out) .05s;
}
.intro.play .mask { transform: scaleY(0); transition: transform 1.5s var(--ease-film) .75s; }
.intro.play .hero-title .t1 {
  opacity: 1; letter-spacing: -.025em;
  transition: letter-spacing 2.4s var(--ease-out) .95s, opacity 1.4s ease .95s;
}
.intro.play .hero-place { opacity: 1; transition: opacity 1s ease 1.7s; }
.intro.play .hero-title .t2 { opacity: 1; transition: opacity 1s ease 1.9s; }
.intro.play .hero-lede { opacity: 1; transition: opacity 1s ease 2.1s; }
.intro.play .hero-cta { opacity: 1; transition: opacity 1s ease 2.25s; }
.intro.play .nav, .intro.play .topbar { opacity: 1; transition: opacity 1s ease 2.3s; }

/* ---------- Story ---------- */
.story { padding-block: var(--section) calc(var(--section) * .8); }
.statement {
  font-family: var(--f-display);
  font-size: var(--t-4xl);
  line-height: 1.12;
  letter-spacing: -.012em;
  max-width: 25ch;
  text-wrap: pretty;
}
.story-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px);
  margin-top: clamp(48px, 6vw, 80px);
  align-items: start;
}
.story-body { max-width: 56ch; color: var(--ivory-2); font-size: var(--t-lg); line-height: 1.7; font-weight: 400; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.facts div { border-top: 1px solid var(--gold); padding-top: 12px; }
.facts dt { font-size: var(--t-xs); color: var(--ivory-3); letter-spacing: .02em; }
.facts dd { font-variant-numeric: lining-nums; margin: 4px 0 0; font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.2; }

.story-photo { margin-top: clamp(64px, 8vw, 120px); }
.story-photo figcaption, .mosaic figcaption {
  margin-top: 12px; font-size: var(--t-xs); color: var(--ivory-3); letter-spacing: .01em;
}

/* Film ratios */
.ratio-scope { width: 100%; aspect-ratio: 2.39 / 1; object-fit: cover; }
.ratio-flat { width: 100%; aspect-ratio: 1.85 / 1; object-fit: cover; }

/* ---------- Room plan ---------- */
.room {
  background: var(--velvet);
  padding-block: var(--section);
  position: relative;
}
.room-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.room-intro { color: var(--ivory-2); max-width: 40ch; }

.plan {
  display: grid; grid-template-columns: minmax(180px, 3fr) minmax(0, 9fr);
  gap: clamp(32px, 4vw, 64px); align-items: start;
}
.plan-tabs { display: grid; grid-template-columns: 1fr; }
.plan-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 16px 0 18px; margin: 0;
  background: none; border: 0; border-top: 1px solid rgba(242, 232, 229, .22);
  box-shadow: inset 0 1px 0 transparent;
  color: var(--ivory-3); text-align: left; cursor: pointer;
  transition: color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.plan-tab:hover { color: var(--ivory-2); }
.plan-tab[aria-selected='true'] { color: var(--ivory); border-top-color: var(--gold); box-shadow: inset 0 1px 0 var(--gold); }
.plan-num {
  font-family: var(--f-display);
  font-size: clamp(2rem, 1rem + 3.4vw, 3.75rem); line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: lining-nums;
}
.plan-name { font-size: var(--t-sm); letter-spacing: .01em; }

/* While the tour plays, the gold rule on the current tab fills up: when it is full the room turns to the next layout. */
.plan-tab i {
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left center; pointer-events: none;
}
@keyframes plan-fill { to { transform: scaleX(1); } }
.plan.is-touring .plan-tab[aria-selected='true'] { border-top-color: rgba(242, 232, 229, .22); box-shadow: inset 0 1px 0 transparent; }
.plan.is-touring .plan-tab[aria-selected='true'] i { animation: plan-fill var(--dwell, 6500ms) linear forwards; }
.plan.is-touring.is-paused .plan-tab[aria-selected='true'] i { animation-play-state: paused; }

.plan-floor {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--velvet-deep);
}
.plan-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html:not(.js) .plan-floor { display: none; }
.plan-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin-top: 18px; }
.plan-caption { color: var(--ivory-2); max-width: 60ch; min-height: 3.3em; }
.plan-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 18px 0 16px; margin: -4px 0 0;
  background: none; border: 1px solid rgba(242, 232, 229, .32); border-radius: 999px;
  color: var(--ivory-2); font-size: var(--t-sm); white-space: nowrap; cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.plan-toggle[hidden] { display: none; } /* no tour without JavaScript or with reduced motion */
.plan-toggle:hover { color: var(--ivory); border-color: var(--ivory); }
.plan-toggle::before { /* a play triangle; two bars while the tour is playing */
  content: ''; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}
.plan-toggle.is-playing::before { width: 8px; height: 10px; border-width: 0 3px; border-color: currentColor; }

/* ---------- Section heads (shared) ---------- */
.section-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head p { color: var(--ivory-2); max-width: 42ch; }

/* ---------- Production rider ---------- */
.production { padding-block: var(--section); }
.rider { margin: 0; border-top: 1px solid var(--rule-dark); }
.rider-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  gap: 14px clamp(28px, 5vw, 72px);
  padding-block: 32px;
  border-bottom: 1px solid var(--rule-dark);
  align-items: start;
}
.rider-row .rig { grid-row: 1 / 3; }
.rider-row dt {
  grid-column: 2; padding-top: 6px;
  font-family: var(--f-display); font-size: var(--t-3xl);
  line-height: 1.05; letter-spacing: -.01em;
}
.rider-row dd { grid-column: 2; margin: 0; max-width: 58ch; color: var(--ivory-2); }
.rider-kit { margin-top: 14px; color: var(--gold); font-size: var(--t-sm); letter-spacing: .01em; }

/* Rig illustrations: line drawings of the installed kit, drawn in the page's gold, ivory and velvet.
   Each loop shows what the equipment does. Paused off screen, still for reduced motion. */
.rig {
  display: block; width: 100%; height: auto; aspect-ratio: 1.85 / 1;
  background: var(--house-2); border: 1px solid rgba(210, 176, 114, .16);
}
.rig text { font-family: var(--f-text); font-size: 10px; fill: var(--ivory-2); }
.rig .rig-gold { fill: var(--gold); }
.rig-line { fill: none; stroke: var(--gold); stroke-width: 1; }
.rig-dim { opacity: .45; }
.rig-frame { fill: none; stroke: var(--gold); stroke-width: 1; }
.rig-deck { fill: rgba(210, 176, 114, .08); stroke: rgba(210, 176, 114, .35); stroke-width: 1; }
.rig-person { fill: var(--ivory); opacity: .85; }
.js .rig:not(.is-live) * { animation-play-state: paused; }

/* Sound: wavefronts leave the arrays and reach every seat; each dot is a guest */
.rig-cab rect { fill: #2A161C; stroke: var(--gold); stroke-width: 1; }
.rig-wave {
  fill: none; stroke: var(--gold); stroke-width: 1.4; vector-effect: non-scaling-stroke;
  transform-origin: 52px 66px; opacity: .35;
  animation: rig-wave 3s linear infinite;
}
.rig-heads circle { fill: var(--ivory); opacity: .55; animation: rig-hear 1s ease-out infinite; }
@keyframes rig-wave {
  0% { transform: scale(.5); opacity: 0; }
  10% { opacity: .9; }
  85% { opacity: .5; }
  100% { transform: scale(8); opacity: 0; }
}
@keyframes rig-hear {
  0%, 100% { opacity: .5; fill: var(--ivory); }
  10% { opacity: 1; fill: var(--gold-hover); }
  45% { opacity: .55; fill: var(--ivory); }
}

/* Screen: content sweeps across the main LED, the script rolls on the prompter */
.rig-led-base { fill: #3A0B16; }
.rig .rig-led-title { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 30px; fill: var(--ivory); opacity: .92; }
.rig-sheen { transform: translateX(190px); animation: rig-sheen 4.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes rig-sheen { from { transform: translateX(0); } to { transform: translateX(384px); } }
.rig-script rect { fill: var(--ivory); opacity: .7; }
.rig-script { animation: rig-scroll 9s linear infinite; }
@keyframes rig-scroll { to { transform: translateY(-78px); } }
.rig-cue { fill: var(--gold); }

/* Lighting: moving heads sweep over the stage */
.rig-pool { fill: rgba(210, 176, 114, .12); }
.rig-beam { mix-blend-mode: screen; animation: rig-sweep 3.6s ease-in-out infinite alternate; }
.rig-beam.rig-rev { animation-direction: alternate-reverse; }
@keyframes rig-sweep { from { transform: rotate(-20deg); } to { transform: rotate(20deg); } }
.rig-fixture { fill: #2A161C; stroke: var(--gold); stroke-width: 1; }

/* Video: the vision mixer cuts between four cameras; the red tally marks the camera on air */
.rig-bezel { fill: #120709; stroke: rgba(210, 176, 114, .35); stroke-width: 1; }
.rig-cut, .rig-tally { opacity: 0; animation: rig-cut 8s linear infinite; }
.rig-cut-0, .rig-tally-0 { opacity: 1; }
.rig-tally { fill: none; stroke: #E0594F; stroke-width: 2; }
@keyframes rig-cut { 0%, 24.9% { opacity: 1; } 25%, 100% { opacity: 0; } }
.rig-live { fill: #E0594F; }
.rig .rig-live-text { fill: #fff; font-size: 8.5px; font-weight: 700; }
.rig-blink { fill: #fff; animation: rig-blink 1.2s ease-in-out infinite; }
@keyframes rig-blink { 50% { opacity: .2; } }
.rig-signal circle { fill: var(--gold); }
.rig-signal path { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; animation: rig-signal 1.5s ease-in-out infinite; }
@keyframes rig-signal { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Occasions ---------- */
.occasions { padding-block: 0 var(--section); }
.mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figure { display: flex; flex-direction: column; }
.mosaic figure img { flex: 1; min-height: 0; }
.m-1 { grid-column: 1 / 9; grid-row: 1 / 3; }
.m-1 img { aspect-ratio: auto; }
.m-2 { grid-column: 9 / 13; grid-row: 1; }
.m-3 { grid-column: 9 / 13; grid-row: 2; }
.m-2 img, .m-3 img { aspect-ratio: 1.85 / 1; }
.m-4 { grid-column: 1 / 13; margin-top: clamp(8px, 1vw, 12px); }
.m-4 img { aspect-ratio: 2.39 / 1; }

.spaces-title { margin-top: clamp(80px, 9vw, 128px); margin-bottom: 28px; }
.spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.spaces img { width: 100%; aspect-ratio: 1.85 / 1; object-fit: cover; }
.spaces p { margin-top: 12px; font-size: var(--t-sm); color: var(--ivory-2); }

/* ---------- Dining (light section) ---------- */
.dining, .venues { background: var(--paper); color: var(--ink); }
.dining { padding-block: var(--section) calc(var(--section) * .6); }
.dining-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.dining-head p, .venues .section-head p { color: var(--ink-2); max-width: 44ch; }
.menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.menu img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.menu p {
  margin-top: 16px;
  font-family: var(--f-display); font-style: italic;
  font-size: var(--t-xl); line-height: 1.2;
}

/* ---------- Other venues: each room with its picture ---------- */
.venues { padding-block: calc(var(--section) * .6) var(--section); }
.venues .section-head { border-top: 1px solid var(--rule-light); padding-top: clamp(64px, 8vw, 112px); }
.halls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(44px, 5vw, 64px) clamp(16px, 2vw, 28px); }
.hall { display: flex; flex-direction: column; }
.hall-body { flex: 1; display: flex; flex-direction: column; } /* capacities and phone line up along each row */
/* Pictures keep the page's film ratios: 1.85:1 for each room, 2.39:1 for the room in this building. */
.hall-photo { position: relative; aspect-ratio: 1.85 / 1; overflow: hidden; background: var(--velvet-deep); }
.hall-photo img { width: 100%; height: 100%; object-fit: cover; }
.hall-name { margin-top: 20px; font-family: var(--f-display); font-weight: 500; font-size: var(--t-xl); line-height: 1.15; text-wrap: balance; }
.hall-note { margin-top: 6px; font-size: var(--t-xs); font-weight: 600; color: var(--velvet); }
.hall-addr { margin: 6px 0 18px; font-size: var(--t-sm); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.hall-cap {
  margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--rule-light);
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 clamp(20px, 2.4vw, 32px);
}
.hall-cap div { display: flex; flex-direction: column-reverse; } /* figure above its label, read label first */
.hall-cap dt { margin-top: 4px; font-size: var(--t-xs); color: var(--ink-2); }
.hall-cap dd {
  margin: 0; font-family: var(--f-display); font-weight: 500; font-size: var(--t-2xl); line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.hall-tel {
  align-self: flex-start; margin-top: 16px; font-size: var(--t-sm); color: var(--ink);
  text-decoration-color: var(--rule-light); text-underline-offset: 4px;
}
.hall-tel:hover { text-decoration-color: var(--velvet); }

.hall.is-feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0 clamp(28px, 4vw, 56px); align-items: end;
}
.is-feature .hall-photo { aspect-ratio: 2.39 / 1; }
.is-feature .hall-name { margin-top: 0; font-size: var(--t-3xl); line-height: 1.05; }
.is-feature .hall-note { margin-top: 10px; }

/* A room without a picture yet: its curtain is closed, with the name of the place on it. */
.hall-photo.is-curtain {
  display: grid; place-content: center; gap: 6px; padding: 16px; text-align: center; color: var(--ivory);
  background:
    radial-gradient(70% 90% at 50% -10%, rgba(240, 217, 166, .2), rgba(240, 217, 166, 0) 70%),
    linear-gradient(0deg, rgba(14, 5, 8, .5), rgba(14, 5, 8, 0) 40%),
    repeating-linear-gradient(90deg, rgba(14, 5, 8, .34) 0, rgba(14, 5, 8, 0) 14px, rgba(255, 226, 214, .07) 24px, rgba(14, 5, 8, 0) 34px, rgba(14, 5, 8, .34) 48px),
    linear-gradient(180deg, var(--velvet), var(--velvet-deep));
}
.hall-photo.is-curtain b { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: var(--t-2xl); line-height: 1.1; }
.hall-photo.is-curtain small { font-size: var(--t-xs); color: var(--ivory-2); }

@media (max-width: 960px) {
  .halls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hall.is-feature { display: flex; align-items: stretch; }
  .is-feature .hall-name { margin-top: 20px; font-size: var(--t-2xl); }
}
@media (max-width: 600px) {
  .halls { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact { background: var(--velvet); padding-block: var(--section); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 7vw, 120px); }
.contact-intro { margin-top: 20px; color: var(--ivory-2); max-width: 46ch; }

.form { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: var(--t-sm); color: var(--ivory-2); }
.opt { color: var(--ivory-3); font-size: var(--t-xs); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 0;
  background: transparent; border: 0; border-bottom: 1px solid rgba(242, 232, 229, .4); border-radius: 0;
  color: var(--ivory); font-size: var(--t-md);
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ivory-2) 50%), linear-gradient(135deg, var(--ivory-2) 50%, transparent 50%);
  background-position: calc(100% - 12px) 22px, calc(100% - 7px) 22px; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--house); color: var(--ivory); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 var(--gold); }
.field input::placeholder { color: var(--ivory-3); }
.field input[type='date'] { color-scheme: dark; }
.field.has-error input { border-bottom-color: #F1A7A0; }
.field-error { font-size: var(--t-xs); color: #F7C4BE; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; margin-top: 8px; }
.form-status { font-size: var(--t-sm); color: var(--ivory-2); max-width: 48ch; }
.form-status a { color: var(--ivory); }
.form.is-sending button { opacity: .6; pointer-events: none; }

.contact-direct { padding-top: 8px; }
.contact-direct .h3 { font-size: var(--t-xl); margin-bottom: 16px; }
.contact-direct .h3:not(:first-child) { margin-top: 48px; }
.people li {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 0; border-top: 1px solid rgba(242, 232, 229, .2);
}
.people li:last-child { border-bottom: 1px solid rgba(242, 232, 229, .2); }
.people span { font-family: var(--f-display); font-size: var(--t-xl); line-height: 1.15; }
.people a, .lines a { color: var(--ivory-2); text-decoration: none; font-size: var(--t-sm); }
.people a:hover, .lines a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
.contact-direct address { color: var(--ivory-2); }
.lines { margin: 16px 0 28px; display: grid; gap: 4px; }

/* ---------- Footer ---------- */
.footer { padding-block: 48px; border-top: 1px solid var(--rule-dark); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.footer-inner img { width: 112px; }
.footer p { font-size: var(--t-xs); color: var(--ivory-3); }
.footer-copy { margin-left: auto; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 20px 12px 16px;
  background: var(--gold); color: var(--on-gold); text-decoration: none; border-radius: 999px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(12px); visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s, background-color .2s ease;
}
.wa-float.is-visible { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.wa-float:hover { background: var(--gold-hover); }
html:not(.js) .wa-float { opacity: 1; transform: none; visibility: visible; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .story-grid, .room-head, .section-head, .dining-head, .contact-grid { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; gap: 8px; }
  .plan-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero { min-height: 560px; }
  /* Phone: the picture sits above the title like a poster, so the stage screen stays clear of the text. */
  .hero-frame { bottom: 36%; }
  .hero-img { object-position: var(--x, 50%) 50%; } /* --x: where the stage is across the photo */
  .reel-bar { top: calc(76px + var(--tb)); bottom: auto; right: var(--gutter); min-height: 0; gap: 12px; }
  .reel-caption { min-width: 0; font-size: var(--t-md); }
  .reel-caption i { margin-top: 6px; }
  .reel-pause { width: 40px; height: 40px; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(23, 10, 14, .55) 0%, rgba(23, 10, 14, 0) 24%),
      linear-gradient(0deg, var(--house) 0%, rgba(23, 10, 14, .76) 22%, rgba(23, 10, 14, .24) 40%, rgba(23, 10, 14, 0) 56%);
  }
  .hero-title .t1 { white-space: normal; }
  .hero-lede { font-size: var(--t-md); }
  .hero-cta .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px; }
  .plan-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-tab { padding: 14px 0 16px; }
  .plan-floor { aspect-ratio: 4 / 3; }
  .plan-foot { flex-direction: column; }
  .plan-caption { min-height: 0; }
  .plan-toggle { margin-top: 0; }
  .mosaic { grid-template-columns: 1fr; }
  .m-1, .m-2, .m-3, .m-4 { grid-column: 1; grid-row: auto; margin-top: 0; }
  .m-1 img { aspect-ratio: 1.85 / 1; }
  .m-4 img { aspect-ratio: 1.85 / 1; }
  .rider-row { grid-template-columns: 1fr; grid-template-rows: none; gap: 12px; padding-block: 28px; }
  .rider-row .rig, .rider-row dt, .rider-row dd { grid-column: 1; grid-row: auto; }
  .rider-row dt { font-size: var(--t-2xl); padding-top: 10px; }
  .form { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  /* Illustrations hold a composed still frame instead of looping */
  .rig * { animation: none !important; }
}

/* CMS draft preview badge */
.tb-preview {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 9999;
  background: var(--gold); color: var(--on-gold); font: 700 12px/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}
