/* ===================================================================
   Drift Academy International — prototype redesign
   Design language: cinematic, near-black, full-bleed, uppercase display
   =================================================================== */

:root {
  --ink: #0b0b0c;
  --ink-2: #141416;
  --paper: #f4f3ef;
  --paper-dim: #cfcdc7;
  --grey: #8a8a8a;
  --line: rgba(244, 243, 239, 0.14);
  --ember: #e8552d;
  --ember-hi: #ff6a3d;

  --wrap: 1280px;
  --pad: clamp(20px, 5vw, 80px);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

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

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ember);
}

.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-title {
  font-family: var(--f-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
}
.section-desc { margin-top: 22px; color: var(--paper-dim); font-size: 1.05rem; max-width: 52ch; }
.section-head--light .section-title,
.section-head--light .section-desc { color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  cursor: pointer;
}
.btn--ember { background: var(--ember); color: #fff; }
.btn--ember:hover { background: var(--ember-hi); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--paper); background: rgba(244,243,239,0.06); transform: translateY(-2px); }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: 1600px; margin: 0 auto; padding: 22px var(--pad);
  display: flex; align-items: center; gap: 32px;
}
.nav.is-stuck {
  background: rgba(11, 11, 12, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.is-stuck .nav__inner { padding-block: 14px; }
.nav__logo img { height: 34px; width: auto; transition: height .4s var(--ease); }
.nav.is-stuck .nav__logo img { height: 28px; }

.nav__links { display: flex; gap: 34px; margin-left: auto; }
.nav__links a {
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper); opacity: 0.85; position: relative; padding: 4px 0;
  transition: opacity .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--ember); transition: width .3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }

.nav__cta { padding: 12px 24px; }

.nav__burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  cursor: pointer; padding: 6px; margin-left: auto;
}
.nav__burger span { width: 26px; height: 2px; background: var(--paper); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08);
  transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.15) 35%, rgba(11,11,12,0.55) 75%, rgba(11,11,12,0.96) 100%),
    linear-gradient(90deg, rgba(11,11,12,0.65) 0%, rgba(11,11,12,0) 55%);
}

.hero__content {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad);
  height: 100%; display: flex; flex-direction: column; justify-content: center;
  max-width: 1100px;
}
.hero__content .eyebrow { margin-bottom: 26px; }
.hero__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase;
  line-height: 0.86; letter-spacing: -0.02em;
  font-size: clamp(3.4rem, 12vw, 10rem);
}
.hero__title span { display: block; }
.hero__sub { margin-top: 30px; max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--paper-dim); }
.hero__actions { margin-top: 42px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--paper-dim);
}
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--ember), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: -46px; left: 0; width: 100%; height: 46px; background: var(--paper);
  animation: scrollcue 2.2s var(--ease) infinite;
}
@keyframes scrollcue { 0% { top: -46px; } 60%,100% { top: 46px; } }

.hero__dots { position: absolute; bottom: 40px; right: var(--pad); z-index: 3; display: flex; gap: 12px; }
.hero__dots button {
  width: 34px; height: 3px; border: 0; background: rgba(244,243,239,0.28); cursor: pointer; padding: 0;
  transition: background .3s var(--ease);
}
.hero__dots button.is-active { background: var(--ember); }

/* ===================================================================
   MANIFESTO
   =================================================================== */
.manifesto { padding: clamp(90px, 15vw, 200px) 0; text-align: center; background: var(--ink); }
.manifesto .eyebrow { margin-bottom: 26px; }
.manifesto__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.02em; font-size: clamp(2.8rem, 8vw, 6.5rem);
  margin-bottom: 40px;
}
.manifesto__lead {
  max-width: 60ch; margin: 0 auto 22px; font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--paper-dim); font-weight: 300;
}

/* ===================================================================
   PROGRAMS
   =================================================================== */
.programs { padding: clamp(70px, 10vw, 130px) 0; background: var(--ink-2); }

.program-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px;
}
.card {
  grid-column: span 2;
  background: var(--ink); border: 1px solid var(--line); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(232,85,45,0.55); }
.card--feature { grid-column: span 3; }

.card__media { aspect-ratio: 4/3; overflow: hidden; }
.card--feature .card__media { aspect-ratio: 16/10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }

.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card__tag {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey);
  font-weight: 600; margin-bottom: 14px;
}
.card__tag--ember { color: var(--ember); }
.card__title {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1; margin-bottom: 14px;
}
.card__desc { color: var(--paper-dim); font-size: 0.96rem; flex: 1; }
.card__foot {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
}
.card__price { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; }
.card__link {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ember);
  transition: transform .3s var(--ease); display: inline-block;
}
.card__link:hover { transform: translateX(4px); }

/* ===================================================================
   METHOD
   =================================================================== */
.method { background: var(--ink); }
.method__panel { display: grid; grid-template-columns: 1fr 1fr; min-height: min(88vh, 760px); }
.method__panel--reverse .method__media { order: 2; }
.method__media { background-size: cover; background-position: center; min-height: 52vh; }
.method__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 8vw, 110px) clamp(var(--pad), 8vw, 120px);
}
.method__text .eyebrow { margin-bottom: 22px; }
.method__text h3 {
  font-family: var(--f-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 0.98; font-size: clamp(2rem, 4.5vw, 3.6rem); margin-bottom: 24px;
}
.method__text p { color: var(--paper-dim); font-size: 1.08rem; max-width: 46ch; }

/* ===================================================================
   STATS / REACH
   =================================================================== */
.stats { position: relative; padding: clamp(90px, 14vw, 170px) 0; background-size: cover; background-position: center; background-attachment: fixed; }
.stats__scrim { position: absolute; inset: 0; background: rgba(11,11,12,0.78); }
.stats .wrap { position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 10px; }
.stat { text-align: center; padding: 20px 0; border-top: 1px solid var(--line); }
.stat__num {
  display: block; font-family: var(--f-display); font-weight: 800; line-height: 1;
  font-size: clamp(3rem, 7vw, 5.5rem); color: var(--paper);
}
.stat__label {
  display: block; margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--paper-dim);
}
.stats__note { margin-top: 50px; text-align: center; color: var(--paper-dim); letter-spacing: 0.06em; }

/* ===================================================================
   GALLERY
   =================================================================== */
.gallery { padding: clamp(70px, 10vw, 130px) 0 0; background: var(--ink-2); }
.gallery__grid {
  margin-top: 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 10px; grid-auto-flow: dense;
}
.g-item { overflow: hidden; margin: 0; position: relative; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.g-item:hover img { transform: scale(1.08); }
.g-item--wide { grid-column: span 2; }
.g-item--tall { grid-row: span 2; }

/* ===================================================================
   CTA BAND
   =================================================================== */
.cta-band { position: relative; padding: clamp(100px, 16vw, 200px) 0; background-size: cover; background-position: center; text-align: center; }
.cta-band__scrim { position: absolute; inset: 0; background: linear-gradient(rgba(11,11,12,0.7), rgba(11,11,12,0.85)); }
.cta-band__inner { position: relative; z-index: 2; max-width: 700px; }
.cta-band .eyebrow { margin-bottom: 22px; }
.cta-band__title {
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em;
  line-height: 0.9; font-size: clamp(2.8rem, 9vw, 6.5rem); margin-bottom: 26px;
}
.cta-band__desc { color: var(--paper-dim); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 40px; }
.cta-band__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer { position: relative; padding: clamp(70px, 10vw, 120px) 0 0; background-size: cover; background-position: center; }
.footer__scrim { position: absolute; inset: 0; background: rgba(11,11,12,0.92); }
.footer__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 60px; }
.footer__logo { height: 40px; width: auto; margin-bottom: 18px; }
.footer__tag { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--paper-dim); }
.footer__col h4 { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ember); margin-bottom: 18px; font-weight: 600; }
.footer__col p { color: var(--paper-dim); font-size: 0.95rem; line-height: 1.9; }
.footer__col a { transition: color .3s var(--ease); }
.footer__col a:hover { color: var(--paper); }
.footer__bar {
  position: relative; z-index: 2; border-top: 1px solid var(--line);
  padding: 26px var(--pad); max-width: var(--wrap); margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; letter-spacing: 0.08em; color: var(--grey); text-transform: uppercase;
}

/* ===================================================================
   REVEAL ANIMATION
   =================================================================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1024px) {
  .card, .card--feature { grid-column: span 3; }
  .program-grid { grid-template-columns: repeat(6, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(11,11,12,0.97); backdrop-filter: blur(14px);
    padding: 10px var(--pad) 26px; border-bottom: 1px solid var(--line);
  }
  .nav__links.is-open a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1rem; opacity: 1; }

  .hero__scrim { background:
    linear-gradient(180deg, rgba(11,11,12,0.5) 0%, rgba(11,11,12,0.25) 40%, rgba(11,11,12,0.95) 100%); }
  .hero__dots { display: none; }
  .hero__content .eyebrow { font-size: 0.6rem; letter-spacing: 0.16em; }
  .hero__sub { font-size: 1rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  .program-grid { grid-template-columns: 1fr; }
  .card, .card--feature { grid-column: 1 / -1; }
  .card--feature .card__media { aspect-ratio: 4/3; }

  .method__panel, .method__panel--reverse { grid-template-columns: 1fr; }
  .method__panel--reverse .method__media { order: 0; }
  .method__media { min-height: 60vw; }

  .stats { background-attachment: scroll; }
  .stats__grid { grid-template-columns: 1fr 1fr; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 46vw; }
  .g-item--tall { grid-row: span 1; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .stats__grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 8px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity 0.6s ease; transform: none; }
  html { scroll-behavior: auto; }
  .stats { background-attachment: scroll; }
}
