/* Axiom. Tokens, kicker and closer come from compute.css. */
.ax-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.ax-head h2 { margin-top: 0.7rem; font-weight: 500; font-size: clamp(1.9rem, 3.4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.05; }
.ax-head p:not(.kicker) { margin: 1rem auto 0; max-width: 36rem; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

/* Hero: dark, footage beside the pitch */
.ax-hero {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 3.5rem; align-items: center;
  padding: 8.5rem var(--gutter) 4.5rem;
  background: #050507; color: #f3f2ee;
}
.ax-eyebrow { font-weight: 500; font-size: 1.05rem; color: #9b9a95; }
.ax-hero h1 { margin-top: 0.8rem; font-weight: 500; font-size: clamp(2.5rem, 4.4vw, 4.1rem); letter-spacing: -0.04em; line-height: 1.02; }
.ax-hero-lede { margin-top: 1.4rem; max-width: 33rem; color: #a7a59f; font-size: 1.08rem; line-height: 1.6; }
.ax-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.ax-btn {
  display: inline-flex; align-items: center; padding: 0.8rem 1.35rem; border-radius: 999px;
  background: var(--acid); color: #fff; font-size: 0.95rem; font-weight: 500; text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.ax-btn:hover { background: #3a8bff; }
.ax-btn-ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.24); color: #f3f2ee; }
.ax-btn-ghost:hover { background: transparent; border-color: #f3f2ee; }
.ax-hero-fig > figcaption { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 0.9rem; font-size: 0.8rem; color: #77756f; }
.ax-hero-fig output { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pane-acid); white-space: nowrap; }
.ax-hero-fig > figcaption span { text-align: right; }

/* The viewport: on the overview, the live factory (WebGL passes below, labels drawn above) */
.ax-view { position: relative; aspect-ratio: 16 / 11; border-radius: 18px; overflow: hidden; background: #000; border: 1px solid #1d1e22; }
.ax-view canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ax-new {
  position: absolute; right: 0.8rem; bottom: 0.8rem; z-index: 1;
  padding: 0.45rem 0.85rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #f3f2ee; cursor: pointer;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ax-new:hover { border-color: var(--pane-acid); color: var(--pane-acid); }

/* On the subpages, footage: open-licensed clips in hairline tiles, each labelled with what it shows and who shot it */
.ax-reel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 1px; background: #1d1e22; }
.ax-clip { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #000; }
.ax-view-case .ax-clip { position: absolute; inset: 0; }
.ax-clip video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.ax-clip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.3) 22%, transparent 48%); pointer-events: none; }
.ax-clip figcaption {
  position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.7rem; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.6rem;
  font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: #f3f2ee;
}
.ax-clip figcaption b { font-weight: 500; }
.ax-clip figcaption b::before { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; margin-right: 0.5rem; border-radius: 50%; background: var(--pane-acid); }
.ax-clip figcaption span { color: #9b9a95; }
.ax-credits { max-width: 56rem; margin: 0 auto; padding: 2.5rem var(--gutter) 3.5rem; color: var(--muted); font-size: 0.78rem; line-height: 1.65; text-align: center; }
.ax-credits a { color: inherit; }

/* In-page tabs under the header, as on Cosmos */
main [id] { scroll-margin-top: 6.5rem; }
.ax-subnav {
  position: sticky; top: 3.3rem; z-index: 40;
  display: flex; align-items: center; gap: 2.2rem; padding: 0 var(--gutter);
  background: #121316; border-top: 1px solid #1d1e22;
}
.ax-subnav a { padding: 1.05rem 0; font-size: 0.86rem; color: #a7a59f; text-decoration: none; border-bottom: 2px solid transparent; transition: color 0.2s ease; }
.ax-subnav a:hover { color: #fff; border-bottom-color: var(--acid); }
.ax-subnav .ax-subnav-cta { margin-left: auto; padding: 0.5rem 1rem; border: none; border-radius: 999px; background: var(--acid); color: #fff; font-weight: 500; }
.ax-subnav .ax-subnav-cta:hover { background: #3a8bff; border: none; }

/* Statement, as Scale states it */
.ax-statement { padding: 8rem var(--gutter) 7rem; text-align: center; }
.ax-statement h2 { max-width: 54rem; margin: 0 auto; font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.3rem); letter-spacing: -0.04em; line-height: 1.06; }
.ax-statement > p { max-width: 40rem; margin: 1.4rem auto 0; color: var(--muted); font-size: 1.08rem; line-height: 1.6; }
.ax-pillars { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; max-width: 66rem; margin: 4.5rem auto 0; text-align: left; }
.ax-pillars li { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.ax-pillars b { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.ax-pillars span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* Platform: four capabilities */
.ax-platform { padding: 7rem var(--gutter); border-top: 1px solid var(--line); }
.ax-caps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 3.5rem; }
.ax-caps li { display: flex; flex-direction: column; padding: 1.7rem 1.6rem 1.9rem; background: var(--tile); border-radius: 24px; min-height: 17rem; }
.ax-caps i, .ax-steps i { font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--acid); }
.ax-caps b { margin-top: auto; padding-top: 3rem; font-weight: 500; font-size: 1.35rem; letter-spacing: -0.025em; }
.ax-caps p { margin-top: 0.7rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

/* Solutions: the platform cards, each a link to its page */
.ax-solutions li { padding: 0; }
.ax-solutions a { display: flex; flex-direction: column; height: 100%; padding: 1.7rem 1.6rem 1.6rem; border-radius: 24px; color: inherit; text-decoration: none; transition: background 0.2s ease; }
.ax-solutions a:hover { background: #ebebef; }
.ax-solutions span { margin-top: 1.4rem; font-weight: 500; font-size: 0.9rem; color: var(--acid); }
.ax-solutions span::after { content: " →"; }

/* Applications: a numbered list */
.ax-apps { padding: 7rem var(--gutter); }
.ax-app-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; max-width: 70rem; margin: 3.5rem auto 0; }
.ax-app-list li { display: flex; gap: 1.4rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.ax-app-list i { padding-top: 0.5rem; font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--acid); }
.ax-app-list span { font-weight: 500; font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.3; }

/* Subpages: breadcrumb, feature rows and outputs */
.ax-eyebrow a { color: inherit; text-decoration: none; }
.ax-eyebrow a:hover { color: #f3f2ee; }
.ax-rows { padding: 7rem var(--gutter); background: var(--tile); }
.ax-row-list { list-style: none; max-width: 70rem; margin: 3.5rem auto 0; }
.ax-row-list li { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3rem; padding: 2.2rem 0; border-top: 1px solid #e2e2e6; }
.ax-row-list h3 { font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.1; }
.ax-row-list p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.ax-out { padding: 6rem var(--gutter); text-align: center; }
.ax-outputs { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 58rem; margin: 2.6rem auto 0; }
.ax-outputs li { padding: 0.55rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.ax-hero .ax-episode { min-height: 30rem; border: 1px solid #1d1e22; }

/* Use cases: tabs, copy beside a dark panel */
.ax-cases { padding: 7rem var(--gutter); border-top: 1px solid var(--line); }
.ax-cases-tint { background: var(--tile); border-top: none; }
.ax-tabs { display: flex; justify-content: center; gap: 2rem; margin-top: 2.6rem; border-bottom: 1px solid var(--line); }
.ax-tabs button {
  padding: 0.9rem 0.1rem; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; cursor: pointer;
  font: 500 0.98rem var(--sans); color: var(--muted); transition: color 0.2s ease;
}
.ax-tabs button:hover { color: var(--ink); }
.ax-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--acid); }
.ax-case { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: 3.5rem; align-items: center; margin-top: 3.5rem; }
.ax-case-copy h3 { font-weight: 500; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.ax-case-copy p { margin-top: 0.9rem; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.ax-case-copy ul { list-style: none; margin-top: 1.4rem; }
.ax-case-copy li { display: flex; gap: 0.7rem; padding: 0.7rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; }
.ax-case-copy li::before { content: "›"; color: var(--acid); font-weight: 600; }
.ax-cases-tint .ax-case-copy li { border-top-color: #e2e2e6; }
.ax-view-case { aspect-ratio: 16 / 10; border-radius: 22px; }

/* Agent environments: types beside a live, graded episode */
.ax-envs { padding: 7rem var(--gutter); background: var(--tile); }
.ax-env { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3.5rem; align-items: start; margin-top: 3.5rem; }
.ax-env-types { list-style: none; }
.ax-env-types li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); column-gap: 0.6rem; padding: 1.2rem 0 1.3rem; border-top: 1px solid #e2e2e6; }
.ax-env-types i { grid-row: span 2; padding-top: 0.35rem; font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--acid); }
.ax-env-types b { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.ax-env-types p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.ax-episode { min-height: 27rem; padding: 1.3rem 1.5rem 1.5rem; border-radius: 22px; background: #0b0c0f; color: #e9e7e1; font-family: var(--mono); font-size: 0.76rem; }
.ax-episode-bar { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.9rem; border-bottom: 1px solid #1d1e22; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #77756f; }
.ax-episode-bar output { color: var(--pane-acid); text-align: right; }
.ax-episode ol { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.1rem; }
.ax-episode li { display: flex; gap: 0.9rem; line-height: 1.45; animation: ax-in 0.25s ease both; }
.ax-episode li::before { flex: 0 0 3.4rem; padding-top: 0.1rem; font-size: 0.6rem; letter-spacing: 0.14em; color: #5f5d58; }
.ax-episode li span:nth-child(2) { margin-left: auto; white-space: nowrap; }
.ax-episode .task { margin-bottom: 0.4rem; font-family: var(--sans); font-size: 1rem; color: #f3f2ee; }
.ax-episode .task::before { content: "TASK"; padding-top: 0.3rem; font-family: var(--mono); }
.ax-episode .act { color: #a7a59f; }
.ax-episode .act::before { content: "ACT"; }
.ax-episode .pass::before, .ax-episode .fail::before { content: "CHECK"; }
.ax-episode .pass span:nth-child(2) { color: #7ee08a; }
.ax-episode .pass span:nth-child(2)::after { content: "  ✓"; }
.ax-episode .fail span:nth-child(2) { color: #ff7a6b; }
.ax-episode .fail span:nth-child(2)::after { content: "  ✗"; }
.ax-episode .reward { margin-top: 0.5rem; padding-top: 0.9rem; border-top: 1px solid #1d1e22; }
.ax-episode .reward::before { content: "SCORE"; }
.ax-episode .reward span:nth-child(2) { font-size: 1rem; color: var(--pane-acid); }
@keyframes ax-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .ax-episode li { animation: none; } }

/* Verification: a dark band */
.ax-verify { padding: 7.5rem var(--gutter); background: #050507; color: #f3f2ee; }
.ax-verify .kicker { color: #8c8a84; }
.ax-verify .ax-head p:not(.kicker) { color: #a7a59f; }
.ax-verify-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 3.5rem; }
.ax-verify-cards li { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.8rem 1.7rem 2rem; background: #111215; border: 1px solid #1d1e22; border-radius: 24px; }
.ax-verify-cards i { font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pane-acid); }
.ax-verify-cards b { margin-top: 1.6rem; font-weight: 500; font-size: 1.4rem; letter-spacing: -0.025em; }
.ax-verify-cards p { color: #a7a59f; font-size: 0.95rem; line-height: 1.55; }

/* How it works */
.ax-how { padding: 7rem var(--gutter); }
.ax-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: 3.5rem; }
.ax-steps li { display: flex; flex-direction: column; gap: 0.6rem; padding-top: 1.1rem; border-top: 1px solid var(--ink); }
.ax-steps b { font-weight: 500; font-size: 1.2rem; letter-spacing: -0.02em; }
.ax-steps p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.ax-mission { padding: 7rem var(--gutter); background: var(--tile); text-align: center; }
.ax-mission h2 { max-width: 58rem; margin: 1rem auto 0; font-weight: 500; font-size: clamp(1.8rem, 3.4vw, 2.9rem); letter-spacing: -0.035em; line-height: 1.1; }

/* FAQ */
.ax-faq { padding: 7rem var(--gutter) 2rem; }
.ax-faq-list { max-width: 52rem; margin: 3rem auto 0; border-top: 1px solid var(--line); }
.ax-faq details { border-bottom: 1px solid var(--line); }
.ax-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.3rem 0; list-style: none; cursor: pointer; font-weight: 500; font-size: 1.1rem; letter-spacing: -0.015em; }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform 0.2s ease; }
.ax-faq details[open] summary::after { transform: rotate(45deg); }
.ax-faq details p { padding: 0 0 1.4rem; max-width: 44rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }

@media (max-width: 1100px) {
  .ax-caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .ax-hero { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; padding: 8rem 1.1rem 3rem; }
  .ax-hero-fig > figcaption { flex-direction: column; gap: 0.4rem; }
  .ax-hero-fig > figcaption span { text-align: left; }
  .ax-clip figcaption { left: 0.6rem; right: 0.6rem; bottom: 0.5rem; font-size: 0.5rem; }
  .ax-credits { padding: 2rem 1.1rem 3rem; }
  .ax-hero-fig output { white-space: normal; }
  .ax-view { aspect-ratio: 4 / 3.4; border-radius: 14px; }
  .ax-subnav { display: none; }
  .ax-statement { padding: 5rem 1.1rem 4.5rem; }
  .ax-pillars, .ax-verify-cards, .ax-steps { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 2.6rem; }
  .ax-platform, .ax-cases, .ax-envs, .ax-apps, .ax-rows, .ax-out, .ax-verify, .ax-how, .ax-mission { padding: 4.5rem 1.1rem; }
  .ax-app-list { grid-template-columns: minmax(0, 1fr); margin-top: 2.2rem; }
  .ax-app-list li { padding: 1.1rem 0; }
  .ax-app-list span { font-size: 1.08rem; }
  .ax-row-list { margin-top: 2.2rem; }
  .ax-row-list li { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; padding: 1.6rem 0; }
  .ax-env { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
  .ax-episode { min-height: 30rem; padding: 1.1rem 1.1rem 1.3rem; border-radius: 14px; }
  .ax-episode li::before { flex-basis: 2.9rem; }
  .ax-faq { padding: 4.5rem 1.1rem 1rem; }
  .ax-caps { grid-template-columns: 1fr; margin-top: 2.6rem; }
  .ax-caps li { min-height: 0; }
  .ax-caps b { padding-top: 1.6rem; }
  .ax-tabs { justify-content: flex-start; gap: 1.3rem; overflow-x: auto; }
  .ax-tabs button { white-space: nowrap; font-size: 0.9rem; }
  .ax-case { grid-template-columns: minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
}
