.hero {
  --hero-max: 1000px;
  --hero-logo-width: min(64vw, 1100px, calc(30svh * 2000 / 669));
  position: relative; isolation: isolate; overflow: hidden; text-align: center; /* isolate: the ghost (z-index -1) paints behind the synopsis and CTA, above the gradient */
  min-height: clamp(680px, 100svh, var(--hero-max)); /* min-height would override a max-height, so the cap lives here */
  /* Top-aligned, at most 96px under the nav (spec 6.1). Centring would move the logo whenever the synopsis
     re-wraps as Pretendard swaps in, a layout shift of about 0.12. */
  padding: calc(var(--nav-h) + clamp(var(--space-8), 12svh, var(--space-24))) 0 var(--space-12);
  display: grid; justify-items: center; align-content: start; gap: var(--space-8);
  background: linear-gradient(var(--color-hero-top), var(--color-bg));
}
@media (min-width: 1441px) { .hero { --hero-max: 1200px; } }
.hero__stage { position: relative; width: var(--hero-logo-width); aspect-ratio: 2000 / 669; }
.hero__ghost {
  position: absolute; left: 50%; top: 50%; width: 92vw; aspect-ratio: 1080 / 751; /* en-mask.png (logo-meta.json "en"). Fixed in CSS: a late JS restyle made the ghost the LCP at about 1.4 s */
  z-index: -1; transform: translate(-50%, -50%); background: var(--color-fill); opacity: .2; pointer-events: none;
  -webkit-mask: url(/img/logo/en-mask.png) center / contain no-repeat; mask: url(/img/logo/en-mask.png) center / contain no-repeat;
}
.hero__ghost::before {
  content: ''; position: absolute; inset: -18%;
  background: url(/img/logo/liquid-silver.png) center / cover no-repeat;
  animation: liquid-drift 6s ease-in-out infinite alternate paused;
  transform: perspective(900px) translate(-4%, -3%) scale(1.1) rotateX(7deg) rotateY(-9deg) rotateZ(-2deg);
}
.hero__ghost.is-flowing::before { animation-play-state: running; }
.hero__ghost.is-texture-hidden::before { visibility: hidden; }
@keyframes liquid-drift {
  from { transform: perspective(900px) translate(-4%, -3%) scale(1.1) rotateX(7deg) rotateY(-9deg) rotateZ(-2deg); }
  to { transform: perspective(900px) translate(4%, 3%) scale(1.25) rotateX(-7deg) rotateY(9deg) rotateZ(2deg); }
}
.logo { all: unset; position: absolute; inset: 0; display: block; cursor: pointer; }
.logo:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 8px; border-radius: var(--radius-sm); }
.logo__letters, .logo__crack, .logo__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo__letters { background: var(--color-ink); -webkit-mask: url(/img/logo/ko-letters.png) center / 100% 100% no-repeat; mask: url(/img/logo/ko-letters.png) center / 100% 100% no-repeat; }
.logo__crack {
  --crack-r: 0%; /* GSAP needs a computed start value to tween from */
  background: color-mix(in srgb, var(--color-hero-top) 55%, var(--color-bg));
  -webkit-mask: url(/img/logo/ko-crack.png) center / 100% 100% no-repeat; mask: url(/img/logo/ko-crack.png) center / 100% 100% no-repeat;
  clip-path: circle(var(--crack-r) at var(--ix, 17%) var(--iy, 26%));
}
/* hero.js places and sizes it from logo-meta.json; hidden until then so a failed fetch cannot show a full-width ring */
.logo__crosshair { position: absolute; overflow: visible; pointer-events: none; }
.logo__crosshair:not([style]) { display: none; }
.logo__dot { fill: var(--color-accent); } /* the source logo's dot is red */
.logo__shards { position: absolute; left: -25%; top: -60%; width: 150%; height: 220%; pointer-events: none; }
.hero__synopsis { margin: 0; width: min(90%, 1100px); font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 400; color: var(--color-ink); }
.hero__synopsis strong { color: var(--color-ink); font-weight: 600; }
.hero__statement { display: block; width: calc(var(--hero-logo-width) * .82); margin: var(--space-6) auto 0; font-size: clamp(var(--fs-card), calc(var(--hero-logo-width) / 21), calc(var(--fs-section) * 1.125)); line-height: var(--lh-card); text-wrap: balance; }
.hero__actions { display: grid; justify-items: center; gap: var(--space-3); }
.hero__motion { border: 0; padding: var(--space-2) var(--space-3); background: transparent; color: var(--color-ink-2); font-size: var(--fs-caption); cursor: pointer; border-radius: var(--radius-sm); }
.hero__motion:hover { color: var(--color-ink); }
.hero__audio { width: min(900px, calc(100% - var(--gutter) * 2)); min-width: 0; margin-top: var(--space-2); }
@media (max-width: 1068px) { .hero__break { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero__ghost::before { animation: none; } }
