@font-face {
  font-family: Anton;
  src: url('assets/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'DM Sans';
  src: url('assets/dm-sans-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #141714;
  --paper: #edece3;
  --light: #f6f5eb;
  --accent: #d8ed70;
  --line: #63695a;
  --display: Anton, Impact, 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --ease-out: cubic-bezier(.18,.74,.24,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; color: var(--light); background: var(--ink); font: 400 1rem/1.6 var(--body); }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1; font-weight: 400; text-transform: uppercase; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #8a9b2d; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 100px), 1280px); margin-inline: auto; }
.skip { position: fixed; z-index: 6; top: 11px; left: 14px; transform: translateY(-160%); padding: 8px 16px; background: var(--light); color: var(--ink); }
.skip:focus { transform: none; }

.masthead { position: sticky; z-index: 5; top: 0; background: #141714; border-bottom: 1px solid #f6f5eb25; }
.topbar { min-height: 65px; display: flex; align-items: center; gap: 20px; }
.home { text-decoration: none; color: var(--accent); font: 800 1.6rem/1 var(--mono); letter-spacing: -.1em; }
.game { font: 650 .875rem/1 var(--mono); white-space: nowrap; color: #d2d7c9; }
.game span { color: #90968a; margin-inline: 4px; }
nav { margin-left: auto; display: flex; align-items: center; gap: 25px; }
.page-progress { position: absolute; bottom: -1px; left: 0; width: 100%; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--accent); pointer-events: none; }
.motion-ready .page-progress { transform: scaleX(var(--page-progress,0)); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: fit-content; padding: 8px 20px; border: 1px solid transparent; background: var(--accent); color: var(--ink); text-decoration: none; cursor: pointer; font: 750 .9375rem/1.1 var(--body); transition: background .2s, color .2s, border-color .2s; }
.button:hover { background: #f6ffcb; }
.button-small { min-height: 37px; padding-inline: 15px; }
.hero { position: relative; isolation: isolate; overflow: clip; background: #232c2b; }
.hero-media { position: absolute; z-index: -2; inset: 0; }
.hero-image, .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
.hero-video { opacity: 0; transition: opacity .5s var(--ease-out); }
.hero-media.has-video .hero-video { opacity: 1; }
.hero::after { position: absolute; z-index: -1; content: ''; inset: 0; background: radial-gradient(ellipse at left bottom, #0c100df5 0%, #0c100da6 30%, transparent 66%), linear-gradient(to top, #0c100d78, transparent 34%); }
.hero-inner { min-height: clamp(460px, 78svh, 820px); display: grid; align-items: end; padding-block: 30px clamp(30px, 4.5vw, 66px); }
.meta { color: var(--accent); font: 750 .875rem/1.25 var(--mono); letter-spacing: .105em; text-transform: uppercase; }
.pulse { display: inline-block; width: 9px; height: 9px; margin-right: 8px; background: var(--accent); }
.hero h1 { font-size: clamp(3rem, 6.5vw, 6.25rem); letter-spacing: -.012em; line-height: 1.05; margin: 8px 0 10px; }
.hero h1 span:last-child { color: var(--accent); }
.hero-lead { max-width: 36ch; font-size: 1rem; line-height: 1.4; color: #efeee4; }
.video-toggle { min-height: 36px; padding: 5px 10px; border: 1px solid #e2e2d570; color: var(--light); background: #141714c7; cursor: pointer; font: 700 .875rem/1.2 var(--body); }
.video-toggle:hover { background: var(--light); color: var(--ink); }

.reveal-ready [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
.reveal-ready [data-reveal].is-visible, .reveal-ready [data-reveal]:focus-within { opacity: 1; transform: none; }

.recruitment { color-scheme: light; color: var(--ink); background: var(--paper); padding: clamp(54px, 9vw, 115px) 0; }
.recruit-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: start; }
.recruitment h2 { font-size: clamp(2.65rem, 6.3vw, 6rem); letter-spacing: -.015em; }
.recruit-copy { max-width: 35ch; margin-top: 22px; color: #414638; }
form { display: grid; gap: 9px; min-width: 0; }
form label { font-size: .9375rem; font-weight: 700; }
.field-pair { display: grid; grid-template-columns: 1fr 1.3fr; gap: 13px; }
.field-pair > div { display: grid; gap: 8px; min-width: 0; grid-template-rows: 1fr auto; }
input, textarea { display: block; width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #7b8275; border-radius: 0; background: #fcfbf5; color: var(--ink); font: inherit; }
input::placeholder { color: #5a6052; }
textarea { resize: vertical; }
form .button { margin-top: 6px; background: var(--ink); color: var(--light); }
form .button:hover { background: #353e2b; }
.form-status:empty { display: none; }
footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 20px; min-height: 84px; padding-block: 19px; color: #cdd3c7; font-size: .875rem; }
footer a:not(.home) { text-underline-offset: 4px; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 56px); }
}
@media (max-width: 560px) {
  .shell { width: calc(100% - 36px); }
  .topbar { min-height: 57px; gap: 15px; }
  .recruit-layout { grid-template-columns: 1fr; gap: 25px; }
  .recruit-copy { margin-top: 15px; }
  .field-pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .hero-video { transition: none; }
}

.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-top: 16px; }
.discord-button { gap: 9px; background: #4a55d8; color: white; }
.discord-button:hover { background: #3e49c6; color: white; }
.discord-icon { display: block; flex: none; }
.apply-button { background: transparent; border-color: #edece393; color: var(--light); }
.apply-button:hover { background: var(--light); color: var(--ink); }
.discord-pending { border: 1px solid #b7bad24f; padding: 11px 13px; color: #dbddeb; background: #1b1a2954; font-size: .875rem; font-weight: 680; }
.recruitment-discord { margin-top: 16px; }
.wipe-card { padding-block: 20px; border-top: 1px solid #d8ed703d; background: #151a15; }
.wipe-layout { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr); gap: 18px clamp(20px, 3vw, 42px); align-items: center; }
.wipe-summary { min-width: 0; padding-inline-start: 14px; border-inline-start: 2px solid var(--accent); }
.wipe-card .meta, .wipe-clock-label, .wipe-date > span { font: 700 .75rem/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.wipe-state { margin-top: 5px; color: var(--light); font: 750 1.35rem/1.15 var(--body); text-transform: uppercase; letter-spacing: .015em; overflow-wrap: anywhere; }
.wipe-note { color: #d0d3c4; font-size: .9rem; line-height: 1.45; }
.wipe-clock { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; gap: 14px clamp(20px, 3vw, 42px); align-items: center; }
.wipe-clock-label, .wipe-date > span { color: #bcc4ae; }
.wipe-count { margin-top: 5px; color: var(--accent); font: 650 clamp(1.45rem, 2.6vw, 2.125rem)/1.1 system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.wipe-meter { min-width: 0; }
.wipe-meter progress { display: block; appearance: none; width: 100%; height: 6px; margin-top: 5px; border: 0; background: #3d453a; mask-image: linear-gradient(to right, #000 0 calc(100% - 4px), transparent 0); mask-size: calc(100% / var(--cycle-days, 7)) 100%; }
.wipe-meter progress::-webkit-progress-bar { background: #3d453a; }
.wipe-meter progress::-webkit-progress-value { background: var(--accent); }
.wipe-meter progress::-moz-progress-bar { background: var(--accent); }
.wipe-meter p { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; color: #d5d9c9; font: 650 .75rem/1.4 var(--mono); }
.wipe-date time { display: block; margin-top: 4px; color: var(--light); font: 650 .875rem/1.35 var(--body); }
.skip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 561px) and (max-width: 900px) {
  .hero-inner { min-height: clamp(390px, 66vw, 550px); }
}
@media (max-width: 760px) {
  .wipe-clock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wipe-meter { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 560px) {
  .hero { background: #101410; }
  .hero-inner { min-height: 0; padding-block: 0 25px; }
  .hero::before { content: ''; display: block; aspect-ratio: 4 / 3; margin-bottom: -18px; }
  .hero-media { bottom: auto; width: 100%; aspect-ratio: 4 / 3; }
  .hero-image, .hero-video { object-position: 59% 50%; }
  .hero::after { bottom: auto; aspect-ratio: 4 / 3; background: linear-gradient(to top, #101410, transparent 30%); }
  .hero h1 { font-size: clamp(2.125rem, 9.3vw, 3.25rem); }
  .hero-actions { gap: 8px; }
  .hero-actions .button { padding-inline: 13px; }
  .wipe-layout { grid-template-columns: minmax(0, 1fr); }
}

.nav-crew { font-size: .9375rem; font-weight: 670; text-decoration: none; }
.nav-crew:hover { color: var(--accent); }
.crew { padding: clamp(54px, 7.5vw, 96px) 0; border-top: 1px solid #f6f5eb25; background: #1b2019; }
.crew-layout { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 2fr); gap: clamp(24px, 6vw, 85px); align-items: start; }
.crew-heading h2 { margin-top: 14px; font-size: clamp(3.25rem, 7.2vw, 6.25rem); letter-spacing: -.015em; }
.crew-roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 43px 16px; margin: 37px 0 0; padding: 0; list-style: none; }
.member-card { position: relative; min-width: 0; border: 1px solid #646d5b; border-top: 2px solid #c1d263; background: #121612; padding: 51px 17px 15px; text-align: center; }
.member-portrait { position: absolute; top: 0; left: 50%; transform: translate(-50%,-50%); display: block; width: 74px; height: 74px; object-fit: cover; border-radius: 50%; border: 1px solid #d8ed708b; box-shadow: 0 0 0 5px #121612; background: #293222; }
.member-profile summary { display: grid; justify-items: center; cursor: pointer; list-style: none; margin: -51px -17px -15px; padding: 51px 17px 15px; }
.member-profile summary::-webkit-details-marker { display: none; }
.member-profile summary:hover .member-name { color: var(--accent); }
.member-name { font-size: 1.9rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.12; overflow-wrap: anywhere; }
.member-role { margin-top: 6px; color: #d0d6c7; font-size: .9375rem; }
.member-profile-toggle { position: absolute; top: 10px; right: 12px; width: 12px; height: 12px; color: var(--accent); }
.member-profile-toggle::before, .member-profile-toggle::after { position: absolute; top: 5px; left: 1px; width: 10px; height: 2px; background: currentColor; content: ''; }
.member-profile-toggle::after { rotate: 90deg; }
.member-profile[open] .member-profile-toggle::after { display: none; }
.member-bio { position: relative; margin-top: 14px; padding-top: 12px; border-top: 1px solid #3a4336; color: #d0d6c7; font-size: .875rem; }
summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 680px) {
  .crew-layout { grid-template-columns: 1fr; }
  .crew-roster { grid-template-columns: repeat(auto-fill, minmax(min(100%, 175px), 1fr)); margin-top: 29px; }
}
@media (max-width: 560px) {
  .topbar .game { display: none; }
  .topbar nav { gap: 14px; }
}

.footage { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(280px, 39.5vw, 690px); overflow: clip; background: #10120f; }
.footage-media, .footage-media > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.footage-media { z-index: -2; }
.footage-media > * { object-fit: cover; object-position: center; }
.footage-loop { opacity: 0; transition: opacity .35s ease; }
.footage-media.has-video .footage-loop { opacity: 1; }
.footage::after { content: ''; position: absolute; z-index: -1; inset: 50% 0 0; background: linear-gradient(0deg, #0d100ddd, transparent); }
.footage-caption { display: flex; justify-content: end; padding-block: clamp(15px, 2.4vw, 35px); }
.footage-toggle { display: grid; width: 44px; height: 44px; place-items: center; }
.footage-toggle::before { content: ''; width: 0; height: 0; border-block: 6px solid transparent; border-left: 9px solid currentColor; }
.footage-toggle[data-playing]::before { width: 10px; height: 12px; border: 0; border-inline: 3px solid currentColor; }
@media (max-width: 560px) {
  .footage { min-height: clamp(205px, 58vw, 325px); }
}
@media (prefers-reduced-motion: reduce) {
  .footage-loop { transition: none; }
}
