/* Nano Manana landing page
   Tokens mirror the app's dark "Motion" skin: indigo-black surfaces,
   violet accent, 16px surfaces / 10px controls. */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #07060b;
  --ink-2: #0b0912;
  --surface: #121019;
  --surface-2: #17141f;
  --line: #241f2e;
  --line-soft: #1a1622;
  --text: #f3f0f8;
  --muted: #a49fb2;
  --accent: #7b39fa;
  --accent-hi: #a678ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 16px;
  --r-sm: 10px;
  --gap: clamp(72px, 9vh, 116px);
  --nav-h: 68px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: #2b2536 var(--ink);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2b2536; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #3a3248; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; margin: 0; }

h1 { font-size: clamp(2.15rem, 3.8vw, 3.3rem); }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -0.02em; }

p { margin: 0; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.sub {
  color: var(--muted);
  font-size: 1.03rem;
  max-width: 56ch;
  margin-top: 18px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 60;
}
.skip:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* film grain: hides gradient banding, adds texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 40;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(7, 6, 11, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.nav-in {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.86rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
  background: #14101f;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.brand-mark img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  object-position: 50% 12%;
  transform: scale(1.5);
}
.brand-mark-sm { width: 26px; height: 26px; border-radius: 7px; }
.brand-mark-sm img { width: 23px; height: 23px; }
.brand-name em { font-style: normal; color: var(--accent-hi); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: 4px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #8c4bff 0%, #6d2ae6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px -14px rgba(123, 57, 250, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 18px 40px -14px rgba(123, 57, 250, 0.85);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.btn-ghost:hover { border-color: #3a3348; background: rgba(255, 255, 255, 0.05); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 0.86rem; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vh, 84px));
  padding-bottom: clamp(48px, 8vh, 96px);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.glow {
  position: absolute;
  top: -18%;
  right: -12%;
  width: 78vmax;
  height: 78vmax;
  max-width: 1180px;
  max-height: 1180px;
  background:
    radial-gradient(circle at 58% 42%, rgba(123, 57, 250, 0.34), transparent 58%),
    radial-gradient(circle at 72% 68%, rgba(90, 32, 200, 0.22), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy h1 { max-width: 24ch; }
.hero-copy .lede {
  margin-top: 24px;
  max-width: 42ch;
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  color: #cfc9dc;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
}
.mascot {
  position: relative;
  z-index: 1;
  width: auto;
  height: clamp(340px, 54vh, 600px);
  filter:
    drop-shadow(0 0 26px rgba(123, 57, 250, 0.35))
    drop-shadow(0 30px 50px rgba(0, 0, 0, 0.62));
  animation: float 9s ease-in-out infinite;
}
.hero-art::before {
  content: "";
  position: absolute;
  bottom: 2%;
  left: 50%;
  width: 62%;
  height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.75), transparent 70%);
  filter: blur(6px);
  z-index: 0;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* hero entrance */
.js .hero-copy > * {
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s var(--ease) forwards;
}
.js .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.js .hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.js .hero-copy > *:nth-child(3) { animation-delay: 0.24s; }
.js .hero-copy > *:nth-child(4) { animation-delay: 0.34s; }
.js .hero-art {
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  animation: rise 1.1s var(--ease) 0.2s forwards;
}
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- reveals ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- tour ---------- */

.tour { padding-block: 0; }

.stack { position: relative; }
.stack-item {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 96px;
  background: var(--ink);
}
.stack-card {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.stack-card.is-flipped { grid-template-columns: minmax(0, 1.48fr) minmax(0, 0.52fr); }
.stack-card.is-flipped .stack-text { order: 2; }
.stack-card.is-flipped .shot { order: 1; }
.stack-text h2 { margin-bottom: 0; }
.stack-text .sub { max-width: 38ch; margin-bottom: 34px; }
.stack-text h3 {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-hi);
  font-weight: 400;
}
.stack-text p {
  margin-top: 16px;
  color: var(--muted);
  max-width: 34ch;
}

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--r);
  border: 1px solid #322a42;
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(123, 57, 250, 0.1),
    0 40px 90px -40px rgba(0, 0, 0, 0.9),
    0 0 120px -30px rgba(123, 57, 250, 0.35);
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease);
}
.shot img { width: 100%; }
.stack-card:hover .shot { transform: translateY(-6px); border-color: #3a2f52; }

/* ---------- graph ---------- */

.graph { padding-block: var(--gap); }
.graph-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.86fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.rules {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.rules li {
  background: var(--ink);
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.rules b { color: var(--text); font-weight: 500; display: block; margin-bottom: 3px; }

.flow {
  border-radius: var(--r);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(123, 57, 250, 0.14), transparent 60%),
    var(--surface);
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  justify-items: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.flow-node {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #e4dff0;
  white-space: nowrap;
}
.flow-node em {
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c7490;
}
.flow-node-accent {
  border-color: #4d3190;
  background: linear-gradient(180deg, rgba(123, 57, 250, 0.3), rgba(123, 57, 250, 0.12));
  color: #f2ebff;
}
.flow-node-accent em { color: #b9a4e8; }
.flow-line {
  width: 1px;
  height: 26px;
  background: #5b4a7a;
}
.flow-split {
  position: relative;
  width: 90%;
  height: 30px;
}
.flow-split::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 14px;
  background: #5b4a7a;
}
.flow-split::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: #5b4a7a;
}
.flow-outs {
  display: flex;
  justify-content: space-between;
  width: 90%;
  gap: 6px;
}
.flow-out {
  position: relative;
  flex: 1 1 0;
  text-align: center;
  padding: 8px 2px;
  border-radius: 8px;
  border: 1px solid #2b2537;
  color: #b3acc4;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.025);
}
/* the ticks that turn the bus into a fan-out */
.flow-out::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 1px;
  height: 16px;
  background: #5b4a7a;
  transform: translateX(-50%);
}
.flow-note {
  margin-top: 6px;
  font-size: 0.72rem;
  color: #8f88a0;
  letter-spacing: 0.06em;
}

/* ---------- download ---------- */

.download {
  padding-block: var(--gap);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--ink-2), var(--ink) 40%);
}
.dl-head .sub { margin-top: 16px; max-width: 48ch; }

.dl-status {
  margin-top: 34px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #8f88a0;
  min-height: 1.2em;
}
.dl-status.is-ready { color: #b9b2c9; }

.dl-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.dl-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: clamp(20px, 2.4vw, 30px);
  transition: border-color 0.4s var(--ease);
}
.dl-card.is-current { border-color: #4a2f88; }
.dl-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}
.tag {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}
.tag-you {
  color: #c0a6ff;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #4a2f88;
  background: rgba(123, 57, 250, 0.14);
}
.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.dl-row:hover { color: #fff; padding-left: 6px; }
.dl-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.dl-name::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid #8f88a0;
  border-bottom: 1.5px solid #8f88a0;
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.dl-row:hover .dl-name::after { transform: translateY(3px) rotate(45deg); border-color: var(--accent-hi); }
.dl-size {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: #b0aabc;
  white-space: nowrap;
}
.dl-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: #a29bb4;
  max-width: 46ch;
}
.dl-foot {
  margin-top: 26px;
  font-size: 0.9rem;
  color: var(--muted);
}
.dl-foot a { color: #c0a6ff; border-bottom: 1px solid rgba(192, 166, 255, 0.4); }

/* ---------- inside ---------- */

.inside { padding-block: var(--gap); }
.inside-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.inside-rail .sub { margin-top: 18px; max-width: 34ch; }
.rail-shot {
  margin: 34px 0 0;
  max-width: 300px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 30px 70px -40px #000;
}
.rail-shot img {
  width: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 100%),
    linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 100%),
    linear-gradient(90deg, #000 0, #000 94%, transparent 100%);
  mask-composite: intersect;
}
.groups {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 3vw, 38px);
  align-content: start;
}
.group dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(20px, 2.4vw, 36px);
}
.group h3 {
  font-size: 0.78rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.group dl { margin: 0; }
.group dl > div { padding: 16px 0; }
.group dt { font-weight: 500; font-size: 1rem; }
.group dd { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; max-width: 30ch; }

/* ---------- start ---------- */

.start { padding-block: var(--gap); border-top: 1px solid var(--line-soft); }
.steps {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  counter-reset: step;
}
.steps li {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 22px;
  right: 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.74rem;
  color: #9a93a9;
}
.steps h3 { font-size: 1.12rem; padding-right: 44px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.94rem; max-width: 32ch; }
code.ui {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84em;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #d6c8ff;
  white-space: nowrap;
}
.steps pre {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: #0d0b13;
  overflow-x: auto;
}
.steps code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: #c8b6ff;
}
.req {
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #a9a2b8;
  line-height: 2;
}

/* ---------- closer ---------- */

.closer {
  position: relative;
  isolation: isolate;
  padding-block: clamp(90px, 14vh, 170px);
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.closer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
}
.closer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, var(--ink) 0%, rgba(7, 6, 11, 0.35) 45%, var(--ink) 100%),
    radial-gradient(80% 100% at 30% 50%, rgba(7, 6, 11, 0.15), rgba(7, 6, 11, 0.85));
}
.closer-in { text-align: center; display: grid; justify-items: center; }
.closer-in .sub { margin-inline: auto; text-align: center; }
.closer-in .btn { margin-top: 32px; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line-soft);
  padding-block: 40px;
  background: var(--ink);
}
.foot-in {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.foot nav { display: flex; gap: 22px; font-size: 0.9rem; color: var(--muted); }
.foot nav a:hover { color: var(--text); }
.foot-note {
  width: 100%;
  font-size: 0.84rem;
  color: #8f88a0;
  max-width: 62ch;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; }
  .hero-art { order: -1; padding-bottom: 0; }
  .mascot { height: clamp(280px, 40vh, 420px); }
  .hero-copy h1 { max-width: 16ch; }
  .tour-head, .dl-head { grid-template-columns: minmax(0, 1fr); }
  .tour-head .sub, .dl-head .sub { margin-top: 14px; }
  .stack-card { grid-template-columns: minmax(0, 1fr); }
  .stack-card.is-flipped { grid-template-columns: minmax(0, 1fr); }
  .stack-card.is-flipped .stack-text,
  .stack-card.is-flipped .shot { order: 0; }
  .stack-item { min-height: 0; padding-block: 48px; position: static; }
  .stack { display: grid; gap: 48px; }
  .stack-text p { max-width: 52ch; }
  .graph-grid { grid-template-columns: minmax(0, 1fr); }
  .flow { order: -1; }
  .inside-grid { grid-template-columns: minmax(0, 1fr); }
  .rail-shot { max-width: 260px; margin-top: 26px; }
  .groups, .steps, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .group dd, .steps p { max-width: 56ch; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .nav-in, .stack-card { width: calc(100% - 36px); }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-actions .btn { flex: 1 1 auto; }
  .foot-in { gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot { animation: none; }
  .js .hero-copy > *,
  .js .hero-art,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .btn, .shot, .dl-row { transition: none; }
}
