/* ===== Pill override — nox adds align-self ===== */
.pill { align-self: flex-start; }

/* ===== Hero canvas opacity — nox override ===== */
.hero-canvas { opacity: 0.1; }

/* ===== Body text override — nox default max-width ===== */
.body-text { max-width: 440px; }

/* ===== What Nox Does — 3-column pillars ===== */
.nox-pillars { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.nox-pillar { padding: var(--space-lg) var(--space-md); border-right: var(--border); display: flex; flex-direction: column; gap: var(--space-xs); }
.nox-pillar:last-child { border-right: none; }

/* ===== Hero desc override — nox max-width ===== */
.hero-desc { max-width: 480px; }

/* ===== Chain strip ===== */
.chain-strip { padding: 14px var(--space-md); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chain-strip-trailing { margin-left: auto; color: var(--fg-muted); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }

/* ===== Packet stream / TX section ===== */
.tx-wrap { position: relative; }
.tx-inner { padding: var(--space-lg) var(--space-md); position: relative; z-index: 2; }
.tx-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: var(--space-lg); gap: var(--space-md); }
.tx-desc { text-align: right; flex-shrink: 0; }
.wave-wrap { display: flex; gap: 2px; height: 200px; align-items: center; mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent); margin-bottom: var(--space-md); }
.fin { flex: 1; background: var(--fg); height: 20%; transform-origin: left center; animation: finPulse 2.5s infinite ease-in-out; }
@keyframes finPulse { 0%, 100% { height: 6%; opacity: 0.03; } 50% { height: 70%; opacity: 0.1; } }
.tx-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-xs); font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.04em; color: var(--fg-muted); }

/* ===== Card split ===== */
.card-split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--border); }
.card-split-left { padding: var(--space-lg) var(--space-md); border-right: var(--border); display: flex; flex-direction: column; gap: var(--space-md); position: relative; overflow: hidden; }
.card-split-right { padding: var(--space-lg) var(--space-md); display: flex; flex-direction: column; gap: var(--space-md); position: relative; }
.card-split-right > *:not(.dots) { position: relative; z-index: 2; }
.card-split-left > *:not(canvas):not(.dots) { position: relative; z-index: 2; }

/* ===== Use case tabs & panels ===== */
.uc-tabs { display: flex; border-bottom: var(--border); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.uc-tab { appearance: none; border: none; background: transparent; padding: var(--space-sm) var(--space-md); font-family: var(--serif); font-size: var(--text-lg); color: var(--fg-muted); cursor: pointer; white-space: nowrap; border-right: var(--border); transition: background 0.2s, color 0.2s; flex-shrink: 0; }
.uc-tab:last-child { border-right: none; }
.uc-tab:hover { background: var(--fg-ghost); }
.uc-tab.active { color: var(--fg); background: var(--fg-ghost); }
.uc-panel { display: none; }
.uc-panel.active { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--border); min-height: 420px; }
.uc-left { padding: var(--space-lg) var(--space-md); border-right: var(--border); display: flex; flex-direction: column; justify-content: flex-start; gap: var(--space-sm); position: relative; overflow: hidden; }
.uc-left > *:not(canvas):not(.dots) { position: relative; z-index: 2; }
.uc-right { padding: var(--space-lg) var(--space-md); display: flex; flex-direction: column; justify-content: flex-start; gap: var(--space-sm); position: relative; }
.uc-right > *:not(.dots) { position: relative; z-index: 2; }
.uc-title { font-family: var(--serif); font-size: var(--text-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.02em; }
.uc-body { font-size: var(--text-base); line-height: 1.6; color: var(--fg-muted); max-width: 480px; }
.uc-detail-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: var(--border); gap: var(--space-sm); }
.uc-detail-label { font-family: var(--serif); font-style: italic; font-size: var(--text-base); }
.uc-detail-value { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; color: var(--fg-muted); }

/* ===== Globe split ===== */
.globe-split { height: 520px; }
#globe-box { position: absolute; inset: 0; background: var(--bg); }

/* ===== Radial / Architecture split ===== */
.radial-split { min-height: 660px; }
.radial-split .card-split-right { min-height: 560px; }
#fan-box { width: 95%; height: 95%; max-width: 700px; position: relative; }
#fan-box svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* ===== SVG classes ===== */
.bp { fill: transparent; stroke: var(--fg); stroke-width: 0.5; transition: fill 0.3s; cursor: pointer; }
.bg { cursor: pointer; }
.bg:hover .bp, .bg.active .bp { fill: var(--fg-ghost); }
.bl { font-family: var(--serif); font-size: 1.8rem; fill: var(--fg); pointer-events: none; }
.bg:hover .bl { font-style: italic; font-weight: 600; }
.da { stroke: var(--fg-faint); stroke-width: 0.5; stroke-dasharray: 2 4; }
.db { fill: none; stroke: var(--fg); stroke-linecap: square; transition: stroke-width 0.3s; }
.bg:hover .db { stroke-width: 6; }
.dc { fill: var(--bg); stroke: var(--fg); stroke-width: 1; }
.mt { font-family: var(--sans); font-size: var(--text-xs); fill: var(--fg); text-anchor: middle; opacity: 0; transition: opacity 0.3s; }
.bg:hover .mt { opacity: 1; }
.gr { fill: none; stroke: var(--fg); stroke-width: 0.5; opacity: 0.12; }
.pv { fill: var(--bg); stroke: var(--fg); stroke-width: 1.5; }

/* ===== Radial metrics ===== */
.radial-metrics { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-lg); min-height: 200px; }
.radial-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: var(--border); gap: var(--space-sm); }
.radial-row-label { font-family: var(--serif); font-style: italic; font-size: var(--text-lg); }
.radial-row-value { font-size: var(--text-sm); font-weight: 600; white-space: nowrap; }

/* ===== Reveal section ===== */
.reveal-heading { font-family: var(--serif); font-size: clamp(3.5rem, 11vw, 8rem); font-weight: 400; line-height: 0.9; letter-spacing: -0.04em; margin-bottom: var(--space-lg); }
.reveal-heading span { display: inline-block; opacity: 0.08; filter: blur(6px); transition: all 0.5s ease; cursor: default; }
.reveal-heading:hover span { opacity: 1; filter: blur(0); }
.reveal-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-lg); }
.reveal-col { border-top: var(--border); padding-top: var(--space-md); }
.reveal-col p { font-family: var(--serif); font-style: italic; font-size: var(--text-sm); line-height: 1.55; color: var(--fg-muted); max-width: 520px; }

/* ===== Dither background ===== */
.dither-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.06; pointer-events: none; }

/* ===== Nox footer overrides ===== */
/* Base footer styles now in components.css — nox-specific overrides only if needed */

/* ===== Nox responsive — 1024px ===== */
@media (max-width: 1024px) {
  .card-split { grid-template-columns: 1fr; }
  .card-split-left { border-right: none; border-bottom: var(--border); }
  .uc-panel.active { grid-template-columns: 1fr; }
  .uc-left { border-right: none; border-bottom: var(--border); }
  .uc-tab { padding: var(--space-sm); font-size: var(--text-base); }
  .globe-split { height: auto; }
  .globe-split .card-split-left { height: 360px; }
  .radial-split .card-split-left { min-height: 380px; display: flex; align-items: center; justify-content: center; }
  .radial-split .card-split-right { min-height: 400px; }
  .heading-display { font-size: clamp(1.2rem, 2.5vw, 2rem); }
}

/* ===== Nox responsive — 768px ===== */
@media (max-width: 768px) {
  .chain-strip-trailing { display: none; }
  .nox-pillars { grid-template-columns: 1fr; }
  .nox-pillar { border-right: none; border-bottom: var(--border); }
  .nox-pillar:last-child { border-bottom: none; }
  .tx-header { flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
  .tx-desc { text-align: left; max-width: 100%; }
  .wave-wrap { height: 140px; }
  .card-split { grid-template-columns: 1fr; }
  .card-split-left { border-right: none; border-bottom: var(--border); padding: var(--space-lg) var(--space-md); }
  .card-split-right { padding: var(--space-lg) var(--space-md); }
  .uc-panel.active { grid-template-columns: 1fr; min-height: 470px; }
  .uc-left { border-right: none; border-bottom: var(--border); padding: var(--space-md); }
  .uc-right { padding: var(--space-md); }
  .uc-tab { padding: var(--space-xs) var(--space-sm); font-size: var(--text-sm); }
  .globe-split .card-split-left { height: 280px; }
  .radial-split .card-split-left { min-height: 380px; }
  .radial-split .card-split-right { min-height: auto; }
  .reveal { min-height: auto !important; }
  .reveal-heading { font-size: clamp(2.8rem, 14vw, 4rem); margin-bottom: var(--space-md); }
  .reveal-heading span { opacity: 1; filter: none; }
  .reveal-cols { grid-template-columns: 1fr; gap: var(--space-sm); }
}

/* ===== Nox responsive — 420px ===== */
@media (max-width: 420px) {
  .hero-title { font-size: clamp(2.8rem, 15vw, 4rem); }
  .reveal-heading { font-size: clamp(2.2rem, 14vw, 3rem); }
}
