/* ============================================================
   NEXT — design system
   Editorial-industrial aesthetic. Ink + paper + volt + signal.
   ============================================================ */

:root {
  --paper: #F1EEE6;
  --paper-2: #E7E3D7;
  --ink: #14140F;
  --ink-2: #23231B;
  --ink-3: #2E2E24;
  --line: rgba(20, 20, 15, 0.14);
  --line-strong: rgba(20, 20, 15, 0.3);
  --volt: #C8FF2E;
  --signal: #FF4D00;
  --muted: #6F6E62;
  --paper-dim: rgba(241, 238, 230, 0.7);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --r-lg: 22px;
  --r-md: 14px;
  --r-pill: 999px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

#view { min-height: 100vh; padding-top: var(--nav-h); scroll-margin-top: var(--nav-h); }

::selection { background: var(--volt); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.04; margin: 0; font-weight: 600; letter-spacing: -0.02em; }

p { margin: 0; }

a { color: inherit; }

img, svg { display: block; }

button { font-family: inherit; }

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

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: 10px 18px; border-radius: 8px; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

.arr { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease-out); }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 400;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- scroll progress ---------- */
.scrollbar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 260;
  pointer-events: none;
}
.scrollbar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--signal), var(--volt));
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px;
  border: 1.5px solid rgba(20, 20, 15, 0.7);
  border-radius: 50%;
  pointer-events: none; z-index: 500;
  opacity: 0;
  transition: width .25s var(--ease-spring), height .25s var(--ease-spring),
    background .2s ease, border-color .2s ease, opacity .3s ease;
  mix-blend-mode: difference;
}
.cursor span { position: absolute; inset: 7px; border-radius: 50%; background: var(--volt); opacity: 0; transition: opacity .2s ease; }
.cursor.is-hot {
  width: 46px; height: 46px;
  background: rgba(200, 255, 46, 0.35);
  border-color: var(--volt);
}
.cursor.is-hot span { opacity: 1; }

/* ---------- curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 450;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
  display: flex; align-items: center; justify-content: center;
}
.curtain.is-live { transform: translateY(0); }
.curtain__label {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 12vw, 8rem); color: var(--volt);
  letter-spacing: -0.03em;
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.header.is-scrolled {
  background: rgba(241, 238, 230, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 34px; height: 34px; }
.logo__mark rect { fill: var(--ink); }
.logo__mark path { stroke: var(--volt); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.logo__mark circle { fill: var(--signal); }
.logo__word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 21px; letter-spacing: 0.04em;
}
.logo__dot { color: var(--signal); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--ink); opacity: .75;
  transition: opacity .2s ease, background .2s ease;
}
.nav__link:hover { opacity: 1; background: rgba(20, 20, 15, 0.06); }
.nav__link.is-active { opacity: 1; background: var(--ink); color: var(--paper); }

.header__cta {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: 14px;
  padding: 12px 20px; border-radius: var(--r-pill);
  margin-top: 9px;
  transition: background .25s ease, transform .25s var(--ease-spring);
}
.header__cta:hover { background: var(--signal); transform: translateY(-2px); }
.header__cta:hover .arr { transform: translateX(3px); }

/* ---------- dock (mobile) ---------- */
.dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 190;
  display: none;
  justify-content: space-around;
  background: rgba(241, 238, 230, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}
.dock__item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; font-size: 10.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 12px; color: var(--muted);
  transition: color .2s ease, background .2s ease, transform .2s var(--ease-spring);
}
.dock__item .dock__icon { font-size: 18px; line-height: 1; }
.dock__item.is-active { color: var(--ink); background: var(--volt); }

/* ---------- eyebrow / type ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--signal); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  border: 0; cursor: pointer; text-decoration: none;
  padding: 14px 26px; border-radius: var(--r-pill);
  transition: background .25s ease, color .25s ease, border-color .25s ease,
    transform .25s var(--ease-spring), box-shadow .25s ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--volt); color: var(--ink); }
.btn--primary:hover .arr { transform: translateX(4px); }
.btn--volt { background: var(--volt); color: var(--ink); }
.btn--volt:hover { background: var(--signal); color: var(--paper); }
.btn--volt:hover .arr { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn--ghost:hover .arr { transform: translateX(4px); }
.btn--danger {
  background: transparent; color: var(--signal);
  border: 1.5px solid var(--signal);
}
.btn--danger:hover { background: var(--signal); color: var(--paper); }
.btn--outline { background: transparent; border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }
.btn--tiny { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 18px 34px; font-size: 16px; }
.btn:disabled { opacity: .5; cursor: default; }

.magnetic {
  transition: background .25s ease, color .25s ease, border-color .25s ease,
    box-shadow .25s ease, transform .15s ease-out;
}
.magnetic:active { transform: scale(0.97) !important; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 8vh, 96px) clamp(20px, 6vw, 80px) 0;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; width: 100%; }

.blob {
  position: absolute; border-radius: 50%; filter: blur(60px);
  will-change: transform;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob--a { width: 46vw; height: 46vw; top: -12%; left: -8%; background: radial-gradient(circle at 30% 30%, rgba(200, 255, 46, 0.5), rgba(200, 255, 46, 0) 62%); }
.blob--b { width: 40vw; height: 40vw; bottom: -14%; right: -6%; background: radial-gradient(circle at 60% 40%, rgba(255, 77, 0, 0.38), rgba(255, 77, 0, 0) 64%); animation-delay: -8s; }
.blob--c { width: 26vw; height: 26vw; top: 34%; right: 18%; background: radial-gradient(circle at 50% 50%, rgba(20, 20, 15, 0.12), rgba(20, 20, 15, 0) 66%); animation-delay: -14s; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
}

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: clamp(48px, 6vw, 84px) clamp(48px, 6vw, 84px);
  -webkit-mask-image: radial-gradient(ellipse 70% 62% at 50% 42%, black 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 70% 62% at 50% 42%, black 30%, transparent 78%);
  opacity: .5;
}

.orbit {
  position: absolute; top: 50%; left: 50%;
  width: min(72vw, 760px); height: min(72vw, 760px);
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
}
.orbit--2 { width: min(52vw, 540px); height: min(52vw, 540px); border-style: dotted; animation-duration: 44s; animation-direction: reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__title {
  font-size: clamp(3.2rem, 11vw, 8.6rem);
  font-weight: 700; letter-spacing: -0.035em;
  margin: 18px 0 22px;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.hero__title .wi {
  display: inline-block;
  transform: translateY(112%);
  animation: rise .9s var(--ease-out) forwards;
  animation-delay: calc(0.35s + var(--i) * 90ms);
}
@keyframes rise { to { transform: translateY(0); } }

.hero .eyebrow {
  opacity: 0;
  animation: fadeUp .8s var(--ease-out) forwards;
  animation-delay: .2s;
}
.hero__sub {
  font-size: clamp(17px, 2.2vw, 21px);
  max-width: 620px; color: var(--ink-2);
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .8s var(--ease-out) forwards;
  animation-delay: .75s;
}
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px;
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .8s var(--ease-out) forwards;
  animation-delay: .9s;
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--muted);
}
.hero__meta span { position: relative; padding-left: 12px; }
.hero__meta span::before { content: "·"; position: absolute; left: 0; color: var(--signal); }

/* smart input */
.smart {
  max-width: 640px; margin-top: 44px;
  padding-top: 30px; border-top: 1px solid var(--line);
  opacity: 0; transform: translateY(16px);
  animation: fadeUp .8s var(--ease-out) forwards;
  animation-delay: 1.05s;
}
.smart__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 12px; }
.smart__row { display: flex; gap: 10px; }
.smart__input {
  flex: 1;
  font-family: var(--font-body); font-size: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 15px 18px;
  color: var(--ink);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.smart__input::placeholder { color: var(--muted); opacity: .8; }
.smart__input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 6px 22px -12px rgba(20,20,15,.4); }
.smart__go {
  width: 54px; height: 54px; flex: none;
  border-radius: var(--r-md); border: 0;
  background: var(--ink); color: var(--volt);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .25s ease, transform .25s var(--ease-spring);
}
.smart__go:hover { background: var(--signal); color: var(--paper); transform: rotate(-8deg) scale(1.04); }
.smart__hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hint {
  font-size: 13px; color: var(--ink-2);
  background: rgba(20, 20, 15, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 14px; cursor: pointer;
  transition: all .2s ease;
}
.hint:hover { background: var(--ink); color: var(--volt); border-color: var(--ink); transform: translateY(-2px); }

/* marquee */
.hero__marquee {
  position: relative; z-index: 3;
  margin-top: clamp(40px, 7vh, 70px);
  background: var(--ink); color: var(--volt);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.hero:hover .marquee__track { animation-play-state: paused; }
.mq {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2.6vw, 26px); letter-spacing: 0.02em;
  padding: 16px 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.mq b { color: var(--paper); }
.mq i { color: var(--signal); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- reveals ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- story section ---------- */
.story {
  position: relative;
  background: var(--ink); color: var(--paper);
  padding: clamp(90px, 14vh, 160px) clamp(20px, 6vw, 80px);
  overflow: hidden;
}
.story__rail {
  position: absolute; top: 0; bottom: 0; left: clamp(20px, 5vw, 60px);
  width: 2px; background: rgba(241, 238, 230, 0.12);
}
.story__rail span {
  display: block; width: 100%; height: 0;
  background: linear-gradient(var(--volt), var(--signal));
}
.story__content { max-width: 940px; margin: 0 auto; }
.story__block { display: flex; align-items: flex-start; gap: clamp(20px, 4vw, 48px); padding: clamp(40px, 8vh, 90px) 0; position: relative; }
.story__num {
  flex: none; width: 60px;
  font-family: var(--font-mono); font-size: 13px; color: var(--volt);
  padding-top: 10px;
}
.story__title {
  font-size: clamp(2.2rem, 7vw, 5.2rem); font-weight: 700;
  letter-spacing: -0.03em;
}
.story__text:nth-child(2) .story__title { color: var(--volt); }
.story__content > .story__block:nth-child(even) .story__title { color: var(--volt); }
.story__sub {
  margin-top: 16px; color: rgba(241, 238, 230, 0.65);
  font-size: clamp(15px, 1.8vw, 18px); max-width: 520px;
}
.story__end { text-align: center; padding: clamp(50px, 8vh, 90px) 0 0; }
.story__endlabel {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 600;
  margin-bottom: 26px;
}

/* ---------- home cards ---------- */
.homecards {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 80px);
}
.homecards__title { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 600; letter-spacing: -0.025em; margin: 18px 0 48px; }
.homecards__title em { color: var(--signal); font-style: normal; }
.homecards__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.hc {
  background: var(--paper);
  padding: 28px 24px;
  transition: background .3s ease;
  position: relative;
}
.hc:hover { background: var(--paper-2); }
.hc__n { font-family: var(--font-mono); font-size: 12px; color: var(--signal); }
.hc h3 { font-size: 21px; margin: 14px 0 8px; }
.hc p { font-size: 14px; color: var(--muted); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px clamp(20px, 6vw, 80px) 90px;
  display: flex; flex-wrap: wrap; gap: 40px;
  align-items: flex-start; justify-content: space-between;
  max-width: 1200px; margin: 0 auto;
}
.footer__brand p { color: var(--muted); margin-top: 12px; max-width: 260px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .8; transition: opacity .2s ease, color .2s ease; }
.footer__nav a:hover { opacity: 1; color: var(--signal); }
.footer__fine { width: 100%; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---------- flow ---------- */
.flowbar {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 210;
  background: rgba(241, 238, 230, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.flowbar__inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; gap: 4px; align-items: center;
  padding: 8px clamp(20px, 6vw, 80px);
  overflow-x: auto; scrollbar-width: none;
}
.flowbar__inner::-webkit-scrollbar { display: none; }
.flowbar__step {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--muted); text-transform: uppercase;
  padding: 7px 10px; white-space: nowrap;
  border-radius: var(--r-pill);
  transition: color .2s ease, background .2s ease;
}
.flowbar__step:hover { color: var(--ink); }
.flowbar__step.is-now { color: var(--ink); background: var(--volt); }
.flowbar__step.is-done .flowbar__dot { background: var(--signal); }
.flowbar__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }

.flow {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(84px, 14vh, 130px) clamp(20px, 6vw, 80px) clamp(60px, 10vh, 100px);
  transition: opacity .18s ease, transform .18s ease;
}
.flow__stage { max-width: 860px; }
.flow__q { font-size: clamp(2rem, 5.6vw, 3.8rem); font-weight: 700; letter-spacing: -0.03em; margin: 18px 0 40px; }
.flow__q em { font-style: normal; color: var(--signal); }
.flow__aside { margin-top: 18px; font-size: 14px; color: var(--muted); }
.flow__back { margin-top: 34px; }

/* situations */
.sits {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.sit {
  display: flex; align-items: center; gap: 18px;
  text-align: left;
  background: transparent;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
  cursor: pointer;
  transition: background .3s var(--ease-out), border-color .3s ease, transform .3s var(--ease-spring), box-shadow .3s ease;
  position: relative; overflow: hidden;
}
.sit::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(102%);
  transition: transform .35s var(--ease-out);
}
.sit:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(20,20,15,.5); }
.sit:hover::before { transform: translateY(0); }
.sit__icon {
  flex: none; font-size: 30px; line-height: 1;
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper-2); border-radius: var(--r-md);
  position: relative; z-index: 1;
  transition: background .3s ease, transform .3s var(--ease-spring);
}
.sit:hover .sit__icon { background: var(--ink-3); transform: rotate(-6deg) scale(1.06); }
.sit__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.sit__body b { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); transition: color .3s ease; }
.sit__body i { font-style: normal; font-size: 13px; color: var(--muted); transition: color .3s ease; }
.sit:hover .sit__body b { color: var(--paper); }
.sit:hover .sit__body i { color: rgba(241, 238, 230, 0.65); }
.sit__go { margin-left: auto; position: relative; z-index: 1; color: var(--muted); transition: color .3s ease, transform .3s ease; }
.sit:hover .sit__go { color: var(--volt); transform: translateX(4px); }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  background: transparent; border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 12px 20px; cursor: pointer; color: var(--ink);
  transition: all .25s var(--ease-out);
}
.chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.chip.is-on { background: var(--ink); color: var(--volt); border-color: var(--ink); }
.chip__icon { font-size: 16px; }
.chip--big { padding: 16px 24px; font-size: 16px; }
.chip--time { flex-direction: column; align-items: flex-start; gap: 2px; border-radius: var(--r-md); min-width: 120px; }
.chip--time b { font-family: var(--font-display); font-size: 18px; }
.chip--time i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.chip--time.is-on i { color: rgba(200, 255, 46, 0.75); }
.chip--energy { flex-direction: column; align-items: flex-start; gap: 4px; border-radius: var(--r-md); min-width: 200px; }
.chip--energy i { font-style: normal; font-size: 12.5px; color: var(--muted); }
.chip--energy.is-on i { color: rgba(200, 255, 46, 0.75); }

/* ---------- result ---------- */
.result { max-width: 860px; }
.result.is-in { animation: resultIn .6s var(--ease-out) both; }
@keyframes resultIn { from { opacity: 0; transform: translateY(26px) scale(0.985); } to { opacity: 1; transform: none; } }
.result__title {
  font-size: clamp(2.2rem, 7vw, 4.6rem); font-weight: 700;
  letter-spacing: -0.03em; margin: 14px 0 28px;
}
.result__meta {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 26px;
}
.result__meta span {
  padding: 18px 20px; display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line);
}
.result__meta span:last-child { border-right: 0; }
.result__meta b { font-family: var(--font-display); font-size: clamp(16px, 2.4vw, 22px); letter-spacing: -0.01em; }
.result__meta i { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.result__desc { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 640px; }

.result__mission { margin-top: 40px; }
.result__section {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}

.steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.steps li {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
  transition: background .25s ease;
}
.steps li:last-child { border-bottom: 0; }
.steps li:hover { background: rgba(255, 255, 255, 0.75); }
.steps__n { font-family: var(--font-mono); font-size: 13px; color: var(--signal); flex: none; padding-top: 2px; }
.steps__t { font-size: 15px; }

.result__why { margin-top: 28px; border-left: 3px solid var(--volt); padding-left: 18px; }
.why__toggle { background: none; border: 0; cursor: pointer; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--signal); padding: 0; }
.why__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.why__body > p { overflow: hidden; }
.why__body.is-open { grid-template-rows: 1fr; }
.why__body p { color: var(--ink-2); font-size: 15px; }
.why__fit { margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); }

.result__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* ---------- form pages ---------- */
.formpage { max-width: 860px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) clamp(20px, 6vw, 80px) clamp(60px, 10vh, 100px); }
.formpage__note { color: var(--muted); margin: 14px 0 34px; max-width: 620px; }
.form { display: flex; flex-direction: column; gap: 34px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__n { font-family: var(--font-mono); font-size: 12px; color: var(--signal); }
.field__q { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.field__h { font-size: 13.5px; color: var(--muted); }
.field__in {
  margin-top: 8px;
  font-family: var(--font-body); font-size: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 15px 18px; color: var(--ink);
  transition: border-color .25s ease, background .25s ease;
}
.field__in:focus { outline: none; border-color: var(--ink); background: #fff; }
.field__ta { resize: vertical; min-height: 80px; }
.field__placeholder { color: var(--muted); font-size: 14px; }
.field__choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fchip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; padding: 9px 16px; cursor: pointer; color: var(--ink);
  transition: all .22s var(--ease-out);
}
.fchip:hover { border-color: var(--ink); transform: translateY(-1px); }
.fchip.is-on { background: var(--ink); color: var(--volt); border-color: var(--ink); }
.fchip__icon { font-size: 14px; }
.form__submit { margin-top: 12px; }

/* path / plan (study plan, goal path) */
.pathpage { max-width: 860px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) clamp(20px, 6vw, 80px) clamp(60px, 10vh, 100px); }
.pathpage__meta { font-family: var(--font-mono); font-size: 13px; color: var(--muted); margin: 14px 0 36px; }
.path { position: relative; display: flex; flex-direction: column; gap: 14px; }
.path__stage { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: rgba(255,255,255,.3); }
.path__head {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 20, 15, 0.03);
}
.path__n { font-family: var(--font-mono); font-size: 13px; color: var(--signal); }
.path__head h3 { font-size: 19px; }
.path__days { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: var(--volt); color: var(--ink); padding: 4px 10px; border-radius: var(--r-pill); }
.path__desc { padding: 14px 22px 0; color: var(--ink-2); font-size: 14.5px; }
.path__missions { list-style: none; margin: 0; padding: 0; }
.pm {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.pm:last-child { border-bottom: 0; }
.pm__info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pm__info b { font-size: 15px; }
.pm__info i { font-style: normal; font-size: 13px; color: var(--muted); }
.pm__right { display: flex; align-items: center; gap: 12px; flex: none; }
.pm__time { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.path__cta { margin-top: 30px; display: flex; gap: 12px; }
.path__stage > .btn { margin: 16px 22px; }

/* goal breakdown */
.goalinput { margin-top: 10px; }
.breakdown { margin-top: 44px; padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: rgba(255,255,255,.3); }
.breakdown__goal { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 12px 0 30px; }
.breakdown.is-in { animation: resultIn .5s var(--ease-out) both; }
.bd { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.bd__list { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bd__list li { display: flex; gap: 14px; align-items: flex-start; }
.bd__list li div { display: flex; flex-direction: column; gap: 2px; }
.bd__list b { font-size: 15px; }
.bd__list i { font-style: normal; font-size: 13px; color: var(--muted); }
.bd__next {
  position: sticky; top: calc(var(--nav-h) + 70px);
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg); padding: 28px;
}
.bd__next .result__section { color: var(--volt); }
.bd__next h4 { font-size: 22px; margin-bottom: 8px; }
.bd__next p { font-size: 14px; color: rgba(241,238,230,.72); margin-bottom: 20px; }
.goalhistory { margin-top: 50px; }

/* challenge chooser */
.chalsig { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 30px auto 0; }
.chalsig__item {
  display: flex; align-items: center; gap: 18px;
  text-align: left;
  background: transparent;
  border: 1.5px solid rgba(241, 238, 230, 0.22);
  border-radius: var(--r-md);
  padding: 20px 24px;
  cursor: pointer; color: var(--paper);
  transition: background .3s var(--ease-out), border-color .3s ease, transform .3s var(--ease-spring);
}
.chalsig__item:hover { border-color: var(--volt); background: rgba(200, 255, 46, 0.08); transform: translateY(-2px); }
.chalsig__time { flex: none; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--volt); }
.chalsig__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.chalsig__body b { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.chalsig__body i { font-style: normal; font-size: 13px; color: rgba(241, 238, 230, 0.6); }
.chalsig__go { color: rgba(241, 238, 230, 0.6); transition: color .3s ease, transform .3s ease; }
.chalsig__item:hover .chalsig__go { color: var(--signal); transform: translateX(4px); }
.sig__stage--finish .chalsig__item .arr { stroke: currentColor; }

/* today */
.todaypage { max-width: 860px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) clamp(20px, 6vw, 80px) clamp(60px, 10vh, 100px); }
.today__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 34px; }
.tchip {
  font-family: var(--font-mono); font-size: 12.5px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 8px 14px;
}
.today__list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.today__item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px;
  background: rgba(255,255,255,.3);
}
.today__itemhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.today__itemhead .result__section { margin: 0; }
.today__item h3 { font-size: 21px; }
.today__item p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.today__empty { border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); padding: 48px 30px; text-align: center; margin-bottom: 34px; }
.today__emptyq { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 12px 0 24px; }
.today__reflect { display: flex; flex-direction: column; gap: 34px; }

/* progress */
.progresspage { max-width: 860px; margin: 0 auto; padding: clamp(60px, 10vh, 110px) clamp(20px, 6vw, 80px) clamp(60px, 10vh, 100px); }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
  margin: 30px 0;
}
.stat { background: var(--paper); padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.progress__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pg__bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-top: 20px; }
.pg__barwrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.pg__bar {
  width: 100%; max-width: 44px;
  background: linear-gradient(180deg, var(--volt), var(--signal));
  border-radius: 8px 8px 0 0;
  position: relative;
  transition: height .6s var(--ease-out);
  min-height: 4px;
}
.pg__bar b { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 12px; }
.pg__barwrap i { font-family: var(--font-mono); font-style: normal; font-size: 12px; color: var(--muted); }
.pg__cats { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.pg__cat { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pg__cat > span { width: 90px; flex: none; }
.pg__catbar { flex: 1; height: 8px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.pg__catbar i { display: block; height: 100%; background: var(--ink); border-radius: var(--r-pill); transition: width .8s var(--ease-out); }
.pg__cat b { font-family: var(--font-mono); font-size: 13px; width: 24px; text-align: right; }
.pg__fav { margin-top: 22px; font-size: 14px; color: var(--muted); }
.pg__fav b { color: var(--ink); }

/* settings */
.settingspage { max-width: 860px; }
.settings__block { margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.settings__note { font-size: 14px; color: var(--ink-2); max-width: 640px; margin-bottom: 20px; }
.settings__opt { font-family: var(--font-mono); font-size: 11px; color: var(--signal); text-transform: uppercase; letter-spacing: 0.08em; }
.settings__row { display: flex; align-items: center; gap: 18px; margin-top: 16px; flex-wrap: wrap; }
.settings__hint { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.settings__fine { font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.settings__block .btn { margin-top: 14px; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; }
.switch__track {
  width: 46px; height: 26px; flex: none;
  border-radius: var(--r-pill);
  background: var(--line-strong);
  position: relative;
  transition: background .25s ease;
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--paper);
  transition: transform .25s var(--ease-spring);
}
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: var(--volt); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--signal); outline-offset: 2px; }

/* privacy */
.privacy { display: flex; flex-direction: column; gap: 14px; margin: 20px 0 34px; }
.pv { border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; background: rgba(255,255,255,.3); }
.pv h3 { font-size: 17px; margin-bottom: 6px; }
.pv p { font-size: 14.5px; color: var(--ink-2); }
.inlink { color: var(--signal); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--signal); }

/* ---------- focus overlay ---------- */
.focus {
  position: fixed; inset: 0; z-index: 350;
  background: var(--ink); color: var(--paper);
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.focus.is-open { opacity: 1; pointer-events: auto; }
.focus__shell { max-width: 1000px; margin: 0 auto; padding: clamp(24px, 4vw, 48px); min-height: 100%; display: flex; flex-direction: column; }
.focus__top { display: flex; justify-content: space-between; align-items: center; }
.focus__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--volt); }
.focus__close { background: none; border: 1px solid rgba(241,238,230,.25); color: var(--paper); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 15px; transition: all .2s ease; }
.focus__close:hover { background: var(--signal); border-color: var(--signal); transform: rotate(90deg); }
.focus__center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 0; }
.focus__title { font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 720px; }
.focus__timer {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(5rem, 20vw, 11rem);
  letter-spacing: -0.04em; line-height: 1;
  margin: 26px 0 6px;
  font-variant-numeric: tabular-nums;
  color: var(--volt);
}
.focus__pct { font-family: var(--font-mono); font-size: 14px; color: rgba(241,238,230,.6); }
.focus__bar { width: min(420px, 80%); height: 6px; border-radius: var(--r-pill); background: rgba(241,238,230,.14); margin: 16px 0 22px; overflow: hidden; }
.focus__bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--signal), var(--volt)); border-radius: var(--r-pill); transition: width .3s ease; }
.focus__controls { display: flex; gap: 12px; }
.focus__controls .btn--ghost { color: var(--paper); border-color: rgba(241,238,230,.3); }
.focus__controls .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.focus__controls .btn--outline { color: var(--paper); border-color: rgba(241,238,230,.3); }
.focus__steps { max-width: 720px; width: 100%; margin: 0 auto; }
.focus__steptitle { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; color: rgba(241,238,230,.55); text-transform: uppercase; margin-bottom: 14px; }
.steps--focus { border-color: rgba(241,238,230,.18); }
.steps--focus li { background: transparent; border-color: rgba(241,238,230,.12); }
.steps--focus li.is-done .steps__t { text-decoration: line-through; opacity: .45; }
.steps--focus li.is-now { background: rgba(200, 255, 46, 0.1); border-left: 3px solid var(--volt); }
.focus__nextstep { margin-top: 18px; }
.focus__nextstep .arr { color: inherit; }

/* focus done */
.focus__shell--done { align-items: center; justify-content: center; text-align: center; }
.focus__done { position: relative; max-width: 640px; }
.focus__burst { position: absolute; inset: -80px -80px -80px -80px; pointer-events: none; }
.focus__burst span {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 255, 46, 0.4);
  opacity: 0;
  animation: burst 1.4s var(--ease-out) forwards;
}
.focus__burst span:nth-child(2) { animation-delay: .18s; }
.focus__burst span:nth-child(3) { animation-delay: .36s; }
.focus__burst span:nth-child(4) { animation-delay: .54s; }
@keyframes burst {
  0% { transform: scale(.4); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(1.15); opacity: 0; }
}
.focus__doneq { font-size: clamp(2.4rem, 8vw, 5rem); font-weight: 700; margin: 16px 0 28px; letter-spacing: -0.03em; }
.focus__doneq em { font-style: normal; color: var(--volt); }
.focus__donechips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; }
.focus__donechips .tchip { color: var(--paper); border-color: rgba(241,238,230,.3); }
.focus__donebtns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- signature overlay ---------- */
.sig {
  position: fixed; inset: 0; z-index: 360;
  background: var(--ink); color: var(--paper);
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.sig.is-open { opacity: 1; pointer-events: auto; }
.sig__stage {
  min-height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(24px, 5vw, 60px);
}
.sig__line1, .sig__line2 {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: -0.03em;
  opacity: 0; transform: translateY(24px) scale(0.98);
}
.sig__line1 { font-size: clamp(2.6rem, 10vw, 6rem); }
.sig__line2 { font-size: clamp(1.5rem, 5vw, 3rem); color: var(--volt); margin-top: 18px; }
.sig__stage--setup.is-in .sig__line1,
.sig__stage--setup.is-in .sig__line2 { animation: sigIn .9s var(--ease-out) forwards; }
.sig__stage--setup.is-in .sig__line2 { animation-delay: .5s; }
@keyframes sigIn { to { opacity: 1; transform: none; } }
.sig__stage--finish { opacity: 0; }
.sig--finish .sig__stage--finish { animation: resultIn .7s var(--ease-out) forwards; }
.sig__title { font-size: clamp(2rem, 7vw, 4.2rem); font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 26px; max-width: 820px; }
.sig__split { display: flex; justify-content: center; gap: clamp(18px, 5vw, 60px); margin-bottom: 30px; }
.sig__split span { display: flex; flex-direction: column; }
.sig__split b { font-family: var(--font-display); font-size: clamp(18px, 3vw, 26px); color: var(--volt); }
.sig__split i { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: rgba(241,238,230,.6); text-transform: uppercase; }
.sig__desc { color: rgba(241,238,230,.75); max-width: 560px; font-size: clamp(15px, 1.8vw, 18px); margin-bottom: 14px; }
.sig__stage--finish .result__meta { border-color: rgba(241,238,230,.2); }
.sig__stage--finish .result__meta span { border-color: rgba(241,238,230,.2); }
.sig__stage--finish .result__meta i { color: rgba(241,238,230,.6); }
.sig__stage--finish .btn--ghost { color: var(--paper); border-color: rgba(241,238,230,.35); }
.sig__stage--finish .btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* ---------- toasts ---------- */
.toasts {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 380; display: flex; flex-direction: column; gap: 8px;
  align-items: center; width: min(92vw, 480px);
}
.toast {
  background: var(--ink); color: var(--paper);
  font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: var(--r-pill);
  box-shadow: 0 14px 40px -12px rgba(20,20,15,.5);
  opacity: 0; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s var(--ease-spring);
}
.toast.is-in { opacity: 1; transform: none; }
.dock ~ .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sits { grid-template-columns: 1fr; }
  .homecards__grid { grid-template-columns: repeat(2, 1fr); }
  .bd { grid-template-columns: 1fr; }
  .bd__next { position: static; }
  .progress__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav--desktop, .header__cta { display: none; }
  .dock { display: flex; }
  #view, .flowbar { padding-top: var(--nav-h); }
  .hero { justify-content: flex-start; padding-top: 40px; }
  .result__meta { grid-template-columns: 1fr; }
  .result__meta span { border-right: 0; border-bottom: 1px solid var(--line); }
  .result__meta span:last-child { border-bottom: 0; }
  .focus__timer { font-size: clamp(4rem, 24vw, 7rem); }
  .story__content { padding-left: 0; }
  .story__rail { left: 6px; }
  .pm { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pm__right { width: 100%; justify-content: space-between; }
  .footer { padding-bottom: 120px; }
}

@media (max-width: 520px) {
  .homecards__grid { grid-template-columns: 1fr; }
  .chips--big { flex-direction: column; align-items: stretch; }
  .chip--big { justify-content: flex-start; }
  .hero__ctas .btn { width: 100%; }
  .smart__row { flex-direction: column; }
  .smart__go { width: 100%; }
  .flow__q { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .cursor { display: none; }
  [data-reveal] { opacity: 1; transform: none; }
}
