/* Sumi Run marketing site — ink-wash identity.
   Ink (dark) opens and closes the story; paper (light) carries the proof
   in the middle act. One accent throughout: vermillion, the hanko stamp. */

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@500;700;900&family=Outfit:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
  --ink: #120f0c;
  --ink-2: #1b1611;
  --paper: #f7f1e6;
  --paper-2: #efe4cd;
  --vermillion: #e8402c;
  --vermillion-deep: #c02f1f;

  --fg: #f7f1e6;
  --fg-muted: rgba(247, 241, 230, 0.64);
  --fg-faint: rgba(247, 241, 230, 0.36);
  --line: rgba(247, 241, 230, 0.14);
  --bg: var(--ink);
  --bg-2: var(--ink-2);

  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --body: "Outfit", -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.act-paper {
  --fg: #17130e;
  --fg-muted: rgba(23, 19, 14, 0.62);
  --fg-faint: rgba(23, 19, 14, 0.4);
  --line: rgba(23, 19, 14, 0.12);
  --bg: var(--paper);
  --bg-2: var(--paper-2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

section, header, .act {
  background: var(--bg);
  color: var(--fg);
  position: relative;
  transition: background 0.4s var(--ease);
}

::selection { background: var(--vermillion); color: var(--paper); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vermillion);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--vermillion);
}
.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.section-lede {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 52ch;
  margin: 0;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(18, 15, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(247, 241, 230, 0.1);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: #f7f1e6;
}
.nav-brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: rgba(247, 241, 230, 0.68);
  transition: color 0.2s;
}
.nav-links a:hover { color: #f7f1e6; }
.nav-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 230, 0.18);
  font-size: 13px;
  font-weight: 500;
  color: #f7f1e6;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s;
}
.nav-store:hover { border-color: var(--vermillion); background: rgba(232, 64, 44, 0.08); }
.nav-store svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (max-width: 720px) {
  .nav-right { gap: 16px; }
  .nav-links { gap: 16px; }
  .nav-store span { display: none; }
  .nav-store { padding: 8px; }
}
@media (max-width: 480px) {
  .nav-links a:not(:first-child) { display: none; }
}

/* ---------- buttons (full-pill, locked) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--vermillion);
  color: #fff6ee;
  box-shadow: 0 8px 26px -6px rgba(232, 64, 44, 0.55);
}
.btn-primary:hover { box-shadow: 0 10px 32px -6px rgba(232, 64, 44, 0.7); }
.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--fg);
}

/* ---------- hero ---------- */
.hero-pin {
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-art-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero-art {
  position: absolute;
  inset: -6% -6% -6% 18%;
  width: 88%;
  height: 112%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
  mask-image: linear-gradient(90deg, transparent 0%, black 26%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 26%);
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(18,15,12,0.55) 38%, rgba(18,15,12,0.05) 62%),
    linear-gradient(0deg, var(--ink) 0%, transparent 26%, transparent 74%, rgba(18,15,12,0.5) 100%);
}
.petal-field { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.petal {
  position: absolute;
  top: -5%;
  width: 9px; height: 9px;
  background: var(--vermillion);
  border-radius: 2px 8px;
  opacity: 0.55;
  animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0% { transform: translateY(-5vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(105vh) translateX(40px) rotate(340deg); }
}
.hero-content { position: relative; z-index: 3; padding: 0 8vw; max-width: 920px; }
.hero-mark {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--vermillion);
  margin-bottom: 22px;
}
.hero-wordmark {
  width: clamp(280px, 46vw, 860px);
  margin-bottom: 22px;
  filter:
    drop-shadow(0 0 2px rgba(247, 241, 230, 0.85))
    drop-shadow(0 0 18px rgba(247, 241, 230, 0.45))
    drop-shadow(0 0 46px rgba(247, 241, 230, 0.3));
}
.hero-tagline {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 40ch;
  margin: 0 0 34px;
}
.hero-fade-in { opacity: 0; transform: translateY(18px); }
.hero-cta { text-align: center; }

/* ---------- sticky install bar ---------- */
.sticky-cta {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  border-radius: 999px;
  background: rgba(18, 15, 12, 0.86);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(247, 241, 230, 0.12);
  transform: translateY(140%);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 20px 50px -18px rgba(0,0,0,0.6);
}
.sticky-cta.is-shown { transform: translateY(0); }
.sticky-cta-text { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(247,241,230,0.7); }
.sticky-cta-text strong { color: #f7f1e6; }
.sticky-cta .btn { padding: 10px 20px; font-size: 13px; }
@media (max-width: 560px) { .sticky-cta-text span:last-child { display: none; } }

/* ---------- mechanic teach (dark act) ---------- */
/* ---------- how you play: one pinned scene, three beats ---------- */
.howto-pin { height: 100vh; }
.howto-stage {
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.howto-index {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  z-index: 3;
}
.mech-arena {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 70px));
  width: 100%;
  max-width: 400px;
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.mech-ground {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}
.mech-shape {
  position: absolute;
  bottom: 40px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--vermillion);
  box-shadow: 0 0 40px 4px rgba(232, 64, 44, 0.4);
}
.mech-ring {
  position: absolute;
  bottom: 40px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1.5px solid var(--vermillion);
  opacity: 0;
}
.mech-copy {
  position: absolute;
  top: calc(50% + 90px);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  z-index: 3;
}
.mech-label {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 4.4vw, 46px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
}
.mech-sub {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  position: absolute;
  left: 50%;
  top: 62px;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
}
.mech-label[data-phase="tap"], .mech-sub[data-phase="tap"] { opacity: 1; }

.reveal-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 55%, var(--vermillion) 0%, var(--vermillion-deep) 18%, transparent 55%);
  clip-path: circle(var(--revealPct, 0%) at 50% 55%);
  opacity: 0.9;
  z-index: 1;
}
.reveal-text {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  mix-blend-mode: difference;
  opacity: 0;
}
.reveal-text h2 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 68px);
  line-height: 1.08;
  color: #fff;
  margin: 0;
}
.reveal-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.7;
  margin: 0 0 16px;
}

/* ---------- screenshots: 3D coverflow (paper act) ---------- */
.shots-intro { padding: 130px 0 40px; }
.cf {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 30px 0 8px;
}
.cf-stage {
  flex: 1;
  min-width: 0;
  height: min(60vh, 540px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  overflow: hidden;
}
.cf-track { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.cf-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(52vw, 260px);
  aspect-ratio: 9 / 16;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.4);
  cursor: pointer;
}
.cf-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cf-btn {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}
.cf-btn:hover { opacity: 1; border-color: var(--vermillion); }
.cf-btn svg { width: 20px; height: 20px; }
.cf-caption {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 12px;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--fg-muted);
}
.cf-caption-title { color: var(--fg); font-weight: 600; }
@media (max-width: 640px) {
  .cf { gap: 4px; }
  .cf-btn { width: 34px; height: 34px; }
  .cf-btn svg { width: 16px; height: 16px; }
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 5, 4, 0.94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(90vw, 560px);
  max-height: 84vh;
  border-radius: var(--radius);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(247, 241, 230, 0.2);
  color: #f7f1e6;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.lightbox-close:hover,
.lightbox-nav:hover { opacity: 1; }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-close svg { width: 20px; height: 20px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav svg { width: 22px; height: 22px; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
@media (max-width: 640px) {
  .lightbox-close { top: 16px; right: 16px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}

/* ---------- reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-item { padding: 40px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 44px); color: var(--vermillion); display: block; }
.stat-item .label { font-size: 13px; color: var(--fg-muted); margin-top: 6px; }
@media (max-width: 720px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

/* ---------- features: bento (paper act) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(200px, auto); gap: 16px; margin: 48px 0 56px; }
.feature {
  grid-column: span 2;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--vermillion); }
.feature-featured { grid-column: span 4; grid-row: span 1; min-height: 260px; }
.feature-mark {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(232, 64, 44, 0.12);
  color: var(--vermillion);
  font-size: 20px;
  margin-bottom: 20px;
}
.feature h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 10px; }
.feature p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); margin: 0; }
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .feature { grid-column: span 2; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature-featured { grid-column: span 1; }
}

/* ---------- personas (paper act) ---------- */
.persona-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-bottom: 56px; }
.persona-card-art { width: fit-content; max-width: 100%; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px -30px rgba(0,0,0,0.3); }
.persona-card-art img { display: block; }
.persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.persona {
  grid-column: span 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 26px;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}
.persona:hover { transform: translateY(-4px); border-color: var(--vermillion); }
.persona-featured { grid-column: span 2; }
.persona .axis { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--vermillion); margin-bottom: 12px; }
.persona h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin: 0 0 6px; }
.persona-featured h3 { font-size: 24px; }
.persona .tagline { font-size: 13px; color: var(--fg-muted); margin: 0 0 14px; }
.persona .quote { font-size: 12.5px; font-style: italic; color: var(--fg-faint); margin: 0; line-height: 1.5; }
@media (max-width: 860px) {
  .persona-intro { grid-template-columns: 1fr; gap: 32px; }
  .persona-grid { grid-template-columns: 1fr 1fr; }
  .persona-featured { grid-column: span 2; }
}
@media (max-width: 560px) {
  .persona-grid { grid-template-columns: 1fr; }
  .persona-featured { grid-column: span 1; }
}

/* ---------- final CTA (dark act) ---------- */
.cta-band { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 100px 28px; }
.cta-band .section-title { font-size: clamp(40px, 7vw, 84px); }
.cta-band .section-lede { max-width: 44ch; margin: 0 auto 40px; }

/* ---------- footer ---------- */
footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--fg-muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--fg); }

/* ---------- privacy doc page ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 140px 28px 80px; }
.doc h1 { font-family: var(--display); font-weight: 900; font-size: 40px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: 22px; margin-top: 40px; }
.doc p, .doc li { line-height: 1.7; color: var(--fg-muted); }
.doc .updated { font-family: var(--mono); font-size: 13px; color: var(--fg-faint); }

@media (prefers-reduced-motion: reduce) {
  .petal { animation: none; opacity: 0; }
}
body.no-motion .hero-pin,
body.no-motion .howto-pin { height: auto; }
body.no-motion .hero,
body.no-motion .howto-stage { height: auto; min-height: 100vh; padding: 80px 0; }
body.no-motion .hero-fade-in { opacity: 1; transform: none; }
body.no-motion .mech-arena,
body.no-motion .mech-copy { display: none; }
body.no-motion .reveal-glow { clip-path: circle(150% at 50% 50%); }
body.no-motion .reveal-text { opacity: 1; position: relative; }
