/* =========================================================
   Sanor016 — landing page
   Design reference width: 1348px. Everything scales with
   --u (1 design px) and is clamped to stay readable on phones.
   ========================================================= */

:root {
  --u: min(1px, calc(100vw / 1348));
  --yellow: #f5aa03;
  --gold: #f0b90b;
  --bg: #000;
  --bg-2: #0e0e0f;
  --text: #f3f3f3;
  --muted: #d4d4d4;
  --font: "Rubik", system-ui, sans-serif;
  --font-wix: "Wix Madefor Text", "Rubik", sans-serif;
  --font-wix-display: "Wix Madefor Display", "Rubik", sans-serif;
  --gutter: max(16px, calc(96 * var(--u)));
  --container: 1156px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow-x: clip) { body { overflow-x: clip; } }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

/* ---------- shared ---------- */
.title {
  color: var(--gold);
  font-weight: 500;
  text-align: center;
  margin-inline: auto;
  text-wrap: balance;
}
.title--lg { font-size: max(21px, calc(28 * var(--u))); line-height: 1.254; max-width: max(300px, calc(440 * var(--u))); }
.title--xl { font-size: max(24px, calc(35.17 * var(--u))); line-height: 1.3; }
.title--md { font-size: max(20px, calc(25 * var(--u))); line-height: 1.3; }
.title--students { font-size: max(20px, calc(26 * var(--u))); line-height: 1.3; }

.lead {
  font-size: max(14.5px, calc(17.05 * var(--u)));
  line-height: 1.4;
  color: var(--text);
  text-align: center;
  margin-inline: auto;
}
.lead--white { color: #fff; }

.body {
  font-size: max(14px, calc(15.98 * var(--u)));
  line-height: 1.4;
  text-align: center;
  margin-inline: auto;
}
.body--accent { color: var(--gold); }

.btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: linear-gradient(180deg, #2b2b2b, #1c1c1c);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .06);
  color: #c6c6c8;
  font-weight: 300;
  white-space: nowrap;
  transition: background .2s, color .2s, transform .2s;
}
.btn-dark:hover { background: linear-gradient(180deg, #363636, #242424); color: #fff; }
.btn-dark:active { transform: translateY(1px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: max(560px, calc(680 * var(--u)));
  min-height: max(560px, calc(680 * var(--u)));
  overflow: hidden;
  isolation: isolate;
  background: #050505;
}
@media (min-width: 1349px) {
  .hero { height: min(calc(100vw * 680 / 1348), 900px); }
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  z-index: -2;
}
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

/* Header */
.header {
  position: absolute;
  inset: 0 0 auto 0;
  height: max(64px, calc(76 * var(--u)));
  display: flex;
  align-items: center;
  padding-inline: max(16px, calc(53 * var(--u))) max(16px, calc(82 * var(--u)));
  gap: 0;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: max(8px, calc(11 * var(--u)));
  flex-shrink: 0;
}
.brand__icon { width: max(26px, calc(32.17 * var(--u))); height: auto; }
.brand__name {
  color: var(--yellow);
  font-weight: 500;
  font-size: max(15px, calc(16.55 * var(--u)));
  line-height: 1.4;
  letter-spacing: .02em;
  direction: ltr;
}
.nav {
  display: flex;
  align-items: center;
  gap: calc(19.64 * var(--u));
  margin-inline: calc(37 * var(--u)) auto;
  font-size: max(12.5px, calc(13.76 * var(--u)));
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
}
.nav a { color: #fff; transition: color .2s; }
.nav a:hover, .nav a.is-active { color: var(--yellow); }

.header__cta {
  flex-shrink: 0;
  margin-inline-start: auto;
  width: max(150px, calc(166 * var(--u)));
  height: max(38px, calc(40 * var(--u)));
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #000;
  border-radius: 22px;
  font-size: max(13px, calc(14 * var(--u)));
  line-height: 1.4;
  transition: filter .2s, transform .2s;
}
.nav + .header__cta { margin-inline-start: 0; }
.header__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero content */
.hero__content {
  position: absolute;
  top: calc(165.9 * var(--u));
  inset-inline-start: var(--gutter);
  width: min(726px, calc(100% - 2 * var(--gutter)));
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* RTL: start = right */
  gap: calc(5 * var(--u));
  text-align: right;
}
.hero__title {
  color: #fff;
  font-weight: 700;
  font-size: max(36px, calc(62.9 * var(--u)));
  line-height: 1.5;
}
.hero__subtitle {
  color: var(--yellow);
  font-weight: 700;
  font-size: max(27px, calc(49.8 * var(--u)));
  line-height: 1.5;
}
.hero__tagline {
  color: var(--muted);
  font-weight: 300;
  font-size: max(18px, calc(30.14 * var(--u)));
  line-height: 1.52;
}
.hero__cta {
  margin-top: 0;
  width: max(200px, calc(306 * var(--u)));
  height: max(46px, calc(56 * var(--u)));
  display: grid;
  place-items: center;
  border-radius: 37px;
  background: var(--yellow);
  color: #080808;
  font-size: max(18px, calc(26.2 * var(--u)));
  line-height: 1.5;
  transition: filter .2s, transform .2s, box-shadow .2s;
}
.hero__cta:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(245,170,3,.3); }

.topics {
  position: absolute;
  top: calc(620 * var(--u));
  inset-inline-start: var(--gutter);
  display: flex;
  gap: calc(20 * var(--u));
  font-size: max(13px, calc(17 * var(--u)));
  font-weight: 300;
  line-height: 1.53;
  color: #fff;
}
.topics li:nth-child(1) { width: calc(132 * var(--u)); }
.topics li:nth-child(2) { width: calc(135 * var(--u)); }
.topics li:nth-child(3) { width: calc(171 * var(--u)); }

/* =========================================================
   RESOURCES
   ========================================================= */
.resources {
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-2) calc(100% - 140px), #000 100%);
  padding: max(32px, calc(40 * var(--u))) var(--gutter) max(40px, calc(70 * var(--u)));
  position: relative;
}
.resources::after { /* soft hand-off into the black coin section */
  content: "";
  position: absolute;
  inset: auto 0 calc(-60 * var(--u)) 0;
  height: calc(120 * var(--u));
  background: linear-gradient(180deg, var(--bg-2), #000);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
}
.cards {
  max-width: var(--container);
  margin: max(20px, calc(24 * var(--u))) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: max(14px, calc(24 * var(--u)));
  position: relative;
  z-index: 2;
}
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 12px;
  overflow: hidden;
  background: #141414;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.5); border-color: rgba(245,170,3,.35); }
.card__img {
  width: 100%;
  aspect-ratio: 271 / 182;
  object-fit: cover;
}
.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, calc(18 * var(--u)));
  background:
    radial-gradient(150px 59px at 22% 100%, var(--glow), transparent),
    #141414;
}
.card__title {
  color: #f4f4f4;
  font-weight: 500;
  font-size: max(16px, calc(19 * var(--u)));
  line-height: 1.37;
  text-align: right;
}
.card__btn {
  height: 44px;
  width: 100%;
  color: #eee;
  font-weight: 500;
  font-size: 14px;
}

/* =========================================================
   WHY CRYPTO (coins)
   ========================================================= */
.coins {
  position: relative;
  max-width: 1568px;
  margin: calc(-10 * var(--u)) auto 0;
  height: min(calc(665 * var(--u)), 665px);
  overflow-x: clip;
  min-height: 250px;
  z-index: 2;
}
.coins__img {
  position: absolute;
  inset-inline: calc(-122 * var(--u));
  top: 0;
  width: calc(100% + 244 * var(--u));
  max-width: none;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
}
.coins__title {
  position: relative;
  padding-top: calc(23 * var(--u));
  z-index: 3;
}

/* =========================================================
   FINANCIAL FREEDOM (cars)
   ========================================================= */
.freedom {
  position: relative;
  margin-top: calc(-76 * var(--u));
  z-index: 3;
}
.freedom__text {
  position: relative;
  z-index: 2;
  padding-inline: var(--gutter);
}
.freedom__text .lead { max-width: 773px; margin-top: max(12px, calc(23 * var(--u))); }
.freedom__media {
  position: relative;
  max-width: 1348px;
  margin: calc(-72 * var(--u)) auto 0;
  aspect-ratio: 1348 / 555;
  overflow: hidden;
  z-index: 1;
}
.freedom__media img {
  position: absolute;
  left: 0;
  top: -11.99%;
  width: 100%;
  height: 111.92%;
  max-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}

/* =========================================================
   BENEFITS (podium)
   ========================================================= */
.benefits {
  position: relative;
  padding-top: calc(18 * var(--u));
}
.benefits__text {
  position: relative;
  z-index: 2;
  padding: calc(31 * var(--u)) var(--gutter) 0;
}
.benefits__text .title { margin-bottom: max(12px, calc(15 * var(--u))); }
.benefits__text .body { max-width: 756px; }
.benefits__text .body + .body { max-width: 508px; margin-top: calc(8 * var(--u)); }
.benefits__text .body:first-of-type { margin-bottom: max(8px, calc(8 * var(--u))); }
.benefits__media {
  position: relative;
  z-index: 1;
  width: min(calc(1183 * var(--u)), 1183px);
  margin: calc(-184 * var(--u)) auto 0;
  aspect-ratio: 1183 / 666;
}
.benefits__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 96%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 96%);
}

/* =========================================================
   PROMO (500K+ / beginner)
   ========================================================= */
.promo {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(22.7 * var(--u));
  max-width: 1095px;
  width: calc(100% - 2 * max(16px, calc(126 * var(--u))));
  margin: calc(-40 * var(--u)) auto 0;
}
.promo__stat {
  border: .95px solid rgba(255, 255, 255, .09);
  border-radius: 11.4px;
  background: linear-gradient(71.6deg, #f5aa03 4.19%, #f3c02a 86.97%);
  padding: calc(20 * var(--u)) max(20px, calc(52 * var(--u))) max(20px, calc(24 * var(--u))) max(20px, calc(48 * var(--u)));
  text-align: right;
  aspect-ratio: 536 / 255;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.promo__num {
  font-family: var(--font-wix-display);
  font-weight: 700;
  color: #000;
  font-size: max(38px, calc(56.5 * var(--u)));
  line-height: 1.3;
  direction: ltr;
  text-align: right;
}
.promo__text {
  color: #3c3c3c;
  font-size: max(15px, calc(22.39 * var(--u)));
  line-height: 1.3;
  max-width: 416px;
  margin-top: calc(2 * var(--u));
}
.promo__banner {
  display: block;
  border-radius: 14.2px;
  overflow: hidden;
  aspect-ratio: 536 / 255;
  transition: transform .25s;
}
.promo__banner:hover { transform: translateY(-3px); }
.promo__banner img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   STUDENTS
   ========================================================= */
.students {
  padding: max(56px, calc(101 * var(--u))) var(--gutter) max(48px, calc(57 * var(--u)));
  text-align: center;
}
.students .lead { max-width: 657px; margin-top: max(14px, calc(23 * var(--u))); }
.students__img {
  width: min(calc(557 * var(--u)), 557px);
  min-width: 320px;
  margin: calc(-23 * var(--u)) auto 0;
  aspect-ratio: 557 / 186;
  object-fit: cover;
}
.students__btn {
  width: 192px;
  height: 44px;
  margin-top: calc(5 * var(--u));
  font-size: max(15px, calc(16.79 * var(--u)));
}

/* =========================================================
   CTA BAND
   ========================================================= */
.band {
  position: relative;
  z-index: 2;
  background: linear-gradient(23.58deg, #f5aa03 4.19%, #f3c02a 86.97%);
}
.band__inner {
  max-width: 1348px;
  margin-inline: auto;
  min-height: max(96px, calc(110 * var(--u)));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: max(16px, calc(19 * var(--u))) max(16px, calc(140 * var(--u))) max(16px, calc(19 * var(--u))) max(16px, calc(126 * var(--u)));
}
.band__text {
  color: #000;
  font-size: max(18px, calc(27 * var(--u)));
  line-height: 1.3;
  max-width: 508px;
  text-align: right;
}
.band__btn {
  flex-shrink: 0;
  width: max(200px, calc(232.28 * var(--u)));
  height: 45px;
  font-size: max(15px, calc(16.79 * var(--u)));
}

/* =========================================================
   FOOTER — exact Figma composition.
   Coordinates are design px measured from the band's bottom edge
   (y = 3877 in the frame) and from the frame's centre line (x = 674).
   ========================================================= */
.footer {
  --fu: var(--u);      /* scale of the background layers */
  --fy: 0px;           /* extra vertical offset for the mountains (mobile) */
  --mu: var(--fu);     /* scale of the mountains layer */
  --gx: var(--fu);     /* horizontal scale of glow + side shades */
  --gy: var(--fu);     /* vertical scale of glow + side shades */
  position: relative;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.footer__stage {
  position: relative;
  height: calc(545 * var(--u));
}
.fl {
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
/* Group 2 (conic-gradient light): x 0, y 3483, 1348 x 788 */
.fl--glow {
  z-index: -4;
  left: calc(50% - 674 * var(--gx));
  top: calc(-394 * var(--gy));
  width: calc(1348 * var(--gx));
  height: calc(788 * var(--gy));
}
/* Ellipse 1 / Ellipse 2 (blurred black shapes), incl. blur bleed */
.fl--shade {
  z-index: -3;
  top: calc(-304.6 * var(--gy));
  width: calc(1488.2 * var(--gx));
  height: calc(1485.2 * var(--gy));
}
.fl--shade-r { left: calc(50% + 205.4 * var(--gx)); }
.fl--shade-l { left: calc(50% - 1711.6 * var(--gx)); transform: scaleX(-1); }
/* image 7 (mountains): x -4, y 3483, 1356 x 848 */
.fl--mtn {
  z-index: -2;
  left: calc(50% - 678 * var(--mu));
  top: calc(var(--fy) - 394 * var(--mu));
  width: calc(1356 * var(--mu));
  height: calc(848 * var(--mu));
  object-fit: cover;
}

.footer__disclaimer {
  position: absolute;
  top: calc(76 * var(--u));
  left: calc(50% + 0.5 * var(--u));
  translate: -50% 0;
  width: calc(627 * var(--u));
  color: #000;
  text-align: center;
  font-size: max(11px, calc(16.804 * var(--u)));
  line-height: 1.6;
}
.footer__logo {
  position: absolute;
  top: calc(364 * var(--u));
  left: calc(50% - 548 * var(--u));
  display: flex;
  align-items: flex-start;
  gap: calc(1.95 * var(--u));
}
.footer__logo img { width: calc(120.05 * var(--u)); height: calc(80 * var(--u)); object-fit: cover; }
.footer__logo span {
  margin-top: calc(11 * var(--u));
  font-family: var(--font-wix);
  color: var(--gold);
  font-size: calc(53.281 * var(--u));
  line-height: 1.1;
  white-space: nowrap;
}
.socials {
  position: absolute;
  top: calc(401 * var(--u));
  left: calc(50% + 368 * var(--u));
  display: flex;
  gap: calc(10.3 * var(--u));
}
.socials a { display: block; transition: transform .2s, opacity .2s; }
.socials a:hover { transform: translateY(-2px); opacity: .8; }
.socials img { width: calc(23.25 * var(--u)); height: calc(23.25 * var(--u)); }
.footer__nav {
  position: absolute;
  top: calc(470 * var(--u));
  right: calc(50% - 493.73 * var(--u));
  display: flex;
  gap: calc(18.547 * var(--u));
  font-size: calc(12.994 * var(--u));
  font-weight: 300;
  line-height: 1.4;
  white-space: nowrap;
}
.footer__nav a { color: #fff; transition: color .2s; }
.footer__nav a:hover, .footer__nav a.is-active { color: var(--yellow); }
.footer__copy {
  position: absolute;
  top: calc(473 * var(--u));
  left: calc(50% - 514 * var(--u));
  font-family: var(--font-wix);
  color: #e4e4e4;
  font-size: calc(9.487 * var(--u));
  line-height: 1.4;
  white-space: pre;
}

/* Phones: same artwork, content stacked so text stays readable */
@media (max-width: 760px) {
  .footer { --gx: .5px; --gy: .85px; --mu: .7px; --fy: 75px; }
  .fl--glow {
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  }
  .footer__stage {
    height: auto;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 44px 20px 32px;
  }
  .footer__disclaimer,
  .footer__logo,
  .socials,
  .footer__nav,
  .footer__copy { position: static; translate: none; }
  .footer__disclaimer { width: auto; max-width: 360px; font-size: 14px; }
  .footer__logo {
    margin-top: auto; align-items: center; gap: 10px;
    /* optical centring: the wide wordmark makes the group read right-heavy */
    position: relative; top: 0; left: -10px;
  }
  .footer__logo img { width: 46px; height: auto; object-fit: contain; }
  .footer__logo span { margin: 0; font-size: 34px; line-height: 1; }

  .socials { gap: 12px; margin-top: 4px; }
  .socials a {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
  }
  .socials img { width: 20px; height: 20px; }

  .footer__nav { display: none; } /* phones use the ☰ menu at the top instead */

  .footer__copy {
    width: 100%;
    max-width: 340px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: 10.5px;
    color: #9a9a9a;
    white-space: normal;
    text-wrap: balance;
    text-align: center;
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet / small laptop: collapse the nav into a menu */
@media (max-width: 1080px) {
  .burger { display: flex; }
  .header { gap: 12px; }
  .header__cta { margin-inline-start: auto; }
  .nav {
    position: absolute;
    top: calc(100% + 4px);
    inset-inline: 16px;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    background: rgba(12,12,12,.92);
    backdrop-filter: blur(12px);
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .nav a:hover { background: rgba(255,255,255,.05); }
  .header.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav + .header__cta { margin-inline-start: auto; }

  .cards { grid-template-columns: repeat(2, 1fr); max-width: 640px; }
}

/* Phones & portrait tablets */

@media (max-width: 760px) {
  .hero { height: auto; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__bg { object-position: 22% center; }
  .hero__shade {
    background:
      linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.75) 38%, rgba(0,0,0,0) 70%),
      linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 18%);
  }
  .hero__content {
    position: relative;
    top: auto;
    inset-inline-start: auto;
    width: auto;
    padding: 120px 20px 0;
    gap: 2px;
  }
  .hero__cta { margin-top: 14px; }
  .topics {
    position: relative;
    top: auto;
    inset-inline-start: auto;
    padding: 22px 20px 26px;
    gap: 22px;
    flex-wrap: wrap;
  }
  .topics li { width: auto !important; }
  .topics li::before { content: "•"; color: var(--yellow); margin-inline-end: 6px; }

  .header__cta { width: auto; padding-inline: 14px; font-size: 12.5px; height: 36px; }

  .coins { margin-top: 0; min-height: 230px; }
  .coins__img {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 14%, rgba(0,0,0,.35) 30%, #000 48%, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, transparent 14%, rgba(0,0,0,.35) 30%, #000 48%, #000 72%, transparent 100%);
  }
  .freedom { margin-top: 18px; }
  .students { padding-top: 64px; }
  .students .title--students { font-size: 21px; line-height: 1.5; max-width: 300px; text-wrap: balance; }
  .students .lead {
    max-width: 330px;
    margin-top: 16px;
    font-size: 14.5px;
    line-height: 1.9;
    color: #cfcfcf;
    text-wrap: pretty;
  }
  .students__img { margin-top: 4px; }
  .freedom__text .lead {
    max-width: 330px;
    margin-top: 14px;
    font-size: 14.5px;
    line-height: 1.9;
    color: #cfcfcf;
    text-wrap: pretty;
  }
  .freedom__media { margin-top: 8px; }
  .benefits__text .body + .body { margin-top: 6px; }
  .benefits__media { width: 112%; margin: -12% -6% 0; max-width: none; }

  .promo { grid-template-columns: 1fr; gap: 16px; margin-top: 0; max-width: 540px; }
  .promo__stat { aspect-ratio: auto; padding: 24px; }

  .band__inner { flex-direction: column; text-align: center; padding-block: 28px; }
  .band__text { text-align: center; }

}

@media (max-width: 520px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 100%; }
  .card__body { padding: 12px; gap: 12px; }
  .card__title { font-size: 14px; line-height: 1.45; }
  .card__btn { height: 38px; font-size: 12.5px; }
  .hero__title { font-size: 34px; }
  .hero__subtitle { font-size: 25px; }
  .header__cta { display: none; }
  .brand { margin-inline-end: auto; }
  .lead, .body { text-align: center; }
  .students__img { min-width: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   MOTION (driven by animations.js)
   Easing approximates Framer's spring { bounce: .1, duration: 1.2 }
   ========================================================= */
:root { --ease-spring: cubic-bezier(.16, 1, .3, 1); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Initial hidden state (only while JS motion is active) */
html.js-anim [data-rv]:not(.rv-in),
html.js-anim:not(.anim-ready) :is(.hero__bg, .hero__eyebrow, .hero__title, .hero__subtitle, .hero__tagline, .hero__cta, .hero__actions, .pa-hero__visual, .hero__stats, .topics, .header) {
  opacity: 0;
}
[data-rv].rv-in {
  animation: rv-up var(--rv-dur, 1.2s) var(--ease-spring) var(--rv-d, 0s) both;
}
[data-rv="down"].rv-in { animation-name: rv-down; }
[data-rv="zoom"].rv-in { animation-name: rv-zoom; }

@keyframes rv-up {
  from { opacity: 0; transform: translate3d(0, var(--rv-y, 24px), 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes rv-down {
  from { opacity: 0; transform: translate3d(0, calc(-1 * var(--rv-y, 12px)), 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes rv-zoom {
  from { opacity: 0; transform: scale(1.1); }
  to   { opacity: 1; transform: none; }
}

/* Glass header after scrolling */
.header {
  position: fixed;
  transition: background-color .5s var(--ease-spring), backdrop-filter .5s, border-color .5s, height .5s var(--ease-spring);
  border-bottom: 1px solid transparent;
}
.hero { z-index: 50; }
.header.is-scrolled {
  background: rgba(10, 10, 10, .6);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255, 255, 255, .06);
}

/* Smoother interaction states (reference uses ~.3s ease-out hovers) */
.btn-dark, .hero__cta, .header__cta, .card, .promo__banner, .socials a {
  transition-timing-function: var(--ease-spring);
  transition-duration: .4s;
}
.card__img, .promo__banner img { transition: transform .8s var(--ease-spring); }
.card:hover .card__img, .promo__banner:hover img { transform: scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  [data-rv] { opacity: 1 !important; animation: none !important; }
}

/* ---------- Ultrawide screens: keep the header content in a comfortable centred width ---------- */
@media (min-width: 1800px) {
  .header { padding-inline: max(53px, calc((100vw - 1700px) / 2)); }
}

/* =========================================================
   One content range on desktop: everything (header, bars,
   hero copy, sections) stays inside the same width as the
   card grids — never wider, never closer to the screen edge.
   ========================================================= */
:root { --wrap: 1155px; }
@media (min-width: 1101px) {
  .header {
    padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)) !important;
  }
  .band__inner {
    max-width: var(--wrap) !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
  }
}
@media (min-width: 1101px) {
  .band__inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); }
}

/* footer: soften the left/right edges of the mountains and the gold light on wide screens */
.fl--mtn {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}
.fl--glow {
  -webkit-mask-image:
    linear-gradient(180deg, #000 72%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(180deg, #000 72%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
          mask-composite: intersect;
}

/* footer credit line: a bit bigger, upform.work highlighted and clickable */
.footer__copy { font-size: max(12.5px, calc(13.5 * var(--u))) !important; }
.footer__credit { color: var(--yellow); font-weight: 600; text-decoration: none; transition: color .2s; }
.footer__credit:hover { color: #ffd24d; text-decoration: underline; text-underline-offset: 3px; }
/* smaller laptops/tablets: credit line drops below the footer menu so they never touch */
@media (min-width: 761px) and (max-width: 1340px) {
  .footer__copy { top: calc(473 * var(--u) + 34px) !important; }
  .footer__stage { height: calc(545 * var(--u) + 34px); }
}

/* footer bottom row: credit and menu on one baseline, with real breathing room */
@media (min-width: 1341px) {
  .footer__copy, .footer__nav {
    top: calc(468 * var(--u)) !important;
    height: 26px; display: flex; align-items: center; line-height: 1;
  }
  .footer__copy { left: calc(50% - 548 * var(--u)) !important; font-size: 13px !important; }
  .footer__nav { font-size: 13.5px; gap: 20px; }
}

/* desktop header: bigger logo + menu (the button keeps its size) */
@media (min-width: 1101px) {
  .brand { gap: 12px; }
  .brand__icon { width: max(34px, calc(38 * var(--u))); }
  .brand__name { font-size: max(18px, calc(20 * var(--u))); }
  .nav { font-size: max(15px, calc(16 * var(--u))); gap: max(20px, calc(26 * var(--u))); font-weight: 400; }
}
@media (min-width: 1101px) and (max-width: 1260px) {
  .nav { font-size: 14px; gap: 15px; }
  .brand__name { font-size: 17px; }
  .brand__icon { width: 30px; }
}

/* =========================================================
   Phone / tablet menu v2 + bigger logo on small screens
   ========================================================= */
.nav__cta { display: none; }
@media (max-width: 1080px) {
  .brand__icon { width: 34px; }
  .brand__name { font-size: 19px; }

  .nav {
    top: calc(100% + 10px);
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,214,106,.18);
    background:
      radial-gradient(90% 60% at 100% 0%, rgba(245,170,3,.12), transparent 60%),
      rgba(10,10,10,.96);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.85);
    font-size: 16px;
    transform: translateY(-10px) scale(.98);
    transform-origin: top center;
    transition: opacity .3s, transform .4s var(--ease-spring), visibility .3s;
  }
  .header.is-open .nav { transform: none; }
  .nav a:not(.nav__cta) {
    position: relative;
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 16px;
    border-radius: 12px;
    font-weight: 400;
    color: #f1f1f1;
  }
  .nav a:not(.nav__cta) + a:not(.nav__cta)::before {   /* hairline between rows */
    content: ""; position: absolute; top: 0; inset-inline: 16px; height: 1px;
    background: rgba(255,255,255,.06);
  }
  .nav a:not(.nav__cta)::after {                       /* small chevron */
    content: ""; width: 7px; height: 7px; flex-shrink: 0;
    border-left: 1.6px solid rgba(255,255,255,.35); border-bottom: 1.6px solid rgba(255,255,255,.35);
    transform: rotate(45deg);
    transition: border-color .2s, transform .3s var(--ease-spring);
  }
  .nav a:not(.nav__cta):hover { background: rgba(255,255,255,.04); }
  .nav a:not(.nav__cta):hover::after { transform: translateX(-3px) rotate(45deg); border-color: var(--yellow); }
  .nav a.is-active {
    color: var(--yellow);
    background: rgba(245,170,3,.09);
  }
  .nav a.is-active::after { border-color: var(--yellow); }
  .nav a.is-active + a::before, .nav a + a.is-active::before { display: none; }

  .nav__cta {
    display: flex; align-items: center; justify-content: center;
    margin-top: 10px;
    height: 52px; border-radius: var(--btn-r, 10px);
    font-size: 16px; font-weight: 600;
    color: #0b0b0b !important;
    background: var(--gold-grad, linear-gradient(180deg, #ffd24d, #f5aa03));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 24px rgba(245,170,3,.25);
  }

  /* rows slide in one after another */
  .nav > a { opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease-spring); }
  .header.is-open .nav > a { opacity: 1; transform: none; }
  .header.is-open .nav > a:nth-child(2) { transition-delay: .03s; }
  .header.is-open .nav > a:nth-child(3) { transition-delay: .06s; }
  .header.is-open .nav > a:nth-child(4) { transition-delay: .09s; }
  .header.is-open .nav > a:nth-child(5) { transition-delay: .12s; }
  .header.is-open .nav > a:nth-child(6) { transition-delay: .15s; }
  .header.is-open .nav > a:nth-child(7) { transition-delay: .18s; }
}

/* phones: logo on the left, menu button on the right */
@media (max-width: 760px) {
  .header { direction: ltr; }
  .header .brand { margin-inline: 0 auto !important; }
  .header .nav, .header .header__cta { direction: rtl; }
  .header .header__cta { margin-inline: 0 10px; }
}
@media (max-width: 760px) { .header .brand { flex-direction: row-reverse; } }

.footer__privacy { color: inherit; font-weight: 400; }
.footer__privacy:hover { color: var(--yellow); }

/* =========================================================
   Mobile readability
   - cards: title sits right above its button (no gap when the
     neighbouring card's title wraps to two lines)
   - long paragraphs: framed box, right-aligned, roomy lines
   ========================================================= */
@media (max-width: 760px) {
  .card__body { justify-content: flex-end; gap: 10px; }

  .freedom__text .lead,
  .students .lead,
  .benefits__text .textbox {
    max-width: 100%;
    margin-inline: 0;
    padding: 18px 18px 18px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    border-inline-start: 3px solid var(--yellow);
    text-align: right;
    font-size: 15px;
    line-height: 2;
    color: #e2e2e4;
    text-wrap: pretty;
  }
  .benefits__text .textbox { margin-top: 14px; }
  .benefits__text .textbox .body {
    max-width: none; margin: 0; text-align: right;
    font-size: 15px; line-height: 2; color: #e2e2e4;
  }
  .benefits__text .textbox .body + .body { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); }
  .benefits__text .textbox .body--accent { color: var(--gold); font-weight: 500; }
}

/* phones: card titles on one line */
@media (max-width: 520px) {
  .card__body { padding-inline: 10px; }
  .card__title { white-space: nowrap; font-size: clamp(11px, 3.05vw, 14px); }
}
@media (max-width: 400px) { .card__title { font-size: clamp(10.5px, 2.95vw, 14px); } }
