/* 홈의 실험 장면을 페이지 배경 위에 직접 배치한다. */
.live-home { --home-max: 1184px; }
.live-home .home-container { width: 100%; max-width: var(--home-max); margin: auto; padding-inline: clamp(20px, 4vw, 64px); }
.live-hero { padding: 56px 0 48px; }
.live-heading { margin-bottom: 34px; }
.live-heading h1 { max-width: 850px; font-size: clamp(32px, 4.2vw, 60px); font-weight: 500; line-height: 1.2; letter-spacing: -.055em; text-wrap: balance; }
.live-demo { min-width: 0; overflow: hidden; }
.demo-visual { position: relative; }
.demo-visual > svg { display: block; width: 100%; height: auto; overflow: hidden; }
.demo-visual text { fill: #9699a9; font: 12px ui-monospace, SFMono-Regular, monospace; }
.demo-visual .scene-dim { fill: #686c7f; font-size: 10px; }
.scene-trace { fill: none; stroke: #292c37; stroke-width: 1; }
.scene-trace-dashed { stroke-dasharray: 3 5; }
.pendulum-bob { fill: #aaa6ff; filter: drop-shadow(0 0 10px #a5a4ff25); }
.pendulum-bob.reference { fill: #74839f; }
.pendulum-string { stroke: #a7a7bc; stroke-width: 1.6; }
.pendulum-trail { stroke: #a5a4ff; stroke-width: 1.3; fill: none; opacity: .75; }
.home-understage { display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; color: var(--text-mute); font-size: 11px; }
.home-understage a { display: flex; align-items: center; gap: 10px; color: var(--text-sub); white-space: nowrap; }
.home-understage b { color: var(--text-sub); font-weight: 400; }
.home-stories { padding-block: 20px 48px; }
.home-story { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); align-items: center; gap: clamp(32px, 4vw, 64px); padding-block: 64px; border-top: 1px solid var(--line); }
.home-story:nth-child(even) { grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr); }
.home-story:nth-child(even) .story-copy { order: 2; }
.story-copy .eyebrow { margin-bottom: 16px; font-size: 9px; }
.story-copy h2 { margin-bottom: 20px; font-size: clamp(25px, 2.5vw, 36px); font-weight: 500; line-height: 1.3; letter-spacing: -.045em; text-wrap: balance; }
.story-copy p { color: var(--text-mute); font-size: 13px; line-height: 1.95; }
.story-copy p + p { margin-top: 14px; }
.story-copy .story-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 24px; font-size: 12px; }
.story-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-browser { padding-block: 12px 80px; }
.home-browser .section-head { display: block; margin-bottom: 28px; }
.home-browser .section-head h2 { font-size: 27px; }
.home-browser .section-head p { margin-top: 10px; font-size: 13px; }
.home-browser .categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-browser .cat-card { padding: 22px 18px; }
.home-browser .cat-card h3 { font-size: 17px; }
.home-browser .cat-card p { font-size: 11px; }
.live-home a:focus-visible { outline: 2px solid var(--physics); outline-offset: 5px; }
.home-noscript { margin-top: 12px; color: var(--text-sub); font-size: 12px; }
/* JavaScript 준비 후에만 적용한다. 한 번 나타난 내용은 계속 읽을 수 있다. */
.live-home [data-reveal] { transition: opacity 750ms ease, transform 850ms cubic-bezier(.2,.65,.25,1); transition-delay: var(--reveal-delay, 0ms); }
.live-home [data-reveal="pending"] { opacity: 0; transform: translateY(28px); }
.live-home [data-reveal="visible"] { opacity: 1; transform: none; }
.home-story .live-demo { --reveal-delay: 110ms; }
.home-browser .cat-card:nth-child(2) { --reveal-delay: 70ms; }
.home-browser .cat-card:nth-child(3) { --reveal-delay: 140ms; }
.home-browser .cat-card:nth-child(4) { --reveal-delay: 210ms; }
@media (prefers-reduced-motion: reduce) {
  .live-home [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (min-width: 1001px) and (max-width: 1350px) {
  .home-story, .home-story:nth-child(even) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; }
  .home-story:nth-child(even) .story-copy { order: initial; }
  .home-browser .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .live-hero { padding: 36px 0; }
  .live-heading { margin-bottom: 28px; }
  .live-heading h1 { font-size: clamp(30px, 5.8vw, 42px); }
  .home-understage { flex-wrap: wrap; gap: 10px; font-size: 10px; }
  .home-story, .home-story:nth-child(even) { grid-template-columns: 1fr; gap: 28px; padding-block: 42px; }
  .home-story:nth-child(even) .story-copy { order: initial; }
  .story-copy { max-width: 540px; }
  .story-copy h2 { font-size: 29px; margin-bottom: 16px; }
  .story-copy .story-link { margin-top: 18px; }
  .home-stories { padding-block: 8px 20px; }
  .home-browser .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 450px) {
  .demo-visual.hero-scene > svg { width: 150%; max-width: none; margin-left: -25%; }
  .home-browser .categories { grid-template-columns: 1fr; }
  .home-browser .cat-card { padding: 22px; }
}
