:root {
  --navy: #071326;
  --navy-deep: #020817;
  --navy-soft: #0d1b34;
  --purple: #291c47;
  --purple-bright: #604187;
  --ivory: #f6f0e5;
  --ivory-deep: #e9decc;
  --gold: #cfa65d;
  --gold-light: #edd397;
  --brand: #a34a00;
  --text: #f7f1e7;
  --muted: #b3bdcb;
  --muted-dark: #7f8b9e;
  --line: rgba(207, 166, 93, 0.3);
  --cool-line: rgba(190, 205, 225, 0.15);
  --serif: "Noto Serif TC", "Source Han Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  --shell: min(1240px, calc(100vw - 64px));
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }
body {
  margin: 0;
  color: var(--text);
  background: var(--navy-deep);
  font: 16px/1.75 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
::selection { background: rgba(207, 166, 93, 0.42); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 400; left: 16px; top: -80px; padding: 10px 14px; background: var(--ivory); color: var(--navy); transition: top 180ms; }
.skip-link:focus { top: 12px; }
.shell { width: var(--shell); margin-inline: auto; }
.section-label { margin: 0 0 12px; color: var(--gold); font: 700 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 245px 1fr auto;
  align-items: center;
  gap: 34px;
  padding: 0 max(28px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid rgba(207, 166, 93, 0.18);
  transition: background 220ms, height 220ms, border-color 220ms;
}
.site-header.scrolled { height: 70px; background: rgba(2, 8, 23, 0.95); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { width: 245px; height: 76px; display: flex; align-items: center; overflow: visible; }
.brand img { width: 238px; height: auto; object-fit: contain; filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.4)); }
.site-nav { display: flex; justify-content: center; gap: clamp(18px, 2.2vw, 36px); }
.site-nav a { position: relative; padding: 8px 0; color: #d4d8e0; font-size: 13px; letter-spacing: 0.08em; transition: color 180ms; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: var(--gold-light); transition: left 180ms, right 180ms; }
.site-nav a:hover { color: var(--gold-light); }
.site-nav a:hover::after { left: 0; right: 0; }
.header-cta { min-width: 112px; padding: 11px 15px; border: 1px solid var(--gold); background: rgba(51, 31, 84, 0.78); color: var(--text); font-size: 12px; letter-spacing: 0.12em; cursor: pointer; transition: background 180ms, color 180ms; }
.header-cta:hover { background: var(--gold-light); color: var(--navy); }
.prototype-flag { position: absolute; right: max(28px, calc((100vw - 1420px) / 2)); bottom: -23px; padding: 3px 8px; background: var(--gold); color: var(--navy); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: max(780px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep) url("assets/isipc-stage-v2.webp") center/cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 6, 17, 0.98) 0%, rgba(2, 8, 23, 0.82) 43%, rgba(2, 8, 23, 0.16) 76%), linear-gradient(0deg, rgba(2, 8, 23, 0.72), transparent 45%); }
.hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 44px) 0 70px; }
.hero-year { margin: 0 0 18px; color: var(--gold-light); font: 700 11px/1.4 var(--sans); letter-spacing: 0.23em; }
.hero h1 { max-width: 820px; margin: 0; color: var(--ivory); font: 500 clamp(46px, 5.4vw, 78px)/1.22 var(--serif); letter-spacing: 0.035em; text-shadow: 0 4px 26px rgba(0, 0, 0, 0.72); }
.hero h1 em, .promo h2 em, .adjudicators h2 em, .venues h2 em { color: var(--gold-light); font-style: normal; }
.hero-lead { margin: 24px 0 31px; color: #d5dce6; font: 18px/1.7 var(--serif); letter-spacing: 0.07em; text-shadow: 0 2px 15px #000; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { min-width: 172px; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--gold); background: transparent; color: var(--text); font-size: 13px; letter-spacing: 0.1em; cursor: pointer; transition: transform 180ms, background 180ms, color 180ms, border-color 180ms; }
.button:hover { transform: translateY(-2px); }
.button-gold { background: linear-gradient(135deg, #f1d699, #c69642); color: #10172a; border-color: #e8c87f; font-weight: 700; }
.button-gold:hover { background: var(--ivory); border-color: var(--ivory); }
.button-outline:hover { background: var(--gold-light); color: var(--navy); }
.button-purple { background: linear-gradient(135deg, #503178, #261841); border-color: #a981ce; }
.button-purple:hover { background: var(--gold-light); color: var(--navy); border-color: var(--gold-light); }
.deadline-grid { width: min(740px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 38px; border-block: 1px solid var(--line); background: rgba(2, 8, 23, 0.55); backdrop-filter: blur(5px); }
.deadline-grid > div { min-height: 100px; padding: 18px 20px; }
.deadline-grid > div + div { border-left: 1px solid var(--line); }
.deadline-grid span { display: block; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.deadline-grid strong { display: block; margin: 5px 0 3px; color: var(--ivory); font: 500 26px/1 var(--serif); letter-spacing: 0.08em; }
.deadline-grid small { color: var(--gold-light); font-size: 10px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; letter-spacing: 0.14em; transform: translateX(-50%); }
.scroll-cue svg { width: 19px; animation: bob 1.8s ease-in-out infinite; }

.event-strip { padding: 76px 0; border-block: 1px solid var(--line); background: linear-gradient(120deg, #0a1730, #111638 58%, #071229); }
.event-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; align-items: stretch; }
.event-intro { padding-right: 54px; }
.event-intro h2 { margin: 0 0 10px; font: 500 36px/1.38 var(--serif); letter-spacing: 0.05em; }
.event-intro p:last-child { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; }
.event-date { display: flex; align-items: center; gap: 22px; padding-left: 38px; border-left: 1px solid var(--line); }
.date-number { color: var(--gold-light); font: 500 clamp(42px, 4.2vw, 62px)/1 var(--serif); white-space: nowrap; }
.event-date > div > span { display: block; color: var(--gold); font: 10px/1.4 var(--sans); letter-spacing: 0.18em; }
.event-date strong { display: block; margin: 3px 0; font: 500 22px/1.4 var(--serif); letter-spacing: 0.08em; }
.event-date p { margin: 0; color: var(--muted); font-size: 12px; }

.promo { padding: 118px 0 128px; background: radial-gradient(circle at 82% 10%, rgba(96, 65, 135, 0.25), transparent 29%), linear-gradient(145deg, #020817, #08162c 55%, #100d27); }
.promo-heading { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 86px; align-items: end; margin-bottom: 48px; }
.promo-heading h2 { margin: 0; font: 500 clamp(42px, 4.3vw, 58px)/1.25 var(--serif); letter-spacing: 0.045em; }
.promo-heading > p { max-width: 500px; margin: 0 0 8px; color: var(--muted); }
.promo-layout { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 18px; align-items: stretch; }
.promo-video-card { min-width: 0; display: grid; grid-template-columns: minmax(330px, 0.76fr) minmax(220px, 0.48fr); min-height: 620px; border: 1px solid var(--line); background: rgba(7, 19, 38, 0.88); overflow: hidden; }
.promo-video-shell { min-width: 0; height: 620px; display: grid; place-items: center; background: #000; }
.promo-video-shell video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.promo-video-copy { display: flex; flex-direction: column; justify-content: center; padding: 42px 34px; }
.promo-video-copy > span { color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.promo-video-copy h3 { margin: 12px 0 14px; color: var(--ivory); font: 500 24px/1.35 var(--serif); word-break: keep-all; }
.promo-video-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.promo-posters { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 18px; }
.promo-poster { min-width: 0; display: grid; grid-template-columns: 205px minmax(0, 1fr); min-height: 301px; margin: 0; padding: 0; border: 1px solid var(--cool-line); background: #0a1730; color: var(--text); text-align: left; overflow: hidden; cursor: zoom-in; transition: border-color 180ms, transform 180ms; }
.promo-poster:hover { border-color: var(--gold); transform: translateY(-3px); }
.promo-poster > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 420ms; }
.promo-poster:hover > img { transform: scale(1.025); }
.promo-poster > span { display: flex; flex-direction: column; justify-content: center; padding: 24px 20px; }
.promo-poster small { color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 0.13em; }
.promo-poster strong { margin: 7px 0 10px; font: 500 20px/1.4 var(--serif); }
.promo-poster em { color: var(--muted); font-size: 10px; font-style: normal; letter-spacing: 0.08em; }

.registration { padding: 126px 0 138px; background: radial-gradient(circle at 84% 10%, rgba(91, 57, 142, 0.22), transparent 28%), radial-gradient(circle at 7% 48%, rgba(207, 166, 93, 0.05), transparent 20%), #061125; }
.section-heading h2, .trust-heading h2, .gallery-heading h2 { margin: 0; font: 500 clamp(42px, 5vw, 66px)/1.25 var(--serif); letter-spacing: 0.045em; }
.section-heading > p:last-child { color: var(--muted); }
.centered { max-width: 820px; margin-inline: auto; text-align: center; }
.format-tabs { position: relative; z-index: 2; width: min(700px, 100%); display: grid; grid-template-columns: 1fr 1fr; margin: 56px auto -28px; border: 1px solid var(--gold); background: var(--navy); }
.format-tabs button { min-height: 64px; border: 0; background: transparent; color: var(--muted); font: 500 18px/1 var(--serif); letter-spacing: 0.09em; cursor: pointer; }
.format-tabs button[aria-selected="true"] { background: linear-gradient(135deg, #4b3079, #25153e); color: var(--ivory); box-shadow: inset 0 -3px 0 var(--gold-light); }
.format-panel { min-height: 286px; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; padding: 78px 72px 48px; border: 1px solid var(--gold); border-radius: 30px; background: var(--ivory); color: var(--navy); box-shadow: 0 25px 90px rgba(0, 0, 0, 0.28); }
.format-type { margin: 0; color: #8c682e; font: 700 11px/1.3 var(--serif); letter-spacing: 0.2em; }
.format-copy h3 { margin: 10px 0 12px; font: 500 30px/1.45 var(--serif); }
.format-copy > p:last-of-type { margin: 0; color: #596273; font-size: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; margin-top: 22px; padding: 0 0 7px; border: 0; border-bottom: 1px solid var(--gold); background: transparent; color: var(--gold-light); font-size: 13px; letter-spacing: 0.1em; cursor: pointer; }
.text-link.dark { color: #76531f; }
.text-link svg { width: 20px; transition: transform 180ms; }
.text-link:hover svg { transform: translateX(5px); }
.venue-list { border-left: 1px solid rgba(20, 31, 54, 0.18); }
.venue-list div { padding: 20px 0 20px 38px; }
.venue-list div + div { border-top: 1px solid rgba(20, 31, 54, 0.15); }
.venue-list span { display: block; color: #8c682e; font-size: 12px; letter-spacing: 0.08em; }
.venue-list strong { display: block; margin-top: 5px; font: 500 20px/1.5 var(--serif); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 62px 0 78px; border-block: 1px solid var(--line); }
.steps > div { padding: 31px 34px; }
.steps > div + div { border-left: 1px solid var(--line); }
.steps span { display: block; color: var(--gold-light); font: italic 28px/1 var(--serif); }
.steps strong { display: block; margin: 9px 0 5px; font: 500 19px/1.5 var(--serif); letter-spacing: 0.07em; }
.steps p { margin: 0; color: var(--muted); font-size: 12px; }
.category-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 25px; }
.category-heading h3 { margin: 0; font: 500 32px/1.35 var(--serif); }
.category-heading > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.category-rail { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.category { min-height: 62px; padding: 0 9px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); font: 500 15px/1.2 var(--serif); cursor: pointer; transition: background 180ms, color 180ms; }
.category:last-child { border-right: 0; }
.category:hover, .category.active { background: rgba(207, 166, 93, 0.13); color: var(--gold-light); }
.category-detail { min-height: 196px; display: grid; grid-template-columns: 0.52fr 1.5fr minmax(170px, auto); gap: 38px; align-items: center; margin-top: 16px; padding: 30px 32px; border: 1px solid var(--cool-line); background: rgba(12, 26, 51, 0.75); }
.category-detail span { color: var(--gold); font: 700 10px/1.4 var(--sans); letter-spacing: 0.18em; }
.category-detail h4 { margin: 3px 0 0; font: 500 23px/1.35 var(--serif); }
.category-detail p { margin: 0; color: var(--muted); font-size: 13px; }
.category-copy ul { display: grid; gap: 7px; margin: 14px 0 0; padding: 0; list-style: none; }
.category-copy li { position: relative; padding-left: 17px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.category-copy li::before { content: ""; position: absolute; top: 0.68em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.category-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.category-price > * { flex-shrink: 0; }
.category-detail .category-fee { width: 100%; min-height: 30px; margin-top: 5px; color: var(--gold-light); font: 500 25px/30px var(--serif); letter-spacing: 0; white-space: nowrap; }
.category-price a { margin-top: 14px; color: var(--gold); font-size: 10px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.section-actions { display: flex; justify-content: center; gap: 14px; margin-top: 35px; }

.adjudicators { padding: 126px 0 140px; background: radial-gradient(circle at 17% 21%, rgba(56, 35, 93, 0.52), transparent 26%), #030b1a; }
.adjudicator-intro { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 80px; align-items: end; margin-bottom: 62px; }
.adjudicator-intro .section-heading h2 { font-size: clamp(40px, 4.6vw, 64px); }
.adjudicator-intro > div:last-child > p { margin: 0; color: var(--muted); }
.judge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.judge-card { position: relative; min-width: 0; padding: 0; border: 1px solid var(--cool-line); background: #09152a; color: var(--text); text-align: left; cursor: pointer; overflow: hidden; transition: transform 220ms, border-color 220ms, box-shadow 220ms; }
.judge-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35); }
.judge-card-image { position: relative; aspect-ratio: 4 / 4.7; overflow: hidden; background: #111b2e; }
.judge-card-image::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(3, 10, 25, 0.92)); }
.judge-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 450ms; }
.judge-card:hover img { transform: scale(1.035); }
.judge-card-copy { min-height: 118px; display: flex; flex-direction: column; padding: 18px 18px 20px; }
.judge-card small { color: var(--gold); font-size: 9px; letter-spacing: 0.12em; }
.judge-card h3 { margin: 6px 0 5px; font: 500 20px/1.35 var(--serif); letter-spacing: 0.03em; }
.judge-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.judge-card .chair-badge { position: absolute; z-index: 2; left: 12px; top: 12px; padding: 5px 8px; background: var(--gold-light); color: var(--navy); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }

.gallery { padding: 126px 0 140px; background: #071326; }
.gallery-heading { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 60px; align-items: end; margin-bottom: 54px; }
.gallery-heading h2 { font-size: clamp(40px, 4.35vw, 58px); letter-spacing: 0.025em; }
.gallery-heading > div:last-child > p { margin: 0; color: var(--muted); }
.heading-line { display: inline-block; white-space: nowrap; }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 245px; gap: 14px; }
.gallery-item { position: relative; grid-column: span 4; margin: 0; padding: 0; border: 0; background: #111a2c; color: #fff; overflow: hidden; cursor: zoom-in; text-align: left; }
.gallery-item.gallery-wide { grid-column: span 8; }
.gallery-item.gallery-tall { grid-row: span 2; }
.gallery-item::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(2, 8, 23, 0.9)); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms, filter 500ms; }
.gallery-item.gallery-focal-top img { object-position: center top; }
.gallery-item:hover img { transform: scale(1.035); filter: brightness(1.08); }
.gallery-item span { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 17px; color: #d7dde7; font-size: 11px; letter-spacing: 0.05em; }
.gallery-item strong { display: block; margin-bottom: 3px; color: var(--ivory); font: 500 19px/1.35 var(--serif); letter-spacing: 0.05em; }

.trust { padding: 118px 0 126px; background: linear-gradient(145deg, #24173c 0%, #0b142c 38%, #061125 100%); }
.trust-heading { display: grid; grid-template-columns: 0.28fr 0.72fr; align-items: end; gap: 60px; }
.trust-heading h2 { font-size: clamp(40px, 4.35vw, 58px); letter-spacing: 0.025em; }
.trust-heading .section-label { align-self: start; }
.trust-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border-block: 1px solid var(--line); }
.trust-facts > div { padding: 32px 28px; }
.trust-facts > div + div { border-left: 1px solid var(--line); }
.trust-facts strong { display: block; color: var(--gold-light); font: 500 24px/1.2 var(--serif); letter-spacing: 0.04em; }
.trust-facts span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; }

.venues { position: relative; min-height: 700px; display: grid; align-items: center; overflow: hidden; background: #020817; }
.venue-visual { position: absolute; inset: 0; background: url("assets/isipc-stage-v2.webp") 66% 54%/cover no-repeat; }
.venue-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 8, 23, 0.98) 0%, rgba(2, 8, 23, 0.88) 44%, rgba(2, 8, 23, 0.22) 100%), linear-gradient(0deg, rgba(2, 8, 23, 0.7), transparent); }
.venue-content { position: relative; z-index: 2; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: center; padding-block: 100px; }
.venues h2 { margin: 0 0 18px; font: 500 clamp(42px, 5vw, 66px)/1.33 var(--serif); letter-spacing: 0.04em; text-shadow: 0 4px 26px #000; }
.venue-content > div:first-child > p:last-child { color: var(--muted); }
.venue-cards { display: grid; gap: 14px; }
.venue-cards article { padding: 28px 30px; border: 1px solid var(--line); background: rgba(3, 11, 27, 0.78); backdrop-filter: blur(9px); }
.venue-cards span { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: 0.18em; }
.venue-cards h3 { margin: 7px 0 5px; font: 500 24px/1.4 var(--serif); }
.venue-cards p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.venue-cards a { color: var(--gold-light); font-size: 11px; letter-spacing: 0.08em; border-bottom: 1px solid var(--gold); }

.site-footer { padding: 68px 0; border-top: 1px solid var(--line); background: #020817; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.85fr 1fr; gap: 55px; }
.footer-brand img { width: 300px; margin-bottom: 18px; }
.footer-brand p { max-width: 330px; color: var(--muted-dark); font-size: 11px; }
.footer-grid > div:not(.footer-brand) > span { display: block; margin-bottom: 13px; color: var(--gold); font-size: 10px; letter-spacing: 0.15em; }
.footer-grid a, .footer-grid p { display: block; margin: 4px 0; color: var(--muted); font-size: 12px; }
.footer-grid a:hover { color: var(--gold-light); }
.footer-grid small { display: block; margin-top: 16px; color: #69758a; font-size: 9px; }

dialog { color: var(--navy); }
dialog::backdrop { background: rgba(0, 5, 16, 0.86); backdrop-filter: blur(7px); }
.registration-dialog { width: min(760px, calc(100vw - 32px)); padding: 58px; border: 1px solid var(--gold); background: #f2eadc; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.66); }
.dialog-close { position: absolute; z-index: 4; right: 18px; top: 18px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(6, 17, 37, 0.25); background: transparent; color: var(--navy); cursor: pointer; }
.dialog-close.light { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: rgba(2, 8, 23, 0.55); }
.dialog-close svg { width: 18px; }
.registration-dialog h2 { margin: 8px 0 8px; font: 500 40px/1.35 var(--serif); }
.registration-dialog > p:not(.section-label) { color: #596273; }
.dialog-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0 19px; }
.dialog-options a { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border: 1px solid #b58c4b; color: var(--navy); font: 500 21px/1.4 var(--serif); transition: background 180ms, color 180ms; }
.dialog-options a:hover { background: var(--navy); color: var(--ivory); }
.dialog-options span { display: block; margin-top: 6px; font: 11px/1.5 var(--sans); }
.dialog-pdf { display: inline-block; margin-bottom: 20px; color: #75531f; border-bottom: 1px solid #b58c4b; font-size: 12px; }
.registration-dialog small { display: block; color: #7a6b55; }

.judge-dialog { width: min(860px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 40px)); padding: 0; border: 1px solid var(--gold); background: var(--ivory); box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7); overflow: auto; }
.judge-dialog[open] { display: grid; grid-template-columns: 0.8fr 1.2fr; }
.judge-dialog > img { width: 100%; height: 100%; min-height: 580px; object-fit: contain; object-position: center top; background: #061125; }
.judge-dialog > div { padding: 64px 52px 48px; }
.judge-dialog h2 { margin: 4px 0 10px; font: 500 38px/1.35 var(--serif); }
.judge-dialog strong { color: #8a642a; font-size: 13px; }
.judge-dialog p:not(.section-label) { margin: 22px 0; color: #596273; font-size: 14px; }
.judge-dialog a, .judge-dialog-return { width: fit-content; padding: 0 0 4px; border: 0; border-bottom: 1px solid #b58c4b; background: transparent; color: #75531f; font: inherit; font-size: 12px; cursor: pointer; }
.judge-dialog-actions { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

.gallery-dialog { width: min(1000px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--gold); background: #020817; color: #fff; box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8); }
.gallery-dialog img { width: 100%; max-height: calc(100vh - 130px); object-fit: contain; background: #000; }
.gallery-dialog p { margin: 0; padding: 16px 22px; color: var(--muted); font-size: 12px; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

@media (max-width: 1120px) {
  :root { --shell: min(1020px, calc(100vw - 48px)); }
  .site-header { grid-template-columns: 205px 1fr auto; gap: 20px; }
  .brand { width: 205px; height: 68px; }
  .brand img { width: 200px; }
  .site-nav { gap: 20px; }
  .event-grid { grid-template-columns: 1fr 1fr; }
  .event-intro { grid-column: 1 / -1; padding: 0 0 38px; }
  .event-date:first-of-type { border-left: 0; padding-left: 0; }
  .promo-layout { grid-template-columns: 1fr; }
  .promo-video-card { grid-template-columns: minmax(330px, 0.72fr) minmax(250px, 0.48fr); min-height: 580px; }
  .promo-video-shell { height: 580px; }
  .promo-posters { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1fr; }
  .promo-poster { grid-template-columns: 190px minmax(0, 1fr); min-height: 275px; }
  .format-panel { padding-inline: 48px; }
  .category-rail { border-radius: 22px; grid-template-columns: repeat(4, 1fr); }
  .category { border-bottom: 1px solid var(--line); }
  .category:nth-child(4) { border-right: 0; }
  .category:nth-child(n + 5) { border-bottom: 0; }
  .judge-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-auto-rows: 220px; }
}

@media (max-width: 860px) {
  :root { --shell: min(740px, calc(100vw - 40px)); --header-h: 70px; }
  .site-header { grid-template-columns: 1fr auto; padding: 0 20px; background: rgba(2, 8, 23, 0.9); backdrop-filter: blur(12px); }
  .brand { width: 205px; height: 58px; }
  .header-cta, .prototype-flag { display: none; }
  .menu-toggle { position: relative; width: 44px; height: 44px; display: block; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { position: absolute; inset: 50% auto auto 50%; width: 19px; height: 1px; margin-left: -9.5px; background: currentColor; transition: transform 180ms; }
  .menu-toggle > span:nth-of-type(2) { transform: translateY(-4px); }
  .menu-toggle > span:nth-of-type(3) { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] > span:not(.sr-only) { display: none; }
  .menu-toggle[aria-expanded="true"]::after { content: "×"; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -54%); font: 400 25px/1 var(--sans); }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto; display: grid; gap: 0; padding: 8px 20px 20px; background: rgba(2, 8, 23, 0.98); border-bottom: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 180ms, visibility 180ms, transform 180ms; }
  .site-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--cool-line); }
  .site-nav a::after { display: none; }
  .hero { min-height: 840px; background-position: 61% center; }
  .hero::before { background: linear-gradient(90deg, rgba(2, 8, 23, 0.96), rgba(2, 8, 23, 0.56)), linear-gradient(0deg, rgba(2, 8, 23, 0.76), transparent); }
  .hero h1 { font-size: clamp(43px, 9vw, 64px); }
  .deadline-grid { grid-template-columns: 1fr 1fr; }
  .deadline-grid > div:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .promo, .registration, .adjudicators, .gallery, .trust { padding-block: 100px; }
  .promo-heading { grid-template-columns: 1fr; gap: 24px; }
  .promo-layout { gap: 14px; }
  .promo-video-card { grid-template-columns: minmax(280px, 0.68fr) minmax(220px, 0.5fr); min-height: 540px; }
  .promo-video-shell { height: 540px; }
  .promo-video-copy { padding: 32px 26px; }
  .promo-posters { gap: 14px; }
  .promo-poster { grid-template-columns: 150px minmax(0, 1fr); min-height: 235px; }
  .format-panel { grid-template-columns: 1fr; gap: 32px; }
  .venue-list { border-left: 0; border-top: 1px solid rgba(20, 31, 54, 0.18); }
  .venue-list div { padding-left: 0; }
  .steps { margin-bottom: 62px; }
  .category-heading { align-items: start; flex-direction: column; gap: 10px; }
  .category-heading > p { text-align: left; }
  .category-detail { grid-template-columns: 0.55fr 1.45fr; }
  .category-price { grid-column: 2; align-items: flex-start; text-align: left; }
  .adjudicator-intro, .gallery-heading { grid-template-columns: 1fr; gap: 26px; }
  .judge-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .gallery-item, .gallery-item.gallery-wide { grid-column: span 1; }
  .gallery-item.gallery-tall { grid-row: span 1; }
  .trust-heading { grid-template-columns: 1fr; gap: 10px; }
  .trust-facts { grid-template-columns: 1fr 1fr; }
  .trust-facts > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .trust-facts > div:nth-child(4) { border-top: 1px solid var(--line); }
  .venue-content { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .judge-dialog[open] { grid-template-columns: 0.85fr 1.15fr; }
  .judge-dialog > div { padding: 60px 36px 38px; }
}

@media (max-width: 590px) {
  :root { --shell: calc(100vw - 32px); }
  .brand { width: 190px; height: 56px; }
  .brand img { width: 188px; }
  .hero { min-height: 860px; background-position: 64% center; }
  .hero-content { padding-top: 106px; }
  .hero-year { max-width: 320px; font-size: 9px; }
  .hero h1 { max-width: 370px; font-size: 40px; }
  .hero-lead { max-width: 330px; font-size: 15px; }
  .button { min-width: 142px; min-height: 49px; padding-inline: 16px; font-size: 11px; }
  .deadline-grid { grid-template-columns: 1fr; margin-top: 30px; }
  .deadline-grid > div { min-height: 76px; padding: 13px 16px; }
  .deadline-grid > div + div, .deadline-grid > div:nth-child(3) { grid-column: auto; border-left: 0; border-top: 1px solid var(--line); }
  .deadline-grid strong { font-size: 21px; }
  .scroll-cue { display: none; }
  .event-grid { grid-template-columns: 1fr; }
  .event-date { padding: 25px 0; border-left: 0; border-top: 1px solid var(--line); }
  .event-intro h2 { font-size: 31px; }
  .section-heading h2, .promo-heading h2, .trust-heading h2, .gallery-heading h2 { font-size: 40px; }
  .heading-line { display: inline; white-space: normal; }
  .promo-heading { margin-bottom: 32px; }
  .promo-video-card { display: block; min-height: 0; }
  .promo-video-shell { height: 570px; }
  .promo-video-copy { padding: 28px 24px 32px; }
  .promo-video-copy h3 { font-size: 25px; }
  .promo-posters { grid-template-columns: 1fr; }
  .promo-poster { grid-template-columns: 168px minmax(0, 1fr); min-height: 238px; }
  .format-tabs { margin-top: 40px; }
  .format-tabs button { min-height: 58px; font-size: 15px; }
  .format-panel { padding: 70px 23px 36px; border-radius: 21px; }
  .format-copy h3 { font-size: 25px; }
  .steps { grid-template-columns: 1fr; }
  .steps > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .category-rail { grid-template-columns: 1fr 1fr; }
  .category, .category:nth-child(4), .category:nth-child(n + 5) { min-height: 54px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .category:nth-child(even) { border-right: 0; }
  .category:last-child { border-bottom: 0; }
  .category-detail { display: block; padding: 24px; }
  .category-detail p { margin: 12px 0 0; }
  .category-price { margin-top: 22px; align-items: flex-start; text-align: left; }
  .section-actions { flex-direction: column; }
  .section-actions .button { width: 100%; }
  .adjudicator-intro .section-heading h2 { font-size: 39px; }
  .judge-grid { gap: 10px; }
  .judge-card-copy { min-height: 127px; padding: 14px; }
  .judge-card h3 { font-size: 17px; }
  .judge-card p { font-size: 10px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
  .trust-facts { grid-template-columns: 1fr; }
  .trust-facts > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .venues { min-height: 780px; }
  .venues h2 { font-size: 40px; }
  .venue-cards article { padding: 24px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand img { width: 270px; }
  .registration-dialog { padding: 54px 23px 32px; }
  .registration-dialog h2 { font-size: 34px; }
  .dialog-options { grid-template-columns: 1fr; }
  .judge-dialog[open] { display: block; }
  .judge-dialog > img { height: 350px; min-height: 0; }
  .judge-dialog > div { padding: 40px 24px 34px; }
  .judge-dialog h2 { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
