:root {
  --navy-950: #060a22;
  --navy-900: #0a1036;
  --navy-800: #0f1850;
  --blue-700: #1a2a8f;
  --blue-500: #3b56d6;
  --blue-300: #8ea6ff;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.78);
  --ink-faint: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.06);
  --gold-100: #efdfb4;
  --gold-300: #d2b272;
  --gold-500: #b08a48;
  --gold-700: #8f6f36;
  --error: #ffb4a8;
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
svg { fill: currentColor; }

.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-100); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* Pill button, as on the poster */
.pill {
  display: inline-block;
  padding: 16px 38px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(70, 45, 5, 0.55);
  background: linear-gradient(180deg, var(--gold-300) 0%, var(--gold-500) 58%, var(--gold-700) 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.pill:hover { transform: translateY(-2px); filter: brightness(1.07); }
.pill[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.pill-small { padding: 9px 22px; font-size: 0.95rem; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.pill-hero { font-size: clamp(1.1rem, 2.4vw, 1.5rem); padding: clamp(16px, 2vw, 22px) clamp(34px, 5vw, 60px); }

/* Header */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(8, 13, 46, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}
/* Over the hero the header is clear, so the top-left reads as it does on the poster */
.at-top .top {
  padding: 22px clamp(18px, 5vw, 64px) 10px;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.brand { display: inline-flex; text-decoration: none; }

/* The mark: five bars in the outline of a lightbulb, with the middle bar lit */
.mark { position: relative; display: inline-block; flex: none; height: 2em; aspect-ratio: 126 / 251; }
.mark svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mark-sides { opacity: var(--mark-sides, 0.6); }
.mark-lit {
  filter: drop-shadow(0 0 0.07em rgba(255, 244, 214, 0.95)) drop-shadow(0 0 0.24em rgba(255, 224, 150, 0.75));
  transition: filter 0.3s ease;
}
a:hover > .mark .mark-lit, a:hover .lockup .mark-lit {
  filter: drop-shadow(0 0 0.09em rgba(255, 248, 226, 1)) drop-shadow(0 0 0.34em rgba(255, 224, 150, 0.95));
}

/* Mark, divider, name: the lockup from the top-left of the poster */
.lockup {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 1.02rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1;
  color: #fff; text-decoration: none; white-space: nowrap;
  transition: font-size 0.25s ease;
}
.lockup-name { display: inline-flex; align-items: center; min-height: 1.8em; padding-left: 0.4em; border-left: 0.11em solid #fff; }
.at-top .brand .lockup { font-size: clamp(0.7rem, 3.3vw, 1.2rem); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 0.95rem; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: #fff; }
.top .pill-small { margin-left: 4px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 96px clamp(18px, 5vw, 64px) 56px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, #0a1140 0%, #16248a 34%, #101b62 62%, #070c2b 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.glow {
  position: absolute; left: 50%; top: 16%;
  width: min(1100px, 150vw); aspect-ratio: 1;
  transform: translate(-50%, -30%);
  background: radial-gradient(closest-side, rgba(150, 175, 255, 0.72), rgba(88, 118, 240, 0.4) 42%, rgba(40, 60, 190, 0) 72%);
}
.fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 55% at 50% 40%, rgba(96, 124, 245, 0.42), rgba(40, 60, 190, 0) 70%),
    linear-gradient(180deg, rgba(12, 20, 78, 0.9) 0%, rgba(22, 36, 138, 0.5) 30%, rgba(16, 26, 100, 0.16) 60%, rgba(6, 10, 34, 0.82) 100%);
}

.hero-top { display: flex; justify-content: flex-end; align-items: flex-start; gap: 24px; }

.dates { text-align: right; min-width: 150px; }
.dates dt { font-weight: 400; }
.dates-main dt { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.dates-main dd { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.dates-day { font-size: clamp(3.4rem, 8vw, 5.4rem); font-weight: 800; letter-spacing: -0.04em; }
.dates-month { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 400; margin-top: 4px; }
.dates-row { display: flex; justify-content: flex-end; gap: 12px; font-size: 1rem; }
.dates-row dt { text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.dates-row dd { font-weight: 700; white-space: nowrap; }
.dates dt { white-space: nowrap; }

.hero-centre { margin: auto 0; padding-top: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-100); }
.wordmark { display: flex; flex-direction: column; align-items: center; font-weight: 800; }
.wordmark-big {
  display: flex; align-items: baseline; justify-content: center;
  font-size: clamp(8rem, 30vw, 18rem);
  line-height: 0.86;
  letter-spacing: 0;
  padding-top: 0.12em;
  filter: drop-shadow(0 18px 40px rgba(5, 10, 50, 0.45));
}
/* The letters sit in front of the mark's outer bars, as on the poster */
.wordmark-big > span:not(.mark) { position: relative; z-index: 1; }
.wordmark-i {
  --mark-sides: 0.37;
  height: 1.014em;
  margin: 0 -0.125em 0 -0.118em;
  transform: translateY(0.172em);
}
.wordmark-i .mark-lit {
  filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0.9)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0.7));
  animation: switch-on 1.6s ease-out 0.25s both, flicker 5s linear 1.9s infinite;
}
/* After it comes on, the bar keeps flickering: two short stutters and a brief drop-out every few seconds */
@keyframes flicker {
  0%, 7%, 9.5%, 12.5%, 38%, 41%, 60%, 62.5%, 65.5%, 100% { opacity: 1; filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0.9)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0.7)); }
  8%, 11%, 61%, 64% { opacity: 0.5; filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0.2)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0.12)); }
  39.5% { opacity: 0.37; filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0)); }
  13.5%, 66.5% { opacity: 1; filter: drop-shadow(0 0 0.045em rgba(255, 246, 222, 1)) drop-shadow(0 0 0.2em rgba(255, 212, 128, 0.95)); }
}
/* The middle bar comes on like a bulb: dark, a flicker, then lit */
@keyframes switch-on {
  0%, 38% { opacity: 0.37; filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0)); }
  44% { opacity: 1; filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0.9)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0.7)); }
  50% { opacity: 0.55; filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0.25)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0.15)); }
  58% { opacity: 1; filter: drop-shadow(0 0 0.045em rgba(255, 246, 222, 1)) drop-shadow(0 0 0.2em rgba(255, 212, 128, 0.95)); }
  100% { opacity: 1; filter: drop-shadow(0 0 0.035em rgba(255, 246, 222, 0.9)) drop-shadow(0 0 0.11em rgba(255, 212, 128, 0.7)); }
}
.wordmark-sub { font-size: clamp(2.3rem, 8.2vw, 5.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-top: 0.42em; }
/* A red square after the title, as tall as the lower-case letters. It disappears and comes back. */
.tease { display: inline-block; width: 0.54em; height: 0.54em; margin: 0 -0.64em 0 0.1em; background: #e0112b; animation: tease 3.2s ease-in-out infinite; }
@keyframes tease { 0%, 52% { opacity: 1; } 60%, 86% { opacity: 0; } 94%, 100% { opacity: 1; } }
.hero-line { max-width: 34ch; margin-top: 22px; font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-soft); }
.pill-hero { margin-top: 30px; }
.hero-foot { margin-top: 30px; font-size: 0.98rem; color: var(--ink-soft); }

/* Numbers strip */
.strip { background: var(--navy-900); border-block: 1px solid var(--line); }
.stats { width: min(var(--wrap), 100% - 40px); margin-inline: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 34px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stats span { color: var(--ink-soft); font-size: 0.98rem; }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; background: var(--navy-950); }
.section-alt { background: linear-gradient(180deg, var(--navy-900), #0c1445); }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 20ch; text-wrap: balance; }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.prose p + p { margin-top: 16px; }
.prose, .lede { color: var(--ink-soft); font-size: 1.08rem; }
.lede { margin-top: 18px; max-width: 46ch; }
.text-link { font-weight: 700; color: var(--gold-100); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link::after { content: " \2192"; }
.note { margin-top: 28px; color: var(--ink-faint); font-size: 0.95rem; }
.small { margin-top: 14px; color: var(--ink-faint); font-size: 0.9rem; }

.facts { margin-top: 28px; display: grid; gap: 14px; }
.facts li { padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--ink-soft); }
.facts strong { display: block; color: #fff; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }

/* Timeline */
.timeline { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.timeline li { position: relative; padding: 30px 22px 0 0; border-top: 2px solid rgba(255, 255, 255, 0.22); }
.timeline li::before { content: ""; position: absolute; top: -8px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 0 5px rgba(210, 178, 114, 0.2); }
.when { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 8px; }
.timeline h3 { margin-bottom: 8px; }
.timeline p:last-child { color: var(--ink-soft); font-size: 0.98rem; }

/* Workshops */
.workshops { border-top: 1px solid var(--line); }
.workshops li { display: flex; align-items: baseline; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.15rem, 2.2vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; }
.workshops span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold-300); }

/* Judging */
.criteria { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.criteria li { padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.criteria strong { display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--gold-100); margin-bottom: 18px; }
.criteria p { margin-top: 8px; color: var(--ink-soft); font-size: 0.98rem; }

/* Apply band */
.apply { background: radial-gradient(120% 160% at 50% 0%, #2a43c4 0%, #16248a 45%, #0a1140 100%); }
.apply-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.apply-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.apply-cta p { color: var(--ink-soft); font-size: 0.98rem; max-width: 34ch; }

/* Partners */
.partners { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.partners li { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 12px 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 16px; background: var(--panel); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; text-align: center; }
.partners .has-logo { background: #fff; }
.partners .has-logo-dark { background: #080d2c; }
.partners img { position: absolute; inset: 14% 10%; width: 80%; height: 72%; object-fit: contain; }
.partners .has-logo-dark img { inset: 20% 12%; width: 76%; height: 60%; }
.partners .fills img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Sponsors and headline partners: large lit tiles, set apart from the societies wall */
.headline-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.headline-tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 26px;
  min-height: 250px; padding: 26px 28px 28px;
  border: 1px solid rgba(210, 178, 114, 0.75);
  background: linear-gradient(160deg, rgba(42, 67, 196, 0.5), rgba(5, 9, 34, 0.92) 64%);
  box-shadow: 0 0 46px rgba(210, 178, 114, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.headline-tile:hover { transform: translateY(-3px); box-shadow: 0 0 64px rgba(210, 178, 114, 0.32); }
.headline-tile::before, .headline-tile::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--gold-100); }
.headline-tile::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.headline-tile::after { right: -2px; bottom: -2px; border-left: 0; border-top: 0; }
.headline-tag { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-300); }
.headline-logo { display: block; width: 100%; height: 92px; object-fit: contain; object-position: left center; }
.headline-name { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-shadow: 0 0 22px rgba(142, 166, 255, 0.6); }
.headline-note { color: var(--ink-soft); font-size: 0.95rem; }
/* The open sponsor slot runs the full width under the named partners */
.headline-open { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 32px; min-height: 0; padding-block: 24px; border-style: dashed; background: rgba(5, 9, 34, 0.55); box-shadow: none; }
.headline-open .headline-name { font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--gold-100); text-shadow: none; }

/* Cards */
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards li { display: flex; flex-direction: column; padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.cards p { margin: 10px 0 22px; color: var(--ink-soft); }
.cards a { margin-top: auto; font-weight: 700; color: var(--gold-100); text-decoration: none; }
.cards a:hover { text-decoration: underline; }
.cards a::after { content: " →"; }

/* Contact form */
.form-card { padding: clamp(22px, 3.4vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, 0.07); }
.field { margin-bottom: 18px; }
.field label, .field .legend { display: block; margin-bottom: 7px; font-size: 0.95rem; font-weight: 600; }
.req { color: var(--gold-100); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field input[type="number"], .field input[type="date"], .field input[type="time"], .field input[type="datetime-local"],
.field input[type="password"], .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  color: #fff;
  background: rgba(6, 10, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { color: #0a1036; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-300); outline-offset: 1px; border-color: transparent; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .choice { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 400; }
.field .choice input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--gold-300); }
.field .help { margin-top: 6px; color: var(--ink-faint); font-size: 0.9rem; }
.field .err, .form-error { margin-top: 6px; color: var(--error); font-size: 0.92rem; font-weight: 500; }
.form-error { margin-bottom: 14px; }
.form-status { color: var(--ink-soft); }
.form-done h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-done p { color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Footer */
.foot { padding: 44px 0 56px; background: var(--navy-950); border-top: 1px solid var(--line); }
.foot-inner { display: grid; gap: 10px; color: var(--ink-soft); }
.foot .lockup { justify-self: start; }

@media (min-width: 900px) {
  .hero-top { position: absolute; inset: 104px clamp(18px, 5vw, 64px) auto; }
  .hero-centre { padding-top: 0; }
}
@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .timeline li { padding: 0 0 30px 34px; border-top: 0; border-left: 2px solid rgba(255, 255, 255, 0.22); }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 2px; left: -8px; }
  .criteria { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .top .pill-small { margin-left: auto; }
  .two, .apply-inner { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li { padding: 26px 16px; }
  .stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .top { gap: 12px; }
  .hero { padding-top: 104px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .criteria { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .partners li { padding: 8px 10px; font-size: 0.85rem; }
  .headline-tile { min-height: 190px; padding: 22px 22px 24px; }
  .dates { min-width: 0; }
  .dates-main dt { font-size: 0.64rem; letter-spacing: 0.06em; }
  .dates-row { font-size: 0.85rem; gap: 8px; }
  .lockup { font-size: clamp(0.7rem, 3.3vw, 0.9rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .top, .lockup, .mark-lit, .headline-tile { transition: none; }
  .wordmark-i .mark-lit, .tease { animation: none; }
}