.page-home .hero-collage {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 44px) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(242, 107, 33, 0.18), transparent 58%),
    radial-gradient(90% 80% at 6% 92%, rgba(47, 211, 201, 0.12), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
}

.page-home .hero-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 74, 107, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 74, 107, 0.4) 1px, transparent 1px);
  background-size: 78px 78px;
  opacity: 0.35;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(30px, 5vw, 52px);
}

.page-home .hero-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.page-home .hero-round-label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.page-home .hero-round {
  margin: 8px 0 22px;
  font-size: clamp(30px, 6.6vw, 66px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  word-break: break-word;
  background: linear-gradient(100deg, var(--orange) 0%, var(--orange-bright) 72%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--orange);
}

.page-home .hero-title {
  margin: 0;
  font-size: clamp(27px, 5.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .hero-lead {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.page-home .hero-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.page-home .hero-figures li {
  display: grid;
  gap: 5px;
}

.page-home .hero-figures .mono {
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.page-home .hero-figures small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-home .hero-right {
  display: grid;
  gap: 14px;
  align-content: end;
}

.page-home .hero-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  background: linear-gradient(150deg, var(--panel), var(--ink-deep));
}

.page-home .hero-shot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 64px;
  height: 4px;
  background: var(--orange);
}

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

.page-home .hero-shot .media-caption {
  margin: 0;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(3, 16, 28, 0.72);
}

.page-home .hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .hero-chip {
  display: inline-block;
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(12, 44, 71, 0.78);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .hero-chip:hover,
.page-home .hero-chip:focus-visible {
  color: var(--orange-bright);
  border-color: var(--orange);
}

.page-home .sec-head {
  margin-bottom: clamp(26px, 4vw, 46px);
}

.page-home .sec-num {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: clamp(26px, 4.4vw, 46px);
  line-height: 1;
  letter-spacing: 0.04em;
  color: rgba(242, 107, 33, 0.4);
}

.page-home .sec-title {
  margin: 0;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.26;
  letter-spacing: -0.01em;
  color: var(--text);
}

.page-home .sec-sub {
  margin: 14px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .sync {
  background: linear-gradient(180deg, var(--ink-deep), var(--ink));
  border-top: 1px solid var(--line);
}

.page-home .tab-list {
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.page-home .tab-list::-webkit-scrollbar {
  height: 0;
}

.page-home .tab {
  position: relative;
  flex: 0 0 auto;
  padding: 12px 16px;
  border: 0;
  background: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.page-home .tab[aria-selected="true"] {
  color: var(--text);
}

.page-home .tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -1px;
  height: 2px;
  background: var(--orange);
}

.page-home .tab:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 2px;
}

.page-home .tab-panel {
  animation: home-panel-in 0.28s var(--ease) both;
}

.page-home .tab-panel[hidden] {
  display: none;
}

@keyframes home-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-home .panel-lead {
  margin: 0 0 22px;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .module-row {
  display: grid;
  gap: 14px;
}

.page-home .module-card {
  position: relative;
  padding: 20px 20px 22px;
  background: linear-gradient(160deg, rgba(12, 44, 71, 0.95), rgba(6, 26, 43, 0.85));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.page-home .module-num {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .module-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}

.page-home .module-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .device-grid {
  display: grid;
  gap: 24px;
}

.page-home .device-frame {
  margin: 0;
  max-width: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .device-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.page-home .device-frame .media-caption {
  margin: 0;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .device-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-home .device-steps li {
  padding-left: 26px;
  position: relative;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .device-steps .mono {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--sand);
}

.page-home .entries {
  padding: clamp(52px, 7vw, 96px) 0;
  background:
    radial-gradient(80% 70% at 0% 50%, rgba(47, 211, 201, 0.1), transparent 62%),
    var(--ink-deep);
  border-top: 1px solid var(--line);
}

.page-home .entries-grid {
  display: grid;
  gap: 30px;
}

.page-home .entries-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 34px), calc(100% - 34px) 100%, 0 100%);
  border: 1px solid var(--line);
}

.page-home .entry-card {
  margin-top: 20px;
  padding: 18px 0 18px 20px;
  border-left: 1px solid var(--line);
}

.page-home .entry-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--text);
}

.page-home .entry-card p {
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .link-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .link-arrow:hover,
.page-home .link-arrow:focus-visible {
  color: var(--orange-bright);
  border-bottom-color: var(--orange);
}

.page-home .review {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-deep) 100%);
}

.page-home .review-grid {
  display: grid;
  gap: 32px;
}

.page-home .review-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 20px;
}

.page-home .review-steps li {
  position: relative;
  padding-left: 54px;
}

.page-home .review-steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.2;
  color: rgba(231, 201, 139, 0.75);
}

.page-home .review-steps h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--text);
}

.page-home .review-steps p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .review-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.page-home .stat-card {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  background: rgba(12, 44, 71, 0.85);
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-home .stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.page-home .stat-value {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--orange);
}

.page-home .stat-unit {
  font-size: 12px;
  color: var(--sand);
}

.page-home .review-note {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(12, 44, 71, 0.5);
}

.page-home .review-note summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
}

.page-home .review-note summary:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 3px;
}

.page-home .review-note p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .archive {
  padding: clamp(52px, 7vw, 96px) 0;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(242, 107, 33, 0.12), transparent 60%),
    var(--deep);
  border-top: 1px solid var(--line);
}

.page-home .archive-figure {
  margin: 0 0 clamp(26px, 4vw, 42px);
}

.page-home .archive-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%);
}

.page-home .trace {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  gap: 0;
  margin-bottom: 26px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.page-home .trace-node {
  position: relative;
  display: block;
  padding: 30px 16px 0 0;
  text-decoration: none;
}

.page-home .trace-node::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.page-home .trace-node::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--sand);
  transform: rotate(45deg);
  transition: background 0.2s var(--ease);
}

.page-home .trace-node .mono {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.page-home .trace-node em {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-style: normal;
  color: var(--muted);
}

.page-home .trace-node:hover::after,
.page-home .trace-node:focus-visible::after {
  background: var(--orange);
}

.page-home .trace-node:focus-visible {
  outline: 2px solid var(--orange-bright);
  outline-offset: 4px;
}

.page-home .era-grid {
  display: grid;
  gap: 14px;
}

.page-home .era-card {
  padding: 20px;
  background: rgba(12, 44, 71, 0.72);
  border: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 28px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-home .era-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: var(--text);
}

.page-home .era-card h3 .mono {
  display: inline-block;
  margin-right: 8px;
  color: var(--sand);
  font-size: 15px;
}

.page-home .era-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .era-card:target {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px rgba(242, 107, 33, 0.45);
}

.page-home .archive-more {
  margin: 26px 0 0;
}

.page-home .consult {
  background: linear-gradient(180deg, var(--ink-deep), var(--ink));
  border-top: 1px solid var(--line);
}

.page-home .consult-grid {
  display: grid;
  gap: 30px;
}

.page-home .consult-lead {
  margin: 14px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .consult-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .consult-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .consult-list li {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: rgba(12, 44, 71, 0.6);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.page-home .consult-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--text);
}

.page-home .consult-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

@media (min-width: 720px) {
  .page-home .module-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .device-grid {
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }

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

  .page-home .consult-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
  }

  .page-home .hero-shot img {
    aspect-ratio: 4 / 3.4;
  }

  .page-home .hero-chips {
    justify-content: flex-end;
  }

  .page-home .entries-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: 48px;
  }

  .page-home .review-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 48px;
  }

  .page-home .review-stats {
    gap: 16px;
  }

  .page-home .review-stats .stat-card:nth-child(even) {
    transform: translateY(22px);
  }

  .page-home .trace {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
  }

  .page-home .consult-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    align-items: start;
    gap: 48px;
  }
}
