/* v4: Kirubakaran Rajendran's voxel world, with v3's design system. A fixed WebGL world sits behind the page:
   each section paints a sky band and he walks between floating islands, one per section. The copy keeps v3's
   type, buttons and cards; dark "ink" sections are night scenes, light "chalk" sections are daylight.
   Green and red stay signals only. Sections never get stacking-context properties; animate children. */
:root {
  --ink: #0E0B1F; --ink-2: #1A1533; --line-ink: rgba(255,255,255,.10);
  --on-ink: #F3F1FA; --on-ink-2: #B7B1CF;
  --chalk: #F5F4FA; --paper: #FFFFFF; --line: #E6E3F0; --text: #12101F; --text-2: #4A4760; --text-3: #5F5A7A;
  --violet: #6614FF; --violet-600: #5210D6; --violet-300: #A98BFF; --violet-50: #EFE9FF; --violet-deep: #4A10C2;
  --marigold: #FFB224;
  --gain: #12B76A; --gain-text: #0E7A47; --gain-ink: #3DD68C;
  --f-sans: "Anek Tamil", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Martian Mono", "Anek Tamil", ui-monospace, Menlo, monospace;
  --t-sm: .9375rem; --t-lg: 1.25rem; --t-h3: 1.5rem; --t-ta: 1.0625rem;
  --t-h2: clamp(2rem, 3.6vw, 3rem); --t-h1: clamp(2.75rem, 5.6vw, 5rem);
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(18,16,31,.06), 0 4px 12px rgba(18,16,31,.06);
  --shadow-2: 0 2px 4px rgba(18,16,31,.06), 0 16px 40px rgba(18,16,31,.10);
  --shadow-violet: 0 12px 32px rgba(102,20,255,.28);
  --ease-out: cubic-bezier(.22,1,.36,1);
  --maxw: 1200px; --pad: clamp(20px, 4vw, 40px);
}
[data-theme="ink"] { --bg: var(--ink); --fg: var(--on-ink); --fg-2: var(--on-ink-2); --card: rgba(255,255,255,.04); --hair: var(--line-ink); --link: var(--violet-300); --rule: var(--violet-300); --gain-t: var(--gain-ink); }
[data-theme="chalk"] { --bg: var(--chalk); --fg: var(--text); --fg-2: var(--text-2); --card: var(--paper); --hair: var(--line); --link: var(--violet); --rule: var(--violet); --gain-t: var(--gain-text); }
[data-theme="violet"] { --bg: linear-gradient(160deg, var(--violet), var(--violet-deep)); --fg: #FFFFFF; --fg-2: rgba(255,255,255,.84); --hair: rgba(255,255,255,.24); --link: #FFFFFF; --rule: #FFFFFF; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--ink); color: var(--on-ink); font-family: var(--f-sans); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, ul, ol, dl, figure, blockquote { margin: 0; }
/* two-tone ring: violet outline plus a white gap, so one of them clears 3:1 on ink, chalk, white cards and violet */
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; box-shadow: 0 0 0 2px #fff; border-radius: 4px; }
::selection { background: var(--violet); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: #fff; color: var(--text); padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
[lang="ta"] { letter-spacing: 0; text-transform: none; }
.ta { font-family: var(--f-sans); font-size: var(--t-ta); line-height: 1.2; font-stretch: 100%; }
svg path, svg polyline, svg rect { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- sections: solid grounds, no stacking contexts on <section> ---------- */
.sec { position: relative; color: var(--fg); padding-block: clamp(72px, 10vw, 128px); }
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
h1, h2 { font-weight: 700; font-stretch: 80%; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--t-h1); line-height: .98; margin: 18px 0 20px; }
h2 { font-size: var(--t-h2); line-height: 1.05; margin-bottom: 40px; }
.h3 { font-size: var(--t-h3); font-weight: 600; line-height: 1.25; margin: 64px 0 24px; }
.lede { font-size: var(--t-lg); line-height: 1.45; color: var(--fg-2); max-width: 34em; }
.label { font-family: var(--f-mono); font-size: 13px; color: var(--fg-2); margin-bottom: 12px; }
.fine { font-size: var(--t-sm); color: var(--fg-2); margin-top: 28px; }
.rule-stub { display: block; width: 48px; height: 2px; background: var(--rule); margin-bottom: 20px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-md); border: 0; cursor: pointer; text-decoration: none; font-family: var(--f-sans); font-size: 16px; font-weight: 600; line-height: 1.1; transition: background .15s, transform .15s var(--ease-out), box-shadow .15s; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 26px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-600); transform: translateY(-1px); box-shadow: var(--shadow-violet); }
.btn-primary:active { transform: scale(.98); box-shadow: none; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:focus-visible { box-shadow: inset 0 0 0 1.5px currentColor, 0 0 0 2px #fff; }   /* keep the focus ring's white gap */
.btn:disabled { opacity: .6; pointer-events: none; }   /* busy while a form sends; no hover lift */
.btn:focus-visible { transition: background .15s, transform .15s var(--ease-out); }   /* the ring appears at once, never mid-fade */
[data-theme="chalk"] .btn-ghost:hover { background: var(--violet-50); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-ghost:active { transform: scale(.98); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--link); font-weight: 600; text-decoration: none; min-height: 44px; }
.text-link svg { width: 18px; height: 18px; transition: transform .15s var(--ease-out); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 10; height: 64px; color: var(--on-ink); transition: background .15s, box-shadow .15s, color .15s; }
.nav.solid { background: rgba(14,11,31,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line-ink); }
.nav.solid.on-chalk { background: rgba(245,244,250,.9); box-shadow: 0 1px 0 var(--line); color: var(--text); }
.nav-in { height: 100%; max-width: calc(var(--maxw) + 2 * var(--pad)); margin: 0 auto; padding-inline: var(--pad); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-stretch: 80%; font-size: 20px; white-space: nowrap; }
.brand-icon { width: 22px; height: 22px; color: var(--violet-300); }
.on-chalk .brand-icon { color: var(--violet); }
.brand-icon path, .brand-icon rect { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; opacity: .85; }
.nav-links a:hover { opacity: 1; }
.menu-btn { display: none; margin-left: auto; min-height: 44px; padding: 0 16px; border-radius: var(--r-md); border: 0; background: rgba(255,255,255,.1); cursor: pointer; font-weight: 600; }
.on-chalk .menu-btn { background: var(--violet-50); }
.nav-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--violet); transform-origin: 0 50%; transform: scaleX(0); }
.menu-sheet { position: fixed; inset: 56px 0 0 0; z-index: 12; background: var(--ink); color: var(--on-ink); padding: 16px var(--pad) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: space-between; }
.menu-sheet[hidden] { display: none; }
.menu-sheet nav a { display: flex; align-items: center; min-height: 56px; font-size: 24px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-ink); }
.menu-ctas { display: grid; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding-top: calc(64px + clamp(24px, 4vw, 56px)); padding-bottom: clamp(56px, 8vw, 96px); }
.hero-copy { padding-top: clamp(8px, 5vh, 64px); }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: var(--t-sm); color: var(--fg-2); }
.headshot { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(169,139,255,.5); }
.featured { margin-top: 56px; }
.featured ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.featured li { display: flex; align-items: center; }
.featured img { height: 22px; width: auto; background: #fff; padding: 9px 12px; border-radius: 8px; box-sizing: content-box; }
.featured .logo-et { height: 16px; padding: 12px 12px; }
.featured .logo-josh { height: 28px; padding: 6px 12px; }
.featured .logo-josh, .logo-slot img[alt="Josh Talks"] { height: 34px; }
.book-mark { font-weight: 600; font-stretch: 80%; font-size: 15px; color: var(--fg-2); border-left: 1px solid var(--hair); padding-left: 16px; }
.fw-card { margin-top: 40px; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: var(--r-xl); padding: 20px; }
.fw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 8px; }
.fw-title { font-size: 15px; font-weight: 600; }
.tag-zero { font-family: var(--f-mono); font-size: 13px; background: var(--marigold); color: var(--text); padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.fw-steps { list-style: none; padding: 0; display: grid; gap: 2px; }
.fw-steps a { display: flex; align-items: center; gap: 12px; min-height: 40px; text-decoration: none; font-size: 15px; color: var(--on-ink-2); }
.fw-steps a:hover { color: var(--on-ink); }
.dot { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; font-style: normal; font-family: var(--f-mono); font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--line-ink); }
.fw-steps li.active a { color: var(--on-ink); }
.fw-steps li.active .dot { background: var(--violet); box-shadow: none; color: #fff; }
.fw-steps li.done .dot { box-shadow: inset 0 0 0 1.5px var(--violet-300); color: var(--violet-300); }
.prompt-chip { margin: 2px 0 8px 40px; font-family: var(--f-mono); font-size: 13px; line-height: 1.55; color: var(--on-ink); background: #1D1933; border-radius: 14px 14px 14px 4px; padding: 10px 12px; min-height: 3.7em; }
.prompt-chip .typed.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; vertical-align: -2px; margin-left: 2px; background: var(--violet-300); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.fw-cap { font-size: 15px; color: var(--on-ink-2); margin-top: 10px; }

/* ---------- problem ---------- */
.quotes { list-style: none; padding: 0; }
.quotes li { position: relative; font-size: 24px; font-weight: 600; line-height: 1.25; padding: 18px 0 18px 40px; border-top: 1px solid var(--hair); }
.quotes li:last-child { border-bottom: 1px solid var(--hair); }
.quotes li::before { content: "“"; position: absolute; left: 0; top: 12px; font-size: 44px; line-height: 1; font-weight: 700; color: var(--violet); }

/* ---------- framework: stacked by default, pinned only under html[data-pin="on"] (spec 12.2) ---------- */
.how-h { margin-bottom: 40px; }
.steps { display: grid; gap: 20px; }
.course { scroll-margin-top: 88px; }
.step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto 1fr; gap: 10px 32px; align-items: start; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: 24px; scroll-margin-top: 88px; }
.step-head { display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: var(--t-h3); font-weight: 600; line-height: 1.2; color: var(--fg); min-height: 44px; }
.step-head .dot { width: 36px; height: 36px; font-size: 13px; color: var(--violet-300); box-shadow: inset 0 0 0 1.5px var(--violet-300); }
.step-line { grid-column: 1; color: var(--fg-2); margin-left: 50px; }
.screen { grid-column: 2; grid-row: 1 / span 2; background: var(--ink-2); border: 1px solid var(--line-ink); border-radius: var(--r-xl); padding: 16px; min-height: 180px; }
.screen-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 13px; color: var(--on-ink-2); margin-bottom: 14px; }
.pill { border: 1px solid var(--line-ink); border-radius: var(--r-pill); padding: 2px 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields dt { font-size: 13px; color: var(--on-ink-2); }
.fields dd { margin: 2px 0 0; font-family: var(--f-mono); font-size: 15px; }
.bubble-you { background: #241E40; border-radius: 14px 14px 14px 4px; padding: 12px; font-family: var(--f-mono); font-size: 15px; line-height: 1.5; }
.bubble-you .who { display: block; font-size: 13px; color: var(--violet-300); margin-bottom: 4px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip-ok { font-size: 13px; color: var(--violet-300); border: 1px solid rgba(169,139,255,.4); border-radius: var(--r-pill); padding: 3px 10px; }
.mini-curve { width: 100%; height: 56px; margin-top: 12px; }
.mini-curve polyline { stroke: var(--violet-300); stroke-width: 2; vector-effect: non-scaling-stroke; }
.illus { font-size: 15px; color: var(--on-ink-2); margin-top: 8px; }
.risk-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 15px; }
.screen .risk-meter { display: grid; grid-template-columns: 1fr auto; gap: 10px; font-size: 15px; }
.risk-bar { grid-column: 1 / -1; height: 8px; background: rgba(255,255,255,.08); border-radius: var(--r-pill); overflow: hidden; }
.risk-bar b { display: block; width: 18%; height: 100%; background: var(--violet-300); border-radius: inherit; }
.ok { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--gain-t); font-weight: 600; font-size: 15px; }
.ok svg, .flow svg { width: 18px; height: 18px; }
.flow { list-style: none; padding: 0; display: grid; gap: 8px; }
.flow li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px dashed var(--line-ink); border-radius: var(--r-md); font-family: var(--f-mono); font-size: 13px; }
.flow li.met { border: 1px solid var(--gain-ink); color: var(--gain-ink); }
.after-pin { padding-top: 56px; }
.zero { font-size: var(--t-lg); color: var(--fg-2); display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; cursor: default; }
.zero b { font-family: var(--f-mono); font-weight: 400; font-size: clamp(5rem, 10vw, 7.5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--violet-300); }
.tools { margin-top: 32px; }
.tools ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-size: 15px; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- courses ---------- */
.ladder { display: grid; gap: 16px; margin-top: 8px; }
.course { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s var(--ease-out); }
.course .btn { margin-top: auto; }
.course-name { text-decoration: none; display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }   /* the name and the button both open the course page; its buttons go to checkout */
/* the fourth course (crypto) sits under the three-step ladder as one slim row */
.course-also { margin: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 16px 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 18px; }
.course-also .course-name { font-weight: 700; }
@media (max-width: 959px) { .course-also { font-size: 17px; } }
.course-name svg { width: 20px; height: 20px; color: var(--violet); transition: transform .15s var(--ease-out); }
.course-name:hover svg { transform: translateX(3px); }
.course-name:hover { color: var(--violet); }
.course-top { display: flex; justify-content: space-between; align-items: center; }
.lvl { font-family: var(--f-mono); font-size: 13px; color: var(--text-3); }
.badge { font-size: 13px; font-weight: 600; border-radius: var(--r-pill); padding: 3px 10px; }
.badge-start { background: var(--marigold); color: var(--text); }
.badge-learn { background: var(--violet-50); color: var(--violet); }
.badge-flag { background: var(--violet); color: #fff; }
.course h3 { font-size: 24px; font-weight: 600; line-height: 1.2; }
.price b { font-family: var(--f-mono); font-size: 40px; font-weight: 600; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.facts { font-size: 15px; color: var(--text-2); }
.facts [lang="ta"] { font-size: 17px; }   /* Tamil never below 17 px */
.desc { color: var(--text-2); margin-bottom: 8px; }
.course-flag { box-shadow: 0 0 0 2px var(--violet), var(--shadow-violet); }
.builds-label { font-family: var(--f-mono); font-size: 13px; color: var(--text-3); }
.builds { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.builds li { font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: var(--r-pill); background: var(--violet-50); color: var(--violet); }
.note { font-size: 15px; color: var(--text-2); }
.pull { border-left: 2px solid var(--violet); padding-left: 14px; margin: 6px 0 10px; }
.pull p { font-size: 18px; line-height: 1.45; }
.pull footer { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.coupon { align-self: flex-start; font-size: 15px; color: var(--violet); background: var(--violet-50); border: 1.5px dashed var(--violet-300); border-radius: var(--r-md); padding: 6px 12px; }
.coupon b { font-weight: 600; margin-right: 6px; letter-spacing: .02em; }
[data-theme="ink"] .coupon { color: var(--on-ink); background: rgba(169,139,255,.12); }
.coupon[hidden] { display: none; }
.apps { margin-top: 40px; }
.app-links { display: flex; flex-wrap: wrap; gap: 12px; }
/* store-style app buttons: solid ink on the light courses section, white in the dark menu */
.app-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 22px 8px 16px; border-radius: var(--r-md); background: var(--ink); color: #fff; text-decoration: none; transition: background .15s, transform .15s var(--ease-out), box-shadow .15s; }
.app-badge:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.app-badge:active { transform: scale(.98); box-shadow: none; }
.app-badge:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.app-badge svg { width: 26px; height: 26px; flex: none; }
.app-badge span { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.app-badge small { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.72); }
.app-badge b { font-size: 18px; font-weight: 700; }
@media (max-width: 959px) { .app-badge b { font-size: 17px; } }
.menu-apps { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.menu-apps .label { width: 100%; text-align: center; margin: 8px 0 0; }
.menu-apps .app-badge { background: #fff; color: var(--text); }
.menu-apps .app-badge small { color: var(--text-2); }
.menu-apps .app-badge:hover { background: var(--violet-50); }
.modules { margin-top: 48px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.modules summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 600; list-style: none; }
.modules summary::-webkit-details-marker { display: none; }
.modules summary::after { content: "+"; margin-left: auto; font-size: 24px; color: var(--violet); }
.modules[open] summary::after { content: "−"; }
.mod-list { columns: 1; column-gap: 40px; padding: 0 0 24px 22px; font-size: 15px; color: var(--text-2); }
.mod-list li { break-inside: avoid; padding: 3px 0; }

/* ---------- about ---------- */
.about-intro .lede { margin-top: -20px; }
.main-photo { margin-top: 48px; }
.main-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-xl); }
figcaption { font-family: var(--f-mono); font-size: 13px; color: var(--fg-2); margin-top: 10px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.photo-strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); }
.bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; margin-top: 40px; }
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 44% 30%; border-radius: var(--r-xl); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chips li { font-size: 15px; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- proof ---------- */
.book-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: start; }
.book-cover { aspect-ratio: 3 / 4; max-width: 170px; border-radius: 6px 14px 14px 6px; background: linear-gradient(135deg, #2A1E66, #120D2E); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-2), inset 6px 0 0 rgba(255,255,255,.08); }
.bk-author { font-family: var(--f-mono); font-size: 13px; opacity: .7; }
.bk-title { font-size: 22px; font-weight: 700; font-stretch: 80%; line-height: 1.05; }
.book-quote p { font-size: 24px; line-height: 1.15; font-weight: 700; font-stretch: 80%; color: var(--violet); }
.book-quote footer { font-size: 13px; color: var(--text-3); margin-top: 12px; }
.press { display: grid; gap: 12px; }
.press-card { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 20px; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); text-decoration: none; transition: transform .15s var(--ease-out), box-shadow .15s; }
.press-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.press-card:focus-visible { box-shadow: var(--shadow-2), 0 0 0 2px #fff; }
.logo-slot { height: 32px; display: flex; align-items: center; }
.logo-slot img { max-height: 32px; width: auto; }
.headline { font-size: 18px; line-height: 1.3; font-weight: 600; }
.go { display: inline-flex; align-items: center; gap: 6px; color: var(--violet); font-weight: 600; font-size: 15px; }
.go svg { width: 16px; height: 16px; }
.reviews { display: grid; gap: 16px; }
.review { background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 28px; }
.review p { font-size: 18px; line-height: 1.55; }
.review[lang="ta"] p { line-height: 1.7; }
.review footer { font-size: 15px; color: var(--text-3); margin-top: 14px; }

/* ---------- final ---------- */
.final { overflow: hidden; }
.final-ta { position: absolute; left: 0; top: -36px; font-size: clamp(6rem, 15vw, 12rem); line-height: 1.3; font-weight: 700; color: rgba(255,255,255,.12); pointer-events: none; z-index: 0; }
.final-copy { position: relative; z-index: 1; }
.doors { display: grid; grid-template-columns: 6fr 4fr; gap: 16px; }
.door { border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.door-main { background: #fff; color: var(--violet); box-shadow: none; }
.door-title { font-size: 24px; font-weight: 600; line-height: 1.2; }
.door-meta { font-size: 15px; margin-bottom: 14px; }
.door .btn { margin-top: auto; }
.door-main .door-meta { color: var(--text-2); }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 5; background: var(--ink); color: var(--on-ink-2); padding: 72px 0 40px; font-size: 15px; }
.brand-foot { color: #fff; font-size: 20px; }
.foot-bio { margin-top: 8px; }
.foot-top { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-bottom: 40px; }
.foot-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-links h3, .foot .risk h3 { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.foot-links a { display: flex; flex-wrap: wrap; align-items: center; column-gap: .3em; min-height: 36px; text-decoration: none; }   /* the gap keeps the space before a Tamil word */
.foot-links a:hover { color: #fff; }
.foot-btn { display: flex; align-items: center; min-height: 36px; padding: 0; border: 0; background: none; color: inherit; font-size: 15px; cursor: pointer; }
.foot-btn[hidden] { display: none; }
.foot-btn:hover { color: #fff; }

/* the Feedback form (analytics.js builds it on first open) */
.fb { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: var(--r-lg); padding: 0; background: var(--paper); color: var(--text); box-shadow: var(--shadow-2); }
.fb::backdrop { background: rgba(14,11,31,.7); }
.fb-form { display: grid; gap: 16px; padding: 24px; }
.fb-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.fb h2 { font-size: var(--t-h3); font-stretch: 100%; letter-spacing: 0; margin: 0; }
.fb-x { min-height: 40px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--chalk); font-size: 15px; font-weight: 600; cursor: pointer; }
.fb-kinds { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.fb-kinds label { position: relative; }
.fb-kinds input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-kinds span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; font-weight: 600; }
.fb-kinds input:checked + span { background: var(--violet); color: #fff; box-shadow: none; }
.fb-kinds input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.fb-field { display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.fb-field textarea, .fb-field input { font: inherit; font-size: 16px; color: var(--text); padding: 12px 14px; border: 0; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: var(--paper); resize: vertical; }
.fb-field textarea:focus, .fb-field input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--violet); }
.fb-hp { position: absolute; left: -9999px; }
.fb-note { min-height: 1.4em; font-size: 15px; color: var(--text-2); }
.fb-send { justify-self: start; }
.foot .risk { border-top: 1px solid var(--line-ink); padding-top: 28px; columns: 2; column-gap: 40px; font-size: 15px; line-height: 1.6; }
.foot .risk h3 { column-span: all; }
.foot .risk p { break-inside: avoid; margin-bottom: 12px; }
.foot .risk b { color: #fff; }
.foot-base { border-top: 1px solid var(--line-ink); margin-top: 24px; padding-top: 20px; }

/* ---------- mobile sticky bar ---------- */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: none; gap: 8px; padding: 6px 16px calc(6px + env(safe-area-inset-bottom)); background: rgba(14,11,31,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line-ink); color: var(--on-ink); transform: translateY(110%); transition: transform .25s var(--ease-out); }
.sticky-bar .btn { flex: 1; white-space: nowrap; font-size: 15px; padding: 0 10px; }
.sticky-bar.show { transform: none; }
.sticky-bar.menu-open { transform: translateY(110%); }

/* ---------- reveal: children only, once ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }


/* ---------- the world: sky bands, canvas, a wash behind the copy, labels and a speech bubble ---------- */
.skies { position: absolute; inset: 0 0 auto 0; z-index: 0; pointer-events: none; }
.skies i { position: absolute; left: 0; right: 0; }
#world { position: fixed; inset: 0 0 auto 0; width: 100%; height: 100vh; height: 100lvh; z-index: 1; pointer-events: none; display: block; }
.scrim { position: absolute; inset: 0 0 auto 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s;
  /* solid behind the whole copy column (--colR, set by main.js), fading out just past it */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--colR, 50vw) + 32px), transparent calc(var(--colR, 50vw) + 200px));
  mask-image: linear-gradient(90deg, #000 calc(var(--colR, 50vw) + 32px), transparent calc(var(--colR, 50vw) + 200px)); }
.scrim i { position: absolute; left: 0; right: 0; }
.world-labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.wlabel { position: absolute; left: 0; top: 0; font-family: var(--f-mono); font-size: 13px; line-height: 1; white-space: nowrap; padding: 6px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.92); color: var(--text); box-shadow: var(--shadow-1); opacity: 0; will-change: transform; }
.wlabel[data-theme="ink"] { background: rgba(26,21,51,.9); color: var(--on-ink); box-shadow: 0 0 0 1px var(--line-ink); }
.wlabel.wl-hi { background: var(--violet); color: #fff; }
.wlabel.wl-hi[data-theme="violet"] { background: var(--text); color: #fff; }   /* violet on the violet ground would vanish */
.wlabel.wl-zero { background: var(--marigold); color: var(--text); }
.wl-step .wl-name { display: none; margin-left: 8px; }
.wl-step.wl-hi .wl-name { display: inline; }
.bubble { position: fixed; left: 0; top: 0; z-index: 4; translate: -50% -100%; background: #fff; color: var(--text); font-weight: 600; font-size: 17px; line-height: 1.2; padding: 10px 16px; border-radius: var(--r-lg); box-shadow: var(--shadow-2); white-space: nowrap; pointer-events: none; opacity: 0; scale: .9; transition: opacity .25s, scale .25s var(--ease-out); }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; margin-left: -7px; background: #fff; border-radius: 3px; rotate: 45deg; }
.bubble.on { opacity: 1; scale: 1; }
.bubble[lang="ta"] { font-size: 19px; }
main { position: relative; z-index: 5; }
.pause { position: fixed; right: 16px; bottom: 16px; z-index: 9; width: 44px; height: 44px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgba(255,255,255,.9); color: var(--text); box-shadow: var(--shadow-1); cursor: pointer; }
.world-on .pause { display: grid; }
.pause svg { width: 18px; height: 18px; }
.pause .tip { position: absolute; right: 52px; top: 50%; translate: 0 -50%; white-space: nowrap; font-size: 13px; background: var(--ink-2); color: var(--on-ink); padding: 4px 10px; border-radius: var(--r-sm); opacity: 0; pointer-events: none; transition: opacity .15s; }
@media (hover: hover) { .pause:hover .tip { opacity: 1; } }   /* a tap on a phone would leave it stuck on */
.pause:focus-visible .tip { opacity: 1; }
.pause:focus-visible { box-shadow: var(--shadow-1), 0 0 0 2px #fff; }

/* ---------- layout: the copy column on the left, the world (or its poster) on the right ---------- */
.sec > .wrap { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); column-gap: 48px; }
.col { grid-column: 1; grid-row: 1; min-width: 0; }
.window { grid-column: 2; grid-row: 1; visibility: hidden; }
.window .poster { position: sticky; top: 14vh; width: 100%; max-width: 640px; margin-left: auto; height: auto; aspect-ratio: 1; object-fit: contain; display: none; }
.no-3d .window { visibility: visible; }
.no-3d .window .poster { display: block; }
.world-on .scrim { opacity: 1; }
.hero { padding-top: calc(64px + clamp(24px, 4vw, 56px)); min-height: 100svh; }
.problem, .courses, .about, .proof, .final { min-height: 100svh; }
.final-copy { position: relative; }
.doors { grid-template-columns: 1fr 1fr; }

/* ---------- framework: stacked by default, pinned only under html[data-pin="on"] ---------- */
[data-pin="on"] .how .pin { height: 100vh; padding-top: 96px; padding-bottom: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); column-gap: 24px; }
[data-pin="on"] .how-h { grid-column: 1 / -1; margin-bottom: 24px; }
[data-pin="on"] .steps { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 24px; row-gap: 0; position: relative; align-content: start; }
[data-pin="on"] .step { display: contents; }
[data-pin="on"] .step-head { grid-column: 1; font-size: 18px; position: relative; z-index: 1; }
[data-pin="on"] .step-head .step-label { opacity: .5; transition: opacity .25s; }
[data-pin="on"] .step-head .dot { width: 32px; height: 32px; background: var(--ink); color: rgba(169,139,255,.6); }
[data-pin="on"] .step-line { display: none; grid-column: 1; margin: 0 0 8px 46px; font-size: 15px; }
[data-pin="on"] .step.on .step-head .step-label { opacity: 1; }
[data-pin="on"] .step.on .step-head .dot { background: var(--violet); color: #fff; box-shadow: none; }
[data-pin="on"] .step.on .step-line { display: block; }
[data-pin="on"] .step:nth-child(1) .step-head { grid-row: 1; } [data-pin="on"] .step:nth-child(1) .step-line { grid-row: 2; }
[data-pin="on"] .step:nth-child(2) .step-head { grid-row: 3; } [data-pin="on"] .step:nth-child(2) .step-line { grid-row: 4; }
[data-pin="on"] .step:nth-child(3) .step-head { grid-row: 5; } [data-pin="on"] .step:nth-child(3) .step-line { grid-row: 6; }
[data-pin="on"] .step:nth-child(4) .step-head { grid-row: 7; } [data-pin="on"] .step:nth-child(4) .step-line { grid-row: 8; }
[data-pin="on"] .step:nth-child(5) .step-head { grid-row: 9; } [data-pin="on"] .step:nth-child(5) .step-line { grid-row: 10; }
[data-pin="on"] .screen { grid-column: 2; grid-row: 1 / span 10; align-self: start; visibility: hidden; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .4s var(--ease-out), visibility .3s; }
[data-pin="on"] .step.on .screen { visibility: visible; opacity: 1; transform: none; }
[data-pin="on"] .steps::before { content: ""; position: absolute; left: 15px; top: 22px; height: calc(100% - 44px); width: 2px; background: linear-gradient(var(--rule) var(--fill, 0%), rgba(169,139,255,.25) var(--fill, 0%)); }
.step { grid-template-columns: 1fr; }
.screen { grid-column: 1; grid-row: auto; }
.step-line { margin-left: 50px; }

/* ---------- tablet and mobile: a window onto the world above each section's panel ---------- */
@media (max-width: 960px) {
  body { font-size: 17px; }
  .nav { height: 56px; }
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  .sec { padding-block: 0 48px; min-height: 0; }
  .sec > .wrap { display: block; }
  .window { height: 46svh; visibility: visible; }
  .window .poster { position: static; height: 100%; width: auto; max-width: 100%; margin: 0 auto; }
  .hero .window { height: 30svh; min-height: 170px; }
  .col { border-radius: var(--r-xl); padding: 28px 20px; margin-inline: -6px; }
  [data-theme="ink"] .col { background: var(--ink); box-shadow: 0 0 0 1px var(--line-ink); }
  [data-theme="chalk"] .col { background: var(--paper); box-shadow: var(--shadow-2); }
  [data-theme="violet"] .col { background: var(--violet-deep); }
  .no-3d .col { background: none; box-shadow: none; padding-inline: 0; margin-inline: 0; }
  .hero { padding-top: 56px; }
  .hero-copy { padding-top: 0; }
  h1 { font-size: clamp(36px, 11.2vw, 56px); margin: 14px 0 14px; }
  .price b { font-size: 32px; }
  h2 { margin-bottom: 28px; }
  .ctas { margin-top: 24px; }
  .ctas .btn { width: 100%; }
  .fw-card { margin-top: 28px; }
  .featured { margin-top: 28px; }
  .book-row, .bio { grid-template-columns: 1fr; }
  .book-cover { max-width: 150px; }
  .press-card { grid-template-columns: 1fr; gap: 10px; }
  .photo-strip { grid-template-columns: repeat(3, 78%); overflow: auto hidden; scroll-snap-type: x mandatory; }   /* hidden y: vertical swipes scroll the page */
  .photo-strip figure { scroll-snap-align: start; }
  .doors { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .foot .risk { columns: 1; }
  .foot-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-bar { display: flex; }
  .sticky-bar[hidden] { display: none; }
  .quotes li { font-size: 20px; }
  .h3 { margin-top: 48px; }
  .scrim { display: none; }
  .wl-wide, .wl-step.wl-hi .wl-name { display: none; }   /* phones: number chips only; the panel names the step */
  .pause { top: 68px; bottom: auto; right: 12px; }
}
/* tablets: a centred panel with its own layout, not a stretched phone */
@media (min-width: 600px) and (max-width: 960px) {
  .col { max-width: 720px; margin-inline: auto; padding: 40px 36px; }
  h2 { font-size: 40px; }
  .ctas .btn { width: auto; }
  .bio { grid-template-columns: 240px minmax(0, 1fr); }
  .book-row { grid-template-columns: 170px minmax(0, 1fr); }
  .book-cover { max-width: 170px; }
  .photo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .press-card { grid-template-columns: 130px minmax(0, 1fr) auto; gap: 16px; }
  .doors { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .brand span { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* poster capture (localhost ?poster=N): only the world, on a transparent ground */
.poster-mode .skies, .poster-mode main, .poster-mode .nav, .poster-mode .foot, .poster-mode .pause, .poster-mode .scrim,
.poster-mode .world-labels, .poster-mode .bubble, .poster-mode .sticky-bar, .poster-mode .skip { display: none !important; }
.poster-mode, .poster-mode body { background: transparent; }
