/* Axiom: the public page. Tokens come from compute.css and the body sections from axiom.css;
   this adds the full-bleed film hero with its domain index, the applications table and the factory diagram. */

/* Hero: footage under a dark scrim, copy on top */
.axh-hero { position: relative; isolation: isolate; overflow: hidden; background: #050507; color: #f3f2ee; }
.axh-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.axh-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.axh-hero::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.86) 0%, rgba(5, 5, 7, 0.55) 42%, rgba(5, 5, 7, 0.12) 75%),
    linear-gradient(0deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0) 32%);
}
.axh-hero .kicker { color: #a7a59f; }

.axh-hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: min(100svh, 62rem); padding: 9rem var(--gutter) 0; }
.axh-hero-copy { max-width: 44rem; padding-bottom: 4.5rem; }
.axh-hero h1 { margin-top: 0.9rem; font-weight: 500; font-size: clamp(2.6rem, 5.4vw, 4.6rem); letter-spacing: -0.045em; line-height: 1; }
.axh-hero .lede { margin-top: 1.4rem; max-width: 32rem; color: #c9c7c1; font-size: 1.1rem; }
/* Announcement pill: the Software page's, inverted for the film */
.axh-news {
  display: inline-flex; align-items: center; gap: 0.85rem; margin-bottom: 2.6rem;
  padding: 0.5rem 1.3rem 0.5rem 0.55rem; border: 1px solid rgba(243, 242, 238, 0.28); border-radius: 999px;
  background: rgba(5, 5, 7, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #f3f2ee; font-size: 1.05rem; font-weight: 500; text-decoration: none; transition: border-color 0.2s ease;
}
.axh-news b {
  padding: 0.35rem 0.75rem; border-radius: 999px; background: #f3f2ee; color: #050507;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.axh-news span { color: #a7a59f; transition: transform 0.2s ease, color 0.2s ease; }
.axh-news:hover { border-color: #f3f2ee; }
.axh-news:hover span { color: #f3f2ee; transform: translateX(3px); }
.axh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.6rem; margin-top: 2.2rem; }
.axh-btn {
  display: inline-block; padding: 0.85rem 1.4rem; border-radius: 999px;
  background: #f3f2ee; color: #050507; font-weight: 500; font-size: 0.95rem; text-decoration: none;
  transition: background-color 0.2s ease;
}
.axh-btn:hover { background: #fff; }
.axh-link {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #f3f2ee; text-decoration: none; padding-bottom: 0.3rem; border-bottom: 1px solid rgba(243, 242, 238, 0.35);
  transition: border-color 0.2s ease;
}
.axh-link:hover { border-bottom-color: #f3f2ee; }

/* The five domains, a ruled index along the foot of the hero */
.axh-index { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(243, 242, 238, 0.16); }
.axh-index span {
  display: flex; gap: 0.9rem; padding: 1.15rem 0 1.4rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: #a7a59f;
}
.axh-index i { font-style: normal; color: var(--pane-acid); }

/* Applications: one ruled table, model by model */
.axa { padding: 7rem var(--gutter); }
.axa-table { width: 100%; margin-top: 3rem; border-collapse: collapse; }
.axa-table thead th {
  padding: 0 0 0.9rem; text-align: left; font-weight: 400;
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.axa-table tbody tr { border-top: 1px solid var(--line); transition: background-color 0.2s ease; }
.axa-table tbody tr:last-child { border-bottom: 1px solid var(--line); }
.axa-table tbody tr:hover { background: var(--tile); }
.axa-table tbody th, .axa-table td { padding: 1.45rem 0; vertical-align: baseline; text-align: left; }
.axa-table tbody th { width: 32%; font-weight: 500; font-size: 1.35rem; letter-spacing: -0.025em; }
.axa-table tbody th i { display: inline-block; width: 3rem; font-style: normal; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--acid); vertical-align: 0.25em; }
.axa-table td { color: var(--muted); font-size: 1rem; line-height: 1.5; padding-right: 2rem; }
.axa-table td:last-child, .axa-table thead th:last-child { width: 16%; padding-right: 0; text-align: right; }
.axa-table td:last-child { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

/* The factory: four stages wired left to right, with the failure loop back into generation */
.axf-wrap { padding: 7rem var(--gutter) 0; border-top: 1px solid var(--line); }
.axf { margin-top: 3rem; padding: 3.4rem clamp(1.5rem, 3vw, 3rem) 2.4rem; background: var(--tile); border-radius: 28px; }
.axf-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(4.5rem, 7vw, 7rem); align-items: center; padding-bottom: 5.5rem; }
.axf-stage { position: relative; z-index: 1; }
.axf-k { display: flex; gap: 0.7rem; margin-bottom: 0.8rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.axf-k i { font-style: normal; color: var(--acid); }
.axf-box { background: var(--bg); border-radius: 16px; padding: 1.1rem 1.2rem 0.55rem; box-shadow: var(--lift); }
.axf-box > b { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem; padding-bottom: 0.6rem; font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.axf-box em { font-style: normal; font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.axf-box dl div { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.84rem; }
.axf-box dt { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.15rem; }
.axf-box dd { text-align: right; font-size: 0.8rem; }
.axf-box ul { list-style: none; }
.axf-box li { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 0; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.axf-box-key { box-shadow: 0 0 0 1px rgba(22, 119, 255, 0.28), var(--lift); }
.axf-box-key li { color: var(--ink); }
.axf-box-key li::after { content: "✓"; margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: #1f9d55; }
.axf-box-key li.is-run::after { content: "···"; color: var(--acid); }
.axf-box-out li { justify-content: space-between; color: var(--ink); }
.axf-tick { display: flex; justify-content: space-between; gap: 0.6rem; margin: 0.2rem -1.2rem 0; padding: 0.65rem 1.2rem 0.15rem; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.axf-tick output { color: var(--ink); font-variant-numeric: tabular-nums; }
.axf-tick span { color: #1f9d55; }
.axf-lanes { list-style: none; display: grid; gap: 0.5rem; }
.axf-lanes li { display: grid; grid-template-columns: 1fr auto; row-gap: 0.15rem; align-items: center; padding: 0.8rem 1rem; background: var(--bg); border-radius: 12px; box-shadow: var(--lift); }
.axf-lanes b { font-weight: 500; font-size: 0.92rem; }
.axf-lanes span:not(.axf-dots) { grid-column: 1; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.axf-dots { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 0.3rem; }
.axf-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); opacity: 0.25; animation: axf-blink 1.2s ease-in-out infinite; }
.axf-dots i:nth-child(2) { animation-delay: 0.2s; }
.axf-dots i:nth-child(3) { animation-delay: 0.4s; }
.axf-lanes li:nth-child(2) .axf-dots i { animation-duration: 1.5s; }
.axf-lanes li:nth-child(3) .axf-dots i { animation-duration: 1.8s; }
@keyframes axf-blink { 40% { opacity: 1; } }
.axf-note { margin-top: 0.8rem; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.axf-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.axf-edges path { fill: none; stroke: #c4c7ce; stroke-width: 2; stroke-dasharray: 4 4; }
.axf-edges path.back { stroke: #e5a19a; }
.axf-edges circle { fill: var(--acid); }
.axf-edges circle.back { fill: #d9534f; }
.axf-edge {
  position: absolute; z-index: 1; transform: translate(-50%, calc(-100% - 0.55rem)); width: max-content; max-width: 6.2rem;
  font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; color: var(--muted); text-align: center;
}
.axf-edge-back { max-width: none; padding: 0.3rem 0.6rem; background: var(--tile); transform: translate(-50%, -50%); }
.axf-edge-back { color: #c0473f; }
.axf figcaption { max-width: 44rem; margin: 0 auto; text-align: center; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.axf-facts { padding: 3rem 0 2rem; }

/* Below desktop the four stages stack, wired top to bottom, with the failure loop up the right side */
@media (max-width: 1240px) {
  .axf-flow { grid-template-columns: 1fr; max-width: 30rem; margin: 0 auto; row-gap: 4.2rem; padding-bottom: 0; padding-right: 2.2rem; }
  .axf figcaption { margin-top: 2.2rem; }
}

@media (max-width: 900px) {
  .axh-hero { min-height: 92svh; padding: 8rem 1.1rem 0; }
  .axh-hero::before { background: linear-gradient(0deg, rgba(5, 5, 7, 0.92) 0%, rgba(5, 5, 7, 0.6) 55%, rgba(5, 5, 7, 0.25) 100%); }
  .axh-hero-copy { padding-bottom: 3rem; }
  .axh-news { gap: 0.6rem; margin-bottom: 2rem; padding-right: 0.9rem; font-size: min(0.88rem, 3.4vw); white-space: nowrap; }
  .axh-index { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .axh-index li:last-child { grid-column: span 2; }
  .axh-index span { padding: 0.85rem 0; border-bottom: 1px solid rgba(243, 242, 238, 0.1); }
  .axa { padding: 4.5rem 1.1rem; }
  .axa-table thead { display: none; }
  .axa-table, .axa-table tbody, .axa-table tr, .axa-table th, .axa-table td { display: block; width: auto !important; }
  .axa-table tbody tr { padding: 1.2rem 0; }
  .axa-table tbody th, .axa-table td { padding: 0; }
  .axa-table tbody th { font-size: 1.2rem; }
  .axa-table td { margin-top: 0.45rem; padding-left: 3rem; }
  .axa-table td:last-child { margin-top: 0.6rem; text-align: left; }
  .axf-wrap { padding: 4.5rem 1.1rem 0; }
  .axf { padding: 2rem 1.1rem 1.6rem; border-radius: 20px; }
  .axf-facts { padding: 2.4rem 0 4.5rem; }
}
