:root {
  --ink: #17233c;
  --muted: #64708a;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dfe4ed;
  --navy: #213564;
  --blue: #4277e8;
  --blue-soft: #eaf0ff;
  --mint: #1e9778;
  --mint-soft: #e6f7f1;
  --coral: #e66c58;
  --coral-soft: #fff0ec;
  --violet: #7b61d1;
  --violet-soft: #f0edff;
  --yellow: #f4c34f;
  --shadow: 0 16px 46px rgba(35, 51, 91, .11);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 2%, rgba(244,195,79,.16), transparent 28rem),
    radial-gradient(circle at 92% 14%, rgba(66,119,232,.12), transparent 30rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: white; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 16px; }

.site-header { padding: 20px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: .02em; }
.brand-mark { display: grid; place-items: center; width: 40px; aspect-ratio: 1; color: white; background: var(--navy); border-radius: 13px 13px 13px 4px; box-shadow: 0 8px 18px rgba(33,53,100,.18); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 10px 13px; color: var(--muted); border-radius: 12px; text-decoration: none; font-size: .94rem; font-weight: 750; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--navy); background: rgba(255,255,255,.75); outline: none; }
.menu-button { display: none; border: 1px solid var(--line); background: white; color: var(--ink); border-radius: 12px; padding: 9px 12px; font-weight: 800; }

.hero { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(36px, 7vw, 90px); padding: clamp(56px, 8vw, 104px) 0 76px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--blue); font-size: .8rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; }
h1 { margin-bottom: 22px; font-size: clamp(2.75rem, 7vw, 5.9rem); letter-spacing: -.065em; }
.hero h1 span { color: var(--blue); }
.hero-copy { max-width: 630px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 11px 19px; border: 0; border-radius: 14px; background: var(--navy); color: white; text-decoration: none; font-weight: 850; box-shadow: 0 9px 22px rgba(33,53,100,.18); transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 13px 25px rgba(33,53,100,.24); }
.button.secondary { color: var(--navy); background: white; border: 1px solid var(--line); box-shadow: none; }
.hero-visual { position: relative; min-height: 460px; }
.visual-card { position: absolute; padding: 22px; border: 1px solid rgba(255,255,255,.8); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.visual-card strong { display: block; margin-top: 11px; font-size: 1.18rem; }
.visual-card small { color: var(--muted); }
.visual-card.one { inset: 10px 50px auto 10px; min-height: 225px; background: linear-gradient(145deg, #dfe8ff, #fff); transform: rotate(-4deg); }
.visual-card.two { right: 0; bottom: 36px; width: 66%; background: linear-gradient(145deg, #e1f7ef, #fff); transform: rotate(4deg); }
.visual-card.three { left: 0; bottom: 6px; width: 48%; background: linear-gradient(145deg, #fff1dc, #fff); transform: rotate(-2deg); }
.scribble { font-size: 4.2rem; line-height: 1; font-weight: 950; letter-spacing: -.08em; }
.mini-row { display: flex; gap: 7px; margin-top: 18px; }
.mini-row i { display: block; height: 8px; border-radius: 8px; background: var(--blue); }
.mini-row i:nth-child(1) { width: 42%; }.mini-row i:nth-child(2) { width: 25%; opacity: .7; }.mini-row i:nth-child(3) { width: 16%; opacity: .4; }

.section { padding: 74px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 30px; }
.section-head h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(2rem, 4.2vw, 3.7rem); letter-spacing: -.045em; }
.section-head p { max-width: 420px; margin: 0; color: var(--muted); }
.path-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.path-card { position: relative; grid-column: span 4; min-height: 320px; padding: 28px; overflow: hidden; border: 1px solid rgba(23,35,60,.07); border-radius: var(--radius); text-decoration: none; box-shadow: 0 10px 32px rgba(35,51,91,.07); transition: transform .22s, box-shadow .22s; }
.path-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.path-card::after { content: attr(data-symbol); position: absolute; right: -10px; bottom: -34px; color: rgba(23,35,60,.08); font-size: 9rem; font-weight: 950; line-height: 1; }
.path-card.blue { background: var(--blue-soft); }.path-card.coral { background: var(--coral-soft); }.path-card.violet { background: var(--violet-soft); }.path-card.mint { background: var(--mint-soft); }
.path-card .tag, .topic-tag { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.72); color: var(--muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.path-card h3 { max-width: 270px; margin: 54px 0 12px; font-size: clamp(1.65rem, 2.8vw, 2.25rem); letter-spacing: -.035em; }
.path-card p { max-width: 310px; color: var(--muted); }
.path-card .arrow { position: absolute; left: 28px; bottom: 26px; font-weight: 900; }
.path-card.external { grid-column: span 12; min-height: 210px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.path-card.external h3 { margin-top: 18px; }
.path-card.external .arrow { position: static; display: inline-flex; padding: 11px 16px; border-radius: 13px; background: var(--navy); color: #fff; }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise article { padding: 27px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 20px; }
.promise .number { color: var(--blue); font-weight: 950; font-size: 1.9rem; }
.promise h3 { margin: 28px 0 8px; font-size: 1.25rem; }
.promise p { margin: 0; color: var(--muted); }

.subject-hero { padding: 64px 0 48px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .9rem; font-weight: 750; }
.breadcrumb a { text-decoration: none; }
.subject-hero h1 { max-width: 900px; }
.subject-intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.subject-intro p { max-width: 690px; margin: 0; color: var(--muted); font-size: 1.12rem; }
.quick-facts { display: flex; gap: 10px; }
.quick-facts span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: .82rem; font-weight: 800; }
.toolbar { display: flex; gap: 12px; margin: 26px 0 34px; }
.search { flex: 1; min-height: 52px; padding: 0 17px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); outline: none; }
.search:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(66,119,232,.12); }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module { display: flex; min-height: 285px; flex-direction: column; padding: 25px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 8px 24px rgba(35,51,91,.05); }
.module-link { color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.module-link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.module[hidden] { display: none; }
.module-number { display: grid; place-items: center; width: 45px; aspect-ratio: 1; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-weight: 950; }
.module h2 { margin: 38px 0 10px; font-size: 1.45rem; letter-spacing: -.025em; }
.module p { margin: 0 0 22px; color: var(--muted); }
.module-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 750; }
.status { color: var(--mint); }
.empty-state { display: none; padding: 36px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.empty-state.visible { display: block; }

.navigator-panel { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 34px; margin: 24px 0 82px; padding: clamp(28px, 6vw, 64px); border-radius: 30px; color: white; background: linear-gradient(135deg, #17233c, #344f93); box-shadow: var(--shadow); }
.navigator-panel h2 { margin-bottom: 16px; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -.05em; }
.navigator-panel p { color: #d5def7; font-size: 1.08rem; }
.navigator-panel .button { background: var(--yellow); color: var(--ink); box-shadow: none; }
.navigator-art { display: grid; place-items: center; min-height: 260px; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.04)); border: 1px solid rgba(255,255,255,.15); font-size: clamp(5rem, 12vw, 9rem); font-weight: 950; letter-spacing: -.1em; }

.site-footer { margin-top: 60px; padding: 34px 0 44px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 22px; color: var(--muted); font-size: .9rem; }
.footer-row a { font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .path-card { grid-column: span 6; }
  .path-card.external { grid-column: span 6; grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .navigator-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 22px, 1160px); }
  .menu-button { display: block; }
  .nav { position: relative; }
  .nav-links { display: none; position: absolute; z-index: 20; top: 52px; right: 0; width: min(290px, calc(100vw - 30px)); padding: 10px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { padding-top: 40px; }
  .hero-visual { min-height: 320px; }
  .visual-card { padding: 17px; }
  .visual-card.one { right: 30px; min-height: 180px; }
  .scribble { font-size: 3.2rem; }
  .section { padding: 54px 0; }
  .section-head, .subject-intro { display: block; }
  .section-head p, .quick-facts { margin-top: 16px; }
  .path-card, .path-card.external { grid-column: 1 / -1; min-height: 290px; }
  .promise, .module-grid { grid-template-columns: 1fr; }
  .quick-facts { flex-wrap: wrap; }
  .navigator-panel { padding: 28px 22px; }
  .navigator-art { min-height: 190px; }
  .footer-row { flex-direction: column; }
}

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