/* LATITUDE main stylesheet. Layout, components, motion. Tokens live in tokens.css. */

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 340;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--midnight); }

/* focus ring in the family's own geometry: a thin double rule, rectilinear */
:focus-visible {
  outline: 1px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 1px var(--focus);
  border-radius: 0;
}

/* anchor landings clear the fixed header; the gate sits a touch tighter
   so the step marks read first */
main [id] { scroll-margin-top: 4.65rem; }
#apply-06 { scroll-margin-top: 4.15rem; }

.skip-link {
  position: fixed;
  top: var(--s-3);
  left: var(--s-3);
  z-index: var(--z-skip);
  padding: var(--s-3) var(--s-5);
  background: var(--gold-bright);
  color: var(--midnight);
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  font-weight: 600;
  letter-spacing: var(--track-lbl);
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.5rem));
}
.skip-link:focus-visible { transform: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- text roles ---------- */
.display, .h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--track-display);
  line-height: var(--lh-display);
  text-wrap: balance;
}
.masthead {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--t-masthead);
  text-transform: uppercase;
  letter-spacing: var(--track-masthead);
  line-height: 1;
  text-wrap: balance;
}
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }

.lead {
  font-size: var(--t-lead);
  font-weight: 300;
  line-height: 1.5;
  max-width: var(--measure);
  text-wrap: pretty;
}
.body-copy { max-width: var(--measure); color: var(--muted); text-wrap: pretty; }

/* label role: Outfit smallcaps-style tracking, the deco engraving voice */
.lbl {
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  font-weight: 500;
  letter-spacing: var(--track-lbl);
  text-transform: uppercase;
}
.lbl--muted { color: var(--muted); }
.lbl--accent { color: var(--accent); }

/* kicker with flanking hairlines: the section opener */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--accent);
}
.kicker::before,
.kicker::after {
  content: "";
  width: 2.6rem;
  height: 1px;
  background: var(--line-strong);
}

.accent { color: var(--accent); }

/* SAMPLE chip: honesty marker on unverifiable content */
.chip {
  display: inline-block;
  padding: 0.3em 0.75em;
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

/* ---------- deco furniture ---------- */
/* thin double rule: the family's signature divider */
.drule {
  border: 0;
  margin: 0;
  height: 5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* deco frame: double border (border + offset outline) with gold corner marks */
.deco-frame {
  position: relative;
  border: 1px solid var(--line);
  outline: 1px solid var(--line);
  outline-offset: 3px;
}
.deco-frame::before {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
  background-image:
    linear-gradient(var(--accent-rule), var(--accent-rule)),
    linear-gradient(var(--accent-rule), var(--accent-rule)),
    linear-gradient(var(--accent-rule), var(--accent-rule)),
    linear-gradient(var(--accent-rule), var(--accent-rule)),
    linear-gradient(var(--accent-rule), var(--accent-rule)),
    linear-gradient(var(--accent-rule), var(--accent-rule)),
    linear-gradient(var(--accent-rule), var(--accent-rule)),
    linear-gradient(var(--accent-rule), var(--accent-rule));
  background-repeat: no-repeat;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-size:
    var(--corner) 1px, 1px var(--corner),
    var(--corner) 1px, 1px var(--corner),
    var(--corner) 1px, 1px var(--corner),
    var(--corner) 1px, 1px var(--corner);
}

/* small deco diamond, used as a separator dot */
.diamond {
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  background: var(--accent-rule);
  transform: rotate(45deg);
  vertical-align: middle;
}

/* ---------- layout primitives ---------- */
.wrap {
  width: min(100% - 2 * var(--edge), var(--max-w));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-pad);
  background: var(--bg);
  color: var(--fg);
}
.section--flush { padding-block: 0; }
.section--hairline { border-top: 1px solid var(--line-neutral); }

.section-head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s-4);
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.section-head .h2 { max-width: 24ch; }
.section-head .head-note { color: var(--muted); max-width: 46ch; text-wrap: pretty; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  background: rgba(11, 16, 38, 0.92);
  border-bottom: 1px solid var(--line);
  color: var(--starlight);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 3.4rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.brand svg { width: 20px; height: 20px; color: var(--gold-bright); }

.site-nav { display: flex; gap: var(--s-5); }
.site-nav a {
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.78;
  transition: opacity var(--dur-1) ease;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { opacity: 1; }
.site-nav a[aria-current="true"] { color: var(--gold-bright); }

.header-right { display: flex; align-items: center; gap: var(--s-5); }
.header-odo { color: var(--gold-bright); }

.header-cta {
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.55em 1.3em;
  border: 1px solid var(--line-strong);
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, border-color var(--dur-1) ease;
}
.header-cta:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--midnight); }

.menu-btn {
  display: none;
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55em 1.1em;
  border: 1px solid var(--line);
}

/* menu overlay: focus-trapped dialog */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  background: var(--midnight);
  color: var(--starlight);
  display: none;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--s-9) var(--edge) var(--s-6);
  border-top: 4px double var(--gold);
}
.menu-overlay.is-open { display: flex; overflow-y: auto; overscroll-behavior: contain; }
.menu-overlay nav { display: flex; flex-direction: column; gap: var(--s-3); }
.menu-overlay nav a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  line-height: 1.15;
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
}
.menu-overlay nav a .lbl { color: var(--gold-bright); }
.menu-close {
  position: absolute;
  top: var(--s-5);
  right: var(--edge);
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55em 1.1em;
  border: 1px solid var(--line);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7em;
  padding: 1em 2.1em;
  background: var(--gold-bright);
  color: var(--midnight);
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold-bright);
  transition: background-color var(--dur-1) ease, color var(--dur-1) ease, border-color var(--dur-1) ease;
}
.btn:hover { background: var(--white); border-color: var(--white); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: transparent; border-color: var(--fg); color: var(--fg); }
[data-theme="day"] .btn { background: var(--gold-ink); border-color: var(--gold-ink); color: var(--starlight); }
[data-theme="day"] .btn:hover { background: var(--fg); border-color: var(--fg); }

/* ---------- countdown odometer ---------- */
.odo {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5em;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.odo-group { display: grid; justify-items: center; gap: 0.45em; }
.odo-digits { display: flex; }
.odo-col {
  height: 1em;
  overflow: hidden;
}
.odo-strip {
  display: block;
  transition: transform 620ms var(--ease-inout);
}
.odo-strip > span { display: block; height: 1em; line-height: 1; }
.odo-unit {
  font-family: var(--font-body);
  font-size: 0.14em;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

/* compact variant: nav */
.odo--nav { font-size: 1.02rem; gap: 0.3em; color: inherit; }
.odo--nav .odo-unit { font-size: 0.6em; letter-spacing: 0.08em; color: inherit; opacity: 0.75; }
.odo--nav .odo-group { grid-auto-flow: column; align-items: baseline; gap: 0.18em; }

/* grand variants: hero and pre-footer */
.odo--hero { font-size: clamp(2.1rem, 6.5vw, 4.6rem); }
/* the monumental countdown is ~8.75em wide at any size, so the ramp stays
   under the wrap it sits in: 10vw pushed the deco frame off the page between
   roughly 700 and 1500 pixels */
.odo--grand { font-size: clamp(2.4rem, 8.6vw, 8.6rem); color: var(--gold-bright); }
.odo--grand .odo-unit, .odo--hero .odo-unit { font-size: max(0.14em, 0.62rem); }

.odo-fallback { font-family: var(--font-display); letter-spacing: 0.06em; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--s-6);
  padding-block: calc(3.4rem + var(--s-8)) var(--s-8);
  overflow: clip;
  background:
    radial-gradient(60% 45% at 50% 118%, rgba(194, 155, 64, 0.16), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cg fill='%23ededf4'%3E%3Ccircle cx='27' cy='52' r='0.8' opacity='0.5'/%3E%3Ccircle cx='121' cy='19' r='0.6' opacity='0.4'/%3E%3Ccircle cx='204' cy='84' r='1' opacity='0.55'/%3E%3Ccircle cx='299' cy='41' r='0.7' opacity='0.4'/%3E%3Ccircle cx='72' cy='143' r='0.7' opacity='0.45'/%3E%3Ccircle cx='167' cy='176' r='0.5' opacity='0.35'/%3E%3Ccircle cx='258' cy='150' r='0.9' opacity='0.5'/%3E%3Ccircle cx='38' cy='231' r='0.6' opacity='0.4'/%3E%3Ccircle cx='139' cy='265' r='0.9' opacity='0.5'/%3E%3Ccircle cx='231' cy='247' r='0.6' opacity='0.35'/%3E%3Ccircle cx='313' cy='222' r='0.8' opacity='0.45'/%3E%3Ccircle cx='90' cy='311' r='0.6' opacity='0.4'/%3E%3Ccircle cx='196' cy='329' r='0.7' opacity='0.45'/%3E%3Ccircle cx='288' cy='305' r='0.5' opacity='0.35'/%3E%3C/g%3E%3C/svg%3E"),
    var(--bg);
}
.hero .wrap { display: grid; justify-items: center; gap: var(--s-6); }
.hero-kicker { color: var(--gold-bright); }
.hero .masthead { color: var(--starlight); }
.hero-dateline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--s-4);
  color: var(--muted);
}
.hero-odo-block { display: grid; justify-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.hero-rule { width: min(34rem, 80vw); }

/* ---------- manifesto ---------- */
.manifesto-lede {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.7rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
  max-width: 30ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
.manifesto-lede .accent { color: var(--gold-bright); }
.manifesto-note {
  margin: var(--s-7) auto 0;
  text-align: center;
  max-width: var(--measure);
}

/* ---------- speakers ---------- */
.spk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.spk-card {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5);
  background: var(--bg-2);
}
.spk-portrait {
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  background:
    repeating-conic-gradient(from 262deg at 50% 130%, rgba(232, 201, 121, 0.1) 0deg 0.55deg, transparent 0.55deg 11deg),
    linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
}
.spk-portrait img { width: 100%; height: 100%; object-fit: cover; }
.spk-initials {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.5vw, 3.6rem);
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}
.spk-meta { display: grid; gap: var(--s-1); }
.spk-meta .h3 { font-size: 1.15rem; letter-spacing: 0.08em; }
.spk-role { color: var(--muted); font-size: var(--t-small); }
.spk-note {
  margin-top: var(--s-6);
  text-align: center;
  color: var(--muted);
  font-size: var(--t-small);
}

/* deliberate asymmetry: the one section head on the page that leaves the
   center axis; the kicker's leading hairline is dropped so it hangs */
#speakers-03 .section-head { justify-items: start; text-align: left; }
#speakers-03 .section-head .kicker::before { content: none; }

/* speaker bios: inline blocks per card, lifted into one shared dialog by JS.
   Without JS the bios simply read in place. */
.spk-more {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.2em 0;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur-1) ease, border-color var(--dur-1) ease;
}
.spk-more::before {
  content: "";
  width: 0.35em;
  height: 0.35em;
  background: var(--accent-rule);
  transform: rotate(45deg);
}
.spk-more:hover { color: var(--fg); border-color: var(--fg); }
html:not(.js) .spk-more { display: none; }

.spk-bio { display: grid; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.spk-bio[hidden] { display: none; }
html:not(.js) .spk-bio[hidden] { display: grid; }
.spk-talk {
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.spk-bio-copy { color: var(--muted); font-size: var(--t-small); }

.spk-dialog {
  background: var(--bg-2);
  color: var(--fg);
  border-color: var(--line);
  padding: clamp(1.75rem, 5vw, 2.75rem);
  width: min(92vw, 36rem);
}
.spk-dialog::backdrop { background: rgba(11, 16, 38, 0.78); }
.spk-dialog-body { display: grid; gap: var(--s-3); }
.spk-dialog-name {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-right: 5rem; /* clears the close button */
}
.spk-dialog .spk-role { margin-bottom: var(--s-2); }
.spk-dialog .spk-bio-copy { font-size: var(--t-body); }
.spk-dialog-close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  padding: 0.45em 1em;
  border: 1px solid var(--line);
  transition: border-color var(--dur-1) ease;
}
.spk-dialog-close:hover { border-color: var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  .spk-dialog[open] { animation: spk-dialog-in 260ms var(--ease-out); }
  @keyframes spk-dialog-in {
    from { opacity: 0; transform: translateY(0.6rem); }
  }
}

/* ---------- itinerary day plates: static, separated by the deco double rule
   (sticky-stack scrolling belongs to another family in the panel, banned here) ---------- */
.stack { display: grid; gap: clamp(2rem, 5vh, 3.5rem); }
.day-card {
  background: var(--bg-2);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-1);
}
.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.day-head .h3 { letter-spacing: 0.09em; }
.session-list { display: grid; }
.session {
  display: grid;
  grid-template-columns: 8.5ch 1fr auto;
  gap: var(--gutter);
  align-items: baseline;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--line-neutral);
}
.session:last-child { border-bottom: 0; }
.session-time { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.session-title { font-weight: 450; }
.session-who { color: var(--muted); font-size: var(--t-small); display: block; margin-top: 0.15rem; }
.session-kind { color: var(--muted); }
.day-foot { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); align-items: center; }
.day-foot-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* live-day highlight: dormant until the summit window (see main.js).
   Reduced motion gets the same chip, at rest. */
.session.is-now {
  background: var(--bg-3);
  box-shadow: inset 3px 0 0 var(--accent-rule);
  padding-inline: var(--s-4);
}
.session-now {
  display: inline-block;
  margin-left: var(--s-3);
  padding: 0.25em 0.7em;
  background: var(--accent);
  color: var(--bg);
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .session-now { animation: now-breathe 2.6s var(--ease-inout) infinite alternate; }
  @keyframes now-breathe {
    from { opacity: 1; }
    to { opacity: 0.7; }
  }
}

/* running order: only present while the summit is in session (see main.js) */
.room-status {
  display: block;
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--accent-rule);
  border-bottom: 1px solid var(--accent-rule);
  color: var(--fg);
  text-transform: none;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.room-status[hidden] { display: none; }
.room-status::before {
  content: "";
  display: inline-block;
  width: 0.4em;
  height: 0.4em;
  margin-right: 0.7em;
  background: var(--accent-rule);
  transform: rotate(45deg);
  vertical-align: middle;
}
.banner-cal { margin-top: var(--s-2); }

/* deliberate asymmetry (itinerary): the foyer plate hangs left of the
   center axis every other block sits on */
.rhythm-figure { max-width: 56rem; margin: 0 auto var(--s-8) 0; }

/* ---------- venue ---------- */
.venue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.venue-media { padding: 4px; }
.venue-media img { width: 100%; height: auto; }
.venue-notes { display: grid; gap: var(--s-5); }
.travel-list { display: grid; gap: var(--s-4); }
.travel-list li { display: grid; grid-template-columns: 9ch 1fr; gap: var(--s-4); align-items: baseline; }
.travel-list .lbl { color: var(--gold-bright); }
[data-theme="day"] .travel-list .lbl { color: var(--gold-ink); }
.travel-list p { color: var(--muted); font-size: var(--t-small); }

/* ---------- application gate ---------- */
.gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.gate-terms { display: grid; gap: var(--s-5); }

/* two-step gate: step marks, fieldsets, and the review interstitial.
   All of it disappears without JS, leaving one flat form. */
.gate-steps { display: flex; gap: var(--s-6); }
.gate-steps li { display: inline-flex; align-items: baseline; gap: var(--s-2); color: var(--muted); }
.gate-steps li[aria-current="step"] { color: var(--accent); }
.gate-steps .gate-step-n { font-family: var(--font-display); font-size: 1.1rem; }
.gate-step { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--s-5); }
.gate-review { border: 1px solid var(--line); padding: var(--s-5); display: grid; gap: var(--s-3); }
.gate-review-line { font-weight: 450; }
.gate-review-promise { color: var(--muted); font-size: var(--t-small); }
.gate-edit {
  justify-self: start;
  font-size: var(--t-lbl);
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15em;
  transition: color var(--dur-1) ease, border-color var(--dur-1) ease;
}
.gate-edit:hover { color: var(--fg); border-color: var(--fg); }
html:not(.js) .gate-steps,
html:not(.js) .gate-step-actions,
html:not(.js) .gate-review { display: none; }
.gate-terms .term { display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); align-items: baseline; }
.gate-terms .term .diamond { margin-top: 0.2em; }
.gate-terms .term p { color: var(--muted); }
.gate-terms .term strong { color: var(--fg); font-weight: 500; }
.gate-form-panel { padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--bg-2); }

/* the sure path when scripts never arrive: the form posts to the curators'
   mail app, and the notice carries the address and the line in plain sight */
.nojs-note {
  border: 1px solid var(--line-strong);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
  color: var(--muted);
  font-size: var(--t-small);
}
.nojs-note a { color: var(--accent); }
html.js .nojs-note { display: none; }

/* the draft this page keeps while you type, said plainly under the form */
.draft-note {
  display: none;
  margin-top: var(--s-5);
  color: var(--muted);
  font-size: var(--t-small);
  max-width: 46ch;
}
html.js .draft-note { display: block; }

/* ---------- forms ---------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label {
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.field-hint { font-size: var(--t-small); color: var(--muted); margin: 0; }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0;
  font: inherit;
  color: var(--fg);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  padding: var(--s-3) 0;
  transition: border-color var(--dur-1) ease;
}
.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  box-shadow: none;
  border-bottom: 2px solid var(--gold-bright);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none;
  padding-right: 1.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a9abc4' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.field select option { color: var(--midnight); background: var(--starlight); }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--gold-bright); }
.field-error {
  font-family: var(--font-body);
  font-size: var(--t-lbl);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0;
}
.form-errors {
  border: 1px solid var(--gold-bright);
  padding: var(--s-4) var(--s-5);
}
.form-errors p { margin: 0 0 var(--s-2); }
.form-errors ul { margin: 0; padding-left: 0; list-style: none; display: grid; gap: var(--s-1); }
.form-errors li { display: flex; gap: var(--s-3); align-items: baseline; }
.form-errors li::before {
  content: "";
  flex: none;
  width: 0.35em;
  height: 0.35em;
  background: var(--accent-rule);
  transform: rotate(45deg);
}
.form-errors a { color: var(--gold-bright); }
.form-status:empty { display: none; }
.form-status { color: var(--fg); max-width: var(--measure); }
.form[aria-busy="true"] .btn { opacity: 0.6; pointer-events: none; }
.form-fallback {
  border: 1px solid var(--line-strong);
  padding: var(--s-5);
  display: grid;
  gap: var(--s-4);
}
.form-fallback textarea {
  font-family: var(--font-body);
  font-size: var(--t-small);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line);
  padding: var(--s-3);
  width: 100%;
  resize: vertical;
}
.form-fallback-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- questions at the threshold ----------
   The pre-application questions, kept out of the full-width row stack: the
   head holds the left column and each question stands as its own plate with a
   roman numeral and a diamond latch that fills when the answer is open. */
.threshold-grid {
  display: grid;
  gap: clamp(2rem, 5vh, 3.25rem);
  align-items: start;
}
.threshold-head {
  justify-items: start;
  text-align: left;
  margin-bottom: 0;
}
.threshold-head .kicker::before { content: none; }
.threshold-list { display: grid; gap: var(--s-3); }
.threshold-item {
  background: var(--bg-2);
  border: 1px solid var(--line-neutral);
}
.threshold-h { font-size: inherit; margin: 0; }
.threshold-ask {
  width: 100%;
  display: grid;
  grid-template-columns: 4ch 1fr 1rem;
  gap: var(--gutter);
  align-items: baseline;
  padding: clamp(1rem, 2.2vh, 1.5rem) clamp(1rem, 2.5vw, 1.75rem);
  text-align: left;
  border-left: 2px solid transparent;
  transition: border-color var(--dur-2) ease;
}
.threshold-ask[aria-expanded="true"] { border-left-color: var(--accent-rule); }
.threshold-n {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.threshold-ask:not(:disabled):hover .threshold-q { color: var(--accent); }
.threshold-q {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--dur-1) ease;
}
.threshold-mark {
  width: 0.62rem;
  height: 0.62rem;
  justify-self: end;
  align-self: center;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  transition: transform var(--dur-2) var(--ease-out), background-color var(--dur-2) ease;
}
.threshold-ask[aria-expanded="true"] .threshold-mark {
  transform: rotate(135deg);
  background: var(--accent);
}
.threshold-answer { overflow: hidden; }
.threshold-answer[hidden] { display: none; }
/* without JS the plates are a plain question-and-answer ledger: every answer
   stands open, the latch that would fold it is put away, and the button stays
   disabled so no keyboard stops on a control with nothing behind it */
html:not(.js) .threshold-mark { display: none; }
html:not(.js) .threshold-ask { cursor: default; grid-template-columns: 4ch 1fr; }
.threshold-answer-inner {
  padding: 0 clamp(1rem, 2.5vw, 1.75rem) clamp(1.1rem, 2.4vh, 1.6rem)
    calc(4ch + var(--gutter) + clamp(1rem, 2.5vw, 1.75rem));
  color: var(--muted);
  max-width: 48rem;
}
@media (min-width: 64rem) {
  .threshold-grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    gap: clamp(3rem, 6vw, 6rem);
  }
}

/* ---------- grand countdown band ---------- */
.countdown-band {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--s-6);
  padding-block: var(--section-pad);
}
.countdown-band .deco-frame {
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 5rem);
  display: grid;
  justify-items: center;
  gap: var(--s-6);
  max-width: 100%;
}

/* ---------- banner (interior pages) ---------- */
.banner {
  padding-block: calc(3.4rem + var(--s-8)) var(--s-7);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--s-4);
  border-bottom: 1px solid var(--line-neutral);
  background:
    radial-gradient(55% 60% at 50% 130%, rgba(194, 155, 64, 0.14), transparent 70%),
    var(--bg);
}
.breadcrumb { display: flex; gap: var(--s-3); align-items: center; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--fg); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; display: grid; justify-items: center; gap: var(--s-5); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 4px double var(--gold);
  padding-top: var(--s-8);
  background: var(--bg);
  color: var(--fg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--gutter);
  padding-bottom: var(--s-7);
}
.footer-grid h2 { margin-bottom: var(--s-4); }
/* footer columns keep a marker, but it is the family's square pip in gold,
   never the browser's disc (::marker color/size is honored everywhere the
   site supports; the square shape survives even where content is not) */
.footer-grid ul { display: grid; gap: var(--s-2); padding-left: 1.1em; list-style: square; }
.footer-grid li::marker { color: var(--accent-rule); font-size: 0.6em; }
.footer-grid a { text-decoration: none; color: var(--muted); transition: color var(--dur-1) ease; font-size: var(--t-small); }
.footer-grid a:hover { color: var(--fg); }
.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-neutral);
  color: var(--muted);
}

/* ---------- reveal motion ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity var(--dur-3) ease, transform var(--dur-3) var(--ease-out);
}
.js .reveal.is-inview { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: 90ms; }
.js .reveal[data-delay="2"] { transition-delay: 180ms; }
.js .reveal[data-delay="3"] { transition-delay: 270ms; }

/* ---------- styleguide page ---------- */
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: var(--gutter); }
.sg-swatch { border: 1px solid var(--line-neutral); overflow: hidden; }
.sg-swatch-color { height: 7rem; }
.sg-swatch dl { padding: var(--s-4); display: grid; gap: var(--s-1); margin: 0; }
.sg-swatch dt { font-size: var(--t-lbl); letter-spacing: var(--track-lbl); text-transform: uppercase; color: var(--muted); }
.sg-swatch dd { margin: 0; font-size: var(--t-small); }
.sg-row { display: grid; grid-template-columns: 14rem 1fr; gap: var(--gutter); align-items: baseline; padding-block: var(--s-4); }
.sg-demo { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; }

/* ---------- error page ---------- */
.error-hero {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: var(--s-5);
  padding-inline: var(--edge);
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 28vw, 18rem);
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}
.error-actions { display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 63.9rem) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
  html:not(.js) .site-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); justify-content: flex-end; }
  html:not(.js) .menu-btn { display: none; }
  .header-cta { display: none; }
  .header-odo { display: none; }
  .spk-grid { grid-template-columns: repeat(2, 1fr); }
  .venue-grid { grid-template-columns: minmax(0, 1fr); }
  .gate-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: var(--s-6); }
  .session { grid-template-columns: 7ch 1fr; }
  .session-kind { grid-column: 2; }
  .sg-row { grid-template-columns: 1fr; }
  /* tablet widths: the deco frame's own padding gives the digits room */
  .countdown-band .deco-frame { padding-inline: clamp(1rem, 3.5vw, 2.5rem); }
}

@media (max-width: 40rem) {
  .spk-grid { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
  .spk-card { padding: var(--s-3); }
  .threshold-ask { grid-template-columns: 1fr 1rem; }
  .threshold-ask > .threshold-n { display: none; }
  .threshold-answer-inner { padding-left: clamp(1rem, 2.5vw, 1.75rem); }
  .odo--grand { font-size: clamp(1.9rem, 8vw, 8.6rem); gap: 0.35em; }
  .odo--grand .odo-unit { letter-spacing: 0.14em; }
  .odo--hero { font-size: clamp(1.7rem, 7vw, 4.6rem); }
  .countdown-band .deco-frame { padding-inline: 0.75rem; }
  .odo--nav { font-size: 0.85rem; }
}

/* ---------- cross-page transitions (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

/* ---------- preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .odo-strip { transition: none; }
  .btn, .header-cta, .threshold-mark, .site-nav a { transition: none; }
  .spk-more, .gate-edit, .spk-dialog-close { transition: none; }
}

/* ---------- print: the programme on paper ----------
   Tokens flip to an ink-on-paper set (same mechanism as the day theme);
   chrome, countdowns, and controls stay on screen where they belong. */
@media print {
  :root {
    --bg: #ffffff;
    --bg-2: #ffffff;
    --bg-3: #f0f0f4;
    --fg: #141833;
    --muted: #3f4358;
    --line: rgba(20, 24, 51, 0.35);
    --line-strong: rgba(20, 24, 51, 0.55);
    --line-neutral: rgba(20, 24, 51, 0.2);
    --accent: var(--gold-ink);
    --accent-rule: var(--gold);
  }
  .site-header,
  .menu-overlay,
  .skip-link,
  .hero-odo-block,
  #countdown-08,
  .btn,
  .header-cta,
  .gate-form-panel,
  .spk-more,
  .room-status, /* a clock line is stale the moment it prints */
  .site-footer .footer-grid { display: none !important; }
  .hero { min-height: 0; }
  .section, .hero, .banner { padding-block: 1.2rem; }
  .day-card { box-shadow: none; border: 1px solid var(--line-neutral); }
  .session { break-inside: avoid; }
  .spk-bio[hidden] { display: grid; } /* bios print in full */
  .reveal { opacity: 1 !important; transform: none !important; }
  .session-time,
  .travel-list .lbl,
  .hero-kicker,
  .spk-initials,
  .manifesto-lede .accent { color: var(--accent); }
}

@media (forced-colors: active) {
  .btn, .header-cta { border: 1px solid ButtonText; }
  .deco-frame::before { display: none; }
}
