:root {
  color-scheme: light;
  --paper: #f7edda;
  --paper-light: #fffaf0;
  --paper-deep: #ead5ad;
  --ink: #241c17;
  --muted: #695b51;
  --rust: #b94a22;
  --rust-dark: #843117;
  --forest: #173f35;
  --mint: #a9ddc4;
  --sun: #f2bd4b;
  --line: rgba(36, 28, 23, .2);
  --line-strong: #38291f;
  --white: #fffdf8;
  --shadow: 6px 7px 0 var(--line-strong);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI Variable", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 11% 5%, rgba(242, 189, 75, .2), transparent 23rem),
    linear-gradient(90deg, rgba(36, 28, 23, .035) 1px, transparent 1px),
    linear-gradient(rgba(36, 28, 23, .035) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 44px 44px, 44px 44px, auto;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .13;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #0a8f70; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 10vw, 9rem); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-170%);
  padding: .7rem 1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 900; text-decoration: none; letter-spacing: -.02em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50% 50% 45% 55%;
  background: var(--rust);
  color: var(--white);
  box-shadow: 2px 3px 0 var(--line-strong);
  font-family: var(--display);
  font-size: 18px;
}
.topbar-links { display: flex; align-items: center; gap: .25rem; }
.topbar-links a {
  padding: .55rem .75rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.topbar-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .55); }

.hero {
  min-height: calc(100dvh - 78px);
  display: grid;
  grid-template-columns: minmax(330px, .72fr) minmax(500px, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6.5rem);
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--rust-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.status-dot, .green-dot {
  width: .55rem;
  height: .55rem;
  display: inline-block;
  margin-right: .35rem;
  border-radius: 50%;
  background: #2f9c6f;
  box-shadow: 0 0 0 4px rgba(47, 156, 111, .15);
}
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.055em; }
h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(4.7rem, 9.6vw, 9.2rem);
  line-height: .75;
}
h1 em, h2 em { color: var(--rust); font-weight: 500; }
.hebrew { margin: 0 0 1rem; color: var(--forest); font-family: var(--display); font-size: 1.45rem; font-weight: 800; }
.hebrew span { color: var(--muted); font-family: var(--sans); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-lede { max-width: 38rem; margin-bottom: 1.8rem; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: 2.2rem; }
.button {
  min-height: 3.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  padding: 0 1.1rem;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  font-size: .84rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s ease;
}
.button:hover { transform: translate(-2px, -2px); box-shadow: 4px 5px 0 var(--line-strong); }
.button:active { transform: translate(0); box-shadow: none; }
.button-primary { background: var(--forest); color: var(--white); }
.button-primary:hover { background: #22594a; }
.button-secondary { background: rgba(255, 253, 248, .65); }
.button-arrow { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; background: var(--mint); color: var(--ink); }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid var(--line); }
.hero-facts div { padding: .9rem .8rem .2rem 0; }
.hero-facts dt { color: var(--muted); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-facts dd { margin: .2rem 0 0; font-family: var(--display); font-size: 1.02rem; font-weight: 800; }

.hero-playground {
  min-width: 0;
  border: 2px solid var(--line-strong);
  border-radius: 30px 30px 18px 18px;
  background: rgba(255, 250, 240, .72);
  box-shadow: 12px 14px 0 var(--paper-deep), 12px 14px 0 2px var(--line-strong), 0 35px 80px rgba(64, 43, 26, .12);
  overflow: hidden;
}
.playground-head {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1rem .8rem 1.25rem;
  border-bottom: 2px solid var(--line-strong);
  background: var(--paper-light);
}
.playground-head > div { display: grid; }
.playground-kicker { color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.playground-head strong { font-family: var(--display); font-size: 1.2rem; line-height: 1.1; }
.tour-toggle {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: 0 .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-size: .7rem;
  font-weight: 850;
}
.tour-icon { color: var(--rust); font-size: .65rem; }
.pet-stage {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 28%, rgba(255, 255, 255, .9), transparent 19rem),
    linear-gradient(180deg, #b9ddc4 0 72%, #dfc17e 72% 73%, #ead6a9 73%);
  isolation: isolate;
}
.pet-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .24;
  background-image: radial-gradient(var(--forest) .75px, transparent .75px);
  background-size: 12px 12px;
}
.pet-stage::after {
  content: "";
  position: absolute;
  inset: auto -5% 20% -5%;
  height: 42px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 250, 235, .34);
  filter: blur(7px);
}
.trail-map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .28; }
.trail-map path { fill: none; stroke: var(--forest); stroke-width: 2; stroke-dasharray: 7 10; }
.trail-map circle { fill: var(--rust); }
.trail-label { position: absolute; color: rgba(23, 63, 53, .62); font-size: .57rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.trail-label-a { left: 5%; bottom: 11%; }
.trail-label-b { left: 45%; top: 27%; }
.trail-label-c { right: 7%; top: 51%; }
.hero-pet {
  --pet-x: 8%;
  --pet-y: 47%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 192px;
  height: 208px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translate3d(var(--pet-x), var(--pet-y), 0);
  transition: transform var(--travel, 900ms) cubic-bezier(.4, 0, .2, 1);
  filter: drop-shadow(0 15px 10px rgba(48, 31, 20, .2));
}
.hero-pet:hover .sprite { filter: brightness(1.04); }
.sprite { display: block; background-image: url("assets/spritesheet.webp"); background-repeat: no-repeat; }
.sprite-large { width: 192px; height: 208px; }
.pet-shadow { position: absolute; left: 31px; bottom: 7px; z-index: -1; width: 130px; height: 22px; border-radius: 50%; background: rgba(44, 31, 22, .17); filter: blur(6px); }
.speech-bubble {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 5;
  max-width: 16rem;
  padding: .7rem .9rem;
  border: 2px solid var(--line-strong);
  border-radius: 14px 14px 14px 4px;
  background: var(--paper-light);
  box-shadow: 3px 4px 0 var(--line-strong);
  font-family: var(--display);
  font-size: .96rem;
  font-weight: 800;
  transition: opacity .2s ease, transform .25s var(--ease);
}
.speech-bubble.is-changing { opacity: 0; transform: translateY(4px); }
.stage-note { position: absolute; right: 1.1rem; bottom: 1rem; color: rgba(36, 28, 23, .55); font-size: .62rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.pet-actions {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 2px solid var(--line-strong);
  background: var(--paper-light);
}
.pet-actions button {
  min-height: 60px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: .15rem;
  padding: .55rem .2rem;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: .62rem;
  font-weight: 850;
  line-height: 1.1;
}
.pet-actions button:last-child { border-right: 0; }
.pet-actions button span { color: var(--rust); font-size: 1rem; }
.pet-actions button:hover, .pet-actions button.is-active { background: var(--mint); color: var(--ink); }

.ticker { overflow: hidden; border-block: 2px solid var(--line-strong); background: var(--forest); color: var(--paper-light); }
.ticker-track { width: max-content; display: flex; align-items: center; gap: 1.4rem; padding: .9rem 0; animation: ticker 32s linear infinite; }
.ticker-track span { font-family: var(--display); font-size: 1.05rem; font-style: italic; }
.ticker-track b { color: var(--sun); font-size: .7rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

.story-section { display: grid; grid-template-columns: 1.02fr .8fr; gap: clamp(3rem, 9vw, 9rem); align-items: start; }
.section-copy h2, .caro-copy h2, .mobile-copy h2, .install-copy h2, .atlas-copy h2, .community-card h2 {
  margin-bottom: 1.3rem;
  font-size: clamp(3rem, 6vw, 6.3rem);
  line-height: .9;
}
.story-body { padding-top: 3rem; }
.story-body > p { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.story-body .story-lede { color: var(--ink); font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.45; }
.identity-stamp { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2rem; border: 2px solid var(--line-strong); border-radius: 16px; background: rgba(255, 253, 248, .45); box-shadow: 5px 6px 0 var(--paper-deep); }
.identity-stamp span { padding: .85rem; border-right: 1px solid var(--line); color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.identity-stamp span:last-child { border-right: 0; }
.identity-stamp strong { display: block; margin-top: .25rem; color: var(--ink); font-family: var(--display); font-size: .96rem; letter-spacing: 0; text-transform: none; }

.caro-lab { border-block: 2px solid var(--line-strong); background: var(--rust); color: var(--white); }
.caro-grid { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.caro-copy .eyebrow { color: #ffd5ba; }
.caro-copy h2 em { color: #ffe0a3; }
.caro-copy > p:not(.eyebrow) { max-width: 34rem; color: rgba(255, 255, 255, .82); line-height: 1.75; }
.text-link { display: inline-flex; gap: .45rem; align-items: center; margin-top: 1rem; border-bottom: 1px solid currentColor; font-size: .82rem; font-weight: 850; text-decoration: none; }
.behavior-list { margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.35); list-style: none; }
.behavior-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(255,255,255,.35); }
.behavior-list > li > span { color: #ffd5ba; font-family: var(--mono); font-size: .7rem; }
.behavior-list strong { font-family: var(--display); font-size: 1.55rem; }
.behavior-list p { margin: .25rem 0 0; color: rgba(255,255,255,.78); font-size: .9rem; }

.mobile-section { display: grid; grid-template-columns: .8fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.mobile-copy > p:not(.eyebrow):not(.honesty-note) { max-width: 39rem; color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.steps { display: grid; gap: .65rem; margin: 1.6rem 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; align-items: start; gap: .65rem; color: var(--muted); font-size: .86rem; }
.steps li span { width: 1.65rem; height: 1.65rem; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--sun); color: var(--ink); font-size: .7rem; font-weight: 900; }
.steps li p { min-width: 0; margin: 0; overflow-wrap: anywhere; }
.steps code { font-family: var(--mono); font-size: .8em; }
.inline-links { display: flex; flex-wrap: wrap; gap: .45rem; }
.inline-links a { padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.5); font-size: .72rem; font-weight: 800; text-decoration: none; }
.inline-links a:hover { border-color: var(--line-strong); background: var(--white); }
.honesty-note { margin-top: 1.4rem; padding-left: 1rem; border-left: 3px solid var(--rust); color: var(--muted); font-size: .72rem; line-height: 1.55; }
.device-scene { position: relative; min-height: 570px; }
.desktop-card {
  position: absolute;
  left: 0;
  top: 1.5rem;
  width: 72%;
  border: 2px solid var(--line-strong);
  border-radius: 18px;
  background: #252321;
  color: var(--white);
  box-shadow: 10px 12px 0 var(--paper-deep), 10px 12px 0 2px var(--line-strong);
  overflow: hidden;
}
.window-bar { height: 42px; display: flex; align-items: center; gap: .35rem; padding: 0 .85rem; border-bottom: 1px solid rgba(255,255,255,.15); background: #34312f; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e56852; }
.window-bar i:nth-child(2) { background: #eebf4e; }
.window-bar i:nth-child(3) { background: #5dbd78; }
.window-bar span { margin-left: auto; color: rgba(255,255,255,.55); font-size: .65rem; }
.desktop-screen { position: relative; height: 325px; padding: 2rem; overflow: hidden; background: radial-gradient(circle at 70% 90%, rgba(169,221,196,.18), transparent 13rem), #242220; }
.code-line { width: 52%; height: 9px; display: block; margin-bottom: .75rem; border-radius: 999px; background: rgba(255,255,255,.12); }
.code-line.wide { width: 70%; background: rgba(169,221,196,.35); }
.code-line.short { width: 34%; }
.desktop-pet { position: absolute; right: 9%; bottom: 1.3rem; width: 96px; height: 104px; }
.sprite-small, .sprite-bubble, .sprite-footer { width: 96px; height: 104px; background-size: 768px 1144px; }
.selection-pill { display: flex; align-items: center; padding: .8rem 1rem; color: rgba(255,255,255,.78); font-family: var(--mono); font-size: .65rem; }
.sync-arrow { position: absolute; left: 48%; top: 71%; z-index: 4; display: flex; align-items: center; gap: .5rem; transform: rotate(-7deg); color: var(--rust); font-family: var(--display); font-size: 2rem; font-weight: 900; }
.sync-arrow span { font-family: var(--sans); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; }
.phone-card {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 205px;
  min-height: 385px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 1rem;
  border: 3px solid var(--line-strong);
  border-radius: 34px;
  background: #101112;
  color: var(--white);
  box-shadow: 8px 10px 0 var(--mint), 8px 10px 0 2px var(--line-strong);
}
.phone-speaker { width: 52px; height: 6px; border-radius: 999px; background: #35383b; }
.phone-label { margin: 1.1rem 0 1rem; color: rgba(255,255,255,.65); font-size: .65rem; font-weight: 800; }
.pet-bubble { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 50%; background: #f7f7f5; box-shadow: inset 0 0 0 1px #c9c9c4, 0 12px 30px rgba(0,0,0,.35); overflow: hidden; }
.sprite-bubble { transform: scale(.82); }
.phone-card button { margin-top: 1.1rem; padding: .65rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: #24272a; color: var(--white); cursor: pointer; font-size: .7rem; font-weight: 800; }
.phone-card button:hover { background: var(--forest); }
.phone-caption { margin-top: .75rem; color: rgba(255,255,255,.52); font-size: .58rem; text-align: center; }

.animation-section { border-block: 2px solid var(--line-strong); background: var(--paper-light); }
.animation-head { display: grid; grid-template-columns: 1fr .48fr; gap: 4rem; align-items: end; margin-bottom: 3rem; }
.animation-intro { padding-bottom: .6rem; }
.animation-intro p { color: var(--muted); font-size: .92rem; line-height: 1.7; }
.play-all { display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .85rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--mint); cursor: pointer; font-size: .72rem; font-weight: 850; box-shadow: 2px 3px 0 var(--line-strong); }
.preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.preview-card { margin: 0; border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--white); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.preview-card:hover, .preview-card:focus-within, .preview-card.is-playing { transform: translateY(-5px) rotate(-.35deg); box-shadow: 5px 7px 0 var(--paper-deep); }
.preview-viewport { position: relative; width: 100%; aspect-ratio: 1.02; display: grid; place-items: center; overflow: hidden; background-color: #f3f1ea; background-image: linear-gradient(45deg, #e7e4da 25%, transparent 25%), linear-gradient(-45deg, #e7e4da 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e7e4da 75%), linear-gradient(-45deg, transparent 75%, #e7e4da 75%); background-position: 0 0, 0 8px, 8px -8px, -8px 0; background-size: 16px 16px; cursor: pointer; }
.preview-sprite { width: 192px; height: 208px; transform: scale(.92); }
.preview-play { position: absolute; right: .65rem; bottom: .65rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--mint); box-shadow: 2px 2px 0 var(--line-strong); font-size: .62rem; transition: opacity .2s var(--ease), transform .2s var(--ease); }
.preview-card.is-playing .preview-play { opacity: 0; transform: scale(.7); }
.preview-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .75rem .8rem; border-top: 1px solid var(--line); }
.preview-card figcaption span { font-family: var(--display); font-size: 1rem; font-weight: 800; }
.preview-card figcaption b { margin-right: .35rem; color: var(--rust); font-family: var(--mono); font-size: .55rem; }
.preview-card figcaption small { color: var(--muted); font-size: .58rem; font-weight: 750; }
.preview-card-wide { grid-column: span 2; }
.preview-card-wide .preview-viewport { aspect-ratio: 2.08; }

.install-section { display: grid; grid-template-columns: .72fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.install-copy > p:not(.eyebrow) { max-width: 33rem; color: var(--muted); line-height: 1.75; }
.command-card { border: 2px solid var(--line-strong); border-radius: 20px; background: #24211f; box-shadow: 9px 11px 0 var(--sun), 9px 11px 0 2px var(--line-strong); overflow: hidden; }
.command-tabs { display: flex; padding: .6rem .6rem 0; background: #312d2a; }
.command-tabs button { padding: .65rem .8rem; border: 0; border-radius: 9px 9px 0 0; background: transparent; color: rgba(255,255,255,.55); cursor: pointer; font-size: .65rem; font-weight: 800; }
.command-tabs button[aria-selected="true"] { background: #24211f; color: var(--white); }
.terminal-bar { height: 46px; display: flex; align-items: center; gap: .35rem; padding: 0 1rem; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--white); }
.terminal-bar > span { width: 9px; height: 9px; border-radius: 50%; background: #e56852; }
.terminal-bar > span:nth-child(2) { background: #eebf4e; }
.terminal-bar > span:nth-child(3) { background: #5dbd78; }
.terminal-bar b { margin-left: .4rem; color: rgba(255,255,255,.45); font-family: var(--mono); font-size: .58rem; font-weight: 500; }
.terminal-bar button { margin-left: auto; padding: .35rem .65rem; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); cursor: pointer; font-size: .6rem; font-weight: 800; }
.command-panel pre { min-height: 190px; margin: 0; padding: 1.5rem; overflow: auto; color: #f3dcae; font: .76rem/1.85 var(--mono); white-space: pre-wrap; }
.command-foot { margin: 0; padding: .75rem 1rem; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.58); font-size: .63rem; }

.atlas-section { border-block: 2px solid var(--line-strong); background: var(--forest); color: var(--white); }
.atlas-grid { display: grid; grid-template-columns: .7fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.atlas-copy .eyebrow { color: #a9ddc4; }
.atlas-copy h2 em { color: #f4ca6a; }
.atlas-copy > p:not(.eyebrow) { color: rgba(255,255,255,.72); line-height: 1.75; }
.spec-list { margin: 1.8rem 0; border-top: 1px solid rgba(255,255,255,.24); }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(255,255,255,.24); }
.spec-list dt { color: rgba(255,255,255,.55); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.spec-list dd { margin: 0; font-family: var(--display); font-weight: 800; }
.spec-list .checksum { display: block; }
.checksum dd { margin-top: .5rem; overflow-wrap: anywhere; color: #f4ca6a; font: .6rem/1.55 var(--mono); }
.atlas-copy .inline-links a { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.atlas-copy .inline-links a:hover { background: rgba(255,255,255,.17); }
.atlas-visual { position: relative; min-height: 680px; }
.contact-sheet-link { position: absolute; right: 0; top: 0; width: 70%; display: block; border: 2px solid var(--white); border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 12px 14px 0 rgba(0,0,0,.22); overflow: hidden; text-decoration: none; transform: rotate(1.3deg); transition: transform .3s var(--ease); }
.contact-sheet-link:hover { transform: rotate(0) translateY(-6px); }
.contact-sheet-link img { width: 100%; height: 590px; object-fit: cover; object-position: top; }
.contact-sheet-link span { display: flex; justify-content: space-between; padding: .8rem 1rem; font-size: .68rem; font-weight: 850; }
.base-card { position: absolute; left: 0; bottom: 0; z-index: 2; width: 43%; margin: 0; border: 2px solid var(--line-strong); border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 7px 9px 0 var(--rust); overflow: hidden; transform: rotate(-2.5deg); }
.base-card img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 32%; }
.base-card figcaption { display: grid; padding: .7rem .8rem; border-top: 1px solid var(--line); }
.base-card figcaption span { color: var(--rust); font-size: .56rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.base-card figcaption strong { font-family: var(--display); font-size: .88rem; }

.sdk-section { display: grid; grid-template-columns: 1fr .72fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.sdk-copy > p:not(.eyebrow) { max-width: 38rem; color: var(--muted); line-height: 1.75; }
.sdk-copy pre { margin: 1.5rem 0; padding: 1.25rem; overflow: auto; border: 2px solid var(--line-strong); border-radius: 14px; background: #24211f; color: #f3dcae; font: .68rem/1.7 var(--mono); white-space: pre-wrap; box-shadow: 5px 6px 0 var(--sun); }
.sdk-demo { min-height: 390px; display: grid; place-items: center; align-content: center; gap: 1rem; padding: 2rem; border: 2px solid var(--line-strong); border-radius: 50% 46% 48% 52%; background: var(--paper-light); box-shadow: 9px 11px 0 var(--mint), 9px 11px 0 2px var(--line-strong); }
.sdk-label { color: var(--rust); font: 850 .62rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sdk-network-note { margin-top: .85rem; padding: .75rem .9rem; border-left: 4px solid var(--rust); background: color-mix(in srgb, var(--sun) 22%, transparent); font-size: .72rem; line-height: 1.55; }
.sdk-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; }
.sdk-actions > button { padding: .7rem 1rem; border: 2px solid var(--line-strong); border-radius: 999px; background: var(--sun); color: var(--ink); box-shadow: 3px 4px 0 var(--line-strong); cursor: pointer; font-size: .68rem; font-weight: 850; }
.sdk-actions > button:last-child { background: var(--mint); }
.sdk-actions > button:disabled { cursor: wait; opacity: .65; }

.community-card { display: grid; grid-template-columns: .85fr 1fr; gap: clamp(3rem, 8vw, 8rem); padding: clamp(2rem, 5vw, 4.5rem); border: 2px solid var(--line-strong); border-radius: 26px; background: var(--paper-light); box-shadow: 10px 12px 0 var(--mint), 10px 12px 0 2px var(--line-strong); }
.community-copy > p { color: var(--muted); line-height: 1.8; }
.community-links { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.community-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.community-links a:hover span { color: var(--rust); }
.community-links span { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.community-links small { color: var(--muted); font-size: .66rem; font-weight: 750; }

.footer { min-height: 190px; display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 2rem; align-items: center; border-top: 1px solid var(--line); }
.footer-pet { width: 72px; height: 78px; overflow: hidden; }
.sprite-footer { transform: scale(.72); transform-origin: top left; }
.footer > div:not(.footer-pet) { display: grid; }
.footer strong { font-family: var(--display); font-size: 1.15rem; }
.footer span, .footer a { color: var(--muted); font-size: .7rem; font-weight: 700; text-decoration: none; }
.footer p { margin: 0; font-family: var(--display); font-style: italic; }
.motion-note { position: fixed; left: 1rem; bottom: 1rem; z-index: 99; max-width: 25rem; margin: 0; padding: .7rem .9rem; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--paper-light); box-shadow: 3px 4px 0 var(--line-strong); font-size: .7rem; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-playground { width: 100%; }
  .preview-grid { grid-template-columns: repeat(3, 1fr); }
  .preview-card-wide { grid-column: span 1; }
  .preview-card-wide .preview-viewport { aspect-ratio: 1.02; }
  .atlas-grid { grid-template-columns: .8fr 1fr; gap: 3rem; }
}

@media (max-width: 820px) {
  .topbar-links a:not(:last-child) { display: none; }
  .story-section, .caro-grid, .mobile-section, .animation-head, .install-section, .atlas-grid, .sdk-section, .community-card { grid-template-columns: 1fr; }
  .story-body { padding-top: 0; }
  .mobile-copy { max-width: 650px; }
  .device-scene { max-width: 650px; width: 100%; margin-inline: auto; }
  .animation-head { gap: 1rem; }
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .atlas-visual { min-height: 720px; }
  .contact-sheet-link { width: 72%; }
  .base-card { width: 40%; }
  .footer { grid-template-columns: auto 1fr 1fr; padding-block: 2rem; }
  .footer > p { grid-column: 2; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1180px); }
  .topbar { min-height: 66px; }
  .hero { min-height: auto; padding-block: 2.7rem 4rem; }
  h1 { font-size: clamp(4.1rem, 25vw, 7rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .hero-playground { width: calc(100% + 14px); margin-left: -7px; border-radius: 22px 22px 14px 14px; box-shadow: 7px 9px 0 var(--paper-deep), 7px 9px 0 2px var(--line-strong); }
  .playground-head { padding-inline: .85rem; }
  .pet-stage { min-height: 360px; }
  .hero-pet { transform: translate3d(var(--pet-x), var(--pet-y), 0) scale(.74); transform-origin: top left; }
  .speech-bubble { max-width: 12rem; font-size: .8rem; }
  .pet-actions { grid-template-columns: repeat(4, 1fr); }
  .pet-actions button:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .pet-actions button:nth-child(4) { border-right: 0; }
  .pet-actions button { min-height: 54px; }
  .identity-stamp { grid-template-columns: 1fr; }
  .identity-stamp span { border-right: 0; border-bottom: 1px solid var(--line); }
  .identity-stamp span:last-child { border-bottom: 0; }
  .device-scene { min-height: 590px; }
  .desktop-card { width: 92%; }
  .phone-card { width: 180px; min-height: 360px; }
  .sync-arrow { left: 24%; top: 66%; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-viewport, .preview-card-wide .preview-viewport { aspect-ratio: 1.35; }
  .command-tabs { overflow-x: auto; }
  .command-tabs button { flex: 0 0 auto; }
  .command-panel pre { font-size: .65rem; }
  .atlas-visual { min-height: 610px; }
  .contact-sheet-link { width: 80%; }
  .contact-sheet-link img { height: 490px; }
  .base-card { width: 45%; }
  .community-card { padding: 1.5rem; }
  .footer { grid-template-columns: auto 1fr; gap: 1rem; }
  .footer > div:nth-of-type(3), .footer > p { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { transform: none; }
}
