/* ============================================================
   KAIZEN MEDIA — 改善
   Ink, washi, and one seal of vermillion.
   ============================================================ */

:root {
  --ink: #0b0b0e;
  --ink-raised: #141419;
  --ink-line: rgba(237, 235, 228, 0.09);
  --ink-text: #edebe4;
  --ink-muted: #93919b;

  --washi: #f3efe6;
  --washi-deep: #e7e1d2;
  --washi-line: rgba(23, 23, 27, 0.12);
  --washi-text: #17171b;
  --washi-muted: #6e6a5e;

  --shu: #d93a2b;
  --shu-deep: #a62a1e;

  --font-sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 4.25rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--ink);
  color: var(--ink-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* clip, not hidden — hidden creates a scroll container and kills position:sticky */
  overflow-x: hidden;
  overflow-x: clip;
}

::selection { background: var(--shu); color: var(--washi); }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }

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

/* ---------- primitives ---------- */

.container {
  width: min(1180px, 92vw);
  margin-inline: auto;
}
.container--narrow { width: min(860px, 92vw); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--shu);
  margin-bottom: 1.25rem;
}

h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }

h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }

.sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 34em;
  margin-top: 1.25rem;
}
.scene--ink .sub { color: var(--ink-muted); }
.scene--washi .sub { color: var(--washi-muted); }

.scene { padding-block: clamp(6rem, 12vh, 9rem); position: relative; }
.scene--ink { background: var(--ink); color: var(--ink-text); }
.scene--washi { background: var(--washi); color: var(--washi-text); }

/* ---------- seal (the signature) ---------- */

.seal {
  display: inline-grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--shu);
  color: var(--washi);
  font-family: var(--font-sans);
  font-weight: 900;
  border-radius: 18%;
  rotate: -5deg;
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.22),
    0 8px 24px rgba(217, 58, 43, 0.28);
  user-select: none;
}

.seal--mini  { width: 1.9rem;  font-size: 1.05rem; border-radius: 22%; box-shadow: inset 0 0 6px rgba(0,0,0,.2); }
.seal--hero  { width: 4.25rem; font-size: 2.3rem; margin-bottom: 2rem; }
.seal--card  { width: 7.5rem;  font-size: 4rem; }
.seal--big   { width: 100%;    font-size: 4.2rem; }
.seal--period{ width: 1.6rem;  font-size: 0.85rem; vertical-align: baseline; opacity: 0; scale: 2.4; transition: opacity .4s var(--ease-out), scale .4s var(--ease-out); }
.seal--period.on { opacity: 1; scale: 1; }

/* stamp-in entrance for the hero seal */
.seal--hero {
  opacity: 0;
  transform: scale(2.6) rotate(-16deg);
}
.seal--hero.stamped {
  animation: stamp-in 0.55s var(--ease-out) forwards;
}
@keyframes stamp-in {
  0%   { opacity: 0; transform: scale(2.6) rotate(-16deg); }
  55%  { opacity: 1; transform: scale(0.94) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

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

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.25s var(--ease-out), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn--seal {
  background: var(--shu);
  color: var(--washi);
  box-shadow: 0 6px 22px rgba(217, 58, 43, 0.25);
}
.btn--seal:hover { background: var(--shu-deep); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--ink-line);
  color: var(--ink-text);
}
.btn--ghost:hover { border-color: rgba(237, 235, 228, 0.35); transform: translateY(-2px); }

.btn--sm  { padding: 0.55rem 1.2rem; font-size: 0.82rem; }
.btn--big { padding: 1.1rem 2.6rem; font-size: 1.05rem; }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(11, 11, 14, 0.62);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ink-line);
  transition: transform 0.4s var(--ease-out);
}
.nav--hidden { transform: translateY(-100%); }

.nav__inner {
  width: min(1280px, 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav__logo { display: flex; align-items: center; gap: 0.65rem; }

.nav__wordmark {
  font-weight: 900;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
}
.nav__wordmark em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 0.35em;
}

.nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.2s;
  position: relative;
}
.nav__links a:hover { color: var(--ink-text); }
.nav__links a.active { color: var(--ink-text); }
.nav__links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.5rem;
  height: 2px;
  background: var(--shu);
  border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: 1rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.6rem 0.4rem;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: var(--ink-text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vh 8vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 1.4rem; }
.mobile-menu a {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.mobile-menu__cta { color: var(--shu); }
.mobile-menu__foot {
  margin-top: 3.5rem;
  color: var(--ink-muted);
}

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: 0.35;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 42% 45%, black 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 75% 65% at 42% 45%, black 25%, transparent 75%);
}

.hero__kanji {
  position: absolute;
  top: 50%;
  right: 2vw;
  translate: 0 calc(-50% + var(--ky, 0px));
  writing-mode: vertical-rl;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(6rem, 12.5vw, 12.5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: rgba(237, 235, 228, 0.035);
  -webkit-text-stroke: 1px rgba(237, 235, 228, 0.11);
  pointer-events: none;
  white-space: nowrap;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .lede { margin-inline: auto; }
.hero__cta { justify-content: center; }
.hero__proof { justify-content: center; }

.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 6.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}
.hero__line { display: block; }
.hero__line--em { color: var(--shu); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 33em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.75rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  translate: -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-muted);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--ink-muted), transparent);
  animation: scroll-pulse 2.2s var(--ease-out) infinite;
  transform-origin: top;
}
@keyframes scroll-pulse {
  0%   { transform: scaleY(0); opacity: 0; }
  35%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(18px); opacity: 0; }
}

/* entrance choreography */
.hero .eyebrow, .hero__title .hero__line, .hero .lede, .hero__cta {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.9s var(--ease-out) forwards;
}
.hero .eyebrow            { animation-delay: 0.45s; }
.hero__line:nth-child(1)  { animation-delay: 0.60s; }
.hero__line:nth-child(2)  { animation-delay: 0.74s; }
.hero .lede               { animation-delay: 0.92s; }
.hero__cta                { animation-delay: 1.08s; }
@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- marquee ---------- */

.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--ink-line);
  background: var(--ink);
  padding-block: 1.1rem;
}
.marquee__track {
  flex-shrink: 0;
  display: flex;
  animation: marquee 36s linear infinite;
}
.marquee__track span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-right: 0.5rem;
}
.marquee__track i {
  font-style: normal;
  color: var(--shu);
  margin-inline: 1.1rem;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ---------- manifesto ---------- */

.manifesto { padding-block: clamp(7rem, 16vh, 11rem); }

.manifesto__text {
  font-size: clamp(1.55rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.manifesto__text .w {
  color: rgba(23, 23, 27, 0.3);
  transition: color 0.35s;
}
.manifesto__text .w.on { color: var(--washi-text); }
.manifesto__text .w.brand { font-weight: 900; }
.manifesto__text .w.brand.on { color: var(--shu); }
.manifesto__seal { margin-left: 0.6rem; }

/* ---------- services ---------- */

.services__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.ai-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.4rem;
}
.ai-toggle__label {
  color: var(--ink-muted);
  transition: color 0.25s;
}
.ai-toggle__label.on { color: var(--ink-text); }

.ai-switch {
  position: relative;
  width: 68px;
  height: 34px;
  border-radius: 999px;
  background: var(--ink-raised);
  border: 1px solid rgba(237, 235, 228, 0.16);
  transition: background 0.3s, border-color 0.3s;
}
.ai-switch__knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--ink-text);
  transition: translate 0.3s var(--ease-out), background 0.3s;
}
.ai-switch[aria-checked="true"] {
  background: var(--shu);
  border-color: var(--shu);
}
.ai-switch[aria-checked="true"] .ai-switch__knob {
  translate: 34px 0;
  background: var(--washi);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 20px;
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.35s, box-shadow 0.35s, translate 0.35s var(--ease-out);
}
.card:hover {
  border-color: rgba(217, 58, 43, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  translate: 0 -4px;
}

.card h3 { font-size: 1.22rem; letter-spacing: -0.01em; }

.card__body {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.swap {
  display: grid;
  font-size: 0.95rem;
  min-height: 3em;
}
.swap span {
  grid-area: 1 / 1;
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.swap .t-classic { color: var(--ink-text); }
.swap .t-ai {
  color: var(--shu);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}
.services.ai .swap .t-classic { opacity: 0; transform: translateY(-8px); }
.services.ai .swap .t-ai { opacity: 1; transform: none; }

.card__tag {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--ink-line);
  color: var(--ink-muted);
  letter-spacing: 0.12em;
}

/* what's-included expanders */
.card__more {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--shu);
  padding-bottom: 0.15rem;
  border-bottom: 1px dashed transparent;
  transition: border-color 0.25s;
}
.card__more:hover { border-color: rgba(217, 58, 43, 0.5); }
.card__more i { font-style: normal; transition: transform 0.3s var(--ease-out); }
.card.open .card__more i { transform: rotate(45deg); }

.card__panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease-out);
}
.card.open .card__panel { max-height: 30rem; }
.card__panel ul {
  padding-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.card__panel li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.card__panel li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--shu);
}
.card__eta {
  margin: 0.9rem 0 0.4rem;
  color: var(--shu);
  letter-spacing: 0.12em;
}

/* ---------- depth ---------- */

.depth {
  height: 300vh;
  background: var(--ink);
  color: var(--ink-text);
  position: relative;
}

.depth__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 80% 55%, rgba(217, 58, 43, 0.05), transparent 60%),
    var(--ink);
}

.depth__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
  width: min(1180px, 92vw);
}

.depth__copy { position: relative; padding-left: 2.25rem; }

.depth__level { margin-top: 2.5rem; min-height: 9rem; }

.depth__name {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--shu);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.depth__desc {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  max-width: 30em;
  font-size: 1.02rem;
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.depth__level.switching .depth__name,
.depth__level.switching .depth__desc {
  opacity: 0;
  transform: translateY(10px);
}

.depth__meter {
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 2px;
  background: var(--ink-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.depth__meter-fill {
  position: absolute;
  inset: 0;
  background: var(--shu);
  transform-origin: top;
  transform: scaleY(0);
}
.depth__meter i {
  position: relative;
  left: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--ink-raised);
  border: 1px solid rgba(237, 235, 228, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transition: border-color 0.25s, background 0.25s;
}
.depth__meter i:hover { border-color: var(--shu); }
.depth__meter i.on { background: var(--shu); border-color: var(--shu); }

.depth__num {
  font-weight: 900;
  font-family: var(--font-mono);
  font-size: clamp(8rem, 21vw, 19rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(237, 235, 228, 0.2);
  letter-spacing: -0.04em;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.depth__num.switching { opacity: 0; transform: translateY(14px) scale(0.98); }

.depth__vis {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}
.depth__stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 9px;
  width: 190px;
}
.depth__stack i {
  height: 24px;
  border: 1px solid rgba(237, 235, 228, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  transform: skewX(-18deg);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.depth__stack i.lit {
  border-color: rgba(217, 58, 43, 0.45);
  background: rgba(217, 58, 43, 0.1);
}
.depth__stack i.on {
  background: var(--shu);
  border-color: var(--shu);
  box-shadow: 0 6px 26px rgba(217, 58, 43, 0.4);
}

/* ---------- process ---------- */

.process__wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  margin-top: 3.5rem;
}

.process__loop {
  position: relative;
  width: min(340px, 78vw);
  aspect-ratio: 1;
}
.loop-svg { width: 100%; height: 100%; }
.loop-track {
  fill: none;
  stroke: var(--washi-line);
  stroke-width: 2;
}
.loop-arc {
  fill: none;
  stroke: var(--shu);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 22 78;
  stroke-dashoffset: 11;
  transform-origin: 50% 50%;
  transform: rotate(-90deg);
  transition: transform 0.7s var(--ease-out);
}

.loop-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.seal--loop { width: 4.75rem; font-size: 2.3rem; }

.loop-node {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--washi-muted);
  background: var(--washi);
  padding: 0.2rem 0.5rem;
  transition: color 0.3s;
}
.loop-node--n { top: -0.4rem; left: 50%; translate: -50%; }
.loop-node--e { right: -0.9rem; top: 50%; translate: 0 -50%; }
.loop-node--s { bottom: -0.4rem; left: 50%; translate: -50%; }
.loop-node--w { left: -0.9rem; top: 50%; translate: 0 -50%; }
.loop-node.on { color: var(--shu); }

.process__steps {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  counter-reset: none;
}

.step {
  padding: 1.1rem 1.4rem;
  border-left: 2px solid transparent;
  border-radius: 0 14px 14px 0;
  cursor: pointer;
  opacity: 0.45;
  transition: opacity 0.35s, border-color 0.35s, background 0.35s;
}
.step:hover { opacity: 0.8; }
.step.active {
  opacity: 1;
  border-left-color: var(--shu);
  background: rgba(23, 23, 27, 0.04);
}
.step__num { color: var(--shu); }
.step h3 { font-size: 1.15rem; margin-top: 0.3rem; }
.step p { color: var(--washi-muted); font-size: 0.95rem; margin-top: 0.2rem; }

/* ---------- engagement timeline ---------- */

.engage {
  margin-top: 4.5rem;
  border-top: 1px solid var(--washi-line);
  padding-top: 3rem;
}
.engage__title { font-size: 1.5rem; margin-bottom: 2rem; }
.engage__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.engage__steps li { padding-top: 1rem; border-top: 2px solid var(--washi-line); }
.engage__steps .mono { color: var(--shu); font-size: 0.6rem; }
.engage__steps b { display: block; margin: 0.4rem 0 0.3rem; font-size: 1rem; }
.engage__steps p { font-size: 0.85rem; color: var(--washi-muted); }

/* ---------- why kaizen ---------- */

.why { margin-top: 5rem; }
.why__title { font-size: 1.5rem; margin-bottom: 2rem; }
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.why__item {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  transition: border-color 0.3s;
}
.why__item:hover { border-color: rgba(217, 58, 43, 0.4); }
.why__item b { display: block; margin-bottom: 0.4rem; font-size: 0.98rem; }
.why__item p { font-size: 0.88rem; color: var(--ink-muted); }
.why__foot { margin-top: 1.6rem; color: var(--ink-muted); letter-spacing: 0.14em; }

/* ---------- about ---------- */

.about__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about__quote {
  margin-top: 1.5rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--shu);
}

.about__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.75rem;
}
.about__stats dt {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--shu);
  line-height: 1;
}
.about__stats dd {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  max-width: 9em;
}

.about__card {
  background: linear-gradient(160deg, var(--ink-raised), #0e0e12);
  border: 1px solid var(--ink-line);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.about__card .seal--card { margin-bottom: 1.75rem; }
.about__name { color: var(--ink-text); letter-spacing: 0.2em; }
.about__role, .about__loc { color: var(--ink-muted); }

/* ---------- contact ---------- */

.contact {
  text-align: center;
  padding-block: clamp(7rem, 15vh, 11rem);
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18%;
  translate: -50%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(217, 58, 43, 0.13), transparent 65%);
  pointer-events: none;
}
.contact__inner { position: relative; }
.contact .sub { margin-inline: auto; }

.stamp-zone__hint {
  color: var(--ink-muted);
  transition: opacity 0.3s;
}

.stamp-btn {
  width: 7.5rem;
  transition: transform 0.18s var(--ease-out), opacity 0.4s;
}
.stamp-btn:hover { transform: translateY(-4px); }
.stamp-btn:active { transform: translateY(6px) scale(0.96); }
.stamp-btn .seal--big { transition: box-shadow 0.3s; }
.stamp-btn:hover .seal--big {
  box-shadow:
    inset 0 0 14px rgba(0, 0, 0, 0.22),
    0 14px 40px rgba(217, 58, 43, 0.45);
}

/* the project brief form — the seal is the send button */
.brief { margin-top: 3rem; text-align: left; }
.brief__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field--full { grid-column: 1 / -1; }
.field .mono { color: var(--ink-muted); font-size: 0.62rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink-text);
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  transition: border-color 0.25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--shu);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2393919b' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.brief__submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.brief__err {
  text-align: center;
  color: #e08573;
  margin-top: 1rem;
  letter-spacing: 0.1em;
  min-height: 1.2em;
}
.brief.shake .stamp-btn { animation: browser-shake 0.45s ease; }

.contact__mail {
  color: var(--ink-text);
  border-bottom: 1px dashed var(--ink-muted);
  transition: color 0.2s, border-color 0.2s;
}
.contact__mail:hover { color: var(--shu); border-color: var(--shu); }
.contact__meta { margin-top: 3rem; color: var(--ink-muted); }

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

.footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-line);
  padding-top: 4rem;
  color: var(--ink-text);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  letter-spacing: 0.14em;
}
.footer__logo b { font-weight: 900; }
.footer__line {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  max-width: 24em;
}
.footer__tag { margin-top: 1.4rem; color: var(--ink-muted); }
.footer__accent { color: var(--shu); }

.footer__col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer__head { color: var(--shu); margin-bottom: 0.35rem; }
.footer__col a,
.footer__col span {
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.footer__col a { transition: color 0.2s; width: fit-content; }
.footer__col a:hover { color: var(--ink-text); }
.footer__cta { margin-top: 0.5rem; color: var(--shu) !important; font-weight: 700; }

.footer__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink-line);
  padding-block: 1.4rem;
  color: var(--ink-muted);
}
.footer .seal--mini { vertical-align: middle; }

/* ---------- back to top ---------- */

.totop {
  position: fixed;
  right: 1.2rem;
  bottom: 1.1rem;
  z-index: 60;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(11, 11, 14, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s, color 0.2s, border-color 0.2s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { color: var(--ink-text); border-color: rgba(237, 235, 228, 0.3); }

/* ---------- hero proof chips ---------- */

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.4rem;
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.9s var(--ease-out) forwards;
  animation-delay: 1.24s;
}
.hero__proof li {
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.6rem;
}

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

.nav__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--shu);
  border-radius: 2px;
}

/* ---------- numbers band ---------- */

.numbers {
  padding-block: 3.2rem;
  background: linear-gradient(180deg, var(--ink), #101015 55%, var(--ink));
  border-block: 1px solid var(--ink-line);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.num b {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--shu);
  line-height: 1;
}
.num span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* ---------- founder quote ---------- */

.quote {
  margin-top: 4rem;
  padding: 2rem 2.4rem;
  border-left: 3px solid var(--shu);
  background: var(--ink-raised);
  border-radius: 0 20px 20px 0;
}
.quote blockquote {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.quote figcaption { margin-top: 1.2rem; color: var(--ink-muted); }

/* ---------- service card icons ---------- */

.card__icon {
  width: 2.7rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(217, 58, 43, 0.1);
  border: 1px solid rgba(217, 58, 43, 0.3);
  border-radius: 12px;
  color: var(--shu);
  margin-bottom: 0.3rem;
}
.card__icon svg { width: 1.4rem; }

/* ---------- reveal system ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out) var(--d, 0s), transform 0.85s var(--ease-out) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 1000px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 1fr; }
  .about__card { max-width: 420px; }
}

@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__actions .btn { display: none; }

  .depth { height: 420vh; }
  .depth__inner { grid-template-columns: 1fr; gap: 1rem; }
  .depth__num {
    order: -1;
    font-size: clamp(6rem, 26vw, 9rem);
  }
  .depth__level { min-height: 11rem; }

  .process__wrap { grid-template-columns: 1fr; justify-items: center; }
  .process__steps { width: 100%; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .swap { min-height: 0; }
  .hero__kanji { font-size: 21vw; right: -2vw; opacity: 0.8; }
  .hero__scroll { display: none; }
  .services__head { margin-bottom: 2.5rem; }
  .about__stats { flex-wrap: wrap; }
  .brief__grid { grid-template-columns: 1fr; }
}

/* ---------- track record ---------- */

.exp-list {
  margin-top: 3.5rem;
  border-bottom: 1px solid var(--washi-line);
}

.exp {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem 3rem;
  padding-block: 2.4rem;
  border-top: 1px solid var(--washi-line);
}
.exp h3 { font-size: 1.35rem; transition: color 0.3s; }
.exp:hover h3 { color: var(--shu); }
.exp__meta {
  margin-top: 0.6rem;
  color: var(--washi-muted);
  line-height: 1.9;
}
.exp__body {
  color: rgba(23, 23, 27, 0.78);
  font-size: 0.98rem;
  max-width: 46em;
}
.exp__tags {
  margin-top: 1.1rem;
  color: var(--washi-muted);
  letter-spacing: 0.12em;
}
.exp__more {
  margin-top: 1.1rem;
  color: var(--shu);
  letter-spacing: 0.12em;
  padding-bottom: 0.15rem;
  border-bottom: 1px dashed rgba(217, 58, 43, 0.45);
  transition: border-color 0.2s;
}
.exp__more:hover { border-bottom-style: solid; }

@media (max-width: 760px) {
  .exp { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ---------- hero particle canvas ---------- */

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.hero__kanji { transition: opacity 0.6s; }
.hero.has-canvas .hero__kanji { opacity: 0; }

/* ---------- the game: improve this website ---------- */

.game__wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}

.browser {
  border-radius: 14px;
  border: 1px solid var(--washi-line);
  box-shadow: 0 24px 60px rgba(23, 23, 27, 0.14);
  overflow: hidden;
  background: #fff;
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0.9rem;
  background: var(--washi-deep);
  border-bottom: 1px solid var(--washi-line);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d9695c;
}
.browser__dots i:nth-child(2) { background: #e0b352; }
.browser__dots i:nth-child(3) { background: #7fb069; }
.browser__url {
  flex: 1;
  text-align: center;
  color: var(--washi-muted);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

/* the mock site — stage 0 is gloriously terrible */
.browser__view {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  font-size: 10.5px;
  background: #ffffff;
  color: #000;
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive;
}
.browser__view * { transition: all 0.55s ease; }

.mock__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8em 1em;
  background: #7fdfff;
  border-bottom: 2px solid #0077cc;
}
.mock__logo {
  font-weight: bold;
  font-size: 1.2em;
  color: #cc0000;
  text-decoration: underline;
}
.mock__nav i {
  font-style: normal;
  color: #0000ee;
  text-decoration: underline;
  margin-left: 0.9em;
  font-size: 0.95em;
}
.mock__hero { padding: 0.9em 1em; }
.mock__hero h4 {
  font-size: 1.5em;
  color: #d10000;
  letter-spacing: 0;
  margin-bottom: 0.35em;
  text-transform: uppercase;
}
.mock__hero p { font-size: 1em; line-height: 1.4; }
.mock__btn {
  margin-top: 0.8em;
  font-family: inherit;
  font-size: 1em;
  font-weight: bold;
  padding: 0.35em 0.9em;
  background: #d4d0c8;
  color: #000;
  border: 2px outset #fff;
  border-radius: 0;
  cursor: pointer;
}
.mock__row { display: flex; gap: 2px; padding: 0 1em; }
.mock__card {
  border: 1px solid #000;
  border-radius: 0;
  padding: 0.5em;
  flex: 1;
  background: #fff;
}
.mock__card:nth-child(1) { flex: 1.5; }
.mock__card b { display: block; font-size: 1em; }
.mock__card span { font-size: 0.88em; }
.mock__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8em;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 0.9em 1em 1.1em;
  font-size: 0.85em;
}
.mock__counter { color: #007700; }
.mock__copyright { display: none; color: var(--washi-muted); }
.mock__speed .bad { font-style: normal; color: #cc0000; font-weight: bold; }
.mock__speed .good { display: none; font-style: normal; color: #2c9c52; font-weight: bold; }

.mock__chat {
  position: absolute;
  right: 0.9em;
  bottom: 3.6em;
  max-width: 17em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--shu);
  color: var(--washi);
  font-family: var(--font-sans);
  font-size: 0.95em;
  line-height: 1.3;
  padding: 0.65em 0.9em;
  border-radius: 12px 12px 2px 12px;
  box-shadow: 0 8px 22px rgba(217, 58, 43, 0.35);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
}
.mock__chat-dot {
  flex-shrink: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9df5b5;
  animation: chat-pulse 1.6s ease infinite;
}
@keyframes chat-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(157, 245, 181, 0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(157, 245, 181, 0); }
}

.mock__stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
  background: rgba(243, 239, 230, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  color: var(--washi-text);
  letter-spacing: 0.2em;
  opacity: 0;
  pointer-events: none;
}
.seal--approve { width: 4.5rem; font-size: 2.2rem; }

/* stage upgrades — cumulative classes s1..s5 */
.browser__view.s1 { font-family: var(--font-sans); }
.browser__view.s1 .mock__hero h4 { text-transform: none; font-weight: 900; font-size: 1.7em; letter-spacing: -0.01em; }
.browser__view.s1 .mock__logo { text-decoration: none; font-weight: 900; }
.browser__view.s1 .mock__btn { font-weight: 700; }

.browser__view.s2 { background: var(--washi); color: var(--washi-text); }
.browser__view.s2 .mock__header { background: var(--ink); border-bottom-color: transparent; }
.browser__view.s2 .mock__logo { color: var(--washi); display: inline-flex; align-items: center; gap: 0.45em; }
.browser__view.s2 .mock__logo::before {
  content: "";
  width: 1em;
  height: 1em;
  border-radius: 22%;
  background: var(--shu);
  rotate: -5deg;
}
.browser__view.s2 .mock__nav i { color: #9b99a4; text-decoration: none; }
.browser__view.s2 .mock__hero h4 { color: var(--washi-text); }
.browser__view.s2 .mock__hero p { color: rgba(23, 23, 27, 0.7); }
.browser__view.s2 .mock__btn { background: var(--shu); color: var(--washi); border: 2px solid transparent; }
.browser__view.s2 .mock__card { border-color: rgba(23, 23, 27, 0.14); background: #fbf8f1; }
.browser__view.s2 .mock__counter { color: var(--washi-muted); }

.browser__view.s3 .mock__header { padding: 1em 1.5em; }
.browser__view.s3 .mock__hero { padding: 2em 1.5em 1.6em; text-align: center; }
.browser__view.s3 .mock__hero h4 { font-size: 2em; }
.browser__view.s3 .mock__hero p { max-width: 32em; margin-inline: auto; font-size: 0.95em; }
.browser__view.s3 .mock__btn { border-radius: 999px; padding: 0.6em 1.6em; margin-top: 1.1em; }
.browser__view.s3 .mock__row { gap: 0.9em; padding: 0 1.5em; }
.browser__view.s3 .mock__card { border-radius: 10px; padding: 1em; }
.browser__view.s3 .mock__card:nth-child(1) { flex: 1; }
.browser__view.s3 .mock__foot { padding: 1.3em 1.5em 1.5em; }

.browser__view.s4 .mock__counter { display: none; }
.browser__view.s4 .mock__copyright { display: inline; }
.browser__view.s4 .mock__speed .bad { display: none; }
.browser__view.s4 .mock__speed .good { display: inline; }

.browser__view.s5 .mock__chat { opacity: 1; transform: none; }

.browser__view.complete .mock__stamp { opacity: 1; }
.browser__view.complete .seal--approve { animation: stamp-in 0.5s var(--ease-out) both; }

/* after the moment lands, the stamp settles into a corner badge
   so the improved site stays visible */
.mock__stamp,
.mock__stamp .seal--approve,
.mock__stamp .mono { transition: all 0.6s var(--ease-out); }
.browser__view.settled .mock__stamp {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  place-content: start end;
  padding: 2.6em 1em 0 0;
}
.browser__view.settled .seal--approve { width: 2.1rem; font-size: 1rem; }
.browser__view.settled .mock__stamp .mono { display: none; }

@keyframes browser-shake {
  0%, 100% { transform: none; }
  20% { transform: translateX(-5px) rotate(-0.4deg); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px) rotate(0.3deg); }
  80% { transform: translateX(2px); }
}
.browser.celebrate { animation: browser-shake 0.5s ease; }

/* the panel */
.score { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.score__label { color: var(--washi-muted); }
.score__num { font-weight: 900; font-size: 2.6rem; line-height: 1; letter-spacing: -0.02em; }
.score__num em { font-style: normal; font-weight: 400; font-size: 1rem; color: var(--washi-muted); }
.score__bar {
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background: var(--washi-line);
  overflow: hidden;
  margin-top: 0.9rem;
}
.score__bar i {
  display: block;
  height: 100%;
  width: 23%;
  background: var(--shu);
  transition: width 0.6s var(--ease-out);
}

.fixes { margin-top: 1.8rem; display: flex; flex-direction: column; gap: 0.6rem; }
.fix {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--washi-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.3s, opacity 0.3s, transform 0.3s var(--ease-out);
}
.fix:disabled { opacity: 0.35; cursor: default; }
.fix:not(:disabled):not(.done):hover { border-color: rgba(217, 58, 43, 0.5); transform: translateX(5px); }
.fix__num { color: var(--shu); }
.fix__text b { display: block; font-size: 0.98rem; }
.fix__text small { color: var(--washi-muted); font-size: 0.8rem; }
.fix__seal {
  width: 1.7rem;
  font-size: 0.9rem;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  scale: 1.8;
  transition: opacity 0.35s var(--ease-out), scale 0.35s var(--ease-out);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}
.fix.done { opacity: 0.6; }
.fix.done .fix__seal { opacity: 1; scale: 1; }

.game__done {
  margin-top: 1.7rem;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
}
.game__done.show { display: flex; }
.game__done p { font-size: 0.97rem; }
.game__reset {
  color: var(--washi-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
  border-bottom: 1px dashed var(--washi-muted);
  padding-bottom: 0.15rem;
}
.game__reset:hover { color: var(--shu); border-color: var(--shu); }

/* ---------- workbench: live component demos ---------- */

.wb { margin-top: 3rem; }

.wb__tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.wb__tab {
  text-align: left;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  background: var(--ink-raised);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.wb__tab:hover { transform: translateY(-3px); border-color: rgba(237, 235, 228, 0.25); }
.wb__tab.active {
  border-color: rgba(217, 58, 43, 0.55);
  background: rgba(217, 58, 43, 0.08);
}
.wb__tab-client {
  display: block;
  color: var(--ink-muted);
  font-size: 0.6rem;
  margin-bottom: 0.3rem;
}
.wb__tab.active .wb__tab-client { color: var(--shu); }
.wb__tab b { font-size: 0.95rem; font-weight: 700; }

.wb__stage {
  background: var(--ink-raised);
  border-color: var(--ink-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.wb__stage .browser__bar { background: #1b1b21; border-color: var(--ink-line); }
.wb__stage .browser__url { background: rgba(255, 255, 255, 0.06); color: var(--ink-muted); }

.wb__frame {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: #fff;
  transition: height 0.4s var(--ease-out);
}
.wb__note { margin-top: 1rem; color: var(--ink-muted); letter-spacing: 0.1em; }

@media (max-width: 900px) {
  .wb__tabs { grid-template-columns: repeat(2, 1fr); }
  .wb__frame { height: 480px; }
}

/* ---------- faq ---------- */

.faq__list { margin-top: 3rem; border-top: 1px solid var(--washi-line); }
.qa { border-bottom: 1px solid var(--washi-line); }
.qa__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  text-align: left;
  padding: 1.15rem 0.2rem;
  font-weight: 700;
  font-size: 1.02rem;
}
.qa__q i {
  flex-shrink: 0;
  font-style: normal;
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--shu);
  transition: transform 0.35s var(--ease-out);
}
.qa.open .qa__q i { transform: rotate(45deg); }
.qa__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease-out);
}
.qa.open .qa__a { max-height: 16rem; }
.qa__a p {
  padding: 0 0.2rem 1.2rem;
  color: var(--washi-muted);
  font-size: 0.95rem;
  max-width: 46em;
}

/* ---------- case study modal ---------- */

.csmodal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.csmodal[hidden] { display: none; }
.csmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 14, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.csmodal__dialog {
  position: relative;
  width: min(780px, 100%);
  max-height: 86vh;
  overflow: auto;
  background: var(--washi);
  color: var(--washi-text);
  border-radius: 22px;
  padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  animation: cs-in 0.35s var(--ease-out);
}
@keyframes cs-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
}
.csmodal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 2.4rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--washi-line);
  background: var(--washi);
  color: var(--washi-muted);
  font-size: 1.3rem;
  line-height: 1;
  z-index: 2;
  transition: color 0.2s, border-color 0.2s;
}
.csmodal__close:hover { color: var(--shu); border-color: var(--shu); }

.cs { display: none; }
.cs.active { display: block; }
.cs h3 { font-size: 2rem; margin: 0.4rem 0 0.3rem; }
.cs__meta { color: var(--washi-muted); margin-bottom: 1.2rem; }
.cs__lede { font-size: 1.05rem; margin-bottom: 1.4rem; max-width: 40em; }
.cs h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--shu);
  margin: 1.5rem 0 0.6rem;
}
.cs ul { display: flex; flex-direction: column; gap: 0.45rem; }
.cs li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  color: rgba(23, 23, 27, 0.8);
}
.cs li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--shu);
}
.cs__kaizen {
  margin-top: 1.6rem;
  padding: 1rem 1.2rem;
  background: rgba(217, 58, 43, 0.07);
  border-left: 3px solid var(--shu);
  border-radius: 0 12px 12px 0;
  font-size: 0.95rem;
}
.cs__stack { margin-top: 1.2rem; color: var(--washi-muted); letter-spacing: 0.12em; }
.csmodal__cta { margin-top: 2rem; }
body.modal-open { overflow: hidden; }

/* ---------- pipeline: watch a website happen ---------- */

.flow__stage {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.2rem;
  margin-top: 3rem;
  align-items: stretch;
}

.flow__editor {
  display: flex;
  flex-direction: column;
  background: #0e0e13;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  overflow: hidden;
}
.flow__editor-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: #15151b;
  color: var(--ink-muted);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
}
.flow__editor-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2c2c34; }
.flow__editor-bar span { margin-left: 0.5rem; }
.flow__code {
  flex: 1;
  margin: 0;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.85;
  color: #b9b7c4;
  overflow: hidden;
  min-height: 240px;
}
.flow__code .c-dim { color: #6f6d7c; }
.flow__code .c-red { color: var(--shu); }

.flow__browser { display: flex; flex-direction: column; }
.flow__live {
  margin-left: 0.6rem;
  color: #2c9c52;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.3s var(--ease-out), scale 0.3s var(--ease-out);
}
.flow__live.on { opacity: 1; scale: 1; }

.flow__view {
  flex: 1;
  position: relative;
  background: var(--washi);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 300px;
}
.fv__note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--washi-muted);
  letter-spacing: 0.22em;
  transition: opacity 0.4s;
}
.fv__header, .fv__hero, .fv__cards {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}
.fv__header { display: flex; justify-content: space-between; align-items: center; }
.fv__logo { width: 34px; height: 12px; background: #d8d2c2; border-radius: 4px; transition: all 0.5s var(--ease-out); }
.fv__nav { display: flex; gap: 8px; }
.fv__nav i { width: 26px; height: 8px; background: #d8d2c2; border-radius: 4px; transition: all 0.5s; }
.fv__hero { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 1.2rem 0; }
.fv__h1 { width: 58%; height: 16px; background: #ddd6c4; border-radius: 5px; transition: all 0.5s; }
.fv__h2 { width: 40%; height: 9px; background: #e3ddcc; border-radius: 5px; transition: all 0.5s; }
.fv__btn { width: 86px; height: 20px; background: #d8d2c2; border-radius: 999px; margin-top: 4px; transition: all 0.5s; }
.fv__cards { display: flex; gap: 10px; }
.fv__cards i { flex: 1; height: 52px; background: #e7e1d0; border: 1px solid #ddd6c2; border-radius: 8px; transition: all 0.5s; }
.fv__metrics {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  padding-top: 0.4rem;
  opacity: 0;
  transition: opacity 0.5s;
}
.fvm { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fvm i {
  width: 100%;
  height: 46px;
  background: linear-gradient(180deg, rgba(217, 58, 43, 0.85), rgba(217, 58, 43, 0.3));
  border-radius: 6px 6px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease-out);
}
.fvm .mono { font-size: 0.52rem; color: var(--washi-muted); }

.ph-design .fv__note { opacity: 0; }
.ph-design .fv__header { opacity: 1; transform: none; }
.ph-design .fv__hero { opacity: 1; transform: none; transition-delay: 0.15s; }
.ph-design .fv__cards { opacity: 1; transform: none; transition-delay: 0.3s; }
.ph-build .fv__logo { background: var(--shu); width: 16px; height: 16px; border-radius: 22%; rotate: -5deg; }
.ph-build .fv__nav i { background: #17171b; height: 6px; }
.ph-build .fv__h1 { background: #17171b; height: 18px; width: 64%; }
.ph-build .fv__h2 { background: #8b8574; }
.ph-build .fv__btn { background: var(--shu); }
.ph-build .fv__cards i { background: #fff; border-color: rgba(217, 58, 43, 0.35); }
.ph-improve .fv__metrics { opacity: 1; }
.ph-improve .fvm i { transform: scaleY(var(--h)); }

.flow__rail { display: flex; gap: 0.6rem; margin-top: 1.4rem; flex-wrap: wrap; }
.flow__rail li {
  padding: 0.5rem 1rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.flow__rail li.active {
  color: var(--ink-text);
  border-color: rgba(217, 58, 43, 0.6);
  background: rgba(217, 58, 43, 0.08);
}

@media (max-width: 900px) {
  .flow__stage { grid-template-columns: 1fr; }
  .flow__code { min-height: 170px; }
}

/* ---------- the lab ---------- */

.nav__links .nav__lab { color: var(--shu); font-weight: 700; }
.nav__links .nav__lab:hover { color: var(--shu); opacity: 0.8; }

.lab-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.lab-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-hero__inner { position: relative; z-index: 2; }
.lab-hero__inner h1 {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  letter-spacing: -0.03em;
}
.lab-hero__inner .lede { max-width: 42em; }
.lab-hero__shadernote {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50%;
  z-index: 2;
  color: rgba(237, 235, 228, 0.55);
  letter-spacing: 0.18em;
  text-align: center;
}

.lab-ex { padding-block: 4.5rem; border-top: 1px solid var(--ink-line); }
.lab-ex__head { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; }
.lab-ex__num { color: var(--shu); }
.lab-ex h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.lab-ex__cap { margin-top: 0.8rem; color: var(--ink-muted); max-width: 46em; }
.lab-ex__how { margin-top: 0.6rem; color: var(--ink-muted); letter-spacing: 0.14em; font-size: 0.6rem; }
.lab-stage {
  position: relative;
  margin-top: 2rem;
  border: 1px solid var(--ink-line);
  border-radius: 18px;
  overflow: hidden;
  background: #0d0d12;
}
.lab-stage canvas { display: block; width: 100%; touch-action: none; }

.dna { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2rem; }
.dna textarea {
  width: 100%;
  min-height: 380px;
  resize: vertical;
  background: #0e0e13;
  color: #b9b7c4;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
}
.dna textarea:focus { outline: none; border-color: var(--shu); }
.dna__panel {
  display: grid;
  place-items: center;
  background: #131318;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  padding: 2rem;
}
.demo {
  width: min(320px, 100%);
  background: #f3efe6;
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: all 0.3s;
}
.demo h3 { color: #17171b; font-size: 1.3rem; }
.demo p { color: #6e6a5e; font-size: 0.92rem; }
.demo .pill {
  align-self: flex-start;
  background: #d93a2b;
  color: #f3efe6;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}

.lab-comet {
  position: fixed;
  inset: 0;
  z-index: 45;
  pointer-events: none;
}

.donut-pre {
  margin: 0;
  min-height: 380px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.05;
  letter-spacing: 1px;
  color: #edebe4;
  text-shadow: 0 0 12px rgba(217, 58, 43, 0.35);
}

.term {
  min-height: 400px;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.75;
  color: #c9c7d4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: text;
}
.term__out { white-space: pre-wrap; overflow-y: auto; max-height: 320px; }
.term__out .t-red { color: var(--shu); }
.term__out .t-dim { color: #6f6d7c; }
.term__line { display: flex; gap: 0.5rem; margin-top: 0.4rem; align-items: baseline; }
.term__ps { color: var(--shu); font-size: 0.72rem; }
.term input {
  flex: 1;
  background: none;
  border: 0;
  color: #edebe4;
  font: inherit;
}
.term input:focus { outline: none; }

.pads {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.7rem;
  padding: 1.4rem;
}
.pad {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid var(--ink-line);
  background: #15151b;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.pad:hover { border-color: rgba(217, 58, 43, 0.5); }
.pad.hit {
  background: var(--shu);
  border-color: var(--shu);
  box-shadow: 0 0 34px rgba(217, 58, 43, 0.55);
  transform: scale(0.95);
}
@media (max-width: 640px) { .pads { grid-template-columns: repeat(4, 1fr); } }

.scratch__wrap { position: relative; }
.scratch__under {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}
.scratch__under b { font-size: 1.5rem; }
.scratch__under p { color: var(--ink-muted); margin-top: 0.6rem; max-width: 34em; }
.scratch__wrap canvas { position: relative; z-index: 1; }

.hud {
  position: absolute;
  right: 0.8rem;
  bottom: 0.6rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(147, 145, 155, 0.9);
  background: rgba(11, 11, 14, 0.55);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  pointer-events: none;
}

.dials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 0.9rem;
}
.dial {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.dial input[type="range"] {
  width: 140px;
  accent-color: var(--shu);
}

.hood {
  margin-top: 1rem;
  border: 1px solid var(--ink-line);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.hood summary {
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  color: var(--shu);
  letter-spacing: 0.14em;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hood summary::-webkit-details-marker { display: none; }
.hood summary::before {
  content: "+";
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease-out);
}
.hood[open] summary::before { transform: rotate(45deg); }
.hood__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.2rem;
  padding: 0 1.2rem 1.2rem;
}
.hood__text p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  max-width: 44em;
}
.hood__code {
  margin: 0;
  background: #0e0e13;
  border: 1px solid var(--ink-line);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.7;
  color: #b9b7c4;
  overflow-x: auto;
}
@media (max-width: 820px) {
  .hood__grid { grid-template-columns: 1fr; }
}

.catalog-sec { padding-block: 4rem; border-top: 1px solid var(--ink-line); }
.catalog {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.35rem 1.4rem;
}
.catalog a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  padding: 0.28rem 0.2rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog a:hover { color: var(--ink-text); background: rgba(217, 58, 43, 0.1); }
.catalog a b { color: var(--shu); font-weight: 500; margin-right: 0.4rem; }

.wing { padding-block: 5rem 2rem; border-top: 1px solid var(--ink-line); }
.wing h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }

.cipher { padding: 2rem; display: flex; flex-direction: column; gap: 1.4rem; min-height: 300px; justify-content: center; }
.cipher input[type="text"] {
  background: #0e0e13;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  color: var(--ink-text);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.14em;
  padding: 0.9rem 1.1rem;
}
.cipher input[type="text"]:focus { outline: none; border-color: var(--shu); }
.cipher__dial b { color: var(--shu); min-width: 2ch; }
.cipher__out {
  font-size: clamp(1.2rem, 3vw, 2rem);
  letter-spacing: 0.2em;
  color: var(--shu);
  word-break: break-all;
  text-transform: none;
}

.haiku { padding: 2.4rem; min-height: 320px; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; justify-content: center; }
.haiku__out {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.7;
  min-height: 5.2em;
  color: var(--ink-text);
  white-space: pre-wrap;
}

.simon { padding: 2rem; min-height: 380px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; }
.simon__status { color: var(--ink-muted); }
.simon__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  width: min(320px, 80%);
}
.simon__pad {
  aspect-ratio: 1.4;
  border-radius: 16px;
  border: 1px solid var(--ink-line);
  transition: filter 0.1s, transform 0.1s, box-shadow 0.15s;
}
.simon__pad:nth-child(1) { background: rgba(217, 58, 43, 0.35); }
.simon__pad:nth-child(2) { background: rgba(240, 232, 218, 0.25); }
.simon__pad:nth-child(3) { background: rgba(255, 176, 138, 0.28); }
.simon__pad:nth-child(4) { background: rgba(147, 145, 155, 0.3); }
.simon__pad.lit {
  filter: brightness(2.4);
  transform: scale(0.96);
  box-shadow: 0 0 34px rgba(217, 58, 43, 0.5);
}

.typing { padding: 2.2rem; min-height: 320px; display: flex; flex-direction: column; gap: 1.4rem; justify-content: center; }
.typing__target {
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-muted);
}
.typing__target .tp-ok { color: var(--ink-text); }
.typing__target .tp-err { color: var(--shu); text-decoration: underline; }
.typing input {
  background: #0e0e13;
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  color: var(--ink-text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
}
.typing input:focus { outline: none; border-color: var(--shu); }
.typing__stats { color: var(--shu); }

/* ---------- applied page ---------- */

.app-hero { padding-block: 10rem 4rem; }
.app-hero__title {
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.app-hero .lede { max-width: 46em; }
.app-hero__note { margin-top: 1.6rem; color: var(--shu); letter-spacing: 0.16em; }

.app-body { padding-top: 1rem; }

.app-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.app-filter {
  padding: 0.55rem 1.05rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.app-filter:hover { color: var(--ink-text); border-color: rgba(237, 235, 228, 0.3); }
.app-filter.active {
  color: var(--ink-text);
  border-color: rgba(217, 58, 43, 0.65);
  background: rgba(217, 58, 43, 0.1);
}
.app-count { color: var(--ink-muted); margin-bottom: 2rem; letter-spacing: 0.14em; }

.app-list { border-bottom: 1px solid var(--ink-line); }
.app-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 1.5rem 3rem;
  padding-block: 2.6rem;
  border-top: 1px solid var(--ink-line);
}
.app-row.hidden { display: none; }
.app-row__num { color: var(--shu); }
.app-row h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-top: 0.4rem; }
.app-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.app-chip {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(217, 58, 43, 0.45);
  border-radius: 999px;
  color: var(--shu);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  transition: background 0.2s, color 0.2s;
}
.app-chip:hover { background: var(--shu); color: var(--washi); }
.app-shipped {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(124, 176, 105, 0.12);
  border: 1px solid rgba(124, 176, 105, 0.4);
  color: #9ec98f;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
}
.app-fits, .app-why { font-size: 0.97rem; color: var(--ink-muted); max-width: 52em; }
.app-fits { margin-bottom: 0.9rem; }
.app-fits b, .app-why b { color: var(--ink-text); font-weight: 700; }

.app-show { padding-block: 2rem 3rem; }
.app-demo { margin-top: 4rem; }
.app-demo__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.app-demo__head h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); margin-top: 0.35rem; }
.app-demo__meta { color: var(--ink-muted); margin-top: 0.4rem; }
.app-demo__side { display: flex; flex-direction: column; align-items: flex-end; gap: 0.8rem; }
.app-demo__side .app-chips { margin-top: 0; justify-content: flex-end; }
.app-open {
  color: var(--ink-text);
  letter-spacing: 0.12em;
  border-bottom: 1px dashed var(--ink-muted);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}
.app-open:hover { color: var(--shu); border-color: var(--shu); }
.app-demo__frame {
  background: var(--ink-raised);
  border-color: var(--ink-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.app-demo__frame .browser__bar { background: #1b1b21; border-color: var(--ink-line); }
.app-demo__frame .browser__url { background: rgba(255, 255, 255, 0.06); color: var(--ink-muted); }
.app-demo__frame iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #101015;
}
.app-demo__note { margin-top: 1rem; color: var(--ink-muted); font-size: 0.92rem; max-width: 62em; }
@media (max-width: 820px) {
  .app-demo__side { align-items: flex-start; }
  .app-demo__side .app-chips { justify-content: flex-start; }
  .app-demo__frame iframe { height: 540px; }
}

.app-cta { text-align: center; padding-block: 6rem 7rem; }
.app-cta .sub { margin-inline: auto; }

@media (max-width: 820px) {
  .app-row { grid-template-columns: 1fr; gap: 1rem; }
  .app-hero { padding-top: 8rem; }
}

.lab-footer {
  border-top: 1px solid var(--ink-line);
  padding-block: 2rem;
}
.lab-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-muted);
}
.lab-footer a { color: var(--ink-text); }
.lab-footer a:hover { color: var(--shu); }

@media (max-width: 800px) {
  .dna { grid-template-columns: 1fr; }
}

/* ---------- version meter ---------- */

.vmeter {
  position: fixed;
  left: 1.2rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-muted);
  font-size: 0.62rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.vmeter.show { opacity: 1; transform: none; }
.vmeter__bar {
  width: 74px;
  height: 2px;
  border-radius: 2px;
  background: rgba(147, 145, 155, 0.35);
  overflow: hidden;
}
.vmeter__bar i {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--shu);
}

/* ---------- click stamps ---------- */

.click-stamp {
  position: fixed;
  z-index: 55;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--shu);
  color: var(--washi);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 13px;
  border-radius: 22%;
  rotate: -6deg;
  translate: -50% -50%;
  pointer-events: none;
  animation: stamp-pop 0.85s var(--ease-out) forwards;
}
@keyframes stamp-pop {
  0%   { opacity: 0; scale: 2.1; }
  25%  { opacity: 0.95; scale: 1; }
  70%  { opacity: 0.95; }
  100% { opacity: 0; scale: 1; }
}

@media (max-width: 900px) {
  .game__wrap { grid-template-columns: 1fr; gap: 1.8rem; }
  .engage__steps { grid-template-columns: 1fr 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .engage__steps { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .totop { bottom: 4rem; }
}
@media (max-width: 1100px) and (min-width: 621px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .vmeter { display: none; }
  .hero__canvas { display: none; }
  .browser__view { font-size: 9.5px; }
}

/* ---------- v2.0 link-outs ---------- */

.card__link {
  color: var(--shu);
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px dashed transparent;
  align-self: flex-start;
  transition: border-color 0.25s;
}
.card__link:hover { border-color: rgba(217, 58, 43, 0.5); }

.exp__links { display: flex; gap: 1.8rem; flex-wrap: wrap; align-items: baseline; }

.cs__pagelink { margin-top: 1.4rem; }
.cs__pagelink a {
  color: var(--shu);
  letter-spacing: 0.12em;
  padding-bottom: 0.15rem;
  border-bottom: 1px dashed rgba(217, 58, 43, 0.45);
  transition: border-color 0.2s;
}
.cs__pagelink a:hover { border-bottom-style: solid; }

/* ---------- plans: straight answers on price ---------- */

.plans { background: var(--washi-deep); }

.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--washi);
  border: 1px solid var(--washi-line);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  transition: border-color 0.35s, box-shadow 0.35s, translate 0.35s var(--ease-out);
}
.plan:hover {
  border-color: rgba(217, 58, 43, 0.45);
  box-shadow: 0 18px 44px rgba(23, 23, 27, 0.12);
  translate: 0 -4px;
}

.plan--featured {
  background: var(--ink);
  color: var(--ink-text);
  border-color: rgba(217, 58, 43, 0.5);
  box-shadow: 0 24px 60px rgba(23, 23, 27, 0.22);
}

.plan__badge {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  translate: -50%;
  background: var(--shu);
  color: var(--washi);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  letter-spacing: 0.14em;
  font-size: 0.58rem;
  box-shadow: 0 6px 18px rgba(217, 58, 43, 0.35);
}

.plan__name { color: var(--shu); letter-spacing: 0.2em; }

.plan__price {
  font-weight: 900;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan__price em {
  display: block;
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--washi-muted);
  margin-bottom: 0.3rem;
}
.plan--featured .plan__price em { color: var(--ink-muted); }
.plan__price i {
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  color: var(--washi-muted);
}
.plan--featured .plan__price i { color: var(--ink-muted); }

.plan__for { font-size: 0.95rem; color: var(--washi-muted); }
.plan--featured .plan__for { color: var(--ink-muted); }

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.plan__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: rgba(23, 23, 27, 0.75);
}
.plan--featured .plan__list li { color: var(--ink-muted); }
.plan__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--shu);
}

.plan__eta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--washi-line);
  color: var(--shu);
  letter-spacing: 0.12em;
}
.plan--featured .plan__eta { border-top-color: var(--ink-line); }

.plan__cta { text-align: center; }
.plan .btn--ghost {
  border-color: var(--washi-line);
  color: var(--washi-text);
}
.plan .btn--ghost:hover { border-color: var(--shu); color: var(--shu); }

.plans__foot {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--washi-muted);
  letter-spacing: 0.14em;
}

@media (max-width: 900px) {
  .plans__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan--featured { order: -1; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero .eyebrow, .hero__title .hero__line, .hero .lede, .hero__cta,
  .seal--hero, .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .manifesto__text .w { color: var(--washi-text); }
  .manifesto__text .w.brand { color: var(--shu); }
  .seal--period { opacity: 1; scale: 1; }
  .marquee__track { animation: none !important; }
}
