.page-home {
  --slot-instant: #2FBF8F;
  --slot-f15: #17C3D4;
  --slot-m30: #A9E8EF;
  --slot-h1: #6B7A8A;
  --slot-today: #46607A;
  --slot-next: #2A3B4F;
  --home-gap: clamp(14px, 2vw, 24px);
  display: block;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-home h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.16;
  letter-spacing: -.015em;
  font-weight: 900;
  margin: 0 0 14px;
}

.page-home .lede {
  font-size: 16px;
  line-height: 1.78;
  color: var(--slate);
  margin: 0;
  max-width: 62ch;
}

.page-home .section {
  position: relative;
  padding: clamp(46px, 6.5vw, 92px) 0;
}

.page-home .section--paper { background: var(--paper); color: var(--graphite); }
.page-home .section--dark { background: linear-gradient(180deg, var(--deep), var(--ink)); color: var(--paper); }
.page-home .section--ink { background: var(--ink); color: var(--paper); }
.page-home .section--dark .lede,
.page-home .section--ink .lede { color: rgba(247, 249, 251, .72); }

.page-home .section-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--cyan-ink);
  margin: 0 0 14px;
}
.page-home .section--dark .section-index,
.page-home .section--ink .section-index { color: var(--cyan); }

.page-home .section-head {
  max-width: 64ch;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .rule-tick {
  height: 10px;
  margin-bottom: clamp(26px, 4vw, 42px);
  background-image: repeating-linear-gradient(90deg, var(--mist) 0 1px, transparent 1px 26px);
}
.page-home .rule-tick--dark {
  background-image: repeating-linear-gradient(90deg, rgba(169, 232, 239, .28) 0 1px, transparent 1px 26px);
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  padding: calc(var(--header-h) + 36px) 0 clamp(42px, 6vw, 78px);
  background:
    radial-gradient(120% 78% at 84% 0%, rgba(23, 195, 212, .22), transparent 62%),
    linear-gradient(158deg, var(--ink) 0%, var(--deep) 58%, #0A2B4E 100%);
  color: var(--paper);
  overflow: hidden;
}
.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(169, 232, 239, .075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(169, 232, 239, .075) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 88%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 88%);
}
.page-home .hero-inner { position: relative; z-index: 1; }

.page-home .home-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(247, 249, 251, .52);
  margin-bottom: 20px;
}
.page-home .home-crumb [aria-current="page"] { color: var(--cyan); }

.page-home .hero-intro h1 {
  font-size: clamp(32px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -.022em;
  font-weight: 900;
  margin: 0 0 20px;
  max-width: 18ch;
  color: var(--paper);
}
.page-home .hero-intro .lede {
  color: rgba(247, 249, 251, .74);
  max-width: 60ch;
  margin-bottom: clamp(30px, 4vw, 46px);
}

.page-home .hero-collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}

/* ---------- panels ---------- */
.page-home .panel--dark {
  background: linear-gradient(180deg, rgba(7, 26, 49, .94), rgba(11, 37, 69, .84));
  border: 1px solid rgba(169, 232, 239, .18);
  color: var(--paper);
}
.page-home .panel--cut {
  clip-path: polygon(0 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%);
}
.page-home .panel-response {
  padding: clamp(20px, 2.4vw, 34px);
}
.page-home .panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.page-home .panel-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(247, 249, 251, .88);
  margin: 0;
}
.page-home .panel-note {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(247, 249, 251, .58);
  margin: 8px 0 0;
}
.page-home .panel-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cyan);
  margin: 16px 0 0;
}
.page-home .panel-response > .panel-value { font-size: clamp(38px, 6vw, 60px); }
.page-home .panel-value .unit { font-size: .46em; margin-left: 2px; }

.page-home .side { padding: clamp(18px, 2vw, 26px); }
.page-home .side .panel-value { font-size: clamp(26px, 3.2vw, 36px); margin-top: 14px; }

/* ---------- slot strip ---------- */
.page-home .slot-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  margin: clamp(18px, 2.4vw, 26px) 0 14px;
}
.page-home .slot {
  position: relative;
  display: block;
  height: 50px;
  border-radius: 1px;
  background: var(--slot-next);
  overflow: hidden;
  outline-offset: 2px;
  transition: transform .18s var(--ease);
}
.page-home .slot:focus-visible { outline: 2px solid var(--orange); }
.page-home .slot em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  font-style: normal;
  font-size: 9px;
  text-align: center;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.page-home .slot--instant { background: var(--slot-instant); }
.page-home .slot--f15 { background: var(--slot-f15); }
.page-home .slot--m30 { background: var(--slot-m30); }
.page-home .slot--h1 { background: var(--slot-h1); }
.page-home .slot--today { background: var(--slot-today); }
.page-home .slot--next { background: var(--slot-next); }
.page-home .slot--instant em,
.page-home .slot--f15 em,
.page-home .slot--m30 em { color: rgba(7, 26, 49, .78); }
.page-home .slot--h1 em,
.page-home .slot--today em,
.page-home .slot--next em { color: rgba(247, 249, 251, .82); }

.page-home .slot-tip {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 8px;
  line-height: 1.15;
  text-align: center;
  letter-spacing: .02em;
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.page-home .slot:hover .slot-tip,
.page-home .slot:focus-visible .slot-tip { opacity: 1; }

.page-home .sweep {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  width: 2px;
  background: var(--orange);
  box-shadow: 0 0 0 1px rgba(255, 106, 43, .3), 0 0 14px rgba(255, 106, 43, .55);
  opacity: 0;
  pointer-events: none;
  animation: home-sweep 780ms var(--ease) .3s forwards;
}
@keyframes home-sweep {
  0% { left: 0; opacity: 0; }
  18% { opacity: 1; }
  100% { left: 64%; opacity: 1; }
}

.page-home .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0 0 clamp(18px, 2.4vw, 24px);
  padding: 0;
  font-size: 11px;
  color: rgba(247, 249, 251, .7);
}
.page-home .legend li { display: inline-flex; align-items: center; gap: 6px; }
.page-home .lg { display: inline-block; width: 10px; height: 10px; }
.page-home .lg--instant { background: var(--slot-instant); }
.page-home .lg--f15 { background: var(--slot-f15); }
.page-home .lg--m30 { background: var(--slot-m30); }
.page-home .lg--h1 { background: var(--slot-h1); }
.page-home .lg--today { background: var(--slot-today); }
.page-home .lg--next { background: var(--slot-next); }

/* ---------- figures ---------- */
.page-home .figure { margin: 0; }
.page-home .figure-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(169, 232, 239, .08);
}
.page-home .figure-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  display: block;
}
.page-home .figure-caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--slate);
}
.page-home .panel--dark .figure-caption { color: rgba(247, 249, 251, .58); }
.page-home .panel-figure .figure-frame { aspect-ratio: 16 / 10; }

/* ---------- data band ---------- */
.page-home .data-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(169, 232, 239, .18);
  border: 1px solid rgba(169, 232, 239, .18);
}
.page-home .band-item {
  background: var(--ink);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-home .band-num {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.page-home .band-txt { font-size: 12px; color: rgba(247, 249, 251, .64); }

/* ---------- lanes ---------- */
.page-home .lanes-figure { margin-bottom: clamp(22px, 3vw, 34px); }
.page-home .lanes-figure .figure-frame { aspect-ratio: 21 / 9; }

.page-home .lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}
.page-home .lane {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--white);
  border: 1px solid var(--mist);
  border-left: 3px solid var(--cyan);
  color: inherit;
  text-decoration: none;
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.page-home .lane:hover,
.page-home .lane:focus-visible {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 16px 34px -20px rgba(11, 37, 69, .42);
}
.page-home .lane--primary {
  background: linear-gradient(150deg, var(--deep), var(--ink));
  color: var(--paper);
  border-color: rgba(169, 232, 239, .22);
  border-left-color: var(--orange);
}
.page-home .lane h3 {
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
}
.page-home .lane p {
  margin: 0;
  font-size: 15px;
  line-height: 1.72;
  color: var(--slate);
}
.page-home .lane--primary p { color: rgba(247, 249, 251, .74); }
.page-home .lane-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan-ink);
}
.page-home .lane--primary .lane-index { color: var(--cyan); }
.page-home .lane-go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.page-home .lane--primary .lane-go { color: var(--orange); }
.page-home .lane-go i {
  font-style: normal;
  transition: transform .22s var(--ease);
}
.page-home .lane:hover .lane-go i,
.page-home .lane:focus-visible .lane-go i { transform: translateX(4px); }

/* ---------- scale ---------- */
.page-home .scale-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(169, 232, 239, .2);
  margin-bottom: clamp(20px, 3vw, 28px);
}
.page-home .scale-cell {
  background: rgba(11, 37, 69, .9);
  padding: clamp(20px, 3vw, 32px) clamp(14px, 2vw, 24px);
}
.page-home .scale-num {
  display: block;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.page-home .scale-num .unit {
  font-size: .42em;
  margin-left: 4px;
  color: var(--cyan);
  font-weight: 700;
}
.page-home .scale-cell p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(247, 249, 251, .62);
}
.page-home .scale-note {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(247, 249, 251, .72);
  max-width: 74ch;
  margin: 0;
}
.page-home .scale-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- area ---------- */
.page-home .area-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 50px);
  align-items: start;
}
.page-home .area-points {
  list-style: none;
  margin: clamp(20px, 3vw, 28px) 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.page-home .area-points li {
  padding-left: 16px;
  border-left: 2px solid var(--mist);
  font-size: 15px;
  line-height: 1.72;
  color: var(--slate);
}
.page-home .area-points strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--graphite);
  margin-bottom: 3px;
}
.page-home .area-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--slate);
  margin: 0;
}
.page-home .area-figure .figure-frame { aspect-ratio: 10 / 7; }

/* ---------- archive ---------- */
.page-home .archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
  align-items: start;
}
.page-home .archive-list { display: grid; gap: var(--home-gap); }
.page-home .archive-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 20px 22px;
  background: rgba(7, 26, 49, .62);
  border: 1px solid rgba(169, 232, 239, .16);
  border-left: 3px solid var(--cyan);
  color: inherit;
  text-decoration: none;
  transition: transform .2s var(--ease), background .2s var(--ease), border-left-color .2s var(--ease);
}
.page-home .archive-card:hover,
.page-home .archive-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(11, 37, 69, .88);
  border-left-color: var(--orange);
}
.page-home .archive-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--cyan);
  padding-top: 5px;
  white-space: nowrap;
}
.page-home .archive-card h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 6px;
  line-height: 1.4;
}
.page-home .archive-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(247, 249, 251, .7);
}
.page-home .archive-list .btn { justify-self: start; }
.page-home .archive-figure .figure-frame { aspect-ratio: 1000 / 620; }

/* ---------- contact ---------- */
.page-home .contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 4vw, 50px);
  align-items: start;
}
.page-home .contact-hint {
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(247, 249, 251, .68);
}
.page-home .contact-hint a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-home .contact-facts { display: grid; gap: 2px; }
.page-home .fact {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(169, 232, 239, .18);
}
.page-home .fact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan);
}
.page-home .fact-value {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--paper);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.page-home .contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- responsive ---------- */
@media (min-width: 620px) {
  .page-home .slot-strip { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .page-home .data-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .page-home .lane { grid-column: span 6; }
  .page-home .lanes {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .page-home .lane:nth-child(1) {
    grid-column: 1 / span 6;
    grid-row: 1 / span 2;
  }
  .page-home .lane:nth-child(2) { grid-column: 7 / span 6; grid-row: 1; }
  .page-home .lane:nth-child(3) { grid-column: 7 / span 6; grid-row: 2; }

  .page-home .area-layout { grid-template-columns: 7fr 5fr; }
  .page-home .archive-layout { grid-template-columns: 7fr 5fr; }
  .page-home .contact-inner { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .page-home .hero-collage {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .page-home .panel-response {
    grid-column: 1 / span 7;
    grid-row: 1 / span 2;
  }
  .page-home .side--a { grid-column: 8 / span 5; grid-row: 1; }
  .page-home .side--b { grid-column: 8 / span 5; grid-row: 2; }
  .page-home .data-band { grid-column: 1 / -1; grid-row: 3; }
}

@media (min-width: 1024px) {
  .page-home .slot-strip { grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
  .page-home .slot-tip { display: flex; }
  .page-home .slot { height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .sweep {
    animation: none;
    left: 64%;
    opacity: 1;
  }
  .page-home .lane,
  .page-home .archive-card,
  .page-home .slot,
  .page-home .lane-go i,
  .page-home .slot-tip {
    transition: none;
  }
  .page-home .lane:hover,
  .page-home .lane:focus-visible,
  .page-home .archive-card:hover,
  .page-home .archive-card:focus-visible { transform: none; }
}
