:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f2efea;
  --muted: #9b968f;
  --red: #e1192f;
  --red-hi: #ff3b4f;
  --ok: #4cc38a;

  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Geist", "Segoe UI", system-ui, sans-serif;

  --max: 1120px;
  --r: 14px;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 16px; }

.label { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--red-hi); }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.05; font-weight: 800; font-stretch: 106%; letter-spacing: -.02em; }
p { margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--red); color: #fff; text-decoration: none; cursor: pointer;
  font: 600 15px/1 var(--body);
  transition: background .2s;
}
.btn:hover { background: var(--red-hi); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn.ghost:hover { background: rgba(255,255,255,.05); }
.btn:focus-visible { border-radius: 999px; }

.nav {
  position: sticky; z-index: 50;
  top: env(safe-area-inset-top, 0px);
  background: rgba(10, 10, 11, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 51; background: var(--bg); }
.nav .wrap { display: flex; align-items: center; gap: 12px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.badge { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: #fff; flex: none; }
.badge img { width: 100%; height: 100%; object-fit: cover; }
.brand strong { font: 800 17px/1 var(--display); font-stretch: 110%; letter-spacing: .01em; }
.tabs { display: flex; align-self: stretch; gap: 2px; margin-left: auto; }
.tabs a {
  position: relative; display: flex; align-items: center;
  text-decoration: none; font-size: 14.5px; color: var(--muted); padding: 0 13px;
  transition: color .2s;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); font-weight: 500; }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--red); }
.tabs a:focus-visible { outline-offset: -4px; }
.nav .btn { height: 40px; padding: 0 18px; font-size: 14px; margin-left: 10px; }
.nav .btn[aria-current="page"] { box-shadow: 0 0 0 2px rgba(255,255,255,.25) inset; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--text); cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.page { padding: clamp(56px, 8vw, 96px) 0 clamp(80px, 10vw, 120px); }
.page-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 720px; }
.page-head h1 { margin-top: 14px; font-size: clamp(38px, 5.4vw, 64px); line-height: .98; font-weight: 800; font-stretch: 106%; letter-spacing: -.03em; }
.page-head p { margin-top: 18px; font-size: 18px; color: var(--muted); max-width: 52ch; }

.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 112px) 0 clamp(72px, 9vw, 112px); }
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; right: -160px; top: -160px;
  background: radial-gradient(closest-side, rgba(225,25,47,.20), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(44px, 6.6vw, 88px); line-height: .95; font-weight: 800; font-stretch: 106%; letter-spacing: -.035em; }
.hero h1 span { color: var(--red-hi); }
.hero .lede { margin-top: 26px; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.mascot { justify-self: end; width: min(100%, 460px); }
.mascot img { width: 100%; height: auto; }

.explore { padding-bottom: clamp(80px, 10vw, 120px); }
.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--r); background: var(--surface); text-decoration: none; transition: background .2s; min-width: 0; }
.tile:hover { background: #18181b; }
.tile h2 { font-size: 22px; }
.tile p { color: var(--muted); }
.tile .go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 500; color: var(--red-hi); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about .text { font-size: 18px; color: var(--muted); max-width: 46ch; }
.about .text b { color: var(--text); font-weight: 500; }
.mission { padding-left: 28px; border-left: 2px solid var(--red); }
.mission p { margin-top: 14px; font: 700 clamp(24px, 2.8vw, 34px)/1.2 var(--display); font-stretch: 104%; letter-spacing: -.02em; text-wrap: balance; }
.facts { margin: 36px 0 0; display: grid; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--surface); border-radius: var(--r); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.card h2 { font-size: 23px; line-height: 1.15; font-weight: 700; font-stretch: 104%; letter-spacing: -.015em; }
.big { display: flex; align-items: baseline; gap: 12px; }
.big b { font: 800 64px/.9 var(--display); letter-spacing: -.04em; }
.big span { color: var(--muted); }
.route { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.route b { color: var(--text); font-weight: 600; }
.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.items b { display: block; font-weight: 600; }
.items span { color: var(--muted); font-size: 15px; }
.reqs { margin: 0; display: grid; }
.reqs div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.reqs dt { color: var(--muted); }
.reqs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.card .note { font-size: 13px; color: var(--red-hi); font-weight: 500; }
.after { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 28px; border-radius: var(--r); border: 1px solid var(--line); }
.after p { font-size: 17px; color: var(--muted); }
.after p b { color: var(--text); font-weight: 600; }

.agenda { display: grid; }
.event { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.event:last-child { border-bottom: 1px solid var(--line); }
.when { font-weight: 600; font-size: 15px; }
.when small { display: block; color: var(--muted); font-weight: 400; font-size: 14px; margin-top: 2px; }
.when.tba { color: var(--muted); font-weight: 400; }
.event h2 { font-size: 22px; font-weight: 700; font-stretch: 104%; letter-spacing: -.015em; }
.event p { margin-top: 6px; color: var(--muted); max-width: 60ch; }
.event .place { margin-top: 8px; font-size: 14px; }
.type { font-size: 13px; color: var(--muted); white-space: nowrap; }
.event.featured .type { color: var(--red-hi); font-weight: 500; }
.agenda-empty { padding: 26px 0; border-top: 1px solid var(--line); color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shot { position: relative; margin: 0; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { position: absolute; left: 14px; bottom: 12px; font-size: 13px; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.shot.ph { display: grid; place-items: center; }
.shot.ph figcaption { position: static; color: var(--muted); text-shadow: none; text-align: center; padding: 0 16px; }
.ig-line { margin-top: 28px; font-size: 15px; color: var(--muted); }
.ig-line a { color: var(--text); font-weight: 500; text-decoration-color: var(--red); text-underline-offset: 4px; }
a[aria-disabled="true"] { pointer-events: none; text-decoration: none; }

.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.member { min-width: 0; }
.portrait { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border-radius: var(--r); background: var(--surface); display: grid; place-items: center; font: 700 28px/1 var(--display); color: rgba(255,255,255,.18); }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.member .role { margin-top: 14px; font-size: 13px; color: var(--muted); }
.member .name { margin-top: 2px; font-weight: 600; font-size: 17px; }
.member .name.tbd { color: var(--muted); font-weight: 400; }

.join { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.join-side { position: sticky; top: calc(var(--nav-h) + 40px); }
.join-side h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 60px); line-height: .98; font-weight: 800; font-stretch: 106%; letter-spacing: -.03em; }
.join-side .text { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 36ch; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--text); }
.steps b { display: block; font-weight: 600; padding-top: 2px; }
.steps span { color: var(--muted); font-size: 15px; }
.contact { margin-top: 32px; font-size: 15px; color: var(--muted); }
.contact b { color: var(--text); font-weight: 500; user-select: all; word-break: break-all; }

.form-card { background: var(--surface); border-radius: calc(var(--r) + 4px); padding: clamp(24px, 3.5vw, 40px); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset + fieldset { margin-top: 32px; }
legend { padding: 0; margin-bottom: 16px; font: 700 18px/1.2 var(--display); font-stretch: 104%; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label { font-size: 14px; font-weight: 500; }
.req { color: var(--red-hi); }

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%; height: 48px; padding: 0 14px;
  font: 400 15.5px var(--body); color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .2s, box-shadow .2s;
}
input::placeholder { color: #5f5b56; }
.prefixed { position: relative; }
.prefixed span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font: 600 15.5px var(--body); color: var(--text); pointer-events: none; }
.prefixed input { padding-left: 30px; letter-spacing: .02em; }
input:focus { outline: none; border-color: var(--red-hi); box-shadow: 0 0 0 3px rgba(225,25,47,.18); }
.field.invalid input[type="text"], .field.invalid input[type="email"], .field.invalid input[type="tel"] { border-color: #ff6b6b; }
.err { font-size: 13px; color: #ff8080; }
.err:empty { display: none; }

.majors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.majors label {
  position: relative; display: flex; align-items: center; gap: 12px; cursor: pointer;
  height: 52px; padding: 0 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-2); font-weight: 500; font-size: 15px;
  transition: border-color .2s, background .2s;
}
.majors input { position: absolute; opacity: 0; pointer-events: none; }
.majors .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #6d6862; flex: none; transition: all .2s; }
.majors label:has(input:checked) { border-color: var(--red); background: rgba(225,25,47,.08); }
.majors label:has(input:checked) .radio { border-color: var(--red-hi); box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 9px var(--red-hi); }
.majors label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(225,25,47,.25); }
.field.invalid .majors label { border-color: rgba(255,107,107,.6); }

.confirm { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; cursor: pointer; font-size: 15px; line-height: 1.5; }
.confirm .q { display: block; font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.confirm input { appearance: none; -webkit-appearance: none; margin: 2px 0 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #6d6862; display: grid; place-items: center; cursor: pointer; transition: all .2s; }
.confirm input::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .15s; }
.confirm input:checked { background: var(--red); border-color: var(--red); }
.confirm input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.field.invalid .confirm input { border-color: #ff6b6b; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { margin-top: 32px; width: 100%; height: 54px; border-radius: 12px; font-size: 16px; }
button[disabled] { opacity: .75; cursor: progress; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,107,107,.5); color: #ffb3b3; font-size: 14px; }

.done { display: grid; gap: 14px; justify-items: start; padding: 12px 0; }
.done .check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(76,195,138,.12); color: var(--ok); }
.done h2 { font-size: 26px; }
.done p { color: var(--muted); max-width: 50ch; }
.done .stamp { font-size: 13px; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; transition: color .2s; }
footer a:hover { color: var(--text); }

@media (max-width: 1000px) {
  .tabs, .nav .btn { display: none; }
  .menu-btn { display: grid; }
  .nav.open .wrap { flex-wrap: wrap; height: auto; min-height: var(--nav-h); padding-bottom: 16px; }
  .nav.open .brand, .nav.open .menu-btn { height: var(--nav-h); }
  .nav.open .tabs { display: grid; order: 3; width: 100%; margin: 0; }
  .nav.open .tabs a { padding: 13px 0; font-size: 17px; border-top: 1px solid var(--line); }
  .nav.open .tabs a[aria-current="page"]::after { left: -12px; right: auto; top: 14px; bottom: 14px; width: 2px; height: auto; }
  .nav.open .btn { display: inline-flex; order: 4; width: 100%; margin: 6px 0 0; height: 48px; }
  .cards, .explore-grid { grid-template-columns: minmax(0, 1fr); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mascot { order: -1; justify-self: center; width: min(72%, 360px); }
  .about, .join { grid-template-columns: minmax(0, 1fr); }
  .join-side { position: static; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .grid, .majors { grid-template-columns: minmax(0, 1fr); }
  .event { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .type { order: -1; }
  .board { gap: 12px; }
  .mission { padding-left: 20px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .after .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
