.page-home {
  display: block;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(57, 255, 136, 0.07), transparent 62%),
    radial-gradient(900px 520px at -6% 34%, rgba(255, 122, 41, 0.05), transparent 60%),
    var(--ink-900);
  color: var(--bone);
  overflow-x: clip;
}

.page-home .breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0 2px;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--slate);
}

/* ---------- Hero ---------- */
.page-home .hero {
  position: relative;
  border-bottom: 1px solid var(--line);
}

.page-home .hero__grid {
  display: grid;
  gap: clamp(30px, 5vw, 60px);
  padding: clamp(26px, 5vw, 62px) 0 clamp(46px, 7vw, 92px);
}

.page-home .hero__title {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--bone);
}

.page-home .hero__lede {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--bone-soft);
}

.page-home .hero__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.page-home .hero__facts li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--bone-soft);
}

.page-home .hero__facts li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px rgba(57, 255, 136, 0.55);
  animation: home-breathe 1.6s ease-in-out infinite;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.page-home .hero__stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
  box-shadow: var(--shadow-float);
  aspect-ratio: 16 / 10;
}

.page-home .hero__stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06);
}

.page-home .hero__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 20, 39, 0.12) 0%, rgba(7, 20, 39, 0.78) 100%);
  pointer-events: none;
}

.page-home .trace {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .trace__path {
  fill: none;
  stroke: var(--neon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 12 9;
  opacity: 0.62;
  animation: home-trace 9s linear infinite;
}

.page-home .hero__caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--bone-soft);
}

.page-home .hero__stats {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.page-home .stat-chip {
  display: grid;
  gap: 5px;
  align-content: start;
  padding: 14px 12px;
  background: var(--ink-850);
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.page-home .stat-chip:hover {
  background: var(--ink-800);
  transform: translateY(-2px);
}

.page-home .stat-chip__num {
  font-family: var(--font-mono);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .stat-chip__label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--slate);
}

/* ---------- Rhythm ---------- */
.page-home .rhythm {
  border-bottom: 1px solid var(--line);
}

.page-home .rhythm__grid {
  display: grid;
  gap: clamp(22px, 3vw, 40px);
}

.page-home .rhythm__head h2 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.page-home .rhythm__body {
  display: grid;
  gap: 16px;
  max-width: 46em;
}

.page-home .rhythm__body p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--bone-soft);
}

.page-home .tick-rail {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 4px;
  margin: 12px 0 0;
}

.page-home .tick-rail__seg {
  position: relative;
  display: block;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(138, 155, 192, 0.09) 100%);
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.page-home .tick-rail__seg:hover {
  z-index: 2;
  border-color: var(--neon);
  background: linear-gradient(180deg, rgba(57, 255, 136, 0.04) 0%, rgba(57, 255, 136, 0.2) 100%);
  box-shadow: 0 0 16px rgba(57, 255, 136, 0.2);
}

.page-home .tick-rail__hint {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px);
  white-space: nowrap;
  padding: 4px 7px;
  border: 1px solid var(--line-strong);
  background: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.08em;
  color: var(--neon);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.page-home .tick-rail__seg:hover .tick-rail__hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.page-home .rhythm__status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--slate) !important;
}

.page-home .rhythm__status .data-dot {
  flex: none;
}

/* ---------- Shots ---------- */
.page-home .shots {
  border-bottom: 1px solid var(--line);
}

.page-home .shots__banner {
  position: relative;
  margin: 0 0 clamp(26px, 3.5vw, 44px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .shots__banner img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
}

.page-home .shots__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(7, 20, 39, 0.72) 0%, rgba(7, 20, 39, 0.14) 58%, rgba(7, 20, 39, 0.55) 100%);
  pointer-events: none;
}

.page-home .shots__banner figcaption {
  position: absolute;
  left: 18px;
  bottom: 15px;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--bone-soft);
}

.page-home .shots__head {
  max-width: 46em;
}

.page-home .shots__head h2 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.page-home .shots__head .section-head__lead {
  margin: 16px 0 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--bone-soft);
}

.page-home .flow {
  position: relative;
  list-style: none;
  margin: clamp(28px, 3.5vw, 42px) 0 0;
  padding: 0;
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.page-home .flow__item {
  position: relative;
  padding-top: 32px;
}

.page-home .flow__item::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 12px;
  height: 12px;
  border: 1px solid var(--copper);
  border-radius: 50%;
  background: var(--ink-900);
}

.page-home .flow__idx {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--copper);
}

.page-home .flow__title {
  margin: 9px 0 7px;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bone);
}

.page-home .flow__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .shots__meta {
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.75;
  color: var(--bone-soft);
}

.page-home .shots__meta .mono-label {
  margin-right: 8px;
}

/* ---------- Replay ---------- */
.page-home .replay {
  border-bottom: 1px solid var(--line);
}

.page-home .replay__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
}

.page-home .replay__copy h2 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.page-home .replay__copy .lede {
  margin: 16px 0 0;
  color: var(--bone-soft);
}

.page-home .replay__list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 11px;
}

.page-home .replay__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--bone-soft);
}

.page-home .replay__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 1px;
  background: var(--flame);
}

.page-home .replay__note {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}

.page-home .export-preview {
  margin: 26px 0 0;
}

.page-home .export-preview__summary {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
}

.page-home .export-preview__summary::-webkit-details-marker {
  display: none;
}

.page-home .export-preview__summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--flame);
}

.page-home .export-preview[open] .export-preview__summary::after {
  content: "–";
}

.page-home .export-preview__panel {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--flame);
  border-radius: var(--radius);
  background: var(--ink-850);
  box-shadow: var(--shadow-float);
}

.page-home .export-preview__panel .mono-label {
  display: block;
  margin-bottom: 12px;
}

.page-home .export-preview__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .export-preview__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.page-home .export-preview__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.page-home .export-preview__fmt {
  flex: none;
  min-width: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--flame);
}

.page-home .export-preview__list code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--bone-soft);
  word-break: break-all;
}

.page-home .replay__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .replay__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.page-home .replay__media figcaption {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--slate);
}

/* ---------- Experts ---------- */
.page-home .experts {
  border-bottom: 1px solid var(--line);
}

.page-home .experts__grid {
  display: grid;
  gap: clamp(26px, 4vw, 50px);
}

.page-home .experts__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-800);
}

.page-home .experts__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .experts__copy h2 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.page-home .experts__copy .lede {
  margin: 16px 0 0;
  color: var(--bone-soft);
}

.page-home .experts__stats {
  margin: 26px 0 0;
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
}

.page-home .experts__stats > div {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.page-home .experts__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--copper);
}

.page-home .experts__stats dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--bone-soft);
}

.page-home .experts__copy .btn {
  margin-top: 26px;
}

/* ---------- Next ---------- */
.page-home .next__head {
  max-width: 46em;
}

.page-home .next__head h2 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.page-home .next__trust {
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--bone-soft);
}

.page-home .next__list {
  list-style: none;
  margin: clamp(28px, 3.5vw, 44px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .next__item {
  border-bottom: 1px solid var(--line);
}

.page-home .next__link {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "num title arrow"
    "num note arrow";
  align-items: start;
  gap: 6px 16px;
  padding: 22px 6px 22px 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.18s ease, transform 0.18s ease, padding-left 0.18s ease;
}

.page-home .next__link:hover {
  background: rgba(255, 122, 41, 0.06);
  transform: translateY(-2px);
  padding-left: 12px;
}

.page-home .next__link:hover .next__title {
  color: var(--flame);
}

.page-home .next__link:hover .next__arrow {
  color: var(--flame);
  transform: translateX(4px);
}

.page-home .next__link:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
}

.page-home .next__num {
  grid-area: num;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--copper);
  padding-top: 4px;
}

.page-home .next__title {
  grid-area: title;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--bone);
  transition: color 0.16s ease;
}

.page-home .next__note {
  grid-area: note;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
}

.page-home .next__arrow {
  grid-area: arrow;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--slate);
  transition: color 0.16s ease, transform 0.16s ease;
}

.page-home .next__foot {
  margin: 26px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

/* ---------- Motion ---------- */
@keyframes home-trace {
  to {
    stroke-dashoffset: -168;
  }
}

@keyframes home-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .trace__path,
  .page-home .hero__facts li::before {
    animation: none;
  }

  .page-home .stat-chip,
  .page-home .next__link,
  .page-home .tick-rail__seg,
  .page-home .tick-rail__hint {
    transition: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .page-home .hero__stats {
    grid-template-columns: 1fr;
  }

  .page-home .tick-rail {
    gap: 2px;
  }

  .page-home .tick-rail__seg {
    height: 38px;
  }

  .page-home .next__link {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "num title"
      "num note";
  }

  .page-home .next__arrow {
    display: none;
  }
}

@media (min-width: 760px) {
  .page-home .rhythm__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .page-home .flow::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 6px;
    right: 6px;
    height: 1px;
    background: linear-gradient(90deg, var(--copper) 0%, var(--line-strong) 55%, rgba(138, 155, 192, 0.08) 100%);
  }

  .page-home .experts__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 32px;
  }
}

@media (min-width: 900px) {
  .page-home .replay__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center;
  }

  .page-home .experts__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .page-home .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-home .hero__copy {
    padding-top: 22px;
  }

  .page-home .hero__visual {
    position: sticky;
    top: calc(var(--header-h) + 22px);
  }

  .page-home .next__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
  }

  .page-home .next__item {
    border-top: 1px solid var(--line);
  }

  .page-home .next__link {
    height: 100%;
    padding-right: 22px;
  }
}
