/* ==========================================================================
   Unreal Sensei — public site styles (Generated Website 04)
   ========================================================================== */
@import url("tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color var(--t-med), color var(--t-med);
}
:root[data-theme="dark"] body {
  background-image: radial-gradient(circle at 50% 0%, rgba(255, 97, 68, 0.08), transparent 45%);
  background-repeat: no-repeat; background-size: 100% 100vh;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--coral-pale); color: #16181c; }
[hidden] { display: none !important; }
html:not([data-account-verified="true"]) [data-member-nav] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* dot grid ground (Kajabi-inspired) */
.dotgrid { background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.3px); background-size: var(--dot-size) var(--dot-size); }
.dotgrid-fade { position: relative; }
.dotgrid-fade::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.3px);
  background-size: var(--dot-size) var(--dot-size);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 100%);
}
.dotgrid-fade > * { position: relative; z-index: 1; }

/* text helpers */
.grad-text { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.grad-text-warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad-warm-h); border-radius: 2px; }
.muted { color: var(--text-3); }
.small { font-size: 14px; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text-2); line-height: 1.6; }
.mono { font-family: var(--mono); font-size: .92em; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container-wide { width: min(var(--container-wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section-tight { padding-block: clamp(36px, 5vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 10px; }
.section-head p { max-width: 58ch; margin-top: 10px; }
.tinted { background: var(--bg-2); }
:root[data-theme="dark"] .tinted { background: transparent; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 15px; line-height: 1; white-space: nowrap;
  border: 1.5px solid transparent; transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), background-position var(--t-med);
  cursor: pointer; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
/* background-origin border-box: the gradient starts at the outer edge, so the transparent border does not reveal the yellow tail of the repeated tile */
.btn-primary { color: var(--on-accent); background: var(--coral-deep) var(--grad-warm-h); background-size: 160% 100%; background-position: 0 0; background-origin: border-box; background-repeat: no-repeat; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 97, 68, .42); }
.btn-solid { color: #fff; background: #141415; }
.btn-solid:hover { background: var(--accent); }
:root[data-theme="dark"] .btn-solid { background: #e8e8ea; color: #0e0f11; }
:root[data-theme="dark"] .btn-solid:hover { background: var(--accent); color: #fff; }
.btn-outline { color: var(--text); border-color: var(--line-2); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--accent); background: var(--surface-2); }
.btn-accent-outline { color: var(--accent); border-color: var(--accent); background: transparent; }
.btn-accent-outline:hover { background: var(--accent); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn-icon { padding: 0; width: 54px; justify-content: center; }
.btn-icon svg { width: 20px; height: 20px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; border: 1px solid var(--line); color: var(--text-2); background: var(--surface); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip-accent { color: var(--accent); border-color: rgba(255, 97, 68, .35); background: rgba(255, 97, 68, .08); }
.chip-grad { color: #fff; border: 0; background: var(--grad-warm-h); }
.chip-new { color: #fff; border: 0; background: linear-gradient(111deg, #60aef8, #f46692); }
.chip-soft { background: var(--surface-2); border-color: transparent; }
.chip-sky { color: #2b7fd1; background: rgba(96, 174, 248, .14); border-color: rgba(96, 174, 248, .3); }
:root[data-theme="dark"] .chip-sky { color: #8cc4fb; }
.tag { font-size: 12px; font-weight: 600; color: var(--text-3); padding: 3px 9px; border-radius: 6px; background: var(--surface-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--text); }
.brand .mark { width: 38px; height: 38px; border-radius: 50%; }
/* logo swaps with the theme: webclip.png (black figure) in light, webclip_white.png in dark */
.brand .mark-dark { display: none; }
:root[data-theme="dark"] .brand .mark-light { display: none; }
:root[data-theme="dark"] .brand .mark-dark { display: block; }
.brand .word { display: inline-flex; flex-direction: column; line-height: 1; }
.brand .word small { font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--text-2); transition: background-color var(--t-fast), color var(--t-fast); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); background: rgba(255, 97, 68, .10); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-actions .btn-login { font-weight: 600; font-size: 14.5px; line-height: 20px; height: 40px; min-height: 40px; justify-content: center; color: var(--text-2); padding: 0 12px; border-radius: 10px; display: inline-grid; grid-template-columns: 16px auto; align-items: center; gap: 8px; }
.header-actions .btn-login:hover { color: var(--text); background: var(--surface-2); }
.header-actions .btn-login svg { width: 16px; height: 16px; flex: none; }
.theme-toggle { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-grid; place-items: center; color: var(--text-2); transition: border-color var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }
.mobile-nav { display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 59; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px var(--gutter) 22px; box-shadow: var(--shadow-lg); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 10px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.mobile-nav a[aria-current="page"] { color: var(--accent); background: rgba(255, 97, 68, .10); }
.mobile-nav .row { display: flex; gap: 10px; margin-top: 12px; }
.mobile-nav .row .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; }
/* Explicit content centering, including the font's optical baseline. */
.header-actions .btn-login > span, .mobile-nav .row .btn-outline > span {
 display: block; line-height: 20px; margin: 0; padding: 0; transform: translateY(1px);
}
.mobile-nav .row .btn-outline {
 display: inline-grid; grid-template-columns: 18px auto; justify-content: center;
 align-items: center; height: 46px; padding-block: 0;
}
.header-actions .btn-login > svg, .mobile-nav .row .btn-outline > svg { margin: 0; align-self: center; }
@media (max-width: 960px) {
  .nav, .header-actions .btn-login, .header-actions .btn-cta { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  html[data-account-verified="true"] .site-header .nav { display: none; }
  html[data-account-verified="true"] .site-header .menu-btn { display: inline-grid; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 80px); }
:root:not([data-theme="dark"]) .hero { background: #fff; }
:root:not([data-theme="dark"]) .hero.dotgrid-fade::before { background-image: none; }
.hero .blob { position: absolute; z-index: 0; pointer-events: none; opacity: .9; }
.hero .blob.l { left: -360px; top: -80px; width: 620px; }
.hero .blob.r { right: -420px; top: 40px; width: 720px; }
:root[data-theme="dark"] .hero .blob { opacity: .5; }
.hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(36px, 4.7vw, 64px); line-height: 1.02; letter-spacing: -.035em; margin: 18px 0 20px; }
.hero h1 .line { display: block; }
.hero .lead { max-width: 56ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .proof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 28px; color: var(--text-3); font-size: 14px; font-weight: 600; }
.hero .proof img { height: 34px; width: auto; border-radius: 8px; }
.hero .proof .sep { width: 1px; height: 22px; background: var(--line-2); }
.hero-visual { position: relative; }
.hero-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--surface); aspect-ratio: 16 / 11; }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame .bar { position: absolute; left: 0; right: 0; top: 0; height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: rgba(20, 21, 24, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #d8dbe0; font-size: 12px; font-weight: 600; }
.hero-frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3d44; }
.hero-frame .bar i:nth-child(1) { background: #ff6144; } .hero-frame .bar i:nth-child(2) { background: #ffc444; } .hero-frame .bar i:nth-child(3) { background: #60aef8; }
.hero-frame .bar span { margin-left: 8px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 12px; align-items: center; min-width: 210px; }
.hero-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 97, 68, .12); color: var(--accent); flex: none; }
.hero-card .ic svg { width: 20px; height: 20px; }
.hero-card b { display: block; font-size: 14px; }
.hero-card span { font-size: 12.5px; color: var(--text-3); }
.hero-card.a { left: -28px; bottom: 34px; }
.hero-card.b { right: -18px; top: 52px; }
.hero-card.c { right: 26px; bottom: -22px; }
.hero-card .prompt { display: block; margin-top: 4px; font-family: var(--mono); font-size: 11.5px; line-height: 1.35; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--line); padding: 6px 9px; border-radius: 8px; max-width: 240px; white-space: normal; }
/* ---------- Hero composition (ported from Generated Website 02v2, owner 2026-09-09) ----------
   Tilted temple frame -> Masterclass, floating card -> UE5 Beginner Tutorial, orbit rings,
   two gradient dots (the asterisk label was removed at the owner's request). Each .layer is moved by US.parallax(). */
.hero-comp { position: relative; height: 500px; min-width: 0; width: 100%; }
.hero-comp .layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.hero-comp .layer > a { pointer-events: auto; }
.hero-comp .orbit { position: absolute; width: 460px; height: 460px; border: 1px solid rgba(255, 97, 68, .18); border-radius: 50%; top: 20px; left: 20px; }
.hero-comp .orbit-two { width: 520px; height: 520px; left: -10px; top: -10px; border-style: dashed; border-color: rgba(255, 97, 68, .14); }
.hero-image-frame { position: absolute; left: 10px; right: 0; top: 51px; height: 385px; padding: 9px; border-radius: 21px; border: 1px solid #fff; background: rgba(255, 255, 255, .6); box-shadow: 0 22px 65px rgba(114, 64, 31, .13); transform: rotate(-3deg); isolation: isolate; display: block; color: #fff; transition: transform var(--t-med), box-shadow var(--t-med); }
.hero-image-frame:hover { transform: rotate(-3deg) translateY(-3px); box-shadow: 0 28px 70px rgba(114, 64, 31, .2); }
:root[data-theme="dark"] .hero-image-frame { background: #1e2028; border-color: #343846; box-shadow: 0 22px 65px rgba(0, 0, 0, .33); }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.hero-image-frame::after { content: ""; position: absolute; inset: 9px; border-radius: 14px; background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 12, .65)); pointer-events: none; }
.frame-caption { position: absolute; bottom: 32px; left: 30px; right: 30px; z-index: 2; display: grid; gap: 4px; }
.frame-caption small { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; opacity: .85; }
.frame-caption strong { font-size: 20px; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 8px; }
.frame-caption strong i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); }
.frame-caption strong svg { width: 13px; height: 13px; }
.floating-course { position: absolute; left: -38px; bottom: 2px; z-index: 3; display: flex; align-items: center; gap: 13px; background: var(--surface); border: 1px solid var(--line); padding: 13px 18px 13px 13px; border-radius: 12px; box-shadow: var(--shadow-lg); transform: rotate(2deg); color: var(--text); transition: transform var(--t-med), border-color var(--t-fast); }
.floating-course:hover { transform: rotate(2deg) translateY(-3px); border-color: var(--accent); }
.floating-course img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.floating-course > span { display: grid; gap: 2px; line-height: 1.2; }
.floating-course small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.floating-course strong { font-size: 15px; letter-spacing: -.02em; }
.floating-course > span > span { font-size: 12px; color: var(--text-3); font-weight: 600; }
.floating-course b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 97, 68, .12); color: var(--accent); margin-left: 4px; }
.floating-course b svg { width: 13px; height: 13px; }
.creative-label { position: absolute; top: 7px; right: 25px; z-index: 3; display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 600; color: var(--text-3); transform: rotate(4deg); line-height: 1.5; }
.creative-label span { font-size: 30px; line-height: 1; color: var(--accent); }
.composition-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--grad-warm); box-shadow: var(--shadow-glow); }
.dot-one { top: 28px; left: 20px; }
.dot-two { bottom: 7px; right: 13px; width: 19px; height: 19px; }
@media (max-width: 1200px) { .hero-comp { height: 470px; } .hero-image-frame { height: 340px; top: 65px; } .floating-course { left: -20px; bottom: 0; } .hero-comp .orbit { width: 370px; height: 370px; top: 55px; } .hero-comp .orbit-two { width: 420px; height: 420px; top: 30px; } }
@media (max-width: 960px) { .hero-comp { height: 420px; max-width: 640px; margin: 20px auto 0; } .hero-image-frame { top: 25px; height: 335px; } .floating-course { left: 0; } .hero-comp .orbit { width: 380px; height: 380px; top: 0; left: 20%; } .hero-comp .orbit-two { width: 410px; height: 410px; top: -15px; } }
@media (max-width: 560px) { .hero-comp { height: 330px; margin-top: 10px; } .hero-image-frame { top: 28px; left: 0; right: -5px; height: 240px; padding: 6px; border-radius: 14px; } .hero-image-frame img, .hero-image-frame::after { border-radius: 10px; } .frame-caption { bottom: 18px; left: 18px; right: 18px; } .frame-caption strong { font-size: 16px; } .floating-course { bottom: 0; padding: 9px 12px 9px 9px; gap: 9px; border-radius: 10px; } .floating-course img { width: 56px; height: 42px; } .floating-course strong { font-size: 13px; } .creative-label { font-size: 9px; right: 7px; top: -3px; gap: 7px; } .creative-label span { font-size: 22px; } .hero-comp .orbit { width: 290px; height: 290px; top: 2px; left: 0; } .hero-comp .orbit-two { width: 320px; height: 320px; left: -15px; top: -13px; } .dot-one { width: 8px; height: 8px; top: 12px; left: 5px; } .dot-two { width: 13px; height: 13px; bottom: 0; right: 0; } }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-card.a { animation: floaty 7s ease-in-out infinite; }
.hero-card.b { animation: floaty 8.5s ease-in-out infinite 1s; }
.hero-card.c { animation: floaty 9s ease-in-out infinite .5s; }
@media (max-width: 1040px) {
  .hero .grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 720px; }
  .hero-card.a { left: 8px; } .hero-card.b { right: 8px; } .hero-card.c { right: 20px; bottom: -18px; }
}
@media (max-width: 560px) {
  .brand .word small { display: none; }
  .hero .proof .sep { display: none; }
  .hero-card.b { display: none; }
  .hero-card.a { bottom: 14px; min-width: 0; }
  .hero-card .prompt { max-width: 180px; }
}

/* ---------- Strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); }
:root[data-theme="dark"] .strip { background: rgba(255,255,255,.02); }
.strip .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px clamp(18px, 2.4vw, 34px); padding: 16px 0; font-size: 13.5px; font-weight: 600; color: var(--text-3); }
.strip .inner span { white-space: nowrap; }
.strip .inner span { display: inline-flex; align-items: center; gap: 8px; }
.strip .inner svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Spotlight (AI course) ----------
   Light: same card language as the rest of the site. Dark: charcoal panel with dot grid and coral glow. */
.spotlight { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.spotlight::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.3px); background-size: var(--dot-size) var(--dot-size); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 60% 80% at 80% 50%, #000 20%, transparent 100%); }
.spotlight::after { content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 97, 68, .16), transparent 62%); pointer-events: none; }
.spotlight .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); padding: clamp(28px, 4vw, 56px); align-items: center; }
.spotlight h2 { font-size: clamp(28px, 3.4vw, 42px); margin: 14px 0 14px; color: var(--text); }
.spotlight p { color: var(--text-2); max-width: 56ch; }
.spotlight .list { display: grid; gap: 10px; margin-top: 18px; }
.spotlight .list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.spotlight .list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }
.spotlight .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.terminal { border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.terminal .tb { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--line); color: var(--text-3); font-size: 12px; font-family: var(--font); font-weight: 600; }
.terminal .tb i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal .tb i:nth-child(1) { background: #ff6144; } .terminal .tb i:nth-child(2) { background: #ffc444; } .terminal .tb i:nth-child(3) { background: #60aef8; }
.terminal .tb span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 16px 18px; color: var(--text-2); white-space: pre-wrap; font-family: inherit; }
.terminal .p { color: var(--accent); } .terminal .c { color: var(--text-4); } .terminal .k { color: #2b7fd1; } .terminal .g { color: #1f8f5a; } .terminal .y { color: #b8860b; }
/* dark: unchanged look */
:root[data-theme="dark"] .spotlight { background: #0e0f11; color: #e8e8ea; border-color: #2a2d35; box-shadow: none; }
:root[data-theme="dark"] .spotlight::before { background-image: radial-gradient(circle, rgba(255,255,255,.09) 1.2px, transparent 1.3px); background-size: 32px 32px; }
:root[data-theme="dark"] .spotlight::after { background: radial-gradient(circle, rgba(255, 97, 68, .38), transparent 62%); }
:root[data-theme="dark"] .spotlight h2 { color: #fff; }
:root[data-theme="dark"] .spotlight p { color: #c4c7cd; }
:root[data-theme="dark"] .spotlight .eyebrow { color: #ff8b73; }
:root[data-theme="dark"] .spotlight .list li { color: #e6e9ee; }
:root[data-theme="dark"] .spotlight .list svg { color: #ffc444; }
:root[data-theme="dark"] .spotlight .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.22); }
:root[data-theme="dark"] .spotlight .btn-outline:hover { border-color: #fff; color: #fff; }
:root[data-theme="dark"] .terminal { background: #0a0b0d; border-color: #2a2d35; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
:root[data-theme="dark"] .terminal .tb { background: #13151a; border-color: #2a2d35; color: #8b93a0; }
:root[data-theme="dark"] .terminal .tb i { background: #3a3d44; }
:root[data-theme="dark"] .terminal .tb i:nth-child(1) { background: #ff6144; } :root[data-theme="dark"] .terminal .tb i:nth-child(2) { background: #ffc444; } :root[data-theme="dark"] .terminal .tb i:nth-child(3) { background: #60aef8; }
:root[data-theme="dark"] .terminal pre { color: #d8dde5; }
:root[data-theme="dark"] .terminal .p { color: #ff8b73; } :root[data-theme="dark"] .terminal .c { color: #787878; } :root[data-theme="dark"] .terminal .k { color: #8cc4fb; } :root[data-theme="dark"] .terminal .g { color: #7ed49a; } :root[data-theme="dark"] .terminal .y { color: #ffc444; }
@media (max-width: 900px) { .spotlight .grid { grid-template-columns: 1fr; } }

/* ---------- Course cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: clamp(16px, 2vw, 26px); }
.course-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
:root[data-theme="dark"] .course-card:hover { border-color: rgba(255,97,68,.55); box-shadow: 0 0 0 1px rgba(255,97,68,.25), 0 0 18px 3px rgba(255,97,68,.16), 0 12px 30px rgba(0,0,0,.5); }
.course-card .art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.course-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.course-card:hover .art img { transform: scale(1.04); }
.course-card .art .badges { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.course-card .art .badges .chip-accent { background: var(--surface); }
.course-card .art .level { background: rgba(14,15,17,.55); color: #fff; border-color: rgba(255,255,255,.18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.course-card .art .level { position: absolute; right: 12px; bottom: 12px; z-index: 1; }
.course-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.course-card .cat { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.course-card h3 { font-size: 20px; line-height: 1.2; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card p { color: var(--text-3); font-size: 14.5px; }
.course-card .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text-3); font-weight: 600; }
.course-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.course-card .meta svg { width: 15px; height: 15px; }
.course-card .meta .go { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; gap: 0; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.course-card:hover .go { background: var(--accent); color: #fff; border-color: transparent; transform: translateX(2px); }
.course-card .go svg { width: 20px; height: 20px; }
.course-card .go { pointer-events: none; }
.course-card.coming .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,15,17,.05), rgba(14,15,17,.6)); }
.course-card.wide { grid-column: 1 / -1; flex-direction: row; }
.course-card.wide .art { width: 46%; aspect-ratio: auto; min-height: 280px; }
.course-card.wide .body { padding: 28px 30px; justify-content: center; }
.course-card.wide h3 { font-size: 28px; }
@media (max-width: 800px) { .course-card.wide { flex-direction: column; } .course-card.wide .art { width: 100%; aspect-ratio: 16/9; min-height: 0; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step .num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--grad-warm); margin-bottom: 16px; box-shadow: var(--shadow-glow); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--text-3); font-size: 14.5px; }
.step .where { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.step .where svg { width: 14px; height: 14px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Paths ---------- */
.path-list { display: grid; gap: 18px; }
.path { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); align-items: start; }
.path .icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: var(--grad-cool); margin-bottom: 12px; }
.path .icon svg { width: 22px; height: 22px; }
.path h3 { font-size: 22px; }
.path .desc { color: var(--text-3); font-size: 14.5px; margin-top: 8px; }
.path .rail { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.path .stop { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 14px; transition: border-color var(--t-fast), transform var(--t-fast); }
.path .stop:hover { border-color: var(--accent); transform: translateY(-2px); }
.path .stop img { width: 44px; height: 32px; object-fit: cover; border-radius: 7px; }
.path .stop small { display: block; font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.path .stop.soon { border-style: dashed; }
.path .hop { display: inline-flex; align-items: center; gap: 10px; }
.path .arrow { color: var(--text-4); display: inline-flex; }
.path .arrow svg { width: 18px; height: 18px; }
.path .note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
@media (max-width: 800px) { .path { grid-template-columns: 1fr; } }

/* ---------- Resources ---------- */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.res-card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--t-med), box-shadow var(--t-med); }
.res-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.res-card .art { aspect-ratio: 16/9; overflow: hidden; background: var(--surface-3); position: relative; }
.res-card .art img { width: 100%; height: 100%; object-fit: cover; }
.res-card .art .chip { position: absolute; left: 12px; top: 12px; }
.res-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.res-card h3 { font-size: 17px; }
.res-card h3 a { color: inherit; text-decoration: none; }
.res-card h3 a::after { content: ""; position: absolute; inset: 0; }
.res-card:focus-within { box-shadow: var(--shadow-md); }
.res-card .row { position: relative; z-index: 1; }
.res-card p { font-size: 14px; color: var(--text-3); }
.res-card .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.res-card .actions .btn { flex: 1; }

/* ---------- Videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform var(--t-med), box-shadow var(--t-med); }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card .art { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-card .art img { width: 100%; height: 100%; object-fit: cover; }
.video-card .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-card .play span { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #141415; box-shadow: var(--shadow-md); transition: transform var(--t-fast); }
.video-card:hover .play span { transform: scale(1.08); }
.video-card .play svg { width: 28px; height: 28px; margin-left: 2px; } /* triangle sits 2px right so it reads centred in the circle */
.video-card .body { padding: 14px 16px 16px; }
.video-card h3 { font-size: 16px; }
.video-card .small { margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.video-card .small svg { width: 14px; height: 14px; color: #ff0033; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); flex: none; transition: transform var(--t-med), background var(--t-fast), color var(--t-fast); }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open]:not(.closing) summary .pm { transform: rotate(180deg); background: var(--accent); color: #fff; border-color: transparent; }
.faq .ans { overflow: hidden; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.faq .ans-in { padding: 0 18px 18px; }
.faq .ans a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.faq-cols { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.faq-cols .side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 6px; }
.faq-cols .side a { padding: 10px 12px; border-radius: 10px; font-weight: 600; color: var(--text-2); font-size: 14.5px; }
.faq-cols .side a:hover { background: var(--surface-2); color: var(--text); }
.faq-group { margin-bottom: 40px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.faq-group h2 { font-size: 24px; margin-bottom: 16px; }
@media (max-width: 860px) { .faq-cols { grid-template-columns: 1fr; } .faq-cols .side { position: static; display: flex; flex-wrap: wrap; } }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--r-xl); padding: clamp(28px, 4vw, 52px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -140px; bottom: -180px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(244,102,146,.22), transparent 65%); pointer-events: none; }
.cta-band h2 { font-size: clamp(26px, 3vw, 38px); }
.cta-band p { margin-top: 10px; color: var(--text-3); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.cta-band .fine { font-size: 12.5px; color: var(--text-4); margin-top: 12px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 28px; }
:root[data-theme="dark"] .site-footer { background: #13151a; }
.site-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.site-footer li { margin-bottom: 9px; }
.site-footer li a { font-size: 14.5px; color: var(--text-2); font-weight: 500; }
.site-footer li a:hover { color: var(--accent); }
.site-footer .about p { color: var(--text-3); font-size: 14px; margin-top: 12px; max-width: 38ch; }
.site-footer .badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.site-footer .badge img { height: 30px; width: auto; border-radius: 6px; }
.site-footer .bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-4); }
.site-footer .social { display: flex; gap: 8px; }
.site-footer .social a { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.site-footer .social a:hover { color: var(--accent); border-color: var(--accent); }
.site-footer .social svg { width: 16px; height: 16px; }
.domain-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-2); font-size: 13px; color: var(--text-3); margin-top: 16px; }
.domain-note, .domain-note:hover { text-decoration: none; transform: none; transition: none; }
.domain-note:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.domain-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--accent); }
.domain-note b { color: var(--text-2); }
@media (max-width: 900px) { .site-footer .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* ---------- Page hero ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 3vw, 40px); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.03em; margin-top: 14px; }
.page-hero .lead { margin-top: 14px; max-width: 62ch; }
/* resources page: the white/tinted boundary sits halfway between the YouTube button and the filter row */
.res-hero { padding-bottom: clamp(40px, 5.5vw, 75px); }
.res-list { padding-top: clamp(40px, 5.5vw, 75px); }

/* ---------- Catalog controls ---------- */
.catalog-bar { position: sticky; top: var(--nav-h); z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-block: 1px solid var(--line); padding: 12px 0; }
.catalog-bar .row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.search { position: relative; flex: 1 1 260px; max-width: 420px; }
.search input { width: 100%; height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 40px 0 42px; font-size: 14.5px; }
.search input:focus { outline: none; border-color: var(--focus-accent); box-shadow: 0 0 0 4px rgba(255,97,68,.07); }
.search #search-icon { position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); color: var(--text-3); pointer-events: none; display: block; }
.search #search-icon svg { width: 17px; height: 17px; }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.search .clear:hover { background: var(--surface-3); color: var(--text); }
.search .clear svg { width: 14px; height: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 700px) {
  .catalog-bar .filters { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .catalog-bar .filters::-webkit-scrollbar { display: none; }
  .catalog-bar .filters button { flex: none; }
  .catalog-bar .search { max-width: none; }
}
.filters button { padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: all var(--t-fast); }
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
:root[data-theme="dark"] .filters button[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.select { height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 36px 0 16px; font-size: 14px; font-weight: 600; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23909aa3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; }
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 18px; font-size: 14px; color: var(--text-3); font-weight: 600; }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--text-3); }
.empty b { display: block; font-size: 18px; color: var(--text); margin-bottom: 6px; }

/* ---------- Course overview ---------- */
.course-hero { position: relative; overflow: hidden; padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px); }
.course-hero .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.course-hero h1 { font-size: clamp(32px, 4.4vw, 54px); letter-spacing: -.03em; margin: 14px 0 14px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.crumbs a:hover { color: var(--accent); }
.crumbs svg { width: 12px; height: 12px; opacity: .6; }
.course-hero .facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.course-hero .facts span { display: inline-flex; align-items: center; gap: 7px; }
.course-hero .facts svg { width: 16px; height: 16px; color: var(--accent); }
.course-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.course-hero .art { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); aspect-ratio: 4/3; position: relative; }
.course-hero .art img { width: 100%; height: 100%; object-fit: cover; }
.course-hero .art .stamp { position: absolute; left: 16px; top: 16px; display: flex; gap: 6px; }
.handoff { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13.5px; color: var(--text-3); max-width: 60ch; }
.handoff svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.handoff a { color: var(--text-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .course-hero .grid { grid-template-columns: 1fr; } .course-hero .art { order: -1; aspect-ratio: 16/9; } }

/* Shared course overview hero; retain the existing stacked artwork below 901px. */
@media (min-width: 901px) {
  .course-hero-cinematic { padding-bottom: calc(clamp(28px, 4vw, 48px) + 120px); }
  .course-hero-cinematic .grid { position: static; }
  .course-hero-cinematic .grid > :first-child { position: relative; z-index: 2; }
  .course-hero-cinematic .art {
    position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%;
    aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; z-index: 1;
  }
  .course-hero-cinematic .art img {
    object-position: right center;
    -webkit-mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.08) 22%, #000 68%);
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.08) 22%, #000 68%);
  }
  :root:not([data-theme="dark"]) .course-hero-cinematic .art img {
    -webkit-mask-image: linear-gradient(to right, transparent 28%, #000 58%);
    mask-image: linear-gradient(to right, transparent 28%, #000 58%);
  }
}

.course-body { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
:root:not([data-theme="dark"]) .course-hero-cinematic ~ .section-tight {
  background: linear-gradient(to bottom, var(--bg) 20%, var(--bg-2) 100%);
}
.course-main > section + section { margin-top: clamp(40px, 5vw, 64px); }
.course-main h2 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 16px; }
.course-main .sub { color: var(--text-3); margin: -8px 0 18px; font-size: 14.5px; }
.outcomes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
.outcomes li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; }
.outcomes svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 1px; }
@media (max-width: 640px) { .outcomes { grid-template-columns: 1fr; } }
.aside { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 16px; }
.offer-card { border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); overflow: hidden; }
.offer-card .top { padding: 20px 20px 16px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,97,68,.08), transparent); }
.offer-card .top h3 { font-size: 18px; }
.offer-card .top p { font-size: 13.5px; color: var(--text-3); margin-top: 6px; }
.offer-card .mid { padding: 16px 20px; display: grid; gap: 10px; }
.offer-card .mid li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.offer-card .mid svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.offer-card .actions { padding: 6px 20px 20px; display: grid; gap: 10px; }
.offer-card .fine { font-size: 12.5px; color: var(--text-4); padding: 0 20px 18px; }
.course-progress-track { height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); }
.course-progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--grad-warm-h); }
.course-progress-card .mid p { font-size: 13px; color: var(--text-3); }
.aside .mini { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13.5px; color: var(--text-3); }
.aside .mini b { color: var(--text); display: block; margin-bottom: 4px; }
@media (max-width: 960px) { .course-body { grid-template-columns: 1fr; } .aside { position: static; } }

/* syllabus */
.syllabus { display: grid; gap: 12px; }
.module { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.module > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; }
.module > summary::-webkit-details-marker { display: none; }
.module .idx { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--accent); background: rgba(255,97,68,.10); font-family: var(--mono); }
.module .ttl { display: block; font-weight: 700; font-size: 16.5px; }
.module .sub { display: block; font-size: 13px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.module .chev { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-3); transition: transform var(--t-med); }
.module .chev svg { width: 14px; height: 14px; }
.module[open]:not(.closing) .chev { transform: rotate(180deg); }
.lessons { border-top: 1px solid var(--line); overflow: hidden; }
.lesson-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 11px 18px 11px 22px; border-top: 1px solid var(--line); font-size: 14.5px; transition: background var(--t-fast); }
.lesson-row:first-child { border-top: 0; }
.lesson-row:hover { background: var(--surface-2); }
.lesson-row .n { font-family: var(--mono); font-size: 12px; color: var(--text-4); }
.lesson-row .t { font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lesson-row .d { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; }
.lesson-row .d svg { width: 13px; height: 13px; opacity: .7; }
.lesson-row.current { background: rgba(255,97,68,.09); }
.lesson-row.current .t { color: var(--accent); }
.na { font-family: var(--mono); font-size: 11.5px; color: var(--text-4); font-style: italic; }

/* ---------- Lesson preview page ---------- */
.lesson-shell { display: grid; grid-template-columns: 320px 1fr; min-height: calc(100vh - var(--nav-h)); }
.lesson-side { border-right: 1px solid var(--line); background: var(--bg-2); position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
:root[data-theme="dark"] .lesson-side { background: #0e0f11; }
.lesson-side .head { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: inherit; z-index: 2; }
:root[data-theme="dark"] .lesson-side .head { background: #0e0f11; }
.lesson-side .head .back { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.lesson-side .head .back:hover { color: var(--accent); }
.lesson-side .head .back svg { width: 14px; height: 14px; }
.lesson-side .head h2 { font-size: 16px; margin-top: 8px; line-height: 1.25; }
.lesson-side .head .tot { font-size: 12.5px; color: var(--text-3); font-weight: 600; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.lesson-side .head .tot svg { width: 13px; height: 13px; }
.side-mod { border-bottom: 1px solid var(--line); }
.side-mod > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; font-size: 13.5px; font-weight: 700; color: var(--text-2); }
.side-mod > summary::-webkit-details-marker { display: none; }
.side-mod > summary .idx { font-family: var(--mono); font-size: 11px; color: var(--accent); background: rgba(255,97,68,.10); padding: 3px 6px; border-radius: 6px; }
.side-mod > summary .cnt { display: block; font-size: 11.5px; color: var(--text-4); font-weight: 600; margin-top: 2px; }
.side-mod > summary .chev { width: 14px; height: 14px; color: var(--text-4); transition: transform var(--t-med); }
.side-mod[open]:not(.closing) > summary .chev { transform: rotate(180deg); }
.side-mod[open] > summary { color: var(--text); }
.side-mod ol { padding-bottom: 6px; overflow: hidden; }
.side-lesson { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; padding: 8px 16px 8px 18px; font-size: 13.5px; color: var(--text-2); border-left: 3px solid transparent; transition: background var(--t-fast); }
.side-lesson:hover { background: var(--surface-2); color: var(--text); }
.side-lesson .n { font-family: var(--mono); font-size: 11px; color: var(--text-4); }
.side-lesson .d { font-family: var(--mono); font-size: 11.5px; color: var(--text-4); }
.side-lesson .t { display: flex; align-items: center; gap: 6px; line-height: 1.3; }
.side-lesson .t svg { width: 12px; height: 12px; color: var(--text-4); flex: none; }
.side-lesson[aria-current="page"] { background: rgba(255,97,68,.10); border-left-color: var(--accent); color: var(--text); font-weight: 700; }
.side-lesson[aria-current="page"] .n, .side-lesson[aria-current="page"] .d { color: var(--accent); }
.lesson-main { min-width: 0; }
.lesson-main .wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 22px 0 clamp(120px, 14vh, 180px); }
.lesson-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.lesson-top .btn { min-height: 38px; }
.lesson-title h1 { font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; margin: 8px 0 10px; }
.lesson-title .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--text-3); font-weight: 600; }
.lesson-title .meta span { display: inline-flex; align-items: center; gap: 6px; }
.lesson-title .meta svg { width: 14px; height: 14px; }
.lesson-title .meta .mono { color: var(--text-2); }

.stage { position: relative; margin-top: 18px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: #0a0b0d; border: 1px solid var(--line); box-shadow: var(--shadow-lg); isolation: isolate; }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(14px) saturate(1.1) brightness(.55); transform: scale(1.08); }
.stage .dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.10) 1px, transparent 1.2px); background-size: 20px 20px; opacity: .6; }
.stage .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 45%, transparent 30%, rgba(10,10,12,.72) 100%); }
.stage .locked { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; }
.stage .locked .inner { max-width: 460px; display: grid; justify-items: center; gap: 10px; }
.stage .lock-ring { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 0 0 10px rgba(255,97,68,.10), 0 0 60px rgba(255,97,68,.35); margin-bottom: 4px; }
.stage .lock-ring svg { width: 30px; height: 30px; color: #ffb39f; }
.stage .locked h3 { font-size: clamp(18px, 2vw, 22px); color: #fff; }
.stage .locked p { font-size: 14px; color: rgba(255,255,255,.8); }
.stage .locked .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.stage .locked .btn-outline { background: rgba(0,0,0,.25); color: #fff; border-color: rgba(255,255,255,.35); }
.stage .locked .btn-outline:hover { border-color: #fff; }
.stage .corner { position: absolute; left: 16px; top: 14px; display: flex; gap: 6px; }
.stage .corner .chip { background: rgba(0,0,0,.45); color: #fff; border-color: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.stage .dur { position: absolute; right: 14px; bottom: 12px; font-family: var(--mono); font-size: 12px; color: #fff; background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 6px; }
@media (max-width: 600px) {
  .stage { aspect-ratio: auto; border-radius: 14px; }
  .stage .locked { position: relative; padding: 36px 18px 28px; }
  .stage .locked .inner { gap: 8px; }
  .stage .lock-ring { width: 58px; height: 58px; }
  .stage .lock-ring svg { width: 24px; height: 24px; }
  .stage .locked h3 { font-size: 17px; }
  .stage .locked p { font-size: 13px; }
  .stage .locked .row { flex-direction: column; align-items: stretch; width: 100%; }
  .stage .locked .btn { white-space: normal; min-height: 46px; padding: 10px 16px; font-size: 14px; }
  .stage .corner, .stage .dur { display: none; }
}

.lesson-about { margin-top: 26px; display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.lesson-about .summary h2 { font-size: 20px; margin-bottom: 10px; }
.lesson-about .summary p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; }
.lesson-about .summary p + p { margin-top: 12px; }
.lesson-about .box { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 18px; }
.lesson-about .box h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.lesson-about .box ul { display: grid; gap: 8px; font-size: 14px; color: var(--text-2); }
.lesson-about .box li { display: flex; gap: 8px; align-items: flex-start; }
.lesson-about .box svg { width: 15px; height: 15px; color: var(--accent); flex: none; margin-top: 3px; }
.lesson-about .box .btn { margin-top: 14px; }
@media (max-width: 860px) { .lesson-about { grid-template-columns: 1fr; } }

.tabs { margin-top: 34px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--text-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tabs button svg { width: 14px; height: 14px; }
.tabs button[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--text); }
.panel { padding-top: 22px; }
.locked-block { position: relative; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.locked-block .ph { padding: 22px; display: grid; gap: 14px; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%); mask-image: linear-gradient(180deg, #000 20%, transparent 100%); pointer-events: none; user-select: none; }
.ph-line { height: 12px; border-radius: 6px; background: var(--surface-3); }
.ph-line.w90 { width: 90%; } .ph-line.w70 { width: 70%; } .ph-line.w55 { width: 55%; } .ph-line.w40 { width: 40%; } .ph-line.w30 { width: 30%; }
.ph-h { height: 18px; width: 45%; border-radius: 6px; background: var(--surface-3); margin-bottom: 4px; }
.ph-code { border-radius: 10px; background: var(--surface-3); height: 96px; position: relative; overflow: hidden; }
.ph-code::before { content: ""; position: absolute; left: 14px; top: 14px; width: 30%; height: 10px; border-radius: 5px; background: var(--line-2); box-shadow: 0 22px 0 0 var(--line-2), 0 44px 0 0 var(--line-2); }
.ph-code::after { content: ""; position: absolute; left: 46%; top: 36px; width: 28%; height: 10px; border-radius: 5px; background: var(--line-2); }
.ph-file { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.ph-file .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-3); }
.ph-file .lines { display: grid; gap: 7px; }
.ph-file .btnph { width: 84px; height: 30px; border-radius: 999px; background: var(--surface-3); }
.ph-comment { display: grid; grid-template-columns: 38px 1fr; gap: 12px; }
.ph-comment .av { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); }
.ph-comment .lines { display: grid; gap: 7px; padding-top: 4px; }
.ph-comment.reply { padding-left: 50px; }
.locked-block .overlay { position: absolute; inset: 0; display: grid; place-items: end center; padding: 20px; background: linear-gradient(180deg, transparent 10%, color-mix(in srgb, var(--surface) 88%, transparent) 60%); }
.locked-block .overlay .inner { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; justify-content: center; text-align: center; }
.locked-block .overlay .txt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--text-2); }
.locked-block .overlay .txt svg { width: 16px; height: 16px; color: var(--accent); }
.locked-block .note { display: block; font-size: 12.5px; color: var(--text-4); width: 100%; }

.lesson-pager { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager-link { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-fast), transform var(--t-fast); }
.pager-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.pager-link small { font-size: 12px; font-weight: 700; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.pager-link small svg { width: 12px; height: 12px; }
.pager-link b { font-size: 14.5px; }
.pager-link.next { text-align: right; }
.pager-link.next small { justify-content: flex-end; }
.pager-link.disabled { opacity: .5; pointer-events: none; }
@media (max-width: 560px) { .lesson-pager { grid-template-columns: 1fr; } }

.side-toggle { display: none; }
.side-scrim { position: fixed; inset: 0; z-index: 54; background: rgba(0,0,0,.45); display: none; }
@media (max-width: 960px) {
  .lesson-shell { grid-template-columns: 1fr; }
  .lesson-side { position: fixed; inset: var(--nav-h) auto 0 0; width: min(340px, 88vw); height: auto; z-index: 55; transform: translateX(-105%); transition: transform var(--t-med); box-shadow: var(--shadow-lg); }
  .lesson-side.open { transform: none; }
  .side-scrim.open { display: block; }
  .side-toggle { display: inline-flex; }
}

/* ---------- Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(96,174,248,.4); background: rgba(96,174,248,.10); font-size: 14px; color: var(--text-2); }
.notice svg { width: 18px; height: 18px; color: #2b7fd1; flex: none; margin-top: 1px; }
:root[data-theme="dark"] .notice svg { color: #8cc4fb; }
.notice b { color: var(--text); }
.placeholder-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a6d00; background: #fff3c4; border: 1px solid #f2d36b; padding: 3px 8px; border-radius: 6px; vertical-align: middle; }
:root[data-theme="dark"] .placeholder-flag { color: #ffd866; background: rgba(255,196,68,.12); border-color: rgba(255,196,68,.35); }

/* ---------- Testimonials ---------- */
/* horizontal review rail (Three.js-Journey-style): scroll-snap track + draggable scrub bar */
/* review rail: full-bleed, edge-to-edge track; cards share one height and grow sideways to fit longer text (js/home.js fitQuotes) */
.quote-rail { position: relative; --quote-h: 270px; --rail-pad: max(var(--gutter), calc((100% - var(--container)) / 2)); }
.quote-track { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth; padding: 4px var(--rail-pad) 8px; scroll-padding-inline: var(--rail-pad); scrollbar-width: none; cursor: grab; }
.quote-track::-webkit-scrollbar { display: none; }
.quote-track.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.quote-track:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.quote { flex: none; display: grid; grid-template-rows: 1fr auto; gap: 14px; height: var(--quote-h); width: 360px; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); scroll-snap-align: start; min-width: 0; margin: 0; }
.quote blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--text-2); overflow: hidden; }
.quote blockquote.clamp { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines, 5); }
.quote-nav { display: flex; gap: 8px; }
.qn-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--text-2); flex: none; transition: color var(--t-fast), border-color var(--t-fast), opacity var(--t-fast); }
.qn-btn:hover { color: var(--accent); border-color: var(--accent); }
.qn-btn[disabled] { opacity: .35; pointer-events: none; }
.qn-btn svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .quote { width: 86vw; height: auto; scroll-snap-align: center; } .quote-track { scroll-snap-type: x mandatory; align-items: flex-start; padding-inline: 7vw; scroll-padding-inline: 0; } } /* phones: each card snaps centered on screen */
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--coral); }
.quote .who b { display: block; font-size: 14px; }
.quote .who span { font-size: 12.5px; color: var(--text-3); font-weight: 600; }

/* ---------- Coming soon panel ---------- */
.soon-panel { border-radius: var(--r-lg); border: 1px dashed var(--line-2); padding: 24px; background: var(--surface-2); }
.soon-panel h3 { font-size: 18px; margin-bottom: 8px; }
.soon-panel p { color: var(--text-3); font-size: 14.5px; }
.soon-panel .themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.soon-panel .themes li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.soon-panel .themes svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
@media (max-width: 640px) { .soon-panel .themes { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.stack { display: grid; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--accent); color: #fff; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- Contact page ---------- */
.contact-page .lead { max-width: 46ch; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.contact-card .field { display: flex; flex-direction: column; gap: 8px; }
.contact-card label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.contact-card input, .contact-card textarea { width: 100%; font: inherit; color: var(--text); font-size: 15px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 16px; height: 52px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.contact-card textarea { height: auto; min-height: 180px; padding: 14px 16px; resize: vertical; }
:root[data-theme="dark"] .contact-card input, :root[data-theme="dark"] .contact-card textarea { background: var(--surface-2); }
.contact-card input::placeholder, .contact-card textarea::placeholder { color: var(--text-4); }
.contact-card input:focus, .contact-card textarea:focus { outline: none; border-color: var(--focus-accent); box-shadow: 0 0 0 4px rgba(255, 97, 68, .07); }
.contact-card .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.contact-card .foot a { color: var(--accent); font-weight: 700; }
.contact-card .btn svg { width: 18px; height: 18px; }
.email-line { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.email-line span { font-size: 14px; font-weight: 700; color: var(--text-3); }
.email-line a { font-size: 20px; font-weight: 700; color: var(--accent); }
.email-line a:hover { color: var(--accent-hover); }

/* layout A: split */
:root[data-theme="dark"] .contact-split { background-image: radial-gradient(circle, var(--dot) 1.2px, transparent 1.3px); background-size: var(--dot-size) var(--dot-size); }
.contact-split .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-split .intro { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; }
.contact-split .intro .ic { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 97, 68, .12); color: var(--accent); display: grid; place-items: center; }
.contact-split .intro .ic svg { width: 32px; height: 32px; }
.contact-split h1 { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -.035em; line-height: 1.02; }
.contact-split .handoff { margin-top: 6px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 14px; color: var(--text-2); max-width: 480px; }
.contact-split .handoff svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.contact-split .handoff a { color: var(--accent); font-weight: 700; }
.newsletter-band-wrap { padding-top: 0; }
.newsletter-band { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; align-items: center; }
:root[data-theme="dark"] .newsletter-band { background: var(--surface); }
.newsletter-band h2 { font-size: clamp(28px, 3vw, 36px); }
.newsletter-band p { margin-top: 10px; color: var(--text-2); font-size: 17px; }
.newsletter-band .row-form { display: flex; gap: 10px; }
.newsletter-band input { flex: 1; min-width: 0; height: 54px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 20px; font: inherit; font-size: 15px; color: var(--text); }
.newsletter-band input:focus { outline: none; border-color: var(--focus-accent); box-shadow: 0 0 0 4px rgba(255, 97, 68, .07); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* layout B: centered */
.contact-centered .container { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.contact-centered .head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; max-width: 720px; }
.contact-centered h1 { font-size: clamp(38px, 4.6vw, 60px); letter-spacing: -.035em; line-height: 1.02; }
.contact-centered .lead { max-width: 52ch; }
.contact-centered .contact-card { width: min(680px, 100%); }
.contact-centered .routes { width: min(680px, 100%); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.contact-centered .route { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-3); line-height: 1.5; }
.contact-centered .route svg { width: 22px; height: 22px; color: var(--accent); }
.contact-centered .route b { font-size: 14.5px; color: var(--text); }
.contact-centered .route a { color: var(--accent); font-weight: 700; margin-top: auto; }

/* development-only layout switcher */
.debug-switch { position: fixed; right: 18px; bottom: 18px; z-index: 80; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #fff; background: #141415; border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--shadow-md); }
.debug-switch::before { content: "DEV"; font-size: 10px; letter-spacing: .14em; color: var(--gold); }
.debug-switch b { color: var(--coral); }
.debug-switch:hover { background: var(--accent); } .debug-switch:hover b, .debug-switch:hover::before { color: #fff; }

@media (max-width: 860px) {
  .contact-split .grid { grid-template-columns: 1fr; }
  .contact-split .intro { padding-top: 0; }
  .newsletter-band { grid-template-columns: 1fr; }
  .contact-centered .routes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .contact-card .two { grid-template-columns: 1fr; }
  .newsletter-band .row-form { flex-direction: column; }
  .newsletter-band input { flex: none; min-height: 54px; }
  .contact-card .foot { flex-direction: column; align-items: stretch; text-align: center; }
}

.member-account{display:none}body:has(.member-lesson-shell,[data-member-course]) .header-actions .btn-login,body:has(.member-lesson-shell,[data-member-course]) .header-actions .btn-cta{display:none}body:has(.member-lesson-shell,[data-member-course]) .member-account{display:inline-flex;align-items:center;gap:9px;font-weight:600;color:var(--text);padding:8px 12px;border-radius:10px}body:has(.member-lesson-shell,[data-member-course]) .member-account svg{width:20px;height:20px}body:has(.member-lesson-shell,[data-member-course]) .member-account:hover{background:var(--surface-2)}body:has(.member-lesson-shell,[data-member-course]) .mobile-nav .row{display:none}@media(max-width:600px){body:has(.member-lesson-shell,[data-member-course]) .member-account{font-size:12px;padding:6px;gap:5px}body:has(.member-lesson-shell,[data-member-course]) .brand .word{font-size:16px}body:has(.member-lesson-shell,[data-member-course]) .header-actions{gap:4px}}

.member-account{white-space:nowrap}@media(max-width:600px){body:has(.member-lesson-shell,[data-member-course]) .brand .word{font-size:14px;white-space:nowrap}}
.staff-dashboard-link[hidden],.site-development[hidden]{display:none!important}.staff-dashboard-link{white-space:nowrap;color:var(--text);border:1px solid var(--line-2);border-radius:8px;padding:8px 12px;font-size:14px;font-weight:600}.staff-dashboard-link:hover{background:var(--surface-2)}.signed-in-staff .header-actions .btn-login,.signed-in-staff .header-actions .btn-cta{display:none}.signed-in-staff .header-actions .member-account{display:inline-flex;align-items:center;gap:8px;padding:8px;color:var(--text);font-weight:600}.signed-in-staff .member-account svg{width:18px;height:18px}.site-development{position:fixed;right:16px;bottom:16px;z-index:80;max-width:calc(100vw - 32px);padding:12px 16px;background:var(--surface);border:1px solid var(--line-2);border-radius:12px;box-shadow:var(--shadow-md);font-size:13px}.site-development summary{cursor:pointer;font-weight:700}.site-development p{margin:12px 0;color:var(--text-2)}.site-development a{display:block;padding:8px 0;color:var(--text)}@media(max-width:900px){.signed-in-staff .header-actions>.staff-dashboard-link{display:none!important}.signed-in-staff .mobile-nav .row{display:flex!important}.signed-in-staff .mobile-nav .row>.btn-primary{display:none}.signed-in-staff .brand .word small{display:none}}
.signed-in-staff .member-account svg{flex-shrink:0}@media(max-width:600px){.signed-in-staff .brand .word{font-size:14px;white-space:nowrap}.signed-in-staff .header-actions{gap:4px}.signed-in-staff .header-actions .member-account{font-size:12px;gap:4px;padding:6px}.signed-in-staff .brand{gap:6px}}

/* Signed-in account disclosure: shared across public, student and staff pages. */
.account-dropdown{position:relative}.header-actions .account-dropdown .member-account{display:inline-flex;align-items:center;gap:8px;padding:10px 8px;min-height:44px;font-size:14px;font-weight:600;white-space:nowrap}.account-dropdown .member-account svg{width:18px;height:18px;flex-shrink:0}.account-dropdown-panel{position:absolute;right:0;top:100%;padding-top:8px;min-width:210px;z-index:100}.account-dropdown-panel nav{display:grid;padding:8px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface);box-shadow:var(--shadow-md)}.account-dropdown-panel a,.account-dropdown-panel button{display:block;width:100%;padding:12px 14px;text-align:left;font-size:14px;font-weight:600;border-radius:6px}.account-dropdown-panel a:hover,.account-dropdown-panel button:hover{background:var(--surface-2);color:var(--accent)}.account-dropdown-panel form{border-top:1px solid var(--line);margin-top:4px;padding-top:4px}
:root[data-theme="light"] body.account-page{background:#eef2f6}
@media(max-width:900px){.signed-in .header-actions>.btn-cta{display:none}.signed-in .brand .word small{display:none}}
@media(max-width:600px){.signed-in .header-actions{gap:4px}.signed-in .brand{gap:6px}.signed-in .brand .word{font-size:14px;white-space:nowrap}.header-actions .account-dropdown .member-account{font-size:12px;gap:4px;padding:6px}.account-dropdown-panel{right:-42px}.account-dropdown .member-account svg{display:none}}

/* Header identity is resolved before paint; cached appearance never grants access. */
.account-pending{display:none;font-size:14px;font-weight:600;padding:10px 8px;min-height:44px;align-items:center}
html[data-account-state="pending"] #site-header .account-pending{display:inline-flex}
html[data-account-state="pending"] #site-header .btn-login,html[data-account-state="pending"] #site-header .btn-cta,html[data-account-state="pending"] #site-header .mobile-nav .row>.btn-primary,html[data-account-state="member"] #site-header .btn-login,html[data-account-state="member"] #site-header .btn-cta,html[data-account-state="member"] #site-header .mobile-nav .row>.btn-primary{display:none!important}
html[data-account-state="member"] #site-header [data-account-dropdown]{display:block!important}
html:not([data-account-state="member"]) #site-header [data-account-dropdown]{display:none!important}
html[data-account-staff="true"] #site-header [data-staff-dashboard]{display:inline-flex!important}
html:not([data-account-staff="true"]) #site-header [data-staff-dashboard]{display:none!important}
@media(max-width:900px){html[data-account-state="member"] #site-header .brand .word small{display:none}html[data-account-staff="true"] #site-header .header-actions>[data-staff-dashboard]{display:none!important}}
@media(max-width:600px){html[data-account-state="member"] #site-header .header-actions{gap:4px}html[data-account-state="member"] #site-header .brand{gap:6px}html[data-account-state="member"] #site-header .brand .word{font-size:14px;white-space:nowrap}}
