/* Hallmark · pre-emit critique: P5 H5 E4 S5 R5 V5 */
/* Hallmark · macrostructure: Guided Demo Stage · genre: modern-minimal · theme: Cobalt
 * eight near-screen chapters · fixed controls · outcome-first evidence · no fake browser chrome
 */
:root {
  --stage-paper: oklch(98.5% 0.004 250);
  --stage-surface: oklch(100% 0 0);
  --stage-ink: oklch(21% 0.022 257);
  --stage-body: oklch(39% 0.018 257);
  --stage-muted: oklch(55% 0.016 257);
  --stage-rule: oklch(87% 0.012 257);
  --stage-rule-strong: oklch(72% 0.02 257);
  --stage-accent: oklch(56% 0.205 255);
  --stage-accent-dark: oklch(46% 0.185 255);
  --stage-accent-soft: oklch(95% 0.03 255);
  --stage-night: oklch(19% 0.026 257);
  --stage-focus: oklch(66% 0.19 255);
  --stage-font: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --stage-mono: "Cascadia Mono", "SFMono-Regular", monospace;
  --stage-max: 86rem;
}

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  color: var(--stage-ink);
  background: var(--stage-paper);
  font-family: var(--stage-font);
}
button, a { font-family: var(--stage-font); }
:focus-visible { outline: 3px solid var(--stage-focus); outline-offset: 3px; }

.deck { width: min(calc(100% - 3rem), var(--stage-max)); padding: 0 0 4rem; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 4.75rem;
  margin: 0;
  padding: 0.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--stage-rule);
  border-radius: 0;
  background: color-mix(in oklch, var(--stage-paper) 94%, transparent);
  box-shadow: none;
  backdrop-filter: blur(16px);
}
.brand { gap: 0.75rem; }
.logo {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0;
  background: var(--stage-accent);
  box-shadow: none;
  font: 800 0.75rem/1 var(--stage-mono);
}
.brand strong { font-size: 0.9rem; }
.brand span { color: var(--stage-muted); font-size: 0.72rem; }
.controls { gap: 0.5rem; flex-wrap: nowrap; }
.control {
  min-height: 2.5rem;
  padding-inline: 0.9rem;
  border: 1px solid var(--stage-rule-strong);
  border-radius: 0;
  color: var(--stage-ink);
  background: transparent;
  box-shadow: none;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.control:hover { color: var(--stage-accent-dark); background: var(--stage-surface); transform: none; }
.control.primary { border-color: var(--stage-accent); color: var(--stage-surface); background: var(--stage-accent); box-shadow: none; }
.progress-line { left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 0; background: var(--stage-rule); }
.progress-line i { border-radius: 0; background: var(--stage-accent); }

.hero {
  min-height: calc(100svh - 4.75rem);
  grid-template-columns: minmax(0, 0.82fr) minmax(30rem, 1.18fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.eyebrow, .section-label {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--stage-accent-dark);
  background: transparent;
  box-shadow: none;
  font: 800 0.72rem/1.4 var(--stage-mono);
  letter-spacing: 0.08em;
}
h1 { max-width: 12ch; margin: 1.5rem 0; font-size: clamp(3.25rem, 5.2vw, 5.4rem); line-height: 1.04; letter-spacing: -0.055em; }
.lead { max-width: 36rem; color: var(--stage-body); font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.75; font-weight: 500; }
.hero-actions { gap: 0.75rem; margin-top: 2rem; }
.hero-button {
  min-height: 3rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--stage-accent);
  border-radius: 0;
  color: var(--stage-surface);
  background: var(--stage-accent);
  box-shadow: none;
  white-space: nowrap;
}
.hero-button.secondary { border-color: var(--stage-rule-strong); color: var(--stage-ink); background: transparent; }
.hero-metrics { gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--stage-rule); }
.metric { min-height: 0; padding: 1.2rem 1rem 0 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.metric + .metric { padding-left: 1rem; border-left: 1px solid var(--stage-rule); }
.metric strong { font-size: 2rem; }

.stage-card {
  min-height: 34rem;
  padding: 2rem;
  border: 0;
  border-radius: 0;
  color: var(--stage-surface);
  background: var(--stage-night);
  box-shadow: none;
}
.stage-header { position: relative; z-index: 2; color: var(--stage-surface); }
.stage-header span { color: color-mix(in oklch, var(--stage-surface) 62%, transparent); }
.os-stage { min-height: 21rem; padding-top: 2rem; }
.value-orbit { min-height: 21rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 0; }
.orbit-ring, .cube-wrap { display: none; }
.node, .node.is-active {
  position: static;
  width: auto;
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--stage-surface) 18%, transparent);
  border-radius: 0;
  color: var(--stage-surface);
  background: transparent;
  box-shadow: none;
  transform: none;
}
.node:nth-child(even) { border-left: 1px solid color-mix(in oklch, var(--stage-surface) 18%, transparent); }
.node strong { font-size: 1rem; }
.node span, .node.is-active span { color: color-mix(in oklch, var(--stage-surface) 55%, transparent); }
.node.is-active { color: var(--stage-surface); background: var(--stage-accent); }
.stage-copy { grid-template-columns: 1fr 1fr; gap: 0; padding: 1.5rem 0 0; border-top: 1px solid color-mix(in oklch, var(--stage-surface) 18%, transparent); }
.stage-copy article { min-height: 0; padding: 1rem; border: 0; border-radius: 0; color: var(--stage-surface); background: transparent; }
.stage-copy article + article { border-left: 1px solid color-mix(in oklch, var(--stage-surface) 18%, transparent); }
.stage-copy span, .stage-copy p { color: color-mix(in oklch, var(--stage-surface) 65%, transparent); }

.slides { gap: 0; padding: 0; }
.slide {
  min-height: calc(100svh - 4.75rem);
  grid-template-columns: minmax(20rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) 0;
  border: 0;
  border-top: 1px solid var(--stage-rule-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  scroll-margin-top: 4.75rem;
  overflow: visible;
}
.slide:last-child { border-bottom: 1px solid var(--stage-rule-strong); }
.slide.is-active { outline: 0; }
.slide-left { gap: 0; padding: 0; border-radius: 0; background: transparent; }
.slide-index { width: auto; height: auto; display: block; color: var(--stage-accent-dark); background: transparent; box-shadow: none; font: 800 0.78rem/1 var(--stage-mono); }
.slide h2 { max-width: 11ch; margin: 1.5rem 0 1rem; font-size: clamp(2.4rem, 4.4vw, 4.6rem); line-height: 1.06; letter-spacing: -0.05em; }
.slide .summary { color: var(--stage-body); font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.7; font-weight: 500; }
.talk-track { margin-top: 2rem; padding: 1.25rem 0 0; border: 0; border-top: 1px solid var(--stage-rule); border-radius: 0; background: transparent; }
.talk-track span { color: var(--stage-accent-dark); font: 800 0.72rem/1.4 var(--stage-mono); }
.talk-track p { color: var(--stage-ink); font-size: 1rem; line-height: 1.7; font-weight: 600; }
.slide-right { display: block; }
.feature-stage { display: none; }
.outcome-grid { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--stage-rule-strong); }
.outcome {
  min-height: 0;
  display: grid;
  grid-template-columns: 7rem minmax(10rem, 0.5fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border: 0;
  border-bottom: 1px solid var(--stage-rule);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.outcome span { padding: 0; border-radius: 0; color: var(--stage-accent-dark); background: transparent; font: 800 0.72rem/1.4 var(--stage-mono); }
.outcome strong { margin: 0; font-size: clamp(1.2rem, 1.7vw, 1.55rem); }
.outcome p { margin: 0; color: var(--stage-body); font-size: 0.92rem; line-height: 1.65; }

.summary-page {
  min-height: 0;
  padding: clamp(4rem, 7vw, 7rem) 0;
  border: 0;
  border-bottom: 1px solid var(--stage-rule-strong);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.summary-page h2 { max-width: 22ch; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.12; letter-spacing: -0.045em; }
.summary-page .section-label { margin-bottom: 1.25rem; }
.summary-page > p { max-width: 50rem; margin: 1.25rem 0 2.5rem; color: var(--stage-body); font-size: 1.08rem; line-height: 1.75; font-weight: 500; }
.maturity-grid, .signature-wall, .roadmap { gap: 0; border-top: 1px solid var(--stage-rule-strong); }
.maturity-card, .signature-wall article, .roadmap article {
  min-height: 0;
  padding: 1.5rem;
  border: 0;
  border-right: 1px solid var(--stage-rule);
  border-bottom: 1px solid var(--stage-rule);
  border-radius: 0;
  color: var(--stage-ink);
  background: transparent;
  box-shadow: none;
}
.maturity-card span { padding: 0; border-radius: 0; color: var(--stage-accent-dark); background: transparent; }
.signature-wall span, .signature-wall p { color: var(--stage-muted); }
.signature-wall strong { color: var(--stage-ink); }
.roadmap b { border-radius: 0; background: var(--stage-accent); }

.floating-caption {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 18;
  width: 2.75rem;
  margin: 0;
  padding: 0.5rem 0;
  border: 1px solid var(--stage-rule);
  border-radius: 0;
  background: var(--stage-surface);
  box-shadow: none;
  backdrop-filter: none;
  transform: translateY(-50%);
}
.floating-caption > strong, .floating-caption > span { display: none; }
.dots { display: grid; place-items: center; gap: 0.25rem; }
.dots button, .dots button.is-active { width: 2rem; min-width: 2rem; height: 2rem; border-radius: 0; background: transparent; }
.dots button::after { inset: 0.82rem; border-radius: 0; background: var(--stage-rule-strong); }
.dots button.is-active::after { inset: 0.55rem 0.7rem; background: var(--stage-accent); }
.deck-return { right: 1.25rem; bottom: 1.25rem; min-height: 2.75rem; border: 1px solid var(--stage-rule-strong); border-radius: 0; color: var(--stage-ink); background: var(--stage-surface); box-shadow: none; backdrop-filter: none; white-space: nowrap; }
.youyou-consult-float, .youyou-sites-hub-float { display: none !important; }

@media (max-width: 70rem) {
  .deck { width: min(calc(100% - 2rem), 62rem); }
  .topbar { position: relative; grid-template-columns: 1fr; padding-block: 1rem; }
  .controls { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
  .hero, .slide { min-height: auto; grid-template-columns: 1fr; }
  .hero { gap: 3rem; }
  .stage-card { min-height: 0; }
  .slide { gap: 3rem; padding-block: 4rem; scroll-margin-top: 1rem; }
  .slide h2 { max-width: 16ch; }
  .floating-caption { display: none; }
}

@media (max-width: 96rem) {
  .floating-caption {
    display: none;
  }
}

@media (max-width: 48rem) {
  .deck { width: calc(100% - 2rem); }
  .brand span { white-space: normal; }
  .controls { grid-template-columns: 1fr 1fr; }
  .control { min-height: 2.75rem; }
  .hero { padding-block: 3.5rem; }
  h1 { font-size: clamp(2.65rem, 13vw, 4.25rem); overflow-wrap: anywhere; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-button { width: 100%; white-space: nowrap; }
  .hero-metrics { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: 0; }
  .value-orbit { grid-template-columns: 1fr; }
  .node:nth-child(even) { border-left: 0; }
  .stage-copy { grid-template-columns: 1fr; }
  .stage-copy article + article { border-left: 0; border-top: 1px solid color-mix(in oklch, var(--stage-surface) 18%, transparent); }
  .slide { padding-block: 3.5rem; }
  .slide h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); overflow-wrap: anywhere; }
  .outcome { grid-template-columns: 1fr; gap: 0.55rem; }
  .maturity-grid, .signature-wall, .roadmap { grid-template-columns: 1fr; }
  .summary-page { padding-block: 4rem; }
  .summary-page h2 { font-size: clamp(2.15rem, 10vw, 3.2rem); overflow-wrap: anywhere; }
  .deck-return { position: static; width: 100%; margin-top: 1rem; }
}

@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; }
}

/* Taste review: redesign-preserve, native CSS, variance 6 / motion 4 / density 4. */
body { min-height: 100dvh; }
.deck { width: min(calc(100% - 3rem), 82rem); }
.topbar { min-height: 4.5rem; }
.logo {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: cover;
  background: transparent;
}
.control, .hero-button { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 120ms ease; }
.control:active, .hero-button:active { transform: translateY(1px); }

.hero {
  min-height: auto;
  grid-template-columns: minmax(25rem, 0.86fr) minmax(32rem, 1.14fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}
.hero > div:first-child { align-self: start; padding-top: clamp(1rem, 3vw, 2.75rem); }
.hero h1 {
  max-width: 12ch;
  margin: 1.25rem 0;
  font-size: clamp(3.2rem, 4.35vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.lead { max-width: 31rem; font-size: clamp(1rem, 1.15vw, 1.16rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: nowrap; margin-top: 1.75rem; }
.hero-metrics { display: none; }
.topbar .deck-return {
  position: static;
  width: auto;
  min-height: 2.5rem;
  margin: 0;
  padding-inline: 0.9rem;
  color: var(--stage-ink);
  background: transparent;
}

.stage-card {
  min-height: 0;
  padding: 0;
  color: var(--stage-ink);
  background: transparent;
}
.hero-visual { margin: 0; }
.hero-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--stage-rule-strong);
}
.hero-visual figcaption {
  max-width: 42rem;
  padding-top: 0.85rem;
  color: var(--stage-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.stage-card > :not(.hero-visual) { display: none; }

.slide-index, .summary-page .section-label { display: none; }
.slide h2 { margin-top: 0; font-size: clamp(2.25rem, 3.65vw, 3.9rem); }
.slide:nth-child(4n + 2), .slide:nth-child(4n + 4) {
  grid-template-columns: 1fr;
  align-content: center;
  row-gap: 3rem;
}
.slide:nth-child(4n + 2) .outcome-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--stage-rule);
  background: var(--stage-rule);
}
.slide:nth-child(4n + 2) .outcome {
  display: block;
  min-height: 13rem;
  padding: 1.5rem;
  border: 0;
  background: var(--stage-paper);
}
.slide:nth-child(4n + 2) .outcome strong { display: block; margin: 1.5rem 0 0.75rem; }
.slide:nth-child(4n + 3) { grid-template-columns: minmax(0, 1.18fr) minmax(22rem, 0.82fr); }
.slide:nth-child(4n + 3) .slide-left { padding-right: clamp(2rem, 5vw, 5rem); }
.slide:nth-child(4n + 4) .slide-left { max-width: 46rem; }
.slide:nth-child(4n + 4) .slide-right { width: min(76%, 58rem); margin-left: auto; }
.slide:nth-child(4n + 4) .outcome {
  grid-template-columns: 5.5rem minmax(10rem, 0.45fr) minmax(0, 1fr);
  padding-block: 1.35rem;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .slide, .summary-page {
      animation: taste-section-enter linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    @keyframes taste-section-enter {
      from { opacity: 0.35; transform: translateY(1.5rem); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
}

@media (max-width: 70rem) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .hero-actions { flex-wrap: wrap; }
  .controls {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
  }
  .controls .control { flex: 0 0 auto; }
  .slide:nth-child(n) { grid-template-columns: 1fr; }
  .slide:nth-child(4n + 2) .outcome-grid { grid-template-columns: 1fr; }
  .slide:nth-child(4n + 2) .outcome { min-height: 0; }
  .slide:nth-child(4n + 3) .slide-left { padding-right: 0; }
  .slide:nth-child(4n + 4) .slide-right { width: 100%; margin-left: 0; }
}

@media (max-width: 48rem) {
  .deck { width: calc(100% - 2rem); }
  .hero { padding-block: 2.75rem; }
  .hero > div:first-child { padding-top: 0; }
  .hero h1 { max-width: none; font-size: clamp(2.55rem, 11vw, 3.65rem); }
  .lead { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-visual img { aspect-ratio: 4 / 3; }
  .slide:nth-child(4n + 4) .outcome { grid-template-columns: 1fr; }
}

/* Title system: short titles stay on one line; long titles break by Chinese meaning. */
h1, h2, h3 {
  line-break: strict;
  text-wrap: balance;
}
.summary-page h2 {
  max-width: 30ch;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
}
.summary-page > p { max-width: 58rem; }

@media (min-width: 70.01rem) {
  .hero {
    grid-template-columns: minmax(32rem, 0.94fr) minmax(0, 1.06fr);
    gap: clamp(2.5rem, 4vw, 4rem);
  }
  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 2.8vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
    white-space: nowrap;
  }
  .slide h2 {
    max-width: none;
    font-size: clamp(2.15rem, 2.75vw, 2.75rem);
    line-height: 1.18;
    letter-spacing: -0.035em;
    white-space: nowrap;
  }
}

@media (max-width: 70rem) {
  .hero h1, .slide h2, .summary-page h2 {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }
  .slide h2 { font-size: clamp(2rem, 7vw, 3rem); }
  .summary-page h2 { font-size: clamp(2rem, 7.5vw, 2.8rem); }
}

/* Card surfaces: remove legacy green theme cells and keep readable light-theme contrast. */
.signature-wall article:nth-child(n) {
  color: var(--stage-ink);
  background: var(--stage-surface);
}
.signature-wall article:nth-child(even) {
  background: var(--stage-paper);
}
.signature-wall article:nth-child(n) span { color: var(--stage-accent-dark); }
.signature-wall article:nth-child(n) strong { color: var(--stage-ink); }
.signature-wall article:nth-child(n) p { color: var(--stage-body); }
