:root {
  --ink: #171117;
  --ink-soft: rgba(23, 17, 23, 0.68);
  --paper: #fbf7ef;
  --violet: #7a4dff;
  --rose: #ff6fa9;
  --moss: #4b7c5b;
  --line: rgba(23, 17, 23, 0.14);
  --shadow: 0 28px 90px rgba(55, 34, 74, 0.16);
  --max: 1560px;
  --edge: clamp(18px, 4vw, 72px);
  --display: "Satoshi", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Satoshi", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Satoshi", "Noto Sans SC", "SFMono-Regular", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 18%, rgba(201, 184, 255, 0.32), transparent 28vw),
    radial-gradient(circle at 86% 64%, rgba(255, 111, 169, 0.14), transparent 26vw),
    radial-gradient(circle at 70% 16%, rgba(255, 232, 184, 0.2), transparent 24vw),
    linear-gradient(180deg, rgba(23, 17, 23, 0.03) 1px, transparent 1px) 0 0 / 100% 10vw,
    linear-gradient(180deg, #fffaf3 0%, var(--paper) 30%, #f8edf7 78%, #fff8ed 100%);
  font-family: var(--body);
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

img {
  display: block;
  max-width: 100%;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  background: rgba(23, 17, 23, 0.08);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--rose), var(--moss));
}

.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 130;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(23, 17, 23, 0.58);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: width 160ms ease, height 160ms ease, opacity 160ms ease, background 160ms ease;
}

.cursor.is-active {
  opacity: 1;
}

.cursor.is-hovering {
  width: 64px;
  height: 64px;
  background: rgba(201, 184, 255, 0.22);
}

.site-header {
  position: fixed;
  left: var(--edge);
  right: var(--edge);
  top: 18px;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 0 10px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  box-shadow: 0 18px 52px rgba(78, 56, 98, 0.11);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  width: max-content;
  min-width: 0;
}

.brand span {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.brand strong,
.quick-nav,
.eyebrow,
.kicker,
.hero-index,
.site-footer,
.case-copy p {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.quick-nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(23, 17, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.quick-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(23, 17, 23, 0.56);
  transition: color 180ms ease, background 180ms ease;
}

.quick-nav a:hover,
.quick-nav a.is-active {
  color: var(--ink);
  background: rgba(201, 184, 255, 0.42);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(520px, 0.54fr);
  gap: clamp(28px, 5vw, 88px);
  align-items: center;
  width: min(var(--max), calc(100vw - var(--edge) * 2));
  min-height: 100svh;
  margin: 0 auto;
  padding: 118px 0 clamp(70px, 10vw, 140px);
}

.hero-copy {
  padding: clamp(42px, 7vw, 92px) 0 clamp(24px, 4vw, 50px);
}

.eyebrow,
.kicker {
  margin: 0;
  color: var(--violet);
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 0;
  padding-top: 0.12em;
  font-family: var(--display);
  font-size: clamp(86px, 13.5vw, 205px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(23, 17, 23, 0.72);
  font-family: var(--display);
  font-size: clamp(28px, 3.9vw, 58px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-summary {
  max-width: 460px;
  margin: 32px 0 0;
  color: rgba(23, 17, 23, 0.62);
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.7;
}

.hero-gallery,
.case-stack {
  display: grid;
  gap: clamp(34px, 5vw, 84px);
  min-width: 0;
  width: 100%;
}

.case-stack {
  gap: clamp(86px, 8vw, 138px);
}

.hero-gallery {
  position: relative;
  align-self: center;
  min-height: min(64vh, 650px);
  margin-top: 0;
  isolation: isolate;
  transform: translateY(10px);
}

.hero-gallery::before {
  position: absolute;
  inset: 8% 0 3% 9%;
  z-index: -1;
  content: "";
  border: 1px solid rgba(122, 77, 255, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 184, 255, 0.26), rgba(255, 255, 255, 0) 68%);
}

.hero-frame,
.case-plate {
  position: relative;
  margin: 0;
  min-width: 0;
  width: 100%;
  padding: clamp(8px, 1vw, 14px);
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(18px, 2vw, 34px);
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.5) 24rem),
    rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  scroll-margin-top: 126px;
}

.case-plate {
  --plate-drift-y: 0px;
  --plate-reveal-y: 0px;
  --plate-scale: 1;
  transform: translate3d(0, calc(var(--plate-reveal-y) + var(--plate-drift-y)), 0) scale(var(--plate-scale));
  transition:
    transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms ease,
    filter 420ms ease;
  will-change: transform;
}

.hero-frame img,
.case-plate img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.5vw, 24px);
  background: #fff;
}

.hero-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(360px, 46%);
  padding: 7px;
  border-radius: 28px;
  cursor: pointer;
  transform-origin: center center;
  will-change: transform;
  transition:
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 360ms ease,
    filter 360ms ease;
}

.hero-frame img {
  border-radius: 20px;
}

.hero-frame:hover,
.hero-frame.is-selected {
  box-shadow: 0 34px 96px rgba(55, 34, 74, 0.24);
}

.hero-frame:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 6px;
}

.hero-frame.is-front {
  left: 46%;
  right: auto;
  top: 46%;
  bottom: auto;
  z-index: 5;
  width: min(390px, 49%);
  transform: translate(-50%, -50%) rotate(-1.5deg) scale(1.04);
}

.hero-frame.is-left {
  left: 31%;
  right: auto;
  top: 55%;
  bottom: auto;
  z-index: 3;
  width: min(345px, 43%);
  transform: translate(-50%, -50%) rotate(-7deg) scale(0.96);
}

.hero-frame.is-right {
  left: 65%;
  right: auto;
  top: 55%;
  bottom: auto;
  z-index: 2;
  width: min(345px, 43%);
  transform: translate(-50%, -50%) rotate(6.5deg) scale(0.95);
}

.hero-gallery:hover .hero-frame.is-front,
.hero-gallery:focus-within .hero-frame.is-front,
.hero-gallery.is-expanded .hero-frame.is-front {
  transform: translate(-50%, -54%) rotate(-0.8deg) scale(1.055);
}

.hero-gallery:hover .hero-frame.is-left,
.hero-gallery:focus-within .hero-frame.is-left,
.hero-gallery.is-expanded .hero-frame.is-left {
  transform: translate(-70%, -42%) rotate(-8.5deg) scale(0.985);
}

.hero-gallery:hover .hero-frame.is-right,
.hero-gallery:focus-within .hero-frame.is-right,
.hero-gallery.is-expanded .hero-frame.is-right {
  transform: translate(-30%, -58%) rotate(8deg) scale(0.98);
}

.hero-frame.is-selected {
  z-index: 8;
  box-shadow: 0 42px 110px rgba(55, 34, 74, 0.26);
  filter: brightness(1.025);
}

.hero-frame.is-bumping {
  animation: bumpCard 420ms ease;
}

.hero-frame.is-bumping img {
  animation: pulseCardImage 420ms ease;
}

@keyframes bumpCard {
  0%,
  100% {
    filter: none;
  }

  35% {
    filter: brightness(1.03);
  }
}

@keyframes pulseCardImage {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  32% {
    transform: translateY(-5px) scale(1.018);
  }

  58% {
    transform: translateY(2px) scale(1.006);
  }
}

.chapter {
  display: block;
  width: min(var(--max), calc(100vw - var(--edge) * 2));
  margin: 0 auto;
  padding: clamp(92px, 11vw, 164px) 0;
  scroll-margin-top: 100px;
}

.chapter-compact,
.chapter-final {
  display: block;
}

.chapter-compact {
  padding-top: clamp(34px, 4.5vw, 72px);
}

.chapter-heading {
  max-width: 1120px;
  margin-bottom: clamp(58px, 6vw, 96px);
}

.chapter-heading.sticky {
  position: static;
}

.chapter-heading h2 {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
}

.chapter-heading h2 em {
  max-width: 34em;
  color: rgba(23, 17, 23, 0.58);
  font-family: var(--body);
  font-size: clamp(14px, 1.1vw, 17px);
  font-style: normal;
  font-weight: 600;
  line-height: 1.55;
}

.case-item {
  display: grid;
  gap: clamp(34px, 3.3vw, 58px);
  min-width: 0;
  width: 100%;
}

.case-copy {
  display: grid;
  gap: clamp(12px, 1.2vw, 18px);
  align-items: start;
  width: 100%;
  max-width: 1280px;
}

.case-copy p {
  margin: 0;
  color: var(--violet);
  font-weight: 700;
  white-space: nowrap;
}

.case-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4.6vw, 76px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
  max-width: 18em;
}

.case-copy span {
  margin: 0;
  color: rgba(23, 17, 23, 0.66);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  line-height: 1.72;
  max-width: 52em;
}

.highlight-plate {
  background:
    radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255, 255, 255, 0.98), rgba(235, 225, 255, 0.72) 26rem),
    rgba(122, 77, 255, 0.12);
}

.case-item:hover .case-plate {
  --plate-scale: 1.006;
  box-shadow: 0 34px 104px rgba(55, 34, 74, 0.2);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100vw - var(--edge) * 2));
  margin: 0 auto;
  padding: 36px 0 54px;
  color: rgba(23, 17, 23, 0.48);
  border-top: 1px solid var(--line);
}

[data-reveal]:not(.hero-frame) {
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.985);
  transition:
    opacity 860ms ease,
    transform 980ms cubic-bezier(0.16, 1, 0.3, 1);
}

.case-item[data-reveal]:not(.is-visible) .case-plate {
  --plate-reveal-y: 54px;
  --plate-scale: 0.985;
}

[data-reveal]:not(.hero-frame).is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy[data-reveal] {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
    padding: 12px;
    border-radius: 24px;
  }

  .brand {
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
  }

  .quick-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
  }

  .quick-nav a {
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
    font-size: 10px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
  }

  .hero h1,
  .lead,
  .hero-summary {
    grid-column: auto;
    grid-row: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-gallery {
    min-height: 560px;
    transform: translateY(-38px);
  }

  .chapter {
    grid-template-columns: 1fr;
  }

  .chapter-heading.sticky {
    position: static;
  }

  .case-copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --edge: 14px;
  }

  .site-header {
    left: 12px;
    right: auto;
    top: 12px;
    width: calc(100vw - 24px);
    overflow: hidden;
  }

  .brand span {
    font-size: 24px;
  }

  .brand strong,
  .quick-nav {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .hero h1 {
    font-size: clamp(64px, 25vw, 104px);
  }

  .lead {
    max-width: 8.4em;
    font-size: clamp(20px, 7.2vw, 31px);
    line-height: 1.08;
  }

  .hero-summary {
    max-width: 24em;
    font-size: 14px;
  }

  .hero-gallery {
    min-height: 520px;
    transform: translateY(-18px);
  }

  .hero-frame {
    padding: 5px;
    border-radius: 18px;
  }

  .hero-frame img {
    border-radius: 13px;
  }

  .hero-frame.is-front {
    left: 44%;
    top: 46%;
    bottom: auto;
    width: 64%;
    transform: translate(-50%, -50%) rotate(-1.5deg) scale(1.04);
  }

  .hero-frame.is-left {
    left: 30%;
    right: auto;
    top: 55%;
    bottom: auto;
    width: 56%;
    transform: translate(-50%, -50%) rotate(-8deg) scale(0.96);
  }

  .hero-frame.is-right {
    left: 60%;
    right: auto;
    top: 55%;
    bottom: auto;
    width: 56%;
    transform: translate(-50%, -50%) rotate(7deg) scale(0.95);
  }

  .hero-gallery:hover .hero-frame.is-front,
  .hero-gallery:focus-within .hero-frame.is-front,
  .hero-gallery.is-expanded .hero-frame.is-front {
    transform: translate(-50%, -62%) rotate(-1deg) scale(1.05);
  }

  .hero-gallery:hover .hero-frame.is-left,
  .hero-gallery:focus-within .hero-frame.is-left,
  .hero-gallery.is-expanded .hero-frame.is-left {
    transform: translate(-68%, -43%) rotate(-10deg) scale(0.97);
  }

  .hero-gallery:hover .hero-frame.is-right,
  .hero-gallery:focus-within .hero-frame.is-right,
  .hero-gallery.is-expanded .hero-frame.is-right {
    transform: translate(-32%, -60%) rotate(9deg) scale(0.97);
  }

  .hero-gallery,
  .case-stack {
    gap: 28px;
  }

  .case-stack {
    gap: 54px;
  }

  .chapter {
    padding: 64px 0;
  }

  .chapter-compact {
    padding-top: 36px;
  }

  .chapter-heading {
    margin-bottom: 42px;
  }

  .case-item {
    gap: 26px;
  }

  .chapter-heading h2 {
    max-width: 15em;
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.08;
  }

  .chapter-heading h2 em {
    font-size: 13px;
  }

  .case-copy h3 {
    grid-column: 1;
    font-size: clamp(26px, 9vw, 38px);
  }

  .case-copy span {
    grid-column: 1;
    font-size: 14px;
  }

  .hero-frame,
  .case-plate {
    padding: 5px;
    border-radius: 16px;
  }

  .hero-frame img,
  .case-plate img {
    border-radius: 12px;
  }

  .cursor {
    display: none;
  }

  .site-footer {
    display: grid;
    padding-bottom: 36px;
  }
}

@media (hover: none), (pointer: coarse) {
  .cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }

  [data-reveal]:not(.hero-frame) {
    opacity: 1;
    transform: none;
  }

  .case-plate {
    --plate-drift-y: 0px;
    --plate-reveal-y: 0px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   Enhancements (added) — Lightbox, zoom affordance, a11y polish
   Non-destructive: appended after base rules; does not alter
   existing layout, content, or image clarity.
   ============================================================ */

/* Clickable affordance on case plates (large design boards) */
.case-plate {
  cursor: zoom-in;
}

.case-plate:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 6px;
}

/* Lightbox overlay */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(23, 17, 23, 0.78);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 240ms ease;
}

.lightbox-stage {
  margin: 0;
  max-width: min(1100px, 100%);
  max-height: 100%;
  overflow: auto;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.97);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open .lightbox-stage {
  transform: scale(1);
}

.lightbox-stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
}

.lightbox-close {
  position: fixed;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  z-index: 210;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Prevent background scroll while lightbox is open */
body.lightbox-open {
  overflow: hidden;
}

/* Subtle contrast lift for secondary text (keeps original tone, improves legibility) */
.chapter-heading h2 em {
  color: rgba(23, 17, 23, 0.64);
}

.case-copy span {
  color: rgba(23, 17, 23, 0.72);
}

.site-footer {
  color: rgba(23, 17, 23, 0.56);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox-stage,
  .lightbox-close {
    transition: none;
  }
}

/* ============================================================
   Hero enhancements (added) — staggered copy reveal,
   keyword highlight, scroll hint, front-card breathing.
   Pure visual; no content or clarity change.
   ============================================================ */

/* Staggered entrance for hero copy. Items start hidden, then
   rise + fade in once .is-loaded is set on <body> after load. */
.hero-rise {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

body.is-loaded .hero-rise {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 760ms cubic-bezier(0.16, 1, 0.3, 1) var(--rise-delay, 0ms),
    transform 860ms cubic-bezier(0.16, 1, 0.3, 1) var(--rise-delay, 0ms);
}

/* Keyword highlight inside the lead line */
.lead-accent {
  position: relative;
  color: var(--violet);
  background: linear-gradient(90deg, var(--violet), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Scroll hint at the bottom of the hero */
.scroll-hint {
  position: absolute;
  left: 0;
  bottom: clamp(18px, 4vw, 42px);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(23, 17, 23, 0.5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.scroll-hint:hover {
  color: var(--ink);
}

.scroll-hint-dot {
  position: relative;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(23, 17, 23, 0.35);
  border-radius: 999px;
}

.scroll-hint-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 999px;
  background: var(--violet);
  animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
  }
  70% {
    opacity: 1;
    transform: translateY(14px);
  }
  100% {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Front hero card gentle breathing when the stack is idle
   (paused while hovering / focusing / expanded so it never
   fights the existing fan-out interaction). */
.hero-gallery:not(:hover):not(:focus-within):not(.is-expanded) .hero-frame.is-front {
  animation: frontBreathe 8s ease-in-out infinite;
}

@keyframes frontBreathe {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-1.5deg) scale(1.04);
  }
  50% {
    transform: translate(-50%, -53%) rotate(-1.5deg) scale(1.045);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rise {
    opacity: 1;
    transform: none;
  }
  .scroll-hint-dot::before,
  .hero-gallery .hero-frame.is-front {
    animation: none;
  }
}

/* ============================================================
   Satoshi typography tuning (added).
   Satoshi is a geometric sans; the original display sizes were
   tuned for a serif at weight 400. Give large display text more
   weight + tighter tracking so it keeps its visual presence,
   without changing any font sizes or layout.
   ============================================================ */
.hero h1 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lead {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chapter-heading h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.chapter-heading h2 em {
  font-weight: 500;
  letter-spacing: 0;
}

.case-copy h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand span {
  font-weight: 700;
  letter-spacing: -0.01em;
}
