/* ============================================================
   KRIZIA LEARNING HUB — Landing hero
   Premium cinematic hero on top of the EXISTING app.
   Nothing here duplicates app logic: progress reads the same
   localStorage, paths read the same PATHS object, and every CTA
   scrolls to an existing section.
   ============================================================ */

/* Geist / Inter without a network dependency.
   If the webfont is already installed locally we use it; otherwise we fall
   straight through to Inter -> system-ui. No render-blocking request. */
@font-face {
  font-family: "Geist";
  src: local("Geist"), local("Geist-Regular"),
       local("Geist Variable"), local("Inter Variable");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------------------------------------------------------- SHELL ---------- */
.klh {
  background: var(--klh-bg);
  color: var(--klh-ink);
  font-family: var(--klh-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.klh__max { max-width: var(--klh-max); margin: 0 auto; padding: 0 32px; }

/* ---------------------------------------------------------- NAV ---------- */
.knav {
  position: sticky; top: 0; z-index: 120;
  background: color-mix(in srgb, var(--klh-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-default), background .3s var(--ease-default);
}
.knav.is-stuck {
  border-bottom-color: var(--klh-line);
  box-shadow: 0 1px 0 rgba(15,23,42,.02), 0 8px 24px -20px rgba(15,23,42,.35);
}
.knav__in {
  max-width: var(--klh-max); margin: 0 auto; padding: 0 32px;
  height: var(--klh-nav-h);
  display: flex; align-items: center; gap: 32px;
}
.knav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.knav__mark { height: 30px; width: auto; display: block; }
.knav__wm { display: flex; flex-direction: column; line-height: 1; }
.knav__wm b { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; }
.knav__wm span { font-size: 9.5px; font-weight: 600; letter-spacing: .16em;
                 text-transform: uppercase; color: var(--klh-faint); margin-top: 3px; }
.knav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.knav__links a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--klh-muted); font-size: 12.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  transition: color .18s var(--ease-default), background .18s var(--ease-default);
}
.knav__links a:hover { color: var(--klh-ink); background: var(--klh-accent-tint); }
.knav__sp { flex: 1; }

/* compact live progress pill — reads the REAL app state */
.knav__prog {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--klh-line); background: var(--klh-card);
  font-size: 11.5px; font-weight: 600; color: var(--klh-muted);
  letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: border-color .18s var(--ease-default);
}
.knav__prog:hover { border-color: var(--klh-accent); }
.knav__prog b { color: var(--klh-ink); font-variant-numeric: tabular-nums; }
.knav__ring {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--klh-accent) calc(var(--p,0) * 1%), var(--klh-line) 0);
  display: grid; place-items: center;
}
.knav__ring::after {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--klh-card);
}
.knav__cta {
  height: 38px; padding: 0 18px; border-radius: 10px; border: 0;
  background: var(--klh-ink); color: var(--klh-bg);
  font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; cursor: pointer;
  transition: transform .18s var(--ease-default), opacity .18s var(--ease-default);
}
.knav__cta:hover { transform: translateY(-1px); opacity: .92; }
.knav__burger {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--klh-line); background: var(--klh-card);
  color: var(--klh-ink); font-size: 15px; cursor: pointer;
}

/* ---------------------------------------------------------- HERO ---------- */
.khero {
  position: relative;
  padding: 44px 0 0;
  min-height: 780px;
  display: flex; align-items: center;
  overflow: hidden;
}
/* soft atmospheric wash — very light, not neon */
.khero::before {
  content: ''; position: absolute; inset: -20% -10% auto -10%; height: 90%;
  background:
    radial-gradient(48% 44% at 74% 26%, rgba(6,182,212,.13), transparent 68%),
    radial-gradient(42% 40% at 22% 18%, rgba(37,99,235,.10), transparent 70%);
  pointer-events: none; z-index: 0;
}
.khero__grid {
  max-width: var(--klh-max); margin: 0 auto; padding: 0 32px;
  width: 100%; position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);   /* gap-safe, no overflow */
  gap: 40px; align-items: center;
}

/* ---- left column ---- */
.khero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--klh-card); border: 1px solid var(--klh-line);
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--klh-muted); box-shadow: var(--klh-shadow-sm);
}
.khero__eyebrow i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--klh-grad);
  box-shadow: 0 0 0 3px var(--klh-accent-tint); font-style: normal;
}
.khero h1 {
  margin: 22px 0 0;
  font-size: clamp(52px, 5.6vw, 88px);
  line-height: .95; letter-spacing: -.035em; font-weight: 800;
  color: var(--klh-ink);
}
.khero h1 em { font-style: normal; background: var(--klh-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.khero__sub {
  margin: 22px 0 0; max-width: 30em;
  font-size: 18.5px; line-height: 1.6; color: var(--klh-muted);
}
.khero__cta { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.kbtn {
  height: 50px; padding: 0 24px; border-radius: var(--klh-r);
  font-size: 13.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  cursor: pointer; font-family: inherit; border: 1px solid transparent;
  transition: transform .2s var(--ease-default), box-shadow .2s var(--ease-default),
              background .2s var(--ease-default), border-color .2s var(--ease-default);
}
.kbtn--p { background: var(--klh-ink); color: var(--klh-bg); box-shadow: var(--klh-shadow); }
.kbtn--p:hover { transform: translateY(-2px); box-shadow: var(--klh-shadow-lg); }
.kbtn--s { background: var(--klh-card); color: var(--klh-ink); border-color: var(--klh-line); }
.kbtn--s:hover { transform: translateY(-2px); border-color: var(--klh-accent); }
.kbtn--g { background: transparent; color: var(--klh-accent); padding-left: 8px; padding-right: 8px; }
.kbtn--g:hover { gap: 13px; }
.khero__note {
  margin-top: 20px; font-size: 12.5px; color: var(--klh-faint);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.khero__note b { color: var(--klh-muted); font-weight: 600; }
.khero__note span { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* ---- right column: the video / poster ---- */
.kstage { position: relative; }
.kstage__glow {
  position: absolute; inset: 8% -6% -8% 2%; border-radius: 48px;
  background: radial-gradient(60% 60% at 60% 40%, rgba(6,182,212,.30), transparent 70%),
              radial-gradient(50% 50% at 35% 70%, rgba(37,99,235,.24), transparent 72%);
  filter: blur(46px); pointer-events: none; z-index: 0;
}
.kmedia {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 16 / 9;      /* reserved — no layout shift */
  border-radius: var(--klh-r-video);
  overflow: hidden;
  background: linear-gradient(140deg, #0B1220, #142033);
  border: 1px solid var(--klh-line);
  box-shadow: var(--klh-shadow-lg);
  transform: translate3d(0, var(--py, 0px), 0);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.kmedia img, .kmedia video { width: 100%; height: 100%; object-fit: cover; display: block; }
.kmedia__in {
  position: absolute; inset: 0;
  transform: scale(1);
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.kstage:hover .kmedia__in { transform: scale(1.018); }
.kmedia__sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 34%, rgba(8,12,20,.22));
  mix-blend-mode: soft-light;
}
/* the single ▶ play affordance — no text, no chrome */
.kmedia__play {
  position: absolute; inset: 0; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.20);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #fff; font-size: 17px; line-height: 1;
  display: grid; place-items: center; padding-left: 4px;
  cursor: pointer; z-index: 2;
  transition: transform .3s var(--ease-default), background .3s var(--ease-default);
}
.kmedia__play:hover { transform: scale(1.05); background: rgba(255,255,255,.28); }
.kmedia__badge {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(8,12,20,.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.16);
  color: #E2E8F0; font-size: 10.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.kmedia__badge i { width: 5px; height: 5px; border-radius: 50%; background: #38BDF8;
                   box-shadow: 0 0 0 3px rgba(56,189,248,.22); font-style: normal; }

/* ---- career-path preview strip ---- */
.kstrip {
  max-width: var(--klh-max); margin: 0 auto; padding: 64px 32px 0;
  position: relative; z-index: 1;
}
.kstrip__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--klh-line);
}
.kstrip__head h2 {
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--klh-faint); margin: 0;
}
.kstrip__head a { font-size: 12.5px; font-weight: 600; color: var(--klh-accent);
                  text-decoration: none; letter-spacing: .02em; }
.kstrip__head a:hover { text-decoration: underline; }
.kstrip__grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.kstrip__item {
  display: flex; align-items: baseline; gap: 10px;
  padding: 20px 16px 22px; text-decoration: none; color: inherit;
  border-right: 1px solid var(--klh-line-soft);
  transition: background .2s var(--ease-default);
}
.kstrip__item:last-child { border-right: 0; }
.kstrip__item:hover { background: var(--klh-card); }
.kstrip__n {
  font-family: var(--klh-mono); font-size: 11px; font-weight: 600;
  color: var(--klh-accent); flex-shrink: 0; font-variant-numeric: tabular-nums;
}
.kstrip__t {
  font-size: 12.5px; font-weight: 600; line-height: 1.35;
  letter-spacing: .01em; color: var(--klh-ink);
}

/* ---- stats line ---- */
.kfacts {
  max-width: var(--klh-max); margin: 0 auto; padding: 26px 32px 56px;
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--klh-faint);
}
.kfacts b { color: var(--klh-ink); font-variant-numeric: tabular-nums; }
.kfacts i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; font-style: normal; }

/* ---------------------------------------------- SECTION TRANSITION -------- */
.ksec {
  border-top: 1px solid var(--klh-line);
  padding: 104px 0;
  scroll-margin-top: calc(var(--klh-nav-h) + 20px);
}
.ksec__h { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.ksec__h .kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--klh-accent); margin-bottom: 14px;
}
.ksec__h h2 {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; letter-spacing: -.03em;
  font-weight: 800; color: var(--klh-ink); margin: 0 0 14px;
}
.ksec__h p { font-size: 17px; line-height: 1.6; color: var(--klh-muted); margin: 0; }

/* ---------------------------------------------- MOTION ------------------- */
@keyframes kIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes kMedia { from { opacity: 0; transform: scale(.975); } to { opacity: 1; transform: none; } }

.khero [data-anim] { opacity: 0; animation: kIn .78s cubic-bezier(.22,1,.36,1) forwards; }
.khero [data-anim="1"] { animation-delay: .05s; }
.khero [data-anim="2"] { animation-delay: .13s; }
.khero [data-anim="3"] { animation-delay: .21s; }
.khero [data-anim="4"] { animation-delay: .29s; }
.khero [data-anim="5"] { animation-delay: .37s; }
.khero [data-anim="6"] { animation-delay: .45s; }
.kstage { opacity: 0; animation: kMedia 1.05s cubic-bezier(.22,1,.36,1) .22s forwards; }
.kstrip__item { opacity: 0; animation: kIn .6s cubic-bezier(.22,1,.36,1) forwards; }
.kstrip__item:nth-child(1) { animation-delay: .40s }
.kstrip__item:nth-child(2) { animation-delay: .46s }
.kstrip__item:nth-child(3) { animation-delay: .52s }
.kstrip__item:nth-child(4) { animation-delay: .58s }
.kstrip__item:nth-child(5) { animation-delay: .64s }
.kstrip__item:nth-child(6) { animation-delay: .70s }

.khero a:focus-visible, .knav a:focus-visible, .kbtn:focus-visible,
.knav__cta:focus-visible, .kmedia__play:focus-visible, .kstrip__item:focus-visible,
.knav__burger:focus-visible {
  outline: 2px solid var(--klh-accent); outline-offset: 3px; border-radius: 6px;
}

/* ---------------------------------------------- RESPONSIVE -------------- */
@media (max-width: 1180px) {
  .khero__grid { grid-template-columns: minmax(0,46fr) minmax(0,54fr); }
  .kstrip__grid { grid-template-columns: repeat(3, 1fr); }
  .kstrip__item:nth-child(3) { border-right: 0; }
  .kstrip__item:nth-child(-n+3) { border-bottom: 1px solid var(--klh-line-soft); }
}
@media (max-width: 980px) {
  .knav__in { padding: 0 24px; gap: 20px; }
  .knav__links { display: none; }
  .knav__burger { display: grid; place-items: center; }
  .knav__prog { display: none; }
  .knav__mobile {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--klh-card); border-bottom: 1px solid var(--klh-line);
    padding: 12px 24px 20px; box-shadow: var(--klh-shadow);
  }
  /* the rule above sets display:block, which beats the [hidden] attribute's
     implicit display:none — without this the menu is open on every page load */
  .knav__mobile[hidden] { display: none; }
  .knav__mobile a {
    display: block; padding: 13px 0; text-decoration: none; color: var(--klh-ink);
    font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--klh-line-soft);
  }
  .knav__mobile a:last-child { border-bottom: 0; }
  .khero { min-height: 0; padding: 48px 0 0; }
  .khero__grid { grid-template-columns: 1fr; gap: 36px; }
  .khero h1 { font-size: clamp(44px, 9vw, 64px); }
  .khero__sub { font-size: 17px; }
  .klh__max, .khero__grid, .kstrip, .kfacts { padding-left: 24px; padding-right: 24px; }
  .ksec { padding: 72px 0; }
}
@media (max-width: 640px) {
  .knav__in { padding: 0 16px; height: 64px; }
  .knav__wm span { display: none; }
  .knav__cta { height: 36px; padding: 0 14px; font-size: 11px; }
  .khero h1 { font-size: clamp(40px, 11vw, 56px); }
  .khero__sub { font-size: 16px; }
  .khero__cta { flex-direction: column; align-items: stretch; }
  .khero__cta .kbtn { justify-content: center; width: 100%; }
  .kbtn--g { justify-content: center; }
  .kmedia { border-radius: 20px; }
  .kmedia__play { width: 52px; height: 52px; font-size: 15px; }
  .kstrip__grid { grid-template-columns: 1fr; }
  .kstrip__item { border-right: 0; border-bottom: 1px solid var(--klh-line-soft); padding: 15px 4px; }
  .kstrip__item:last-child { border-bottom: 0; }
  .kfacts { gap: 16px; padding-bottom: 44px; font-size: 11px; }
  .klh__max, .khero__grid, .kstrip, .kfacts { padding-left: 16px; padding-right: 16px; }
  .ksec { padding: 56px 0; }
  .ksec__h { margin-bottom: 34px; }
  .ksec__h p { font-size: 15.5px; }
}

/* ---------------------------------------------- REDUCED MOTION ----------- */
@media (prefers-reduced-motion: reduce) {
  .khero [data-anim], .kstage, .kstrip__item { opacity: 1 !important; animation: none !important; }
  .kmedia { transform: none !important; transition: none !important; }
  .kmedia__in, .kbtn, .kmedia__play, .knav__cta { transition: none !important; transform: none !important; }
  .kstage:hover .kmedia__in { transform: none !important; }
  html { scroll-behavior: auto !important; }
  .khero::before { display: none; }
}

/* ---- nav icon button (theme toggle) ---- */
.knav__icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 auto;
  border: 1px solid var(--klh-line, rgba(15, 23, 42, .12));
  border-radius: 12px; background: transparent;
  color: inherit; font-size: 17px; line-height: 1; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.knav__icon:hover { background: var(--klh-surface-2, rgba(15, 23, 42, .05)); transform: translateY(-1px); }
.knav__icon:focus-visible { outline: 2px solid var(--klh-accent, #4F46E5); outline-offset: 2px; }
html[data-theme="dark"] .knav__icon { --klh-line: rgba(255, 255, 255, .16); --klh-surface-2: rgba(255, 255, 255, .07); }

/* ---- footer reset button ---- */
.ft__reset {
  border: 1px solid rgba(15, 23, 42, .18);
  background: transparent; color: inherit;
  padding: 8px 14px; border-radius: 10px;
  font: inherit; font-size: .875rem; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.ft__reset:hover { background: rgba(15, 23, 42, .05); border-color: rgba(15, 23, 42, .3); }
.ft__reset:focus-visible { outline: 2px solid var(--klh-accent, #4F46E5); outline-offset: 2px; }
html[data-theme="dark"] .ft__reset { border-color: rgba(255, 255, 255, .2); }
html[data-theme="dark"] .ft__reset:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .32); }

@media (max-width: 1080px) { .knav__icon { display: none; } }
