@font-face {
  font-family:Kantumruy;
  src:url('/media/kantumruy-pro.ttf') format('truetype');
  font-weight:100 900;
  font-display:swap
}
:root {
  --ink:#242027;
  --lime:#d8f36a;
  --purple:#5b34d6;
  --cream:#f8f5ed;
  --peach:#ffb9a1;
  --lavender:#c7b7f5;
  --gutter:clamp(24px,5.2vw,88px);
  font-family:Kantumruy,Arial,sans-serif;
  color:var(--ink);
  background:var(--cream);
  font-synthesis:none;
  color-scheme:light;
  scroll-behavior:smooth;
  scroll-padding-top:105px
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,a {
  -webkit-tap-highlight-color:transparent
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit;
  cursor:pointer
}
img {
  display:block;
  max-width:100%;
  height:auto
}
h1,h2,p {
  margin:0
}
button,a {
  touch-action:manipulation
}
a:focus-visible,button:focus-visible {
  outline:3px solid currentColor;
  outline-offset:6px
}
.skip-link {
  position:fixed;
  top:-80px;
  left:20px;
  background:var(--ink);
  color:var(--cream);
  padding:14px;
  z-index:100
}
.skip-link:focus {
  top:12px
}
.site-header {
  position:fixed;
  top:18px;
  left:var(--gutter);
  right:var(--gutter);
  height:72px;
  z-index:30;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  transition:background .25s,box-shadow .25s,padding .25s,border-radius .25s
}
.site-header.scrolled {
  background:var(--cream);
  box-shadow:0 3px 20px #2420270e;
  padding:0 23px;
  border:1px solid #24202720;
  border-radius:18px
}
.wordmark {
  font-size:36px;
  line-height:1;
  letter-spacing:-2px;
  font-weight:800;
  display:flex;
  align-items:center;
  gap:5px
}
.brand-spark {
  color:var(--purple);
  font-size:40px
}
.site-header nav {
  display:flex;
  gap:clamp(22px,3vw,50px);
  font-size:13px;
  font-weight:550
}
.site-header nav a {
  position:relative
}
.site-header nav a::after {
  content:'';
  position:absolute;
  bottom:-5px;
  left:0;
  width:0;
  height:1px;
  background:currentColor;
  transition:width .2s
}
.site-header nav a:hover::after {
  width:100%
}
.language-switch {
  display:flex;
  align-items:center;
  gap:18px;
  border:1px solid #24202755;
  border-radius:100px;
  padding:8px 17px;
  font-size:14px;
  min-height:42px
}
.language-switch:hover {
  background:#ffffff50
}
.hero {
  background:var(--lime);
  padding:132px var(--gutter) 0;
  position:relative;
  overflow:hidden;
  min-height:min(940px,100svh);
  display:flex;
  flex-direction:column
}
.hero-topline,.hero-bottom,.section-marker {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:10px;
  letter-spacing:1.4px;
  font-weight:650
}
.hero-topline {
  padding-top:5px
}
.hero-topline>span:first-child {
  display:flex;
  align-items:center;
  gap:8px
}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:currentColor;
  flex-shrink:0
}
.hero-grid {
  display:grid;
  grid-template-columns:1.08fr 1fr;
  align-items:center;
  flex:1;
  gap:0;
  padding:48px 0 62px
}
.hero-copy {
  position:relative;
  z-index:2
}
.hero h1 {
  font-size:clamp(70px,8.8vw,145px);
  line-height:.97;
  letter-spacing:-.067em;
  font-weight:750;
  position:relative;
  max-width:850px
}
.hero-emphasis {
  color:var(--purple)
}
.title-dot {
  display:inline-block;
  position:absolute;
  margin-left:12px;
  color:var(--purple);
  font-size:.49em;
  top:.1em;
  transform:rotate(calc(var(--hero-progress,0)*60deg))
}
.hero-copy p {
  font-size:15px;
  line-height:1.75;
  max-width:350px;
  margin:27px 0 26px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:space-between;
  gap:36px;
  padding:9px 10px 9px 23px;
  border-radius:100px;
  min-height:54px;
  font-size:13px;
  font-weight:600;
  border:1px solid transparent;
  transition:transform .2s,background .2s
}
.button:hover {
  transform:translateY(-3px)
}
.button-arrow {
  width:35px;
  height:35px;
  display:grid;
  place-items:center;
  border-radius:50%;
  font-size:23px;
  font-family:Arial,sans-serif;
  background:#ffffff21
}
.button-dark {
  background:var(--ink);
  color:var(--cream)
}
/* Store destinations are configured before the public launch. */
.store-links {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  width:100%;
  max-width:360px
}
.store-links .store-link {
  flex:1 1 140px;
  gap:14px;
  padding:9px 10px 9px 18px;
  white-space:nowrap
}
.hero-art {
  position:relative;
  align-self:stretch;
  min-height:450px;
  transform:translateY(calc(var(--hero-progress,0)*70px))
}
.orbit {
  position:absolute;
  aspect-ratio:1;
  width:94%;
  border-radius:50%;
  background:var(--lavender);
  left:6%;
  top:50%;
  transform:translateY(-50%) rotate(calc(var(--hero-progress,0)*15deg));
  border:1px solid #24202730
}
.orbit-inner {
  position:absolute;
  inset:10%;
  border:1px solid #24202724;
  border-radius:50%
}
.orbit::before,.orbit::after {
  content:'';
  position:absolute;
  inset:22%;
  border-radius:50%;
  border:1px solid #24202724
}
.orbit::after {
  inset:35%
}
.hero-cat {
  position:absolute;
  width:114%;
  max-width:none;
  left:-3%;
  top:48%;
  transform:translateY(-46%) rotate(-7deg);
  filter:drop-shadow(0 20px 7px #24202710);
  z-index:2
}
.hero-sticker {
  position:absolute;
  z-index:4;
  border:1px solid var(--ink);
  box-shadow:3px 4px 0 var(--ink);
  border-radius:8px
}
.sticker-hello {
  font-size:33px;
  line-height:1.6;
  background:var(--cream);
  padding:12px 22px;
  right:1%;
  top:4%;
  transform:rotate(9deg)
}
.hero-key {
  position:absolute;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:var(--cream);
  border:1.5px solid var(--ink);
  border-bottom-width:8px;
  box-shadow:6px 7px 0 #24202725;
  z-index:3;
  width:97px;
  height:103px;
  font-size:57px;
  line-height:1.6
}
.key-khmer {
  left:-2%;
  top:12%;
  transform:rotate(-16deg)
}
.key-latin {
  right:-5%;
  bottom:16%;
  transform:rotate(14deg);
  background:var(--peach);
  font-size:62px
}
.art-asterisk {
  position:absolute;
  font-size:85px;
  color:var(--purple);
  left:4%;
  bottom:16%;
  line-height:1;
  z-index:3;
  transform:rotate(12deg)
}
.hero-bottom {
  border-top:1px solid #24202740;
  padding:20px 0;
  letter-spacing:.9px
}
.hero-bottom a {
  display:flex;
  align-items:center;
  gap:24px
}
.scroll-arrow {
  font-size:24px;
  font-family:Arial,sans-serif
}
.word-ribbon {
  overflow:hidden;
  background:var(--ink);
  color:var(--lime);
  padding:21px 0
}
.ribbon-track {
  width:max-content;
  display:flex;
  gap:52px;
  align-items:center;
  transform:translateX(calc(var(--ribbon-progress,0)*-170px));
  font-size:29px;
  line-height:1.4;
  font-weight:650;
  letter-spacing:-.8px
}
.ribbon-track b {
  font-size:36px;
  font-weight:400;
  color:var(--lavender)
}
.khroma-section {
  position:relative;
  min-height:210svh;
  background:var(--cream)
}
.khroma-stage {
  position:sticky;
  top:0;
  min-height:740px;
  height:100svh;
  max-height:1100px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:110px var(--gutter) 45px;
  overflow:hidden
}
.section-marker {
  letter-spacing:1.5px
}
.khroma-grid {
  display:grid;
  grid-template-columns:1fr 1.05fr;
  align-items:center;
  gap:8%;
  flex:1;
  padding:55px 0
}
.khroma-copy h2,.themes-heading h2,.privacy-copy h2,.closing-section h2 {
  font-size:clamp(50px,5.9vw,91px);
  letter-spacing:-.055em;
  line-height:1.05;
  font-weight:650
}
.serif-word {
  font-family:Georgia,'Times New Roman',serif;
  font-style:italic;
  font-weight:400;
  letter-spacing:-.055em;
  color:var(--purple)
}
.khroma-copy p {
  max-width:360px;
  font-size:15px;
  line-height:1.8;
  margin-top:26px
}
.word-choices {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:28px
}
.word-choices button {
  border:1px solid #24202745;
  border-radius:100px;
  padding:9px 15px;
  min-height:42px;
  background:transparent;
  color:var(--ink);
  display:flex;
  gap:13px;
  font-size:13px;
  align-items:center
}
.word-choices button[aria-pressed=true] {
  background:var(--purple);
  color:var(--cream);
  border-color:var(--purple)
}
.word-choices button:hover {
  border-color:var(--purple)
}
.khroma-copy .demo-caption {
  font-size:10px;
  line-height:1.7;
  max-width:330px;
  margin-top:15px;
  color:#6c6570
}
.typing-object {
  position:relative;
  transform:translateY(calc((1 - var(--typing-progress,0))*26px)) rotate(calc((1 - var(--typing-progress,0))*3deg));
  padding-top:15px
}
.demo-stamp {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  position:absolute;
  right:17px;
  top:-14px;
  background:var(--peach);
  border:1px solid var(--ink);
  border-radius:6px;
  padding:10px 17px;
  font-size:10px;
  letter-spacing:.9px;
  font-weight:650;
  transform:rotate(5deg);
  z-index:2
}
.demo-stamp>span:first-child {
  font-size:24px
}
.typing-card {
  border:1.5px solid var(--ink);
  background:var(--lavender);
  padding:26px;
  border-radius:25px;
  box-shadow:8px 9px 0 var(--ink)
}
.typing-card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:10px;
  font-weight:600;
  padding-bottom:22px;
  border-bottom:1px solid #24202735
}
.demo-live {
  display:flex;
  align-items:center;
  gap:5px;
  letter-spacing:.5px;
  font-size:8px
}
.typing-result {
  font-size:clamp(45px,6vw,88px);
  line-height:1.65;
  min-height:130px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--purple);
  padding:7px 0;
  font-weight:600;
  overflow-wrap:anywhere
}
.typing-result.word-enter {
  animation:word-enter .45s cubic-bezier(.16,1,.3,1)
}
@keyframes word-enter {
  from {
    transform:translateY(18px) scale(.94);
    opacity:.4
  }
  to {
    transform:none;
    opacity:1
  }
}
.typing-input {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:ui-monospace,SFMono-Regular,monospace;
  font-size:20px;
  background:var(--cream);
  border:1px solid var(--ink);
  border-radius:9px;
  padding:12px 18px;
  margin-bottom:20px
}
.typing-input>span:last-child {
  opacity:.45
}
.mini-keyboard {
  display:grid;
  gap:6px
}
.keyboard-row {
  display:flex;
  justify-content:center;
  gap:5px
}
.keyboard-row:nth-child(2) {
  padding:0 13px
}
.keyboard-row span {
  flex:1;
  min-width:0;
  text-align:center;
  display:grid;
  place-items:center;
  border-radius:6px;
  padding:9px 0;
  font-size:13px;
  background:var(--cream);
  border:1px solid #24202745;
  border-bottom-width:3px;
  transition:background .25s,transform .25s
}
.keyboard-row .lit {
  background:var(--lime);
  transform:translateY(1px)
}
.keyboard-row .space-key {
  flex:4;
  letter-spacing:1px;
  font-size:10px
}
.typing-footnote {
  display:flex;
  justify-content:space-between;
  gap:15px;
  margin-top:25px;
  font-size:8px;
  letter-spacing:.6px;
  color:#6c6570
}
.chapter-progress {
  height:3px;
  background:#24202719;
  width:100%
}
.chapter-progress span {
  height:100%;
  width:100%;
  display:block;
  background:var(--purple);
  transform:scaleX(var(--typing-progress,0));
  transform-origin:left
}
.themes-section {
  background:var(--purple);
  color:var(--cream);
  padding:75px var(--gutter) 55px;
  overflow:hidden;
  position:relative
}
.themes-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:35px;
  margin:65px 0 85px
}
.themes-heading h2 {
  font-size:clamp(65px,9vw,135px);
  line-height:.98;
  letter-spacing:-.06em
}
.outline-word {
  color:var(--lime)
}
.themes-heading p {
  font-size:16px;
  line-height:1.8;
  max-width:290px;
  margin-bottom:7px;
  color:#f8f5ede0
}
.theme-deck {
  display:flex;
  gap:23px;
  align-items:center;
  justify-content:center;
  margin:0 auto 68px;
  perspective:1200px
}
.theme-card {
  width:calc((100% - 46px)/3);
  padding:18px 17px 21px;
  border:1.5px solid var(--ink);
  border-radius:15px;
  box-shadow:5px 6px 0 #24202770;
  color:var(--ink);
  transition:box-shadow .3s,translate .4s;
  will-change:transform;
  --lift:0px;
  translate:0 var(--lift)
}
.theme-card[aria-pressed=true] {
  --lift:-23px;
  box-shadow:8px 11px 0 #242027
}
.theme-card:hover {
  --lift:-28px
}
.theme-clover {
  background:#e7eedc;
  transform:translateY(calc((1 - var(--deck-progress,0))*80px)) rotate(calc(-8deg + var(--deck-progress,0)*3deg))
}
.theme-cobalt {
  background:#edf2f7;
  transform:translateY(calc((1 - var(--deck-progress,0))*35px)) rotate(1deg)
}
.theme-peach {
  background:#ffe3da;
  transform:translateY(calc((1 - var(--deck-progress,0))*100px)) rotate(calc(8deg - var(--deck-progress,0)*3deg))
}
.theme-card-top {
  display:flex;
  justify-content:space-between;
  gap:8px;
  font-size:8px;
  letter-spacing:.7px;
  font-weight:600;
  margin-bottom:18px;
  align-items:center
}
.theme-card-top span:last-child {
  font-size:22px
}
.theme-card img {
  width:100%;
  border:1px solid #24202722;
  border-radius:7px
}
.theme-card-name {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:29px;
  font-weight:600;
  letter-spacing:-1.3px;
  margin-top:14px;
  line-height:1.2
}
.theme-card-name>span {
  font-size:34px
}
.themes-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid #f8f5ed45;
  padding-top:24px;
  font-size:9px;
  letter-spacing:.8px
}
.themes-bottom p {
  letter-spacing:0;
  font-size:13px;
  color:var(--lime)
}
.privacy-section {
  padding:65px var(--gutter) 0;
  background:var(--peach);
  overflow:hidden
}
.privacy-mark {
  font-size:35px;
  line-height:1
}
.privacy-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9%;
  align-items:center;
  padding:35px 0 55px
}
.privacy-art {
  min-height:425px;
  position:relative
}
.sleep-circle {
  background:var(--purple);
  border-radius:50%;
  position:absolute;
  inset:18% 7% 0 7%;
  aspect-ratio:1
}
.privacy-art img {
  position:relative;
  z-index:1;
  width:100%;
  transform:rotate(-8deg)
}
.sleep-z {
  position:absolute;
  z-index:2;
  font-family:Georgia,serif;
  font-style:italic;
  color:var(--purple);
  font-size:80px
}
.z-one {
  left:19%;
  top:9%;
  transform:rotate(-18deg)
}
.z-two {
  left:10%;
  top:0;
  font-size:48px;
  transform:rotate(-24deg)
}
.privacy-tag {
  position:absolute;
  right:-2%;
  bottom:5%;
  background:var(--lime);
  padding:15px 19px;
  border:1px solid var(--ink);
  border-radius:6px;
  transform:rotate(-7deg);
  box-shadow:4px 4px 0 var(--ink);
  font-size:9px;
  letter-spacing:1.1px;
  font-weight:600;
  z-index:2
}
.privacy-copy h2 {
  font-size:clamp(47px,5.6vw,84px);
  line-height:1.06
}
.privacy-copy p {
  font-size:15px;
  line-height:1.8;
  max-width:370px;
  margin-top:25px
}
.text-link {
  display:inline-flex;
  gap:45px;
  border-bottom:1px solid;
  padding:7px 0 10px;
  margin-top:22px;
  font-size:13px;
  font-weight:600;
  align-items:center
}
.text-link>span:last-child {
  font-size:23px
}
.privacy-strip {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border-top:1px solid #24202745;
  padding:28px 0;
  font-size:10px;
  letter-spacing:.9px;
  font-weight:600
}
.privacy-strip>span:nth-child(even) {
  font-size:24px;
  color:var(--purple)
}
.closing-section {
  background:var(--ink);
  color:var(--cream);
  padding:70px var(--gutter) 80px
}
.closing-top {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.6px;
  font-weight:550
}
.closing-spark {
  font-size:72px;
  line-height:1;
  color:var(--lime)
}
.closing-section h2 {
  font-size:clamp(75px,10.5vw,155px);
  line-height:1.03;
  margin:12px 0 58px;
  letter-spacing:-.05em
}
.closing-section h2 .serif-word {
  color:var(--lavender)
}
.closing-bottom {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:35px
}
.closing-bottom p {
  max-width:350px;
  font-size:14px;
  line-height:1.8;
  color:#f8f5edbf
}
.closing-actions {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  max-width:360px;
  width:100%
}
.closing-help-links {
  display:flex;
  flex-wrap:wrap;
  gap:14px 24px;
  font-size:12px
}
.closing-help-links a {
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:underline;
  text-underline-offset:5px
}
.button-lime {
  background:var(--lime);
  color:var(--ink)
}
.button-lime .button-arrow {
  background:#24202710
}
.button-outline {
  background:transparent;
  border-color:#f8f5ed65;
  color:var(--cream)
}
.site-footer {
  background:var(--cream);
  padding:44px var(--gutter) 23px;
  overflow:hidden
}
.footer-signoff {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  padding:4px 0 42px
}
.footer-greeting {
  display:flex;
  align-items:center;
  gap:28px
}
.footer-greeting p {
  margin:0;
  font-size:clamp(24px,2.8vw,40px);
  font-weight:650;
  letter-spacing:-.045em;
  line-height:1.3
}
html[lang=km] .footer-greeting p {
  letter-spacing:0;
  line-height:1.7
}
.footer-keys {
  position:relative;
  width:146px;
  height:114px;
  flex:none
}
.footer-key {
  position:absolute;
  display:grid;
  place-items:center;
  width:82px;
  height:82px;
  border:1.5px solid var(--ink);
  border-radius:19px;
  box-shadow:0 5px 0 var(--ink);
  font-size:42px;
  line-height:1;
  font-weight:550
}
.footer-key-latin {
  left:4px;
  top:7px;
  background:var(--lavender);
  transform:rotate(-12deg)
}
.footer-key-khmer {
  left:60px;
  top:24px;
  background:var(--lime);
  transform:rotate(12deg)
}
.footer-top {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  width:fit-content;
  max-width:100%;
  min-height:54px;
  margin:0;
  flex-shrink:0;
  padding:10px 24px;
  border:1.5px solid var(--ink);
  border-radius:100px;
  background:var(--purple);
  color:var(--cream);
  box-shadow:0 4px 0 var(--ink);
  font-size:14px;
  font-weight:650;
  transition:transform .2s,box-shadow .2s
}
.footer-top-key {
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  font-size:25px
}
.footer-top:hover,.footer-top:focus-visible {
  transform:translateY(-3px);
  box-shadow:0 7px 0 var(--ink)
}
.footer-top:active {
  transform:translateY(3px);
  box-shadow:0 1px 0 var(--ink)
}
.footer-meta {
  border-top:1px solid #24202735;
  padding-top:23px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-size:9px;
  color:#645c66
}
.footer-meta>span:nth-child(2) {
  font-size:8px;
  letter-spacing:.8px
}
.footer-meta>div {
  display:flex;
  flex-wrap:wrap;
  gap:15px
}
.footer-meta a:hover {
  text-decoration:underline
}
.motion-ready .reveal {
  opacity:0;
  transform:translateY(42px);
  transition:transform .8s cubic-bezier(.16,1,.3,1),opacity .65s
}
.motion-ready .reveal.is-visible {
  opacity:1;
  transform:none
}
.motion-ready .hero-copy {
  animation:hero-arrive .9s cubic-bezier(.16,1,.3,1) both
}
.motion-ready .hero-art {
  animation:art-arrive 1.1s cubic-bezier(.16,1,.3,1) both
}
@keyframes hero-arrive {
  from {
    opacity:0;
    translate:0 35px
  }
  to {
    opacity:1;
    translate:0 0
  }
}
@keyframes art-arrive {
  from {
    opacity:0;
    scale:.9
  }
  to {
    opacity:1;
    scale:1
  }
}
html[lang=km] h1,html[lang=km] h2 {
  letter-spacing:0;
  line-height:1.5
}
html[lang=km] .hero h1 {
  font-size:clamp(54px,5.3vw,86px)
}
html[lang=km] .serif-word {
  font-family:Kantumruy,sans-serif;
  font-style:normal
}
html[lang=km] .khroma-copy h2,html[lang=km] .privacy-copy h2 {
  font-size:clamp(35px,4.7vw,72px)
}
html[lang=km] .themes-heading h2 {
  font-size:clamp(48px,6.5vw,95px)
}
html[lang=km] .closing-section h2 {
  font-size:clamp(60px,8vw,110px)
}
html[lang=km] .hero-topline,html[lang=km] .section-marker,html[lang=km] .hero-bottom {
  letter-spacing:0;
  font-size:12px
}
html[lang=km] .title-dot {
  display:none
}
@media(min-width:1700px) {
  .hero-grid,.khroma-grid,.themes-heading,.theme-deck,.privacy-grid,.closing-bottom {
    max-width:1550px;
    width:100%;
    margin-left:auto;
    margin-right:auto
  }
  .hero-art {
    max-height:650px
  }
  .hero {
    min-height:1000px
  }
  .theme-card {
    max-width:430px
  }
}
@media(max-width:1100px) {
  .hero h1 {
    font-size:9.5vw
  }
  .hero-art {
    min-height:420px
  }
  .hero-key {
    width:76px;
    height:82px;
    font-size:44px;
    border-radius:18px
  }
  .key-latin {
    font-size:48px;
    right:-3%
  }
  .sticker-hello {
    font-size:26px;
    right:0;
    top:7%
  }
  .khroma-grid {
    gap:5%
  }
  .typing-card {
    padding:20px
  }
  .khroma-copy h2 {
    font-size:5.8vw
  }
  .privacy-art {
    min-height:350px
  }
  .theme-card-top {
    letter-spacing:0
  }
  .theme-deck {
    gap:17px
  }
  .theme-card {
    width:calc((100% - 34px)/3);
    padding:15px 13px
  }
  .theme-card-name {
    font-size:26px
  }
  .closing-bottom {
    align-items:flex-start
  }
  .closing-actions .button {
    gap:20px
  }
  .footer-meta>span:nth-child(2) {
    display:none
  }
}
@media(max-width:780px) {
  :root {
    --gutter:24px
  }
  .site-header {
    top:12px;
    height:61px
  }
  .wordmark {
    font-size:29px
  }
  .brand-spark {
    font-size:33px
  }
  .site-header nav {
    gap:21px;
    font-size:11px
  }
  .site-header nav a:nth-child(3) {
    display:none
  }
  .language-switch {
    padding:6px 12px;
    font-size:12px;
    gap:10px;
    min-height:38px
  }
  .site-header.scrolled {
    padding:0 15px;
    border-radius:13px
  }
  .hero {
    padding-top:105px;
    min-height:auto
  }
  .hero-edition {
    display:none
  }
  .hero-topline {
    font-size:8px;
    letter-spacing:1px
  }
  .hero-grid {
    grid-template-columns:1fr;
    padding:34px 0 28px;
    gap:0
  }
  .hero h1 {
    font-size:clamp(66px,12.9vw,100px);
    line-height:.96;
    max-width:100%
  }
  .hero-copy p {
    font-size:14px;
    max-width:350px;
    margin:23px 0
  }
  .hero-art {
    height:440px;
    min-height:0;
    max-width:460px;
    width:100%;
    margin:24px auto 0
  }
  .orbit {
    width:85%;
    left:8%;
    top:50%
  }
  .hero-cat {
    width:100%;
    left:0;
    top:45%
  }
  .key-khmer {
    left:0;
    top:14%
  }
  .key-latin {
    right:1%;
    bottom:16%
  }
  .sticker-hello {
    right:1%;
    top:3%;
    font-size:27px
  }
  .art-asterisk {
    font-size:66px;
    left:5%;
    bottom:18%
  }
  .hero-bottom {
    font-size:8px;
    padding:16px 0
  }
  .hero-bottom>span {
    max-width:130px;
    line-height:1.6;
    letter-spacing:.5px
  }
  .hero-bottom a {
    gap:12px;
    letter-spacing:.5px
  }
  .ribbon-track {
    font-size:22px;
    gap:30px
  }
  .word-ribbon {
    padding:16px 0
  }
  .ribbon-track b {
    font-size:27px
  }
  .khroma-section {
    min-height:190svh
  }
  .khroma-stage {
    padding:100px var(--gutter) 34px;
    height:100svh;
    min-height:880px;
    max-height:none
  }
  .section-marker {
    font-size:8px;
    letter-spacing:1px
  }
  .section-marker>span:nth-child(2) {
    max-width:140px;
    text-align:right
  }
  .khroma-grid {
    grid-template-columns:1fr;
    gap:28px;
    padding:33px 0;
    align-items:center
  }
  .khroma-copy h2 {
    font-size:clamp(42px,8.4vw,65px)
  }
  .khroma-copy p {
    font-size:13px;
    max-width:400px;
    margin-top:17px
  }
  .word-choices {
    margin-top:18px;
    gap:8px
  }
  .word-choices button {
    font-size:12px;
    padding:7px 14px;
    min-height:38px
  }
  .khroma-copy .demo-caption {
    font-size:10px;
    margin-top:10px
  }
  .typing-object {
    width:100%;
    max-width:460px;
    margin:0 auto
  }
  .typing-card {
    padding:20px;
    border-radius:18px;
    box-shadow:5px 6px 0 var(--ink)
  }
  .typing-card-top {
    padding-bottom:14px
  }
  .typing-result {
    font-size:62px;
    min-height:110px;
    padding:0
  }
  .typing-input {
    padding:9px 15px;
    font-size:16px;
    margin-bottom:14px
  }
  .keyboard-row span {
    font-size:12px;
    padding:7px 0
  }
  .mini-keyboard {
    gap:4px
  }
  .demo-stamp {
    font-size:8px;
    padding:6px 12px;
    top:-7px
  }
  .demo-stamp>span:first-child {
    font-size:19px
  }
  .typing-footnote {
    font-size:7px;
    margin-top:17px
  }
  .themes-section {
    padding-top:44px;
    padding-bottom:33px
  }
  .themes-heading {
    display:block;
    margin:38px 0 60px
  }
  .themes-heading h2 {
    font-size:clamp(64px,13vw,100px)
  }
  .themes-heading p {
    max-width:330px;
    font-size:14px;
    margin-top:24px
  }
  .theme-deck {
    flex-direction:column;
    gap:36px;
    margin-bottom:45px
  }
  .theme-card {
    width:min(100% - 12px,420px);
    padding:19px;
    --lift:0px!important
  }
  .theme-card[aria-pressed=true] {
    box-shadow:6px 7px 0 var(--lime)
  }
  .theme-card-top {
    font-size:10px;
    margin-bottom:13px
  }
  .theme-card-name {
    font-size:32px;
    margin-top:17px
  }
  .theme-clover {
    transform:translateY(calc((1 - var(--deck-progress,0))*25px)) rotate(-3deg)
  }
  .theme-cobalt {
    transform:rotate(2deg)
  }
  .theme-peach {
    transform:rotate(-2deg)
  }
  .themes-bottom {
    font-size:8px;
    line-height:1.6;
    align-items:flex-start
  }
  .themes-bottom>span {
    max-width:200px
  }
  .themes-bottom p {
    font-size:12px;
    max-width:130px;
    text-align:right
  }
  .privacy-section {
    padding-top:39px
  }
  .privacy-grid {
    grid-template-columns:1fr;
    gap:40px;
    padding:20px 0 40px
  }
  .privacy-art {
    width:min(100%,450px);
    margin:auto;
    min-height:0
  }
  .sleep-circle {
    inset:18% 9% 0
  }
  .privacy-tag {
    right:4%;
    bottom:3%
  }
  .privacy-copy h2 {
    font-size:clamp(48px,9.5vw,73px)
  }
  .privacy-copy p {
    font-size:14px
  }
  .privacy-strip {
    gap:10px;
    font-size:7px;
    letter-spacing:.2px;
    padding:20px 0
  }
  .privacy-strip>span:nth-child(even) {
    font-size:17px
  }
  .closing-section {
    padding-top:43px;
    padding-bottom:48px
  }
  .closing-spark {
    font-size:54px
  }
  .closing-section h2 {
    font-size:clamp(54px,10.6vw,90px);
    margin:20px 0 34px
  }
  .closing-bottom {
    display:block
  }
  .closing-bottom p {
    font-size:13px;
    max-width:340px
  }
  .closing-actions {
    margin-top:27px;
    gap:10px
  }
  .closing-actions .button {
    font-size:12px;
    padding-left:17px;
    gap:23px
  }
  .site-footer {
    padding-top:35px
  }
  .footer-signoff {
    flex-wrap:wrap;
    gap:25px;
    padding-bottom:30px
  }
  .footer-greeting {
    gap:20px
  }
  .footer-keys {
    width:104px;
    height:88px
  }
  .footer-key {
    width:60px;
    height:60px;
    border-radius:15px;
    font-size:32px
  }
  .footer-key-khmer {
    left:40px;
    top:20px
  }
  .footer-meta {
    flex-wrap:wrap;
    font-size:9px;
    padding-top:18px;
    gap:16px
  }
  .footer-meta>div {
    gap:14px
  }
  .eyebrow {
    font-size:9px
  }
  html[lang=km] .hero h1 {
    font-size:clamp(44px,9vw,70px)
  }
  html[lang=km] .khroma-copy h2,html[lang=km] .privacy-copy h2 {
    font-size:clamp(31px,6.5vw,50px)
  }
  html[lang=km] .section-marker {
    font-size:10px
  }
  html[lang=km] .hero-bottom {
    font-size:9px
  }
  html[lang=km] .themes-heading h2 {
    font-size:clamp(43px,9vw,68px)
  }
  html[lang=km] .closing-section h2 {
    font-size:clamp(41px,8.3vw,65px)
  }
}
@media(max-width:420px) {
  :root {
    --gutter:20px
  }
  .site-header nav {
    gap:15px
  }
  .site-header nav a:nth-child(2) {
    display:none
  }
  .hero-art {
    height:350px;
    max-width:360px
  }
  .hero-key {
    width:66px;
    height:71px;
    font-size:37px;
    border-radius:15px
  }
  .key-latin {
    font-size:40px
  }
  .sticker-hello {
    font-size:23px;
    padding:8px 15px
  }
  .art-asterisk {
    font-size:52px
  }
  .hero-copy p {
    font-size:13px
  }
  .hero-bottom {
    font-size:7px
  }
  .hero-bottom>span {
    max-width:112px
  }
  .hero-bottom a {
    gap:8px
  }
  .khroma-copy h2 {
    font-size:39px
  }
  .typing-card {
    padding:15px
  }
  .typing-card-top {
    font-size:8px
  }
  .demo-live {
    font-size:7px
  }
  .keyboard-row {
    gap:3px
  }
  .keyboard-row span {
    font-size:11px;
    padding:6px 0;
    border-radius:4px
  }
  .typing-result {
    min-height:94px;
    font-size:53px
  }
  .typing-input {
    font-size:15px
  }
  .typing-footnote {
    font-size:6.5px
  }
  .khroma-stage {
    min-height:825px;
    padding-top:94px
  }
  .privacy-strip {
    font-size:6.5px
  }
  .closing-actions .button {
    gap:16px
  }
  .closing-actions .button-arrow {
    width:29px;
    height:29px
  }
  .closing-section h2 {
    font-size:53px
  }
  .theme-card-name {
    font-size:28px
  }
}
@media(max-height:820px) and (max-width:780px) {
  .khroma-section {
    min-height:0
  }
  .khroma-stage {
    position:relative;
    height:auto;
    min-height:0;
    padding-top:75px
  }
  .khroma-grid {
    padding:45px 0
  }
  .typing-object {
    margin-top:12px
  }
}
@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior:auto
  }
  *,*::before,*::after {
    animation:none!important;
    transition:none!important
  }
  .khroma-section {
    min-height:0
  }
  .khroma-stage {
    position:relative;
    height:auto;
    min-height:0
  }
  .hero-art,.typing-object,.ribbon-track {
    transform:none
  }
  .title-dot {
    transform:none
  }
  .theme-card {
    transform:none;
    translate:none;
    will-change:auto
  }
  .motion-ready .reveal {
    opacity:1;
    transform:none
  }
  .chapter-progress {
    display:none
  }
}
/* Keep the smallest screens readable without letting the display type crop. */
.typing-footnote {
  font-size:10px;
  line-height:1.6
}
.theme-card-top {
  font-size:10px
}
.demo-live {
  font-size:10px
}
.footer-meta,.footer-meta>span:nth-child(2) {
  font-size:11px
}
.themes-bottom {
  font-size:10px
}
@media(max-width:780px) {
  .hero-topline,.hero-bottom,.section-marker {
    font-size:10px;
    line-height:1.6
  }
  .hero-bottom>span {
    max-width:145px
  }
  .hero-bottom a {
    max-width:180px
  }
  .typing-footnote {
    font-size:9px
  }
  .typing-card-top {
    font-size:10px
  }
  .demo-live {
    font-size:9px
  }
  .privacy-strip {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    font-size:10px;
    line-height:1.6;
    gap:20px
  }
  .privacy-strip>span:nth-child(even) {
    display:none
  }
  .themes-bottom {
    font-size:10px
  }
  .footer-meta {
    font-size:11px
  }
}
@media(max-width:420px) {
  .hero h1 {
    font-size:clamp(49px,16.9vw,66px)
  }
  .site-header nav {
    display:none
  }
  .hero-bottom {
    font-size:9px
  }
  .hero-bottom>span {
    max-width:115px
  }
  .hero-bottom a {
    max-width:150px
  }
  .typing-footnote {
    font-size:9px;
    gap:15px
  }
  .typing-footnote>span:first-child {
    max-width:220px
  }
  .privacy-strip {
    gap:12px;
    font-size:9px
  }
  .demo-live {
    font-size:8px
  }
}
@media(max-height:900px) and (max-width:780px) {
  .khroma-section {
    min-height:0
  }
  .khroma-stage {
    position:relative;
    height:auto;
    min-height:0;
    padding-top:85px
  }
  .khroma-grid {
    padding:38px 0
  }
}

/* Scroll scenes remain reversible; local pointer motion adds a second, smaller layer. */
.motion-ready .hero-copy {
  transform: translateY(calc(var(--hero-progress, 0) * -45px));
}
.motion-ready .hero-art {
  transform: translateY(calc(var(--hero-progress, 0) * 82px));
}
.motion-ready .hero-cat {
  transform: translate(calc(var(--pointer-x, 0) * 17px), calc(-46% + var(--pointer-y, 0) * 12px)) rotate(calc(-7deg + var(--hero-progress, 0) * 11deg + var(--pointer-x, 0) * 3deg));
  animation: mascot-breathe 4.8s ease-in-out infinite;
  animation-play-state: paused;
}
.motion-ready .key-khmer {
  transform: translate(calc(var(--hero-progress, 0) * -42px - var(--pointer-x, 0) * 23px), calc(var(--hero-progress, 0) * -95px - var(--pointer-y, 0) * 15px)) rotate(calc(-16deg - var(--hero-progress, 0) * 27deg));
}
.motion-ready .key-latin {
  transform: translate(calc(var(--hero-progress, 0) * 35px + var(--pointer-x, 0) * 22px), calc(var(--hero-progress, 0) * -48px + var(--pointer-y, 0) * 12px)) rotate(calc(14deg + var(--hero-progress, 0) * 45deg));
}
.motion-ready .sticker-hello {
  transform: translate(calc(var(--pointer-x, 0) * -12px), calc(var(--hero-progress, 0) * -80px + var(--pointer-y, 0) * -9px)) rotate(calc(9deg - var(--hero-progress, 0) * 12deg));
}
.motion-ready .art-asterisk {
  transform: rotate(calc(12deg + var(--hero-progress, 0) * 145deg));
}
.motion-ready .orbit {
  scale: calc(1 + var(--hero-progress, 0) * .12);
}
.motion-ready .orbit-inner {
  animation: orbit-breathe 5s ease-in-out infinite;
  animation-play-state: paused;
}
.motion-ready .hero.motion-in-view .hero-cat,
.motion-ready .hero.motion-in-view .orbit-inner {
  animation-play-state: running;
}
@keyframes mascot-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
@keyframes orbit-breathe {
  0%, 100% { scale: 1; opacity: .6; }
  50% { scale: 1.08; opacity: 1; }
}

.khroma-section {
  background: var(--chapter-color, var(--cream));
  transition: background-color .5s;
}
.typing-phase {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 355px;
  min-height: 47px;
  margin-top: 19px;
  font-size: 11px;
  font-weight: 550;
}
#typing-phase-number {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid #24202745;
  border-radius: 50%;
  font-size: 10px;
}
#typing-phase-label {
  flex: 1;
}
.phase-line {
  flex: 0 0 34px;
  height: 2px;
  background: #24202720;
}
.phase-line > span {
  display: block;
  height: 100%;
  background: var(--purple);
  transform: scaleX(var(--phase-progress, 1));
  transform-origin: left;
}
.typing-phase + .word-choices {
  margin-top: 15px;
}
.typing-object {
  isolation: isolate;
}
.motion-ready .typing-object {
  transform: translateY(calc(var(--scene-sway, 0) * -18px)) rotate(calc(var(--scene-sway, 0) * -4deg)) scale(var(--scene-zoom, 1));
}
.typing-card {
  position: relative;
  background: var(--card-color, var(--lavender));
  transition: background-color .55s;
}
.motion-ready .typing-card {
  transform: perspective(1000px) rotateX(calc(var(--pointer-y, 0) * -4deg)) rotateY(calc(var(--pointer-x, 0) * 5deg));
}
.typing-halo {
  position: absolute;
  inset: -30px -35px 20px;
  border: 1px solid #5b34d62d;
  border-radius: 45%;
  z-index: -1;
  transform: rotate(calc(-9deg + var(--typing-progress, 0) * 70deg));
}
.typing-halo::after {
  content: '';
  position: absolute;
  inset: -18px;
  border: 1px dashed #5b34d626;
  border-radius: 44%;
  transform: rotate(19deg);
}
.floating-glyph {
  position: absolute;
  display: grid;
  place-items: center;
  width: 55px;
  height: 59px;
  border: 1px solid var(--ink);
  border-bottom-width: 5px;
  border-radius: 13px;
  background: var(--cream);
  box-shadow: 3px 4px 0 #24202720;
  font-size: 33px;
  line-height: 1.5;
  z-index: 3;
  pointer-events: none;
}
.glyph-latin {
  left: -28px;
  top: 29%;
  transform: translate(calc(var(--word-turn, 0) * -11px), calc(var(--word-phase, 1) * -40px)) rotate(calc(-15deg + var(--word-turn, 0) * 12deg));
}
.glyph-khmer {
  right: -22px;
  bottom: 30%;
  background: var(--lime);
  transform: translate(calc(var(--word-turn, 0) * 10px), calc((1 - var(--word-reveal, 1)) * 40px)) rotate(calc(12deg - var(--word-turn, 0) * 10deg));
}
.motion-ready .khroma-section.motion-in-view .floating-glyph {
  animation: glyph-breathe 4s ease-in-out infinite;
}
.motion-ready .khroma-section.motion-in-view .glyph-khmer {
  animation-delay: -2s;
}
@keyframes glyph-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}
.demo-stamp {
  top: -31px;
  transform: translateY(calc(var(--word-turn, 0) * -7px)) rotate(calc(5deg - var(--word-turn, 0) * 9deg));
}
.typing-result-wrap {
  position: relative;
}
.typing-result {
  opacity: var(--word-reveal, 1);
  transform: translateY(calc((1 - var(--word-reveal, 1)) * 30px)) scale(calc(.82 + var(--word-reveal, 1) * .18));
}
.result-hint {
  position: absolute;
  inset: 0;
  padding: 0 30px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #443260;
  font-size: 13px;
  opacity: max(0, calc(1 - var(--word-reveal, 1) * 5));
  transform: translateY(calc(var(--word-reveal, 1) * -15px));
}
.result-check {
  position: absolute;
  right: 6px;
  top: 23px;
  display: grid;
  place-items: center;
  background: var(--lime);
  border: 1px solid var(--ink);
  width: 29px;
  height: 29px;
  border-radius: 50%;
  font-size: 18px;
  opacity: var(--word-ready, 1);
  transform: scale(calc(.5 + var(--word-ready, 1) * .5)) rotate(calc((1 - var(--word-ready, 1)) * -45deg));
}
#typing-latin::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -.13em;
  background: var(--purple);
  opacity: calc(1 - var(--word-ready, 1));
}
.keyboard-row span {
  transition: background-color .1s, transform .1s, box-shadow .1s;
}
.keyboard-row .lit {
  background: color-mix(in srgb, var(--lime) 45%, var(--cream));
  transform: none;
}
.keyboard-row .key-down {
  background: var(--purple);
  color: var(--cream);
  transform: translateY(3px) scale(.95);
  box-shadow: 0 0 0 2px #f8f5ed60;
}
.motion-ready .typing-input {
  transform: translateY(calc((1 - var(--word-reveal, 1)) * -3px));
}

.motion-ready .reveal,
.motion-ready .reveal.is-visible {
  opacity: calc(.16 + var(--reveal-progress, 0) * .84);
  transform: translateY(calc((1 - var(--reveal-progress, 0)) * 65px));
  transition: none;
}
.motion-ready .themes-heading h2 {
  transform: translateX(calc((1 - var(--theme-progress, .4) * 2) * -20px));
}
.theme-card {
  transform-style: preserve-3d;
}
.motion-ready .theme-clover {
  transform: perspective(1100px) translate(calc((1 - var(--deck-progress, 0)) * 65px), calc((1 - var(--deck-progress, 0)) * 110px)) rotate(calc(-12deg + var(--deck-progress, 0) * 7deg - var(--deck-travel, 0) * 2deg)) rotateX(calc(var(--pointer-y, 0) * -7deg)) rotateY(calc(var(--pointer-x, 0) * 9deg));
}
.motion-ready .theme-cobalt {
  transform: perspective(1100px) translateY(calc((1 - var(--deck-progress, 0)) * 30px + var(--deck-travel, 0) * -24px)) rotate(calc(-2deg + var(--deck-travel, 0) * 6deg)) rotateX(calc(var(--pointer-y, 0) * -7deg)) rotateY(calc(var(--pointer-x, 0) * 9deg));
}
.motion-ready .theme-peach {
  transform: perspective(1100px) translate(calc((1 - var(--deck-progress, 0)) * -65px), calc((1 - var(--deck-progress, 0)) * 130px)) rotate(calc(12deg - var(--deck-progress, 0) * 7deg + var(--deck-travel, 0) * 2deg)) rotateX(calc(var(--pointer-y, 0) * -7deg)) rotateY(calc(var(--pointer-x, 0) * 9deg));
}
.theme-card img {
  transition: scale .35s;
}
.theme-card:hover img,
.theme-card:focus-visible img {
  scale: 1.025;
}
.theme-card-name > span {
  transition: rotate .5s;
}
.theme-card[aria-pressed=true] .theme-card-name > span {
  rotate: 90deg;
}
.themes-section {
  transition: background-color .6s;
}
.themes-section[data-chosen-theme=clover] {
  background-color: #483593;
}
.themes-section[data-chosen-theme=peach] {
  background-color: #6d36bd;
}
.motion-ready .privacy-art img {
  transform: translateY(calc((.5 - var(--privacy-progress, .5)) * 64px)) rotate(calc(-14deg + var(--privacy-progress, .5) * 18deg));
  animation: sleeping-breathe 4.8s ease-in-out infinite;
  animation-play-state: paused;
}
.motion-ready .sleep-circle {
  transform: scale(calc(.82 + var(--privacy-progress, .5) * .3)) rotate(calc(var(--privacy-progress, 0) * 55deg));
  border-radius: 46% 54% 49% 51%;
}
.motion-ready .sleep-z {
  animation: sleeping-z 3.6s ease-in-out infinite;
  animation-play-state: paused;
}
.motion-ready .z-two {
  animation-delay: -1.8s;
}
.motion-ready .privacy-tag {
  transform: translateY(calc((.5 - var(--privacy-progress, .5)) * -60px)) rotate(calc(-15deg + var(--privacy-progress, .5) * 19deg));
}
.motion-ready .privacy-section.motion-in-view .privacy-art img,
.motion-ready .privacy-section.motion-in-view .sleep-z {
  animation-play-state: running;
}
@keyframes sleeping-breathe {
  0%, 100% { scale: 1; translate: 0 0; }
  50% { scale: 1.015; translate: 0 -4px; }
}
@keyframes sleeping-z {
  0% { translate: 0 8px; opacity: .2; scale: .85; }
  45% { opacity: 1; }
  100% { translate: 12px -23px; opacity: .1; scale: 1.07; }
}
.motion-ready .closing-spark {
  transform: rotate(calc(var(--closing-progress, 0) * 180deg));
}
.motion-ready .closing-section h2 .serif-word {
  display: inline-block;
  transform: translateX(calc((.45 - var(--closing-progress, .45)) * 90px));
}
.motion-ready .footer-key-latin {
  transform: translateY(calc((.5 - var(--footer-progress, .5)) * 20px)) rotate(calc(-18deg + var(--footer-progress, .5) * 12deg));
}
.motion-ready .footer-key-khmer {
  transform: translateY(calc((.5 - var(--footer-progress, .5)) * -20px)) rotate(calc(18deg - var(--footer-progress, .5) * 12deg));
}
.page-hidden *,
.page-hidden *::before,
.page-hidden *::after {
  animation-play-state: paused !important;
}

@media(min-width:781px) and (min-height:500px) {
  .motion-ready .khroma-section {
    min-height: 900svh;
  }
  .motion-ready .khroma-stage {
    position: sticky;
    top: 0;
    min-height: 0;
    height: 100svh;
    max-height: none;
  }
  .motion-ready .khroma-grid {
    padding-top: 32px;
    padding-bottom: 32px;
  }
}
/* Laptop windows keep the scroll scene; its contents adapt to the available height. */
@media(min-width:781px) and (min-height:500px) and (max-height:799px) {
  .motion-ready .khroma-stage {
    padding-top: 100px;
    padding-bottom: 20px;
  }
  .motion-ready .khroma-grid {
    min-height: 0;
    padding: 22px 0 12px;
    gap: 6%;
  }
  .khroma-copy h2 {
    font-size: clamp(34px, min(5.5vw, 8.5svh), 68px);
  }
  .khroma-copy p {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.65;
  }
  .typing-phase {
    min-height: 34px;
    margin-top: 12px;
    font-size: 10px;
  }
  .typing-phase + .word-choices {
    margin-top: 9px;
  }
  .khroma-copy .demo-caption {
    margin-top: 9px;
    font-size: 9px;
  }
  .typing-card {
    padding: clamp(14px, 2.6svh, 20px);
  }
  .typing-card-top {
    padding-bottom: 12px;
  }
  .typing-result {
    min-height: 0;
    font-size: clamp(38px, 8.5svh, 64px);
    padding: 0;
  }
  .typing-input {
    padding: 8px 15px;
    font-size: 17px;
    margin-bottom: 12px;
  }
  .keyboard-row span {
    padding: clamp(3px, .8svh, 6px) 0;
    font-size: 11px;
  }
  .mini-keyboard {
    gap: 4px;
  }
  .typing-footnote {
    margin-top: 14px;
    font-size: 9px;
  }
  .demo-stamp {
    top: -23px;
    padding: 6px 12px;
    font-size: 9px;
  }
}
@media(min-width:781px) and (max-height:599px) {
  .demo-stamp {
    display: none;
  }
}
@media(min-width:781px) and (max-height:499px) {
  .khroma-section {
    min-height: 0;
  }
  .khroma-stage {
    position: relative;
    height: auto;
    min-height: 0;
  }
}
/* A narrow desktop preview still pins after its introductory copy has scrolled past. */
@media(max-width:780px) and (min-height:600px) and (hover:hover) and (pointer:fine) {
  .motion-ready .khroma-section {
    min-height: 920svh;
  }
  .motion-ready .khroma-stage {
    position: sticky;
    top: var(--pin-top, 0px);
    height: auto;
    min-height: 0;
    max-height: none;
  }
}
@media(max-width:780px) {
  .typing-phase {
    margin-top: 13px;
    min-height: 37px;
    font-size: 10px;
    max-width: 340px;
  }
  .typing-phase + .word-choices {
    margin-top: 9px;
  }
  .typing-halo {
    inset: -12px -8px 20px;
  }
  .typing-halo::after {
    inset: -8px;
  }
  .floating-glyph {
    width: 40px;
    height: 45px;
    font-size: 25px;
    border-radius: 10px;
    border-bottom-width: 4px;
  }
  .glyph-latin {
    left: -10px;
    top: 31%;
  }
  .glyph-khmer {
    right: -9px;
    bottom: 26%;
  }
  .motion-ready .typing-object {
    transform: translateY(calc(var(--scene-sway, 0) * -8px)) rotate(calc(var(--scene-sway, 0) * -1.5deg));
  }
  .result-hint {
    font-size: 11px;
  }
  .result-check {
    width: 25px;
    height: 25px;
    font-size: 15px;
    top: 10px;
  }
  .motion-ready .theme-clover {
    transform: translateY(calc((1 - var(--deck-progress, 0)) * 35px)) rotate(calc(-5deg + var(--deck-travel, 0) * 6deg));
  }
  .motion-ready .theme-cobalt {
    transform: translateY(calc((.4 - var(--deck-travel, 0)) * 18px)) rotate(calc(4deg - var(--deck-travel, 0) * 5deg));
  }
  .motion-ready .theme-peach {
    transform: rotate(calc(-4deg + var(--deck-travel, 0) * 6deg));
  }
  .motion-ready .hero-cat {
    transform: translateY(calc(-45% + var(--hero-progress, 0) * -12px)) rotate(calc(-7deg + var(--hero-progress, 0) * 10deg));
  }
  .motion-ready .hero-copy {
    transform: none;
  }
  .motion-ready .key-khmer {
    transform: translateY(calc(var(--hero-progress, 0) * -32px)) rotate(calc(-16deg - var(--hero-progress, 0) * 20deg));
  }
  .motion-ready .key-latin {
    transform: translateY(calc(var(--hero-progress, 0) * -24px)) rotate(calc(14deg + var(--hero-progress, 0) * 27deg));
  }
  .motion-ready .themes-heading h2 {
    transform: none;
  }
  .motion-ready .closing-section h2 .serif-word {
    transform: translateX(calc((.45 - var(--closing-progress, .45)) * 25px));
  }
}
.hero-downloads {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px 24px;
  margin-top:16px
}
.hero-downloads .store-links {
  flex-wrap:nowrap
}
.hero-downloads .store-link {
  flex:1 1 0;
  min-width:0;
  justify-content:center;
  gap:8px;
  padding:9px 12px;
  font-size:12px
}
.store-icon {
  width:22px;
  height:22px;
  flex-shrink:0
}
.store-dialog-open {
  overflow:hidden
}
.store-dialog [hidden] {
  display:none !important
}
.store-dialog {
  width:min(500px,calc(100% - 32px));
  max-height:calc(100svh - 32px);
  margin:auto;
  padding:clamp(24px,5vw,40px);
  border:1px solid var(--ink);
  border-radius:28px;
  background:var(--cream);
  color:var(--ink);
  box-shadow:8px 8px 0 var(--purple);
  overflow:auto
}
.store-dialog[open] {
  animation:store-dialog-in .22s ease-out
}
.store-dialog::backdrop {
  background:#24202799;
  backdrop-filter:blur(6px)
}
.store-dialog-close {
  position:absolute;
  top:12px;
  right:12px;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:transparent;
  color:var(--ink);
  font-size:30px;
  line-height:1
}
.store-dialog-close:hover {
  background:var(--lavender)
}
.store-dialog-spark {
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  margin-bottom:24px;
  border:1px solid var(--ink);
  border-radius:18px;
  background:var(--lime);
  color:var(--purple);
  font-size:50px;
  line-height:1;
  transform:rotate(-8deg)
}
.store-dialog h2 {
  margin:14px 0 20px;
  font-size:clamp(26px,5vw,36px);
  line-height:1.3;
  letter-spacing:-.035em
}
html[lang="km"] .store-dialog h2 {
  line-height:1.65;
  letter-spacing:0
}
.store-dialog p:not(.eyebrow) {
  font-size:14px;
  line-height:1.85
}
.store-dialog .store-dialog-detail {
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #24202726
}
.store-dialog-action {
  width:100%;
  margin-top:24px;
  gap:14px
}
.store-dialog-action .button-arrow {
  flex-shrink:0
}
.store-dialog-email {
  display:block;
  margin-top:12px;
  font-size:12px;
  text-align:center;
  overflow-wrap:anywhere
}
.tester-form {
  margin-top:24px
}
.tester-form label {
  display:block;
  margin-bottom:8px;
  font-size:14px;
  font-weight:650
}
.tester-form input {
  width:100%;
  min-height:50px;
  padding:12px 14px;
  border:1px solid #24202766;
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:16px
}
.tester-form input:focus-visible {
  outline:3px solid var(--purple);
  outline-offset:3px
}
.tester-form input[aria-invalid="true"] {
  border-color:#a22b22
}
.store-dialog .tester-privacy,
.store-dialog .tester-status {
  margin-top:10px;
  font-size:12px;
  line-height:1.7
}
.tester-privacy a,
.tester-retry {
  color:var(--purple);
  text-decoration:underline;
  text-underline-offset:3px
}
.tester-turnstile:not(:empty) {
  margin-top:16px
}
.tester-form .store-dialog-action {
  margin-top:18px
}
.tester-form button:disabled {
  opacity:.5;
  cursor:default;
  transform:none
}
.tester-status:empty {
  display:none
}
.tester-status[data-state="error"] {
  color:#a22b22
}
.tester-status[data-state="success"] {
  color:#236039
}
.tester-retry {
  border:0;
  padding:10px 0;
  background:transparent;
  font-size:13px
}
@keyframes store-dialog-in {
  from { opacity:0; transform:translateY(12px) scale(.97) }
  to { opacity:1; transform:translateY(0) scale(1) }
}
@media(max-width:780px) {
  .hero-downloads {
    max-width:360px;
    gap:10px
  }
  .footer-top {
    width:100%;
    max-width:360px
  }
}
@media(prefers-reduced-motion:reduce) {
  .store-dialog[open] { animation:none; }
  .typing-object, .typing-card, .typing-result, .typing-input, .floating-glyph,
  .typing-halo, .demo-stamp, .theme-card, .privacy-art img, .sleep-circle,
  .sleep-z, .privacy-tag, .closing-spark, .footer-key, .footer-top, .footer-top-key {
    transform: none !important;
  }
  .typing-result { opacity: 1; }
  .result-hint, #typing-latin::after { display: none; }
  .result-check { opacity: 1; transform: none; }
  .floating-glyph, .typing-halo { display: none; }
  .phase-line > span { transform: none; }
  .theme-card:hover img, .theme-card:focus-visible img { scale: 1; }
}
