/* =========================================================================
   HBS 2026 — public registration design system
   Editorial black & white photography, HBS red, gold seal accents.
   Display: Bodoni Moda (echoes the StyleSpeak masthead)
   UI/body: Archivo (variable width — condensed bold for actions)
   ========================================================================= */

:root {
  --ink: #000;
  --text: #1f1f1f;
  --muted: #646a73;
  --faint: #9aa0a8;
  --paper: #fff;
  --mist: #eef0f3;
  --mist-2: #e3e6ea;
  --line: #d6dae0;
  --red: #ed2124;
  --red-deep: #b8141b;
  --red-wash: #fdecec;
  --gold: #c4963f;
  --gold-light: #e8cb83;
  --ok: #157a4a;
  --ok-wash: #e7f5ee;
  --warn: #9a6400;
  --warn-wash: #fff4dc;

  /* track accents (taken from the 2026 badge artwork) */
  --t-visitor: #c4963f;
  --t-competition: #6b2f68;
  --t-conference: #d9622b;
  --t-vip: #d92128;
  --accent: var(--red);          /* decor: rules, dots, borders, glows */
  --accent-ink: var(--red-deep); /* accent as text on white / mist (>= 4.5:1) */
  --accent-btn: var(--red);      /* filled buttons and step numbers */
  --on-accent: #fff;             /* text on --accent-btn (>= 4.5:1) */

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .05);
  --shadow-2: 0 18px 50px -18px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

/* gold and orange are too light for white text / small text, so each track also carries
   a text-safe ink and a button fill + label pair that pass WCAG AA */
body.track-visitor { --accent: var(--t-visitor); --accent-ink: #8a6420; --accent-btn: var(--t-visitor); --on-accent: #1d1505; }
body.track-competition { --accent: var(--t-competition); --accent-ink: var(--t-competition); --accent-btn: var(--t-competition); }
body.track-conference { --accent: var(--t-conference); --accent-ink: #a8441a; --accent-btn: #c4541f; }
body.track-vip { --accent: var(--t-vip); --accent-ink: var(--red-deep); --accent-btn: var(--t-vip); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; } /* height:auto — width/height attributes only reserve the aspect ratio */
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; } /* ink, not the light gold: >= 3:1 on white */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -.01em;
  line-height: 1.02;
  margin: 0;
}
.h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.h3 { font-size: 1.45rem; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.cond { font-stretch: 75%; font-weight: 800; letter-spacing: .01em; }

/* ---------- site header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { font-family: var(--f-ui); font-weight: 900; font-stretch: 80%; font-size: 30px; line-height: 1; color: var(--red); letter-spacing: -.02em; }
.brand-sub { font-size: 12px; line-height: 1.2; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.brand-sub strong { display: block; color: var(--text); font-weight: 600; }
.head-meta { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--muted); }
.head-meta b { color: var(--text); font-weight: 600; }
@media (max-width: 640px) { .head-meta .hide-sm { display: none; } .brand-sub { display: none; } }

/* ---------- banner (legacy artwork) ---------- */
.banner { position: relative; background: var(--ink); overflow: hidden; }
.banner picture, .banner img { width: 100%; height: auto; }
.banner .wipe { position: absolute; inset: 0; background: var(--red); transform-origin: right; pointer-events: none; }
.js .banner .wipe { animation: wipe .9s var(--ease) .1s both; }
.js .banner img { animation: settle 1.2s var(--ease) both; }
@keyframes wipe { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Phones: the portrait artwork is a full poster — show the face, logo and dates, not the whole sheet */
@media (max-width: 700px) {
  /* new artwork (2027+): supplied square (1080 x 1080) and shown whole; capped for very tall images */
  .banner img { height: auto; max-height: 72vh; object-fit: cover; object-position: 50% 0; }
  /* stock 2026 posters: stop just above the second half of the sheet (group photo /
     "Don't miss…" band) so no button or headline is sliced through */
  .banner:has(source[srcset*="bg_visitor_mob_2026"]) img { height: 86vw; }
  .banner:has(source[srcset*="bg_compitition_mob_2026"]) img { height: 75vw; }
  .banner:has(source[srcset*="bg_conference_mob_2026"]) img { height: 122vw; }
}
@keyframes settle { from { transform: scale(1.04); filter: grayscale(1) contrast(1.1); } to { transform: none; filter: none; } }

/* ---------- buttons ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border: 1.5px solid var(--b); border-radius: var(--r-sm);
  background: var(--b); color: #fff;
  font-weight: 800; font-stretch: 78%; font-size: 17px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background .18s, border-color .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px var(--b); }
.btn:active { transform: translateY(0); }
.btn-red { --b: var(--red); }
.btn-red:hover { background: var(--red-deep); border-color: var(--red-deep); }
.btn-accent { --b: var(--accent-btn); color: var(--on-accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent-btn) 86%, #000); border-color: color-mix(in srgb, var(--accent-btn) 86%, #000); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); box-shadow: none; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 19px; padding: 0 30px; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.is-loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- registration layout ---------- */
.reg { padding: clamp(28px, 5vw, 64px) 0 80px; background: linear-gradient(180deg, var(--mist) 0, var(--paper) 420px); }
.reg-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 980px) { .reg-grid { grid-template-columns: 1fr; } .reg-aside { order: -1; } }
.reg-intro { margin-bottom: 28px; }
.reg-intro .display { margin-bottom: 10px; }
.reg-intro .lede { margin: 0; }
.track-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink); margin-bottom: 14px; }
/* one headline scale for every registration form (visitor, VIP, competition, conference) */
.reg-intro .display.h1, .reg-intro .display.h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); }
.track-tag::before { content: ""; width: 22px; height: 3px; background: var(--accent); border-radius: 2px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 20px; }
.panel-title { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; }
.panel-title .step { font-family: var(--f-ui); font-size: 13px; font-weight: 700; color: var(--on-accent); background: var(--accent-btn); width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; transform: translateY(-3px); flex: none; }

/* ---------- form fields ---------- */
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .fields { grid-template-columns: 1fr; } }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--text); }
.field label .req { color: var(--red); margin-left: 2px; }
.hint, .field .hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-size: 16px; line-height: 1.3;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23646a73' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9bec6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); background: #fffafa; }
.field .error { font-size: 13px; color: var(--red-deep); display: none; }
.field.has-error .error { display: block; animation: nudge .3s var(--ease); }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.input-group { display: flex; }
.input-group .prefix { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--mist); font-weight: 600; color: var(--muted); }
.input-group .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* check / radio */
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

/* segmented choice */
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: 15px; transition: all .15s; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

/* selectable option cards (competitions / packages) */
.options { display: grid; gap: 12px; }
.opt { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); cursor: pointer; transition: border-color .15s, box-shadow .2s, transform .15s; }
.opt:hover { border-color: #b9bec6; }
.opt input { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.opt .opt-name { font-weight: 700; font-size: 16px; }
.opt .opt-meta { font-size: 13px; color: var(--muted); }
.opt .opt-price { font-weight: 800; font-stretch: 80%; font-size: 18px; white-space: nowrap; text-align: right; }
.opt .opt-price s { display: block; font-weight: 500; font-size: 13px; color: var(--faint); }
.opt:has(input:checked) { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent), var(--shadow-1); }
.opt.is-disabled { opacity: .5; cursor: not-allowed; }
.opt-group + .opt-group { margin-top: 26px; }
.opt-group h4 { margin: 0 0 12px; font-size: 15px; display: flex; justify-content: space-between; align-items: baseline; }
.opt-group h4 a { font-weight: 500; font-size: 13px; color: var(--muted); }

/* order summary */
.summary { border-top: 1px dashed var(--line); margin-top: 22px; padding-top: 18px; display: grid; gap: 8px; font-size: 15px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .row.total { font-size: 20px; font-weight: 800; font-stretch: 85%; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.summary .row.discount { color: var(--ok); }

/* photo uploader */
.photo-drop { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s, background .15s; }
.photo-drop:hover, .photo-drop.is-over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.photo-drop .thumb { width: 96px; height: 96px; border-radius: 8px; background: var(--mist) center/cover no-repeat; display: grid; place-items: center; color: var(--faint); }
.photo-drop input { display: none; }

/* ---------- live badge preview (the memorable moment) ---------- */
.reg-aside { position: sticky; top: 88px; }
.badge-card {
  position: relative; aspect-ratio: 1250 / 1667; border-radius: 14px; overflow: hidden;
  background: #111 center/cover no-repeat; box-shadow: var(--shadow-2);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.badge-card:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
/* badge type scales with the card (cq units), so the 110px phone thumbnail and the 400px
   thank-you card keep the same proportions as the printed badge */
.badge-card { container-type: inline-size; }
.badge-card .slot { position: absolute; left: 5.4%; right: 5.4%; top: 42.8%; height: 39.6%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 8% 14%; gap: 1cqw; color: #111; }
.badge-card .b-name { font-weight: 800; font-stretch: 80%; font-size: 6.6cqw; line-height: 1.05; text-transform: uppercase; min-height: 1em; max-width: 100%; word-break: break-word; }
.badge-card .b-org { font-size: 3.4cqw; line-height: 1.2; color: #444; min-height: 1em; }
.badge-card .b-code { font-weight: 700; font-size: 3.4cqw; letter-spacing: .14em; margin-top: 1.4cqw; }
.badge-card .b-qr { width: 21%; aspect-ratio: 1; margin-top: 1.4cqw; background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 0 0/20% 20%; opacity: .14; border-radius: 3px; }
.badge-card .b-name.is-empty, .badge-card .b-org.is-empty { color: #b5b8bd; }
.badge-card .b-name.pop { animation: pop .35s var(--ease); }
@keyframes pop { 0% { transform: scale(.96); opacity: .4; } 100% { transform: none; opacity: 1; } }
.aside-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: grid; gap: 10px; }
.aside-note div { display: flex; gap: 10px; }
.aside-note svg { flex: none; color: var(--accent); margin-top: 2px; }
@media (max-width: 980px) {
  .reg-aside { position: static; display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; }
  .badge-card { transform: none; }
  .aside-note { margin: 0; }
}
@media (max-width: 420px) { .reg-aside { grid-template-columns: 110px 1fr; } }

/* ---------- alerts / toasts ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-size: 15px; border: 1px solid transparent; }
.alert-error { background: var(--red-wash); color: var(--red-deep); border-color: #f6c3c4; }
.alert-ok { background: var(--ok-wash); color: var(--ok); border-color: #bfe3cf; }
.alert-warn { background: var(--warn-wash); color: var(--warn); border-color: #f1d9a3; }
.toast-stack { position: fixed; right: 16px; bottom: 16px; z-index: 100; display: grid; gap: 10px; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: 15px; display: flex; gap: 10px; align-items: flex-start; animation: toast-in .35s var(--ease) both; }
.toast.err { background: var(--red-deep); }
.toast.ok { background: #0f5132; }
.toast.out { animation: toast-out .25s ease both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(3px); }
.modal.open { display: grid; animation: fade .2s ease both; }
.modal-box { background: #fff; border-radius: var(--r-lg); width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 28px; box-shadow: var(--shadow-2); animation: rise .3s var(--ease) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- landing ---------- */
/* Sized by viewport HEIGHT as well as width so the three registration links are always on the
   first screen, from a 1366x768 laptop (about 600px of page) up to large monitors. */
.landing { min-height: calc(100vh - 65px); min-height: calc(100svh - 65px); display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); background: var(--paper); }
.landing-photo { position: relative; overflow: hidden; background: var(--mist); }
.landing-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.landing-photo .wipe { position: absolute; inset: 0; background: var(--red); transform-origin: top; }
.js .landing-photo .wipe { animation: wipe-v 1s var(--ease) .15s both; }
.js .landing-photo img { animation: settle 1.4s var(--ease) both; }
@keyframes wipe-v { from { transform: scaleY(1); } to { transform: scaleY(0); } }
.landing-body { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 3.4vh, 40px); padding: clamp(16px, 3.6vh, 56px) var(--gutter); width: 100%; max-width: 720px; }
.landing-head { display: grid; gap: clamp(6px, 1.3vh, 14px); }
.landing-kicker { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; }
.landing-kicker b { color: var(--text); font-weight: 600; margin-right: 6px; }
.seal { width: clamp(36px, 5.4vh, 50px); height: clamp(36px, 5.4vh, 50px); flex: none; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff3c4, var(--gold-light) 35%, var(--gold) 75%, #8a6420); color: #2b1d05; font-family: var(--f-display); font-weight: 800; font-size: clamp(13px, 1.9vh, 17px); line-height: 1; box-shadow: 0 6px 16px -6px rgba(140, 100, 30, .7), inset 0 0 0 3px rgba(255, 255, 255, .35); }
.seal sup { font-size: .55em; }
.landing h1 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 18px; }
.landing h1 .hbs { display: block; font-family: var(--f-ui); font-weight: 900; font-stretch: 75%; color: var(--red); font-size: clamp(3.2rem, min(8.5vw, 12vh), 8rem); line-height: .82; letter-spacing: -.02em; }
.landing h1 .hbs-sub { display: block; font-size: clamp(1.25rem, min(2.5vw, 4vh), 2.3rem); line-height: 1.1; }
.landing .when { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; font-size: clamp(14px, 2.1vh, 17px); color: var(--muted); }
.landing .when b { color: var(--text); font-weight: 700; font-stretch: 85%; }
.register-panel { display: grid; gap: clamp(8px, 1.6vh, 14px); }
.register-panel h2 { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding-top: clamp(10px, 2vh, 18px); border-top: 1px solid var(--ink); font-family: var(--f-ui); font-weight: 800; font-stretch: 85%; font-size: clamp(1.05rem, 2.5vh, 1.35rem); }
.register-panel h2 small { font-weight: 500; font-stretch: 100%; font-size: 14px; color: var(--muted); }
.routes { display: grid; gap: clamp(8px, 1.4vh, 12px); }
.route { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: center; padding: clamp(10px, 1.9vh, 18px) clamp(14px, 1.8vw, 22px); border: 1px solid var(--line); border-left: 4px solid var(--rc); border-radius: 12px; background: var(--paper); color: var(--text); text-decoration: none; overflow: hidden; isolation: isolate; transition: box-shadow .25s, transform .2s, border-color .2s; }
.route::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rc-fill, var(--rc, var(--red))); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.route:hover, .route:focus-visible { color: #fff; border-color: transparent; box-shadow: 0 16px 34px -20px rgba(0, 0, 0, .55); transform: translateY(-1px); }
.route:hover::before, .route:focus-visible::before { transform: scaleX(1); }
.route-name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, min(2.4vw, 4vh), 2rem); line-height: 1.08; }
.route-desc { grid-column: 1; font-size: clamp(13px, 1.9vh, 15px); color: var(--muted); transition: color .2s; }
.route:hover .route-desc, .route:focus-visible .route-desc { color: rgba(255, 255, 255, .9); }
.route-cta { grid-row: 1 / span 2; grid-column: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: var(--rc-fill, var(--rc)); color: #fff; font-weight: 800; font-stretch: 80%; font-size: 16px; letter-spacing: .02em; white-space: nowrap; transition: background .2s, color .2s, gap .25s var(--ease); }
.route:hover .route-cta, .route:focus-visible .route-cta { background: #fff; color: var(--rc-fill, var(--rc)); gap: 12px; }
.route.is-closed { cursor: default; border-left-color: var(--line); }
.route.is-closed::before { display: none; }
.route.is-closed:hover { color: var(--text); box-shadow: none; transform: none; border-color: var(--line); }
.route.is-closed .route-name { color: var(--faint); }
.route.is-closed .route-cta, .route.is-closed:hover .route-cta { background: var(--mist); color: var(--muted); }
/* white hover fills need deep shades so white type stays readable */
.route.visitor { --rc: var(--t-visitor); --rc-fill: #8a6420; }
.route.competition { --rc: var(--t-competition); }
.route.conference { --rc: var(--t-conference); --rc-fill: #c4541f; }
.route.vip { --rc: var(--t-vip); }
.js .landing-body > * { animation: rise .7s var(--ease) both; }
.js .landing-body > *:nth-child(2) { animation-delay: .25s; }
.js .routes .route { animation: rise .6s var(--ease) both; }
.js .routes .route:nth-child(1) { animation-delay: .35s; }
.js .routes .route:nth-child(2) { animation-delay: .43s; }
.js .routes .route:nth-child(3) { animation-delay: .51s; }
@media (max-width: 900px) {
  .landing { grid-template-columns: 1fr; min-height: 0; }
  .landing-photo { height: 24vh; min-height: 170px; max-height: 300px; }
  .landing-photo img { object-position: 50% 40%; }
  .landing-body { max-width: none; padding: 18px var(--gutter) 30px; gap: 16px; }
  .landing h1 .hbs { font-size: clamp(3rem, 15vw, 4.6rem); }
  .landing h1 .hbs-sub { font-size: clamp(1.25rem, 5.4vw, 1.7rem); }
  .landing .when { font-size: 14px; }
  .register-panel h2 small { flex-basis: 100%; }
}
@media (max-width: 460px) {
  .rn-suffix { display: none; }
  .route { gap: 2px 12px; padding: 12px 12px 12px 14px; }
  .route-name { font-size: 1.45rem; }
  .route-desc { font-size: 13px; }
  .route-cta { min-height: 38px; padding: 0 14px; font-size: 15px; }
}
/* ---------- thank you / result ---------- */
.result { padding: clamp(32px, 6vw, 72px) 0 90px; background: linear-gradient(180deg, var(--mist), var(--paper) 480px); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .result-grid { grid-template-columns: 1fr; } }
.result .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 22px; }
.js .result .tick { animation: pop .5s var(--ease) both; }
.result .tick.pending { background: var(--warn); }
.result .tick.fail { background: var(--red); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; font-size: 15px; margin: 24px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
/* one primary per view: a plain (black) button that follows the red one becomes secondary */
.actions .btn-red ~ .btn:not(.btn-red):not(.btn-ghost):not(.btn-accent) { background: transparent; color: var(--text); border-color: var(--text); }
.actions .btn-red ~ .btn:not(.btn-red):not(.btn-ghost):not(.btn-accent):hover { background: var(--ink); color: #fff; box-shadow: none; }
.badge-out { position: relative; }
.badge-out img { width: 100%; border-radius: 14px; box-shadow: var(--shadow-2); }
.js .badge-out img { animation: print 1.1s var(--ease) .2s both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.code-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 15px; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 26px 0; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { color: var(--red); }
.site-foot .managed { display: flex; align-items: center; gap: 10px; }
.site-foot .managed img { height: 26px; width: auto; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .badge-card { transform: none; }
}
@media print {
  .site-head, .site-foot, .actions, .no-print { display: none !important; }
  .result { background: none; padding: 0; }
}

/* option cards inside a .field must not inherit the bold label weight */
.field label.opt, .opt { font-weight: 400; }
.field label.opt .opt-name { font-weight: 700; }

/* ---------- compact page tops (all four forms, pay page and confirmations) ----------
   Sized by viewport height so the first form step / the confirmation is on the first
   screen of a 1366x768 laptop. `body` prefix outranks the page stylesheets that load later. */
body .reg { padding-top: clamp(14px, 2.8vh, 32px); }
body .reg .reg-intro { margin-bottom: clamp(12px, 2.2vh, 22px); }
body .reg .reg-intro .track-tag { margin-bottom: 4px; }
body .reg .reg-intro .display { font-size: clamp(1.85rem, min(3.3vw, 6.2vh), 2.9rem); line-height: 1.04; margin-bottom: 6px; }
body .reg .reg-intro .lede { font-size: 15px; line-height: 1.5; margin: 0 0 6px; max-width: 86ch; }
body .reg .reg-intro .prize { margin: 0 0 6px; font-size: 15px; }
body .reg .comp-facts, body .reg .cf-facts { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 4px 0 0; padding: 0; border: 0; max-width: none; font-size: 14px; }
body .reg .comp-facts li, body .reg .cf-facts li { display: block; }
body .reg .comp-facts span, body .reg .cf-facts span { display: inline; margin-right: 6px; font-size: 13px; }
body .reg .cf-facts small { display: inline; margin-left: 6px; }
body .reg .reg-aside { top: 76px; }

body .result { padding-top: clamp(14px, 2.8vh, 32px); }
body .result .result-main { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-content: start; }
body .result .result-main > * { grid-column: 1 / -1; }
body .result .result-main > .tick { grid-column: 1; width: 40px; height: 40px; margin: 0 0 8px; }
body .result .result-main > .tick svg { width: 20px; height: 20px; }
body .result .result-main > .tick + .track-tag { grid-column: 2; align-self: center; margin: 0 0 8px; }
body .result h1.display { font-size: clamp(1.9rem, min(3.4vw, 6.4vh), 3rem); line-height: 1.04; margin: 0 0 8px; }
body .result .lede { margin-bottom: 14px; }
body .result .kv { margin: 14px 0 18px; padding: 14px 0; gap: 8px 18px; }
body .result .note { margin-top: 16px; }
body .result .result-grid { gap: clamp(24px, 4vw, 56px); }
@media (max-width: 900px) {
  body .reg .comp-facts, body .reg .cf-facts { gap: 4px 18px; }
}
/* live badge preview (visitor / VIP): never taller than the screen beside the form */
@media (min-width: 981px) {
  body .reg .reg-aside:not(.cf-preview) .badge-card { width: min(100%, calc((100vh - 200px) * .75)); margin-inline: auto; }
}
