@font-face {
  font-family: Play;
  src: url('/assets/play-regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Play;
  src: url('/assets/play-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Museo;
  src: url('/assets/museo-light.ttf') format('truetype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Museo;
  src: url('/assets/museo-medium.ttf') format('truetype');
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: Museo;
  src: url('/assets/museo-bold.ttf') format('truetype');
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: 'Digital Counter';
  src: url('/assets/digital.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050609;
  --surface: #101016;
  --panel: #191b26;
  --border: #363b4d;
  --ink: #f7f7f7;
  --muted: #c7c9d3;
  --accent: #682bea;
  --accent-hover: #8b4df5;
  --link: #c6a8ff;
  --error: #ff9eae;
  --heading-font: Play, Museo, system-ui, sans-serif;
  --button-gradient: linear-gradient(94deg, #db00ff, #682bea 50%, #db00ff);
  font-family: Museo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .25em; }
:focus-visible { outline: 3px solid #aee0ff; outline-offset: 4px; }
h1, h2, h3 { margin: 0 0 24px; font-family: var(--heading-font); font-weight: 700; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); letter-spacing: 0; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); letter-spacing: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 16px; text-wrap: pretty; }
.container { width: min(1216px, calc(100% - 48px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; z-index: 3; left: 12px; top: 12px; background: var(--surface); padding: 12px; }
.button, button {
  appearance: none; display: inline-flex; min-height: 58px; align-items: center; justify-content: center;
  border: 0; border-radius: 0; padding: 10px 24px; text-align: center; text-decoration: none;
  font: 700 1.125rem/1.2 var(--heading-font); text-transform: uppercase;
  color: var(--ink); background: var(--accent) var(--button-gradient) 0 50% / 200% 100%;
  cursor: pointer; transition: background-position 350ms cubic-bezier(.22, 1, .36, 1),
    color 230ms cubic-bezier(.22, 1, .36, 1), scale 230ms cubic-bezier(.22, 1, .36, 1);
}
.button:hover, button:hover { background-position: 100% 50%; }
.button:active, button:active { scale: .96; }
.button.secondary { color: #04060a; background: #f7f7f7; }
.button.secondary:hover { color: #010bff; }
.actions, .downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.section { padding-block: clamp(48px, 7vw, 96px); }

.landing-nav { padding-block: 24px; }
.landing-nav .container, .flow-header .container, .flow-footer .container {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-strip {
  display: grid; grid-template-columns: minmax(0, 176fr) minmax(0, 116fr) minmax(0, 133fr) minmax(0, 145fr);
  align-items: center; gap: clamp(8px, 2vw, 28px); width: min(100%, 640px);
}
.brand-strip img { width: 100%; height: auto; }
.brand-strip .choose-project { width: 48%; }
.back-link { color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.hero {
  position: relative; isolation: isolate; text-align: center;
  background: url('/assets/legal-hero-art.webp') center 32px / min(100%, 1440px) auto no-repeat;
}
.hero-video {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  object-fit: cover; object-position: center; visibility: hidden; pointer-events: none;
}
.hero-video.is-playing { visibility: visible; }
.hero .container { position: relative; }
.participant-count { position: absolute; right: 0; top: 12px; display: grid; gap: 2px; text-align: right; }
.participant-count span { color: var(--muted); font-size: .875rem; }
.participant-count strong { font: 400 2.5rem/1.1 "Digital Counter", ui-monospace, monospace; }
.hero-body { display: grid; justify-items: center; padding-block: clamp(155px, 16vw, 230px) 56px; }
.hero h1 { width: min(50vw, 550px); margin-bottom: clamp(58px, 7.3vw, 105px); }
.hero h1 img { width: 100%; }
.hero-lead { width: min(100%, 800px); margin-bottom: 26px; font-size: 1.375rem; line-height: 1.26; }
.hero .actions { justify-content: center; gap: clamp(16px, 3vw, 40px); }
.hero .button { width: 378px; font-size: 1.375rem; }
.hero .button.secondary { width: 306px; }

.countdown { padding-block: 44px 64px; text-align: center; }
.countdown h2 { font-size: clamp(1.225rem, 2.6vw, 2rem); color: var(--muted); margin-bottom: 16px; }
.countdown > p { margin-top: 16px; margin-bottom: 0; color: var(--muted); }
.timer { display: flex; align-items: flex-start; justify-content: center; gap: clamp(4px, 1.6vw, 24px); font-variant-numeric: tabular-nums; }
.timer div { display: grid; justify-items: center; gap: 4px; }
.timer strong, .timer b { font: 400 clamp(2rem, 7vw, 6rem)/1 "Digital Counter", ui-monospace, monospace; }
.timer span { color: var(--muted); font-size: clamp(.8rem, 1.5vw, 1.2rem); }
.about { background: url('/assets/legal-rocket.webp') calc(50% + 340px) center / min(75vw, 1000px) auto no-repeat; }
.about-copy { max-width: 650px; }
.about-copy p { color: var(--muted); }
.about-copy p strong { color: var(--ink); }
.about-copy h3 { margin: 24px 0 12px; }
.space-card { position: relative; display: grid; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); overflow: hidden; border-radius: 16px; background: #13141b; }
.space-card > div { padding: clamp(24px, 5vw, 72px); }
.space-card > img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: center; }
.space-mark { width: min(180px, 100%); margin-bottom: 16px; }
.space-card .button { border-radius: 16px; }
.space-qr { display: block; width: 144px; margin-top: 20px; overflow: hidden; border-radius: 12px; }
.space-qr img { width: 100%; height: auto; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.news-card { border: 1px solid #282c38; border-radius: 14px; background: var(--surface); padding: 24px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.news-card time, .article-detail time { display: inline-block; padding: 3px 8px; border-radius: 50px; background: linear-gradient(92deg, #cc00ff, #010bfe); color: var(--ink); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.news-card h3 { margin-bottom: 12px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { text-decoration: underline; }
.news-card p { color: var(--muted); }
.detail-link { margin-top: auto; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
}
.carousel-track > * { scroll-snap-align: start; min-width: 0; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.carousel-controls button {
  min-width: 44px; min-height: 44px; padding: 0; border: 1px solid #c7c9d3;
  background: transparent; font-size: 1.75rem;
}
.carousel-controls button:hover:enabled { background: #f7f7f7; color: #682bea; }
.carousel-controls button:disabled { opacity: .45; cursor: default; }
.archive-link { display: inline-block; margin-top: 16px; }
.partner-panel { display: grid; gap: clamp(32px, 5vw, 48px); padding: clamp(16px, 5vw, 60px); border-radius: 16px; background: #0d0d10; }
.partner-panel h3 { font-size: 1.5rem; }
.partner-list { display: grid; gap: 16px; }
.partner-list article {
  display: grid; grid-template-columns: minmax(110px, 194px) minmax(0, 1fr); align-items: center;
  gap: clamp(16px, 3vw, 36px); min-height: 122px; padding: 20px clamp(16px, 2.5vw, 26px);
  border-radius: 16px; background: #1b1b21;
}
.partner-list img { width: auto; max-width: min(100%, 150px); max-height: 80px; justify-self: center; }
.partner-list p { color: var(--muted); margin: 0; line-height: 1.28; white-space: pre-line; overflow-wrap: anywhere; }
.partner-list strong { color: var(--ink); }
.partner-toggle {
  display: flex; width: fit-content; min-height: 44px; margin: 12px auto 0; padding: 8px 12px; gap: 6px;
  background: transparent; font: inherit; font-weight: 700; text-transform: none;
}
.partner-toggle::before {
  content: ''; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}
.partner-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.partner-toggle:hover { color: var(--link); }
.broadcast { text-align: center; }
.broadcast-city { color: var(--link); margin-bottom: 8px; text-transform: uppercase; }
.video-card { display: grid; gap: 8px; color: var(--ink); text-align: left; text-decoration: none; }
.video-card:hover { text-decoration: underline; }
.video-cover { position: relative; display: block; overflow: hidden; border-radius: 8px; }
.video-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.featured-video { display: block; }
.featured-video .video-cover img { aspect-ratio: 1216 / 548; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 76px; aspect-ratio: 1; border: 1px solid white; border-radius: 50%; color: white; background: #08090e80; font-size: 1.5rem; }
.video-card:not(.featured-video) .play { width: 44px; font-size: 1rem; }
.stream-title { margin: 32px 0 16px; text-align: left; text-transform: uppercase; }
#stream-track { grid-auto-columns: calc((100% - 48px) / 4); }
.contact-panel { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); padding: clamp(20px, 4vw, 48px); background: #191b26; }
.contact-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; }
.contact-panel p { color: var(--muted); }
.contact-wide { grid-column: 1 / -1; }
.contact-form .contact-terms { font-size: .8125rem; line-height: 1.35; margin: 0; align-self: center; }
.contact-form .notice { margin: 0; }
.participation-dialog {
  width: min(500px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 0; border: 0; border-radius: 8px;
  color: #303030; background: #fff; text-align: center; color-scheme: light;
}
.participation-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.participation-content { padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 32px); }
.participation-content h2 { margin: 0 0 30px; font: 400 1.25rem/1.2 var(--heading-font); }
.participation-content p { margin: 0 0 30px; font: 400 1rem/1.2 var(--heading-font); }
.participation-content button { min-width: min(192px, 100%); min-height: 58px; }
.landing-footer { background: var(--surface); border-top: 1px solid var(--border); padding-block: 40px; }
.landing-footer .container { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-logo { width: 160px; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.landing-footer p { color: var(--muted); margin: 0 0 4px; }
.landing-footer address { font-style: normal; }

.flow-header { padding-block: 16px; border-bottom: 1px solid #272a36; }
.flow-header img { width: 144px; }
.flow-main { display: grid; justify-items: center; width: min(100% - 48px, 960px); margin-inline: auto; padding-block: clamp(32px, 7vw, 80px); min-height: min(70vh, 750px); }
.flow-card { width: min(100%, 720px); align-self: start; padding: clamp(20px, 4vw, 48px); border: 1px solid #303445; background: var(--surface); border-radius: 16px; }
.registration .flow-card { width: 100%; }
.editorial .flow-card { width: 100%; }
.flow-card h1 { margin-bottom: 16px; font-size: clamp(1.875rem, 4vw, 3rem); }
.flow-card h2 { margin: 28px 0 12px; font-size: 1.25rem; }
.flow-card .lead { color: var(--muted); }
.flow-footer { padding-block: 22px; color: var(--muted); border-top: 1px solid #272a36; font-size: .875rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid > label, .form-field { min-width: 0; display: grid; gap: 6px; font-size: .875rem; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea {
  min-width: 0; width: 100%; min-height: 54px; padding: 8px 16px;
  border: 1px solid #c7c9d3; border-radius: 0; background: rgb(255 255 255 / 5%); color: var(--ink); font: inherit; font-size: 1.125rem; font-weight: 300;
}
.form-grid input:hover, .form-grid select:hover, .form-grid textarea:hover { border-color: #fff; }
.form-grid textarea { resize: vertical; }
.form-grid select option { background: var(--panel); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent-hover); width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; }
.privacy-link { display: block; width: fit-content; margin: 4px 0 20px 28px; font-size: .875rem; }
.notice, .answer-error { border-radius: 8px; border: 1px solid #54437c; background: #211b35; padding: 10px 14px; color: #e6dcff; }
.answer-error { border-color: #74354a; background: #321a25; color: var(--error); }
.start-rules { color: var(--muted); margin-bottom: 24px; }
.start-rules ul { padding-inline-start: 20px; }
.question progress { appearance: none; width: 100%; height: 8px; margin: 0 0 16px; background: var(--panel); accent-color: var(--accent-hover); }
.question progress::-webkit-progress-bar { background: var(--panel); }
.question progress::-webkit-progress-value { background: var(--accent-hover); }
.question-text { white-space: pre-wrap; font-size: 1.125rem; font-weight: 700; }
.option { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); cursor: pointer; }
.option:hover { border-color: #8188a3; }
.option:has(input:checked) { border-color: var(--accent-hover); background: #291b42; }
.question button { margin-top: 14px; }
.result-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.result-summary > div { display: grid; gap: 4px; padding: 16px; border: 1px solid #36384e; border-radius: 10px; background: var(--panel); }
.result-summary span { color: var(--muted); }
.result-summary strong { color: #e0ceff; font-size: 2rem; font-variant-numeric: tabular-nums; }
.result-summary strong.grade { font-size: clamp(1.15rem, 4vw, 1.7rem); }
.result-summary small { font-size: .875rem; }
.downloads { margin: 24px 0; }
.subnav { display: flex; gap: 16px; margin-bottom: 16px; }
.subnav a[aria-current] { color: var(--ink); }
.article-detail time { display: inline-block; }
.article-detail p { max-width: 70ch; }

@media (max-width: 740px) {
  .container, .flow-main { width: calc(100% - 32px); }
  .landing-nav .container { gap: 12px; }
  .brand-strip { width: min(100%, 320px); }
  .hero { background-image: url('/assets/legal-hero-mobile.webp'); background-position: center 72px; background-size: max(150%, 465px) auto; }
  .hero-body { padding-top: clamp(142px, 32vw, 225px); padding-bottom: 34px; }
  .hero h1 { width: min(75vw, 430px); margin-bottom: clamp(52px, 14vw, 112px); }
  .button, button { min-height: 48px; }
  .hero-lead { font-size: 1rem; line-height: 1.2; font-weight: 300; }
  .hero .actions { display: grid; grid-template-columns: minmax(0, 1fr); width: min(100%, 400px); gap: 20px; }
  .hero .button, .hero .button.secondary { width: 100%; font-size: 1.125rem; }
  .participant-count { left: 0; text-align: center; }
  .participant-count strong { font-size: 1.65rem; }
  .about { background-image: none; }
  .space-card { grid-template-columns: 1fr; }
  .space-card > img { height: auto; min-height: 0; aspect-ratio: 1.7; object-position: center top; }
  .news-grid { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: min(88%, 340px); }
  #stream-track { grid-auto-columns: calc((100% - 16px) / 2); }
  .contact-panel { grid-template-columns: 1fr; }
  .landing-footer .container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .form-grid { grid-template-columns: 1fr; }
  .landing-footer .container { grid-template-columns: 1fr; }
  .contact-form.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-form button, .contact-form .contact-terms { grid-column: 1 / -1; }
  .partner-list article { grid-template-columns: minmax(0, 1fr); }
  .partner-list img { justify-self: start; }
  .flow-footer .container { align-items: flex-start; gap: 12px; }
  .registration button, .downloads .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .button, button { transition: none; }
  .hero-video { display: none; }
}
