/* NxtGen School — site styles
   Black and white, with green kept for the one thing that matters on each screen: the action.
   One family (Archivo), two widths: condensed for display, normal for text. Square corners,
   after the pixel logo. */

:root {
  --black: #0a0a0a;
  --black-2: #161616;
  --black-3: #262626;
  --white: #f4f4f1;
  --white-2: #e8e8e3;
  --pure: #ffffff;
  --grey: #5e5e5a;        /* secondary text on white (6.4:1) */
  --grey-d: #a6a6a1;      /* secondary text on black (8:1) */
  --green: #b6ff3b;
  --error: #c62828;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --t-hero: clamp(52px, 11.4vw, 200px);
  --t-h2: clamp(44px, 7.4vw, 132px);
  --t-h3: clamp(34px, 4.2vw, 72px);
  --t-statement: clamp(21px, 2.1vw, 32px);
  --t-body: clamp(16px, 1.15vw, 18px);
  --t-small: 14px;

  --m: clamp(16px, 2.4vw, 36px);
  --gap: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 13vw, 200px);
  --nav-h: 76px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --ground: var(--black);
  --ink: var(--white);
  --ink-soft: var(--grey-d);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.5;
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: inherit; }
figure { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; }
::selection { background: var(--green); color: var(--black); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--m); top: -100px; z-index: 100;
  background: var(--green); color: var(--black); padding: 10px 14px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* type roles */
.display {
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: -0.005em;
}
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); }
.statement {
  font-size: var(--t-statement);
  line-height: 1.22;
  font-weight: 500;
  letter-spacing: -0.012em;
  max-width: 30ch;
}

/* section grounds: black by default, white where named */
section { background: var(--ground); color: var(--ink); }
.quests, .field, .weekend, .mentors, .reels {
  --ground: var(--white); --ink: var(--black); --ink-soft: var(--grey);
}
.faq { --ground: var(--white-2); --ink: var(--black); --ink-soft: var(--grey); }

/* logo: the pixel SVG is inlined, so it takes currentColor */
.logo { display: block; width: 100%; height: auto; aspect-ratio: 33 / 7; shape-rendering: crispEdges; }

/* buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.005em;
  text-decoration: none; border: 0; border-radius: 0; cursor: pointer;
  transition: scale 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { scale: 0.97; }
.btn--green { background: var(--green); color: var(--black); }
.btn--ink { background: var(--black); color: var(--white); }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn--ghost-ink { background: transparent; color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.btn--wide { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .btn--green:hover { background: var(--white); }
  .btn--ink:hover { background: var(--black-3); }
  .btn--ghost:hover { background: var(--white); color: var(--black); }
  .btn--ghost-ink:hover { background: var(--black); color: var(--white); }
}
.link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; transition: text-underline-offset 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .link:hover { text-underline-offset: 9px; } }

/* stickers: captions set like die-cut labels */
.sticker {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: var(--white); color: var(--black);
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(14px, 1.15vw, 18px); line-height: 1; letter-spacing: 0.01em;
  padding: 8px 11px 7px;
}
.sticker--tilt { transform: rotate(-3.5deg); }

.ph { position: relative; overflow: hidden; background: var(--black-3); }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- NAV: no bar, a soft dark fade with grain (after Buenas Open) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px;
  padding: 0 var(--m);
  color: var(--white);
  font-stretch: 125%; font-weight: 500; font-size: 13px; letter-spacing: 0.07em; text-transform: uppercase;
}
.nav::before, .nav::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 175%; z-index: -1; pointer-events: none;
}
.nav::before { background: linear-gradient(to bottom, rgba(10, 10, 10, 0.72) 0%, rgba(10, 10, 10, 0.46) 45%, rgba(10, 10, 10, 0) 100%); }
.nav::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.18; mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 100%); mask-image: linear-gradient(to bottom, #000 25%, transparent 100%);
}
.nav--menu::before { background: var(--black); height: 100%; }
.nav__tag, .nav__links a, .nav__cta, .nav__menu { white-space: nowrap; }
.nav__logo { display: block; width: 128px; justify-self: center; }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: clamp(18px, 2.4vw, 40px); }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.nav__links a, .nav__cta, .nav__menu {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit;
  text-decoration: none; background: none; border: 0; padding: 8px 0; cursor: pointer;
  transition: color 200ms ease;
}
.nav__cta { display: inline-flex; align-items: center; gap: 10px; }
.nav__cta::before { content: ""; width: 8px; height: 8px; background: var(--green); flex: none; }
.cta-short { display: none; }
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover, .nav__cta:hover, .nav__menu:hover { color: var(--green); }
}
.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--black);
  padding: calc(var(--nav-h) + 24px) var(--m) var(--m);
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; gap: 6px; }
.menu a {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(44px, 14vw, 88px); line-height: 0.95; text-decoration: none; color: var(--white);
}
.menu a:active { color: var(--green); }

/* ---------- INTRO (first visit) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 90; background: var(--black); color: var(--white);
  display: grid; place-items: center;
}
.intro svg { width: min(56vw, 520px); height: auto; }

/* ---------- HERO ---------- */
.hero { position: relative; }
.hero__stage {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(16px, 2.6vw, 40px)) var(--m) clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr;
  column-gap: var(--gap); row-gap: clamp(24px, 3vw, 44px);
}
.hero__title { grid-column: 1 / -1; font-size: var(--t-hero); position: relative; z-index: 2; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.hero__title .line > span { display: block; }
.hero__copy { grid-column: 1 / span 4; grid-row: 2; align-self: end; display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.lede { font-size: clamp(18px, 1.4vw, 21px); line-height: 1.42; max-width: 34ch; color: var(--white); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero__slot { grid-column: 6 / -1; grid-row: 2; }
.hero__media {
  position: absolute; inset: 0; z-index: 1; margin: 0;
  clip-path: inset(46% var(--m) 6% 41% round 4px);
  background: var(--black-2);
}
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0) 55%); /* scrim under text on video */
  opacity: var(--scrim, 0);
}
.hero__tag { background: var(--green); left: auto; right: calc(var(--m) + 16px); bottom: calc(6% + 16px); }
.hero__over {
  position: absolute; left: var(--m); bottom: clamp(32px, 5vw, 72px); z-index: 2;
  max-width: 24ch; font-size: var(--t-h2); color: var(--white);
  opacity: 0;
}

/* ---------- TICKER ---------- */
.ticker { background: var(--white); color: var(--black); overflow: hidden; }
.ticker__track { display: flex; flex-wrap: wrap; padding: 0 var(--m); }
.ticker.is-ready .ticker__track { flex-wrap: nowrap; width: max-content; padding: 0; animation: tick 46s linear infinite; }
.ticker span {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 36px); line-height: 1; white-space: nowrap;
  padding: 16px 0;
}
.ticker span::after { content: "✦"; display: inline-block; margin: 0 0.7em; font-size: 0.6em; vertical-align: 0.2em; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- SIDE QUESTS ---------- */
.quests { padding: var(--section) 0 0; }
.quests__intro {
  padding: 0 var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end;
  margin-bottom: clamp(40px, 5vw, 80px);
}
.quests__intro h2 { grid-column: 1 / span 6; }
.quests__intro .statement { grid-column: 8 / -1; }
.quests__pin { overflow: hidden; }
.quests__track { display: flex; width: max-content; height: calc(100svh - var(--nav-h)); min-height: 560px; padding-left: var(--m); }

.q { flex: none; display: flex; align-items: stretch; height: 100%; padding: 3svh 0 4svh; }

/* giant vertical name, filled with the quest's own photograph */
.q__name {
  --size: calc((100svh - var(--nav-h)) * 0.2);
  display: flex; align-items: center;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: clamp(96px, var(--size), 240px); line-height: 0.84;
  margin: 0 clamp(20px, 2.6vw, 44px) 0 0;
  color: var(--black);
  background-position: center; background-size: cover; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.q__name span { display: block; white-space: nowrap; }
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .q__name { -webkit-text-fill-color: currentColor; background: none; }
}

/* the dark panel: a blurred, greyed copy of the place behind its title and media */
.q__panel {
  position: relative; overflow: hidden; color: var(--white); background: var(--black);
  padding: clamp(20px, 3svh, 36px) clamp(20px, 2.4vw, 40px);
  display: grid; gap: clamp(16px, 2svh, 28px);
}
.q__bg {
  position: absolute; inset: -8%; z-index: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: grayscale(1) brightness(0.42) contrast(1.15);
  transform: scale(1.08);
}
.q__panel > :not(.q__bg) { position: relative; z-index: 1; }
.q__panel--tall { width: 62vw; grid-template-columns: 1fr auto; grid-template-rows: minmax(0, 1fr); align-items: end; }
.q__panel--tall .q__media { grid-row: 1; grid-column: 2; height: 88%; aspect-ratio: 9 / 16; }
.q__panel--tall .q__title { font-size: clamp(24px, 2.1vw, 34px); }
.q__panel--tall .q__head { max-width: none; }
.q__panel--wide { width: 50vw; grid-template-rows: minmax(0, 1fr) auto; }
.q__media { overflow: hidden; background: var(--black-3); margin: 0; min-height: 0; }
.q__media video, .q__media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.q__head { display: flex; flex-direction: column; gap: 10px; max-width: 30ch; }
.q__meta { font-size: 15px; font-weight: 500; color: var(--grey-d); display: flex; align-items: center; gap: 10px; }
.q__meta i { display: inline-block; width: 3px; height: 1.1em; background: var(--green); }
.q__title { font-weight: 800; font-size: clamp(28px, 2.6vw, 44px); line-height: 1.04; letter-spacing: -0.02em; }
.q__sub { font-weight: 700; font-size: clamp(17px, 1.3vw, 21px); }

.q__story {
  width: clamp(280px, 25vw, 420px); padding: 0 clamp(24px, 2.8vw, 48px);
  align-self: center; display: flex; flex-direction: column; gap: 16px; color: var(--black);
}
.q__story h4 { font-weight: 800; font-size: clamp(21px, 1.7vw, 27px); line-height: 1.15; letter-spacing: -0.01em; }
.q__story p { color: var(--grey); }
.q__story .q__quote {
  margin-top: 18px; color: var(--black);
  font-size: clamp(30px, 2.8vw, 46px); line-height: 0.92;
}

.q__collage { position: relative; width: 38vw; margin-right: clamp(24px, 4vw, 72px); }
.q__collage .ph { position: absolute; }
.c3 .ph:nth-child(1) { left: 0; top: 4%; width: 46%; height: 52%; }
.c3 .ph:nth-child(2) { left: 50%; top: 16%; width: 46%; height: 50%; }
.c3 .ph:nth-child(3) { left: 14%; top: 62%; width: 42%; height: 34%; }
.c2 .ph:nth-child(1) { left: 0; top: 6%; width: 58%; height: 48%; }
.c2 .ph:nth-child(2) { left: 46%; top: 36%; width: 48%; height: 60%; }

.q--end {
  width: 56vw; padding: 0 clamp(28px, 6vw, 96px);
  background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px;
}
.q--end h3 { font-size: var(--t-h2); }
.q--end p { font-size: var(--t-statement); max-width: 26ch; line-height: 1.25; }

/* ---------- BUILDERS (scattered photographs) ---------- */
.field {
  position: relative;
  height: clamp(880px, 130vh, 1360px);
  padding: 0 var(--m);
  overflow: hidden;
}
.field__photos .f { position: absolute; object-fit: cover; will-change: transform; }
/* pictures live in the two side columns; the centre column belongs to the words */
.f1 { width: 25vw; aspect-ratio: 2000 / 1704; left: var(--m); top: 3%; }
.f4 { width: 16vw; aspect-ratio: 9 / 16; left: 9vw; top: 38%; }
.f5 { width: 23vw; aspect-ratio: 4 / 3; left: var(--m); bottom: 2%; }
.f2 { width: 17vw; aspect-ratio: 3 / 4; right: 7vw; top: 0; }
.f3 { width: 25vw; aspect-ratio: 3 / 2; right: var(--m); top: 38%; }
.f6 { width: 18vw; aspect-ratio: 3 / 4; right: 7vw; bottom: 2%; }
.field__center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(640px, 44vw); text-align: center; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
}
.field__center .statement { max-width: 34ch; }

/* ---------- NEXT COHORT (cinema) ---------- */
.cinema { position: relative; height: 100svh; min-height: 640px; overflow: hidden; background: var(--black); }
.cinema__frame {
  position: absolute; inset: 0;
  clip-path: inset(18% 22% 18% 22% round 6px);
  background: var(--black-2);
}
.cinema__frame > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.cinema__frame > :first-child { opacity: 1; }
.cinema__frame.is-live > * { opacity: 0; }
.cinema__frame.is-live > .is-on { opacity: 1; }
.cinema__frame::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); }
.cinema__ui {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: var(--nav-h) var(--m) var(--m); gap: 22px;
}
.cinema__title { font-size: clamp(48px, 6.6vw, 120px); color: var(--white); max-width: 16ch; }
.cinema__sub { color: var(--white); max-width: 40ch; font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; }
.cinema__actions { display: flex; flex-direction: column; gap: 10px; width: min(380px, 100%); margin-top: 8px; }

/* ---------- WEEKEND ---------- */
.weekend { padding: var(--section) var(--m); }
.weekend__head {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end;
  margin-bottom: clamp(48px, 5vw, 80px);
}
.weekend__head h2 { grid-column: 1 / span 7; }
.weekend__head .statement { grid-column: 9 / -1; }
.weekend__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.weekend__pic { grid-column: 1 / span 3; aspect-ratio: 9 / 16; }
.weekend__pic--b { grid-column: 10 / span 3; }
.days { grid-column: 4 / span 6; display: flex; flex-direction: column; gap: clamp(28px, 3vw, 44px); padding: 0 clamp(0px, 2vw, 32px); }
.days dt { font-size: var(--t-h3); }
.days dd { margin: 10px 0 0; font-size: clamp(18px, 1.4vw, 22px); line-height: 1.4; max-width: 34ch; }
.months {
  list-style: none; margin-top: clamp(56px, 6vw, 96px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.months li { background: var(--white-2); padding: 22px; color: var(--grey); }
.months b { display: block; color: var(--black); font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 26px; margin-bottom: 8px; }

/* ---------- TOOLS: a sliding strip of sticker logos ---------- */
.tools { padding: clamp(80px, 9vw, 140px) 0; overflow: hidden; }
.tools h2 { padding: 0 var(--m); }
.strip { overflow: hidden; padding: clamp(44px, 6vw, 96px) 0; }
.strip__track { list-style: none; display: flex; align-items: center; gap: clamp(36px, 5vw, 96px); width: max-content; padding-left: var(--m); will-change: transform; }
.strip__track li { flex: none; }
.strip__track img { display: block; height: clamp(84px, 8.4vw, 140px); width: auto; transform-origin: 50% 50%; will-change: transform; user-select: none; -webkit-user-drag: none; }
.tools__more { padding: 0 var(--m); color: var(--grey-d); max-width: 70ch; font-size: clamp(17px, 1.3vw, 20px); }

/* ---------- MENTORS ---------- */
.mentors { padding: var(--section) var(--m); }
.mentors h2 { margin-bottom: clamp(48px, 5vw, 80px); }
.mentor-name { font-size: clamp(34px, 3.6vw, 60px); }
.mentor-role { font-weight: 700; margin: 10px 0 12px; }
.mentors__lead {
  background: var(--black); color: var(--white);
  padding: clamp(28px, 3.5vw, 56px);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px var(--gap); align-items: end;
  margin-bottom: var(--gap);
}
.mentors__lead .mentor-name { grid-column: 1 / span 7; font-size: var(--t-h2); }
.mentors__lead .mentor-role { grid-column: 1 / span 7; margin: 0; color: var(--grey-d); }
.mentors__lead p:last-child { grid-column: 8 / -1; grid-row: 1 / span 2; max-width: 44ch; }
.mentors__list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.mentors__list li { background: var(--white-2); padding: clamp(20px, 2vw, 28px); }
.mentors__list li p:last-child { color: var(--grey); }

/* ---------- CERTIFICATES ---------- */
.certs {
  padding: var(--section) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center;
}
.certs > h2 { grid-column: 1 / -1; margin-bottom: clamp(16px, 2vw, 32px); }
.certs__pic { grid-column: 1 / span 7; position: relative; aspect-ratio: 1280 / 668; overflow: hidden; }
.certs__pic img { width: 100%; height: 100%; object-fit: cover; }
.certs__text { grid-column: 9 / -1; display: flex; flex-direction: column; gap: 24px; }
.certs__text > p { color: var(--grey-d); }
.cert-list { display: grid; gap: 10px; }
.cert-list div { background: var(--black-2); padding: 18px 20px; }
.cert-list dt { font-weight: 800; color: var(--green); }
.cert-list dd { margin: 4px 0 0; color: var(--grey-d); }

/* ---------- REELS ---------- */
.reels { padding: var(--section) var(--m); }
.reels__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(36px, 4vw, 64px); }
.reels__head h2 { max-width: 16ch; }
.reels__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.reel { position: relative; aspect-ratio: 9 / 16; background: var(--black); overflow: hidden; }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px;
  color: var(--white); font-weight: 600; font-size: 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); /* scrim under text on video */
}

/* ---------- FAQ ---------- */
.faq {
  padding: var(--section) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start;
}
.faq h2 { grid-column: 1 / span 5; font-size: clamp(44px, 5.4vw, 92px); position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__list { grid-column: 6 / -1; display: grid; gap: 8px; }
.faq details { background: var(--white); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 24px; padding-right: 64px; position: relative;
  font-weight: 700; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; translate: 0 -50%;
  font-size: 28px; font-weight: 800; transition: rotate 200ms var(--ease-out);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 24px 24px; max-width: 62ch; }

/* ---------- JOIN ---------- */
.join {
  padding: var(--section) var(--m);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center;
}
.join__text { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.join__pic { grid-column: 7 / -1; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.join__pic img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- FOOTER: the sticker trail, then the name rises ---------- */
.footer { background: var(--white); color: var(--black); }
.trail {
  position: relative; height: clamp(520px, 88svh, 860px); overflow: hidden;
  touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none;
  display: grid; place-items: center;
}
.trail__text { position: relative; z-index: 1; text-align: center; padding: 0 var(--m); pointer-events: none; }
.trail__title { font-size: clamp(48px, 10vw, 180px); max-width: 14ch; margin: 0 auto; }
@media (max-width: 899px) { .trail__title { font-size: 13vw; } }
.trail__layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.stk { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform, opacity; }
.stk img { display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }

.finale { padding: clamp(40px, 6vw, 96px) var(--m) 0; overflow: hidden; text-align: center; }
.finale__line {
  font-stretch: 125%; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em;
  font-size: clamp(12px, 1vw, 15px); color: var(--grey); margin-bottom: clamp(18px, 2.6vw, 40px);
}
.finale__mark {
  width: 100%; color: var(--black);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, rgba(0, 0, 0, 0.1) 100%);
          mask-image: linear-gradient(to bottom, #000 30%, rgba(0, 0, 0, 0.1) 100%);
}
.finale__mark svg { display: block; width: 100%; height: auto; aspect-ratio: 33 / 11.491; overflow: visible; }

.footer__row {
  padding: 22px var(--m) 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
}
.footer__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer__links a { font-weight: 700; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; } }
.footer__small { margin-left: auto; font-size: var(--t-small); font-weight: 600; color: var(--grey); display: flex; align-items: center; gap: 10px; }
.admin-dot {
  width: 10px; height: 10px; padding: 0; border: 0; cursor: pointer; flex: none;
  background: var(--green); transition: scale 160ms var(--ease-out);
}
.admin-dot:hover { scale: 1.4; }

/* ---------- DIALOGS (apply + team) ---------- */
dialog {
  border: 0; padding: 0; margin: auto; color: var(--black); background: var(--white);
  width: min(1120px, calc(100vw - 2 * var(--m))); max-height: calc(100svh - 2 * var(--m));
  overflow: auto; overscroll-behavior: contain;
}
dialog::backdrop { background: rgba(10, 10, 10, 0.72); }
dialog[open] { animation: dlg-in 260ms var(--ease-out); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.apply__bar, .admin__bar {
  position: sticky; top: 0; z-index: 3; background: var(--white);
  display: flex; align-items: center; gap: 16px; padding: 16px clamp(18px, 3vw, 40px);
}
.apply__steps { list-style: none; display: flex; gap: 22px; font-weight: 700; font-size: 15px; color: var(--grey); }
.apply__steps li { padding-bottom: 6px; box-shadow: inset 0 -4px 0 transparent; transition: box-shadow 200ms ease, color 200ms ease; }
.apply__steps li[aria-current="step"] { color: var(--black); box-shadow: inset 0 -4px 0 var(--green); }
.apply__close { margin-left: auto; background: var(--black); color: var(--white); border: 0; cursor: pointer; font-weight: 700; padding: 10px 14px; }
.apply__close:active { scale: 0.97; }
.apply__view { padding: clamp(8px, 1vw, 16px) clamp(18px, 3vw, 40px) clamp(28px, 4vw, 48px); }
.apply__view[hidden] { display: none; }
.apply__title { font-size: clamp(40px, 5vw, 84px); }
.apply__lede { margin-top: 14px; font-size: clamp(17px, 1.3vw, 20px); max-width: 52ch; }
.starts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.chip {
  border: 0; border-radius: 0; cursor: pointer;
  background: var(--white-2); color: var(--black);
  padding: 12px 15px; font-weight: 600; font-size: 15px; text-align: left;
  transition: background-color 180ms ease, color 180ms ease, scale 140ms var(--ease-out);
}
.chip:active { scale: 0.97; }
.chip[aria-pressed="true"] { background: var(--black); color: var(--green); }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-pressed="true"]) { background: #d9d9d3; } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; padding-top: 10px; }
.plan {
  position: relative; background: var(--pure); padding: clamp(22px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
  transition: translate 300ms var(--ease-out), box-shadow 300ms ease;
}
.plan--dark { background: var(--black); color: var(--white); }
.plan__name { font-size: clamp(36px, 3.6vw, 60px); }
.plan__sub { font-weight: 700; color: var(--grey); margin-top: -8px; }
.plan--dark .plan__sub { color: var(--grey-d); }
.plan__price { display: flex; align-items: baseline; gap: 12px; }
.plan__price .display { font-size: clamp(48px, 5vw, 84px); }
.plan__price s { font-weight: 600; opacity: 0.6; }
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.facts li { background: var(--white-2); padding: 10px 12px; font-size: 14px; line-height: 1.25; }
.plan--dark .facts li { background: var(--black-3); }
.facts b { display: block; font-stretch: 62%; font-weight: 800; font-size: clamp(24px, 2vw, 32px); line-height: 1; text-transform: uppercase; margin-bottom: 4px; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; background: var(--black); }
.plan--dark .ticks li::before { background: var(--green); }
.more-info summary { cursor: pointer; font-weight: 700; list-style: none; display: inline-flex; gap: 10px; }
.more-info summary::-webkit-details-marker { display: none; }
.more-info summary::before { content: "+"; font-weight: 800; width: 14px; transition: rotate 200ms var(--ease-out); }
.more-info[open] summary::before { rotate: 45deg; }
.more-info ol { margin-top: 12px; padding-left: 1.6em; display: grid; gap: 4px; }
.tracks { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.plan--dark .tracks li { color: var(--grey-d); }
.plan--dark .tracks b { color: var(--white); }
.plan__go { align-self: stretch; }
.plan.is-picked { translate: 0 -6px; box-shadow: 0 0 0 4px var(--green); }
.plan.is-picked::before {
  content: "Our pick for you"; position: absolute; top: -16px; right: 18px; z-index: 2;
  background: var(--green); color: var(--black); transform: rotate(3deg);
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; font-size: 18px; padding: 8px 12px 7px;
}

.apply__picked { margin: 14px 0 26px; font-size: 17px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px var(--gap); max-width: 820px; }
.form .btn, .form__error, .form__note { grid-column: 1 / -1; }
.field-in { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 15px; }
.field-in input, .field-in select {
  font: inherit; font-weight: 500; font-size: 17px; color: var(--black);
  height: 54px; padding: 0 16px; border: 0; border-radius: 0; background: var(--pure);
  box-shadow: inset 0 0 0 2px var(--white-2); transition: box-shadow 160ms ease; width: 100%;
}
.field-in input:focus, .field-in select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--black); }
.field-in input[aria-invalid="true"], .field-in select[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.phone { display: flex; }
.phone__cc { display: grid; place-items: center; padding: 0 14px; background: var(--white-2); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { color: var(--error); font-weight: 700; min-height: 1.2em; }
.form__error:empty { display: none; }
.form__note { color: var(--grey); font-size: 14px; }
.form .btn[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

.apply__done { padding-top: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.apply__done[hidden] { display: none; }
.done__mark { width: 72px; height: 72px; background: var(--green); margin-bottom: 18px; position: relative; }
.done__mark::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: var(--black); }
.apply__done .btn { margin-top: 24px; }

/* team view */
.admin { width: min(1240px, calc(100vw - 2 * var(--m))); }
.admin__title { font-weight: 800; font-size: 22px; }
.admin__lock { padding: 8px clamp(18px, 3vw, 40px) 36px; display: grid; gap: 14px; max-width: 420px; }
.admin__lock[hidden], .admin__data[hidden], .admin__change[hidden], .admin__empty[hidden] { display: none; }
.admin__data { padding: 0 clamp(18px, 3vw, 40px) 36px; }
.admin__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.admin__count { font-weight: 700; width: 100%; }
.admin__filters { display: flex; flex-wrap: wrap; gap: 6px; }
.admin__search { font: inherit; height: 44px; padding: 0 14px; border: 0; box-shadow: inset 0 0 0 2px var(--white-2); background: var(--pure); min-width: 240px; flex: 1; }
.admin__search:focus { outline: none; box-shadow: inset 0 0 0 2px var(--black); }
.admin__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.admin__actions .btn { min-height: 44px; }
.admin__change { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-bottom: 16px; }
.admin__change .field-in { min-width: 260px; }
.admin__table { overflow-x: auto; background: var(--pure); }
.admin table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin th { text-align: left; padding: 12px 14px; background: var(--black); color: var(--white); font-weight: 700; white-space: nowrap; }
.admin td { padding: 12px 14px; vertical-align: top; }
.admin tbody tr:nth-child(even) td { background: var(--white); }
.admin td a { font-weight: 700; }
.admin td .wa { margin-left: 8px; font-weight: 600; color: var(--grey); }
.admin__empty { padding: 24px 14px; color: var(--grey); }

/* pixel reveal (added by script) */
.px {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  display: grid; grid-template-columns: repeat(var(--px-c, 12), 1fr);
}
.px i { background: var(--px-color, var(--ground)); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .mentors__list { grid-template-columns: repeat(2, 1fr); }
  .months { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 899px) {
  :root { --nav-h: 62px; --t-hero: 13.6vw; }
  .nav { grid-template-columns: auto 1fr; column-gap: 12px; font-size: 12px; }
  .nav__tag, .nav__links, .cta-long { display: none; }
  .cta-short { display: inline; }
  .nav__logo { width: 100px; justify-self: start; }

  .hero__stage { height: auto; min-height: 0; display: flex; flex-direction: column; gap: 26px; }
  .hero__slot { display: none; }
  .hero__media { position: relative; inset: auto; clip-path: none; aspect-ratio: 4 / 3; order: 2; }
  .hero__copy { order: 3; }
  .hero__over { display: none; }
  .hero__tag { right: auto; left: 12px; bottom: 12px; }

  .quests__intro, .weekend__head { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
  .quests__track { display: block; width: auto; height: auto; min-height: 0; padding: 0; }
  .q { display: flex; flex-direction: column; height: auto; padding: 0 0 56px; }
  .q__name {
    writing-mode: horizontal-tb; transform: none; font-size: 21vw; line-height: 0.86;
    margin: 0 var(--m) 14px; flex-wrap: wrap; column-gap: 0.25em; align-items: flex-start;
  }
  .q__panel { width: auto; margin: 0 var(--m); }
  .q__panel--tall { grid-template-columns: 1fr; }
  .q__panel--tall .q__media { grid-row: 1; grid-column: 1; height: auto; aspect-ratio: 4 / 5; }
  .q__panel--wide .q__media { aspect-ratio: 4 / 3; }
  .q__story { width: auto; padding: 28px var(--m) 20px; }
  .q__collage { width: auto; margin: 0 var(--m); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .q__collage .ph { position: relative; inset: auto !important; width: auto !important; height: auto !important; aspect-ratio: 3 / 4; }
  .c3 .ph:nth-child(3) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .q--end { width: auto; margin: 0; padding: 56px var(--m); }

  .field { height: auto; padding: var(--section) var(--m); display: flex; flex-direction: column; gap: 32px; }
  .field__center { position: static; transform: none; width: auto; text-align: left; align-items: flex-start; order: -1; }
  .field__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .field__photos .f { position: static; width: 100%; height: 100%; aspect-ratio: 3 / 4; }
  .field__photos .f1, .field__photos .f5 { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

  .cinema__frame { clip-path: inset(10% 6% 10% 6% round 6px); }

  .weekend__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .weekend__pic, .weekend__pic--b { grid-column: auto; }
  .days { grid-column: 1 / -1; grid-row: 1; padding: 0 0 32px; }
  .months { grid-template-columns: 1fr; }

  .mentors__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
  .mentors__list { grid-template-columns: 1fr; }

  .certs, .join, .faq { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
  .faq h2 { position: static; }

  .reels__head { flex-direction: column; align-items: flex-start; }
  .reels__row {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px;
    margin: 0 calc(var(--m) * -1); padding: 0 var(--m); scrollbar-width: none;
  }
  .reels__row::-webkit-scrollbar { display: none; }
  .reel { flex: 0 0 66vw; scroll-snap-align: start; }

  .footer__small { margin-left: 0; }

  dialog { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; }
  .apply__steps { gap: 14px; font-size: 14px; }
  .plans { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
