/* Round 2 (Claude, 9 Oct 2026): first-visit loader, minimal Kuru, the six headaches, shared page pieces.
   Uses the v2 tokens (variables.css, system.css). */

/* ---------- loader: Kuru flies left to right along the bar ---------- */
html.intro .kuru-intro.r2-loader { background: radial-gradient(120% 90% at 50% 30%, #fff8e6 0%, #d8ecff 60%, #b9dcfb 100%); clip-path: inset(0); transition: clip-path .38s var(--ease-out), opacity .38s ease; }
html.intro .kuru-intro.r2-loader.open { clip-path: inset(0 0 100%); opacity: 0; }
html.intro .kg { visibility: hidden; }
html.intro .kg.open { visibility: visible; } /* opened during the welcome: the visitor asked for Kuru */
.r2-ld { display: grid; justify-items: center; gap: 22px; width: min(320px, 78vw); }
.r2-ld__logo { width: min(220px, 60vw); height: auto; animation: r2-rise .6s var(--ease-out) both; }
.r2-ld__track { position: relative; width: 100%; height: 12px; border-radius: 999px; background: rgba(28, 26, 46, .1); }
.r2-ld__fill { position: absolute; inset: 0; border-radius: inherit; background: #2857a6; transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .16s var(--ease-out); }
.r2-ld__flight { position: absolute; inset: 0; transform: translate3d(calc(var(--p, 0) * 100%),0,0); transition: transform .16s var(--ease-out); }
.r2-ld__kuru { position: absolute; top: -42px; left: -27px; width: 54px; height: auto; animation: r2-hop .5s ease-in-out infinite alternate; }
.r2-ld__greet { margin: 4px 0 16px; font: 800 clamp(26px, 6vw, 32px)/1.15 var(--font-display); letter-spacing: -.02em; color: #211d24; }
.r2-ld__msg { margin: 6px 0 0; font: 800 15px/1.3 var(--font-display); color: var(--ink-2, #3a3550); letter-spacing: .01em; }
.kuru-intro.r2-loader.open .ki-inner { transform: translateY(-8px); opacity: 0; transition: transform .45s ease, opacity .4s ease; }
@keyframes r2-hop { to { transform: translateY(-5px) rotate(-4deg); } }
@keyframes r2-rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .r2-ld__kuru, .r2-ld__logo { animation: none; } html.intro .kuru-intro.r2-loader.open { clip-path: none; } .r2-ld__flight, .r2-ld__fill { transition: none; } }

/* ---------- Kuru on the landing page: minimal, comes in from the side ---------- */
.hero-stage .hero-kuru .bubble.kuru-hi { display: none; }
@media (prefers-reduced-motion: no-preference) {
  /* Kuru flies in from the left edge of the screen, across, and lands on its spot (owner, 10 Oct) */
  html:not(.intro) .hero-stage .hero-kuru { animation: r2-kuru-fly 1.9s cubic-bezier(.22, .8, .3, 1) .2s both; }
  @keyframes r2-kuru-fly {
    0% { opacity: 0; transform: translate(-70vw, -120px) rotate(16deg) scale(.62); }
    12% { opacity: 1; }
    55% { transform: translate(-24vw, -170px) rotate(9deg) scale(.86); }
    82% { transform: translate(8px, -14px) rotate(-5deg) scale(1.04); }
    100% { opacity: 1; transform: none; }
  }
}

/* ---------- six headaches, gone ---------- */
.r2-solves .section-head { text-align: center; }
.r2-fixes { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.r2-fix { position: relative; display: grid; gap: 6px; align-content: start; padding: 24px 24px 26px; border-radius: 26px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 18px 40px -26px rgba(28, 26, 46, .35); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s; }
.r2-fix:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 26px 50px -26px rgba(28, 26, 46, .42); }
.r2-fix__ico { width: 64px; height: 64px; margin-bottom: 8px; filter: drop-shadow(0 10px 8px rgba(28, 26, 46, .18)); transition: transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.r2-fix:hover .r2-fix__ico { transform: rotate(-8deg) scale(1.08); }
.r2-fix__before { margin: 0; font-weight: 700; font-size: 15px; color: #8a4b45; text-decoration: line-through; text-decoration-color: rgba(214, 58, 46, .55); text-decoration-thickness: 2px; }
.r2-fix__before span { text-decoration: none; display: inline-block; color: #d63a2e; margin-right: 2px; }
.r2-fix__after { margin: 0; font: 800 22px/1.15 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.r2-fix__after::before { content: ""; display: inline-block; width: 22px; height: 22px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; background: #2fa866 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.3 11.4l3 2.9 6.4-6.6' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.r2-fix__how { margin: 2px 0 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 960px) { .r2-fixes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .r2-fixes { grid-template-columns: 1fr; gap: 12px; } .r2-fix { grid-template-columns: 56px 1fr; column-gap: 14px; padding: 18px; } .r2-fix__ico { grid-row: span 3; width: 52px; height: 52px; margin: 0; } }

/* ---------- How NAALAI works: three steps, a sticky phone, a 20-second video ---------- */
.r2-how { position: relative; padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.r2-how__head { text-align: center; display: grid; justify-items: center; gap: 10px; }
.r2-how__head h2 { margin: 0; font: 800 clamp(2rem, 4.4vw, 3.4rem)/1.04 var(--font-display); letter-spacing: -0.025em; color: var(--ink); }
.r2-how__head .lead { margin: 0; max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }
.r2-how__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 12px; }
.r2-play { display: inline-flex; align-items: center; gap: 10px; }
.r2-play svg { width: 26px; height: 26px; padding: 5px 4px 5px 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.r2-how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(28px, 6vw, 96px); margin-top: clamp(28px, 5vw, 56px); align-items: start; }
.r2-how__steps { list-style: none; margin: 0; padding: 0; display: grid; }
.r2-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; align-content: center; min-height: 58vh; min-height: 58svh; opacity: .38; transition: opacity .5s var(--ease-out); }
.r2-step.is-on { opacity: 1; }
.r2-step__n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .7); color: var(--ink); font: 800 24px/1 var(--font-display); box-shadow: inset 0 0 0 2px rgba(33, 29, 36, .12); transition: background .4s, color .4s, transform .5s cubic-bezier(.34, 1.4, .64, 1); }
.r2-step.is-on .r2-step__n { background: var(--ink); color: #fff; transform: scale(1.06); box-shadow: 0 10px 22px -10px rgba(33, 29, 36, .6); }
.r2-step__text h3 { margin: 6px 0 10px; font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.08 var(--font-display); letter-spacing: -0.02em; color: var(--ink); }
.r2-step__text p { margin: 0; max-width: 40ch; font-size: clamp(1.02rem, 1.4vw, 1.15rem); line-height: 1.55; color: var(--ink-soft); }
.r2-step__phone { display: none; }
.r2-how__device { position: sticky; top: max(88px, calc(50vh - 360px)); }
.r2-phone { position: relative; width: 100%; max-width: min(330px, calc((100svh - 120px) * .462)); margin-inline: auto; aspect-ratio: 390 / 844; border-radius: 46px; padding: 11px; background: linear-gradient(145deg, #2b2733, #15131a); box-shadow: 0 2px 0 rgba(255, 255, 255, .12) inset, 0 40px 70px -30px rgba(23, 20, 40, .55), 0 18px 30px -18px rgba(23, 20, 40, .35); }
.r2-phone img { position: absolute; inset: 11px; width: calc(100% - 22px); height: calc(100% - 22px); object-fit: cover; border-radius: 36px; opacity: 0; transform: scale(.975) translateY(10px); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.r2-phone img.is-on { opacity: 1; transform: none; }
.r2-step__phone img, .r2-phone img { background: #f6f3ee; }

/* the video dialog */
.r2-video { padding: 0; border: 0; background: transparent; max-width: min(92vw, 520px); max-height: 92svh; overflow: visible; }
.r2-video::backdrop { background: rgba(18, 16, 28, .72); backdrop-filter: blur(6px); }
.r2-video[open] { animation: r2-pop .35s var(--ease-out) both; }
.r2-video__frame { position: relative; border-radius: 26px; overflow: hidden; background: #fbf6ec; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); }
.r2-video video { display: block; width: 100%; height: auto; max-height: 88svh; aspect-ratio: 4 / 5; object-fit: contain; background: #fbf6ec; }
.r2-video__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .35); }
.r2-video__close:focus-visible { outline: 3px solid var(--brand-blue); outline-offset: 2px; }
@keyframes r2-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* phones: the steps become swipe cards, each with its own screen */
@media (max-width: 860px) {
  .r2-how__grid { display: block; margin-top: 26px; }
  .r2-how__device { display: none; }
  .r2-how__steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 18px; margin: 0 -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .r2-how__steps::-webkit-scrollbar { display: none; }
  .r2-step { flex: 0 0 min(84%, 340px); min-height: 0; scroll-snap-align: center; grid-template-columns: 40px 1fr; column-gap: 12px; align-content: start; padding: 20px 18px 0; border-radius: 28px; background: rgba(255, 255, 255, .94); box-shadow: 0 18px 40px -26px rgba(28, 26, 46, .4); opacity: 1; overflow: hidden; }
  .r2-step__n { width: 40px; height: 40px; font-size: 18px; background: var(--ink); color: #fff; box-shadow: none; }
  .r2-step__text h3 { margin: 4px 0 6px; font-size: 1.35rem; }
  .r2-step__text p { font-size: .98rem; }
  .r2-step__phone { display: block; grid-column: 1 / -1; margin: 18px auto 0; width: 78%; aspect-ratio: 390 / 600; overflow: hidden; border-radius: 30px 30px 0 0; padding: 8px 8px 0; background: linear-gradient(145deg, #2b2733, #15131a); }
  .r2-step__phone img { display: block; width: 100%; height: auto; border-radius: 23px 23px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .r2-step, .r2-step__n, .r2-phone img { transition: none; }
  .r2-video[open] { animation: none; }
}

/* ---------- shared: green tick lists ---------- */
.r2-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.r2-ticks li { position: relative; padding-left: 32px; line-height: 1.45; color: var(--ink-2, #3a3550); font-weight: 600; }
.r2-ticks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: #2fa866 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.3 11.4l3 2.9 6.4-6.6' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.r2-ticks.is-later li::before { background: #efe7ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Ccircle cx='11' cy='11' r='4.5' fill='none' stroke='%237b5ce6' stroke-width='2.4'/%3E%3C/svg%3E") center/22px no-repeat; }

/* ---------- home: what NAALAI gives, the same three-part card for each person ---------- */
.r2-give-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.r2-give { display: flex; flex-direction: column; gap: 10px; padding: 28px 26px 26px; border-radius: 28px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 18px 40px -26px rgba(28, 26, 46, .35); transition: transform .45s cubic-bezier(.34, 1.4, .64, 1), box-shadow .3s; }
.r2-give:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(28, 26, 46, .04), 0 26px 50px -26px rgba(28, 26, 46, .42); }
.r2-give__ico { width: 72px; height: 72px; filter: drop-shadow(0 10px 8px rgba(28, 26, 46, .18)); }
.r2-give__who { margin: 4px 0 0; font: 800 14px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--coral-ink, #b4482a); }
.r2-give h3 { margin: 0 0 6px; font: 800 clamp(1.4rem, 2.2vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -0.015em; }
.r2-give .r2-ticks { margin-bottom: 8px; }
.r2-give__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 44px; font-weight: 800; color: var(--blue, #2857a6); text-decoration: none; }
.r2-give__go svg { transition: transform .35s var(--spring-smooth, ease); }
.r2-give__go:hover svg { transform: translateX(4px); }
@media (max-width: 960px) { .r2-give-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- nav: seven items need the phone menu a little earlier ---------- */
@media (min-width: 901px) and (max-width: 1080px) { .nav-links a:not(.btn) { padding: 9px 9px; font-size: 14.5px; } }
.r2-final .about-hero h2 em { font-style: normal; color: var(--sun, #ffd269); }

/* ---------- Kids' corner: six tabs, and the two new games ---------- */
.game-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .game-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .game-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g2-track { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.g2-slot { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 120px; padding: 10px; border-radius: 18px; border: 2px dashed rgba(28, 26, 46, .18); text-align: center; font-weight: 800; font-size: 13.5px; line-height: 1.25; color: var(--ink-2); }
.g2-slot > span:only-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(28, 26, 46, .07); font: 800 16px/1 var(--font-display); color: var(--ink-3, #6b6577); }
.g2-slot.is-filled { border: 2px solid #2fa866; background: #effaf3; animation: r2-pop .35s var(--ease-out) both; }
.g2-slot img { width: 48px; height: 48px; }
.g2-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.g2-card { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 14px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 10px 22px -16px rgba(28, 26, 46, .45), inset 0 0 0 2px rgba(28, 26, 46, .06); font: inherit; font-weight: 800; text-align: left; cursor: pointer; transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), opacity .3s; }
.g2-card:hover { transform: translateY(-3px); }
.g2-card:active { transform: scale(.97); }
.g2-card img { width: 52px; height: 52px; flex: none; }
.g2-card.is-used { opacity: .25; pointer-events: none; transform: scale(.96); }
.g2-card.is-wrong { animation: g2-shake .4s ease; box-shadow: 0 10px 22px -16px rgba(28, 26, 46, .45), inset 0 0 0 2px #e5484d; }
@keyframes g2-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.g2-quiz { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: center; }
.g2-cal { display: grid; overflow: hidden; border-radius: 26px; background: #fff; text-align: center; box-shadow: 0 20px 40px -24px rgba(28, 26, 46, .5); }
.g2-cal__top { padding: 10px; background: #ff7f5c; color: #fff; font: 800 18px/1.1 var(--font-display); }
.g2-cal b { padding: 18px 10px 24px; font: 800 64px/1 var(--font-display); letter-spacing: -0.03em; }
.g2-q { margin: 0 0 16px; font: 800 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--font-display); }
.g2-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.g2-opt { min-height: 58px; padding: 0 16px; border: 0; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px rgba(28, 26, 46, .1); font: 800 17px/1.2 var(--font-display); cursor: pointer; transition: transform .25s cubic-bezier(.34, 1.4, .64, 1), background .2s; }
.g2-opt:hover:not(:disabled) { transform: translateY(-2px); background: #fffaf0; }
.g2-opt.is-right { background: #2fa866; color: #fff; box-shadow: none; }
.g2-opt.is-wrong { background: #fde3e3; box-shadow: inset 0 0 0 2px #e5484d; }
.g2-opt:disabled { cursor: default; }
.g2-hint { min-height: 1.5em; margin: 14px 0 0; font-weight: 700; color: var(--ink-2); }
@media (max-width: 760px) {
  .g2-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g2-cards { grid-template-columns: 1fr 1fr; }
  .g2-card { font-size: 14px; gap: 8px; padding: 8px 10px; }
  .g2-card img { width: 40px; height: 40px; }
  .g2-quiz { grid-template-columns: 1fr; gap: 16px; }
  .g2-cal { width: 140px; margin-inline: auto; }
  .g2-cal b { font-size: 46px; padding: 12px 8px 16px; }
}
@media (prefers-reduced-motion: reduce) { .g2-card, .g2-opt { transition: none; } .g2-card.is-wrong, .g2-slot.is-filled { animation: none; } }

/* ---------- "School news is everywhere": a short pinned scroll on wide screens (driven by r2.js) ---------- */
.problem.r2-pinned .r2-pin-track::after { content: ""; display: block; height: 70vh; }
.problem.r2-pinned .problem-pin { position: sticky; top: 72px; }
.problem.r2-pinned-narrow .problem-grid::after { content: ""; display: block; height: 70vh; height: 70svh; }
.problem.r2-pinned-narrow .chaos { position: sticky; top: max(76px, calc(50svh - 240px)); align-self: start; z-index: 1; }
.chaos .order-card { opacity: 0; }
.chaos .chat, .chaos .app, .chaos .order-card, .chaos .order-card li { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) { .chaos .order-card { opacity: 1; } }

/* home film: a dialog on computers, an ordinary inline player on phones (owner, 10 Oct) */
.r2-video video { aspect-ratio: 1 / 1; }
.r2-how__film { display: none; margin: 18px auto 0; width: min(100%, 420px); }
.r2-how__film video { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 22px; background: #fbf6ec; box-shadow: 0 24px 50px -28px rgba(28, 26, 46, .55); }
.r2-how__film figcaption { margin-top: 10px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-2); }
@media (max-width: 860px) { .r2-how__film { display: block; } .r2-how__actions .r2-play { display: none; } }

/* ---------- header: a floating bubble once you scroll (owner, 10 Oct), and a proper Sign in ---------- */
.nav, .nav.is-scrolled, .nav[data-sky-time="night"].is-scrolled { background: transparent; box-shadow: none; }
.nav-inner { transition: height .45s var(--ease-out), margin .45s var(--ease-out), padding .45s var(--ease-out), background-color .35s, box-shadow .35s, border-radius .45s var(--ease-out), width .45s var(--ease-out); border-radius: 0; }
.nav.is-scrolled .nav-inner { height: 60px; margin-top: 10px; padding: 0 8px 0 14px; width: min(1100px, calc(100% - 32px)); border-radius: 999px; background-color: rgba(255, 252, 247, .84); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: 0 14px 34px -18px rgba(28, 26, 46, .45), 0 0 0 1px rgba(28, 26, 46, .07); }
.nav[data-sky-time="night"].is-scrolled .nav-inner { background-color: rgba(20, 26, 69, .82); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
.nav .brand-wordmark { height: 26px; width: auto; }
.nav .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.nav.is-scrolled .brand-mark { width: 36px; height: 36px; }
.nav-links .nav-signin { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; margin-left: 6px; padding: 0 16px 0 12px !important; border-radius: 999px; background: #fff !important; color: var(--ink) !important; font-weight: 800 !important; box-shadow: inset 0 0 0 1.5px rgba(28, 26, 46, .14), 0 6px 14px -10px rgba(28, 26, 46, .5); transition: transform .3s cubic-bezier(.34, 1.4, .64, 1), box-shadow .2s; }
.nav-links .nav-signin svg { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #ffd269; color: var(--ink); }
.nav-links .nav-signin:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px rgba(28, 26, 46, .3), 0 10px 18px -10px rgba(28, 26, 46, .55); }
.nav-links .nav-signin:active { transform: scale(.97); }
@media (max-width: 900px) {
  .nav.is-scrolled .nav-inner { padding: 0 8px 0 12px; width: calc(100% - 20px); margin-top: 8px; height: 56px; }
  .nav .brand-wordmark { height: 22px; }
  .nav-links .nav-signin { justify-content: center; margin: 4px 0 0; }
  .nav.is-scrolled .nav-links { top: 64px; }
}
@media (prefers-reduced-motion: reduce) { .nav-inner { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .nav.is-scrolled .nav-inner { background-color: #fffaf4; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- Home "How NAALAI works": full-viewport film, R3 ---------- */
.r2-film { padding: clamp(64px, 9vw, 112px) 0 0; }
.r2-film .r2-how__head { margin-bottom: 32px; }
.r2-film__mobile { display: none; }
.r2-film__track { position: relative; width: 100%; margin-top: 18px; }
.r2-film__track.is-scrub { height: 360vh; height: 360svh; }
.r2-film__stage { position: relative; width: 100%; background: #d5e6ee; }
.r2-film__track.is-scrub .r2-film__stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.r2-film__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 0; background: #d5e6ee; }
.r2-film__track.is-scrub .r2-film__frame { height: 100%; aspect-ratio: auto; }
.r2-film__frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #d5e6ee; }
.r2-film__top { position: absolute; z-index: 2; top: 92px; left: 24px; right: 24px; display: flex; justify-content: space-between; align-items: start; gap: 20px; pointer-events: none; }
.r2-film__label { display: none; }
.r2-film__label b { display: block; color: #211d24; font-family: var(--font-display); font-size: 16px; }
.r2-film__label span { display: block; }
.r2-film__skip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; color: #211d24; font-weight: 800; font-size: 15px; text-decoration: none; pointer-events: auto; box-shadow: 0 8px 18px -12px rgba(28,26,46,.5); transition: transform .3s cubic-bezier(.34,1.4,.64,1); }
.r2-film__skip svg { transform: rotate(90deg); }
.r2-film__skip:hover { transform: translateY(-2px); }
.r2-film__skip:active { transform: scale(.97); }
.r2-film__top { justify-content: flex-end; }
.r2-film__skip:focus-visible, .r3-film-text summary:focus-visible { outline: 3px solid #2857a6; outline-offset: 4px; }
.r2-film__chapter { position: absolute; right: 104px; bottom: 24px; padding: 8px 14px; border-radius: 8px; background: #fff6ea; color: #211d24; font-size: 14px; font-weight: 800; }
.r2-film__bar { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(33,29,36,.15); }
.r2-film__bar i { display: block; height: 100%; background: #2857a6; transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.r2-film__track:not(.is-scrub) .r2-film__bar, .r2-film__track:not(.is-scrub) .r2-film__chapter { display: none; }
.r2-film__track:not(.is-scrub) .r2-film__top { top: 20px; }
.r2-film .r2-how__film { display: none; width: min(100%, 520px); margin: 24px auto 0; }
.r2-film .r2-how__film video { aspect-ratio: 4 / 5; width: 100%; height: auto; border-radius: 24px; }
.r3-film-text { max-width: 760px; padding-block: 28px 36px; color: #55505a; font-size: 14px; }
.r3-film-text summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: #211d24; font-weight: 800; }
.r3-film-text ol { display: grid; gap: 14px; padding-left: 24px; margin: 12px 0 24px; font-size: 16px; line-height: 1.55; }
.r3-film-text li::marker { color: #2857a6; font-weight: 800; }
.r3-film-text p { margin: 8px 0 0; }
@media (max-width: 860px) {
  .r2-film__track { display: none; }
  .r2-film__mobile { display: flex; }
  .r2-film .r2-how__film { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .r2-film__skip { transition: none; }
  .r2-film__track { display: none; }
  .r2-film__mobile { display: flex; }
  .r2-film .r2-how__film { display: block; }
}

/* ---------- Home hero, 10 Oct: sunrise landscape, R3 ---------- */
body[data-page="landing"] .hero { position: relative; display: block; align-content: normal; min-height: 0; height: 175vh; height: 175svh; padding: 0; overflow: visible; overflow-x: clip; }
.r2-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(112px, 16vh, 166px); overflow: hidden; background: radial-gradient(ellipse at 72% 91%, rgba(255,238,201,.85), transparent 56%); }
.hero-grid.r2-hero { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.r2-hero .hero-copy { max-width: 980px; display: grid; justify-items: center; }
.r2-hero .hero-title { font-size: clamp(2.6rem, 6.7vw, 5.8rem); line-height: 1; letter-spacing: -.035em; color: #211d24; }
.r2-hero .hero-title .ch { animation: none; }
.r2-hero .hero-title.wave .ch { animation: none; }
.r2-hero .hero-title .ht-pop { display: none; }
@media (min-width: 761px) { .r2-hero .hero-title .hl { display: block; width: max-content; margin-inline: auto; } }
@media (max-aspect-ratio: 4/3) and (min-width: 861px) { .r2-film__frame video { object-fit: contain; background: #c7dae5; } }
.r2-hero .hero-lede { max-width: 56ch; margin: 28px auto 0; color: #3f414c; }
.r2-hero .hero-actions { justify-content: center; margin-top: 28px; }
.r2-hero .hero-note { margin: 18px auto 0; max-width: 55ch; color: #414652; }
.r2-hero .reveal { opacity: 1; transform: none; }
.r2-land { position: absolute; inset: auto 0 0; height: 62vh; height: 62svh; z-index: 1; pointer-events: none; }
.r2-l { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; }
.hero.r3-hero-active .r2-l { will-change: transform; }
.hero.r3-hero-active .r2-hero { will-change: transform, opacity; }
.r2-kite__k { transform-box: fill-box; transform-origin: 50% 100%; animation: r3-kite 7s ease-in-out infinite alternate; }
@keyframes r3-kite { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.hero.motion-offscreen .r2-kite__k, .motion-paused .r2-kite__k { animation-play-state: paused; }
@media (max-width: 760px) {
  body[data-page="landing"] .hero { height: 150vh; height: 150svh; }
  .r2-stage { padding-top: 112px; }
  .r2-hero .hero-title { font-size: clamp(2.6rem, 10.8vw, 4.2rem); }
  .r2-hero .hero-lede { margin-top: 24px; max-width: 34ch; font-size: 17px; }
  .r2-hero .hero-actions { margin-top: 24px; gap: 10px; }
  .r2-hero .hero-note { max-width: 33ch; font-size: 13px; }
  .r2-land { height: 45vh; height: 45svh; width: 190%; left: -45%; }
}
@media (max-height: 780px) and (min-width: 761px) {
  .r2-stage { padding-top: 104px; }
  .r2-hero .hero-title { font-size: clamp(2.6rem, 6.2vw, 5rem); }
  .r2-hero .hero-lede { margin-top: 20px; font-size: 18px; }
  .r2-hero .hero-actions { margin-top: 22px; }
  .r2-land { height: 54svh; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="landing"] .hero { height: auto; }
  .r2-stage { position: relative; height: auto; min-height: 100svh; padding-bottom: 300px; }
  .r2-kite__k { animation: none; }
}

/* dialogs: the CSS reset sets margin 0, which pins a modal to the top-left; centre them again */
.r2-video { margin: auto; }

/* the same calm cross-fade between every page of the site */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* R4: tomorrow begins with a welcoming, living morning. The brief's sunrise is the focal scene. */
.r2-hero .hero-title .wd { --word: 0; }
.r2-hero .hero-title .ht > .wd:nth-child(2) { --word: 1; }
.r2-hero .hero-title .ht > .wd:nth-child(3) { --word: 2; }
.r2-hero .hero-title .hl > .wd:first-child { --word: 3; }
.r2-hero .hero-title .hl > .wd:nth-child(2) { --word: 4; }
.js.r4-hero-ready .r2-hero .hero-title .wd { animation: r4-word .65s cubic-bezier(.34,1.4,.64,1) both; animation-delay: calc(var(--word) * 65ms); }
@keyframes r4-word { from { transform: translate3d(0,18px,0) rotate(1.5deg); opacity: .35; } to { transform: none; opacity: 1; } }
.r2-hero .hero-title .hl { position: relative; isolation: isolate; }
.r2-hero .hero-title .hl::before { content: ""; position: absolute; z-index: -1; left: 3%; right: 1%; bottom: .025em; height: .2em; border-radius: 55% 40%; background: #ffd269; opacity: .55; transform: rotate(-1deg) scaleX(.97); animation: r4-highlight 7s ease-in-out infinite alternate; }
@keyframes r4-highlight { to { opacity: .8; transform: rotate(.3deg) scaleX(1.02); } }
.r2-hero .hero-title .hl > svg { display: none; }
.r2-hero .hero-title .rot { transition: none; }
.r4-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; padding: 0; margin: 22px 0 0; color: #3f414c; font-size: 13px; line-height: 1.5; font-weight: 700; }
.r4-trust li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.r4-trust svg { width: 15px; height: 15px; color: #237947; }
.r2-hero .hero-note { margin-top: 12px; font-size: 13px; }
.r2-hero .hero-actions .btn { position: relative; min-height: 48px; isolation: isolate; transition: transform .3s cubic-bezier(.34,1.4,.64,1), box-shadow .3s ease; }
.r2-hero .hero-actions .btn-primary { overflow: hidden; }
.r2-hero .hero-actions .btn-primary::before { content: ""; position: absolute; z-index: -1; inset: -30% 0; width: 30%; background: rgba(255,255,255,.18); transform: translate3d(-160%,0,0) skewX(-18deg); }
.r2-hero .hero-actions .btn-primary:hover::before { animation: r4-shine .6s var(--ease-out); }
@keyframes r4-shine { to { transform: translate3d(470%,0,0) skewX(-18deg); } }
.r2-hero .hero-actions .btn::after { content: ""; position: absolute; right: 12px; top: 5px; width: 9px; height: 9px; background: currentColor; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); opacity: 0; transform: scale(.4) rotate(-20deg); transition: transform .3s cubic-bezier(.34,1.4,.64,1), opacity .2s; pointer-events: none; }
.r2-hero .hero-actions .btn:hover::after { opacity: .8; transform: scale(1) rotate(0); }
.r2-hero .hero-actions .btn:hover { transform: translate3d(0,-3px,0); }
.r2-hero .hero-actions .btn:active { transform: scale(.97); }
.r2-hero .hero-actions .btn:focus-visible { outline: 3px solid #2857a6; outline-offset: 5px; }
.r4-school-life { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.r4-float { position: absolute; transform: translate3d(var(--px,0px),var(--py,0px),0); }
.r4-float img { display: block; width: 100%; height: auto; animation: r4-bob 5.5s ease-in-out infinite alternate; }
.r4-float--book { width: 72px; left: 7%; top: 37%; }
.r4-float--pencil { width: 64px; right: 7%; top: 30%; }
.r4-float--star { width: 48px; left: 15%; top: 60%; }
.r4-float--bell { width: 56px; right: 5%; top: 61%; }
.r4-float--pencil img { animation-delay: -2.5s; }
.r4-float--star img { animation-delay: -1.2s; }
.r4-float--bell img { animation-delay: -3.5s; }
@keyframes r4-bob { from { transform: translate3d(0,-5px,0) rotate(-5deg); } to { transform: translate3d(0,6px,0) rotate(4deg); } }
.r4-birds { animation: r4-birds 26s linear infinite; }
@keyframes r4-birds { 0% { transform: translate3d(-430px,22px,0); opacity: 0; } 8%,85% { opacity: .7; } 100% { transform: translate3d(1350px,-36px,0); opacity: 0; } }
.r4-cloud { animation: r4-cloud 38s ease-in-out infinite alternate; }
.r4-cloud--fast { animation-duration: 23s; animation-delay: -12s; }
@keyframes r4-cloud { to { transform: translate3d(130px,-6px,0); } }
.r4-rays { animation: r4-rays 8s ease-in-out infinite alternate; transform-origin: 1150px 190px; }
@keyframes r4-rays { to { opacity: .55; transform: scale(1.025); } }
.r4-kite-tail { transform-box: fill-box; transform-origin: top center; animation: r4-tail 2.2s ease-in-out infinite alternate; }
@keyframes r4-tail { to { transform: skewX(7deg) rotate(3deg); } }
.hero:not(.r4-motion-active) *, .hero:not(.r4-motion-active) *::before, .hero:not(.r4-motion-active) *::after,
.motion-paused .hero *, .motion-paused .hero *::before, .motion-paused .hero *::after,
.motion-paused .r2-loader * { animation-play-state: paused !important; }
.hero.r4-motion-active .r4-float { will-change: transform; }
.r4-calm .hero :is(.r4-birds,.r4-rays,.r4-cloud--fast,.r4-kite-tail,.r4-float--star img,.r4-float--bell img),
.r4-calm .hero-title .hl::before { animation: none; }
.r4-calm .hero.r4-motion-active .r4-float { will-change: auto; }
.r2-film__track.is-scrub .r2-film__frame { contain: paint; }
.r2-film__top { top: 92px; }
.r4-film-actions { display: flex; justify-content: center; margin-top: 20px; }

/* Scoped existing selectors are marked at runtime; unscripted content is always visible. */
.js [data-r4-reveal="waiting"] { opacity: 0; transform: translate3d(0,12px,0); }
.js [data-r4-reveal="shown"] { animation: r4-reveal .48s var(--ease-out) both; animation-delay: var(--r4-delay,0ms); }
.js [data-r4-reveal="shown"]:not(.r4-reveal-active), .motion-paused [data-r4-reveal="shown"] { animation-play-state: paused; }
@keyframes r4-reveal { from { opacity: 0; transform: translate3d(0,12px,0); } to { opacity: 1; transform: none; } }
.r4-scroll-active .chaos :is(.chat,.app,.order-card,.order-card li) { will-change: transform,opacity; }
.chaos :is(.chat,.app,.order-card,.order-card li) { will-change: auto; }
@media (max-width: 760px) {
  .r4-trust { display: grid; grid-template-columns: auto auto; gap: 8px 14px; font-size: 13px; margin-top: 18px; text-align: left; }
  .r4-trust li:first-child { gap: 4px; }
  .r4-float--book { width: 44px; left: 5%; top: auto; bottom: 25%; }
  .r4-float--pencil { width: 42px; right: 4%; top: auto; bottom: 30%; }
  .r4-float--star { width: 32px; left: 18%; top: auto; bottom: 16%; }
  .r4-float--bell { width: 38px; right: 14%; top: auto; bottom: 16%; }
}
@media (max-width: 860px) { .r4-film-actions { display: none; } }
@media (max-height: 700px) and (max-width: 760px) {
  .r2-stage { padding-top: 90px; }
  .r2-hero .hero-title { font-size: 2.5rem; }
  .r2-hero .hero-lede { margin-top: 16px; font-size: 15px; }
  .r2-hero .hero-actions { margin-top: 18px; }
  .r4-trust { margin-top: 14px; }
  .r4-float { display: none; }
  .r2-land { height: 32svh; }
}
@media (prefers-reduced-motion: reduce) {
  .r4-film-actions { display: none; }
  .js.r4-hero-ready .r2-hero .hero-title .wd, .hero :is(.r4-birds,.r4-cloud,.r4-rays,.r4-kite-tail,.r4-float img), .hero-title .hl::before { animation: none; }
  .js [data-r4-reveal] { animation: none; transform: none; opacity: 1; }
  .r2-hero .hero-actions .btn, .r2-hero .hero-actions .btn::after { transition: opacity .15s; }
  .r2-hero .hero-actions .btn:hover { transform: none; }
  .r2-hero .hero-actions .btn-primary:hover::before { animation: none; }
}
