/* Landing page (index.html). Values come from design/home-reference/Main.dc.html; colours are tokens in tokens.css (.landing). */
*, *::before, *::after { box-sizing: border-box; }
/* Self-hosted (latin subset, preloaded in index.html). "optional": a font that is not ready for the first paint is skipped for that visit
   instead of swapped in later, so the hero never jumps when the fonts land. */
@font-face { font-family: "Inter"; src: url(../assets/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: optional; }
@font-face { font-family: "Bebas Neue"; src: url(../assets/fonts/bebas-neue-latin.woff2) format("woff2"); font-weight: 400; font-display: optional; }
body.landing { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--h-text); background: var(--h-bg); line-height: 1.6; overflow-x: hidden; }
.landing :where(a) { color: inherit; text-decoration: none; }
.landing :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.landing .skip { position: absolute; left: -999px; top: 8px; background: var(--h-text); color: var(--h-bg); padding: 8px 14px; border-radius: 4px; z-index: 100; }
.landing .skip:focus { left: 8px; }
.landing :where(h1, h2, h3, p) { margin: 0; }

.lk:hover { color: var(--teal-text); }
.disp { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
.t-teal { color: var(--teal-text); }
.t-gold { color: var(--gold-text); }
.sec { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 9vw, 104px) clamp(16px, 4vw, 32px); }
.band { background: var(--h-surface); border-block: 1px solid var(--h-border); }
.center { text-align: center; }

.eb { display: inline-block; margin: 0 0 22px; padding: 8px 14px; border: 1px solid var(--h-line); border-radius: 3px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--teal-text); background: var(--h-surface); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 30px; border-radius: 4px; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-outline { border: 1px solid var(--h-text); background: var(--h-surface); }
.btn-gold { background: var(--gold); color: #1B1405; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .7); color: #fff; }

/* section titles: 64/68/72/76px on desktop, shrinking with the viewport */
.h-64 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); line-height: 1; }
.h-68 { font-size: clamp(2.5rem, 1.5rem + 3.7vw, 4.25rem); line-height: 1; }
.h-72 { font-size: clamp(2.75rem, 1.6rem + 4.2vw, 4.5rem); line-height: 1; }
.h-76 { font-size: clamp(2.75rem, 1.5rem + 4.6vw, 4.75rem); line-height: 1; }

/* header */
.site-header { border-bottom: 1px solid var(--h-border); background: var(--h-surface); }
.header-row { max-width: 1200px; margin: 0 auto; padding: 16px clamp(16px, 4vw, 32px); display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.wordmark { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark b { font-weight: 700; font-size: 20px; letter-spacing: .14em; }
.wordmark span { font-size: 11px; letter-spacing: .2em; color: var(--h-text-3); }
.nav { display: flex; gap: 12px 32px; font-size: 15px; flex: 1; flex-wrap: wrap; justify-content: center; color: var(--h-nav); }
.site-link { font-size: 14px; color: var(--h-text-3); }
.header-row .btn { padding: 14px 24px; }
@media (max-width: 720px) {
  .nav { flex-basis: 100%; order: 3; justify-content: flex-start; gap: 8px 24px; }
  .site-link { margin-left: auto; }
}

/* hero */
/* --hero-offset = header height, so the hero fills the rest of the first viewport */
.hero { --hero-bg: #F8F7F3; --haze: 255 255 255; --hero-offset: 82px;
  position: relative; overflow: hidden; display: flex; align-items: center; min-height: max(680px, calc(100svh - var(--hero-offset)));
  background: radial-gradient(ellipse 55% 75% at 22% 50%, #fff, transparent 70%), var(--hero-bg); } /* soft white glow behind the text */
:root[data-theme="dark"] .hero { --hero-bg: var(--h-bg); --haze: 12 21 22; background: radial-gradient(ellipse 55% 75% at 22% 50%, color-mix(in srgb, var(--teal) 8%, transparent), transparent 70%), var(--hero-bg); }
.hero-grid { position: relative; z-index: 2; width: 100%; max-width: 1200px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) clamp(16px, 4vw, 32px); }
.hero-copy { max-width: min(600px, 46vw); }
.hero .eb { border-radius: 6px; background: #fff; border-color: var(--h-border); color: var(--teal-text); font-weight: 700; letter-spacing: .22em; }
:root[data-theme="dark"] .hero .eb { background: var(--h-surface); }
.hero h1 { margin-bottom: 24px; font-size: clamp(3rem, 1.8rem + 5.6vw, 5.75rem); line-height: .96; overflow-wrap: break-word; }
.hero-sub { margin-bottom: 36px; font-size: 18px; color: var(--h-text-2); max-width: 440px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* hero photo: decorative layer on the right, bottom-anchored and a bit shorter than the hero, so the whole group is
   framed with headroom (the top edge fades out). Wide eased fade on the left; a haze overlay brightens the background
   only and is 0% over the people. */
.hero-photo { position: absolute; right: 0; bottom: 0; width: 64%; height: 84%; display: block; pointer-events: none;
  --mask-x: linear-gradient(to right, transparent 0, rgb(0 0 0 / .03) 5%, rgb(0 0 0 / .1) 10%, rgb(0 0 0 / .21) 15%, rgb(0 0 0 / .35) 20%, rgb(0 0 0 / .5) 25%, rgb(0 0 0 / .65) 30%, rgb(0 0 0 / .79) 35%, rgb(0 0 0 / .9) 40%, rgb(0 0 0 / .97) 45%, #000 50%);
  --mask-y: linear-gradient(to bottom, transparent 0, rgb(0 0 0 / .15) 3%, rgb(0 0 0 / .5) 6%, rgb(0 0 0 / .85) 9%, #000 12%);
  -webkit-mask-image: var(--mask-x), var(--mask-y); -webkit-mask-composite: source-in;
  mask-image: var(--mask-x), var(--mask-y); mask-composite: intersect; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 46% 60% at 70% 62%, transparent 55%, rgb(var(--haze) / .5) 100%),
    linear-gradient(to bottom, rgb(var(--haze) / .4), transparent 40%),
    color-mix(in srgb, var(--teal) 3%, transparent); }
:root[data-theme="dark"] .hero-photo::after { background:
    radial-gradient(ellipse 46% 60% at 70% 62%, transparent 55%, rgb(var(--haze) / .45) 100%),
    linear-gradient(to bottom, rgb(var(--haze) / .35), transparent 40%),
    color-mix(in srgb, var(--teal) 3%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo img { animation: hero-photo-in 1.2s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes hero-photo-in { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
}

/* decorative waves: above the photo, below the text */
.wave { position: absolute; pointer-events: none; height: auto; z-index: 1; }
.wave path { fill: var(--teal); }
.wave-tl { top: 0; left: 0; width: min(38vw, 560px); }
.wave-bl { bottom: 0; left: 0; width: min(62vw, 900px); }
.wave-br { bottom: 0; right: 0; width: min(40vw, 580px); }
.wave .w-a { fill-opacity: .35; } .wave .w-b { fill: #fff; fill-opacity: .22; }
.wave .w-faint { fill-opacity: .07; }
.wave .w-mint { fill-opacity: .14; } .wave .w-mid { fill-opacity: .3; } .wave .w-deep { fill-opacity: .88; }
:root[data-theme="dark"] .wave path { fill: #1F5A56; }
:root[data-theme="dark"] .wave .w-b { fill: #4FB3A9; fill-opacity: .08; }
:root[data-theme="dark"] .wave .w-a { fill-opacity: .4; } :root[data-theme="dark"] .wave .w-faint { fill-opacity: .12; }
:root[data-theme="dark"] .wave .w-mint { fill-opacity: .25; } :root[data-theme="dark"] .wave .w-mid { fill-opacity: .4; } :root[data-theme="dark"] .wave .w-deep { fill-opacity: .6; }

@media (max-width: 900px) {
  .hero { display: block; min-height: 0; }
  .hero-photo { position: relative; width: 100%; height: clamp(260px, 42vw, 320px);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-photo img { object-position: 55% 60%; }
  .hero-grid { margin-top: -28px; padding-bottom: clamp(40px, 8vw, 64px); } /* tuck the headline into the fade */
  .hero-copy { max-width: none; }
  .wave-tl { width: 110px; } .wave-bl { width: 160px; } .wave-br { width: 130px; }
}

/* benefits */
.benefits-title { margin-bottom: clamp(32px, 5vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.benefit { background: var(--tint); border: 1px solid var(--h-border-2); border-radius: 14px; padding: clamp(22px, 3vw, 32px); min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.benefit .ic { width: 54px; height: 54px; border-radius: 10px; background: var(--h-surface); display: flex; align-items: center; justify-content: center; }
.benefit h3 { margin: 26px 0 6px; font-size: 32px; line-height: 1.05; }
.benefit p { font-size: 15px; color: var(--h-text-2); }

/* flagship courses */
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin-bottom: clamp(28px, 4vw, 48px); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 32px); min-height: 360px; background: var(--h-surface); border: 1px solid var(--h-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(10, 16, 32, .04); transition: box-shadow .2s, border-color .2s; }
a.card:hover { border-color: var(--gold); box-shadow: 0 16px 38px rgba(10, 16, 32, .10); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.tag { background: var(--tint); color: var(--teal-text); padding: 7px 12px; border-radius: 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.num { font-size: 72px; line-height: .85; color: var(--h-ghost); }
.card h3 { margin: 40px 0 12px; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.375rem); line-height: 1.02; }
.card p { font-size: 15px; color: var(--h-text-2); flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--h-rule); margin-top: 32px; padding-top: 22px; min-height: 64px; }
.card-foot span:first-child { font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.arr { width: 42px; height: 42px; border-radius: 4px; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: background .2s, color .2s; }
a.card:hover .arr { background: var(--gold); color: var(--ink); }
.card.soon .card-foot span:first-child { color: var(--h-text-3); }

/* skill atlas */
.atlas-sub { margin: 12px 0 36px; font-size: 18px; color: var(--h-text-2); }
.atlas-scroll { max-width: 1200px; margin: 0 auto; overflow-x: auto; }
.atlas { min-width: 820px; border: 1px solid var(--h-line); border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, var(--h-atlas-a), var(--h-atlas-b)); }
.atlas svg { display: block; width: 100%; height: auto; font-family: Inter, sans-serif; }

/* credit tower */
.tower-title { margin-bottom: clamp(32px, 5vw, 56px); max-width: 700px; }
.tower { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.col { flex: 1; min-width: 200px; }
.blocks { display: flex; flex-direction: column; gap: 8px; }
.block { height: 50px; border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 13px; font-weight: 500; background: var(--h-surface); border: 1px solid var(--h-line-2); color: var(--h-text-2); }
.col.gold .block { background: var(--gold); border-color: var(--gold); color: #1B1405; }
.bar { height: 6px; border-radius: 2px; background: var(--teal); margin: 14px 0 18px; }
.col.gold .bar { background: var(--gold); }
.col .big { font-size: 84px; line-height: .9; color: var(--h-text); }
.col.gold .big { color: var(--gold-text); }
.col h3 { font: 600 17px/1.6 Inter, sans-serif; margin-top: 8px; }
.col p { font-size: 14px; color: var(--h-text-3); }

/* CTA band + footer */
.cta { background: var(--teal); }
.cta-in { max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 32px); text-align: center; color: #fff; }
.cta h2 { margin-bottom: 32px; color: #fff; }
.cta h2 span { color: var(--gold); }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.site-footer { font-size: 14px; color: var(--h-text-2); background: var(--h-surface); }
.foot-row { max-width: 1200px; margin: 0 auto; padding: 36px clamp(16px, 4vw, 32px); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand b { font-weight: 700; font-size: 18px; letter-spacing: .14em; color: var(--h-text); }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.credit-link { color: var(--teal-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.credit-link:hover, .credit-link:focus-visible { color: var(--h-text); text-decoration-thickness: 2px; }
@media (max-width: 400px) { .btn { padding: 15px 20px; } .hero-ctas .btn, .cta-btns .btn { flex: 1 1 100%; justify-content: center; } }
