/* ==========================================================================
   TRBEXA — inner pages
   ========================================================================== */

/* ---------- page hero ---------- */
.phero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 52px);
  margin-top: clamp(28px, 4vw, 46px);
  border-top: 1px solid var(--line-soft);
  padding-top: 22px;
}
.phero__stats div { display: flex; flex-direction: column; gap: 3px; }
.phero__stats b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.phero__stats span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); }

/* ---------- hotspot explorer ---------- */
.explorer { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.explorer__figure { position: sticky; top: calc(var(--nav-h) + 28px); }
.explorer__stage { position: relative; isolation: isolate; }
.explorer__stage img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .85)); }
.explorer__stage::before {
  content: '';
  position: absolute;
  inset: 8% -4% 2%;
  z-index: -1;
  background: radial-gradient(ellipse at 52% 62%, rgba(232, 17, 31, .18), transparent 66%);
}
.hot {
  position: absolute;
  translate: -50% -50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 242, 238, .28);
  border-radius: 50%;
  background: rgba(8, 8, 10, .55);
  backdrop-filter: blur(4px);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--dim);
  transition: background .2s linear, border-color .2s linear, color .2s linear;
}
.hot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--red);
  opacity: 0;
  transform: scale(.7);
  transition: opacity .25s linear, transform .3s var(--ease-out);
}
.hot:hover, .hot[aria-current="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.hot[aria-current="true"]::after { opacity: .55; transform: scale(1); }
.hot__label {
  position: absolute;
  left: 38px;
  top: 50%;
  translate: 0 -50%;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(8, 8, 10, .85);
  border: 1px solid var(--line-soft);
  padding: 4px 8px 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s linear;
}
.hot[aria-current="true"] .hot__label, .hot:hover .hot__label { opacity: 1; }

/* ---------- subsystem list ---------- */
.subsys { display: flex; flex-direction: column; }
.subsys__row {
  border-top: 1px solid var(--line-soft);
  padding: 0;
  text-align: left;
  width: 100%;
}
.subsys__row:last-child { border-bottom: 1px solid var(--line-soft); }
.subsys__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  padding: 17px 4px 17px 0;
  transition: padding-left .3s var(--ease-out);
}
.subsys__row[aria-current="true"] .subsys__head,
.subsys__row:hover .subsys__head { padding-left: 14px; }
.subsys__n { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; color: #A5A198; transition: color .2s linear; }
.subsys__row[aria-current="true"] .subsys__n { color: var(--red-ink); }
.subsys__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(19px, 1.7vw, 24px);
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color .2s linear;
}
.subsys__row[aria-current="true"] .subsys__name,
.subsys__row:hover .subsys__name { color: var(--ink); }
.subsys__val {
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--mute);
  text-align: right;
  white-space: nowrap;
}
.subsys__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease-out); }
.subsys__row[aria-current="true"] .subsys__body { grid-template-rows: 1fr; }
.subsys__body > div { overflow: hidden; }
.subsys__body p { font-size: 14.5px; line-height: 1.6; color: var(--dim); padding: 0 0 20px 28px; max-width: 46ch; }

/* ---------- data table ---------- */
.datatable { width: 100%; border-collapse: collapse; }
.datatable caption {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  padding-bottom: 14px;
}
.datatable th, .datatable td {
  text-align: left;
  padding: 15px 14px 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  font-weight: 300;
  color: var(--dim);
  vertical-align: baseline;
}
.datatable th {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 400;
  border-bottom-color: var(--line);
}
.datatable tr:first-child th { border-top: 1px solid var(--line); }
.datatable td:first-child {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.datatable td.num { font-family: var(--f-mono); font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.datatable .tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 6px 2px;
  border: 1px solid var(--line);
  color: var(--mute);
  white-space: nowrap;
}
.datatable .tag--live { color: var(--red); border-color: rgba(232, 17, 31, .45); }
.datatable--paper th, .datatable--paper td { border-bottom-color: var(--line-paper); }
.datatable--paper td:first-child, .datatable--paper td.num { color: var(--paper-ink); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 110px); align-items: start; }
.split h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 54px);
  line-height: .94;
  letter-spacing: -.008em;
  text-transform: uppercase;
  max-width: 14ch;
}
.split__body > * + * { margin-top: 18px; }
.split__body p { font-size: 16px; line-height: 1.68; color: var(--dim); max-width: 56ch; }
.sec--paper .split__body p { color: var(--on-paper-dim); }
.sec--paper .step h3 { color: var(--paper-ink); }

/* ---------- steps ---------- */
.steps { display: grid; border-top: 1px solid var(--line-soft); }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: clamp(14px, 3vw, 40px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.sec--paper .step__n { -webkit-text-stroke: 1px rgba(20, 20, 15, .46); }
.step__n {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 242, 238, .34);
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 23px);
  text-transform: uppercase;
  letter-spacing: .015em;
  margin-bottom: 7px;
}
.step p { font-size: 14.5px; line-height: 1.62; color: var(--dim); max-width: 54ch; }

/* ---------- card grid ---------- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border-block: 1px solid var(--line-soft);
}
.cell {
  background: var(--bg);
  padding: clamp(22px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}
.cell h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.cell p { font-size: 14px; line-height: 1.6; color: var(--dim); }
.cell dl { margin: auto 0 0; display: grid; gap: 6px; }
.cell dl div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 6px; }
.cell dt { font-size: 12.5px; color: var(--mute); }
.cell dd { margin: 0; font-family: var(--f-mono); font-size: 12px; color: var(--ink); white-space: nowrap; }

/* ---------- closing band ---------- */
.cta-band {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(64px, 9vw, 130px);
  overflow: clip;
}
.cta-band__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 84px);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.012em;
  max-width: 16ch;
}
.cta-band p { font-size: 15.5px; color: var(--dim); max-width: 42ch; margin-top: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band__glow {
  position: absolute;
  right: -8%;
  top: -40%;
  width: 56vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232, 17, 31, .16), transparent 62%);
  pointer-events: none;
}

/* ---------- note block ---------- */
.note::before {
  content: '';
  flex: none;
  width: 8px; height: 8px;
  margin-top: .5em;
  background: var(--red);
}
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 4px 0 4px 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--dim);
  max-width: 74ch;
}

@media (max-width: 980px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__figure { position: static; }
  .split { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .min-600 { min-width: 620px; }
  .table-scroll { overflow-x: auto; }
}
@media (max-width: 760px) {
  .datatable th, .datatable td { padding-block: 12px; font-size: 13.5px; }
  .datatable td:first-child { font-size: 17px; }
  .step { grid-template-columns: 46px 1fr; }
  .subsys__val { display: none; }
  .explorer__figure { margin-bottom: 10px; }
}
