/* ==========================================================================
   The Meridian Awards 2026 — style.css
   Dark, glassy, particle-driven. Palette: near-black / warm gold / cool off-white.

   Motion contract: every animated rule keys off html[data-motion="full"|"calm"],
   never the bare prefers-reduced-motion media query. Calm is a *variant*, not an
   off switch — travel shrinks, blur and parallax go, everything still breathes.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. Tokens */

:root {
  --ink:        #0a0a0c;
  --ink-2:      #0e0e12;
  --ink-3:      #14141a;

  --gold:       #d4af6a;
  --gold-lt:    #f0d9a8;
  --gold-dk:    #8a6a33;

  --paper:      #edecee;               /* cool off-white */
  --muted:      rgba(237, 236, 238, .60);
  --faint:      rgba(237, 236, 238, .38);

  --line:       rgba(240, 217, 168, .16);
  --line-soft:  rgba(240, 217, 168, .09);

  --f-display:  'Marcellus', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-body:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --pad:        clamp(1.25rem, 5vw, 4.5rem);
  --maxw:       1240px;
  --sec-y:      clamp(4.5rem, 11vh, 8.5rem);

  /* Motion tokens — overridden wholesale by the calm variant below. */
  --loader-dur: 2.05s;
  --hero-in:    1.25s;
  --lift-y:     28px;
  --rev-y:      26px;
  --rev-dur:    .85s;
  --ease:       cubic-bezier(.22, .72, .24, 1);
  --ease-io:    cubic-bezier(.4, 0, .2, 1);
  --hover-lift: -6px;
}

html[data-motion="calm"] {
  --loader-dur: 1.7s;
  --hero-in:    1.02s;
  --lift-y:     9px;
  --rev-y:      10px;
  --rev-dur:    .6s;
  --hover-lift: -2px;
}

/* ----------------------------------------------------------------- 2. Reset */

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

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html[data-motion="calm"] { scroll-behavior: auto; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: clamp(.95rem, .35vw + .88rem, 1.02rem);
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A slow, static wash so the near-black is never flat. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120vw 70vh at 50% -10vh, rgba(212, 175, 106, .07), transparent 62%),
    radial-gradient(90vw 60vh at 80% 110%, rgba(212, 175, 106, .045), transparent 60%),
    linear-gradient(180deg, #08080a 0%, var(--ink) 38%, #08080a 100%);
}

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

:where(section, .topbar, .foot, main) { position: relative; z-index: 1; }

[id] { scroll-margin-top: 92px; }

::selection { background: rgba(212, 175, 106, .28); color: #fff; }

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

/* Scroll lock only while the curtain is down (and only when JS is present). */
html.is-loading, html.is-loading body { overflow: hidden; }

/* ------------------------------------------------------- 3. Shared furniture */

main > section {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding: var(--sec-y) var(--pad);
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.25rem); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.eyebrow {
  position: relative;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.section-head h2 {
  font-size: clamp(2.05rem, 5.2vw, 3.7rem);
}

.lede {
  color: var(--muted);
  font-size: 1.06em;
  max-width: 46ch;
  margin-top: 1.4rem;
}

/* Glassmorphism — the signature panel. Static blur, so it survives calm mode. */
.glass {
  position: relative;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, .062), rgba(255, 255, 255, .015) 62%);
  border: 1px solid var(--line);
  border-radius: 4px;
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  box-shadow:
    0 28px 64px -34px rgba(0, 0, 0, .95),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* -------------------------------------------------------------- 4. Keyframes */

@keyframes lift {
  from { opacity: 0; transform: translateY(var(--lift-y)); }
  to   { opacity: 1; transform: none; }
}

@keyframes ruleDraw {
  0%   { transform: scaleX(0); opacity: 0; }
  7%   { opacity: 1; }
  40%  { transform: scaleX(1); }
  53%  { opacity: 1; }
  62%  { opacity: 0; }
  100% { transform: scaleX(1); opacity: 0; }
}

@keyframes wordCycle {
  0%   { opacity: 0; transform: translateY(12px); }
  14%  { opacity: 0; }
  36%  { opacity: 1; transform: translateY(0); }
  53%  { opacity: 1; }
  63%  { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; transform: translateY(-6px); }
}

@keyframes curtainL {
  0%, 58% { transform: translateX(0); }
  100%    { transform: translateX(-101%); }
}
@keyframes curtainR {
  0%, 58% { transform: translateX(0); }
  100%    { transform: translateX(101%); }
}
@keyframes curtainFade {
  0%, 58% { opacity: 1; }
  100%    { opacity: 0; }
}

@keyframes trimL {
  0%, 52% { opacity: 0; transform: translateX(0); }
  59%     { opacity: 1; transform: translateX(0); }
  90%     { opacity: .8; }
  100%    { opacity: 0; transform: translateX(-50.2vw); }
}
@keyframes trimR {
  0%, 52% { opacity: 0; transform: translateX(0); }
  59%     { opacity: 1; transform: translateX(0); }
  90%     { opacity: .8; }
  100%    { opacity: 0; transform: translateX(50.2vw); }
}
@keyframes trimFade {
  0%, 52% { opacity: 0; }
  62%     { opacity: 1; }
  100%    { opacity: 0; }
}

@keyframes loaderOff {
  0%, 99.9% { visibility: visible; }
  100%      { visibility: hidden; }
}

@keyframes glint {
  0%   { transform: translateX(-120%); opacity: 0; }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes scrollDot {
  0%   { transform: translateY(-100%); opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { transform: translateY(340%); opacity: 0; }
}

@keyframes breathe {
  0%, 100% { opacity: .78; transform: translateY(0) scaleX(1); }
  50%      { opacity: 1;   transform: translateY(1.2%) scaleX(1.035); }
}

@keyframes pinPulse {
  0%   { transform: scale(.34); opacity: 0; }
  22%  { opacity: .85; }
  100% { transform: scale(1); opacity: 0; }
}

@keyframes tickPop {
  0%   { transform: translateY(0) scale(1); }
  30%  { transform: translateY(-2px) scale(1.045); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes fieldIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes sealRing  { to { stroke-dashoffset: 0; } }
@keyframes sealTick  { to { stroke-dashoffset: 0; } }
@keyframes sealIn {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------------- 5. Loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: transparent;
  animation: loaderOff var(--loader-dur) linear forwards;
}

/* The two curtain halves. Opaque, so the page behind stays hidden until they part. */
.loader::before,
.loader::after {
  content: '';
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 50.2%;
  background: linear-gradient(180deg, #0b0b0e, #08080a 55%, #060608);
  will-change: transform;
}
.loader::before { left: 0;  animation: curtainL var(--loader-dur) cubic-bezier(.7, 0, .18, 1) forwards; }
.loader::after  { right: 0; animation: curtainR var(--loader-dur) cubic-bezier(.7, 0, .18, 1) forwards; }

/* Full-bleed layer that carries both the drawn rule and the curtain's gold trim. */
.loader__rule {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.loader__rule > span {
  position: absolute;
  top: calc(50% + 2.6rem);
  left: 50%;
  width: min(340px, 62vw);
  margin-left: calc(min(340px, 62vw) / -2);
  height: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, var(--gold-lt) 22%, var(--gold) 50%, var(--gold-lt) 78%, transparent);
  box-shadow: 0 0 14px rgba(212, 175, 106, .45);
  animation: ruleDraw var(--loader-dur) cubic-bezier(.32, .8, .28, 1) forwards;
}

/* Gold trim on each curtain's inner edge — rides outward with the halves. */
.loader__rule::before,
.loader__rule::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 106, .6) 18%, rgba(240, 217, 168, .75) 50%, rgba(212, 175, 106, .6) 82%, transparent);
}
.loader__rule::before { animation: trimL var(--loader-dur) cubic-bezier(.7, 0, .18, 1) forwards; }
.loader__rule::after  { animation: trimR var(--loader-dur) cubic-bezier(.7, 0, .18, 1) forwards; }

.loader__word {
  position: relative;
  z-index: 3;
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 5vw, 2.35rem);
  letter-spacing: .42em;
  text-indent: .42em;
  color: var(--gold-lt);
  opacity: 0;
  animation: wordCycle var(--loader-dur) var(--ease) forwards;
}

/* Calm: the curtain dissolves instead of travelling a full screen-width. */
html[data-motion="calm"] .loader::before,
html[data-motion="calm"] .loader::after { animation-name: curtainFade; }
html[data-motion="calm"] .loader__rule::before,
html[data-motion="calm"] .loader__rule::after { animation-name: trimFade; }

/* JS removes the node; this is the belt-and-braces state. */
.loader.is-gone { display: none; }

/* -------------------------------------------------- 6. Ambient: motes + cone */

.motes,
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.motes { width: 100%; height: 100%; }

/* Overhead spotlight cone. Gradient-built, so there is no full-screen filter. */
.spotlight::before {
  content: '';
  position: absolute;
  top: -6vh;
  left: 50%;
  width: 132vw;
  height: 116vh;
  margin-left: -66vw;          /* centred without transform, so `breathe` owns it */
  transform-origin: 50% 0;
  background: linear-gradient(180deg,
    rgba(240, 217, 168, .155) 0%,
    rgba(240, 217, 168, .085) 26%,
    rgba(212, 175, 106, .035) 58%,
    rgba(212, 175, 106, 0) 82%);
  clip-path: polygon(45.5% 0, 54.5% 0, 96% 100%, 4% 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  animation: breathe 11s ease-in-out infinite;
}

/* The pool of light where the cone lands. */
.spotlight::after {
  content: '';
  position: absolute;
  top: -14vh;
  left: 50%;
  width: 78vw;
  height: 52vh;
  margin-left: -39vw;
  background: radial-gradient(closest-side, rgba(240, 217, 168, .12), rgba(240, 217, 168, 0) 100%);
}

html[data-motion="calm"] .spotlight::before { animation-duration: 20s; }

/* ---------------------------------------------------------------- 7. Top bar */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--pad);
  border-bottom: 1px solid transparent;
  transition: background-color .5s var(--ease-io), border-color .5s var(--ease-io), padding .5s var(--ease-io);
}

.topbar.is-stuck {
  background: rgba(8, 8, 10, .72);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  padding-block: .8rem;
}

.topbar__mark {
  font-family: var(--f-display);
  font-size: .96rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--paper);
  white-space: nowrap;
}
.topbar__mark em {
  font-style: normal;
  color: var(--gold);
  margin-left: .45em;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 2.6vw, 2.3rem);
}

.topbar__nav a {
  position: relative;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-block: .35rem;
  transition: color .35s ease;
}
.topbar__nav a:hover { color: var(--paper); }

.topbar__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease-io);
}
.topbar__nav a:hover::after,
.topbar__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

.topbar__cta {
  color: var(--gold) !important;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: .5rem 1.05rem !important;
  transition: background-color .4s ease, border-color .4s ease, color .35s ease;
}
.topbar__cta::after { display: none; }
.topbar__cta:hover {
  background: rgba(212, 175, 106, .12);
  border-color: rgba(212, 175, 106, .45);
  color: var(--gold-lt) !important;
}

/* -------------------------------------------------------------------- 8. Hero */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: clamp(6rem, 14vh, 9rem) !important;
  padding-bottom: clamp(5rem, 12vh, 7rem) !important;
}

[data-lift] {
  animation: lift .95s var(--ease) both;
  animation-delay: calc(var(--hero-in) + var(--l, 0) * 95ms);
}

.hero__kicker  { --l: 0; }
.hero__title span:nth-child(1) { --l: 1; }
.hero__title span:nth-child(2) { --l: 2; }
.hero__meta    { --l: 3; }
.hero__rule    { --l: 4; }
.countdown     { --l: 5; }
.hero__when    { --l: 6; }

.hero__kicker {
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  text-indent: .38em;
  color: var(--gold);
}

.hero__title {
  margin: clamp(1.1rem, 2.4vw, 1.9rem) 0 0;
  font-size: clamp(2.9rem, 10.5vw, 7.1rem);
  line-height: .96;
  letter-spacing: .012em;
}
.hero__title span { display: block; }
.hero__title em {
  font-style: normal;
  background: linear-gradient(104deg, var(--gold-dk) 2%, var(--gold-lt) 30%, var(--gold) 52%, var(--gold-lt) 76%, var(--gold-dk) 99%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__meta {
  margin-top: clamp(1rem, 2.4vw, 1.6rem);
  font-size: .82rem;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__rule {
  position: relative;
  width: min(340px, 64vw);
  height: 1px;
  margin: clamp(2rem, 5vw, 3.2rem) 0;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 106, .7) 30%, rgba(212, 175, 106, .7) 70%, transparent);
  overflow: hidden;
}
.hero__rule::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold-lt), transparent);
  transform: translateX(-120%);
  animation: glint 6.5s var(--ease-io) infinite;
  animation-delay: calc(var(--hero-in) + 1.4s);
}
.hero__rule::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(212, 175, 106, .8);
}
html[data-motion="calm"] .hero__rule::before { animation-duration: 12s; }

/* --------------------------------------------------------------- Countdown */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(600px, 100%);
  margin: 0;
}

.countdown > div {
  text-align: center;
  padding-inline: clamp(.3rem, 1.6vw, 1.1rem);
}
.countdown > div + div { border-left: 1px solid var(--line-soft); }

.countdown dt {
  order: 2;
  margin-top: .55rem;
  font-size: .58rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--faint);
}

.countdown dd {
  order: 1;
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.85rem, 6.4vw, 3.3rem);
  line-height: 1;
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}
.countdown > div { display: flex; flex-direction: column; }

.countdown dd.is-tick { animation: tickPop .55s var(--ease); }
html[data-motion="calm"] .countdown dd.is-tick { animation-duration: .8s; }

.countdown[data-state="past"] dd { color: var(--muted); }
.countdown[data-state="past"]::after {
  content: 'The evening has arrived — welcome.';
  grid-column: 1 / -1;
  margin-top: 1.4rem;
  font-size: .68rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__when {
  margin-top: clamp(2rem, 5vw, 3rem);
  font-family: var(--f-display);
  font-size: clamp(1.02rem, 2.4vw, 1.35rem);
  letter-spacing: .08em;
  color: var(--paper);
}
.hero__when span {
  display: block;
  margin-top: .55rem;
  font-family: var(--f-body);
  font-size: .76rem;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__scroll {
  --l: 7;
  /* Centred with auto margins, not translateX(-50%): the `lift` keyframes set
     `transform` outright and would otherwise wipe the centring out. */
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(1.4rem, 4vh, 2.6rem);
  width: max-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  font-size: .6rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--faint);
  animation: lift .95s var(--ease) both;
  animation-delay: calc(var(--hero-in) + 7 * 95ms);
  transition: color .4s ease;
}
.hero__scroll:hover { color: var(--gold); }

.hero__scroll .hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(212, 175, 106, .05), rgba(212, 175, 106, .45));
  overflow: hidden;
}
.hero__scroll .hero__scroll-line::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--gold-lt));
  animation: scrollDot 2.6s var(--ease-io) infinite;
}
html[data-motion="calm"] .hero__scroll .hero__scroll-line::after { animation-duration: 4.6s; }

/* --------------------------------------------------------------- 9. Programme */

.timeline {
  --rail: 5.4rem;
  --tgap: clamp(1.1rem, 3vw, 2.1rem);
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  top: .9rem;
  bottom: 1.2rem;
  left: calc(var(--rail) + var(--tgap) / 2);
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(212, 175, 106, .5) 7%, rgba(212, 175, 106, .5) 93%, transparent);
  transform-origin: top center;
}
html.js .timeline::before {
  transform: scaleY(0);
  transition: transform 1.7s var(--ease-io);
}
html.js .timeline.is-drawn::before { transform: scaleY(1); }
html[data-motion="calm"].js .timeline::before { transition-duration: 1.1s; }

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: var(--tgap);
  padding-bottom: clamp(2rem, 4.5vw, 3.1rem);
}
.timeline__item:last-child { padding-bottom: 0; }

.timeline__item::before {
  content: '';
  position: absolute;
  top: .55rem;
  left: calc(var(--rail) + var(--tgap) / 2);
  width: 9px;
  height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid rgba(212, 175, 106, .55);
  transition: background-color .7s ease, box-shadow .7s ease, border-color .7s ease;
  transition-delay: var(--d, 0ms);
}
.timeline__item.is-in::before {
  background: var(--gold);
  border-color: var(--gold-lt);
  box-shadow: 0 0 0 4px rgba(212, 175, 106, .1), 0 0 14px rgba(212, 175, 106, .55);
}

.timeline__time {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--gold);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.timeline__body h3 {
  font-size: clamp(1.15rem, 2.8vw, 1.55rem);
  margin-bottom: .5rem;
}
.timeline__body p {
  color: var(--muted);
  max-width: 52ch;
}

/* --------------------------------------------------------------- 10. Honours */

.honours__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 258px), 1fr));
  gap: clamp(.9rem, 2vw, 1.35rem);
}

.honours__grid li {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  padding-top: clamp(2.6rem, 4vw, 3.2rem);
  transition:
    transform .6s var(--ease),
    border-color .6s ease,
    box-shadow .6s ease;
}

.honours__grid li:hover {
  transform: translateY(var(--hover-lift));
  border-color: rgba(212, 175, 106, .38);
  box-shadow:
    0 40px 70px -38px rgba(0, 0, 0, 1),
    0 0 34px -18px rgba(212, 175, 106, .6),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}

/* Hairline that wipes across the card top on hover. */
.honours__grid li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--ease-io);
}
.honours__grid li:hover::after { transform: scaleX(1); }

.honours__grid span {
  position: absolute;
  top: clamp(.8rem, 1.6vw, 1.15rem);
  right: clamp(1.1rem, 2.4vw, 1.6rem);
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1;
  color: rgba(212, 175, 106, .26);
  letter-spacing: .04em;
  transition: color .6s ease;
}
.honours__grid li:hover span { color: rgba(240, 217, 168, .5); }

.honours__grid h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  margin-bottom: .6rem;
}
.honours__grid p {
  color: var(--muted);
  font-size: .93em;
}

/* ---------------------------------------------------------------- 11. Attire */

.attire {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(2.2rem, 6vw, 5rem);
  align-items: center;
}

.attire__copy h2 { font-size: clamp(2.05rem, 5.2vw, 3.7rem); }

.attire__notes {
  list-style: none;
  margin: clamp(2rem, 4vw, 2.8rem) 0 0;
  padding: 0;
  max-width: 46ch;
}
.attire__notes li {
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .95em;
}
.attire__notes li:last-child { border-bottom: 1px solid var(--line-soft); }
.attire__notes strong {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: .66rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .35rem;
}

.attire__art { display: flex; justify-content: center; }

.attire__svg {
  width: min(260px, 62vw);
  height: auto;
  overflow: visible;
}

.attire__svg .draw {
  fill: none;
  stroke: url(#foil);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attire__svg rect.draw { stroke-width: 1.4; }

.attire__svg .dot {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .7s ease .9s, transform .7s var(--ease) .9s;
}

/* Armed by JS once path lengths are measured, so a no-JS render stays complete. */
.attire__svg.is-armed .draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
}
.attire__svg.is-armed .dot { opacity: 0; transform: scale(.4); }

.attire__svg.is-armed.is-drawn .draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s var(--ease-io);
  transition-delay: var(--d, 0ms);
}
.attire__svg.is-armed.is-drawn .dot { opacity: 1; transform: scale(1); }

html[data-motion="calm"] .attire__svg.is-armed.is-drawn .draw { transition-duration: .95s; }

/* ----------------------------------------------------------------- 12. Venue */

.venue__inner {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: stretch;
}

.venue__map {
  padding: clamp(1.1rem, 2.6vw, 1.8rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.venue__svg { width: 100%; height: auto; }

.venue__roads path {
  fill: none;
  stroke: rgba(237, 236, 238, .085);
  stroke-width: 13;
  stroke-linecap: square;
}

.venue__block {
  fill: rgba(255, 255, 255, .035);
  stroke: rgba(240, 217, 168, .13);
  stroke-width: 1;
}
.venue__block:first-of-type {
  fill: rgba(212, 175, 106, .1);
  stroke: rgba(240, 217, 168, .34);
}

.venue__pin circle {
  fill: var(--gold-lt);
  stroke: none;
}
.venue__pin .venue__pulse {
  fill: none;
  stroke: rgba(212, 175, 106, .75);
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  animation: pinPulse 3.6s var(--ease-io) infinite;
}
html[data-motion="calm"] .venue__pin .venue__pulse { animation-duration: 6.5s; }

.venue__label {
  fill: var(--gold-lt);
  stroke: none;
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-anchor: middle;
}

.venue__road-label {
  fill: rgba(237, 236, 238, .34);
  stroke: none;
  font-family: var(--f-body);
  font-size: 10.5px;
  font-weight: 300;
  letter-spacing: 1.1px;
}

.venue__valet path {
  fill: none;
  stroke: rgba(212, 175, 106, .7);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.venue__valet .venue__road-label {
  fill: rgba(212, 175, 106, .8);
  text-anchor: middle;
}

.venue__details { display: flex; align-items: center; }
.venue__details dl { margin: 0; width: 100%; }

.venue__details dt {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .45rem;
}
.venue__details dd {
  margin: 0 0 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .95em;
}
.venue__details dd:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

.venue__details a {
  position: relative;
  color: var(--gold-lt);
}
.venue__details a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .5s var(--ease-io);
}
.venue__details a:hover::after,
.venue__details a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }

/* -------------------------------------------------- 14. Scroll reveal

   Gated behind html.js, which main.js adds on boot. Without JavaScript the observer that
   clears these would never run, so hiding them unconditionally would leave a page of blank
   sections — the .js gate means no-JS simply gets everything visible and static.
   --r is the element's index within its group, staggering siblings without extra rules. */

html.js .reveal {
  opacity: 0;
  transform: translateY(var(--rev-y));
  transition:
    opacity var(--rev-dur) var(--ease) calc(var(--r, 0) * 70ms),
    transform var(--rev-dur) var(--ease) calc(var(--r, 0) * 70ms);
}
html.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   15. Responsive

   Fluid type via clamp() carries most of the scale, so these breakpoints only
   handle the things clamp() cannot: multi-column grids that must become one
   column, and the fixed top bar, whose nav ran off the right edge below about
   860px and took the Register link with it.
   ========================================================================== */

/* ---- Tablet: the two-column editorial splits stop earning their keep ---- */
@media (max-width: 900px) {
  .attire,
  .venue__inner {
    grid-template-columns: 1fr;
    gap: clamp(2.2rem, 6vw, 3.4rem);
  }

  /* The bow tie is decorative; at this width it should sit under the copy
     rather than compete with it for a narrow column. */
  .attire__art { order: 2; }
  .attire__svg { max-width: 210px; }

  .venue__details { align-items: flex-start; }
}

/* ---- The top bar can no longer hold mark + nav + CTA on one line ---- */
@media (max-width: 860px) {
  .topbar {
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem 1.4rem;
    padding-block: .85rem;
  }
  .topbar__mark { flex: 1 0 100%; text-align: center; }
  .topbar__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.25rem;
  }
}

/* ---- Phone ---- */
@media (max-width: 620px) {
  /* Four columns of numerals leaves ~60px each — legible but mean. Two rows of
     two gives the figures room to stay the hero element they are. */
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.6rem;
  }
  /* The dividing rules only make sense in a single row. */
  .countdown > div + div::before { display: none; }

  /* Time above the entry rather than beside it: a right-aligned rail column
     wastes a third of the width on a phone. */
  .timeline__item {
    grid-template-columns: 1fr;
    gap: .35rem;
    padding-left: 1.35rem;
  }
  .timeline__time { text-align: left; }
  .timeline__item::before { left: 0; margin-left: 0; }
  .timeline::before { left: 4px; }

  .hero__scroll { margin-top: 2.4rem; }
  .form { padding: clamp(1.4rem, 6vw, 2rem); }
}

/* ---- Small phones ---- */
@media (max-width: 380px) {
  .topbar__nav a { font-size: .64rem; letter-spacing: .14em; }
  .countdown dd { font-size: clamp(1.9rem, 12vw, 2.6rem); }
}

/* ==========================================================================
   16. Registration

   This whole section was previously unstyled — the form rendered as raw browser
   controls (white boxes, a default fieldset border, a system submit button) in
   the middle of an otherwise dark, glass-and-gold page. Everything below brings
   it into the same material language: hairline gold on near-black, generous
   rhythm, and no filled surface except the single primary action.
   ========================================================================== */

.form {
  width: min(100%, 620px);
  margin-inline: auto;
  padding: clamp(1.6rem, 4vw, 2.9rem);
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.5rem);
}

.field { display: grid; gap: .55rem; }

.field label,
.field--choice legend {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.field .opt {
  margin-left: .5em;
  letter-spacing: .12em;
  color: var(--faint);
  text-transform: none;
}

/*
 * Underline rather than a box. A bordered input reads as a web form; a single
 * rule that lights on focus reads as stationery, which is the register this
 * page is written in.
 */
.field input,
.field select {
  width: 100%;
  padding: .72rem .15rem;
  font-family: var(--f-body);
  font-size: .95rem;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  transition: border-color .35s var(--ease), background-color .35s var(--ease);
}
.field input::placeholder { color: var(--faint); }

.field input:hover,
.field select:hover { border-bottom-color: rgba(240, 217, 168, .3); }

.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-bottom-color: var(--gold-lt);
  background: linear-gradient(180deg, transparent 62%, rgba(212, 175, 106, .07));
}

/* The native arrow is drawn by the OS and cannot be themed, so it is removed
   and a gold chevron painted in its place. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.8rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: right 12px center, right 6px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.field select option { background: var(--ink-2); color: var(--paper); }

.field input[aria-invalid='true'],
.field select[aria-invalid='true'] { border-bottom-color: #c96a5a; }

.field__error {
  margin: 0;
  min-height: 1em;
  font-size: .75rem;
  color: #d98a7c;
  letter-spacing: .02em;
}
.field__error:empty { min-height: 0; }

/* ---------------------------------------------------- Attendance choice */

.field--choice {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .7rem;
}
.field--choice legend { padding: 0; }

.choice { display: flex; flex-wrap: wrap; gap: .6rem; }

.choice label {
  position: relative;
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  padding: .8rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  cursor: pointer;
  color: var(--muted);
  font-size: .9rem;
  transition: border-color .35s var(--ease), color .35s var(--ease), background-color .35s var(--ease);
}
.choice label:hover { border-color: var(--line); color: var(--paper); }

/* The native radio is replaced by a drawn ring so the control carries the same
   hairline weight as the rest of the page. It stays focusable — only its paint
   is hidden, never the control itself. */
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { position: relative; padding-left: 1.55rem; }
.choice span::before,
.choice span::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  transition: opacity .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.choice span::before {
  left: 0; top: 50%;
  width: 15px; height: 15px;
  margin-top: -7.5px;
  border: 1px solid rgba(240, 217, 168, .4);
}
.choice span::after {
  left: 4px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  background: var(--gold-lt);
  opacity: 0;
  transform: scale(.3);
}
.choice input:checked + span::before { border-color: var(--gold-lt); }
.choice input:checked + span::after { opacity: 1; transform: scale(1); }

.choice label:has(input:checked) {
  border-color: rgba(240, 217, 168, .34);
  background: rgba(212, 175, 106, .05);
  color: var(--paper);
}
/* Focus has to be visible on the label, since the input it belongs to is
   painted out above. */
.choice label:has(input:focus-visible) { outline: 1px solid var(--gold-lt); outline-offset: 2px; }

/* ------------------------------------------------------------- Actions */

.btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: .4rem;
  padding: .95rem 1.7rem;
  font-family: var(--f-body);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-lt), var(--gold) 55%, var(--gold-dk));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), filter .4s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 34px -16px rgba(212, 175, 106, .8);
}
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold-lt); outline-offset: 3px; }

.btn svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

.btn--ghost {
  background: transparent;
  color: var(--gold-lt);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  background: rgba(212, 175, 106, .07);
  border-color: rgba(240, 217, 168, .38);
  box-shadow: none;
  filter: none;
}

.form__note {
  margin: 0;
  font-size: .76rem;
  line-height: 1.6;
  color: var(--faint);
}

/* -------------------------------------------------------- Confirmation */

.confirm {
  width: min(100%, 620px);
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}
.confirm h3 {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 400;
  color: var(--paper);
}
.confirm p {
  margin: 0;
  max-width: 44ch;
  color: var(--muted);
  line-height: 1.75;
}
.confirm .btn { justify-self: center; margin-top: .6rem; }

.confirm__seal { width: 76px; height: 76px; }
.confirm__ring,
.confirm__tick { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.confirm__ring { stroke: var(--gold); stroke-width: 1; opacity: .5; }
.confirm__tick { stroke: var(--gold-lt); stroke-width: 2.4; }

/* The seal draws itself as the panel appears — the one moment of motion in a
   section that is otherwise deliberately still. */
.confirm:not([hidden]) .confirm__ring {
  stroke-dasharray: 202; stroke-dashoffset: 202;
  animation: sealRing 1.1s var(--ease) .05s forwards;
}
.confirm:not([hidden]) .confirm__tick {
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: sealTick .55s var(--ease) .5s forwards;
}
@keyframes sealRing { to { stroke-dashoffset: 0; } }
@keyframes sealTick { to { stroke-dashoffset: 0; } }

html[data-motion="calm"] .confirm:not([hidden]) .confirm__ring { animation-duration: .8s; }
html[data-motion="calm"] .confirm:not([hidden]) .confirm__tick { animation-duration: .4s; }

/* ------------------------------------------------------------- Details */

.foot__fine { color: var(--faint); font-size: .74rem; letter-spacing: .1em; }

/* Hairline-separated rows rather than a bare bulleted list. */
.attire__notes { display: grid; gap: 0; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.attire__notes li {
  display: grid;
  gap: .3rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}
.attire__notes li:last-child { border-bottom: 1px solid var(--line-soft); }
.attire__notes strong {
  font-weight: 400;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 620px) {
  .choice label { flex: 1 1 100%; }
  .btn { justify-self: stretch; justify-content: center; }
}
