/* The approved storyboard stays intact on a softly lit, white canvas. */
.yao-hero--story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(20rem, 1fr) auto;
  align-items: center;
  gap: 0;
  min-height: 70svh;
  padding-top: 5rem;
  padding-bottom: clamp(1.5rem, 2vh, 2rem);
  background:
    radial-gradient(ellipse 72% 54% at 50% 36%, #ffffff 0%, #f8f6f0 65%, transparent 100%),
    var(--yao-bg);
}

.yao-hero--story .yao-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, 24rem);
  align-items: end;
  gap: 1rem 4rem;
  max-width: none;
  width: 100%;
  text-shadow: none;
}

.yao-hero--story .yao-eyebrow {
  grid-column: 1 / -1;
  color: var(--yao-muted);
  font-weight: 400;
  letter-spacing: 0.08em;
}

.yao-hero--story h1 {
  margin: 0;
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.065em;
}

.yao-hero--story h1 br { display: none; }

.yao-hero--story h1 em {
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  font-style: normal;
  line-height: inherit;
}

.yao-hero--story .yao-hero-copy > p:last-child {
  max-width: 24rem;
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--yao-muted);
}

.yao-hero--story .yao-hero-copy > * {
  opacity: 1;
  animation: none;
}

.logo-story {
  position: relative;
  align-self: center;
  width: min(100%, 66rem);
  margin-inline: auto !important;
  padding: 0 0 2.75rem;
  color: #181813;
}

.logo-story__drawing {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo-story__character,
.logo-story__block { transform-origin: 28.128906px 56.257812px; }

.logo-story__block { fill: #080808; }
.logo-story__red { fill: #ff3131; transform-origin: 28.128906px 56.257812px; }
.logo-story__face, .logo-story__gestures,
.logo-story__question, .logo-story__surprise, .logo-story__break { opacity: 0; }
.logo-story__eyes { fill: #f5f1e6; transform-origin: 28px 22px; }
.logo-story__pupils { fill: #080808; }
.logo-story__mouth { stroke: #f5f1e6; stroke-width: 2; fill: none; stroke-linecap: round; transform-origin: 28px 39px; }
.logo-story__open-mouth { fill: #f5f1e6; opacity: 0; }
.logo-story__idea { fill: none; stroke: #181813; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform-origin: 69px -25px; }
.logo-story__idea-light { fill: #f8eed0; }
.logo-story__determination { stroke: #f5f1e6; stroke-width: 2.4; fill: none; stroke-linecap: round; opacity: 0; }
.logo-story__arm { fill: none; stroke: #080808; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.logo-story__arm--left { transform-origin: 3px 33px; }
.logo-story__arm--right { transform-origin: 53px 33px; }
.logo-story__boundary { fill: none; stroke: #080808; stroke-width: 3.24; }
.logo-story__question { fill: #181813; font: 26px Georgia, serif; }
.logo-story__surprise, .logo-story__break { stroke: #181813; stroke-width: 2.5; fill: none; stroke-linecap: round; }
.logo-story__reading { fill: #39372e; font: 12px "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; letter-spacing: 0.28em; }
.logo-story__numeric-name { font-size: 16px; letter-spacing: 0.16em; opacity: 0; }

.logo-story__controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.65rem;
}

.logo-story [hidden] { display: none !important; }

.logo-story__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--yao-line);
  border-radius: 50%;
  background: transparent;
  color: var(--yao-muted);
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background 180ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-story__control-icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.logo-story__control:active { transform: scale(0.97); }
.logo-story__control:focus-visible { outline: 2px solid var(--yao-ink); outline-offset: 3px; }

@media (hover: hover) and (pointer: fine) {
  .logo-story__control:hover { background: rgba(36, 35, 31, 0.06); }
}

.logo-story__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .yao-hero--story .yao-hero-copy { grid-template-columns: 1fr; gap: 0.9rem; }
  .yao-hero--story h1 { font-size: clamp(1.85rem, 4.8vw, 3.4rem); }
}

@media (max-width: 767px) {
  .yao-hero--story {
    grid-template-rows: minmax(17rem, 1fr) auto;
    min-height: 78svh;
    padding-top: 5.5rem;
    padding-bottom: 1.5rem;
    background:
      radial-gradient(ellipse 100% 42% at 45% 35%, #ffffff 0%, #f8f6f0 65%, transparent 100%),
      var(--yao-bg);
  }

  .logo-story { width: calc(100% + 0.75rem); margin-left: -0.375rem !important; padding-bottom: 4rem; }
  .logo-story__controls { gap: 0.4rem; }
  .logo-story__reading { font-size: 19px; letter-spacing: 0.18em; }
  .logo-story__numeric-name { font-size: 22px; letter-spacing: 0.12em; }
  .yao-hero--story .yao-hero-copy { gap: 1.1rem; }
  .yao-hero--story .yao-eyebrow { font-size: 0.5rem; letter-spacing: 0.035em; }
  .yao-hero--story h1 { font-size: clamp(1.55rem, 6.6vw, 2.9rem); line-height: 1.5; }
  .yao-hero--story .yao-hero-copy > p:last-child { font-size: 0.8rem; max-width: 24rem; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-story__control { transition: none; }
}
