/* ==========================================================================
   De Bach au Jazz — design system
   Palette drawn from the generated film: dawn ivory, brass lamplight,
   burgundy velvet, ink-navy shadow.
   ========================================================================== */

:root {
  /* ink & paper */
  --ink:        #16202E;   /* deep navy — the shadow in every frame */
  --ink-2:      #1E2B3C;
  --ink-3:      #2C3A4D;
  --paper:      #F4EEE3;   /* warm ivory — the dawn light */
  --paper-2:    #EBE3D4;
  --paper-3:    #DED3BE;

  /* accents */
  --brass:      #C9A227;   /* lamp brass, piano frame */
  --brass-deep: #7D5F0C;   /* 5.17:1 on paper — the only brass used for text */
  --burgundy:   #6B1F2A;   /* velvet seats, curtains */
  --sage:       #3E5449;   /* jury baize */

  /* semantic */
  --bg:         var(--paper);
  --bg-raised:  #FBF7EF;
  --fg:         var(--ink);
  --fg-soft:    #55617240;
  --fg-muted:   #5A6675;
  --rule:       #16202E1F;
  --accent:     var(--burgundy);

  /* type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Palatino, "Times New Roman", serif;
  --font-body: "Commissioner", "Helvetica Neue", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* scale — fluid, 1.25 ratio at the small end opening to 1.333 */
  --step--1: clamp(0.80rem, 0.77rem + 0.14vw, 0.875rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.16rem + 0.44vw, 1.50rem);
  --step-2:  clamp(1.56rem, 1.39rem + 0.86vw, 2.11rem);
  --step-3:  clamp(1.95rem, 1.64rem + 1.55vw, 3.00rem);
  --step-4:  clamp(2.44rem, 1.90rem + 2.68vw, 4.21rem);
  --step-5:  clamp(3.05rem, 2.15rem + 4.50vw, 6.00rem);

  /* space */
  --sp-1: 0.5rem;  --sp-2: 0.875rem; --sp-3: 1.5rem;
  --sp-4: 2.5rem;  --sp-5: 4rem;     --sp-6: 6.5rem; --sp-7: 10rem;

  --measure: 68ch;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 2px;

  color-scheme: light;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0 0 var(--sp-2);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600;
     letter-spacing: 0.01em; }
p { margin: 0 0 1.15em; max-width: var(--measure); text-wrap: pretty; }
strong { font-weight: 600; }
em { font-style: italic; }
small { font-size: var(--step--1); }
sup { font-size: 0.6em; vertical-align: super; line-height: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 var(--sp-2);
}

/* ---------- links ---------- */
main a:not(.btn) {
  color: var(--burgundy);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 1px;
  transition: background-size .25s ease, color .2s ease;
}
main a:not(.btn):hover { color: var(--brass-deep); background-size: 100% 2px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 1px; }

/* ---------- layout ---------- */
.wrap { width: min(100% - var(--gutter) * 2, 1180px); margin-inline: auto; }
.prose { width: min(100% - var(--gutter) * 2, 760px); margin-inline: auto; }
.section { padding-block: var(--sp-6); }
.section--tight { padding-block: var(--sp-5); }

/* ---------- site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--paper);
  border-bottom: 1px solid #ffffff14;
}
.site-header__bar {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 68px;
  padding-block: var(--sp-1);
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: inherit; flex: 0 0 auto; }
.brand img { height: 38px; width: auto; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-size: 1.18rem; letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass);
}
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; align-items: center; gap: 0.15rem; margin: 0; padding: 0; }
.nav a, .nav .has-sub > button {
  display: inline-block; padding: 0.55rem 0.7rem;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: #E8E1D4; text-decoration: none;
  background: none; border: 0; font-family: inherit; cursor: pointer;
  border-radius: var(--radius);
  transition: color .18s ease, background .18s ease;
}
.nav a:hover, .nav .has-sub > button:hover { color: var(--brass); background: #ffffff0d; }
.nav a[aria-current="page"] { color: var(--brass); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 1px; background: var(--brass); margin-top: 3px;
}
.has-sub { position: relative; }
.has-sub > button::after { content: " ▾"; opacity: .5; }
.subnav {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: var(--ink-2); border: 1px solid #ffffff1a;
  border-radius: var(--radius); padding: 0.35rem;
  display: none; flex-direction: column; gap: 1px;
  box-shadow: 0 18px 40px #0b111c66;
}
.has-sub[data-open="true"] .subnav { display: flex; }
.subnav a { padding: 0.5rem 0.7rem; font-size: 0.82rem; }

.nav-toggle { display: none; }

.btn-register {
  margin-left: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--brass);
  color: var(--brass) !important;
  border-radius: var(--radius);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.btn-register:hover { background: var(--brass); color: var(--ink) !important; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate;
  background: var(--ink); color: var(--paper);
  padding-block: clamp(3.5rem, 9vw, 7rem);
  overflow: hidden;
}
.page-hero__img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .42; filter: saturate(.85);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #16202ECC 0%, #16202E8C 45%, #16202EF2 100%),
    radial-gradient(120% 80% at 20% 0%, #C9A2271f, transparent 60%);
}
.page-hero h1 { font-size: var(--step-5); margin-bottom: 0.25rem; }
.page-hero .eyebrow { color: var(--brass); }
.page-hero__meta {
  margin-top: var(--sp-3); color: #D8D0C2; font-size: var(--step--1);
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- content typography (verbatim page bodies) ---------- */
/* Long rulebook pages need a calm two-step structure: a serif section head
   with a hairline above it, then a brass label for the sub-step. Repeated
   display-scale headings turn a reference page into a shouting match. */
.content h2 {
  font-size: var(--step-2); margin-top: var(--sp-5);
  padding-top: var(--sp-3); border-top: 1px solid var(--rule);
}
.content h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.content h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-deep); margin-top: var(--sp-4); margin-bottom: var(--sp-2);
}
.content h4 {
  font-family: var(--font-body); font-weight: 600; font-size: var(--step--1);
  letter-spacing: 0.02em; text-transform: none; color: var(--fg);
  margin-top: var(--sp-3);
}
.content ul, .content ol { max-width: var(--measure); padding-left: 1.15rem; margin: 0 0 1.3em; }
.content li { margin-bottom: 0.5em; }
.content li::marker { color: var(--brass); }
.content ul ul, .content ol ol, .content ul ol, .content ol ul { margin-top: 0.5em; }
.content > p:first-of-type:not(.required-hint):not(.tabs) {
  font-size: var(--step-1); line-height: 1.5; color: #2A3547;
}
.content img { border-radius: var(--radius); }
.content hr { border: 0; border-top: 1px solid var(--rule); margin-block: var(--sp-5); }

/* pull-quote-ish first letter for the long legal pages is deliberately NOT used —
   these are rulebooks; clarity beats ornament. */

/* figure: the founder photo on the home practical block */
.portrait {
  float: right; width: min(240px, 38%); margin: 0 0 var(--sp-3) var(--sp-3);
  border-radius: var(--radius); box-shadow: 0 12px 30px #16202e26;
}
@media (max-width: 640px) { .portrait { float: none; width: 100%; margin-inline: 0; } }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: var(--sp-3); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.card--accent { border-top: 1px solid var(--brass); }

/* jury cards */
.jury-grid { display: grid; gap: 1px; background: var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.jury-card { background: var(--bg-raised); padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.jury-card--chair { background: #FFFDF7; box-shadow: inset 0 2px 0 var(--brass); }
.jury-card__role {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 0.6rem;
}
.jury-card__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.1; }
.jury-card__country { color: var(--burgundy); font-size: var(--step--1);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0.35rem 0 0.8rem; }
.jury-card__bio { font-size: var(--step--1); color: var(--fg-muted); line-height: 1.55; margin: 0; }

/* prize table */
.prize-row {
  display: grid; grid-template-columns: minmax(0,1fr) auto; gap: var(--sp-2);
  align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--rule);
}
.prize-row__amt { font-family: var(--font-display); font-size: var(--step-2); color: var(--burgundy); white-space: nowrap; }

/* deadline strip */
.dates { display: grid; gap: 1px; background: var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  border: 1px solid var(--rule); }
.dates > div { background: var(--bg-raised); padding: var(--sp-3); }
.dates dt { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-deep); margin-bottom: 0.35rem; }
.dates dd { margin: 0; font-family: var(--font-display); font-size: var(--step-2); }

/* address blocks */
.address_box { display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
address { font-style: normal; }
/* Two addresses set like a masthead: separated by a hairline, not boxed. */
.address_box { gap: 0; }
.address_box address {
  padding: var(--sp-3) var(--sp-4) var(--sp-3) 0;
  border-right: 1px solid var(--rule);
}
.address_box address:last-child { border-right: 0; padding-left: var(--sp-4); }
@media (max-width: 560px) {
  .address_box address { border-right: 0; border-bottom: 1px solid var(--rule); padding: var(--sp-3) 0; }
  .address_box address:last-child { border-bottom: 0; padding-left: 0; }
}
.address_box address p { margin: 0; }

/* sponsors */
.sponsors { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4);
  padding-block: var(--sp-3); }
.sponsors img {
  max-height: 62px; width: auto;
  filter: grayscale(1) contrast(0.85) opacity(0.62);
  transition: filter .3s ease;
}
.sponsors img:hover { filter: none; }

/* media galleries */
.media-grid { display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.media-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.video-embed { position: relative; aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* tables (program / fees) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
th, td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.7rem; color: var(--brass-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--burgundy); color: var(--paper); }
.btn--primary:hover { background: #55161F; }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--onDark { border-color: var(--brass); color: var(--brass); }
.btn--onDark:hover { background: var(--brass); color: var(--ink); }

/* ---------- forms (registration) ---------- */
.form-grid { display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.field { display: grid; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.02em; }
.field .req { color: var(--burgundy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--step--1);
  padding: 0.7rem 0.85rem;
  background: var(--bg-raised);
  border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--fg);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px #C9A2271f;
}
.checks { display: grid; gap: 0.5rem; }
.checks label { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); font-weight: 400; }
.honeypot { position: absolute; left: -9999px; }

/* An editorial note, not a coloured alert bar. */
.notice {
  position: relative;
  border: 1px solid var(--rule);
  background: #FFFBF0;
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  border-radius: var(--radius);
  font-size: var(--step--1);
}
.notice::before {
  content: "Note";
  position: absolute; top: -0.62em; left: var(--sp-3);
  padding-inline: 0.5rem;
  background: #FFFBF0;
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-deep);
}
.notice strong:first-child { display: block; margin-bottom: 0.3em; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #C9C2B4;
  padding-block: var(--sp-5) var(--sp-4);
  font-size: var(--step--1);
}
.footer-h { color: var(--paper); font-family: var(--font-body); font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  margin: 0 0 var(--sp-2); }
.site-footer a { color: #C9C2B4; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-grid { display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.footer-base {
  margin-top: var(--sp-4); padding-top: var(--sp-3);
  border-top: 1px solid #ffffff14;
  display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between;
  color: #8D8779;
}

/* ---------- skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 0.7rem 1.1rem;
}
.skip:focus { left: var(--gutter); top: 0.5rem; }

/* ---------- mobile nav ---------- */
@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-left: auto;
    background: none; border: 1px solid #ffffff2e; color: var(--paper);
    font: inherit; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
    padding: 0.5rem 0.8rem; border-radius: var(--radius); cursor: pointer;
  }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    background: var(--ink); border-bottom: 1px solid #ffffff1a;
    max-height: calc(100dvh - 68px); overflow-y: auto;
    padding: var(--sp-3) var(--gutter) var(--sp-4);
    margin-left: 0;
    display: none;
  }
  .site-header[data-nav-open="true"] .nav { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav li { border-bottom: 1px solid #ffffff10; }
  .nav a, .nav .has-sub > button { display: block; width: 100%; text-align: left; padding: 0.9rem 0; font-size: 1rem; }
  .subnav { position: static; display: none; border: 0; background: none; padding: 0 0 0.6rem 1rem; box-shadow: none; }
  .has-sub[data-open="true"] .subnav { display: flex; }
  .btn-register { margin: var(--sp-3) 0 0; display: inline-block; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, #world, .page-hero__img { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- home: edition head + link cards ---------- */
.edition-head { margin-bottom: var(--sp-4); }
.edition-head h2 { font-size: var(--step-3); margin-top: var(--sp-3); }
.edition-head h2 span { font-size: 0.55em; font-family: var(--font-body); color: var(--fg-muted); }
.edition-gif {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--rule);
  box-shadow: 0 20px 50px #16202e1f;
}
.edition-head p { margin-top: var(--sp-3); }

.card--link { display: block; text-decoration: none; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card--link:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: 0 14px 34px #16202e17; }
.card--link h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-2); margin-top: 0.15rem; }
.card--link p { font-size: var(--step--1); color: var(--fg-muted); margin: 0; }
.card--link .eyebrow { color: var(--brass-deep); }

.visually-centered { text-align: center; margin-bottom: var(--sp-4); }

/* the scroll film sits flush under the sticky header */
#world { background: var(--ink); }

/* ---------- jury cards ---------- */
.jury-card { display: grid; align-content: start; }
.jury-card__photo {
  /* the source portraits are only 200-350px wide - never upscale them */
  width: 100%; max-width: 168px; aspect-ratio: 3/4;
  object-fit: cover; object-position: center 18%;
  border-radius: var(--radius); margin-bottom: var(--sp-3);
  filter: saturate(.92) contrast(1.02);
  box-shadow: 0 8px 22px #16202e1a;
}
.jury-card--chair .jury-card__photo { max-width: 200px; }
.jury-card--chair .jury-card__name { font-size: var(--step-3); }

/* ---------- media tabs ---------- */
.tabs {
  display: inline-flex; flex-wrap: wrap; gap: 1px;
  background: var(--rule); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; margin-bottom: var(--sp-4); padding: 0;
}
.tab {
  background: var(--bg-raised); padding: 0.6rem 1.3rem;
  font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none !important; background-image: none !important; color: var(--fg) !important;
}
.tab:hover { background: var(--paper-3); }
.tab[aria-current="page"] { background: var(--ink); color: var(--paper) !important; }

/* ---------- media grids ---------- */
.media-grid--video { display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.video-block p { font-size: var(--step--1); font-weight: 500; margin: 0 0 0.7rem; max-width: none; }
.video-wrapper {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  border-radius: var(--radius); background: var(--ink); cursor: pointer;
  border: 1px solid var(--rule);
}
.video-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.video-wrapper:hover img { transform: scale(1.03); opacity: .85; }
.video-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play-button {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 48px;
  display: grid; place-items: center; pointer-events: none;
  transition: transform .25s ease;
}
.play-button svg { width: 68px; height: 48px; fill: #16202ECC; }
.video-wrapper:hover .play-button { transform: scale(1.08); }
.video-wrapper:hover .play-button svg { fill: #6B1F2AE6; }

.media-grid a { background-image: none !important; padding: 0 !important; display: block; }
.media-grid img { transition: transform .5s ease, filter .3s ease; }
.media-grid a:hover img { transform: scale(1.03); filter: brightness(1.06); }

/* laureates poster */
.content > p > img[src*="laureates"] { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px #16202e1f; }

/* ---------- registration ---------- */
.required-hint { font-size: var(--step--1); color: var(--fg-muted); margin-top: var(--sp-4); }
.reg-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.reg-form .field { display: grid; gap: 0.4rem; align-content: start; }
.reg-form .lbl { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.01em; }
.reg-form .req { color: var(--burgundy); margin-left: 0.15em; }
.reg-form input[type="text"], .reg-form input[type="date"], .reg-form input[type="email"],
.reg-form input[type="tel"], .reg-form input[type="url"], .reg-form select, .reg-form textarea {
  font: inherit; font-size: var(--step--1); width: 100%;
  padding: 0.7rem 0.85rem; background: var(--bg-raised);
  border: 1px solid var(--rule); border-radius: var(--radius); color: var(--fg);
}
/* a disabled preview must still be readable — no washed-out grey */
.reg-form fieldset:disabled input, .reg-form fieldset:disabled select,
.reg-form fieldset:disabled textarea { opacity: 1; color: var(--fg-muted); background: #F7F2E8; }
.reg-form fieldset:disabled .lbl { color: var(--fg); }
.reg-form textarea { min-height: 6.5rem; resize: vertical; }
.reg-form .checks label { display: flex; gap: 0.55rem; align-items: flex-start;
  font-size: var(--step--1); font-weight: 400; margin-bottom: 0.45rem; }
.reg-form .checks br { display: none; }
.reg-form input[type="checkbox"] {
  accent-color: var(--burgundy); margin-top: 0.15em;
  width: 18px; height: 18px; flex: 0 0 auto;
}
.reg-form #registration-rulesaccept-fieldwrapper .lbl { display: flex; gap: 0.55rem; align-items: flex-start; }
.reg-form .inputwrapper:empty { display: none; }

.reg-cta {
  grid-column: 1 / -1; margin-top: var(--sp-4);
  padding-top: var(--sp-4); border-top: 1px solid var(--rule);
}
.reg-cta__note { font-size: var(--step--1); color: var(--fg-muted); margin: var(--sp-2) 0 0; }

/* ---------- the scroll film: theme the engine's own layers ---------- */
#world {
  --sw-bg: #16202E;              /* the scrim + atmosphere read as night, not paper */
  --sw-ink: #F6F1E6;
  --sw-ink-soft: #B4AC9C;
  --sw-accent: #C9A227;
  --sw-font-display: var(--font-display);
  --sw-font-body: var(--font-body);
}
/* the site header already carries the brand and nav — the engine's own top bar
   would stack a second one on top of it */
#world .sw-topbar { display: none; }
/* the film starts below the sticky header */
#world .sw-copy { padding-top: 44px; }
#world .sw-copy__title { font-weight: 400; letter-spacing: -0.015em; }
#world .sw-copy__eyebrow { font-family: var(--font-body); font-weight: 500; }
#world .sw-copy__tags li {
  font-weight: 500; color: #F0E9DA;
  background: #ffffff14; border-color: #C9A2274d; backdrop-filter: blur(6px);
}
#world .sw-btn--primary { background: var(--burgundy); color: var(--paper); }
#world .sw-btn--ghost { color: #F0E9DA; border-color: #F0E9DA59; }
/* the site reset's `height:auto` on media was letterboxing the film — the stage
   clips are meant to cover the viewport */
#world .sw-scene__video,
#world .sw-scene__still { width: 100%; height: 100%; object-fit: cover; }
/* the rail label is white-on-white against our dark theme */
#world .sw-route__label {
  color: var(--paper); background: #16202ECC; border-color: #C9A22740;
}

/* ---------- contact ---------- */
.contact-card { padding: var(--sp-4) var(--sp-3); }
.contact-card p { margin-bottom: 0.9em; font-size: var(--step--1); line-height: 1.6; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card strong { font-weight: 600; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--sp-2);
  padding: clamp(1rem, 4vw, 3rem);
  background: #0D141FF2;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lightbox[hidden] { display: none; }
.lightbox__slot { display: grid; place-items: center; min-width: 0; }
.lightbox__img {
  max-width: 100%; max-height: 88dvh; margin-inline: auto;
  border-radius: var(--radius); box-shadow: 0 30px 80px #00000080;
}
.lightbox__nav, .lightbox__close {
  background: #ffffff14; border: 1px solid #ffffff26; color: var(--paper);
  cursor: pointer; border-radius: 50%; line-height: 1;
  width: 46px; height: 46px; font-size: 1.6rem;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--brass); color: var(--ink); transform: scale(1.06); }
.lightbox__close { position: absolute; top: clamp(0.75rem, 3vw, 2rem); right: clamp(0.75rem, 3vw, 2rem); }
@media (max-width: 640px) {
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 1.25rem; }
  .lightbox__nav--prev { left: 25%; } .lightbox__nav--next { right: 25%; }
}

/* route dots: a 24px hit area without growing the visible dot */
#world .sw-route__dot { width: 24px; height: 24px; }

/* a visually hidden heading is still a heading */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* a heading that carries a label's weight, not a title's */
.content .label-h {
  font-family: var(--font-body); font-weight: 600;
  font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brass-deep); margin-top: var(--sp-5);
}

/* card and grid pages carry their own heading treatment */
.jury-card__name, .content .media-grid h2, .card--link h3 { border-top: 0; padding-top: 0; }
.jury-card__name { margin-top: 0; font-size: var(--step-2); }
.content .label-h { border-top: 0; padding-top: 0; }
