/* Landing page */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.eyebrow { font-weight: 800; font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--indigo-600); margin: 0 0 .9rem; }
.eyebrow-light { color: var(--gold); }
.section h2 { font-size: var(--step-2); max-width: 18ch; }
.section h2 em { font-style: italic; color: var(--indigo-600); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 7rem);
  background:
    radial-gradient(700px 420px at 82% 18%, rgba(93, 224, 208, 0.16), transparent 62%),
    radial-gradient(900px 600px at 5% 110%, rgba(245, 185, 66, 0.12), transparent 60%),
    linear-gradient(160deg, var(--indigo-900) 0%, var(--indigo-800) 45%, var(--indigo-700) 100%);
}
.hero-grain {
  position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 1.6rem; }
.chip { font-weight: 800; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; padding: .55rem .9rem; }
.chip-light { background: #fff; color: var(--indigo-800); }
.chip-gold { background: var(--gold); color: var(--indigo-900); }
.hero h1 { font-size: var(--step-hero); font-weight: 800; letter-spacing: -.015em; margin-bottom: .35em; text-wrap: balance; }
.script { font-family: var(--font-script); font-weight: 600; font-size: 1.12em; color: var(--gold); letter-spacing: 0; line-height: 1; display: inline-block; transform: rotate(-1.5deg); transform-origin: left center; }
.lede { font-size: var(--step-1); line-height: 1.5; color: #e4defa; max-width: 36ch; margin-bottom: 1.8rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.fine { color: var(--violet-300); font-size: .9rem; margin: 0; }

.hero-art { margin: 0; position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 6% 4% 4% 6%; border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(185, 174, 240, 0.22); transform: rotate(2.2deg);
}
.chart { position: relative; width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(5, 3, 20, 0.5)); }
.gridline { stroke: rgba(185, 174, 240, 0.14); stroke-width: 1; stroke-dasharray: 3 7; }
.candle line { stroke-width: 3; stroke-linecap: round; }
.candle.up line, .candle.up rect { stroke: #2bd49a; fill: #2bd49a; }
.candle.down line, .candle.down rect { stroke: #ff6b6f; fill: #ff6b6f; }
.candle { transform-box: fill-box; transform-origin: 50% 100%; animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.trend { stroke-dasharray: 760; stroke-dashoffset: 760; animation: draw 1.8s .5s var(--ease) forwards; }
.trend-head { opacity: 0; animation: fade .5s 2.1s forwards; }
.art-note { position: absolute; right: 1rem; bottom: -.2rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-300); opacity: .7; }
@keyframes rise { from { transform: scaleY(0.05); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.candle:nth-of-type(1) { --i: 1; } .candle:nth-of-type(2) { --i: 2; } .candle:nth-of-type(3) { --i: 3; } .candle:nth-of-type(4) { --i: 4; }
.candle:nth-of-type(5) { --i: 5; } .candle:nth-of-type(6) { --i: 6; } .candle:nth-of-type(7) { --i: 7; } .candle:nth-of-type(8) { --i: 8; }
.candle:nth-of-type(9) { --i: 9; } .candle:nth-of-type(10) { --i: 10; } .candle:nth-of-type(11) { --i: 11; } .candle:nth-of-type(12) { --i: 12; }

/* ---------- facts band ---------- */
.facts { background: var(--indigo-700); color: #fff; border-block: 1px solid rgba(245, 185, 66, 0.35); }
.facts-row { list-style: none; padding: 1.2rem 0; margin-block: 0; display: grid; grid-template-columns: repeat(3, auto) 1.4fr; gap: 1rem clamp(1.2rem, 4vw, 3rem); align-items: center; justify-content: space-between; }
.facts-row li { display: flex; align-items: baseline; gap: .6rem; }
.facts-row b { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); line-height: 1; }
.facts-row span { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .76rem; max-width: 14ch; line-height: 1.3; }
.facts-markets { justify-content: flex-end; }
.facts-markets span { max-width: none; color: var(--violet-200); }
.facts-markets i { color: var(--gold); font-style: normal; }

/* ---------- the shift ---------- */
.shift { background: var(--cream); }
.shift h2 { max-width: 22ch; }
.shift-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(.8rem, 2vw, 1.6rem); align-items: stretch; margin-top: 2.2rem; }
.panel { border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.panel h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.panel-mistakes { background: #fff; border: 1.5px solid #f0c7c8; }
.panel-mistakes h3 { color: #8a1d20; }
.panel-outcomes { background: var(--indigo-800); color: #fff; box-shadow: var(--shadow); transform: translateY(-14px); }
.panel-outcomes h3 { color: var(--gold); }
.xlist, .tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.xlist li, .tlist li { position: relative; padding-left: 2rem; font-weight: 600; }
.xlist li::before, .tlist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; }
.xlist li::before { background: #fdeceb; border: 1.5px solid var(--red); }
.xlist li::after { content: "\00d7"; position: absolute; left: .33rem; top: -.02em; color: var(--red); font-weight: 800; }
.tlist li::before { background: rgba(43, 182, 115, 0.2); border: 1.5px solid var(--green); }
.tlist li::after { content: ""; position: absolute; left: .42rem; top: .42em; width: .3rem; height: .55rem; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.tlist-tight { margin-bottom: 1.6rem; }
.shift-arrow { display: grid; place-items: center; }
.shift-arrow svg { width: 56px; height: 56px; fill: var(--gold); stroke: var(--indigo-900); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.shift-arrow path { fill: none; }

/* ---------- bento ---------- */
.learn { background: var(--lav-100); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 2.2rem; }
.tile { grid-column: span 3; background: #fff; border-radius: 18px; padding: 1.5rem; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.tile p { margin: 0; color: var(--muted); font-size: .96rem; }
.tile-xl { grid-column: span 3; grid-row: span 2; background: var(--indigo-800); color: #fff; padding: 2rem; display: flex; flex-direction: column; justify-content: flex-end; border: 0; min-height: 280px; }
.tile-xl h3 { font-size: 1.9rem; }
.tile-xl p { color: var(--violet-200); font-size: 1.05rem; }
.tile-wide { grid-column: span 4; }
.tile-sm { grid-column: span 2; }
.tile-accent { background: var(--gold); border: 0; }
.tile-accent p { color: #3a2b04; }
.num { display: block; font-family: var(--font-script); font-size: 1.6rem; font-weight: 600; color: var(--indigo-600); margin-bottom: .2rem; line-height: 1; }
.tile-xl .num { color: var(--gold); }
.tile-accent .num { color: var(--indigo-800); }

/* ---------- levels ---------- */
.path { background: var(--cream); }
.levels { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: end; counter-reset: lv; }
.level { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem; position: relative; min-height: 300px; }
.level-mid { min-height: 340px; }
.level-top { min-height: 380px; background: var(--indigo-800); color: #fff; border: 0; box-shadow: var(--shadow); }
.level-n { position: absolute; top: -1.1rem; left: 1.4rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5); }
.level h3 { font-size: 1.7rem; margin-top: .6rem; margin-bottom: .1rem; }
.level-sub { font-family: var(--font-script); font-size: 1.5rem; color: var(--indigo-600); margin-bottom: .8rem; line-height: 1; }
.level-top .level-sub { color: var(--gold); }
.level p { color: inherit; opacity: .9; }
.chips { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips li { font-size: .78rem; font-weight: 700; padding: .35rem .7rem; border-radius: 999px; background: var(--lav-100); color: var(--indigo-700); }
.level-top .chips li { background: rgba(255, 255, 255, 0.12); color: var(--violet-200); }

/* ---------- lab ---------- */
.lab { background: var(--indigo-900); color: #fff; position: relative; overflow: hidden; }
.lab::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 185, 66, 0.16), transparent 65%); }
.lab-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.lab h2 em { color: var(--gold); }
.lab-copy { color: var(--violet-200); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.lab-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.lab-stats li { display: grid; grid-template-columns: 12.75rem 1fr; gap: 1.2rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid rgba(185, 174, 240, 0.22); }
.lab-stats b { font-family: var(--font-display); font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem); color: var(--gold); line-height: 1; white-space: nowrap; }
.lab-stats span { color: var(--violet-200); font-size: .98rem; }
.lab-disclaimer { grid-column: 1 / -1; font-size: .82rem; color: var(--violet-300); margin: .4rem 0 0; }

/* ---------- library teaser ---------- */
.library-tease { background: var(--lav-100); }
.lib-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.lib-grid h2 { max-width: 16ch; }
.mock { transform: rotate(-1.6deg); }
.mock-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background:
  radial-gradient(400px 200px at 70% 30%, rgba(93, 224, 208, 0.2), transparent 60%), linear-gradient(150deg, var(--indigo-900), var(--indigo-600)); box-shadow: var(--shadow); }
.mock-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.mock-play::after { content: ""; position: absolute; left: 26px; top: 19px; border-left: 20px solid var(--indigo-800); border-block: 13px solid transparent; }
.mock-wm { position: absolute; left: 8%; top: 14%; font-size: .75rem; font-weight: 700; color: rgba(255, 255, 255, 0.5); letter-spacing: .04em; animation: drift 9s ease-in-out infinite alternate; }
.mock-bar { position: absolute; left: 4%; right: 4%; bottom: 7%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); }
.mock-bar i { display: block; width: 38%; height: 100%; border-radius: 3px; background: var(--gold); }
.mock-cap { margin: .9rem .3rem 0; font-weight: 700; color: var(--indigo-700); font-size: .92rem; }
@keyframes drift { to { transform: translate(140%, 160%); } }

/* ---------- join ---------- */
.join { background: linear-gradient(165deg, var(--indigo-700), var(--indigo-800)); color: #fff; }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
.join h2 { max-width: 14ch; }
.join h2 em { color: var(--gold); }
.join-copy p { color: var(--violet-200); font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.alt-contact { font-size: 1rem !important; }
.alt-contact a { color: var(--gold); font-weight: 700; }
.join-form { background: #fff; color: var(--text); border-radius: 22px; padding: clamp(1.3rem, 3vw, 2rem); display: grid; gap: 1rem; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); transform: rotate(.8deg); }
.join-form .check { font-size: .86rem; color: var(--muted); }

/* ---------- reveal on scroll (only when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero-grid, .lab-grid, .lib-grid, .join-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 520px; }
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-markets { grid-column: 1 / -1; justify-content: flex-start; }
  .shift-grid { grid-template-columns: 1fr; }
  .shift-arrow { transform: rotate(90deg); }
  .panel-outcomes { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile-wide, .tile-sm, .tile-xl { grid-column: span 2; grid-row: auto; min-height: 0; }
  .levels { grid-template-columns: 1fr; gap: 1.8rem; }
  .level, .level-mid, .level-top { min-height: 0; }
  .lab-stats li { grid-template-columns: 1fr; gap: .3rem; }
  .join-form, .mock { transform: none; }
}
