/* ==========================================================================
   ACTIVE THEORY PAGE SYSTEM — full-bleed stages, index rails, model labs
   ========================================================================== */

.at-page { background: #030506; color: #f3f6f4; }
.at-page ::selection { background: rgba(185,255,207,.25); }

.at-container { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 var(--gutter); }
.at-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #030506;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.at-hero__stage { position: absolute; inset: 0; z-index: 0; }
.at-hero__stage .mv-host { position: absolute; inset: 0; min-height: 0; border: 0; }
.at-hero__stage .mv-host::after { inset: 18px; }
.at-hero__shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3,5,6,.95) 0%, rgba(3,5,6,.74) 32%, rgba(3,5,6,.14) 68%, rgba(3,5,6,.45) 100%),
    linear-gradient(180deg, rgba(3,5,6,.6) 0%, transparent 24%, transparent 70%, rgba(3,5,6,.9) 100%);
}
.at-hero__ui {
  position: relative; z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 8vh);
  padding-bottom: 10vh;
  pointer-events: none;
}
.at-hero__ui a, .at-hero__ui button { pointer-events: auto; }
.at-hero__eyebrow,
.at-kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: rgba(185,255,207,.65);
}
.at-hero__eyebrow i, .at-kicker i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--at-mint);
  box-shadow: 0 0 12px rgba(185,255,207,.8);
}
.at-hero__title {
  margin: 26px 0 0;
  font-size: clamp(64px, 12.2vw, 208px);
  line-height: 1.01;
  letter-spacing: -.075em;
  font-weight: 580;
  color: #f3f6f4;
  max-width: 14ch;
}
.at-hero__title span {
  display: block;
  background: linear-gradient(100deg, #f3f6f4 0%, #b9ffcf 38%, #7edfff 70%, #f3f6f4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.at-hero__sub {
  margin: 30px 0 0;
  max-width: 48ch;
  color: rgba(243,246,244,.54);
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.85;
}
.at-hero__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; }
.at-hero__foot {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 20px;
  padding-bottom: 26px;
  color: rgba(255,255,255,.3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.at-hero__foot a { color: rgba(185,255,207,.6); }
.at-hero__stats { display: flex; flex-wrap: wrap; gap: 24px 38px; margin-top: 40px; }
.at-hero__stat b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 400; color: #f3f6f4; letter-spacing: -.02em; }
.at-hero__stat span { display: block; margin-top: 5px; color: rgba(255,255,255,.32); font-family: var(--mono); font-size: 7px; letter-spacing: .12em; text-transform: uppercase; }
.at-hero__stat b sup { font-size: .45em; color: var(--at-mint); }

.at-section {
  position: relative;
  padding: clamp(84px, 11vw, 168px) 0;
  border-top: 1px solid rgba(255,255,255,.09);
  background: #030506;
}
.at-section--tight { padding: clamp(54px, 7vw, 96px) 0; }
.at-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(38px, 5vw, 72px);
}
.at-head h2, .at-title {
  margin: 18px 0 0;
  font-size: clamp(42px, 6.8vw, 108px);
  line-height: 1.01;
  letter-spacing: -.06em;
  font-weight: 560;
  color: #f3f6f4;
}
.at-head h2 em { font-style: normal; color: var(--at-mint); }
.at-head p { margin: 0 0 4px; max-width: 50ch; color: rgba(243,246,244,.5); font-size: 14px; line-height: 1.85; }
.at-eyebrow { font-family: var(--mono); font-size: 8px; letter-spacing: .16em; color: rgba(255,255,255,.34); text-transform: uppercase; }
.at-eyebrow b { color: var(--at-mint); font-weight: 400; }

.at-panel {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(8,13,11,.64);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  position: relative;
}
.at-panel::before {
  content: ''; position: absolute; left: -1px; top: -1px; width: 24px; height: 1px; background: var(--at-mint); opacity: .65;
}
.at-panel::after {
  content: ''; position: absolute; right: -1px; bottom: -1px; width: 24px; height: 1px; background: var(--at-mint); opacity: .4;
}

.at-model-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  gap: 1px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.08);
}
.at-model-layout > * { background: #030506; }
.at-model-layout .mv-host { min-height: 640px; border: 0; }
.at-model-side { padding: clamp(24px, 3vw, 42px); display: flex; flex-direction: column; }
.at-tabs { display: flex; flex-wrap: wrap; gap: 1px; margin-bottom: 26px; }
.at-tab {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.02);
  color: rgba(255,255,255,.42);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: .3s;
}
.at-tab:hover { color: #fff; border-color: rgba(185,255,207,.35); }
.at-tab.is-active { color: #07120d; background: var(--at-mint); border-color: var(--at-mint); }
.at-model-side h3 { font-size: clamp(26px, 2.8vw, 42px); line-height: 1; letter-spacing: -.05em; margin: 0 0 8px; }
.at-model-side .armor { color: var(--at-mint); font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.at-model-side .desc { margin: 20px 0; color: rgba(243,246,244,.5); font-size: 13px; line-height: 1.85; }
.at-model-side .quote { border-left: 1px solid var(--at-mint); padding-left: 14px; color: rgba(243,246,244,.72); font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.at-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.at-specs div { background: #030506; padding: 11px 12px; }
.at-specs dt { color: rgba(255,255,255,.3); font-family: var(--mono); font-size: 7px; letter-spacing: .1em; text-transform: uppercase; }
.at-specs dd { margin: 4px 0 0; color: rgba(243,246,244,.78); font-size: 11px; }
.at-bars { display: flex; flex-direction: column; gap: 8px; margin: 22px 0 0; }
.at-bar { display: grid; grid-template-columns: 42px 1fr 28px; align-items: center; gap: 8px; color: rgba(255,255,255,.42); font-family: var(--mono); font-size: 7px; letter-spacing: .08em; }
.at-bar i { display: block; height: 2px; background: rgba(255,255,255,.12); position: relative; }
.at-bar i::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: var(--v); background: var(--at-mint); box-shadow: 0 0 8px rgba(185,255,207,.4); }
.at-bar b { font-weight: 400; color: rgba(255,255,255,.68); text-align: right; }

.at-roster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); margin-top: 30px; }
.at-roster button {
  background: #030506; color: rgba(255,255,255,.4); border: 0; padding: 14px 10px;
  text-align: left; font-family: var(--mono); font-size: 7px; letter-spacing: .08em; text-transform: uppercase;
  transition: .25s;
}
.at-roster button b { display: block; font-family: var(--font); font-size: 13px; letter-spacing: -.02em; color: rgba(255,255,255,.7); margin-bottom: 3px; text-transform: none; }
.at-roster button:hover { background: rgba(185,255,207,.06); color: #fff; }
.at-roster button.is-active { background: rgba(185,255,207,.12); color: var(--at-mint); box-shadow: inset 0 -1px 0 var(--at-mint); }
.at-roster button.is-active b { color: #fff; }

.at-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.at-grid2 > div { background: #030506; padding: clamp(22px, 3vw, 36px); }
.at-grid2 h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.04em; }
.at-grid2 p { color: rgba(243,246,244,.46); font-size: 12px; line-height: 1.8; margin: 0; }
.at-grid2 .num { color: var(--at-mint); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; display: block; margin-bottom: 22px; }

.at-timeline { margin-top: 42px; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,.1); }
.at-timeline__row { display: grid; grid-template-columns: 80px 1fr 1.1fr; gap: 20px; padding: 20px 3px; border-bottom: 1px solid rgba(255,255,255,.08); }
.at-timeline__row .year { font-family: var(--mono); font-size: 10px; color: var(--at-mint); letter-spacing: .08em; }
.at-timeline__row b { font-size: 16px; font-weight: 500; }
.at-timeline__row p { margin: 0; color: rgba(243,246,244,.42); font-size: 12px; line-height: 1.7; }

.at-note { margin-top: 24px; color: rgba(255,255,255,.26); font-family: var(--mono); font-size: 7px; line-height: 1.7; letter-spacing: .06em; }

.home-worlds { background: #030506; }
.home-worlds .at-model-layout .mv-host { min-height: 620px; }
.home-worlds .at-model-side { justify-content: center; }
.home-worlds .at-model-side .btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 1000px) { .home-worlds .at-model-layout .mv-host { min-height: 480px; } }
@media (max-width: 640px) { .home-worlds .at-model-layout .mv-host { min-height: 360px; } }

@media (max-width: 1000px) {
  .at-head { grid-template-columns: 1fr; gap: 22px; }
  .at-model-layout { grid-template-columns: 1fr; }
  .at-model-layout .mv-host { min-height: 500px; }
  .at-roster { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .at-hero__title { font-size: clamp(54px, 15vw, 86px); line-height: .82; }
  .at-hero__sub { font-size: 13px; }
  .at-hero__stats { gap: 16px 20px; }
  .at-hero__stat b { font-size: 15px; }
  .at-model-layout .mv-host { min-height: 380px; }
  .at-grid2 { grid-template-columns: 1fr; }
  .at-timeline__row { grid-template-columns: 60px 1fr; gap: 10px; }
  .at-timeline__row p { grid-column: 2; }
  .at-roster { grid-template-columns: repeat(2, 1fr); }
  .at-specs { grid-template-columns: 1fr; }
}
