@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-800-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b0a0c;
  --hero-base: #1b1018;
  --surface: #131115;
  --input: #0e0d10;
  --input-border: #706470;
  --border: #302930;
  --white: #fff4f7;
  --muted: #bfb1bb;
  --placeholder: #a597a2;
  --accent: #ff5595;
  --accent-hover: #ff78a9;
  --ink: #1a0712;
  --error: #ffa5be;
  --veil: rgb(11 10 12 / 80%);
  --body-font: "DM Sans", system-ui, sans-serif;
  --display-font: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --gutter: clamp(22px, 6.4vw, 100px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 0;
  background: var(--background);
  color: var(--white);
  font: 400 1rem/1.55 var(--body-font);
}

h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

::selection { color: var(--ink); background: var(--accent); }

.shell {
  width: min(100%, 1490px);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.site-header {
  position: relative;
  z-index: 1;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}

.header-inner, .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 800 1.22rem/.95 var(--display-font);
  letter-spacing: .07em;
}

.wordmark-accent { color: var(--accent); }

.mark {
  display: inline-block;
  position: relative;
  flex: 0 0 22px;
  height: 24px;
  transform: skew(-20deg);
}

.mark::before, .mark::after {
  content: "";
  position: absolute;
  inset-block: 0;
  background: var(--accent);
}

.mark::before { left: 4px; width: 8px; }
.mark::after { left: 15px; width: 3px; }

.header-link {
  border: 1px solid var(--border);
  border-radius: 999px;
  min-height: 44px;
  padding: 7px 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-link span[aria-hidden="true"] { color: var(--accent); }

.scroll-line {
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  background: var(--accent);
}

.hero {
  min-height: clamp(585px, 76svh, 750px);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-base);
}

.hero-art, .hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.hero-shade {
  background:
    linear-gradient(0deg, var(--background) 0%, rgb(11 10 12 / 0%) 35%),
    linear-gradient(90deg, rgb(11 10 12 / 84%), rgb(11 10 12 / 37%) 44%, rgb(11 10 12 / 0%) 77%);
}

.hero-inner {
  position: relative;
  padding-top: 70px;
  padding-bottom: 80px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .17em;
}

.eyebrow span[aria-hidden="true"] {
  width: 18px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  margin-top: 18px;
  font: 800 clamp(6rem, 11.4vw, 11rem)/.77 var(--display-font);
  letter-spacing: -.025em;
}

.hero h1:focus { outline: none; }

.hero h1 span, .hero h1 em {
  display: block;
  width: fit-content;
}

.hero h1 em {
  color: var(--accent);
  padding-right: .09em;
  margin-top: .075em;
}

.event-date {
  margin-top: 24px;
  color: var(--white);
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .05em;
}

.hero-copy {
  margin-top: 8px;
  color: var(--white);
  font-size: clamp(1.04rem, 1.65vw, 1.27rem);
  line-height: 1.45;
}

.event-lineup {
  margin-top: 11px;
  color: var(--white);
  font-size: .9375rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.2;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.button-main { color: var(--ink); background: var(--accent); }
.button-main span[aria-hidden="true"] { font-size: 1.15rem; }

.button-video {
  background: rgb(11 10 12 / 55%);
  border-color: rgb(255 244 247 / 36%);
  color: var(--white);
}

.play-icon {
  width: 0;
  height: 0;
  flex: none;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--accent);
}

.registration {
  scroll-margin-top: 20px;
  padding-block: clamp(45px, 6vw, 90px) clamp(58px, 8vw, 110px);
  outline: none;
}

.registration-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(35px, 9vw, 132px);
  align-items: start;
}

.registration-intro { padding-top: 12px; }

.registration h2 {
  margin: 9px 0 17px;
  font: 800 clamp(4.7rem, 10vw, 9rem)/.83 var(--display-font);
  letter-spacing: -.025em;
}

.registration h2 span[aria-hidden="true"] {
  display: inline-block;
  color: var(--accent);
}

.registration-intro > p:last-child {
  max-width: 35ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.19rem);
}

.form-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: clamp(19px, 3vw, 39px);
}

.form-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 13px;
  margin-bottom: 21px;
}

.form-heading h3, .form-success h3 {
  font-size: clamp(1.2rem, 2.1vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.035em;
}

.form-time {
  color: var(--muted);
  font-size: .8125rem;
  white-space: nowrap;
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: .875rem;
  font-weight: 600;
}

.field input {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: 5px;
  background: var(--input);
  color: var(--white);
  font-size: 1rem;
}

.field input::placeholder { color: var(--placeholder); opacity: 1; }

.field input:focus { border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--error); }

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--error);
  font-size: .85rem;
}

.trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.consent-field { margin-top: 15px; }

.consent {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: var(--muted);
  font-size: .875rem;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}

.consent input[aria-invalid="true"] {
  outline: 1px solid var(--error);
  outline-offset: 2px;
}

.submit-button {
  width: 100%;
  justify-content: space-between;
  margin-top: 14px;
}

.submit-button:disabled { cursor: wait; opacity: .7; }
.form-status:empty { display: none; }
.form-status { margin-top: 12px; color: var(--error); font-size: .875rem; }
.form-success { padding-block: 12px; }
.form-success p { margin-top: 8px; color: var(--muted); }

.success-mark {
  display: grid;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin-bottom: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}

.footer-inner { min-height: 78px; }
.footer-inner .wordmark { font-size: 1rem; }

.footer-link {
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: .875rem;
}

.dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--white);
}

.dialog::backdrop { background: var(--veil); }
.dialog h2 { font-size: 1.2rem; }

.dialog-top, .dialog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(13px, 3vw, 24px);
}

.close-button {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font-size: 1.65rem;
}

#teaser {
  display: block;
  width: 100%;
  max-height: 68svh;
  aspect-ratio: 16 / 9;
  background: var(--background);
}

.dialog-bottom p { color: var(--muted); font-size: .8125rem; }
.teaser-join { padding-block: 11px; color: var(--accent); font-size: .9rem; font-weight: 700; }
.privacy-dialog { width: min(530px, calc(100% - 28px)); }
.privacy-content { padding: 6px clamp(13px, 3vw, 24px) 25px; color: var(--muted); }
.privacy-content p + p { margin-top: 12px; }

@media (hover: hover) {
  .button-main:hover:not(:disabled) { background: var(--accent-hover); }
  .button-video:hover, .header-link:hover { border-color: var(--accent); }
  .close-button:hover, .footer-link:hover, .teaser-join:hover { color: var(--accent-hover); }
}

@media (max-width: 760px) {
  .registration-grid { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .registration-intro { padding-top: 0; }
  .registration h2 { margin-bottom: 12px; }
}

@media (max-width: 640px) {
  .header-inner { min-height: 60px; }
  .wordmark { font-size: 1.07rem; gap: 8px; }
  .hero { min-height: clamp(505px, 67svh, 620px); align-items: end; }
  .hero-inner { padding-block: 120px 41px; }
  .hero-art img { object-position: 54% 39%; }
  .hero-shade {
    background: linear-gradient(0deg, var(--background), rgb(11 10 12 / 92%) 18%, rgb(11 10 12 / 56%) 49%, rgb(11 10 12 / 0%) 82%);
  }
  .hero h1 { font-size: clamp(3.75rem, 16.8vw, 6.9rem); margin-top: 14px; }
  .event-date { margin-top: 18px; }
  .hero-actions { margin-top: 20px; gap: 8px; }
  .hero-actions .button { padding-inline: 12px; gap: 7px; }
  .registration { padding-top: 18px; scroll-margin-top: 0; }
  .registration-grid { gap: 16px; }
  .registration h2 { font-size: clamp(4.1rem, 15vw, 5.8rem); }
  .fields { gap: 13px 10px; }
  .form-heading { margin-bottom: 16px; }
  .field:nth-child(n + 3) { grid-column: 1 / -1; }
}

@media (max-width: 345px) {
  :root { --gutter: 17px; }
  .hero-actions .button { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switch {
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font-size: .8125rem;
  font-weight: 700;
  white-space: nowrap;
}


.language-dialog {
  width: min(430px, calc(100% - 28px));
  padding: clamp(24px, 6vw, 42px);
  border-top: 2px solid var(--accent);
}

.language-dialog::backdrop { backdrop-filter: blur(4px); }

.language-dialog h2 {
  display: grid;
  justify-items: start;
  gap: 5px;
  margin-bottom: 22px;
  font-size: clamp(1.25rem, 5vw, 1.55rem);
  line-height: 1.25;
}

.language-dialog h2 [lang="en"] {
  color: var(--muted);
  font-size: .72em;
  font-weight: 600;
}

.language-close {
  position: absolute;
  top: 5px;
  right: 5px;
}

.language-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.language-option {
  padding-inline: 10px;
  border-color: var(--input-border);
  background: var(--input);
  color: var(--white);
}

.language-option:focus-visible {
  outline-offset: 2px;
}

@media (hover: hover) {
  .language-switch:hover,
  .language-option:hover { border-color: var(--accent); }
}

@media (max-width: 480px) {
  .header-actions .header-link { display: none; }
}
