/* NOONWELL. Desktop-first; phones adapt at the bottom of each block.
   Every colour and font goes through a token below. Palette: bone, travertine, umber-grey,
   jade water; sunlight is the only accent (on the dark hall). No blue, no red. */
:root {
  --bone: #E9DFCF;
  --travertine: #CDBBA0;
  --umber: #4A443D;
  --jade: #8FB5A6;
  --jade-deep: #3E5A52;
  --sun: #FFF1D6;
  --plum: #4A4048;
  --lamp: #FFE3B0;
  --ink: #2B2723;                                   /* umber, deepened for body text on bone */
  --sand: color-mix(in srgb, var(--bone) 62%, var(--travertine));
  --line: color-mix(in srgb, var(--umber) 26%, transparent);
  --line-light: color-mix(in srgb, var(--bone) 30%, transparent);

  --font-display: "Gambetta", "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;   /* headings; Satoshi for reading text, Geist Mono for labels */
  --font-body: "Satoshi", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --pad: clamp(1.25rem, 3.4vw, 3.5rem);
  --wrap: 84rem;
  --fade: 0.7s;
  --iris: cubic-bezier(0.76, 0, 0.24, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }
html { background: var(--bone); -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem;
  scrollbar-color: color-mix(in srgb, var(--ink) 40%, transparent) transparent; scrollbar-width: thin;
}
body {
  font: 400 1rem/1.55 var(--font-body); color: var(--ink); background: var(--bone);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.label {
  font: 400 0.65625rem/1.2 var(--font-mono);
  letter-spacing: 0.2em; text-transform: uppercase;
}
.display {
  font: 300 clamp(2.5rem, 5.4vw, 5.25rem)/1 var(--font-display);
  letter-spacing: -0.02em; overflow-wrap: break-word; min-width: 0; text-wrap: balance;
}
.display--small { font-size: clamp(1.9rem, 3vw, 2.75rem); }
.body { font-size: 1rem; line-height: 1.6; }
.measure { max-width: 34rem; }

.jump {
  position: fixed; left: var(--pad); top: 0.75rem; z-index: 20; padding: 0.6rem 0.9rem;
  background: var(--bone); color: var(--ink); transform: translateY(-300%);
}
.jump:focus-visible { transform: none; }

/* ============================================================== hero / film */
/* A tall section with one screen pinned inside it. Scrolling the section plays the day
   (main.js, TIMELINE). Without scripting the hero is one screen with the morning picture. */
.hero { position: relative; background: var(--ink); }
.js .hero { height: 980vh; }
.stage {
  --inset-b: 0px;
  position: sticky; top: 0; height: 100vh; overflow: hidden; color: var(--sun); background: var(--ink);
}
/* Phones: the picture fills the tall viewport (no resize when the address bar moves) and the
   copy keeps clear of the part the bar can cover. */
@supports (height: 100lvh) {
  .stage { height: 100lvh; --inset-b: calc(100lvh - 100svh); }
}

.plate, .film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* The still picture underneath. Scaled to the same crop the engine draws. */
.plate { object-fit: cover; transform: scale(1.045); opacity: 0; }
.plate.is-on { opacity: 1; }
/* The canvas fades in over the still once the pictures have loaded. */
.film {
  opacity: 0; transition: opacity var(--fade) ease;
  touch-action: pan-y pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; outline: none;
}
.is-live .film { opacity: 1; }
.is-fallback .film { display: none; }
.film:focus-visible { outline: 2px solid var(--sun); outline-offset: -6px; }

/* Soft shade where the copy sits and under the top bar. Two layers: bottom left (the default) and its mirror
   for a beat on the right. main.js sets data-side on <html> and the two cross-fade. Both also follow --chrome. */
.shade {
  --on: 1;
  position: absolute; inset: 0; pointer-events: none;
  opacity: calc(var(--chrome, 1) * var(--on)); transition: opacity 0.6s ease;
  background:
    radial-gradient(ellipse 72% 64% at 0% 100%, color-mix(in srgb, var(--ink) 76%, transparent) 0, color-mix(in srgb, var(--ink) 36%, transparent) 34%, transparent 68%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 58%, transparent) 0, transparent 9rem);
}
.shade--right {
  --on: 0;
  background:
    radial-gradient(ellipse 72% 64% at 100% 100%, color-mix(in srgb, var(--ink) 76%, transparent) 0, color-mix(in srgb, var(--ink) 36%, transparent) 34%, transparent 68%),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 58%, transparent) 0, transparent 9rem);
}
:root[data-side="right"] .shade { --on: 0; }
:root[data-side="right"] .shade--right { --on: 1; }

.topbar {
  position: absolute; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: calc(var(--pad) * 0.8 + env(safe-area-inset-top)) calc(var(--pad) + env(safe-area-inset-right)) 0 calc(var(--pad) + env(safe-area-inset-left));
  pointer-events: none;
  text-shadow: 0 0 1.2em rgba(27, 23, 20, 0.55), 0 0 0.3em rgba(27, 23, 20, 0.45);
}
.topbar > * { pointer-events: auto; }
.wordmark {
  font: 400 0.8125rem/1 var(--font-mono); letter-spacing: 0.42em; text-transform: uppercase;
  text-decoration: none; justify-self: start;
}
.session-label { opacity: 0.9; pointer-events: none; font-variant-numeric: tabular-nums; }
.link-quiet {
  justify-self: end; font: 400 0.65625rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding: 0.7rem 0; border-bottom: 1px solid color-mix(in srgb, var(--sun) 55%, transparent);
  transition: border-color 0.25s ease;
}
.link-quiet:hover { border-color: currentColor; }
.topbar-end { justify-self: end; display: flex; align-items: center; gap: 1.75rem; }
.sound {
  display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0; border: 0; background: none;
  color: inherit; cursor: pointer; opacity: 0.82; transition: opacity 0.25s ease;
  font: 400 0.65625rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
}
.sound[hidden] { display: none; }
.sound::before {
  content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; border: 1px solid currentColor;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.sound:hover, .sound[aria-pressed="true"] { opacity: 1; }
.sound[aria-pressed="true"]::before { background: var(--sun); border-color: var(--sun); }
#sound-state { display: inline-block; min-width: 3ch; text-align: left; }
.stage :focus-visible { outline-color: var(--sun); }

/* --- copy over the film -------------------------------------------------- */
/* main.js sets each beat's opacity and rise from the scroll position and smooths them itself, so there is
   no CSS transition here (one on top makes the copy lag the picture). */
/* Leaving through the oculus: the shade, top bar and rail fade away (--chrome), and where the shader cannot do
   the rise (no WebGL, reduced motion) a veil of the page colour fades in (--veil). Both set by main.js. */
.topbar, .rail { opacity: var(--chrome, 1); }
.stage.is-leaving .topbar, .stage.is-leaving .rail { visibility: hidden; }
.veil { position: absolute; inset: 0; pointer-events: none; background: var(--bone); opacity: var(--veil, 0); }
.beats { position: absolute; inset: 0; pointer-events: none; }
.beat.beat--sky {
  left: 50%; bottom: auto; top: 50%; width: min(72rem, 90vw); translate: -50% -60%; text-align: center;   /* sits 60% of its own height above the middle */
  text-shadow: none;
}
.sky-line { margin: 0.9rem 0 0; font: 300 clamp(2.25rem, 6vw, 6rem)/1.05 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.beat {
  position: absolute; left: calc(var(--pad) + env(safe-area-inset-left));
  bottom: calc(var(--pad) * 1.4 + var(--inset-b) + env(safe-area-inset-bottom));
  width: min(38rem, 46vw); opacity: 0;
  text-shadow: 0 0 1.6em var(--ink), 0 0 0.5em color-mix(in srgb, var(--ink) 70%, transparent);
}
.beat.is-on { opacity: 1; }
.beat--intro { width: auto; right: calc(var(--pad) + 7rem); }
/* A beat can sit bottom right (data-side="right" on the beat); the mirrored shade follows. */
.beat[data-side="right"]:not(.beat--sky) { left: auto; right: calc(var(--pad) + 7rem + env(safe-area-inset-right)); text-align: left; }
.beat a { pointer-events: auto; }
.beat.is-off a { pointer-events: none; }

.headline {
  min-width: 0; overflow-wrap: break-word;
  font: 300 clamp(3rem, min(10vw, 24vh), 11.5rem) / 0.92 var(--font-display);
  letter-spacing: -0.03em;
}
.headline em { font-style: italic; }
.lede { margin-top: 1.3rem; font-size: 1.0625rem; max-width: 26rem; opacity: 0.94; }
.hint { margin-bottom: 1.2rem; opacity: 0; transition: opacity 0.6s ease; }
.is-live .hint { opacity: 0.85; transition-delay: 1.4s; }
.is-live.has-tapped .hint { opacity: 0; transition-delay: 0s; }

.beat .label:not(.hint) { opacity: 0.9; font-variant-numeric: tabular-nums; }
.beat .label { font-variant-numeric: tabular-nums; }
.beat-title {
  margin-top: 1rem; min-width: 0; overflow-wrap: break-word;
  font: 300 clamp(2.25rem, min(8.5vh, 4.6vw), 5.5rem) / 1 var(--font-display); letter-spacing: -0.02em;
}
.beat-line { margin-top: 1rem; font-size: 1.0625rem; max-width: 27rem; }
.beat-cta {
  display: inline-block; margin-top: 1.5rem; padding: 0.85rem 0;
  font: 400 0.75rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sun); text-decoration: none; text-shadow: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sun) 45%, transparent);
  transition: border-color 0.25s ease;
}
.beat-cta:hover { border-color: var(--sun); }

/* --- the day rail (right edge) ------------------------------------------- */
.rail {
  --rail-r: calc(var(--pad) + env(safe-area-inset-right));
  position: absolute; top: 50%; right: var(--rail-r); transform: translateY(-50%);
}
/* A soft shade from the screen edge, behind the times, so they read over bright stone. It fades out in every
   direction (an ellipse, not a box): a box showed its straight top and bottom edges over the sunlit wall. */
.rail::after {
  content: ""; position: absolute; z-index: -1; top: -5rem; bottom: -5rem; right: calc(-1 * var(--rail-r)); width: 10rem;
  pointer-events: none;
  background: radial-gradient(ellipse 100% 50% at 100% 50%, color-mix(in srgb, var(--ink) 36%, transparent) 0, color-mix(in srgb, var(--ink) 26%, transparent) 45%, transparent 100%);
}
.rail::before, .rail-fill { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; }
.rail::before { background: color-mix(in srgb, var(--sun) 28%, transparent); }
.rail-fill { background: var(--sun); transform-origin: top; transform: scaleY(0); }
.rail ol { display: grid; }
.rail li { position: relative; }
.rail button {
  display: flex; align-items: center; justify-content: flex-end; min-width: 2.75rem; min-height: 2.75rem;
  padding: 0 1.1rem 0 0.75rem; border: 0; background: none; color: inherit; cursor: pointer;
  font: 400 0.65625rem/1 var(--font-mono); letter-spacing: 0.2em; font-variant-numeric: tabular-nums;
  opacity: 0.9; transition: opacity 0.3s ease;
  text-shadow: 0 0 1.2em rgba(27, 23, 20, 0.6), 0 0 0.3em rgba(27, 23, 20, 0.5);
}
.rail button::after {
  content: ""; position: absolute; right: -2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--sun); transform: scale(0); transition: transform 0.45s var(--out);
}
.rail button:hover, .rail button:focus-visible, .rail button[aria-current] { opacity: 1; }
.rail button[aria-current]::after { transform: scale(1); }

/* Short screens (phones held sideways, small windows): keep the copy clear of the top bar. */
@media (max-height: 560px) {
  .headline { font-size: clamp(2rem, 13vh, 3.75rem); }
  .beat-title { font-size: clamp(1.6rem, 8vh, 2.6rem); }
  .lede, .beat-line { font-size: 0.9rem; margin-top: 0.6rem; }
  .beat-cta { margin-top: 0.6rem; }
  .hint { display: none; }
}

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .topbar { grid-template-columns: 1fr auto; row-gap: 0.35rem; }
  .topbar-end { gap: 1rem; }
  .wordmark { letter-spacing: 0.3em; }
  .session-label { grid-row: 2; grid-column: 1 / -1; }
  .shade {
    background:
      linear-gradient(to top, color-mix(in srgb, var(--ink) 78%, transparent) 0, color-mix(in srgb, var(--ink) 38%, transparent) 24%, transparent 48%),
      linear-gradient(to bottom, color-mix(in srgb, var(--ink) 58%, transparent) 0, transparent 9rem);
  }
  /* Beats are full width here, so the side is ignored: one shade, always on. */
  .shade--right { display: none; }
  :root[data-side="right"] .shade:not(.shade--right) { --on: 1; }
  .beat, .beat--intro, .beat[data-side="right"]:not(.beat--sky) {
    left: calc(var(--pad) + env(safe-area-inset-left)); right: calc(var(--pad) + env(safe-area-inset-right)); width: auto;
    bottom: calc(var(--pad) * 1.6 + var(--inset-b) + env(safe-area-inset-bottom));
  }
  .headline { font-size: clamp(2.75rem, 17vw, 5.5rem); }
  .beat-title { font-size: clamp(2rem, 10.5vw, 3.25rem); }
  .lede, .beat-line { font-size: 1rem; }
  .rail { top: 36%; --rail-r: calc(var(--pad) * 0.6 + env(safe-area-inset-right)); }
  .rail button { padding-right: 0.8rem; }
  .rail button:not([aria-current]) .rail-t { opacity: 0; }
  .rail-t { transition: opacity 0.3s ease; }
}

@media (max-width: 760px) {
  .label, .beat-cta, .link-quiet, .sound { font-size: 0.75rem; letter-spacing: 0.16em; }
  .beat-cta { padding: 1rem 0; }                 /* 44px tap height */
  /* The line and dots stay, and the hour that is showing keeps its time beside its dot. */
  .rail button:not([aria-current]) .rail-t { display: none; }
  .rail button { font-size: 0.6875rem; letter-spacing: 0.16em; }
  .rail::after { width: 6rem; top: -3.5rem; bottom: -3.5rem;
    background: radial-gradient(ellipse 100% 50% at 100% 50%, color-mix(in srgb, var(--ink) 30%, transparent) 0, color-mix(in srgb, var(--ink) 18%, transparent) 45%, transparent 100%); }
  /* The session is already in each beat; keep the live label for screen readers only. */
  .session-label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
  }
}
@media (max-width: 420px) {
  #sound-state { display: none; }   /* room for the larger labels; the dot and aria-pressed still carry the state */
}

/* ===================================================================== page */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: calc(var(--pad) + env(safe-area-inset-left)) calc(var(--pad) + env(safe-area-inset-right)); }
.band { padding-block: clamp(5rem, 13vh, 10.5rem); }
.band-head { display: grid; gap: 1.4rem; margin-bottom: clamp(3rem, 7vh, 5.5rem); }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem;
  font: 400 0.65625rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.25s var(--out);
}
.button:hover { border-color: var(--ink); }
.button:active { transform: scale(0.98); }
.button--solid { background: var(--ink); color: var(--bone); border-color: var(--ink); min-height: 3.5rem; padding: 0 2rem; }
.button--solid:hover { background: var(--umber); }
.button[disabled] { opacity: 0.55; cursor: default; }
.page .body { font-size: 1.125rem; }

/* --- the five sessions -------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.25rem, 2.4vw, 2.75rem); }
.card { display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 0.9rem; align-content: start; }
.card .disc { margin-bottom: 1rem; }
.card-title { font: 300 clamp(1.5rem, 1.9vw, 2rem)/1.1 var(--font-display); letter-spacing: -0.015em; }
.card .places { padding-top: 0.9rem; border-top: 1px solid var(--line); margin-top: 0.4rem; }
.card .button { justify-self: start; margin-top: 0.3rem; }

/* Cards open as circles, like the oculus. Only when scripting is on. */
.js .card { clip-path: circle(0% at 50% 6rem); transition: clip-path 0.8s var(--iris); transition-delay: calc(var(--i, 0) * 60ms); }
.js .card.is-open { clip-path: circle(160% at 50% 6rem); }

/* The disc: the hall seen from the oculus. A ring of stone, the pool, and where the light is. */
.disc {
  --floor: var(--travertine); --pool-a: var(--jade-deep); --pool-b: var(--jade);
  --spot: var(--sun); --sx: 50%; --sy: 50%; --spot-size: 16%;
  position: relative; aspect-ratio: 1; width: 100%; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(circle at var(--sx) var(--sy), var(--spot) 0, color-mix(in srgb, var(--spot) 55%, transparent) calc(var(--spot-size) * 0.55), transparent var(--spot-size)),
    radial-gradient(circle, var(--pool-a) 0, var(--pool-b) 55%, color-mix(in srgb, var(--floor) 70%, var(--umber)) 56% 58.5%, var(--floor) 59%, color-mix(in srgb, var(--floor) 78%, var(--umber)) 100%);
  transition: transform 0.9s var(--out);
}
.disc::after {   /* shade on the side away from the sun */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at var(--sx) var(--sy), transparent 30%, color-mix(in srgb, var(--umber) 34%, transparent) 110%);
}
.card:hover .disc { transform: scale(1.035); }
/* Session cards: a still of that session's view fills the disc. The drawn disc stays underneath
   as the placeholder while the image loads, or if it fails. */
.disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; color: transparent; }
.card .disc::after { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.disc--0700 { --sx: 17%; --sy: 44%; --spot-size: 13%; --spot: color-mix(in srgb, var(--sun) 80%, var(--bone)); }
.disc--1030 { --sx: 31%; --sy: 36%; --spot-size: 17%; }
.disc--1240 { --sx: 46%; --sy: 44%; --spot-size: 24%; }
.disc--1730 { --sx: 76%; --sy: 72%; --spot-size: 20%; --spot: color-mix(in srgb, var(--lamp) 80%, var(--travertine)); --floor: color-mix(in srgb, var(--travertine) 82%, var(--umber)); }
.disc--2100 {
  --floor: color-mix(in srgb, var(--umber) 86%, var(--plum)); --pool-a: color-mix(in srgb, var(--jade-deep) 55%, var(--ink)); --pool-b: var(--jade-deep);
  background:
    radial-gradient(circle at 77.7% 61.5%, var(--lamp) 0, transparent 7%), radial-gradient(circle at 61.5% 77.7%, var(--lamp) 0, transparent 7%),
    radial-gradient(circle at 38.5% 77.7%, var(--lamp) 0, transparent 7%), radial-gradient(circle at 22.3% 61.5%, var(--lamp) 0, transparent 7%),
    radial-gradient(circle at 22.3% 38.5%, var(--lamp) 0, transparent 7%), radial-gradient(circle at 38.5% 22.3%, var(--lamp) 0, transparent 7%),
    radial-gradient(circle at 61.5% 22.3%, var(--lamp) 0, transparent 7%), radial-gradient(circle at 77.7% 38.5%, var(--lamp) 0, transparent 7%),
    radial-gradient(circle, var(--pool-a) 0, var(--pool-b) 55%, var(--ink) 56% 58.5%, var(--floor) 59%, var(--ink) 100%);
}
.disc--2100::after { background: radial-gradient(circle, color-mix(in srgb, var(--plum) 60%, transparent) 0 7%, transparent 7.5%); }

/* --- hold form ---------------------------------------------------------- */
.hold { background: var(--sand); }
.hold-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: start; }
.hold-copy { display: grid; gap: 1.4rem; position: sticky; top: 4rem; }
.facts { display: grid; gap: 0.7rem; margin-top: 0.8rem; max-width: 30rem; }
.facts li { padding-top: 0.7rem; border-top: 1px solid var(--line); }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.9rem 2rem; }
.field { display: grid; gap: 0.55rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font: 400 0.65625rem/1.2 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; }
.optional { opacity: 0.6; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.6rem 0; font: 400 1.0625rem/1.4 var(--font-body); color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
/* Date, session and guests share one row. */
.field-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 0.6fr); gap: 1.9rem 2rem; align-items: start; }
.field input, .field select { height: 3rem; }
.field select {
  appearance: none; -webkit-appearance: none; color-scheme: light; padding-right: 1.5rem; text-overflow: ellipsis; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%232B2723' stroke-width='1'%3E%3Cpath vector-effect='non-scaling-stroke' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.25rem center / 0.7rem;
}
.field input[type="date"] { appearance: none; -webkit-appearance: none; color-scheme: light; display: block; line-height: 1.4; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--umber); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field-error { font-size: 0.875rem; font-weight: 400; }
.field-error::before { content: "! "; font-family: var(--font-mono); }
.field-trap { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.6rem; }
.form-status:empty { display: none; }

.confirm { display: grid; gap: 0.9rem; justify-items: start; }
.confirm[hidden], .form[hidden] { display: none; }
.confirm:focus { outline: 0; }
.confirm .disc { width: 7.5rem; margin-bottom: 0.8rem; }
.disc--confirm {
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 9%, color-mix(in srgb, var(--sun) 38%, transparent) 10% 11%, transparent 12% 20%),
    radial-gradient(circle, var(--jade-deep) 0, var(--jade) 100%);
}
.disc--confirm::after { display: none; }
.reference { font: 400 clamp(1.75rem, 3.2vw, 2.75rem)/1 var(--font-mono); letter-spacing: 0.08em; margin-bottom: 0.6rem; }
.js .confirm:not([hidden]) { animation: open 0.9s var(--iris) both; }
@keyframes open { from { clip-path: circle(0% at 3.75rem 3.75rem); } to { clip-path: circle(160% at 3.75rem 3.75rem); } }

/* --- stay --------------------------------------------------------------- */
.stay-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }
.stay-copy { display: grid; gap: 1.4rem; justify-items: start; }
.stay-side { display: grid; gap: clamp(1.5rem, 4vh, 2.75rem); min-width: 0; }
.stay-pic { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 2px; background: var(--sand); }
.stay-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rooms { display: grid; }
.rooms li { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.rooms li:last-child { border-bottom: 1px solid var(--line); }
/* Wide screens: two columns of three, read downwards. */
@media (min-width: 1101px) {
  .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: 2rem; }
  .rooms li:nth-child(3n) { border-bottom: 1px solid var(--line); }
}

/* --- about -------------------------------------------------------------- */
/* A full-bleed picture of the hall at night under an umber wash; the umber shows alone if the picture is missing. */
.about {
  display: grid; align-items: center; min-height: 100vh; color: var(--sun);
  background:
    linear-gradient(color-mix(in srgb, var(--ink) 72%, transparent), color-mix(in srgb, var(--ink) 72%, transparent)),
    var(--umber) url(assets/page/hall-night.jpg?v=20261201150015) center / cover no-repeat;
}
@supports (min-height: 100svh) { .about { min-height: 100svh; } }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; width: 100%; }
.about .display { font-size: clamp(3rem, 8vw, 8rem); font-weight: 300; }
.page .about-text { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 1rem; font-size: 1.125rem; }

/* --- footer: looking down through the oculus at dusk --------------------- */
.foot { position: relative; overflow: hidden; background: var(--ink); color: var(--bone); padding-block: clamp(4rem, 12vh, 9rem) clamp(2rem, 5vh, 3.5rem); }
.foot-disc {   /* the pool at noon, seen as a disc */
  position: absolute; right: -8vw; top: 50%; width: min(46vw, 38rem); height: auto; aspect-ratio: 1; border-radius: 50%;
  object-fit: cover; transform: translateY(-50%); opacity: 0.9;
}
.foot-grid { position: relative; display: grid; gap: clamp(2rem, 6vh, 4rem); }
.wordmark--foot { font-size: 0.8125rem; }
.foot-clock { font: 300 clamp(1.9rem, 4.2vw, 4rem)/1.08 var(--font-display); letter-spacing: -0.02em; max-width: 14em; text-wrap: balance; }
.foot-time { color: var(--sun); }
.foot-note { opacity: 0.6; max-width: 44rem; line-height: 1.7; }

@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3.5rem; }
}
@media (max-width: 760px) {
  .cards { grid-template-columns: minmax(0, 1fr); row-gap: 3.25rem; }
  .disc { width: min(100%, 20rem); }
  .js .card { clip-path: circle(0% at 10rem 10rem); }
  .js .card.is-open { clip-path: circle(160% at 10rem 10rem); }
  .hold-grid, .stay-grid { grid-template-columns: minmax(0, 1fr); }
  .hold-copy { position: static; }
  .form, .field-row { grid-template-columns: minmax(0, 1fr); }
  /* Stay: the picture first, then the heading and text, then the rooms. */
  .stay-side { display: contents; }
  .stay-pic { order: -1; }
  .foot-disc { width: 78vw; right: -30vw; top: 38%; opacity: 0.55; }
  .button--solid { width: 100%; }
}

/* ?reduced forces the same path as the media query below (main.js adds .reduced). */
.reduced .beat { transition: opacity 0.3s ease; transform: none !important; }
.reduced.js .card, .reduced.js .card.is-open { clip-path: none; transition: opacity 0.3s ease; }
.reduced.js .card { opacity: 0; }
.reduced.js .card.is-open { opacity: 1; }
.reduced.js .confirm:not([hidden]) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  :root { --fade: 0.3s; }
  .sound, .sound::before, .rail button::after, .rail-t { transition: none; }
  .hint { transition-duration: 0.3s; }
  .beat { transition: opacity 0.3s ease; transform: none !important; }
  .js .card, .js .card.is-open { clip-path: none; transition: opacity 0.3s ease; }
  .js .card { opacity: 0; }
  .js .card.is-open { opacity: 1; }
  .js .confirm:not([hidden]) { animation: none; }
  .disc, .button { transition: none; }
}

/* ---- Added after the review panel (manager) ------------------------------------------------- */
/* A flat ring follows the mouse while it is over water, so it is plain that the water can be touched. */
.touch-ring {
  position: absolute; left: 0; top: 0; width: 46px; height: 15px; margin: -7.5px 0 0 -23px;
  border: 1px solid color-mix(in srgb, var(--sun) 88%, transparent); border-radius: 50%;
  pointer-events: none; opacity: 0; transition: opacity 0.25s ease; will-change: transform;
}
.touch-ring::after {
  content: ""; position: absolute; inset: -1px; border: 1px solid var(--sun); border-radius: 50%; opacity: 0;
}
.over-water .touch-ring { opacity: 0.9; }
.over-water .film { cursor: none; }
.touch-ring.is-tap::after { animation: ring-tap 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes ring-tap { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3); opacity: 0; } }
.is-leaving .touch-ring { display: none; }

/* The hand-off: the sessions heading rises through the dawn at the end of the film, so the film never ends on
   an empty screen. Only when the shader plays the exit; the plain paths keep the simple join. */
.js .sessions { position: relative; z-index: 2; margin-top: -46vh; background: linear-gradient(to bottom, transparent 0, var(--bone) 34vh); }
/* The same fade, with its clear end written another way, on wide screens only. From plain `transparent`, desktop
   Chrome stopped for about 0.13 s the first time it drew the fade, under the stars. Phones never showed that stop
   and may run less smoothly with this form, so they keep the plain one (measured 1 Dec 2026). */
@media (min-width: 1024px) {
  .js .sessions { background: linear-gradient(to bottom, color-mix(in srgb, var(--bone) 0%, transparent) 0, var(--bone) 34vh); }
}
.reduced.js .sessions, .is-fallback.js .sessions { margin-top: 0; background: var(--bone); }

/* Reduced motion: less scrolling for the same five pictures. */
.reduced.js .hero { height: 600vh; }

/* ---- Final pass (manager) ------------------------------------------------------------------- */
/* Between phone and wide desktop the form's three-field row was too narrow to read: stack the two columns. */
@media (min-width: 761px) and (max-width: 1100px) {
  .hold-grid { grid-template-columns: minmax(0, 1fr); }
  .hold-copy { position: static; }
}
/* The footer note must not run over the pool picture at middle widths. */
@media (min-width: 761px) and (max-width: 1150px) { .foot-note { max-width: 50vw; } }
/* The dark button needs a focus ring that shows on the sand band. */
.button--solid:focus-visible { outline-color: var(--ink); outline-offset: 3px; }
/* Phones held sideways: keep the rail centred and clear of the top bar. */
@media (max-height: 560px) and (max-width: 900px) { .rail { top: 54%; } .rail button { min-height: 2rem; } }
/* Reduced motion: no expanding ring on a tap. */
.reduced .touch-ring.is-tap::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .touch-ring.is-tap::after { animation: none; } }
/* If the script never arrives (the .js class is removed again), only the opening copy shows over the first picture. */
html:not(.js) :is(.beat:not(.beat--intro), .rail, .film, .veil, .form) { display: none; }
/* The narrowest phones (320 px): the top bar stays on one line. */
@media (max-width: 350px) {
  .wordmark { letter-spacing: 0.2em; }
  .topbar .link-quiet, .topbar .sound { letter-spacing: 0.1em; white-space: nowrap; }
  .topbar-end { gap: 0.7rem; }
}
/* The note under the request button, and the footer time kept on one line. */
.form-note { margin-top: 0.9rem; font-size: 0.875rem; opacity: 0.72; }
.foot-time { white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

/* ==== Type pass, after an independent review ==================================================================== */
html { font-synthesis: none; }   /* an italic or a bold is only ever a real one, never one faked by the browser */

/* Small labels: one size at every width. They were 10.5 px with wide tracking: too small to read with ease, and
   on phones some (buttons, form labels) were smaller than the passive text beside them. */
.label, .link-quiet, .sound, .rail button, .button, .field label, .beat-cta { font-size: 0.75rem; letter-spacing: 0.14em; }

/* The time at the top centre was the fourth copy of the hour in one frame, and unreadable over the beam.
   It stays for screen readers, which hear the hour change. */
.session-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.topbar { grid-template-columns: 1fr auto; }

/* One scale. Film titles are the largest type after the headline; section headings follow; body copy is one size. */
.beat:not(.beat--intro):not(.beat--sky) { width: min(44rem, 52vw); }
.beat-title { font-size: clamp(2.5rem, min(10.5vh, 5.8vw), 6.5rem); }
.lede, .beat-line { font-size: 1.125rem; }
.about .display { font-size: clamp(2.5rem, 5.4vw, 5.25rem); }
.stay .display { font-size: clamp(2.5rem, 4.8vw, 4.75rem); }      /* "above the water" stays on one line */
.sky-line, .foot-clock { font-variant-numeric: lining-nums tabular-nums; }

/* Session cards: copy sized for a narrow column, and the heading's paragraph beside it, not under it. */
.card .body { font-size: 0.9375rem; line-height: 1.5; text-wrap: pretty; }
@media (min-width: 1101px) {
  .sessions .band-head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: clamp(2rem, 5vw, 5rem); }
  .sessions .band-head .label { grid-column: 1 / -1; }
  /* Rooms: one room a line, so no line ends on a single word. */
  .rooms { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; }
  .rooms li:nth-child(3n) { border-bottom: 0; }
  .rooms li:last-child { border-bottom: 1px solid var(--line); }
}

/* The footer note is the page's one statement that this is a concept: readable sentence type, not faint capitals. */
.foot-note { font: 400 0.875rem/1.55 var(--font-body); letter-spacing: 0; text-transform: none; opacity: 0.74; max-width: 34rem; }

@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .beat:not(.beat--intro):not(.beat--sky) { width: auto; }
  .beat-title { font-size: clamp(2rem, 10.5vw, 3.25rem); }
  .lede, .beat-line { font-size: 1.0625rem; }
  /* Late morning and noon are the brightest pictures: a second, deeper shade fades in behind the copy and the
     top bar for those two hours only. */
  .shade::after {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease;
    background:
      linear-gradient(to top, color-mix(in srgb, var(--ink) 46%, transparent) 0, color-mix(in srgb, var(--ink) 40%, transparent) 24%, color-mix(in srgb, var(--ink) 20%, transparent) 38%, transparent 60%),
      linear-gradient(to bottom, color-mix(in srgb, var(--ink) 34%, transparent) 0, transparent 7rem);
  }
  :root[data-scene="1030"] .shade::after, :root[data-scene="1240"] .shade::after { opacity: 1; }
}
@media (max-width: 760px) {
  .display { font-size: clamp(2.75rem, 12vw, 5.25rem); }
  .stay .display, .about .display { font-size: clamp(2.5rem, 11vw, 4.75rem); }
  .sky-line { font-size: clamp(2.25rem, 10.5vw, 6rem); }
  .card-title { font-size: 1.75rem; }
  .card .body { font-size: 1rem; }
  .disc { width: 100%; }
  .js .card { clip-path: circle(0% at 50% 10rem); }
  .js .card.is-open { clip-path: circle(160% at 50% 10rem); }
  /* Footer: the disc sits above the words, not behind them. */
  .foot { padding-top: 58vw; }
  .foot-disc { top: 0; right: -14vw; width: 72vw; transform: translateY(-22%); opacity: 0.7; }
}

/* The display face is a serif with a true italic (Gambetta Light). Its spacing differs from the sans it replaced. */
.headline { letter-spacing: -0.02em; line-height: 0.94; }
.display, .beat-title, .sky-line, .foot-clock { letter-spacing: -0.012em; }
.card-title { font-weight: 400; letter-spacing: -0.005em; }
.lede, .beat-line { text-wrap: balance; }
@media (min-width: 761px) and (max-width: 1150px) { .foot-note { max-width: 50vw; } }
.foot-credit { opacity: 0.7; }
/* The maker's credit: a link, underlined like the other quiet links, with a tap area a finger can hit. */
.foot-credit a { display: inline-block; padding: 0.7rem 0; color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--bone) 45%, transparent); transition: border-color 0.25s ease; }
.foot-credit a:hover { border-color: currentColor; }
.foot-credit { opacity: 0.85; }
