/* ============================================================
   about.css, Candela Learnings
   About page. Loads after css/site.css.
   ============================================================ */

/* ── head ── */
.ab-head-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: end; }
.facts {
  position: relative; background: #FBF8F1; border: var(--line); border-radius: var(--r);
  padding: 18px 22px 22px; transform: rotate(1.5deg);
}
.facts-top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-family: var(--f-display); font-weight: 750; font-size: 1.15rem; }
.facts-top img { width: 36px; height: 36px; }
.facts dl { margin: 0; }
.facts dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1.5px dashed var(--kraft-dk); }
.facts dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--ink-2); font-size: 0.95rem; }
.facts dd { margin: 0; font-family: var(--f-display); font-weight: 650; font-size: 1.1rem; text-align: right; }

/* ── story ── */
.story { padding-block: clamp(64px, 9vw, 120px); border-top: var(--line); }
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-grid h2 { position: sticky; top: calc(var(--nav-h) + 32px); }
.story-body { max-width: 38em; }
.story-body p { font-size: 1.15rem; color: var(--ink-2); }
.story-body p + p, .story-body .pull + p { margin-top: 20px; }
.pull {
  margin: 36px 0; padding-top: 22px; position: relative;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink);
}
.pull::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 4px; background: var(--flame); }
html[lang="ml"] .pull { line-height: 1.4; letter-spacing: 0; }

/* ── mission ── */
.mission { padding-block: clamp(64px, 9vw, 120px); background: var(--paper-2); border-top: var(--line); }
.mission-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.mission-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.mission-head .lede { margin-top: 18px; }
.commit li { padding: 30px 0 32px; border-top: var(--line); }
.commit li:last-child { border-bottom: var(--line); }
.commit h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 740; margin-bottom: 12px; }
.commit p { color: var(--ink-2); font-size: 1.1rem; max-width: 34em; }

/* ── experiential learning cycle ── */
.cycle { padding-block: clamp(64px, 9vw, 128px); background: var(--ink); color: var(--paper); overflow-x: clip; }
.cycle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cycle .lede { color: var(--ink-soft); margin-top: 20px; }
.cycle-text p:not(.lede) { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; max-width: 34em; }
.ring { margin: 0; }
.ring svg { width: min(440px, 100%); height: auto; display: block; margin-inline: auto; overflow: visible; }
.ring-track { fill: none; stroke: #343A57; stroke-width: 10; }
.ring-fill { fill: none; stroke: var(--flame); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ring-node circle { fill: var(--ink); stroke: #4A5175; stroke-width: 3; transition: fill .35s, stroke .35s; }
.ring-node text { fill: var(--ink-soft); font-family: var(--f-display); font-weight: 750; font-size: 20px; text-anchor: middle; transition: fill .35s; }
.ring-node.is-on circle { fill: var(--flame); stroke: var(--flame); }
.ring-node.is-on text { fill: var(--ink); }
.ring-center { fill: var(--paper); font-family: var(--f-display); font-weight: 700; font-size: 20px; text-anchor: middle; }
.stations { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 28px; }
.stations li { display: grid; gap: 4px; padding-top: 12px; border-top: 2px solid #343A57; opacity: .45; transition: opacity .4s, border-color .4s; }
.stations li.is-on { opacity: 1; border-color: var(--flame); }
.stations b { font-family: var(--f-display); font-size: 1.2rem; }
.stations span { color: var(--ink-soft); font-size: 0.95rem; }

/* ── conventional vs candela ── */
.compare { padding-block: clamp(64px, 9vw, 120px); border-top: var(--line); }
.compare-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.compare-grid .lede { margin-top: 18px; }
.vs { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.vs th, .vs td { padding: 16px 14px; text-align: left; vertical-align: top; border-bottom: 1.5px dashed var(--kraft-dk); }
.vs thead th { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; border-bottom: 2px solid var(--ink); }
.vs tbody th { font-weight: 600; color: var(--ink-2); width: 22%; }
.vs td:nth-child(2) { color: var(--ink-2); }
.vs td:nth-child(3), .vs thead th:nth-child(3) { background: #FBF8F1; border-inline: 1.5px solid var(--ink); }
.vs thead th:nth-child(3) { border-top: 1.5px solid var(--ink); }
.vs tbody tr:last-child td:nth-child(3) { border-bottom: 1.5px solid var(--ink); }
.vs td:nth-child(3) { font-weight: 600; color: var(--ink); }
.vs .cell { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.vs .mark-tick { width: 24px; height: 24px; }
.vs td:nth-child(2) .strike { text-decoration: line-through; text-decoration-color: transparent; transition: text-decoration-color .5s .2s; }
.vs tr.is-in td:nth-child(2) .strike { text-decoration-color: var(--ink-soft); }

/* ── trio ── */
.trio { padding-block: clamp(64px, 9vw, 120px); background: var(--paper-2); border-top: var(--line); overflow-x: clip; }
.trio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.orbit { position: sticky; top: calc(var(--nav-h) + 24px); height: min(520px, calc(100vh - var(--nav-h) - 48px)); display: grid; place-items: center; }
.orbit svg { width: 100%; height: 100%; max-height: 480px; overflow: visible; }
.orbit-ring { fill: none; stroke: var(--kraft-dk); stroke-width: 1.5; stroke-dasharray: 4 6; }
.orbit-ring-2 { stroke: var(--kraft); }
.body > circle { fill: #FBF8F1; stroke: var(--ink); stroke-width: 2; transition: stroke .35s, stroke-width .35s; }
.body-candle > circle { fill: var(--paper); }
.parent-ico circle, .parent-ico path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.orbit[data-active="0"] .body-candle > circle,
.orbit[data-active="1"] .body-parent > circle,
.orbit[data-active="2"] .body-tutor > circle { stroke: var(--flame-ink); stroke-width: 5; }
.trio-item { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s; }
.trio-item:first-child { min-height: 52vh; justify-content: flex-start; padding-top: 12px; }
.trio-item.is-active { opacity: 1; }
.trio-item h3 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 760; }
.trio-role { margin-top: 6px; color: #9A3A06; font-weight: 600; }  /* 5:1 on the darker paper */
.trio-item p:not(.trio-role) { margin-top: 16px; font-size: 1.15rem; color: var(--ink-2); max-width: 30em; }

/* ── principles ── */
.principles { padding-block: clamp(64px, 9vw, 120px); border-top: var(--line); }
.pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 5vw, 72px); }
.pr-grid li { padding: 28px 0 34px; border-top: var(--line); }
.pr-grid li:nth-child(even) { transform: translateY(56px); }
.js .pr-grid li.rv:nth-child(even) { transform: translateY(78px); }
.js .pr-grid li.rv.in:nth-child(even) { transform: translateY(56px); }
.pr-grid h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 760; margin-bottom: 12px; }
.pr-grid p { color: var(--ink-2); font-size: 1.08rem; max-width: 30em; }
.principles .wrap { padding-bottom: 56px; }

/* ── responsive ── */
@media (max-width: 900px) {
  .ab-head-grid, .story-grid, .mission-grid, .cycle-grid, .compare-grid, .trio-grid { grid-template-columns: 1fr; }
  .facts { transform: none; }
  .story-grid h2, .mission-head { position: static; }
  .orbit { top: calc(var(--nav-h) + 8px); height: 40vh; min-height: 280px; z-index: 2; background: var(--paper-2); }
  .trio-grid { gap: 0; }
  .trio-item, .trio-item:first-child { min-height: 50vh; justify-content: center; }
  .pr-grid { grid-template-columns: 1fr; }
  .pr-grid li:nth-child(even), .js .pr-grid li.rv:nth-child(even), .js .pr-grid li.rv.in:nth-child(even) { transform: none; }
  .principles .wrap { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .stations { grid-template-columns: 1fr; }
  .vs { font-size: 0.95rem; }
  .vs th, .vs td { padding: 12px 8px; }
  .vs tbody th { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ring-fill { stroke-dashoffset: 0; }
  .stations li { opacity: 1; }
}
