/* NOCTURNE — an invitational concours held after dark.
   The field is black lacquer; the visitor carries the lamp. Gold is the
   coachbuilder's leaf — one drawn line, the rosettes, the entry plates —
   never a surface. Cinzel speaks for the engraver, Source Serif for the
   catalogue, Sometype Mono only where a judge wrote a number.
   No frameworks, no libraries. */

:root {
  --lacquer: #0b0907;
  --lacquer-2: #120e0a;
  --coal: #1a1510;
  --ivory: #ece5d6;
  --ivory-dim: #a2977f;
  --gold: #c9a35c;
  --gold-deep: #8f6f35;
  --gold-line: rgba(201, 163, 92, 0.28);
  --hairline: rgba(236, 229, 214, 0.10);
  --claret: #a4353f;
  --disp: 'Cinzel', 'Times New Roman', serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'Sometype Mono', 'Cascadia Mono', monospace;
  --gut: clamp(20px, 4.5vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--serif);
  font-weight: 400;
  background: var(--lacquer);
  color: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
::selection { background: var(--gold); color: #171106; }

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

.skip {
  position: fixed; top: -52px; left: 16px; z-index: 400;
  padding: 10px 16px; background: var(--gold); color: #171106;
  font-family: var(--mono); font-size: 12px; text-decoration: none;
  transition: top 0.2s;
}
.skip:focus-visible { top: 12px; }

/* ---------------- cross-document transitions ---------------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ---------------- masthead ---------------- */
.mast {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; gap: clamp(14px, 3vw, 34px);
  padding: 16px var(--gut);
  background: linear-gradient(180deg, rgba(11, 9, 7, 0.92) 0%, rgba(11, 9, 7, 0.55) 70%, rgba(11, 9, 7, 0) 100%);
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.mast.dived { transform: translateY(-110%); opacity: 0; pointer-events: none; }
.mark {
  margin-right: auto; text-decoration: none; display: flex; align-items: center; gap: 12px;
}
.mark svg { width: 26px; height: 26px; }
.mark b {
  font-family: var(--disp); font-weight: 700; font-size: 15px;
  letter-spacing: 0.34em; color: var(--ivory);
}
.mnav { display: flex; gap: clamp(14px, 2.6vw, 30px); align-items: center; }
.mnav a {
  font-family: var(--serif); font-size: 13.5px; letter-spacing: 0.14em;
  text-transform: uppercase; text-decoration: none; color: var(--ivory-dim);
  padding: 6px 0; position: relative;
  transition: color 0.25s;
}
.mnav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right 0.35s var(--ease-out);
}
.mnav a:hover, .mnav a:focus-visible { color: var(--ivory); }
.mnav a:hover::after, .mnav a:focus-visible::after { right: 0; }
.mnav a[aria-current="page"] { color: var(--ivory); }
.mnav a[aria-current="page"]::after { right: 0; }

/* rosette tray button */
.tray-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 1px solid var(--gold-line); border-radius: 0;
  color: var(--ivory-dim); font-family: var(--serif); font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 14px; cursor: pointer;
  transition: color 0.25s, border-color 0.25s, transform 0.15s;
}
.tray-btn:hover, .tray-btn:focus-visible { color: var(--gold); border-color: var(--gold); }
.tray-btn:active { transform: scale(0.97); }
.tray-btn .ros { width: 15px; height: 15px; }
.tray-btn output { font-family: var(--mono); font-size: 12px; color: var(--gold); }

@media (max-width: 760px) {
  .mast { padding: 12px 16px; gap: 12px; }
  .mark b { font-size: 13px; letter-spacing: 0.24em; }
  .mnav { gap: 14px; }
  .mnav a { font-size: 11.5px; letter-spacing: 0.08em; }
  .tray-btn { padding: 8px 10px; font-size: 11px; }
  .tray-btn .lbl { display: none; }
}

/* the rosette mark, drawn once, reused */
.ros { fill: none; stroke: currentColor; stroke-width: 1.3; }
.ros .ros-fill { fill: currentColor; stroke: none; opacity: 0; transition: opacity 0.25s; }
.pinned .ros .ros-fill, .ros.filled .ros-fill { opacity: 1; }

/* ---------------- hero ---------------- */
.hero { position: relative; height: 100svh; overflow: hidden; background: #000; }
.hero video, .hero img.fallback {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11, 9, 7, 1) 0%, rgba(11, 9, 7, 0.25) 26%, rgba(11, 9, 7, 0) 48%);
}
.hero-body {
  position: absolute; left: 0; right: 0; bottom: 11svh; z-index: 2;
  text-align: center; padding: 0 var(--gut);
}
.hero-kicker-line { /* the coach line: a single gold rule that draws itself */
  width: 0; height: 1px; background: var(--gold);
  margin: 0 auto 26px;
  transition: width 1.6s var(--ease-out) 0.3s;
}
.lit .hero-kicker-line { width: min(320px, 60vw); }
.hero-title {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(2.7rem, 8.6vw, 7.2rem);
  letter-spacing: clamp(0.14em, 2vw, 0.26em);
  text-indent: clamp(0.14em, 2vw, 0.26em);
  line-height: 1.05; color: var(--ivory);
}
.hero-sub {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem); color: var(--ivory-dim);
  margin-top: 18px;
}
.hero-meta {
  display: flex; gap: clamp(16px, 3vw, 38px); justify-content: center; flex-wrap: wrap;
  margin-top: 30px;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-dim);
}
.hero-meta b { color: var(--gold); font-weight: 400; }
.hero-cue {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--ivory-dim);
}

/* ---------------- section frame ---------------- */
.wrap { max-width: 1420px; margin: 0 auto; padding: 0 var(--gut); }
.sect { padding: clamp(60px, 10vh, 130px) 0; }
.sect-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: clamp(30px, 5vh, 54px); }
.sect-head .line { flex: 1; height: 1px; background: var(--hairline); }
.sect-title {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ivory);
}
.sect-aside { font-style: italic; color: var(--ivory-dim); font-size: 0.95rem; }

.prose {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem); line-height: 1.75;
  color: var(--ivory); max-width: 64ch; font-weight: 400;
}
.prose + .prose { margin-top: 1.1em; }
.prose em { color: var(--ivory-dim); }

/* ---------------- class rail (filters) ---------------- */
.classes {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vh, 40px);
}
.class-chip {
  background: none; border: 1px solid var(--hairline); border-radius: 0;
  color: var(--ivory-dim); font-family: var(--serif); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 10px 16px; cursor: pointer; position: relative;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.12s;
}
.class-chip:hover { color: var(--ivory); border-color: var(--gold-line); }
.class-chip:active { transform: scale(0.97); }
.class-chip[aria-pressed="true"] {
  color: var(--gold); border-color: var(--gold);
  background: rgba(201, 163, 92, 0.07);
}
.class-count {
  font-family: var(--mono); font-size: 10.5px; margin-left: 7px; opacity: 0.7;
}

/* ---------------- the field ----------------
   Named .the-field, not .field: the invitation form's input groups own
   .field, and that rule (display:flex) sits later in this stylesheet — the
   collision silently flattened the whole 12-column walk into one column. */
.the-field {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
}
.plate {
  position: relative; overflow: hidden; display: block;
  text-decoration: none; background: var(--lacquer-2);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.plate.dimmed { opacity: 0.18; pointer-events: none; }
.plate img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.4s var(--ease-out);
}
.plate:hover img { transform: scale(1.035); }
/* the lamp: dusk at rest, warm lamplight where you stand */
.plate .lamp {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 300px at var(--lx, 50%) var(--ly, 140%),
      rgba(212, 175, 101, 0.13) 0%, rgba(212, 175, 101, 0) 46%),
    radial-gradient(circle 380px at var(--lx, 50%) var(--ly, 140%),
      rgba(6, 4, 2, 0) 0%, rgba(6, 4, 2, 0.16) 52%, rgba(6, 4, 2, 0.42) 100%);
  transition: opacity 0.5s;
}
.plate:focus-visible .lamp { opacity: 0.2; }
@media (hover: none) { .plate .lamp { opacity: 0.5; } }

.plate-tag {
  position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 2;
  display: flex; align-items: baseline; gap: 12px;
  transform: translateY(6px); opacity: 0.85;
  transition: transform 0.45s var(--ease-out), opacity 0.45s;
}
.plate:hover .plate-tag, .plate:focus-visible .plate-tag { transform: none; opacity: 1; }
.plate-no {
  font-family: var(--disp); font-size: 13px; letter-spacing: 0.1em; color: var(--gold);
  border: 1px solid var(--gold-line); padding: 5px 8px 4px;
  background: rgba(11, 9, 7, 0.66);
}
.plate-name {
  font-family: var(--serif); font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--ivory); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}
.plate-cls {
  margin-left: auto; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-dim); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}
.plate .pin {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; display: grid; place-items: center;
  background: rgba(11, 9, 7, 0.6); border: 1px solid transparent; border-radius: 0;
  color: var(--ivory-dim); cursor: pointer;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s, transform 0.3s, color 0.25s, border-color 0.25s;
}
.plate:hover .pin, .plate:focus-within .pin, .plate .pin.pinned { opacity: 1; transform: none; }
.plate .pin:hover, .plate .pin:focus-visible { color: var(--gold); border-color: var(--gold-line); }
.plate .pin.pinned { color: var(--gold); }
.plate .pin .ros { width: 17px; height: 17px; }
.plate .pin.stamp .ros { animation: stamp 0.45s var(--ease-out); }
@keyframes stamp {
  0% { transform: scale(1.7); }
  55% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
@media (hover: none) { .plate .pin { opacity: 1; transform: none; } }

/* field spans — an uneven, walked field, not a card grid */
.plate.s7 { grid-column: span 7; aspect-ratio: 16 / 10; }
.plate.s5 { grid-column: span 5; aspect-ratio: 4 / 3.6; }
/* Portrait plates carry portrait photography (≈3:4.5 originals). A near-square
   box would crop them to a detail; this box keeps most of the frame, so the
   whole car stays in the picture. */
.plate.s4 { grid-column: span 4; aspect-ratio: 3 / 4.2; }
.plate.s8 { grid-column: span 8; aspect-ratio: 21 / 10; }
.plate.s6 { grid-column: span 6; aspect-ratio: 16 / 10.5; }
.plate.s12 { grid-column: span 12; aspect-ratio: 21 / 9; }
@media (max-width: 860px) {
  .plate.s7, .plate.s5, .plate.s4, .plate.s8, .plate.s6, .plate.s12 { grid-column: span 12; aspect-ratio: 16 / 10; }
  .plate.tall-m { aspect-ratio: 3 / 3.6; }
}

/* ---------------- best of show band ---------------- */
.bos { position: relative; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.bos-in {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px); align-items: center;
  padding: clamp(50px, 8vh, 100px) 0;
}
@media (max-width: 900px) { .bos-in { grid-template-columns: 1fr; } }
.bos-media { position: relative; overflow: hidden; }
.bos-media img { width: 100%; height: auto; display: block; }
.bos-name {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 3rem); letter-spacing: 0.06em;
  line-height: 1.15;
}
.bos-name .bos-award {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 16px;
}
.bos-name .bos-award::after { content: ''; width: 60px; height: 1px; background: var(--gold-line); }
.bos-cite { font-style: italic; color: var(--ivory-dim); line-height: 1.7; margin-top: 16px; max-width: 46ch; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-block; background: var(--ivory); color: #171106;
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none; border: 1px solid var(--ivory);
  border-radius: 0; padding: 15px 30px; cursor: pointer; position: relative;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.12s;
}
.btn:hover, .btn:focus-visible { background: var(--gold); border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn-ghost {
  display: inline-block; background: none; color: var(--ivory);
  font-family: var(--serif); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--hairline); border-radius: 0;
  padding: 14px 24px; cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.12s;
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--gold); color: var(--gold); }
.btn-ghost:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: default; }

/* ---------------- entry page ---------------- */
.entry-hero { position: relative; padding-top: 76px; }
.entry-stage {
  position: relative; overflow: hidden;
  height: min(74svh, 860px); background: var(--lacquer-2);
}
.entry-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.entry-stage .lamp {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 460px at var(--lx, 50%) var(--ly, 60%),
      rgba(212, 175, 101, 0.09) 0%, rgba(212, 175, 101, 0) 46%),
    radial-gradient(circle 560px at var(--lx, 50%) var(--ly, 60%),
      rgba(6, 4, 2, 0) 0%, rgba(6, 4, 2, 0.14) 58%, rgba(6, 4, 2, 0.4) 100%);
}
@media (hover: none) { .entry-stage .lamp { opacity: 0.4; } }
.entry-head {
  display: flex; align-items: flex-start; gap: clamp(16px, 3vw, 40px); flex-wrap: wrap;
  padding: 26px 0 0;
}
.entry-no {
  font-family: var(--disp); font-size: clamp(2.4rem, 5vw, 4rem); color: var(--gold);
  line-height: 1; border: 1px solid var(--gold-line); padding: 12px 16px 8px;
}
.entry-title h1 {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(1.7rem, 3.8vw, 3.2rem); letter-spacing: 0.05em; line-height: 1.12;
}
.entry-title .spec { font-style: italic; color: var(--ivory-dim); margin-top: 10px; font-size: 1.05rem; }
.entry-title .meta {
  display: flex; gap: 18px; margin-top: 12px; flex-wrap: wrap;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-dim);
}
.entry-title .meta b { color: var(--gold); font-weight: 400; }
.entry-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.pin-lg {
  display: inline-flex; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--hairline); border-radius: 0;
  color: var(--ivory); font-family: var(--serif); font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px 20px; cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.12s;
}
.pin-lg:hover, .pin-lg:focus-visible { border-color: var(--gold); color: var(--gold); }
.pin-lg:active { transform: scale(0.97); }
.pin-lg.pinned { border-color: var(--gold); color: var(--gold); }
.pin-lg .ros { width: 17px; height: 17px; }
.pin-lg.stamp .ros { animation: stamp 0.45s var(--ease-out); }

/* the judging card */
.card-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px); align-items: start;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }
.jcard {
  border: 1px solid var(--gold-line); padding: clamp(22px, 3vw, 38px);
  background: linear-gradient(160deg, rgba(201, 163, 92, 0.05) 0%, rgba(201, 163, 92, 0) 40%);
}
.jcard-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--gold-line); margin-bottom: 8px;
}
.jcard-head h2 {
  font-family: var(--disp); font-weight: 400; font-size: 1.1rem;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.jcard-head .season { font-family: var(--mono); font-size: 11px; color: var(--ivory-dim); }
.jrow {
  display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.jrow .k { font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-dim); }
.jrow .bar { grid-column: 1 / -1; height: 2px; background: var(--hairline); position: relative; overflow: hidden; }
.jrow .bar i {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold);
  transition: width 1.1s var(--ease-out);
}
.jrow .v { font-family: var(--mono); font-size: 15px; color: var(--ivory); }
.jrow .of { font-family: var(--mono); font-size: 11px; color: var(--ivory-dim); }
.jtotal {
  display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px;
}
.jtotal .k { font-family: var(--disp); font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; }
.jtotal .v { font-family: var(--mono); font-size: 30px; color: var(--gold); }
.jtotal .v small { font-size: 13px; color: var(--ivory-dim); }
.jcard.sealed-card { text-align: center; padding: clamp(40px, 6vh, 70px) 30px; }
.jcard.sealed-card p { font-style: italic; color: var(--ivory-dim); line-height: 1.7; }
.jcard.sealed-card .seal {
  width: 74px; height: 74px; margin: 0 auto 22px; color: var(--gold);
}

.jnotes { margin-top: clamp(26px, 4vh, 40px); }
.jnotes li {
  list-style: none; display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem; line-height: 1.6; color: var(--ivory);
}
.jnotes li::before { content: '·'; color: var(--gold); font-size: 1.4em; line-height: 1; }

/* entry detail figures */
.entry-figs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.efig { position: relative; overflow: hidden; grid-column: span 6; }
.efig.tall { grid-column: span 4; }
.efig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease-out); }
.efig:hover img { transform: scale(1.04); }
.efig figcaption {
  position: absolute; left: 14px; bottom: 12px; right: 14px;
  font-style: italic; font-size: 0.92rem; color: var(--ivory);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.efig:hover figcaption, .efig:focus-within figcaption { opacity: 1; transform: none; }
@media (hover: none) { .efig figcaption { opacity: 1; transform: none; } }
@media (max-width: 860px) { .efig, .efig.tall { grid-column: span 12; } }

/* prev / next walk */
.walk {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px solid var(--hairline); padding-top: 30px;
}
.walk a {
  text-decoration: none; color: var(--ivory-dim); max-width: 44%;
  transition: color 0.25s;
}
.walk a:hover, .walk a:focus-visible { color: var(--gold); }
.walk .dir { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.walk .nm { font-family: var(--disp); font-size: 1.05rem; letter-spacing: 0.04em; }
.walk a.next { text-align: right; margin-left: auto; }

/* ---------------- rosette tray (drawer) ---------------- */
.tray {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
  width: min(430px, 92vw);
  background: var(--lacquer-2); border-left: 1px solid var(--gold-line);
  transform: translateX(102%);
  transition: transform 0.5s var(--ease-out);
  display: flex; flex-direction: column;
  visibility: hidden;
}
.tray.open { transform: none; visibility: visible; }
.tray-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--hairline);
}
.tray-head h2 { font-family: var(--disp); font-weight: 400; font-size: 1rem; letter-spacing: 0.24em; text-transform: uppercase; }
.tray-close {
  background: none; border: 1px solid var(--hairline); color: var(--ivory-dim);
  width: 36px; height: 36px; cursor: pointer; font-size: 16px; line-height: 1;
  transition: color 0.25s, border-color 0.25s;
}
.tray-close:hover, .tray-close:focus-visible { color: var(--gold); border-color: var(--gold); }
.tray-list { flex: 1; overflow-y: auto; padding: 10px 24px; }
.tray-item {
  display: grid; grid-template-columns: 86px 1fr auto; gap: 14px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--hairline);
}
.tray-item img { width: 86px; height: 58px; object-fit: cover; display: block; }
.tray-item .nm { font-size: 0.98rem; }
.tray-item .nm small { display: block; color: var(--ivory-dim); font-size: 0.8rem; margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; }
.tray-item a { text-decoration: none; }
.tray-item a:hover .nm, .tray-item a:focus-visible .nm { color: var(--gold); }
.tray-unpin {
  background: none; border: 0; color: var(--ivory-dim); cursor: pointer;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px;
  transition: color 0.2s;
}
.tray-unpin:hover, .tray-unpin:focus-visible { color: var(--claret); }
.tray-empty { padding: 40px 0; font-style: italic; color: var(--ivory-dim); line-height: 1.7; }
.tray-foot { padding: 18px 24px 24px; border-top: 1px solid var(--hairline); }
.tray-scrim {
  position: fixed; inset: 0; z-index: 290; background: rgba(4, 3, 2, 0.6);
  opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.tray-scrim.on { opacity: 1; pointer-events: auto; }

/* ---------------- invitation page ---------------- */
.inv-head { padding: calc(76px + clamp(40px, 8vh, 90px)) 0 0; }
.inv-title {
  font-family: var(--disp); font-weight: 400;
  font-size: clamp(2.1rem, 5.4vw, 4.2rem); letter-spacing: 0.12em; line-height: 1.1;
}
.inv-sub { font-style: italic; color: var(--ivory-dim); margin-top: 16px; font-size: 1.12rem; max-width: 52ch; line-height: 1.7; }

.programme { max-width: 760px; }
.prog-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 22px;
  padding: 17px 0; border-bottom: 1px solid var(--hairline);
}
.prog-row .t { font-family: var(--mono); font-size: 13px; color: var(--gold); padding-top: 3px; }
.prog-row .what { font-size: 1.02rem; line-height: 1.65; }
.prog-row .what em { color: var(--ivory-dim); }

.inv-form-wrap {
  border: 1px solid var(--gold-line); padding: clamp(26px, 4vw, 52px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(30px, 5vw, 70px);
}
@media (max-width: 900px) { .inv-form-wrap { grid-template-columns: 1fr; } }
.inv-form-wrap h2 { font-family: var(--disp); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: 0.1em; }
.inv-form-wrap .why { font-style: italic; color: var(--ivory-dim); margin-top: 14px; line-height: 1.7; }
.inv-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-dim); }
.field input, .field select {
  background: rgba(236, 229, 214, 0.04); border: 1px solid var(--hairline); border-radius: 0;
  color: var(--ivory); font-family: var(--serif); font-size: 15px;
  padding: 13px 14px; width: 100%;
  transition: border-color 0.25s, background 0.25s;
}
.field input:focus-visible, .field select:focus-visible {
  outline: none; border-color: var(--gold); background: rgba(236, 229, 214, 0.07);
}
.field.err input { border-color: var(--claret); }
.field-err { font-size: 12px; font-style: italic; color: var(--claret); min-height: 15px; }
.guests { display: flex; border: 1px solid var(--hairline); background: rgba(236, 229, 214, 0.04); }
.guests button {
  background: none; border: 0; color: var(--gold); font-size: 17px;
  width: 44px; height: 45px; cursor: pointer; transition: background 0.2s;
}
.guests button:hover { background: rgba(201, 163, 92, 0.08); }
.guests button:disabled { color: var(--hairline); cursor: default; background: none; }
.guests output { flex: 1; text-align: center; align-self: center; font-family: var(--mono); font-size: 14px; }

.noted {
  border: 1px solid var(--gold-line); padding: 22px 24px; margin-top: 6px;
  font-style: italic; line-height: 1.7; color: var(--ivory);
  background: rgba(201, 163, 92, 0.05);
}
.noted .code { font-family: var(--mono); font-style: normal; font-size: 0.88em; letter-spacing: 0.12em; color: var(--gold); }

/* ---------------- footer ---------------- */
.foot {
  border-top: 1px solid var(--hairline); margin-top: clamp(50px, 9vh, 110px);
  padding: 36px var(--gut) 46px;
  display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: baseline; justify-content: space-between;
  max-width: 1420px; margin-left: auto; margin-right: auto;
}
.foot-brand { font-family: var(--disp); font-size: 13px; letter-spacing: 0.3em; }
.foot-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-nav a {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-dim); text-decoration: none; transition: color 0.25s;
}
.foot-nav a:hover, .foot-nav a:focus-visible { color: var(--gold); }
.foot-fine { font-size: 12px; font-style: italic; color: var(--ivory-dim); }

/* ---------------- reveals ---------------- */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.rise.lit { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .plate img, .efig img { transition: none; }
  .plate .lamp, .entry-stage .lamp { display: none; }
  .hero-kicker-line { transition: none; }
  .lit .hero-kicker-line { width: min(320px, 60vw); }
  .jrow .bar i { transition: none; }
}

.no-js .rise { opacity: 1; transform: none; }
.no-js .plate .lamp, .no-js .tray-btn { display: none; }
