/* ═══════════════════════════════════════════════════════════
   HOME styles — rebuilt for reliability + impact
   ═══════════════════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  padding: 100px var(--pad) 40px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero > *:not(.hero-grid) { position: relative; z-index: 2; }

.hero__meta {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 48px;
  padding-top: 20px;
  justify-content: start;
}
.hero__meta > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}
.hero__meta span:last-child {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--fg);
}

.hero__center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  max-width: 1400px;
  padding: 20px 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__eyebrow-line {
  width: 40px;
  height: 1px;
  background: var(--ember);
}

.hero__h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.85;
  margin: 0;
  text-wrap: balance;
}
.hero__h1-row {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 32px);
  flex-wrap: wrap;
}
.hero__h1-word {
  font-size: clamp(64px, 11vw, 180px);
  display: inline-block;
}
.hero__h1-word--big {
  font-size: clamp(80px, 14vw, 240px);
}
.hero__h1-word--it {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
  letter-spacing: -0.02em;
}

.hero__lede {
  max-width: 620px;
  margin-top: 12px;
}
.hero__lede p {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--fg-2);
}
.hero__lede em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  color: var(--ember);
  font-size: 1.1em;
}

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

/* Orbit diagram — pinned bottom-right, decorative */
.hero__orbit-wrap {
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: min(60vh, 520px);
  height: min(60vh, 520px);
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}
.orbit-svg { width: 100%; height: 100%; }

/* Live ticker — top right */
.hero__ticker {
  position: absolute;
  top: 110px;
  right: var(--pad);
  z-index: 3;
}
.ticker {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
  background: rgba(17, 17, 17, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-left: 2px solid var(--ember);
}
.ticker__val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ember);
  letter-spacing: -0.01em;
}

.hero__scroll-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}
.hero__scroll-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, var(--ember), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 30%;
  height: 100%;
  background: var(--fg);
  animation: scroll-tick 2.5s ease-in-out infinite;
}
@keyframes scroll-tick {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(300%); }
}

@media (max-width: 1200px) {
  .hero__orbit-wrap { width: 380px; height: 380px; right: -120px; bottom: -120px; opacity: 0.5; }
  .hero__ticker { position: static; margin-top: 12px; align-self: flex-start; width: fit-content; }
}
@media (max-width: 700px) {
  .hero__meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .hero__h1-word { font-size: clamp(48px, 14vw, 90px); }
  .hero__h1-word--big { font-size: clamp(56px, 16vw, 110px); }
  .hero__orbit-wrap { display: none; }
}

/* ─── SWITCHBOARD ─── */
.sb { padding: 140px 0 120px; border-top: 1px solid var(--line); }
.sb__head { margin-bottom: 80px; max-width: 1000px; }
.sb__head .label { margin-bottom: 24px; display: inline-flex; }
.sb__title {
  font-size: clamp(48px, 7vw, 108px);
  line-height: 0.9;
}
.sb__title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
  letter-spacing: -0.015em;
}

.sb__stage {
  display: grid;
  grid-template-columns: 280px 1fr 1fr;
  gap: 32px;
  align-items: stretch;
  min-height: 620px;
}

/* channel list */
.sb__channels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.ch {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto;
  gap: 6px 16px;
  padding: 24px 20px 24px 0;
  text-align: left;
  border-bottom: 1px solid var(--line);
  transition: all 400ms var(--ease);
  position: relative;
  color: var(--fg-2);
}
.ch__n {
  grid-column: 1; grid-row: 1;
  font-size: 10px;
  color: var(--fg-3);
}
.ch__code {
  grid-column: 2; grid-row: 1;
  font-size: 10px;
  color: var(--ember);
  letter-spacing: 0.2em;
}
.ch__name {
  grid-column: 1 / span 3; grid-row: 2;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg-2);
  transition: color 400ms var(--ease);
}
.ch__bar {
  position: absolute;
  top: 0; bottom: 0;
  left: -20px;
  width: 2px;
  background: var(--ember);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 500ms var(--ease);
}
.ch:hover .ch__name { color: var(--fg); }
.ch--on { background: linear-gradient(90deg, rgba(255, 59, 24, 0.06), transparent); padding-left: 20px; }
.ch--on .ch__bar { transform: scaleY(1); left: 0; }
.ch--on .ch__name { color: var(--fg); font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

/* detail panel */
.sb__detail {
  padding: 40px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.dtl {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: dtlIn 500ms var(--ease) both;
}
@keyframes dtlIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.dtl__top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  flex-wrap: wrap;
}
.dtl__range { color: var(--fg-3); }
.dtl__name {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 0.95;
  margin: 4px 0;
}
.dtl__copy {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
  flex: 1;
}
.dtl__stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.dtl__stat-v {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 64px;
  line-height: 1;
  color: var(--ember);
  letter-spacing: -0.03em;
}
.dtl .cta { align-self: flex-start; margin-top: 8px; }

/* visual panel */
.sb__vis {
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.vis-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-3);
}
.vis-head__dots { font-size: 8px; color: var(--fg-3); letter-spacing: 4px; }
.vis-body {
  flex: 1;
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  flex: 1;
  align-content: start;
  overflow: hidden;
}
.logo-cell {
  padding: 10px 6px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
  color: var(--fg-2);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: cellIn 500ms var(--ease-out) both;
  transition: all 200ms;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.logo-cell:hover { background: var(--ember); color: var(--fg); border-color: var(--ember); }
@keyframes cellIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.pos-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
  align-content: start;
}
.pos-mod {
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  animation: cellIn 500ms var(--ease-out) both;
}
.pos-mod .mono { color: var(--ember); font-size: 10px; }
.pos-mod__dot {
  width: 6px; height: 6px;
  background: #4CD964;
  border-radius: 50%;
  box-shadow: 0 0 8px #4CD964;
}

.pay-ticker {
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow: hidden;
}
.pay-ticker__head, .pay-ticker__row {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-3);
}
.pay-ticker__head { color: var(--fg-3); letter-spacing: 0.1em; border-bottom: 1px solid var(--line); }
.pay-ticker__row { animation: slideIn 400ms var(--ease-out); border-left: 2px solid var(--ember); }
.pay-amt { color: var(--ember); text-align: right; }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 1200px) {
  .sb__stage { grid-template-columns: 260px 1fr; grid-template-rows: auto auto; }
  .sb__vis { grid-column: 1 / span 2; min-height: 320px; }
}
@media (max-width: 800px) {
  .sb__stage { grid-template-columns: 1fr; }
  .sb__vis { grid-column: 1; }
  .sb__channels { border-top: 1px solid var(--line); }
}

/* ─── NUMBERS ─── */
.nums { padding: 160px 0; border-top: 1px solid var(--line); }
.nums__head { margin-bottom: 80px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
.nums__title {
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.05em;
}
.nums__title em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
}
.nums__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.num-card {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  transition: background 400ms;
  min-height: 220px;
}
.num-card:hover { background: var(--bg-2); }
.num-card__top { display: flex; justify-content: space-between; color: var(--fg-3); }
.num-card__val {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}
.num-card__suf {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
  font-size: 0.45em;
  line-height: 1;
  margin-top: 0.1em;
}
@media (max-width: 800px) { .nums__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .nums__grid { grid-template-columns: 1fr; } }

/* ─── QUOTES ─── */
.quotes { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.quotes__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; flex-wrap: wrap; gap: 20px; }
.quotes__nav { display: flex; gap: 8px; }
.quotes__pip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  color: var(--fg-3);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: all 300ms;
}
.quotes__pip.on { background: var(--ember); color: var(--fg); border-color: var(--ember); }
.quote {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  animation: dtlIn 500ms var(--ease) both;
}
.quote__mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 140px;
  line-height: 0.7;
  color: var(--ember);
}
.quote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote footer {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-2);
  flex-wrap: wrap;
  gap: 12px;
}
.quote footer strong { color: var(--fg); font-weight: 500; }
@media (max-width: 700px) {
  .quote { grid-template-columns: 1fr; gap: 16px; }
  .quote__mark { font-size: 80px; }
  .quote footer { grid-column: 1; }
}

/* ─── CLOSER ─── */
.closer-v2 { padding: 160px 0; text-align: center; border-top: 1px solid var(--line); }
.closer-v2__kicker { margin-bottom: 32px; }
.closer-v2__head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 180px);
  line-height: 0.9;
  letter-spacing: -0.055em;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 60px;
}
.closer-v2__em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--ember);
}
.closer-v2__foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.closer-v2__foot p {
  max-width: 420px;
  font-size: 15px;
  color: var(--fg-2);
  text-align: left;
}
