/* Jonathan Iliscupidez — brand site */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080b10;
  --bg-2: #0c1017;
  --surface: #121821;
  --surface-2: #171e28;
  --text: #f3f5f8;
  --text-2: #c4ccd6;
  --muted: #8b95a4;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #3ee0c8;
  --accent-hover: #6eebd8;
  --accent-fg: #06211c;
  --accent-soft: rgba(62, 224, 200, 0.12);
  --accent-ink: #3ee0c8;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.28);
  --header-bg: rgba(8, 11, 16, 0.92);
  --hero-glow: radial-gradient(circle at 80% 10%, rgba(62, 224, 200, 0.16), transparent 32%),
               radial-gradient(circle at 10% 80%, rgba(80, 120, 255, 0.08), transparent 28%);
  --book-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --chip: rgba(255, 255, 255, 0.04);
  --danger-soft: rgba(255, 102, 128, 0.1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f8;
  --bg-2: #e9eef1;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --text: #0d1320;
  --text-2: #2a3340;
  --muted: #5b6573;
  --line: rgba(13, 19, 32, 0.09);
  --line-strong: rgba(13, 19, 32, 0.16);
  --accent: #0d7a6c;
  --accent-hover: #0a5f55;
  --accent-fg: #ffffff;
  --accent-soft: rgba(13, 122, 108, 0.1);
  --accent-ink: #0b6a5e;
  --shadow: 0 22px 50px rgba(13, 19, 32, 0.08);
  --shadow-sm: 0 8px 24px rgba(13, 19, 32, 0.06);
  --header-bg: rgba(244, 246, 248, 0.94);
  --hero-glow: radial-gradient(circle at 80% 0%, rgba(13, 122, 108, 0.1), transparent 34%),
               radial-gradient(circle at 0% 80%, rgba(80, 120, 255, 0.06), transparent 30%);
  --book-shadow: 0 16px 36px rgba(13, 19, 32, 0.14);
  --chip: rgba(13, 19, 32, 0.04);
  --danger-soft: rgba(180, 40, 60, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html, body { margin: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; color: inherit; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 650;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.brand-name {
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.brand-tag {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-end { display: flex; align-items: center; gap: 6px; }

#site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
#site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 550;
  padding: 8px 12px;
  border-radius: 8px;
}
#site-nav a:hover,
#site-nav a:focus-visible { color: var(--text); background: var(--chip); }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle { position: relative; }
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  grid-area: 1 / 1;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.menu-toggle { display: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button.primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 8px 24px rgba(62, 224, 200, 0.18);
}
.button.primary:hover { background: var(--accent-hover); color: var(--accent-fg); }
.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.button.secondary:hover { border-color: var(--accent); color: var(--text); }
.button.ghost {
  background: var(--accent-soft);
  color: var(--accent-ink);
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.88rem;
}
.button.small { min-height: 38px; padding: 0 13px; font-size: 0.85rem; border-radius: 10px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-glow), var(--bg);
  padding: 72px 0 28px;
  isolation: isolate;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}

h1, h2, h3 { margin: 0; letter-spacing: -0.045em; line-height: 1.05; font-weight: 650; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  max-width: none;
  margin-bottom: 20px;
}
.h-line { display: block; }
.hero h1 em {
  font-family: "Instrument Serif", Geist, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
}
.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--text-2);
  font-size: 1.125rem;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 36px; }

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.principles li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}
.principles b {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.principles span { color: var(--muted); font-size: 0.85rem; }

.hero-visual { position: relative; }
.panel-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-top {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
  font-family: ui-monospace, "Geist Mono", monospace;
  letter-spacing: 0.04em;
}
.panel-top i {
  width: 8px; height: 8px; border-radius: 50%; background: #4a5d68;
}
.panel-top i:nth-child(1) { background: #ff6680; }
.panel-top i:nth-child(2) { background: #f3c75c; }
.panel-top i:nth-child(3) { background: var(--accent); }
.panel-top span { margin-left: auto; }
.chart-wrap { position: relative; padding: 18px 16px 16px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.ai-note {
  position: absolute;
  left: 28px;
  bottom: 22px;
  width: min(250px, 78%);
  padding: 12px 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
}
.ai-note span {
  display: block;
  color: var(--accent-ink);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ai-note strong { display: block; margin: 2px 0; font-size: 0.95rem; }
.ai-note small { color: var(--muted); font-size: 0.75rem; }
.orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-a { width: 420px; height: 420px; right: -80px; top: -70px; }
.orbit-b { width: 560px; height: 560px; right: -150px; top: -130px; }

.tool-strip {
  margin-top: 64px;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.tool-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent);
}
.tool-track {
  display: flex;
  width: max-content;
  animation: tools-marquee 38s linear infinite;
}
.tool-set {
  display: flex;
  align-items: center;
  gap: 52px;
  padding: 0 52px;
  min-height: 64px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tool-set span { white-space: nowrap; flex: 0 0 auto; }
@keyframes tools-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 44px;
}
.section-heading h2,
.track-copy h2,
.video-copy h2,
.about-copy h2,
.book-intro h2 {
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  max-width: 16ch;
}
.section-kicker { margin: 0; max-width: 36rem; color: var(--text-2); }

/* Stats */
.stats {
  padding: 28px 0 8px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.stat {
  text-align: center;
  padding: 22px 8px;
}
.stat b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.05em;
  font-weight: 700;
}
.stat span { color: var(--muted); font-size: 0.82rem; font-weight: 550; }

/* Tracks */
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.track {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.track:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.track-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.track-icon svg { width: 22px; height: 22px; }
.track h3 { font-size: 1.45rem; }
.track p { margin: 0; color: var(--text-2); }
.track .text-link { margin-top: auto; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  font-size: 0.92rem;
}
.text-link:hover { text-decoration: underline; color: var(--accent-hover); }

/* Featured */
.featured {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.featured-media {
  position: relative;
  min-height: 280px;
  background: #0b1620;
}
.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.featured-body { padding: 40px 36px; display: flex; flex-direction: column; }
.featured-body .button { align-self: flex-start; min-width: 200px; }
.featured-body .label {
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.featured-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-bottom: 12px; }
.featured-body > p { margin: 0 0 20px; color: var(--text-2); }
.meta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-bottom: 24px; color: var(--text-2); font-size: 0.92rem; font-weight: 550; }
.stars { color: var(--accent-ink); letter-spacing: 0.04em; }

/* Filters + courses */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: transparent;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.course-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.course-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: var(--shadow-sm);
}
.course-card[hidden] { display: none !important; }
[hidden], .social-x[hidden] { display: none !important; }
.course-cover {
  aspect-ratio: 16 / 9;
  background: #0d141c;
  overflow: hidden;
}
.course-cover img { width: 100%; height: 100%; object-fit: cover; }
.course-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.course-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.course-body h3 { font-size: 1.05rem; letter-spacing: -0.03em; line-height: 1.3; }
.course-body .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.course-body .meta { margin: 4px 0 8px; font-size: 0.82rem; }
.course-body .text-link { margin-top: auto; }

/* Books */
.books-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.books-head p { margin: 12px 0 0; color: var(--text-2); }
.book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.book-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.book-cover {
  position: relative;
  border-radius: 6px 12px 12px 6px;
  overflow: hidden;
  box-shadow: var(--book-shadow);
  background: #111;
  aspect-ratio: 2 / 3;
}
.book-cover::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.18) 40%, rgba(0,0,0,.08));
  z-index: 1;
  pointer-events: none;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card h3 { font-size: 1.02rem; letter-spacing: -0.03em; line-height: 1.3; }
.book-card .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* YouTube */
.video-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.video-poster {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.video-poster img { width: 100%; height: auto; }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent);
  border: 0;
  cursor: pointer;
  pointer-events: none;
}
.play svg { width: 28px; height: 28px; margin-left: 3px; }
.video-frame { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-copy p { color: var(--text-2); margin: 16px 0 24px; font-size: 1.05rem; }
.video-copy .fine { display: block; margin-top: 14px; color: var(--muted); font-size: 0.85rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
}
.portrait {
  width: 200px;
  height: 200px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--surface-2);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-copy p { color: var(--text-2); margin: 0 0 14px; }
.creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.creds li {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--chip);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}

/* Disclaimer */
.disclaimer {
  padding: 0 0 72px;
}
.disclaimer-box {
  padding: 24px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}
.disclaimer-box strong { color: var(--text-2); font-weight: 650; }
.disclaimer-box p { margin: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 40px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin: 10px 0 0; max-width: 28ch; }
.footer-col h3 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.92rem;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent-ink); }
.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}


@media (max-width: 960px) {
  .hero-grid,
  .tracks-grid,
  .featured,
  .books-head,
  .video-grid,
  .about-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .hero-visual { max-width: 560px; }
  .orbit { display: none; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .featured-media { min-height: 220px; position: relative; aspect-ratio: 16 / 9; }
  .about-grid { justify-items: start; }
  .section-heading, .books-head { align-items: start; flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 1120px); }
  .menu-toggle { display: inline-grid; }
  #site-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }
  #site-nav.open { display: flex; }
  .brand-tag { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .course-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

@media (max-width: 520px) {
  .principles { gap: 14px; }
  .book-grid { gap: 14px; }
  .featured-body { padding: 24px 20px; }
}

/* -------------------------------------------------------------------------
   Motion — hero, reveal, marquee, hover, theme
   ------------------------------------------------------------------------- */

.hero-grid { position: relative; z-index: 1; }

.hero-mesh {
  position: absolute;
  inset: -15% -8% 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.85;
  will-change: transform;
}
.blob-a {
  width: 460px;
  height: 460px;
  right: 6%;
  top: -100px;
  background: color-mix(in srgb, var(--accent) 38%, transparent);
  animation: float-a 18s ease-in-out infinite;
}
.blob-b {
  width: 340px;
  height: 340px;
  left: -80px;
  bottom: 8%;
  background: rgba(88, 118, 255, 0.28);
  animation: float-b 24s ease-in-out infinite;
}
.blob-c {
  width: 200px;
  height: 200px;
  left: 38%;
  top: 28%;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  animation: float-c 16s ease-in-out infinite;
}
[data-theme="light"] .blob { opacity: 0.5; }
[data-theme="light"] .blob-b { background: rgba(88, 118, 255, 0.16); }

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, 28px) scale(1.08); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.1); }
}
@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18px, 22px) scale(0.9); }
}

.orbit {
  transform-origin: center;
  animation: orbit-spin 56s linear infinite;
}
.orbit-b { animation-duration: 80s; animation-direction: reverse; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* Hero entrance — only when JS has marked the document */
.js .hero-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: rise-in 0.8s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 70ms);
}
.js .h-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.7em);
  animation: word-in 0.75s cubic-bezier(.16,.8,.2,1) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 80ms);
}
.h-word { display: inline-block; }
@keyframes rise-in {
  to { opacity: 1; transform: none; }
}
@keyframes word-in {
  to { opacity: 1; transform: none; }
}

/* Chart draw-in */
.js .chart-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: draw-line 1.7s ease-out 0.55s forwards;
}
.js .chart-area {
  opacity: 0;
  animation: fade-area 1.2s ease 1.1s forwards;
}
.js .candle {
  transform-box: fill-box;
  transform-origin: center bottom;
  transform: scaleY(0);
  opacity: 0;
  animation: candle-in 0.55s cubic-bezier(.2,.85,.2,1) forwards;
  animation-delay: calc(1.05s + var(--c, 1) * 90ms);
}
.js .ai-note {
  opacity: 0;
  transform: translateY(12px);
  animation: rise-in 0.7s cubic-bezier(.2,.7,.2,1) 1.7s forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-area { to { opacity: 1; } }
@keyframes candle-in {
  to { transform: scaleY(1); opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(.2,.7,.2,1),
              transform 0.75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}
.tracks-grid .track.reveal:nth-child(2) { --reveal-delay: 100ms; }
.course-grid .course-card.reveal:nth-child(3n+2) { --reveal-delay: 80ms; }
.course-grid .course-card.reveal:nth-child(3n+3) { --reveal-delay: 160ms; }
.book-grid .book-card.reveal:nth-child(4n+2) { --reveal-delay: 70ms; }
.book-grid .book-card.reveal:nth-child(4n+3) { --reveal-delay: 140ms; }
.book-grid .book-card.reveal:nth-child(4n+4) { --reveal-delay: 210ms; }

/* Card hover lift / tilt / glow */
.course-cover img,
.featured-media img,
.book-cover,
.book-cover img {
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}
.track,
.course-card,
.featured,
.book-card,
.video-poster,
.stats-grid,
.section-heading,
.books-head,
.video-copy,
.about-copy,
.portrait,
.disclaimer-box {
  transition: opacity 0.75s cubic-bezier(.2,.7,.2,1),
              transform 0.75s cubic-bezier(.2,.7,.2,1),
              border-color 0.35s ease,
              box-shadow 0.4s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.js .play {
  animation: play-pulse 2.8s ease-in-out 2.2s infinite;
}
@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--accent) 18%, transparent); }
  50% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 8%, transparent); }
}

@media (hover: hover) and (pointer: fine) {
  .tool-strip:hover .tool-track { animation-play-state: paused; }

  .course-card.is-in:hover,
  .course-card:not(.reveal):hover {
    transform: translateY(-8px) rotateX(1.5deg) rotateY(-1.5deg);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: var(--shadow-sm), 0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
                0 18px 50px color-mix(in srgb, var(--accent) 10%, transparent);
  }
  .course-card:hover .course-cover img { transform: scale(1.05); }

  .track.is-in:hover,
  .track:not(.reveal):hover {
    transform: translateY(-7px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: var(--shadow-sm), 0 16px 40px color-mix(in srgb, var(--accent) 10%, transparent);
    color: inherit;
  }

  .featured.is-in:hover,
  .featured:not(.reveal):hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
  }
  .featured:hover .featured-media img { transform: scale(1.04); }

  .book-card.is-in:hover .book-cover,
  .book-card:not(.reveal):hover .book-cover {
    transform: translateY(-10px) rotateY(-8deg);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.35),
                0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
                0 12px 40px color-mix(in srgb, var(--accent) 12%, transparent);
  }

  .video-poster.is-in:hover,
  .video-poster:not(.reveal):hover { transform: translateY(-4px); }
}

/* Theme cross-fade */
html.theme-animating,
html.theme-animating *:not(img):not(svg):not(path):not(stop) {
  transition: background-color 0.5s ease, color 0.45s ease, border-color 0.45s ease,
              box-shadow 0.45s ease, fill 0.45s ease !important;
}

.chip { transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }

@media (max-width: 960px) {
  .blob-a { width: 280px; height: 280px; }
  .blob-b { width: 220px; height: 220px; }
  .blob-c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .hero-enter,
  .h-word,
  .chart-line,
  .chart-area,
  .candle,
  .ai-note,
  .button,
  .course-card,
  .track,
  .book-cover,
  .featured,
  .video-poster {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    stroke-dasharray: none !important;
  }
  .blob, .orbit, .tool-track, .play { animation: none !important; }
  .tool-track { transform: none; }
  .tool-set[aria-hidden="true"] { display: none; }
  .tool-track { width: 100%; }
  .tool-set { width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; padding: 14px 24px; }
  .hero-mesh { opacity: 0.55; }
  html.theme-animating,
  html.theme-animating * { transition: none !important; }
}


.sr, .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;
}


/* -------------------------------------------------------------------------
   Repositioned layout — featured pair, industries, FAQ, agent hero
   ------------------------------------------------------------------------- */

.featured-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.featured-stack {
  grid-template-columns: 1fr;
}
.featured-stack .featured-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 16 / 9;
}
.featured-stack .featured-body { padding: 28px 28px 32px; }
.featured-stack .featured-body h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.industry-card { grid-column: span 3; }
.industry-card:nth-last-child(-n+3) { grid-column: span 4; }
.industry-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  min-height: 100%;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), border-color 0.35s ease, box-shadow 0.4s ease,
              opacity 0.75s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0s);
}
.industry-card h3 { font-size: 1.2rem; }
.industry-card p { margin: 0; color: var(--text-2); font-size: 0.92rem; }
.industry-card .text-link { margin-top: 4px; }
.industry-card.soon {
  background: var(--bg-2);
  color: var(--text-2);
}
.soon-label {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.industry-grid .industry-card.reveal:nth-child(4n+2) { --reveal-delay: 60ms; }
.industry-grid .industry-card.reveal:nth-child(4n+3) { --reveal-delay: 120ms; }
.industry-grid .industry-card.reveal:nth-child(4n+4) { --reveal-delay: 180ms; }

.trade-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
  max-width: 62ch;
}
.industry-card .trade-note { margin: 8px 0 0; }

.faq-list { display: grid; gap: 10px; max-width: 800px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 20px 4px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq-item summary h3::after {
  content: "+";
  color: var(--accent-ink);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
}
.faq-item[open] summary h3::after { content: "–"; }
.faq-item p {
  margin: 0 0 18px;
  color: var(--text-2);
}

/* Agent network hero */
.agent-panel { overflow: hidden; }
.agent-stage {
  position: relative;
  min-height: 340px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4px 8px;
  padding: 8px 8px 16px 4px;
}
.agent-net { width: 100%; height: auto; display: block; color: var(--text); }
.net-nodes .node circle {
  fill: var(--surface);
  stroke: color-mix(in srgb, var(--accent) 55%, var(--line-strong));
  stroke-width: 1.6;
}
.net-nodes .node.core circle {
  fill: color-mix(in srgb, var(--accent) 16%, var(--surface));
  stroke: var(--accent);
  stroke-width: 2;
}
.net-nodes text {
  fill: var(--text);
  font-size: 11px;
  font-weight: 650;
  font-family: Geist, Inter, sans-serif;
  letter-spacing: -0.02em;
}
.net-nodes .node.core text { font-size: 13px; }
.net-link {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
}
.soft { opacity: 0.45; }
.js .net-link {
  animation: draw-line 1.4s ease-out forwards;
  animation-delay: calc(0.45s + var(--d, 0) * 80ms);
}
.js .net-nodes .node:not(.core) .node-inner {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-in 0.55s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(0.7s + var(--d, 0) * 90ms);
}
.js .net-nodes .node.core .node-inner {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-in 0.6s cubic-bezier(.2,.8,.2,1) 0.35s forwards;
}
.js .net-nodes .node:not(.core) circle {
  animation: node-pulse 3.6s ease-in-out infinite;
  animation-delay: calc(1.6s + var(--d, 0) * 200ms);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes node-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes node-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 50%, transparent)); }
}

.agent-tasks {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  width: auto;
  margin: 0 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}
.task {
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
}
.task span {
  display: block;
  color: var(--accent-ink);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.task strong { display: block; margin: 2px 0 1px; font-size: 0.88rem; letter-spacing: -0.03em; }
.task small { color: var(--muted); font-size: 0.72rem; }
.js .task {
  opacity: 0;
  transform: translateX(16px);
  animation: task-in 0.6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(1.35s + var(--t, 1) * 180ms);
}
@keyframes task-in {
  to { opacity: 1; transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .industry-card.is-in:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: var(--shadow-sm), 0 16px 40px color-mix(in srgb, var(--accent) 10%, transparent);
  }
  .industry-card.soon.is-in:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--line);
  }
}

@media (max-width: 1100px) {
  .industry-grid { grid-template-columns: repeat(6, 1fr); }
  .industry-card, .industry-card:nth-last-child(-n+3) { grid-column: span 2; }
}
@media (max-width: 960px) {
  .featured-pair { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}
@media (max-width: 760px) {
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .industry-card, .industry-card:nth-last-child(-n+3) { grid-column: auto; }
  .agent-stage { min-height: 0; grid-template-columns: 1fr; }
  .agent-tasks { width: auto; margin: 0 16px 16px; }
}
@media (max-width: 520px) {
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card, .industry-card:nth-last-child(-n+3) { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .net-link, .net-nodes .node, .net-nodes .node-inner, .net-nodes .node circle, .task {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    stroke-dasharray: none !important;
    filter: none !important;
  }
}
