/* /education (2026-11-29): five sections from the wireframe, with the visuals live from CATION.
   01 hero + prism lesson, 02 capabilities, 03 wave lesson, 04 CATION and the portal, 05 enquiry.
   Markup: native-education.cjs. Script: native-education.js. Laptop size (about 1512x860) only so far.
   Site tokens: ground #191a1c, paper #f5f1e7, ink #24251f, orange #fe5b2a, Hanken Grotesk, Nevka Mono. */
.ec{--dark:#191a1c;--on:#f5f4ef;--on-2:#b7b7af;--on-3:#86857d;--hair:#ffffff1c;
  --paper:#f5f1e7;--ink:#24251f;--muted:#56594d;--line:#ccc8bb;--orange:#fe5b2a;
  --g:clamp(24px,5.8vw,88px);--max:1340px;
  --sans:"Inter",Arial,sans-serif;--mono:"Nevka Mono","JetBrains Mono",monospace;
  background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.5;overflow:clip;-webkit-font-smoothing:antialiased}
.ec *,.ec *::before,.ec *::after{box-sizing:border-box}
.ec :where(h1,h2,h3,p,figure,dl,dd,dt,ul){margin:0;padding:0}
.ec :where(ul){list-style:none}
.ec :where(h1,h2,h3){font-weight:500;letter-spacing:-.04em;line-height:1.04}
.ec :where(a){color:inherit}
.ec-wrap{max-width:calc(var(--max) + 2*var(--g));margin:0 auto;padding:0 var(--g)}
.ec-arrow{width:12px;height:12px;flex:none}

.ec h2{font-size:clamp(38px,3.7vw,58px)}

/* live stages: a dark window holding a CATION lesson */
.ec-stage{position:relative;border-radius:14px;overflow:hidden;background:#05060a;isolation:isolate}
.ec-stage::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 1px #ffffff17;pointer-events:none}
.ec-stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}

/* 01 hero */
.ec-hero{background:var(--dark);color:var(--on);display:grid;align-items:center;min-height:calc(100svh - 82px);padding:clamp(48px,6.2vh,72px) 0}
.ec-hero-grid{display:grid;grid-template-columns:minmax(0,.66fr) minmax(0,1fr);gap:clamp(40px,4.6vw,72px);align-items:center}
.ec-hero h1{font-size:clamp(52px,5.15vw,80px);letter-spacing:-.05em;line-height:.98;text-wrap:balance}
.ec-lead{margin-top:28px;font-size:clamp(17px,1.32vw,20px);line-height:1.5;color:var(--on-2);max-width:40ch}
/* The prism lesson is laid out at a fixed 800x530 and scaled to the stage (native-education.js), so CATION's
   own phone layout (under 720px wide) never shows inside a laptop page. */
.ec-stage--prism{aspect-ratio:800/530}
.ec-stage--prism iframe{inset:auto;left:0;top:0;width:800px;height:530px;transform-origin:0 0}

/* shared section rhythm */
.ec-sec{padding:clamp(88px,8.6vw,136px) 0}

/* 02 capabilities */
.ec-caps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:clamp(44px,4.4vw,68px);border-top:1px solid var(--ink)}
.ec-caps li{padding:30px 32px 30px 0;border-bottom:1px solid var(--line)}
.ec-caps li:nth-child(n+4){border-bottom:0;padding-bottom:0}
.ec-caps h3{font-size:clamp(24px,2.05vw,31px);letter-spacing:-.035em}

/* 03 demonstration */
.ec-demo{padding-top:0}
.ec-demo .ec-figure{margin-top:clamp(40px,4vw,60px)}
.ec-stage--wave{aspect-ratio:1340/640}

/* 04 product */
.ec-product{background:var(--dark);color:var(--on)}
.ec-product-grid{display:grid;grid-template-columns:minmax(0,.44fr) minmax(0,1fr);gap:clamp(40px,4.6vw,72px);align-items:stretch;margin-top:clamp(44px,4.4vw,68px)}
.ec-product-copy{display:flex;flex-direction:column;padding:6px 0 4px}
.ec-product-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.ec-wordmark{width:118px;height:auto;overflow:visible;display:block}
.ec-wordmark path,.ec-wordmark circle{fill:none;stroke:currentColor;stroke-width:1.7;vector-effect:non-scaling-stroke}
.ec-status{font-size:14px;line-height:1;color:var(--on-3)}
.ec-product-copy h3{font-size:clamp(30px,2.7vw,42px);margin-top:44px}
.ec-product-copy>p{margin-top:16px;color:var(--on-2);font-size:17px;max-width:36ch}
.ec-stats{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;margin-top:auto;padding-top:26px;border-top:1px solid var(--hair)}
.ec-stats div{display:flex;flex-direction:column-reverse;gap:6px}
.ec-stats dd{font-size:34px;line-height:1;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.ec-stats dt{font-size:14px;color:var(--on-3)}
.ec-ghost{display:inline-flex;align-self:flex-start;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 26px;margin-top:28px;border:1px solid #ffffff38;border-radius:999px;font-size:16px;font-weight:500;text-decoration:none;transition:background-color .18s,border-color .18s,color .18s}
.ec-ghost:hover{background:var(--on);border-color:var(--on);color:#151619}
.ec-product-copy h3+p{margin-bottom:40px}

/* the portal: the CATION site itself, live, scrolling by itself */
.ec-portal{position:relative;border-radius:14px;overflow:hidden;background:#090b0d;isolation:isolate;box-shadow:0 0 0 1px #ffffff17}
.ec-portal-view{position:relative;width:100%;aspect-ratio:1440/900;overflow:hidden}
.ec-portal-view iframe{position:absolute;left:0;top:0;width:1440px;height:900px;border:0;transform-origin:0 0;pointer-events:none;opacity:0;transition:opacity .9s ease}
.ec-portal.is-live .ec-portal-view iframe{opacity:1}
.ec-portal-wait{position:absolute;inset:0;display:grid;place-items:center;color:#f3f3f1;opacity:.5;transition:opacity .5s ease}
.ec-portal.is-live .ec-portal-wait{opacity:0}
.ec-portal-veil{position:absolute;inset:0;background:#090b0d;opacity:0;transition:opacity .55s ease;pointer-events:none}
.ec-portal-veil.is-on{opacity:1}
.ec-portal-link{position:absolute;inset:0;border-radius:inherit}
.ec-portal-link:focus-visible{outline:2px solid var(--on);outline-offset:-4px}

/* 05 enquiry */
.ec-enquiry-grid{display:flex;justify-content:space-between;gap:48px;align-items:flex-end}
.ec-enquiry h2{font-size:clamp(44px,4.6vw,72px);letter-spacing:-.05em;text-wrap:balance}
.ec-cta{display:inline-flex;align-items:center;gap:10px;min-height:54px;margin-bottom:10px;padding:0 28px;flex:none;border-radius:999px;background:var(--orange);color:#151619;font-size:16px;font-weight:600;text-decoration:none;transition:background-color .16s}
.ec-cta:hover{background:#ff7a50}
.ec :is(a,button):focus-visible{outline:2px solid currentColor;outline-offset:3px}
