/* Mindsett v2: "kasavu and laterite".
   Unbleached-cotton ground, teak ink, laterite for action, a thin double zari line
   (the kasavu border) as the one ornament, and a dusk room for the breathing pause.
   Latin: Newsreader (headings) + Albert Sans (text).
   Malayalam: Noto Serif Malayalam (headings) + Gayathri (text), with its own scale. */

:root {
  --cotton: #fcfaf6;
  --cotton-2: #f6efe5;
  --clay: #f0ddcf;
  --sand: #e7dac5;
  --line: #ddcdb5;
  --ink: #241a13;
  --ink-2: #57473b;
  --ink-3: #6f5c4c;
  --laterite: #a4482b;
  --laterite-deep: #873820;
  --laterite-tint: #f6e4d8;
  --zari: #b8893a;
  --zari-text: #835d1d;
  --leaf: #2e5a45;
  --leaf-tint: #e3ece4;
  --dusk: #2a2019;
  --dusk-2: #382a21;
  --on-dusk: #f4ecdf;
  --on-dusk-2: #d4c5b2;

  --f-head: "Newsreader", "Noto Serif Malayalam", Georgia, serif;
  --f-text: "Albert Sans", "Gayathri", system-ui, sans-serif;

  --fs-body: 1.0625rem;
  --lh-body: 1.6;
  --fs-h1: clamp(2.35rem, 1.2rem + 5vw, 4.35rem);
  --lh-h1: 1.04;
  --fs-h2: clamp(1.85rem, 1.2rem + 2.6vw, 2.85rem);
  --lh-h2: 1.1;
  --fs-h3: 1.35rem;
  --fs-lead: clamp(1.1rem, 1rem + .4vw, 1.25rem);
  --track-head: -0.018em;
  --measure: 62ch;

  --gutter: 20px;
  --wrap: 1180px;
  --hdr: 64px;
  --r: 14px;
  --r-s: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(60, 35, 15, .06), 0 8px 24px -10px rgba(60, 35, 15, .18);
  color-scheme: light;
  scrollbar-color: #cdb99c var(--cotton);
}

/* Malayalam gets its own type system: larger text, taller lines, no tracking,
   smaller display sizes so long words never crowd a 360 px screen. */
html[lang="ml"] {
  font-size: 106.25%;
  --f-head: "Noto Serif Malayalam", "Newsreader", Georgia, serif;
  --f-text: "Gayathri", "Albert Sans", system-ui, sans-serif;
  --fs-body: 1.125rem;
  --lh-body: 1.85;
  --fs-h1: clamp(1.6rem, 1.05rem + 3vw, 3rem);
  --lh-h1: 1.42;
  --fs-h2: clamp(1.5rem, 1.15rem + 1.8vw, 2.25rem);
  --lh-h2: 1.45;
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.12rem, 1.05rem + .3vw, 1.25rem);
  --track-head: 0;
  --measure: 34em;
}

@media (min-width: 900px) {
  :root { --gutter: 40px; --hdr: 72px; }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0;
  background: var(--cotton);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--laterite-deep); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 500;
  letter-spacing: var(--track-head);
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
html[lang="ml"] h1, html[lang="ml"] h2, html[lang="ml"] h3, html[lang="ml"] h4 { font-weight: 600; }
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
html[lang="ml"] h3 { line-height: 1.5; }
p, li, dd { text-wrap: pretty; }
h1, h2, h3, h4, .btn, .chip > span, summary { overflow-wrap: break-word; }
.hero-grid > *, .finder > *, .couns > *, .call > *, .body-grid > *, .pause-grid > *, .closing-in > *, .name-story > * { min-width: 0; }
html[lang="ml"] body { word-break: normal; overflow-wrap: break-word; }
::selection { background: #f0cdb8; color: var(--ink); }
:focus-visible { outline: 3px solid var(--laterite); outline-offset: 3px; border-radius: 6px; }
.dusk :focus-visible, .ftr :focus-visible { outline-color: #f0b48f; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nw { white-space: nowrap; }
.latin { font-family: "Newsreader", Georgia, serif !important; letter-spacing: -0.015em !important; }

/* language visibility */
html[lang="en"] [data-l="ml"], html[lang="ml"] [data-l="en"] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section.tight { padding-block: clamp(44px, 6vw, 80px); }
.bg-2 { background: var(--cotton-2); }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: var(--measure); }
.head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.head h2 + p { margin-top: 16px; }
.muted { color: var(--ink-3); }
.small { font-size: .92em; }

/* kasavu: a hairline and a thicker zari band, the only ornament on the site */
.kasavu { height: 7px; border-top: 1px solid var(--zari); border-bottom: 3px solid var(--zari); width: 100%; }
.kasavu.short { width: 96px; }

/* icons */
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.b { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 24px;
  border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 1rem/1.25 var(--f-text);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .3s var(--ease), transform .2s var(--ease);
}
html[lang="ml"] .btn { font-weight: 700; font-size: 1.05rem; line-height: 1.4; padding-top: 13px; padding-bottom: 10px; }
.btn:active { transform: scale(.98); }
.btn-main { background: var(--laterite); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -8px rgba(135, 56, 32, .7); }
.btn-main:hover { background: var(--laterite-deep); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 10px 22px -10px rgba(135, 56, 32, .8); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--cotton); }
.btn-quiet { background: var(--cotton); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow, .row-link:hover .arrow, .tlink:hover .arrow { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .actions .btn { width: 100%; } }

.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--laterite-deep); text-decoration: none; min-height: 44px; }
.tlink span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.tlink:hover span { text-decoration-thickness: 2px; }
.tlink .arrow { transition: transform .3s var(--ease); }

/* ------------------------------------------------------------ header */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cotton); padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(252, 250, 246, .97); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.hdr.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 18px -14px rgba(60, 35, 15, .4); }
.hdr-in { height: var(--hdr); display: flex; align-items: center; gap: 8px; max-width: var(--wrap); margin-inline: auto; padding-inline: max(14px, calc(var(--gutter) - 6px)); }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: 108px; }
@media (min-width: 900px) { .brand img { width: 150px; } }
.nav { display: none; }
.nav ul { list-style: none; display: flex; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; font-weight: 500; border-radius: 10px; position: relative; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 1.5px; background: var(--laterite); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
html[lang="ml"] .nav a { font-size: 1.02rem; padding-top: 4px; }

.lang { display: inline-flex; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--cotton); position: relative; }
.lang button {
  position: relative; z-index: 1; appearance: none; border: 0; background: transparent; color: var(--ink-2);
  min-height: 44px; min-width: 40px; padding: 0 9px; border-radius: 11px; cursor: pointer;
  font: 600 .9rem/1 var(--f-text);
  transition: color .3s var(--ease);
}
.lang button[lang="ml"] { font-family: "Gayathri", var(--f-text); font-weight: 700; font-size: .98rem; padding-top: 3px; }
.lang button[aria-pressed="true"] { color: var(--cotton); }
.lang .pill { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--ink); transition: transform .4s var(--ease), width .4s var(--ease); }
.lang button:focus-visible { outline-offset: 1px; }

.hdr-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 44px; height: 44px; border-radius: 12px; background: var(--laterite); color: #fff; text-decoration: none; font-weight: 600; transition: background-color .25s; }
.hdr-wa:hover { background: var(--laterite-deep); }
.hdr-wa .b { width: 22px; height: 22px; }
.hdr-wa-t { display: none; }
.menu-btn { appearance: none; border: 0; background: transparent; color: var(--ink); width: 44px; height: 44px; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; }
.menu-btn .i { width: 26px; height: 26px; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: block; }

@media (min-width: 1060px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .hdr-in { gap: 14px; }
  .hdr-wa { width: auto; padding: 0 18px; }
  .hdr-wa-t { display: inline; }
}

.menu {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cotton); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(60, 35, 15, .45);
  padding: 8px var(--gutter) 24px;
  max-height: calc(100dvh - var(--hdr)); overflow-y: auto;
  transform-origin: top;
  transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
  opacity: 0; transform: translateY(-8px); visibility: hidden;
}
.menu.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.menu ul { list-style: none; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a.big { display: flex; align-items: center; justify-content: space-between; min-height: 56px; color: var(--ink); text-decoration: none; font: 500 1.4rem/1.3 var(--f-head); }
html[lang="ml"] .menu a.big { font-size: 1.15rem; font-weight: 600; padding-top: 4px; }
.menu .menu-foot { margin-top: 18px; display: grid; gap: 10px; }
@media (min-width: 1060px) { .menu { display: none; } }

/* ------------------------------------------------------------ hero */
.hero { padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; background: var(--clay); }
.hero-grid { display: grid; gap: 36px; }
.hero h1 { max-width: 15ch; }
html[lang="ml"] .hero h1 { max-width: 17em; }
.hero .kasavu { width: 120px; margin: 22px 0 22px; transform-origin: left; }
.hero .lead { margin-bottom: 26px; }
.hero-note { margin-top: 14px; color: var(--ink-3); font-size: .95rem; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust .i { color: var(--zari-text); }

.faces { display: flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #dcc2ae; max-width: 560px; }
.faces .stack { display: flex; flex: none; }
.faces .stack img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--clay); background: var(--sand); }
.faces .stack img + img { margin-left: -14px; }
.faces p { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.45; }
html[lang="ml"] .faces p { line-height: 1.7; }

.spread-wrap { display: none; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); align-items: start; gap: 56px; }
  .faces { display: none; }
  .spread-wrap { display: block; }
  .spread { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(440px, 38vw, 560px); }
  .spread figure { margin: 0; min-height: 0; }
  .spread figure:first-child { grid-row: 1 / span 2; }
  .spread img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 6px; background: var(--sand); }
  .spread figure:nth-child(3) img { object-position: 50% 28%; }
  .spread-wrap { margin-top: 6px; }
  .spread-cap { margin: 12px 0 0; font-size: .88rem; color: var(--ink-3); line-height: 1.45; }
  .spread-note { margin: 12px 0 0; color: var(--ink-2); font-size: .95rem; border-top: 1px solid #dcc2ae; padding-top: 12px; }
}

/* ------------------------------------------------------------ finder */
.finder-sec { background: var(--cotton-2); }
.finder { display: grid; gap: 28px; }
@media (min-width: 900px) { .finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; } }
.finder fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 560px) { .chips { grid-template-columns: 1fr 1fr; } }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span {
  display: flex; align-items: center; gap: 10px; min-height: 54px; height: 100%;
  padding: 12px 16px; border-radius: var(--r);
  background: var(--cotton); border: 1.5px solid var(--line);
  color: var(--ink); font-weight: 500; line-height: 1.3;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
html[lang="ml"] .chip > span { line-height: 1.55; padding-top: 13px; padding-bottom: 10px; }
.chip > span::before {
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid var(--ink-3); background: var(--cotton);
  transition: border-width .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover > span { border-color: var(--ink-3); }
.chip input:checked + span { border-color: var(--laterite); background: var(--laterite-tint); box-shadow: var(--shadow); }
.chip input:checked + span::before { border: 6px solid var(--laterite); }
.chip input:focus-visible + span { outline: 3px solid var(--laterite); outline-offset: 2px; }
.chip input:active + span { transform: scale(.985); }
.dusk .chip > span { background: transparent; border-color: rgba(244, 236, 223, .28); color: var(--on-dusk); }
.dusk .chip > span::before { background: transparent; border-color: var(--on-dusk-2); }
.dusk .chip:hover > span { border-color: var(--on-dusk-2); }
.dusk .chip input:checked + span { background: rgba(240, 180, 143, .14); border-color: #f0b48f; box-shadow: none; }
.dusk .chip input:checked + span::before { border-color: #f0b48f; }
.dusk .chip input:focus-visible + span { outline-color: #f0b48f; }
.chips.inline { display: flex; flex-wrap: wrap; }
.chips.inline .chip > span { min-height: 46px; padding: 10px 16px; }

.out { background: var(--cotton); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: relative; min-height: 100%; }
.out .kasavu { position: absolute; left: 24px; right: 24px; top: -4px; width: auto; }
@media (min-width: 900px) { .out { position: sticky; top: calc(var(--hdr) + 24px); padding: 32px; } .out .kasavu { left: 32px; right: 32px; } }
.out-empty { color: var(--ink-3); display: flex; gap: 12px; align-items: flex-start; }
.out-empty .i { color: var(--zari-text); margin-top: 3px; }
.fo h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.75rem); }
html[lang="ml"] .fo h3 { font-size: 1.3rem; }
.fo > p { margin-top: 10px; color: var(--ink-2); }
.fo-links { list-style: none; margin: 14px 0 4px; display: grid; gap: 2px; }
.fo-links a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; color: var(--laterite-deep); }
.fo-links a span { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.fo-links a:hover span { text-decoration-thickness: 2px; }
.fo-links small { color: var(--ink-3); font-weight: 400; }
.fo-safety { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--laterite-tint); color: var(--ink); font-size: .95rem; }
.mode { margin-top: 22px !important; padding-top: 18px !important; border-top: 1px solid var(--line) !important; }
.mode legend { font-weight: 600; margin-bottom: 10px; padding: 0; float: left; width: 100%; }
.mode .chips { clear: both; }
.msg-label { margin: 20px 0 8px; font-size: .92rem; color: var(--ink-3); }
.msg { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--cotton-2); border: 1px dashed var(--line); font-size: .98rem; color: var(--ink); white-space: pre-line; }
.out .btn { width: 100%; }
.out .fine { margin-top: 14px; font-size: .88rem; color: var(--ink-3); }
.fo-enter { animation: fo-in .5s var(--ease) both; }
@keyframes fo-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ after hello */
.path { list-style: none; display: grid; gap: 0; position: relative; counter-reset: none; }
.path li { position: relative; padding: 0 0 30px 40px; }
.path li::before { content: ""; position: absolute; left: 7px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--cotton); border: 2px solid var(--zari); z-index: 1; }
.path li::after { content: ""; position: absolute; left: 13px; top: 22px; bottom: -6px; width: 1px; background: var(--zari); }
.path li:last-child::after { display: none; }
.path li:last-child { padding-bottom: 0; }
.path li:last-child::before { background: var(--zari); }
.path h3 { margin-bottom: 6px; }
.path p { color: var(--ink-2); max-width: 46ch; }
html[lang="ml"] .path p { max-width: 30em; }
@media (min-width: 900px) {
  .path { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .path li { padding: 40px 0 0 0; }
  .path li::before { left: 0; top: 0; }
  .path li::after { left: 22px; right: -26px; top: 7px; bottom: auto; width: auto; height: 1px; }
}
.after-note { margin-top: 32px; display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.after-note .i { color: var(--zari-text); margin-top: 3px; }

/* ------------------------------------------------------------ counselling */
.couns { display: grid; gap: 40px; }
@media (min-width: 900px) { .couns { grid-template-columns: 5fr 7fr; gap: 64px; } }
.ways > div { padding: 22px 0; border-top: 1px solid var(--line); }
.ways > div:last-child { border-bottom: 1px solid var(--line); }
.ways h3 { display: flex; align-items: center; gap: 10px; }
.ways h3 .i { color: var(--laterite); width: 22px; height: 22px; }
.ways p { margin-top: 8px; color: var(--ink-2); }
.places { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .places { grid-template-columns: 1fr 1fr; } }
.place { background: var(--cotton-2); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.place h4 { font-size: 1.15rem; display: flex; align-items: center; gap: 9px; }
.place h4 .i { color: var(--leaf); }
.place p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.place .btn { margin-top: auto; align-self: flex-start; min-height: 48px; padding: 10px 18px; font-size: .95rem; }

.safety { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.55; color: var(--ink); margin: 0; }
html[lang="ml"] .safety { line-height: 1.8; }
.safety .i { flex: none; color: var(--laterite); margin-top: 2px; width: 22px; height: 22px; }
.safety a { font-weight: 700; color: var(--laterite-deep); }
.safety-box { margin-top: 28px; padding: 16px 18px; border-radius: var(--r); border: 1px solid #e6c3b0; background: var(--laterite-tint); }

/* ------------------------------------------------------------ programmes index */
.pgroups { display: grid; gap: 40px; }
@media (min-width: 900px) { .pgroups { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.pgroup h3 { font-family: var(--f-text); font-size: 1rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
html[lang="ml"] .pgroup h3 { font-size: 1.05rem; font-weight: 700; }
.pgroup ul { list-style: none; }
.row-link { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); position: relative; }
.row-link::before { content: ""; position: absolute; inset: 0 -12px; border-radius: 12px; background: var(--cotton-2); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; }
.row-link:hover::before { opacity: 1; }
.pgroups li { position: relative; z-index: 0; }
.row-link strong { font: 500 1.55rem/1.15 "Newsreader", serif; letter-spacing: -0.015em; }
.row-link .d { grid-column: 1; color: var(--ink-2); font-size: .98rem; }
.row-link .arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--laterite); width: 22px; height: 22px; transition: transform .3s var(--ease); }

/* ------------------------------------------------------------ clarity ticket */
.call { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .call { grid-template-columns: 1.1fr .9fr; gap: 72px; } }
.ticket { background: var(--cotton); border-radius: 18px; padding: 28px 24px 24px; box-shadow: var(--shadow); position: relative; border: 1px solid var(--line); }
.ticket .kasavu { margin-bottom: 18px; }
.ticket .price { font: 500 clamp(3.4rem, 2.5rem + 4vw, 4.6rem)/1 "Newsreader", serif; letter-spacing: -0.03em; margin: 0; }
.ticket .price small { font: 500 1rem/1.3 var(--f-text); letter-spacing: 0; color: var(--ink-3); display: block; margin-top: 8px; }
.facts { list-style: none; margin: 18px 0 22px; display: grid; gap: 10px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.facts .i { color: var(--leaf); margin-top: 3px; }
.ticket .btn { width: 100%; }
.ticket .alt { margin: 12px 0 0; text-align: center; font-size: .95rem; }
.ticket .alt a { display: inline-flex; min-height: 44px; align-items: center; }

/* ------------------------------------------------------------ pause (dusk room) */
.dusk { background: var(--dusk); color: var(--on-dusk); }
.dusk h2, .dusk h3 { color: var(--on-dusk); }
.dusk .lead, .dusk p { color: var(--on-dusk-2); }
.dusk a { color: #f3c3a3; }
.pause-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .pause-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; } }
.breathe { background: var(--dusk-2); border-radius: 22px; padding: 26px 20px 24px; border: 1px solid rgba(244, 236, 223, .1); }
@media (min-width: 640px) { .breathe { padding: 36px; } }
.stage { position: relative; width: min(250px, 68vw); aspect-ratio: 1; margin: 4px auto 8px; display: grid; place-items: center; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ring { fill: none; stroke: var(--zari); transform-box: fill-box; transform-origin: center; transform: scale(.62); transition-property: transform, opacity; transition-timing-function: cubic-bezier(.45, 0, .55, 1); transition-duration: 1.2s; }
.ring.r1 { stroke-width: 1.5; opacity: .95; }
.ring.r2 { stroke-width: 1; opacity: .55; }
.ring.r3 { stroke-width: 1; opacity: .3; }
.bcore { fill: rgba(184, 137, 58, .16); transform-box: fill-box; transform-origin: center; transform: scale(.62); transition: transform 1.2s cubic-bezier(.45, 0, .55, 1); }
.stage.in .r1 { transform: scale(1); }
.stage.in .r2 { transform: scale(.88); }
.stage.in .r3 { transform: scale(.76); }
.stage.in .bcore { transform: scale(.98); }
.stage.out .r1, .stage.out .r2, .stage.out .r3, .stage.out .bcore { transform: scale(.6); }
.stage.idle .r1 { animation: idle 6s ease-in-out infinite; }
@keyframes idle { 50% { transform: scale(.67); } }
.say { position: relative; text-align: center; z-index: 1; margin: 0; max-width: 58%; }
.say b { display: block; font: 500 1.3rem/1.2 var(--f-head); color: var(--on-dusk); text-wrap: balance; }
html[lang="ml"] .say b { font-size: 1.05rem; line-height: 1.5; font-weight: 600; }
.say .count { display: block; margin-top: 6px; color: var(--on-dusk-2); font-size: .9rem; line-height: 1.3; }
.say .secs { display: block; margin-top: 2px; font: 500 1.5rem/1.1 "Newsreader", serif; font-variant-numeric: tabular-nums; color: #e2b36a; min-height: 1.1em; }
.bstep { text-align: left; }
.bstep h3 { font-size: 1.45rem; margin-bottom: 6px; }
html[lang="ml"] .bstep h3 { font-size: 1.2rem; }
.bstep h3:focus { outline: none; }
.bstep .chips { margin-top: 14px; }
.bctl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; justify-content: center; }
.bstep .bctl { justify-content: flex-start; }
.dusk .btn-main { background: #b04e2e; }
.dusk .btn-main:hover { background: #9c4426; }
.dusk .btn-line { color: var(--on-dusk); border-color: rgba(244, 236, 223, .5); }
.dusk .btn-line:hover { background: var(--on-dusk); color: var(--dusk); }
.stoprule { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid rgba(244, 236, 223, .14); font-size: .92rem; display: flex; gap: 10px; align-items: flex-start; }
.stoprule .i { color: #f0b48f; margin-top: 2px; }
.noticed { margin: 10px 0 0; font: 500 1.3rem/1.35 var(--f-head); color: var(--on-dusk) !important; }
html[lang="ml"] .noticed { font-size: 1.15rem; line-height: 1.6; }
.dusk details { margin-top: 16px; border-top: 1px solid rgba(244, 236, 223, .14); }
.dusk details summary { color: var(--on-dusk); }
.dusk details h4 { color: var(--on-dusk); margin: 14px 0 6px; font-size: 1.1rem; }
.dusk details ul { padding-left: 1.1em; color: var(--on-dusk-2); }
.dusk details li { margin: 4px 0; }
.pause-intro .abc-note { margin-top: 22px; font-size: .95rem; }

/* ------------------------------------------------------------ people */
.people { display: grid; gap: 22px; }
.person { margin: 0; display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.person img { width: 112px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 6px; background: var(--sand); }
.person h3 { font-family: "Newsreader", serif; font-size: 1.4rem; letter-spacing: -0.015em; }
.person p { margin: 4px 0 0; color: var(--ink-3); font-size: .95rem; line-height: 1.45; }
@media (min-width: 760px) {
  .people { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .person { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .person img { width: 100%; }
}

/* ------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
.faq summary, .dusk details summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 14px 0;
  font: 500 1.25rem/1.3 var(--f-head); letter-spacing: var(--track-head);
}
html[lang="ml"] .faq summary { font-size: 1.1rem; font-weight: 600; line-height: 1.55; }
.dusk details summary { font: 600 1rem/1.4 var(--f-text); min-height: 52px; }
.pm { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), background-color .25s; color: var(--laterite); }
.dusk .pm { border-color: rgba(244, 236, 223, .3); color: #f0b48f; }
details[open] > summary .pm { transform: rotate(45deg); }
.faq summary:hover .pm { background: var(--cotton-2); }
.faq .ans { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }
html[lang="ml"] .faq .ans { max-width: 34em; }
@supports selector(::details-content) {
  details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  details[open]::details-content { block-size: auto; }
}
:root { interpolate-size: allow-keywords; }

/* ------------------------------------------------------------ closing */
.closing { text-align: left; }
.closing-in { display: grid; gap: 24px; }
@media (min-width: 900px) { .closing-in { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; } }
.closing h2 { font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); }
html[lang="ml"] .closing h2 { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }

/* ------------------------------------------------------------ inner pages */
.ptop { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(36px, 5vw, 64px); background: var(--clay); }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink-2); text-decoration: none; font-weight: 500; margin-bottom: 18px; }
.crumb:hover { color: var(--ink); }
.crumb .i { transition: transform .3s var(--ease); }
.crumb:hover .i { transform: translateX(-3px); }
.ptop h1 { max-width: 18ch; }
html[lang="ml"] .ptop h1 { max-width: 20em; }
.ptop .kasavu { width: 96px; margin: 20px 0; }
.ptop .tag { font: 500 clamp(1.25rem, 1.1rem + .8vw, 1.6rem)/1.3 var(--f-head); color: var(--ink-2); margin-bottom: 10px; letter-spacing: var(--track-head); }
html[lang="ml"] .ptop .tag { font-size: 1.2rem; line-height: 1.6; }
.prog-name { font-family: "Newsreader", serif !important; font-size: clamp(2.8rem, 1.6rem + 6vw, 5.4rem) !important; line-height: 1 !important; letter-spacing: -0.03em !important; font-weight: 500 !important; }
.kind { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 22px; padding: 6px 12px; border-radius: 999px; background: var(--cotton); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.kind .i { color: var(--zari-text); width: 16px; height: 16px; }

.body-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .body-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: start; } }
.block + .block { margin-top: clamp(40px, 6vw, 64px); }
.block h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.1rem); margin-bottom: 16px; }
html[lang="ml"] .block h2 { font-size: clamp(1.35rem, 1.2rem + .8vw, 1.7rem); }
.block > p { color: var(--ink-2); max-width: var(--measure); }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .i { color: var(--leaf); margin-top: 4px; }
html[lang="ml"] .ticks .i { margin-top: 6px; }
.steps-ol { list-style: none; display: grid; gap: 0; }
.steps-ol li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.steps-ol li:last-child { border-bottom: 1px solid var(--line); }
.steps-ol .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--zari); margin: 7px 0 0 4px; }
.steps-ol li:last-child .dot { background: var(--zari); }
.asks { list-style: none; display: grid; gap: 8px; margin: 14px 0 18px; }
.asks li { display: flex; gap: 10px; color: var(--ink-2); }
.asks .i { color: var(--zari-text); margin-top: 4px; }
html[lang="ml"] .asks .i { margin-top: 6px; }

.aside { background: var(--cotton); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: relative; }
.aside .kasavu { position: absolute; left: 24px; right: 24px; top: -4px; width: auto; }
@media (min-width: 960px) { .aside { position: sticky; top: calc(var(--hdr) + 24px); } }
.aside h2 { font-size: 1.5rem; margin-bottom: 10px; }
html[lang="ml"] .aside h2 { font-size: 1.25rem; }
.aside p { color: var(--ink-2); font-size: .98rem; }
.aside .btn { width: 100%; margin-top: 8px; }
.aside .small { margin-top: 14px; }
.aside .mini { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.aside .mini img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--cotton); }
.aside .mini img + img { margin-left: -16px; }
.aside .mini p { margin: 0 0 0 4px; font-size: .9rem; line-height: 1.4; }

.others { display: flex; flex-wrap: wrap; gap: 8px; }
.others a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font: 500 1.05rem/1.2 "Newsreader", serif; background: var(--cotton); transition: border-color .25s, background-color .25s; }
.others a:hover { border-color: var(--ink); background: var(--cotton-2); }

.abc-fig { margin: 18px 0 0; max-width: 520px; }
.abc-fig img { border-radius: 12px; border: 1px solid var(--line); }
.abc-fig figcaption { font-size: .9rem; color: var(--ink-3); margin-top: 8px; }

/* about */
.founders { display: grid; gap: 56px; }
.founder { display: grid; gap: 22px; }
.founder img { width: 100%; max-width: 420px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 6px; background: var(--sand); }
.founder h2 { font-family: "Newsreader", serif !important; letter-spacing: -0.02em !important; font-weight: 500 !important; }
.founder .cred { margin-top: 8px; font-weight: 600; color: var(--ink-2); }
.founder .role { color: var(--ink-3); margin-top: 4px; }
@media (min-width: 820px) {
  .founder { grid-template-columns: minmax(0, 440px) 1fr; gap: 72px; align-items: center; }
  .founder:nth-child(2) { grid-template-columns: 1fr minmax(0, 440px); }
  .founder img { max-width: none; }
  .founder h2 { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); }
  .founder:nth-child(2) img { order: 2; }
}
.name-story { display: grid; gap: 28px; }
@media (min-width: 900px) { .name-story { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.nameword { font: 500 clamp(3.4rem, 2rem + 7vw, 6rem)/.95 "Newsreader", serif !important; letter-spacing: -0.035em !important; }
.nameword .plus { color: var(--zari); font-weight: 400; }
.defs { margin: 0; display: grid; gap: 18px; }
.defs > div { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.defs dt { font: 500 1.4rem/1.2 "Newsreader", serif; }
.defs dd { margin: 0; color: var(--ink-2); }
.core-list { list-style: none; display: grid; gap: 0; }
.core-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid rgba(244, 236, 223, .16); }
.core-list .letter { font: 500 2.6rem/1 "Newsreader", serif; color: #e2b36a; }
.core-list h3 { font-family: "Newsreader", serif; font-size: 1.35rem; letter-spacing: -0.01em; }
.core-list p { margin-top: 4px; }
.beliefs { margin: 0; display: grid; gap: 0; }
@media (min-width: 760px) { .beliefs { grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.beliefs > div { padding: 18px 0; border-top: 1px solid var(--line); }
.beliefs dt { font: 500 1.25rem/1.3 var(--f-head); }
html[lang="ml"] .beliefs dt { font-size: 1.1rem; font-weight: 600; line-height: 1.6; }
.beliefs dd { margin: 6px 0 0; color: var(--ink-2); }

/* legal */
.draft { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--cotton); border: 1px dashed var(--zari); color: var(--ink-2); font-size: .95rem; margin-top: 6px; max-width: 640px; }
.draft .i { color: var(--zari-text); margin-top: 3px; }
.toc { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 22px; }
.toc a { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 12px; border-radius: 999px; background: var(--cotton); border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.toc a:hover { color: var(--ink); border-color: var(--ink-3); }
.legal h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); margin: 44px 0 12px; }
html[lang="ml"] .legal h2 { font-size: 1.35rem; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--ink-2); max-width: var(--measure); }
.legal ul { padding-left: 1.2em; display: grid; gap: 8px; }

/* ------------------------------------------------------------ footer */
.ftr { background: var(--dusk); color: var(--on-dusk-2); padding-top: 0; font-size: .98rem; }
.ftr .kasavu { border-color: var(--zari); }
.ftr-safety { padding: 28px 0; border-bottom: 1px solid rgba(244, 236, 223, .12); }
.ftr .safety { color: var(--on-dusk); font-size: 1rem; }
.ftr .safety .i { color: #f0b48f; }
.ftr .safety a { color: #f3c3a3; }
.ftr-grid { display: grid; gap: 28px 20px; padding: 40px 0; grid-template-columns: 1fr 1fr; }
.ftr-grid > :nth-child(-n+2) { grid-column: 1 / -1; }
@media (min-width: 900px) { .ftr-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .ftr-grid > :nth-child(-n+2) { grid-column: auto; } }
.ftr h2 { font: 600 .95rem/1.3 var(--f-text); color: var(--on-dusk); margin-bottom: 12px; letter-spacing: 0; }
.ftr ul { list-style: none; display: grid; gap: 2px; }
.ftr a { color: var(--on-dusk-2); }
.ftr ul a, .ftr-legal a { text-decoration: none; display: inline-flex; align-items: center; gap: 9px; min-height: 44px; }
.ftr a:hover { color: var(--on-dusk); text-decoration: underline; }
.ftr .logo-chip { display: inline-block; background: var(--cotton); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; }
.ftr .logo-chip img { width: 132px; }
.ftr p { margin: 0 0 6px; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 18px 0 28px; border-top: 1px solid rgba(244, 236, 223, .12); font-size: .9rem; }

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: no-preference) {
  .hero .kasavu { animation: draw 1.1s var(--ease) .25s both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .js .rv { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .rv.pre { opacity: 0; transform: translateY(16px); }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; animation-timing-function: var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .stage .ring, .stage .bcore { transition: none !important; }
}
