@font-face { font-family: "Big Shoulders Display"; src: url("/fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07262c;
  --surface: #0b3843;
  --surface-2: #0f4b57;
  --text: #f2fbfa;
  --muted: #c2e2e0;
  --hazard: #ffd400;
  --hazard-deep: #f2bd00;
  --cyan: #2fe6d8;
  --ink: #06181b;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Big Shoulders Display", Impact, sans-serif;
}

* { box-sizing: border-box; border-radius: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.55 "Barlow", system-ui, sans-serif; overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1.02; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
.nowrap { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 3px; }

.btn {
  display: inline-block; padding: 14px 24px; border: 2px solid var(--hazard);
  background: var(--hazard); color: var(--ink);
  font: 600 17px/1.2 "Barlow", sans-serif; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .15s cubic-bezier(.16, 1, .3, 1), background-color .15s, color .15s;
}
.btn:hover { background: #ffe34d; border-color: #ffe34d; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-ghost { background: rgb(6 24 27 / .65); color: var(--hazard); }
.btn-ghost:hover { background: var(--hazard); color: var(--ink); }
.btn-small { padding: 8px 14px; font-size: 15px; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--hazard); }
.btn-dark:hover { background: #12333a; border-color: #12333a; }

.nav {
  position: sticky; top: 0; z-index: 2; height: 64px; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgb(7 38 44 / .9); backdrop-filter: blur(10px); border-bottom: 2px solid var(--cyan);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 800 24px/1 var(--display); }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100dvh - 64px); padding: 56px var(--gutter);
  display: flex; align-items: center; background: #04161a;
}
.hero-art, #decay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -3; max-width: none; object-fit: cover; object-position: 100% 50%; }
#decay { z-index: -2; mix-blend-mode: screen; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(4 22 26 / .78), rgb(4 22 26 / .35) 42%, transparent 62%);
}
.hero-copy { max-width: 640px; animation: rise .8s cubic-bezier(.16, 1, .3, 1) both; }
.hero h1 { font-size: clamp(56px, 7.6vw, 118px); line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--hazard); }
.hero p { margin-top: 22px; font-size: 22px; max-width: 24em; text-shadow: 0 1px 10px rgb(4 22 26), 0 0 3px rgb(4 22 26); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

.weekends { display: grid; grid-template-columns: 5fr 7fr; }
.weekends-copy {
  display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4vw, 64px) var(--gutter); color: var(--ink);
  background: repeating-linear-gradient(-45deg, var(--hazard) 0 34px, var(--hazard-deep) 34px 68px);
}
.weekends h2 { font-size: clamp(68px, 8.4vw, 132px); line-height: .92; }
.weekends p { margin-top: 18px; font-size: 21px; font-weight: 600; max-width: 26em; }
.weekends img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.tile { padding: 36px clamp(20px, 2.6vw, 36px); background: var(--surface-2); }
.tile h3 { font-size: 36px; margin-bottom: 10px; }
.tile p { color: var(--muted); }
.tile-cyan { background: var(--cyan); color: var(--ink); }
.tile-cyan p { color: var(--ink); }
.tile-realm { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter); background: var(--bg); }

.effects { background: var(--cyan); color: var(--ink); }
.effects-copy { padding: clamp(64px, 8vw, 112px) var(--gutter) clamp(40px, 5vw, 64px); max-width: 1320px; }
.effects h2 { font-size: clamp(42px, 5.8vw, 86px); line-height: 1.08; }
.effects mark { background: var(--hazard); color: var(--ink); padding: 0 .14em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.effects p { margin-top: 24px; font-size: 22px; font-weight: 600; }
.effects img { width: 100%; }

.test { padding: clamp(64px, 8vw, 110px) var(--gutter); background: var(--surface); scroll-margin-top: 64px; }
.test h2 { font-size: clamp(56px, 6.6vw, 100px); color: var(--hazard); }
.test-head p { margin-top: 12px; color: var(--muted); font-size: 21px; }
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.role {
  padding: 0; background: var(--hazard); color: var(--ink); border: 3px solid var(--hazard); cursor: pointer; overflow: hidden;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .15s, background-color .15s;
}
.role img { width: 100%; }
.role span { display: block; padding: 12px 8px; font: 800 30px/1 var(--display); }
.role:hover { transform: translateY(-5px); }
.role:active { transform: scale(.98); }
.role[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); transform: translateY(-5px); }

.readout { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 56px); margin-top: 28px; padding: clamp(24px, 3.4vw, 44px); background: var(--bg); border: 2px solid var(--cyan); }
.meter { color: var(--hazard); }
.meter span { display: block; font: 800 clamp(84px, 10vw, 148px)/.9 var(--display); font-variant-numeric: tabular-nums; }
.meter small { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; }
.sound { margin-top: 8px; padding: 6px 0; background: none; border: 0; color: var(--muted); font: 400 16px "Barlow", sans-serif; text-decoration: underline; cursor: pointer; }
.sound:hover { color: var(--text); }
.result { min-width: 0; }
.result h3 { font-size: clamp(36px, 3.6vw, 52px); color: var(--cyan); }
.result > p { margin-top: 10px; color: var(--muted); min-height: 3.1em; }
.result-cta { margin-top: 18px; }

.closing img { width: 100%; }
.closing-copy { padding: clamp(40px, 5vw, 72px) var(--gutter); background: var(--hazard); color: var(--ink); }
.closing h2 { font-size: clamp(52px, 7vw, 108px); line-height: .98; }
.closing-copy { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: start; scroll-margin-top: 64px; }
.closing-intro p { margin-top: 18px; max-width: 30em; font-size: 21px; font-weight: 600; line-height: 1.4; }

.apply { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 17px; line-height: 1.25; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fffbe0;
  border: 2px solid var(--ink); font: 400 18px/1.35 "Barlow", sans-serif;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.picker { margin: 0; padding: 0; border: 0; min-width: 0; }
.picker legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 17px; }
.picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pick {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 6px; cursor: pointer;
  background: #fffbe0; border: 2px solid var(--ink); color: var(--ink);
  transition: transform .15s cubic-bezier(.16, 1, .3, 1), background-color .15s, color .15s;
}
.pick input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pick img { width: 48px; height: 48px; flex: none; }
.pick span { min-width: 0; font: 800 23px/1 var(--display); }
.pick:hover { transform: translateY(-2px); }
.pick:active { transform: scale(.98); }
.pick:has(input:checked) { background: var(--ink); color: var(--hazard); box-shadow: 0 0 0 2px var(--cyan); }
.pick:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.error { color: #7a0c00; font-weight: 600; font-size: 16px; }
.error:empty { display: none; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.btn:disabled { opacity: .65; cursor: progress; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.applied { padding: clamp(24px, 3vw, 40px); background: var(--ink); color: var(--text); }
.applied:focus { outline: none; }
.applied[hidden], .apply[hidden] { display: none; }
.applied h3 { font-size: clamp(44px, 5vw, 72px); color: var(--hazard); }
.applied p { margin-top: 12px; font-size: 20px; }

.foot { padding: 28px var(--gutter); border-top: 2px solid var(--cyan); color: var(--muted); font-size: 15px; display: grid; gap: 4px; }

@media (max-width: 900px) {
  .weekends { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readout { grid-template-columns: 1fr; }
  .closing-copy { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 17px; }
  .hero { align-items: flex-end; padding-block: 40px; }
  .hero-art { object-position: 92% 50%; }
  .hero::after { background: linear-gradient(0deg, rgb(4 22 26 / .92), rgb(4 22 26 / .62) 42%, transparent 66%); }
  .hero h1 { font-size: clamp(52px, 15vw, 84px); }
  .hero p { font-size: 19px; }
  .facts { grid-template-columns: 1fr; }
  .tile-realm { align-items: flex-start; }
  .tile-realm img { width: 60px; height: 60px; }
  .role span { font-size: 24px; }
  .apply { grid-template-columns: 1fr; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .submit-row .btn, .result-cta { width: 100%; }
  .btn { text-align: center; }
  .nav .btn { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy { animation: none; }
  .btn, .role, .pick { transition: none; }
  .pick:hover { transform: none; }
  .role:hover, .role[aria-pressed="true"] { transform: none; }
}
