/* ==========================================================================
   IHSANMUN — Winter Edition
   World: the assembly hall at night. Placards in pale card stock on felt
   tables; the delegate the chair recognises raises theirs.
   No outlines, no glows: surfaces are filled, depth comes from light.
   ========================================================================== */

:root {
  /* moodboard */
  --room: #150f14;
  --table: #261f31;
  --apron: #332c33;
  --line: #45404e;
  --plum: #402a4b;
  --mauve: #70697e;
  --smoke: #89878b;
  --card: #d0ced2;
  --ink: #261f31;

  /* derived */
  --text: var(--card);
  --text-2: #a7a4ac;           /* secondary text, 4.5:1+ on room and table */
  --card-hi: #e2e0e5;
  --card-lo: #b7b4bc;
  --plum-hi: #573a65;
  --fill: #221b29;             /* filled controls on the room */
  --fill-hi: #2f2738;
  --deep: #100b0f;
  --row: #18121b;              /* list rows, cards on the room */
  --row-hi: #201925;           /* their hover */

  --felt: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .82  0 0 0 0 .8  0 0 0 0 .85  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --card-grad: linear-gradient(180deg, var(--card-hi) 0%, var(--card) 38%, var(--card-lo) 100%);

  --font: "League Spartan", system-ui, sans-serif;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --fs-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  --fs-h2: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1320px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-lift: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); scrollbar-color: var(--line) var(--room); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--room);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--card);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--plum-hi); color: #fff; }
/* keyboard focus only: a solid offset ring, never shown on mouse clicks */
:focus-visible { outline: 2px solid var(--card); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; height: 10px; }
::-webkit-scrollbar-track { background: var(--room); }
::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--room); border-radius: 10px; }

.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 { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--card); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.tnum { font-variant-numeric: tabular-nums; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons: filled, never outlined ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 48px; padding: 0.85rem 1.4rem 0.75rem;
  font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: var(--radius); cursor: pointer;
  transition: transform 0.5s var(--ease-lift), box-shadow 0.5s var(--ease-out), background-color 0.25s, color 0.25s;
}
.btn--placard {
  color: var(--ink);
  background: var(--card-grad);
  box-shadow: 0 10px 18px -10px rgba(0,0,0,.9);
}
.btn--placard:hover, .btn--placard:focus-visible {
  transform: translateY(-5px) rotate(-1.5deg);
  box-shadow: 0 22px 26px -14px rgba(0,0,0,.95);
}
.btn--placard:active { transform: translateY(-1px); }
.btn--plum { color: var(--card); background: var(--plum); }
.btn--plum:hover, .btn--plum:focus-visible { background: var(--plum-hi); transform: translateY(-3px); }
.btn--quiet { color: var(--card); background: var(--fill); }
.btn--quiet:hover, .btn--quiet:focus-visible { background: var(--fill-hi); transform: translateY(-3px); }
.btn[aria-disabled="true"] { cursor: help; }
.btn .i { width: 1.05em; height: 1.05em; }

/* links with an arrow: underline drawn from the left on hover */
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 600; text-decoration: none; color: var(--card);
  padding-bottom: 0.2em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1.5px no-repeat;
  transition: background-size 0.45s var(--ease-out), gap 0.35s var(--ease-out);
}
.link-arrow:hover, .link-arrow:focus-visible { background-size: 100% 1.5px; gap: 0.85em; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(21, 15, 20, 0.86);
  transition: background-color 0.3s;
  view-transition-name: site-header;
}
.site-header.is-scrolled { background: rgba(16, 11, 15, 0.97); }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  position: relative; padding: 0.6rem 0.7rem 0.5rem; text-decoration: none;
  font-size: 0.9375rem; font-weight: 500; color: var(--text-2);
  transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--card); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.25rem; height: 2px; background: var(--card);
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a.btn { color: var(--ink); margin-left: 0.75rem; min-height: 42px; padding: 0.7rem 1.1rem 0.6rem; }
.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0 1rem; background: var(--fill); border: 0;
  border-radius: var(--radius); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.875rem; cursor: pointer;
}
.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-nav {
    display: block; position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49;
    background: var(--deep); padding: 1.5rem var(--gutter) 2.5rem; overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }
  .mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .mobile-nav ul { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0.25rem; }
  .mobile-nav a.m-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.7rem 0 0.55rem; font-size: 1.875rem; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; color: var(--text-2);
  }
  .mobile-nav a.m-link[aria-current="page"] { color: var(--card); }
  .mobile-nav .btn { width: 100%; }
  .mobile-nav__mail { display: block; margin-top: 1.5rem; color: var(--text-2); }
}

/* ==========================================================================
   The placard (tent card)
   ========================================================================== */
.placard {
  --pw: 220px;
  --len: 8;
  --lean: 9deg;
  position: relative;
  width: var(--pw);
  aspect-ratio: 2.6 / 1;
  container-type: inline-size;
  perspective: 900px;
  flex: none;
}
.placard__body {
  position: absolute; inset: 0;
  transform-origin: 50% 100%;
  transform: rotateX(var(--lean));
  transition: transform 0.75s var(--ease-lift);
}
.placard__face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3cqi;
  padding: 5cqi 6cqi 6cqi;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 2.2cqi), var(--card-grad);
  border-radius: 2px 2px 1px 1px;
  box-shadow: inset 0 -1.2cqi 2.4cqi rgba(38,31,49,.16);
  overflow: hidden;
}
/* the fold along the top edge */
.placard__face::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.6cqi;
  background: linear-gradient(180deg, #f1eff3, var(--card-hi));
  box-shadow: 0 1px 0 rgba(38,31,49,.16);
}
.placard__emblem { width: 15cqi; height: auto; opacity: 0.92; }
.placard__name {
  display: block; font-weight: 800; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.01em;
  font-size: min(15cqi, calc(118cqi / var(--len)));
  white-space: nowrap; margin: 0.06em 0 0;
}
.placard__sub { font-size: 4.2cqi; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--line); }
.placard::after {
  content: ""; position: absolute; left: 3%; right: 3%; bottom: -7%; height: 16%;
  background: radial-gradient(50% 50% at 50% 40%, rgba(0,0,0,.75), rgba(0,0,0,0) 100%);
  z-index: -1; transition: transform 0.75s var(--ease-lift), opacity 0.5s;
}
.placard.is-raised .placard__body,
button.placard:hover .placard__body,
button.placard:focus-visible .placard__body { transform: translateY(-16%) rotateX(-6deg) rotateZ(-2.5deg); }
.placard.is-raised::after,
button.placard:hover::after,
button.placard:focus-visible::after { transform: scale(0.78) translateY(10%); opacity: 0.45; }
button.placard { background: none; border: 0; padding: 0; cursor: pointer; }
button.placard:focus-visible { outline: none; }
button.placard:focus-visible .placard__face { outline: 2px solid var(--card); outline-offset: 4px; }

/* ==========================================================================
   The table
   ========================================================================== */
.table { position: relative; }
.table__surface {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(0.75rem, 2.4vw, 2.25rem);
  padding: 0 4% clamp(1.1rem, 2.2vw, 2rem);
  isolation: isolate;
}
.table__surface::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 52%; z-index: -2;
  background: var(--felt), linear-gradient(180deg, #1e1826 0%, var(--table) 100%);
  clip-path: polygon(2.5% 0, 97.5% 0, 100% 100%, 0 100%);
}
.table__edge {
  height: clamp(10px, 1.2vw, 16px);
  background: linear-gradient(180deg, #5b5566 0, var(--line) 12%, var(--apron) 40%, #221c26 100%);
  box-shadow: 0 26px 40px -16px rgba(0,0,0,.9);
}

/* ==========================================================================
   Home — hero: the assembly hall
   ========================================================================== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: grid; grid-template-rows: 1fr auto;
  background:
    radial-gradient(52% 70% at 50% -8%, rgba(208,206,210,.15) 0%, rgba(112,105,126,.09) 42%, rgba(21,15,20,0) 74%),
    radial-gradient(90% 60% at 50% 100%, rgba(64,42,75,.38), rgba(21,15,20,0) 70%),
    var(--room);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.hero__room { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; padding-top: clamp(9rem, 30vh, 18rem); }
.hero__near { position: relative; z-index: 3; }
.hero__near .table__surface { padding-bottom: clamp(1.4rem, 3vw, 2.6rem); }
.hero__near .table__surface::before { height: 40%; }

/* rows of delegations, built by site.js */
.hall { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hall__row { position: absolute; left: 0; right: 0; display: flex; justify-content: center; align-items: flex-end; }
.hall__table {
  position: absolute; left: var(--inset, 6%); right: var(--inset, 6%); bottom: calc(var(--ph) * -0.42); height: calc(var(--ph) * 0.62); z-index: -1;
  background: var(--felt), linear-gradient(180deg, #1c1622, #241d2e);
  clip-path: polygon(1.5% 0, 98.5% 0, 100% 100%, 0 100%);
  filter: brightness(var(--b, 1));
}
.hp {
  position: relative; width: var(--pw); aspect-ratio: 2.6 / 1; flex: none;
  container-type: inline-size; transform-origin: 50% 100%; will-change: transform;
}
.hp__face {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.5) 0, rgba(255,255,255,0) 3cqi), var(--card-grad);
  border-radius: 1px; filter: brightness(var(--b, 1));
}
.hp__name { font-weight: 800; text-transform: uppercase; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; font-size: min(16cqi, calc(122cqi / var(--len))); }
.hp::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -8%; height: 18%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 40%, rgba(0,0,0,.7), rgba(0,0,0,0)); opacity: var(--b, 1);
}

.hall-light {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle var(--lr, 360px) at var(--lx, 50%) var(--ly, 40%), rgba(10,6,10,0) 0%, rgba(10,6,10,.18) 45%, rgba(10,6,10,.72) 100%);
}
.hall-fx { position: absolute; inset: 0; z-index: 6; pointer-events: none; width: 100%; height: 100%; }
.hall-tally {
  position: absolute; z-index: 4; left: 50%; top: clamp(1rem, 3vh, 1.75rem); transform: translateX(-50%);
  display: flex; align-items: center; gap: 0.6rem; white-space: nowrap;
  padding: 0.55rem 0.95rem 0.45rem; border-radius: 999px; background: rgba(16,11,15,.72);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2);
  transition: background-color 0.4s, color 0.4s;
  pointer-events: none;
}
.hall-tally__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mauve); transition: background-color 0.3s; }
.hall-tally.is-vote { background: var(--card); color: var(--ink); }
.hall-tally.is-vote .hall-tally__dot { background: var(--plum); }

.hero-placard { --pw: clamp(300px, min(56vw, 88vh), 860px); --len: 8; perspective: 1400px; aspect-ratio: 2.15 / 1; cursor: pointer;
  transform: perspective(1600px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform 0.9s var(--ease-out);
  view-transition-name: main-placard; }
.hero-placard .placard__face { gap: 2.4cqi; }
.hero-placard .placard__emblem { width: 12cqi; }
.hero-placard h1 { margin: 0; }
.hero-placard .placard__name { font-size: min(15.5cqi, 6rem); letter-spacing: -0.02em; }
.hero-placard .placard__sub { font-size: max(0.7rem, 2.6cqi); }

/* the apron under the near table */
.apron { position: relative; z-index: 3; background: linear-gradient(180deg, #1d1722, var(--room)); }
.apron__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem;
  padding-block: clamp(1.5rem, 3.4vh, 2.5rem) clamp(1.75rem, 4vh, 3rem);
}
.apron__when { display: grid; gap: 0.2rem; }
.apron__date { white-space: nowrap; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); font-weight: 700; letter-spacing: -0.01em; }
.apron__place { color: var(--text-2); font-size: var(--fs-small); }
.apron__cta { justify-self: end; display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* countdown */
.countdown { display: grid; justify-items: center; gap: 0.55rem; }
.countdown__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
.countdown__clock { display: flex; align-items: flex-start; gap: clamp(0.4rem, 1.2vw, 1rem); }
.countdown__unit { display: grid; justify-items: center; gap: 0.3rem; }
.countdown__digits { display: flex; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.countdown__u { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--smoke); }
.countdown__sep { font-size: clamp(1.6rem, 1rem + 2vw, 2.8rem); line-height: 1.1; color: var(--line); font-weight: 300; }
.digit { display: inline-block; height: 1em; width: 0.62em; overflow: hidden; position: relative; }
.digit__reel { display: flex; flex-direction: column; transition: transform 0.8s var(--ease-lift); }
.digit__reel span { height: 1em; display: block; text-align: center; }
.countdown__state { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); font-weight: 700; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section--table { background: linear-gradient(180deg, var(--room), #1a1419 40%, var(--room)); }
.section__head { display: grid; gap: 1.25rem; max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head h2 { font-size: var(--fs-h2); }
.section__head p { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.4; }
.section__split { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__split .section__head { margin-bottom: 0; }

/* intro statement */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.statement__big { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3.25rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.025em; }
.statement__big em { font-style: normal; color: var(--smoke); }
.statement__side { display: grid; gap: 1.5rem; color: var(--text-2); max-width: 36ch; }
.pillars { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.pillars li { padding: 0.55rem 0.95rem 0.45rem; background: var(--plum); border-radius: 999px; color: var(--card); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; }

/* ---------- committees: the round table (2D-projected, always centred) ---------- */
.ring-stage {
  position: relative; height: var(--stage-h, 460px);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  overflow: hidden; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(42% 52% at 50% 60%, rgba(208,206,210,.075), rgba(208,206,210,0) 70%);
}
.ring-stage.is-dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: var(--cy, 60%); width: 0; height: 0; }
.rt { position: absolute; left: calc(var(--R) * -1); width: calc(var(--R) * 2); pointer-events: none; }
.rt-shadow { top: calc(var(--R) * var(--k) * -1 + var(--T) * 2.2); height: calc(var(--R) * var(--k) * 2); border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.8), rgba(0,0,0,0)); filter: blur(16px); transform: scale(1.1); }
.rt-edge { top: calc(var(--R) * var(--k) * -1 + var(--T)); height: calc(var(--R) * var(--k) * 2); border-radius: 50%; background: linear-gradient(180deg, #4a4455 0%, #2a2330 45%, #120d13 100%); }
.rt-top {
  top: calc(var(--R) * -1); height: calc(var(--R) * 2); border-radius: 50%;
  transform: scaleY(var(--k)) rotate(var(--spin, 0deg));
  background:
    radial-gradient(closest-side, rgba(0,0,0,0) 54%, rgba(208,206,210,.10) 54.7%, rgba(0,0,0,0) 55.6%),
    radial-gradient(closest-side, rgba(0,0,0,0) 88%, rgba(208,206,210,.08) 88.6%, rgba(0,0,0,0) 89.4%),
    var(--felt),
    linear-gradient(rgba(42,34,54,.7), rgba(42,34,54,.7)),
    url("../img/emblem-light.png") 50% 50% / 36% auto no-repeat,
    #2a2236;
}
.rt-light { top: calc(var(--R) * var(--k) * -1); height: calc(var(--R) * var(--k) * 2); border-radius: 50%;
  background: radial-gradient(70% 70% at 50% 35%, rgba(208,206,210,.12), rgba(208,206,210,0) 70%), radial-gradient(closest-side, rgba(0,0,0,0) 80%, rgba(0,0,0,.35) 100%); }
.ring .placard {
  position: absolute; left: 0; top: 0;
  width: var(--ring-pw); aspect-ratio: 2.3 / 1;
  margin-left: calc(var(--ring-pw) / -2); margin-top: calc(var(--ring-pw) / -2.3);
  transform-origin: 50% 100%; perspective: none; will-change: transform;
}
.ring .placard::after { bottom: -9%; height: 20%; }
.ring .placard__body { transform: rotateX(8deg); }
.ring .placard__face { filter: brightness(var(--fog, 1)); }
.ring .placard__emblem { width: 14cqi; }
.ring .placard.is-raised .placard__body { transform: translateY(-20%) rotateX(-4deg) rotateZ(-2deg); }
.ring .placard.is-raised::after { transform: scale(0.75) translateY(14%); opacity: 0.45; }
@media (hover: hover) {
  .ring button.placard:hover .placard__body { transform: translateY(-12%) rotateX(-2deg); }
}
.ring button.placard:focus-visible .placard__body { transform: translateY(-20%); }
.mic { position: absolute; left: -10%; bottom: 0; width: 3px; height: 64%; background: linear-gradient(#6b6577, #3b3444); transform-origin: bottom; transform: rotate(14deg); border-radius: 2px; filter: brightness(var(--fog, 1)); pointer-events: none; }
.mic::before { content: ""; position: absolute; left: 50%; top: -9px; width: 7px; height: 14px; margin-left: -3.5px; border-radius: 4px; background: #4e4858; }
.mic::after { content: ""; position: absolute; left: 50%; bottom: -3px; width: 16px; height: 5px; margin-left: -8px; border-radius: 3px; background: #1c1620; }
.ring-nav {
  position: absolute; top: 50%; z-index: 5; width: 56px; height: 56px; margin-top: -28px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--fill); color: var(--card); cursor: pointer;
  transition: background-color 0.2s, transform 0.4s var(--ease-lift);
}
.ring-nav:hover { background: var(--plum); transform: scale(1.06); }
.ring-nav--prev { left: var(--gutter); }
.ring-nav--next { right: var(--gutter); }
.ring-nav--prev .i { transform: scaleX(-1); }
.ring-count { position: absolute; left: 50%; bottom: 0.75rem; transform: translateX(-50%); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }

.floor {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(2rem, 4vw, 3rem); min-height: 12rem;
}
.floor__who { display: grid; gap: 1rem; align-content: start; }
.floor__type { display: inline-flex; align-self: start; justify-self: start; padding: 0.4rem 0.75rem 0.3rem; background: var(--plum); border-radius: 999px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.floor__name { font-size: var(--fs-h3); line-height: 1.15; }
.floor__agenda { display: grid; gap: 1.75rem; align-content: start; }
.floor__agenda blockquote { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.floor__links { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.floor__soon { color: var(--text-2); font-size: var(--fs-small); display: inline-flex; gap: 0.5rem; align-items: center; }
.floor__who, .floor__agenda { transition: opacity 0.35s var(--ease-out), transform 0.5s var(--ease-out), filter 0.35s; }
.floor.is-changing .floor__who, .floor.is-changing .floor__agenda { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.ctable__hint { color: var(--text-2); font-size: var(--fs-small); text-align: center; margin-top: 0.25rem; }

/* ---------- roles / registration ---------- */
.register-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.role {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "pl t fee" "pl b fee" "pl a a";
  column-gap: clamp(1.25rem, 2.5vw, 2rem); row-gap: 0.45rem;
  padding: 1.5rem clamp(1rem, 2vw, 1.5rem) 1.4rem; border-radius: 6px;
  transition: background-color 0.35s;
}
.role:hover, .role:focus-within { background: var(--row-hi); }
.role .placard { grid-area: pl; align-self: start; --pw: clamp(96px, 9vw, 128px); margin-top: 0.35rem; }
.role:hover .placard__body, .role:focus-within .placard__body { transform: translateY(-16%) rotateX(-6deg) rotateZ(-2.5deg); }
.role:hover .placard::after, .role:focus-within .placard::after { transform: scale(0.78) translateY(10%); opacity: 0.45; }
.role__title { grid-area: t; font-size: var(--fs-h3); line-height: 1.1; }
.role__blurb { grid-area: b; color: var(--text-2); max-width: 46ch; }
.role__fee { grid-area: fee; align-self: start; text-align: right; font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.role__fee small { display: block; margin-top: 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--smoke); }
.role__act { grid-area: a; margin-top: 0.75rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.role__status { font-size: var(--fs-small); color: var(--text-2); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--smoke); margin-right: 0.5rem; vertical-align: 0.1em; }
.status-dot--open { background: #c7b7d6; }

/* ---------- placard maker ---------- */
.maker {
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  display: grid; gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: linear-gradient(180deg, #1e1724, #18121a);
  border-radius: 10px;
  box-shadow: 0 40px 60px -40px rgba(0,0,0,.9);
}
.maker h3 { font-size: var(--fs-h3); }
.maker p { color: var(--text-2); font-size: var(--fs-small); }
.maker__stage { padding-top: 2.75rem; margin-inline: calc(clamp(1.25rem, 2.5vw, 2rem) * -1); perspective: 1200px; }
.maker__stage .table { transition: transform 0.6s var(--ease-out); transform: rotateY(var(--my, 0deg)) rotateX(var(--mx, 0deg)); }
.maker__stage .table__surface { justify-content: center; }
.maker__stage .placard { --pw: min(100%, 340px); }
.maker__stage .table__edge { box-shadow: none; }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 0.75rem 0.95rem 0.65rem;
  background: var(--fill-hi); border: 0; border-radius: var(--radius);
  color: var(--card); font-size: 1rem; transition: background-color 0.2s;
}
.field input::placeholder { color: #8f8c95; }
.field input:hover, .field select:hover { background: #372e41; }
.field input:focus, .field select:focus { outline: none; background: #3d3447; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--card); outline-offset: 2px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23d0ced2' stroke-width='1.75'><path d='M1 1.5l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 0.95rem center; padding-right: 2.4rem; }
.maker__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.maker__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- schedule ---------- */
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.day { display: grid; align-content: start; gap: 0.75rem; }
.day__head { display: flex; align-items: baseline; gap: 0.75rem; padding: 1.1rem 1.1rem 1rem; background: var(--card-grad); color: var(--ink); border-radius: 4px; box-shadow: 0 16px 24px -16px rgba(0,0,0,.9); }
.day__num { font-size: clamp(2.5rem, 2rem + 2vw, 4rem); font-weight: 800; line-height: 0.85; letter-spacing: -0.03em; }
.day__name { display: grid; line-height: 1.2; }
.day__name strong { font-size: 1.0625rem; }
.day__name span { color: var(--line); font-size: var(--fs-small); font-weight: 500; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.slot { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: 0.75rem; padding: 0.75rem 1.1rem 0.65rem; align-items: baseline; border-radius: 3px; background: var(--row); transition: background-color 0.25s, transform 0.4s var(--ease-lift); }
.slot:hover { background: var(--row-hi); transform: translateX(4px); }
.slot__time { font-size: var(--fs-small); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot__title { font-weight: 600; }
.slot--break { background: transparent; }
.slot--break .slot__title { font-weight: 400; color: var(--text-2); }
.slot--ceremony { background: var(--plum); }
.slot--ceremony:hover { background: var(--plum-hi); }
.slot--ceremony .slot__time { color: var(--card); }
.slot.is-now { background: var(--card); color: var(--ink); }
.slot.is-now .slot__time { color: var(--ink); }
.slot__now { margin-left: 0.5rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.2rem 0.45rem 0.1rem; background: var(--plum); color: var(--card); border-radius: 2px; }
.days--compact .slot--break { display: none; }

/* ---------- secretariat: dais nameplates ---------- */
.dais { position: relative; perspective: 1200px; }
.dais__plates { display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 1.2vw, 1rem); padding: 0 3% 1.25rem; position: relative; isolation: isolate; }
.dais__plates::before { content: ""; position: absolute; inset: 40% 0 0 0; z-index: -1; background: var(--felt), linear-gradient(180deg, #1e1826, var(--table)); clip-path: polygon(1.5% 0, 98.5% 0, 100% 100%, 0 100%); }
.dais__skirt { height: clamp(64px, 9vw, 120px); background: repeating-linear-gradient(90deg, rgba(0,0,0,.16) 0 2px, rgba(0,0,0,0) 2px 34px), linear-gradient(180deg, var(--plum-hi) 0, var(--plum) 18%, #2f1f38 100%); box-shadow: 0 30px 40px -20px rgba(0,0,0,.9); }
.nameplate {
  position: relative; flex: 1 1 0; min-width: 0; max-width: 250px; padding: 1rem 0.75rem 0.85rem; text-align: center;
  color: var(--ink); background: var(--card-grad);
  border-radius: 2px; box-shadow: inset 0 2px 0 rgba(255,255,255,.55), 0 14px 20px -12px rgba(0,0,0,.9);
  transform: rotateX(10deg) rotateY(var(--ty, 0deg)); transform-origin: bottom; transition: transform 0.6s var(--ease-lift);
}
.nameplate:hover { transform: rotateX(0deg) translateY(-8px) rotateY(var(--ty, 0deg)); }
.nameplate__name { display: block; font-size: clamp(0.9375rem, 0.7rem + 0.45vw, 1.125rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.05; }
.nameplate__role { display: block; margin-top: 0.4rem; font-size: 0.6875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--line); }
.nameplate--lead { flex-grow: 1.15; max-width: 280px; padding-block: 1.25rem 1rem; }
.nameplate--lead .nameplate__name { font-size: clamp(1.0625rem, 0.8rem + 0.55vw, 1.375rem); }

/* ---------- venue + contact ---------- */
.venue { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.map { position: relative; min-height: 360px; border-radius: 10px; overflow: hidden; background: var(--table); box-shadow: 0 40px 60px -40px rgba(0,0,0,.9); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.9) hue-rotate(200deg) contrast(0.9) brightness(0.95); }
.map::after { content: ""; position: absolute; inset: 0; background: rgba(64,42,75,.28); mix-blend-mode: color; pointer-events: none; }
.map__load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; background: radial-gradient(60% 60% at 50% 50%, #2a2233, var(--table)); }
.contact { display: grid; align-content: space-between; gap: 2.5rem; }
.contact__block { display: grid; gap: 0.85rem; }
.contact__label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); }
.contact__mail { font-size: clamp(1.4rem, 0.9rem + 2vw, 2.5rem); font-weight: 700; letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere; line-height: 1.1; }
.contact__mail:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.contact__row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Inner page header: the page's own placard on the table
   ========================================================================== */
.page-head {
  position: relative; overflow: hidden;
  background: radial-gradient(46% 80% at 50% -10%, rgba(208,206,210,.13), rgba(21,15,20,0) 70%), var(--room);
}
.page-head__room { position: relative; overflow: hidden; padding-top: clamp(10rem, 24vw, 15rem); -webkit-tap-highlight-color: transparent; }
.page-head__table { position: relative; z-index: 3; }
.page-head .hall-tally { top: 1rem; font-size: 0.75rem; }
.page-head .table__surface { padding-bottom: clamp(1.2rem, 2.5vw, 2rem); }
.page-head .table__surface::before { height: 42%; }
.page-placard { --pw: clamp(280px, 46vw, 600px); aspect-ratio: 2.3 / 1; view-transition-name: main-placard; }
.page-placard h1 { margin: 0; }
.page-placard .placard__name { font-size: min(15cqi, calc(118cqi / var(--len)), 4.75rem); }
.page-head__apron { background: linear-gradient(180deg, #1d1722, var(--room)); }
.page-head__apron .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding-block: 1.75rem 2.25rem; }
.page-head__lead { font-size: var(--fs-lead); line-height: 1.4; color: var(--text-2); max-width: 52ch; }
.page-head__lead strong { color: var(--card); font-weight: 600; }

.placeholder-note {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.95rem 1.1rem; margin-bottom: 2.5rem;
  background: rgba(64,42,75,.45); border-radius: 6px; color: var(--card); font-size: var(--fs-small);
}
.placeholder-note .i { margin-top: 0.15em; }

/* committees page */
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.chip {
  min-height: 44px; padding: 0.55rem 1.05rem 0.45rem; border-radius: 999px; border: 0;
  background: var(--fill); cursor: pointer; font-weight: 600; font-size: 0.9375rem;
  transition: background-color 0.2s, color 0.2s, transform 0.35s var(--ease-lift);
}
.chip:hover { background: var(--fill-hi); transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.chip__n { margin-left: 0.35rem; color: var(--smoke); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__n { color: var(--line); }
.clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.citem {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 2vw, 1.75rem); border-radius: 8px; background: var(--row);
  transition: background-color 0.35s;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.citem:hover, .citem.is-target { background: var(--row-hi); }
.citem[hidden] { display: none; }
.citem .placard { --pw: clamp(150px, 16vw, 210px); margin-top: 1.25rem; }
.citem__body { display: grid; gap: 0.6rem; }
.citem__meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; color: var(--text-2); font-size: var(--fs-small); }
.citem__name { font-size: var(--fs-h3); line-height: 1.15; }
.citem__agenda { font-size: var(--fs-lead); line-height: 1.35; color: var(--card); max-width: 50ch; }
.citem__agenda-label { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.25rem; }
.citem:hover .placard__body, .citem.is-target .placard__body { transform: translateY(-14%) rotateX(-4deg) rotateZ(-2deg); }
.citem:hover .placard::after, .citem.is-target .placard::after { transform: scale(0.8) translateY(10%); opacity: 0.5; }
.tag { display: inline-flex; padding: 0.3rem 0.65rem 0.2rem; border-radius: 999px; background: var(--plum); color: var(--card); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* rules page */
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); perspective: 1400px; }
.doc {
  position: relative; display: grid; gap: 1rem; align-content: space-between; min-height: 15rem;
  padding: clamp(1.5rem, 3vw, 2.25rem); text-decoration: none; color: var(--ink);
  background: var(--card-grad); border-radius: 2px; box-shadow: 0 20px 34px -18px rgba(0,0,0,.9);
  transform: rotateX(var(--dx, 0deg)) rotateY(var(--dy, 0deg));
  transition: transform 0.6s var(--ease-out), box-shadow 0.4s;
}
.doc::before { content: ""; position: absolute; right: 0; top: 0; width: 44px; height: 44px; background: linear-gradient(225deg, var(--room) 50%, var(--card-lo) 50%); }
.doc:hover, .doc:focus-visible { box-shadow: 0 34px 44px -20px rgba(0,0,0,.95); }
.doc__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 800; line-height: 1.02; text-transform: uppercase; letter-spacing: -0.01em; max-width: 14ch; }
.doc__use { color: var(--line); font-size: var(--fs-small); max-width: 34ch; }
.doc__dl { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.1em; text-transform: uppercase; }

.points-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: end; margin-bottom: 1.5rem; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.point { padding: 1.2rem 1.25rem 1.1rem; border-radius: 6px; background: var(--row); display: grid; gap: 0.4rem; align-content: start; transition: background-color 0.25s; }
.point:hover { background: var(--row-hi); }
.point__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.point__name { font-size: 1.1875rem; font-weight: 700; line-height: 1.2; }
.point__kind { flex: none; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); }
.point__when { color: var(--text-2); }
.point__note { font-size: 0.875rem; color: var(--card); }
.points-empty { padding: 2rem 0; color: var(--text-2); }
mark { background: var(--plum-hi); color: #fff; border-radius: 2px; padding: 0 0.1em; }

/* study guides */
.guides { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.guide { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; padding: 1.25rem 1.25rem; border-radius: 6px; background: var(--row); transition: background-color 0.25s; }
.guide:hover { background: var(--row-hi); }
.guide__short { font-weight: 800; font-size: 1.125rem; letter-spacing: 0.02em; }
.guide__name { color: var(--text-2); }
.guide__name strong { display: block; color: var(--card); font-weight: 600; margin-bottom: 0.15rem; }
.guide__status { font-size: var(--fs-small); color: var(--text-2); display: inline-flex; align-items: center; white-space: nowrap; }

/* venue page */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.fact { padding: 1.5rem; display: grid; gap: 0.4rem; align-content: start; background: var(--row); border-radius: 6px; }
.fact dt { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); }
.fact dd { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.map--tall { min-height: clamp(380px, 60vh, 620px); }

/* ---------- close ---------- */
.close {
  position: relative; overflow: hidden;
  padding-block: clamp(5rem, 10vw, 8rem) 0;
  background: radial-gradient(60% 70% at 50% 110%, rgba(64,42,75,.55), rgba(21,15,20,0) 70%), var(--room);
}
.close__in { display: grid; justify-items: center; text-align: center; gap: 1.5rem; }
.close h2 { font-size: var(--fs-h2); max-width: 16ch; }
.close p { color: var(--text-2); font-size: var(--fs-lead); max-width: 44ch; }
.close__table { margin-top: clamp(3rem, 6vw, 5rem); }
.close__table .table__surface { gap: clamp(0.5rem, 1.5vw, 1.25rem); padding-top: 3.5rem; }
.close__table .hp { --pw: clamp(110px, 12vw, 160px); }

/* ---------- footer ---------- */
.site-footer { background: var(--deep); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); gap: clamp(2rem, 4vw, 4rem); }
.footer__brand img { width: clamp(180px, 18vw, 240px); height: auto; }
.footer__brand p { margin-top: 1.25rem; color: var(--text-2); max-width: 34ch; font-size: var(--fs-small); }
.footer__h { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-bottom: 1rem; }
.footer__nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer__nav a { text-decoration: none; display: inline-block; padding: 0.2rem 0; }
.footer__nav a:hover { text-decoration: underline; }
.footer__mail { font-size: 1.25rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.footer__mail:hover { text-decoration: underline; }
.footer__social { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; text-decoration: none; color: var(--text-2); min-height: 44px; }
.footer__social:hover { color: var(--card); }
.footer__base { margin-top: clamp(2.5rem, 5vw, 4rem); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--smoke); font-size: 0.875rem; }

/* ---------- the chair's spotlight on every section ---------- */
.section, .close { position: relative; isolation: isolate; }
.section::before, .close::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, -600px), rgba(208,206,210,.07), rgba(208,206,210,0) 70%);
  opacity: var(--so, 0); transition: opacity 0.6s var(--ease-out);
}

/* recognised: the item the chair is calling on (touch: nearest the middle of the screen) */
.role.is-recognised { background: var(--row-hi); }
.role.is-recognised .placard__body, .citem.is-recognised .placard__body { transform: translateY(-16%) rotateX(-6deg) rotateZ(-2.5deg); }
.role.is-recognised .placard::after, .citem.is-recognised .placard::after { transform: scale(0.78) translateY(10%); opacity: 0.45; }
.citem.is-recognised, .guide.is-recognised, .point.is-recognised, .fact.is-recognised { background: var(--row-hi); }
.slot.is-recognised { background: #2a2131; transform: translateX(6px); }
.slot--ceremony.is-recognised { background: var(--plum-hi); }
.nameplate.is-recognised { transform: rotateX(0deg) translateY(-8px) rotateY(var(--ty, 0deg)); }
.doc.is-recognised { transform: translateY(-6px) rotateX(var(--dx, 0deg)) rotateY(var(--dy, 0deg)); box-shadow: 0 34px 44px -20px rgba(0,0,0,.95); }
.citem, .guide, .point, .fact, .role, .slot { transition: background-color 0.4s, transform 0.5s var(--ease-lift); }

/* words that light up as they pass the middle of the screen */
.lit-words .w { color: var(--line); transition: color 0.35s; }
.lit-words .w.is-lit { color: var(--card); }
.lit-words em .w.is-lit { color: var(--smoke); }

/* Arabic agendas: right-to-left, system Arabic face (League Spartan has no Arabic glyphs) */
.rtl { display: block; text-align: right; font-family: "Noto Sans Arabic", "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; line-height: 1.5; }
.floor__agenda blockquote .rtl { line-height: 1.45; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 80; width: min(92vw, 30rem);
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem 1.1rem; background: var(--card); color: var(--ink); border-radius: 6px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.9);
  transform: translate(-50%, 140%); opacity: 0; transition: transform 0.6s var(--ease-lift), opacity 0.3s;
  font-size: var(--fs-small); line-height: 1.45;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast a { font-weight: 700; }
.toast .i { margin-top: 0.15em; }

/* ==========================================================================
   Page transitions: the placard morphs from page to page
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-group(main-placard) { animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.4s; }

/* ==========================================================================
   Load moment: the placard is set on the table and its name inks in
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js:not(.vt-in) .hero .hero-placard .placard__body { animation: set-down 1.4s var(--ease-lift) 0.15s both; }
  .js:not(.vt-in) .hero .hero-placard .placard__name { animation: ink 1.6s var(--ease-out) 0.5s both; }
  .js:not(.vt-in) .hero .hero-placard::after { animation: shadow-in 1.4s var(--ease-lift) 0.15s both; }
  .js .hall { animation: lights-up 2s var(--ease-out) 0.3s both; }
  .js:not(.vt-in) .apron__in > * { animation: rise 0.9s var(--ease-out) both; }
  .js:not(.vt-in) .apron__in > :nth-child(1) { animation-delay: 1.05s; }
  .js:not(.vt-in) .apron__in > :nth-child(2) { animation-delay: 1.15s; }
  .js:not(.vt-in) .apron__in > :nth-child(3) { animation-delay: 1.25s; }
  .js:not(.vt-in) .page-head .page-placard .placard__body { animation: set-down 1.1s var(--ease-lift) 0.05s both; }
  .js:not(.vt-in) .page-head .page-placard .placard__name { animation: ink 1.2s var(--ease-out) 0.3s both; }
}
@keyframes set-down {
  0% { transform: translateY(-38%) rotateX(-10deg) rotateZ(-3deg); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: rotateX(var(--lean)); opacity: 1; }
}
@keyframes ink {
  0% { font-variation-settings: "wght" 200; font-weight: 200; opacity: 0.2; filter: blur(3px); }
  100% { font-variation-settings: "wght" 800; font-weight: 800; opacity: 1; filter: blur(0); }
}
@keyframes shadow-in { 0% { opacity: 0; transform: scale(0.6); } 100% { opacity: 1; transform: none; } }
@keyframes lights-up { 0% { opacity: 0; filter: brightness(0.3); } 100% { opacity: 1; filter: none; } }
@keyframes rise { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .dais__plates { flex-wrap: wrap; }
  .nameplate { flex-basis: 30%; }
  .statement, .register-grid, .venue, .floor { grid-template-columns: 1fr; }
  .maker { position: static; }
  .days { grid-template-columns: 1fr; gap: 2.5rem; }
  .points { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .apron__in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.75rem; }
  .apron__cta { justify-self: stretch; justify-content: center; }
}

@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .brand img { height: 32px; }
  .hero { min-height: auto; }
  .hero__room { padding-top: clamp(13rem, 62vw, 17rem); }
  .hero-placard { --pw: min(88vw, 420px); }
  .apron__cta .btn { flex: 1 1 auto; }
  .section__split { grid-template-columns: 1fr; align-items: start; }
  .ring-nav { width: 48px; height: 48px; margin-top: 0; top: auto; bottom: 0.25rem; }
  .ring-nav--prev { left: calc(50% - 7.5rem); }
  .ring-nav--next { right: calc(50% - 7.5rem); }
  .ring-count { bottom: 1.15rem; }
  .hall-tally { font-size: 0.75rem; letter-spacing: 0.1em; }
  .role { grid-template-columns: 1fr auto; grid-template-areas: "t fee" "b b" "a a"; padding-inline: 0.75rem; }
  .role { grid-template-areas: "pl pl" "t fee" "b b" "a a"; }
  .role .placard { --pw: 104px; margin: 1.25rem 0 0.75rem; }
  .role__act .btn { width: 100%; }
  .maker__row { grid-template-columns: 1fr; }
  .page-head__apron .wrap { grid-template-columns: 1fr; }
  .citem { grid-template-columns: 1fr; gap: 1.25rem; }
  .citem > .btn, .citem > .guide__status { justify-self: start; }
  .docs { grid-template-columns: 1fr; }
  .guide { grid-template-columns: 1fr; gap: 0.4rem; }
  .facts { grid-template-columns: 1fr; }
  .points-tools { grid-template-columns: 1fr; }
  .nameplate, .nameplate--lead { flex: none; width: 100%; max-width: 340px; }
  .dais__plates { flex-direction: column; align-items: center; }
  .dais__plates::before { inset: auto 0 0 0; height: 40px; }
  .footer__grid { grid-template-columns: 1fr; }
  .close__table .hp { --pw: calc((100vw - 2.5rem - 1.5rem) / 4); }
  .close__table .table__surface { gap: 0.5rem; padding-inline: 1.25rem; }
  .close__table .hp:nth-child(n+5) { display: none; }
}

@media (max-width: 420px) {
  .countdown__digits { font-size: 2rem; }
  .digit { width: 0.6em; }
}
