/* Geetha — brand system
   Sky over a Nilgiri meadow: paper white, three blues, one meadow green.
   Hand lettering for her name, a quiet serif for what we say, a Tamil-first sans for reading. */

@font-face { font-family: "Yusei Magic"; src: url("../fonts/yusei-magic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Anek Tamil"; src: url("../fonts/anek-tamil.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Baloo Thambi 2"; src: url("../fonts/baloo-thambi.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --paper: #F6FAFE;
  --cloud: #E3EEF9;
  --haze: #B9D8F4;
  --sky: #3F8FE0;
  --kurinji: #2B5FD9;
  --ink: #0F2A47;
  --mist: #5B7590;
  --meadow: #6FA94E;
  --line: rgba(15, 42, 71, .12);

  --hand: "Yusei Magic", "Baloo Thambi 2", cursive;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Anek Tamil", "Nirmala UI", system-ui, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --gutter: clamp(20px, 4.5vw, 72px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--kurinji); outline-offset: 3px; border-radius: 6px; }
[lang="ta"] { font-family: var(--sans); line-height: 1.7; }
code { font-family: var(--mono); font-size: .9em; background: var(--cloud); padding: .1em .35em; border-radius: 6px; }

h1, h2 { font-family: var(--serif); font-weight: 300; letter-spacing: -.022em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.75rem); }
h3 { font: 500 1.25rem/1.3 var(--sans); }

/* ───────────── buttons ───────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 500;
  transition: background .25s, transform .25s var(--ease);
}
.btn:hover { background: var(--kurinji); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--cloud); }
.btn--small { height: 40px; padding: 0 18px; font-size: 1rem; }

/* ───────────── loader ───────────── */
.loader {
  position: fixed; inset: 0; z-index: 50; background: var(--sky); color: #fff;
  display: grid; place-items: center;
}
.loader__row { display: flex; gap: clamp(6px, 1vw, 12px); align-items: center; height: 64px; }
.loader__cell { position: relative; width: clamp(26px, 3.2vw, 40px); height: clamp(26px, 3.2vw, 40px); display: grid; place-items: center; transform: scale(0); }
.loader__cell svg { width: 100%; height: 100%; fill: currentColor; position: absolute; }
.loader__cell b { font: 400 clamp(40px, 5vw, 64px)/1 var(--hand); position: absolute; opacity: 0; }
.no-js .loader, .loader.is-done { display: none; }
.no-js body { overflow: auto; }

/* ───────────── nav ───────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .3s, backdrop-filter .3s;
}
.nav.is-stuck { background: rgba(246, 250, 254, .78); backdrop-filter: blur(14px) saturate(1.3); }
.nav__mark { font: 400 1.9rem/1 var(--hand); text-decoration: none; color: var(--ink); }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.nav__links a { text-decoration: none; color: var(--mist); font-size: 1rem; transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ───────────── hero ───────────── */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 96px var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 33vw, 500px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero__copy { align-self: center; padding-bottom: 8svh; }
.hero__title { font-size: clamp(2.75rem, 5.4vw, 5.25rem); }
.tw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.tw__in { display: inline-block; }
.hero__lede { margin-top: 28px; max-width: 34ch; color: var(--mist); font-size: 1.2rem; }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.arch {
  position: relative; align-self: end;
  height: min(calc(100svh - 96px), 780px); min-height: 520px;
  border-radius: 999px 999px 0 0; overflow: hidden;
  background: #2F7FD8;
  isolation: isolate;
}
.arch__paint {
  position: absolute; inset: -6% 0 -6% 0; z-index: -1;
  background: url("../img/sky.jpg") center bottom / cover no-repeat;
}
.arch__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s; }
.arch__sky.is-live { opacity: 1; }
.arch__name {
  position: absolute; left: 0; right: 0; bottom: 5%;
  text-align: center; color: #fff; font: 400 clamp(4rem, 8.2vw, 7.8rem)/1 var(--hand);
  text-shadow: 0 6px 30px rgba(20, 70, 140, .28);
  pointer-events: none;
}

.orbit { position: absolute; left: 50%; top: 13%; width: 74%; aspect-ratio: 1; transform: translateX(-50%); }
.orbit__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbit__ring circle { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: .6; vector-effect: non-scaling-stroke; }
.orbit__tag {
  position: absolute; left: calc(50% + 50% * cos(var(--a))); top: calc(50% + 50% * sin(var(--a)));
  transform: translate(-50%, -50%);
  padding: 5px 13px; border-radius: 999px; font-size: .95rem; white-space: nowrap;
  color: #fff; background: rgba(15, 42, 71, .34); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
  transition: --a .9s var(--ease), background .3s, color .3s;
}
.orbit__tag[aria-pressed="true"] { background: #fff; color: var(--ink); }
.orb { position: absolute; inset: 15%; border-radius: 50%; display: block; transition: transform .5s var(--ease); }
.orb canvas { width: 100%; height: 100%; display: block; border-radius: 50%; }
button.orb:hover { transform: scale(1.03); }
.orb__icon {
  position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px;
  border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 30px rgba(15, 42, 71, .18);
  transition: transform .35s var(--ease), opacity .35s;
}
.orb__icon::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 20px;
  background: var(--ink); clip-path: polygon(12% 0, 100% 50%, 12% 100%); transition: clip-path .25s;
}
.is-playing > .orb__icon { transform: scale(.72); opacity: .0; }
.is-playing:hover > .orb__icon { opacity: .92; }
.is-playing > .orb__icon::before { clip-path: polygon(8% 4%, 38% 4%, 38% 96%, 62% 96%, 62% 4%, 92% 4%, 92% 96%, 8% 96%); }

.hero__say { position: relative; align-self: center; padding-bottom: 8svh; }
.note {
  font: 400 1.35rem/1.25 var(--hand); color: var(--kurinji);
  transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: 34px;
}
.note::before {
  content: ""; position: absolute; left: -64px; top: 14px; width: 52px; height: 26px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 26' fill='none' stroke='%232B5FD9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M50 4C36 2 18 6 4 18'/%3E%3Cpath d='M4 8v10h10'/%3E%3C/svg%3E");
}
.say__ta { font-size: clamp(1.35rem, 1.9vw, 1.75rem); font-weight: 500; line-height: 1.6; max-width: 20ch; }
.say__ta .w { color: color-mix(in srgb, var(--ink) 28%, transparent); transition: color .25s; }
.say__ta .w.on { color: var(--ink); }
.say__en { margin-top: 14px; color: var(--mist); max-width: 30ch; }
.say__who { margin-top: 22px; font-size: .95rem; color: var(--mist); }
.say__who span { color: var(--ink); font-weight: 500; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; gap: 40px; }
  .hero__copy, .hero__say { padding-bottom: 0; }
  .arch { order: 2; width: min(100%, 440px); justify-self: center; height: 620px; }
  .hero__say { order: 3; padding-bottom: 40px; }
  .note::before { display: none; }
}

/* ───────────── statement ───────────── */
.statement { padding: clamp(110px, 17vw, 240px) var(--gutter); }
.statement__text {
  max-width: 19ch; margin: 0 auto; text-align: center;
  font-size: clamp(2.3rem, 5.4vw, 5rem); line-height: 1.12; text-wrap: pretty;
}
.statement__text .dim { color: color-mix(in srgb, var(--ink) 35%, transparent); }
.pill {
  display: inline-block; vertical-align: -.04em;
  width: 1.75em; height: .76em; border-radius: 999px; overflow: hidden;
  background: var(--haze) no-repeat; background-size: 150% auto; animation: drift 14s ease-in-out infinite alternate;
}
.pill--anitha { background-image: url("../img/pill-anitha.jpg"); }
.pill--arun { background-image: url("../img/pill-arun.jpg"); animation-delay: -5s; }
.pill--moods { background-image: url("../img/pill-moods.jpg"); animation-duration: 18s; }
.pill--breath { background-image: url("../img/pill-breath.jpg"); animation-duration: 10s; }
@keyframes drift { from { background-position: 0% 35%; } to { background-position: 100% 65%; } }

/* ───────────── shared section rhythm ───────────── */
/* one centred column: every block starts on the same left edge and ends on the same right edge */
.listen, .moods, .write, .measured, .answers, .open {
  padding: 0 max(var(--gutter), calc(50% - 36rem)) clamp(110px, 14vw, 200px);
}
.section-head { max-width: 46rem; }
.section-head p { margin-top: 20px; color: var(--mist); max-width: 56ch; }

/* ───────────── everyday lines ───────────── */
.lines { margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.line {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 8px clamp(16px, 3vw, 40px);
  align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line);
}
.line__ta { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 500; max-width: 44ch; }
.line__en { color: var(--mist); margin-top: 4px; max-width: 60ch; }
.play {
  position: relative; width: 56px; height: 56px; border-radius: 50%;
  background: var(--cloud); transition: background .25s, transform .25s var(--ease);
  flex: none;
}
.play:hover { background: var(--haze); transform: scale(1.05); }
.play::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 16px; height: 18px;
  background: var(--ink); clip-path: polygon(12% 0, 100% 50%, 12% 100%); transition: clip-path .25s;
}
.play.is-playing { background: var(--kurinji); }
.play.is-playing::before { background: #fff; clip-path: polygon(8% 4%, 38% 4%, 38% 96%, 62% 96%, 62% 4%, 92% 4%, 92% 96%, 8% 96%); }
.play::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(var(--kurinji) calc(var(--p, 0) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
}
.chips { display: flex; gap: 6px; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 999px; font-size: .95rem; color: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s;
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.chip:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) {
  .line { grid-template-columns: 48px minmax(0, 1fr); }
  .play { width: 48px; height: 48px; }
  .chips { grid-column: 2; }
}

/* ───────────── moods ───────────── */
.moods { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.moods__stage { text-align: center; }
.orb--mood { position: relative; inset: auto; width: min(100%, 400px); aspect-ratio: 1; margin: 0 auto 36px; }
.moods__ta { font-size: 1.3rem; font-weight: 500; min-height: 3.4em; max-width: 26ch; margin: 0 auto; }
.moods__en { color: var(--mist); margin: 8px auto 0; max-width: 34ch; min-height: 3.1em; }
.moodlist { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.mood {
  font: 300 clamp(2.4rem, 4.6vw, 4.25rem)/1.15 var(--serif); letter-spacing: -.02em;
  color: color-mix(in srgb, var(--ink) 28%, transparent); transition: color .3s; text-align: left;
}
.mood:hover, .mood[aria-pressed="true"] { color: var(--ink); }
.mood[aria-pressed="true"] { font-style: italic; }
.mood:disabled { cursor: default; color: color-mix(in srgb, var(--ink) 14%, transparent); }
.orb--mood { cursor: pointer; }
.mood small { display: block; font: 400 .9rem/1.3 var(--sans); letter-spacing: 0; color: var(--mist); font-style: normal; }
@media (max-width: 860px) { .moods { grid-template-columns: 1fr; } .moods__side { order: -1; } }

/* ───────────── write ───────────── */
.code {
  margin-top: clamp(40px, 5vw, 72px);
  background: var(--ink); color: #DCEBFA; border-radius: 28px; overflow: hidden;
  font: 400 .98rem/1.7 var(--mono);
}
.code__bar { padding: 14px 28px; color: #7FA0C2; font: 400 .9rem/1 var(--sans); border-bottom: 1px solid rgba(255,255,255,.08); }
.code__pre { margin: 0; padding: 22px 28px 6px; overflow-x: auto; }
.code code { background: none; padding: 0; font-size: 1em; }
.c-b { color: #A9D49A; }
.c-k { color: #8EC3F0; } .c-s { color: #fff; } .c-a { color: #A9D49A; }
.code__lines { padding: 6px 12px 16px; }
.code__line {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center;
  padding: 10px 16px; border-radius: 16px; transition: background .2s;
}
.code__line:hover, .code__line.is-playing { background: rgba(255,255,255,.06); }
.code__line .play { width: 44px; height: 44px; background: rgba(255,255,255,.1); }
.code__line .play::before { background: #fff; width: 13px; height: 15px; }
.code__line .play.is-playing { background: #fff; }
.code__line .play.is-playing::before { background: var(--ink); }
.code__line .play::after { background: conic-gradient(#8EC3F0 calc(var(--p, 0) * 1turn), transparent 0); }
.code__line code { white-space: pre-wrap; word-break: break-word; }
.aside { margin-top: 32px; max-width: 60ch; color: var(--mist); padding-left: 20px; border-left: 2px solid var(--haze); }

/* ───────────── measured ───────────── */
.chart { margin-top: clamp(40px, 5vw, 72px); }
.chart__row { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr) 4.5rem; gap: 20px; align-items: center; padding: 12px 0; }
.chart__name { font-weight: 500; }
.chart__bar {
  height: 22px; border-radius: 999px; background: var(--haze);
  width: calc(var(--v) / 6 * 100%); transform-origin: left center;
}
.chart__bar--us { background: var(--kurinji); }
.chart__bar--base { background: var(--ink); }
.chart__val { font-variant-numeric: tabular-nums; text-align: right; }
.chart__note { margin-top: 16px; color: var(--mist); font-size: 1rem; }
@media (max-width: 640px) { .chart__row { grid-template-columns: 1fr 4.5rem; } .chart__name { grid-column: 1 / -1; } }

.facts { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(28px, 4vw, 56px); }
.fact h3 { font: 400 1.75rem/1.15 var(--serif); letter-spacing: -.01em; }
.fact p { margin-top: 12px; color: var(--mist); }
.limits { margin-top: clamp(56px, 7vw, 96px); padding: clamp(28px, 4vw, 48px); background: var(--cloud); border-radius: 28px; }
.limits ul { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); column-gap: 40px; }
.limits ul { margin-top: 18px; display: grid; gap: 10px; }
.limits li { padding-left: 26px; position: relative; }
.limits li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--mist); border-radius: 2px; }

/* ───────────── short answers ───────────── */
.qas { margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font: 400 clamp(1.4rem, 2vw, 1.75rem)/1.2 var(--serif); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--kurinji); border-bottom: 2px solid var(--kurinji);
  transform: rotate(45deg); transition: transform .35s var(--ease);
}
.qa[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.qa p { padding: 0 48px 26px 0; color: var(--mist); max-width: 62ch; }
.thanks a, .section-head a, .foot__bar > span:first-child a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.thanks a:hover, .section-head a:hover { color: var(--kurinji); }

/* ───────────── open ───────────── */
.doors { margin-top: clamp(40px, 5vw, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.door { text-decoration: none; display: grid; gap: 6px; align-content: start; }
.door__arch {
  display: block; aspect-ratio: 3 / 4; border-radius: 999px 999px 20px 20px; margin-bottom: 18px;
  background: var(--haze) center 30% / 118% auto no-repeat;
  transition: background-size 1.2s var(--ease), background-position 1.2s var(--ease), transform .6s var(--ease);
}
.door:hover .door__arch { background-size: 130% auto; background-position: center 55%; transform: translateY(-6px); }
.door__arch--a { background-image: url("../img/door-model.jpg"); }
.door__arch--b { background-image: url("../img/door-code.jpg"); }
.door__arch--c { background-image: url("../img/door-evidence.jpg"); background-position: center 70%; }
.door strong { font: 400 1.75rem/1.15 var(--serif); }
.door span:last-child { color: var(--mist); }
.thanks { margin-top: clamp(48px, 6vw, 80px); max-width: 60ch; color: var(--mist); }
@media (max-width: 640px) { .doors { grid-template-columns: 1fr; max-width: 320px; } }

/* ───────────── footer: the meadow ───────────── */
.foot { position: relative; padding-top: clamp(24px, 4vw, 60px); overflow: hidden; }
.foot__scene { position: relative; aspect-ratio: 1920 / 800; }
.foot__name {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-start;
  font: 400 23vw/1 var(--hand); color: var(--kurinji);
  -webkit-mask: url("../img/meadow-mask.png") center / 100% 100% no-repeat;
          mask: url("../img/meadow-mask.png") center / 100% 100% no-repeat;
}
.foot__name span { display: block; margin-top: -1.5vw; }
.foot__meadow {
  position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply;
}
.foot__bar {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 60px var(--gutter) 26px; color: #fff; font-size: 1rem;
  background: linear-gradient(transparent, rgba(8, 34, 10, .72));
  text-shadow: 0 1px 8px rgba(0, 30, 0, .5);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 10px; }
.foot__links a {
  display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--ink); font-weight: 500; text-decoration: none; text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 30, 0, .25);
  transition: transform .3s var(--ease), background .25s, color .25s;
}
.foot__links a:hover { transform: translateY(-3px); background: var(--kurinji); color: #fff; }

@media (max-width: 760px) {
  .foot__bar { position: static; background: #35602A; padding: 22px var(--gutter) 28px; }
  .foot__scene { margin-bottom: -1px; }
}

/* ───────────── reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill { animation: none; }
}
