@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --ink: #0a0a0a;
  --paper: #f5f3ee;
  --line: #1a1a1a;
  --rule: #d4d0c5;
  --mute: #6b6b6b;
  --soft: #3a3a3a;
  --accent: #e9e6df;
  --hair: rgba(10, 10, 10, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; }

/* ===== GRAIN OVERLAY ===== */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ===== MONO UTILITY ===== */
.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== NAV ===== */
.axiom-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 40px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(245, 243, 238, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.axiom-nav-logo {
  display: inline-flex;
  align-items: center;
  width: 122px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.axiom-nav-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.axiom-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.axiom-nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.axiom-nav-links a:hover { opacity: 0.62; }

.axiom-nav-cta {
  border: 1px solid var(--ink) !important;
  padding: 10px 20px !important;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease !important;
  opacity: 1 !important;
}

.axiom-nav-cta:hover {
  background: var(--ink) !important;
  color: var(--paper) !important;
  opacity: 1 !important;
}

/* ===== HERO ===== */
.axiom-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 54px;
  min-height: 100vh;
  padding: 140px 40px 80px;
}

.axiom-hero::after {
  content: "";
  position: absolute;
  right: 40px;
  top: 118px;
  width: min(38vw, 520px);
  height: 1px;
  background: var(--line);
  transform: rotate(-7deg);
  opacity: 0.28;
  pointer-events: none;
}

.hero-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  color: var(--mute);
}

.hero-lockup {
  width: min(74vw, 1040px);
  margin-top: 8px;
}

.hero-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-headline {
  max-width: 1320px;
  font-size: clamp(52px, 10.5vw, 174px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.hero-headline em {
  color: var(--mute);
  font-style: italic;
  font-weight: 300;
}

.hero-headline .strike {
  color: var(--mute);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.hero-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: end;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

.hero-bottom p {
  max-width: 380px;
  font-size: 18px;
  line-height: 1.45;
}

.stat-num {
  margin-bottom: 8px;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label { color: var(--mute); }

/* ===== MARQUEE ===== */
.axiom-marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 80px;
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
}

.marquee-track span {
  display: flex;
  align-items: center;
  gap: 80px;
  font-family: "Fraunces", serif;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.marquee-track span::after {
  content: "✦";
  color: var(--paper);
  opacity: 0.4;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== SECTIONS ===== */
.axiom-section {
  position: relative;
  padding: 120px 40px;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 48px;
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-tag::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--mute);
  flex-shrink: 0;
}

.section-headline {
  max-width: 1100px;
  margin-bottom: 60px;
  font-size: clamp(40px, 5.5vw, 84px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.section-headline em {
  color: var(--mute);
  font-style: italic;
  font-weight: 300;
}

/* ===== THESIS ===== */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
}

.thesis-grid p {
  font-size: 21px;
  line-height: 1.45;
}

.thesis-grid p + p {
  color: var(--mute);
  font-size: 17px;
  margin-top: 20px;
}

/* ===== ARCHITECTURE ===== */
.architecture {
  display: grid;
  border-top: 1px solid var(--line);
}

.arch-row {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding-left 0.3s ease;
  cursor: default;
}

.arch-row:hover {
  background: var(--accent);
  padding-left: 18px;
}

.arch-num {
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
}

.arch-name {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.arch-name em {
  display: block;
  margin-top: 4px;
  color: var(--mute);
  font-family: "Fraunces", serif;
  font-size: 16px;
  font-style: italic;
}

.arch-desc {
  color: var(--mute);
  font-size: 16px;
  line-height: 1.5;
}

.arch-meta {
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: right;
}

/* ===== CASES (homepage cards) ===== */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
  background: var(--line);
}

.case-card {
  position: relative;
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
  padding: 50px 44px;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
  color: var(--ink);
}

.case-card:hover {
  background: var(--ink);
  color: var(--paper);
}

.case-card:hover .case-card-meta,
.case-card:hover .case-card-quote,
.case-card:hover .case-card-lbl { color: rgba(245, 243, 238, 0.6); }

.case-card-meta {
  margin-bottom: 16px;
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.05em;
}

.case-card-tag {
  display: inline-block;
  width: fit-content;
  margin-bottom: 32px;
  border: 1px solid currentColor;
  padding: 5px 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card-headline {
  margin-bottom: 24px;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.case-card-headline em { font-style: italic; }

.case-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  margin: 32px 0;
}

.case-card-stat .num {
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.case-card-lbl {
  margin-top: 6px;
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-card-quote {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid currentColor;
  color: var(--mute);
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
  opacity: 0.85;
}

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--line);
}

.tier-price-mo {
  display: block;
  margin-top: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.tier {
  display: flex;
  flex-direction: column;
  padding: 50px 44px;
  border-right: 1px solid var(--line);
}

.tier:last-child {
  border-right: none;
  background: var(--ink);
  color: var(--paper);
}

.tier-name {
  margin-bottom: 12px;
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tier:last-child .tier-name,
.tier:last-child .tier-price { color: rgba(245, 243, 238, 0.6); }

.tier-headline {
  margin-bottom: 8px;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}

.tier-price {
  margin-bottom: 32px;
  color: var(--mute);
  font-size: 18px;
}

.tier-list {
  margin: 24px 0;
  list-style: none;
  flex: 1;
}

.tier-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 15px;
}

.tier:last-child .tier-list li { border-color: rgba(245, 243, 238, 0.15); }

.tier-list li::before {
  content: "→";
  flex-shrink: 0;
  color: var(--mute);
}

.tier:last-child .tier-list li::before { color: rgba(245, 243, 238, 0.6); }

.tier-cta {
  display: block;
  margin-top: 32px;
  border: 1px solid currentColor;
  padding: 18px;
  color: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.tier:last-child .tier-cta { background: var(--paper); color: var(--ink); }
.tier-cta:hover { background: var(--ink); color: var(--paper); }
.tier:last-child .tier-cta:hover { background: transparent; color: var(--paper); }

/* ===== TRANSPARENCY (dark section) ===== */
.axiom-transparency {
  margin: 0 -40px;
  padding: 120px 80px;
  background: var(--ink);
  color: var(--paper);
}

.axiom-transparency .section-tag { color: rgba(245, 243, 238, 0.6); }
.axiom-transparency .section-tag::before { background: rgba(245, 243, 238, 0.6); }
.axiom-transparency .section-headline em { color: rgba(245, 243, 238, 0.5); }

.trans-brand {
  display: block;
  width: min(86vw, 920px);
  margin: 0 0 72px;
}

.trans-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.trans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid rgba(245, 243, 238, 0.2);
}

.trans-item h4 {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 500;
}

.trans-item p {
  color: rgba(245, 243, 238, 0.6);
  font-size: 15px;
  line-height: 1.55;
}

.trans-item .num {
  margin-bottom: 20px;
  color: rgba(245, 243, 238, 0.4);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* ===== FAQ ===== */
.faq-item {
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: "Fraunces", Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-align: left;
}

.faq-icon {
  color: var(--mute);
  font-size: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.55;
  transition: max-height 0.4s ease, padding-bottom 0.3s;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 28px;
}

/* ===== CTA SECTION ===== */
.axiom-cta-section {
  border-top: 1px solid var(--line);
  padding: 160px 40px;
  text-align: center;
}

.axiom-cta-section h2 {
  margin-bottom: 48px;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.axiom-cta-section h2 em {
  color: var(--mute);
  font-style: italic;
  font-weight: 300;
}

.axiom-cta-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 48px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, outline 0.25s;
}

.axiom-cta-btn:hover {
  outline: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

/* ===== FOOTER ===== */
.axiom-footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--line);
  padding: 60px 40px 40px;
}

.foot-logo {
  width: min(260px, 86%);
  margin-bottom: 18px;
}

.foot-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.foot-tag {
  max-width: 280px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5;
}

.axiom-footer h5 {
  margin-bottom: 18px;
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.axiom-footer ul { list-style: none; }
.axiom-footer li { margin-bottom: 10px; }

.axiom-footer a {
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
  transition: font-style 0.2s;
}

.axiom-footer a:hover { font-style: italic; }

.foot-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

/* ===== SELECTED WORK PAGE ===== */
.sw-page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px;
}

.sw-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.sw-logo { width: 204px; }
.sw-logo img { display: block; width: 100%; height: auto; }

.sw-doc-meta {
  color: var(--mute);
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sw-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.sw-intro h1 {
  margin-bottom: 14px;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.sw-intro h1 em {
  color: var(--mute);
  font-style: italic;
  font-weight: 300;
}

.sw-intro p {
  max-width: 540px;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.55;
}

.sw-summary {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
  align-content: start;
}

.sw-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

.sw-summary-row .label {
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sw-summary-row .val {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sw-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sw-case {
  position: relative;
  border: 1px solid var(--ink);
  background: rgba(245, 243, 238, 0.68);
  padding: 24px;
}

.sw-case::after {
  content: "";
  position: absolute;
  top: 11px;
  right: 11px;
  width: 18px;
  height: 18px;
  border-top: 1px solid var(--ink);
  border-right: 1px solid var(--ink);
  opacity: 0.38;
}

.sw-case-id {
  margin-bottom: 16px;
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sw-case-tag {
  display: inline-block;
  margin-bottom: 14px;
  border: 1px solid var(--ink);
  padding: 3px 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sw-case h2 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

.sw-case h2 em { font-style: italic; }

.sw-scope {
  margin-bottom: 18px;
  color: var(--mute);
  font-size: 12px;
  line-height: 1.5;
}

.sw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sw-stat .num {
  display: block;
  margin-bottom: 3px;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sw-stat .lbl {
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sw-detail {
  margin-bottom: 12px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.5;
}

.sw-detail strong {
  color: var(--ink);
  font-weight: 500;
}

.sw-quote {
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  color: var(--mute);
  font-size: 11px;
  font-style: italic;
  line-height: 1.45;
}

.sw-quote .who {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  color: var(--mute);
}

.sw-footer .tag {
  font-size: 13px;
  font-style: italic;
  text-align: right;
  white-space: nowrap;
}

.sw-print-bar {
  display: flex;
  justify-content: flex-end;
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 0 48px;
}

.sw-print-btn {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 9px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.sw-print-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===== NAV DARK VARIANT ===== */
.axiom-nav--dark {
  background: var(--ink);
  border-bottom-color: rgba(245, 243, 238, 0.12);
}

.axiom-nav--dark .axiom-nav-links a { color: var(--paper); }

.axiom-nav--dark .axiom-nav-cta {
  border-color: rgba(245, 243, 238, 0.5) !important;
  color: var(--paper) !important;
}

.axiom-nav--dark .axiom-nav-cta:hover {
  background: var(--paper) !important;
  color: var(--ink) !important;
  opacity: 1 !important;
}

/* ===== TERMINAL HERO ===== */
.terminal-hero {
  background: var(--ink);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.terminal-wrapper {
  width: 100%;
  max-width: 900px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  line-height: 1.9;
}

.terminal-line {
  display: flex;
  gap: 2rem;
  animation: termFadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.terminal-time { color: var(--mute); flex-shrink: 0; min-width: 100px; }
.terminal-agent { color: var(--paper); width: 130px; flex-shrink: 0; }
.terminal-msg { color: #4ade80; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #4ade80;
  animation: termBlink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 0.5rem;
}

.terminal-sub {
  margin-top: 4rem;
  color: var(--mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

/* ===== AGENT CARD GRID ===== */
.agent-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.agent-card-item {
  background: rgba(245, 243, 238, 0.55);
  border: 1px solid var(--rule);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: background 0.25s, border-color 0.25s;
}

.agent-card-item:hover {
  background: var(--accent);
  border-color: var(--rule);
}

.agent-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.agent-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: dotPulse 2s infinite;
}

.agent-card-id {
  font-size: 0.75rem;
  color: var(--mute);
}

.agent-card-name {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.agent-card-role {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--mute);
  margin-bottom: 1.5rem;
}

.agent-card-task {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--mute);
  margin-top: auto;
  margin-bottom: 0.875rem;
  line-height: 1.5;
}

.agent-progress-bg {
  height: 2px;
  background: var(--rule);
  width: 100%;
}

.agent-progress-fill {
  height: 100%;
  background: var(--ink);
  animation: agentProgress 3s ease-in-out infinite alternate;
}

/* ===== DARK CASES SECTION ===== */
.axiom-section--dark {
  background: var(--ink);
  color: var(--paper);
}

.axiom-section--dark .section-tag { color: rgba(245, 243, 238, 0.5); }
.axiom-section--dark .section-tag::before { background: rgba(245, 243, 238, 0.5); }
.axiom-section--dark .section-headline em { color: rgba(245, 243, 238, 0.45); }

.case-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #1a1a1a;
}

.case-metric-tile {
  background: var(--soft);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--paper);
  transition: background 0.3s;
  min-height: 280px;
}

.case-metric-tile:hover { background: #444; }

.case-metric-num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.case-metric-arrow {
  color: #4ade80;
  font-size: 2rem;
  line-height: 1;
}

.case-metric-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin-bottom: auto;
  padding-bottom: 0.5rem;
}

.case-metric-footer {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6875rem;
  color: #6b6b6b;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  margin-top: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===== KEYFRAMES ===== */
@keyframes termFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes termBlink { 50% { opacity: 0; } }

@keyframes dotPulse {
  0%   { transform: scale(0.95); box-shadow: 0 0 0 0   rgba(74, 222, 128, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);   }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0   rgba(74, 222, 128, 0);   }
}

@keyframes agentProgress {
  0%   { width: 15%; }
  100% { width: 85%; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  /* Content must remain visible if JS is delayed, disabled, or a crawler/screenshot tool
     renders without scrolling. The JS still adds .in, but visibility no longer depends on it. */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== CHATBOT ===== */
#axiom-chat-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: all 0.25s ease;
}

#axiom-chat-btn:hover {
  background: var(--paper);
  color: var(--ink);
}

#axiom-chat-window {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  width: 340px;
  max-height: 500px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 999;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#axiom-chat-window.axiom-chat-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.axiom-chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.axiom-chat-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.axiom-chat-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--mute);
  padding: 0;
  line-height: 1;
  font-size: 18px;
}

.axiom-chat-close:hover { color: var(--ink); }

.axiom-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.axiom-chat-msg {
  font-size: 14px;
  line-height: 1.5;
  max-width: 90%;
}

.axiom-chat-msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
}

.axiom-chat-msg.assistant {
  align-self: flex-start;
  color: var(--soft);
}

.axiom-chat-form {
  display: flex;
  border-top: 1px solid var(--rule);
  flex-shrink: 0;
}

.axiom-chat-input {
  flex: 1;
  padding: 14px 16px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  outline: none;
}

.axiom-chat-input::placeholder { color: var(--mute); }

.axiom-chat-send {
  padding: 14px 18px;
  border: none;
  border-left: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.axiom-chat-send:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===== 404 PAGE ===== */
.not-found-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
}

.not-found-page .mono {
  display: block;
  margin-bottom: 24px;
  color: var(--mute);
}

.not-found-page h1 {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
}

.not-found-page p {
  max-width: 480px;
  margin: 0 auto 48px;
  color: var(--mute);
  font-size: 18px;
  line-height: 1.5;
}

.not-found-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.not-found-btn-primary {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 16px 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s, outline 0.25s;
}

.not-found-btn-primary:hover {
  outline: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.not-found-btn-secondary {
  display: inline-block;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}

.not-found-btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .agent-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .axiom-nav { padding: 18px 20px; }
  .axiom-nav-logo { width: 104px; }
  .axiom-nav-links { gap: 20px; }
  .axiom-nav-links a:not(.axiom-nav-cta) { display: none; }

  .terminal-hero { padding: 100px 20px 60px; }
  .terminal-wrapper { font-size: 0.8125rem; }
  .terminal-time { min-width: 80px; }
  .terminal-agent { width: 100px; }

  .agent-card-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .case-metric-grid { grid-template-columns: 1fr; gap: 2px; }

  .axiom-section { padding: 80px 20px; }
  .thesis-grid { grid-template-columns: 1fr; gap: 32px; }
  .architecture { overflow-x: auto; }
  .arch-row { grid-template-columns: 1fr; gap: 8px; padding-left: 0 !important; }
  .arch-meta { text-align: left; }
  .cases-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--line); }
  .tier:last-child { border-bottom: none; }
  .axiom-transparency { margin: 0 -20px; padding: 80px 30px; }
  .trans-brand { width: 100%; }
  .trans-grid { grid-template-columns: 1fr; gap: 40px; }
  .axiom-footer { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-bottom { flex-direction: column; }
  .marquee-track span { font-size: 24px; gap: 40px; }

  .sw-page { padding: 28px 20px; }
  .sw-header { flex-direction: column; align-items: flex-start; }
  .sw-doc-meta { text-align: left; }
  .sw-intro { display: block; }
  .sw-summary { margin-top: 26px; }
  .sw-cases { grid-template-columns: 1fr; }
  .sw-stats { grid-template-columns: 1fr; }
  .sw-footer { flex-direction: column; }
  .sw-footer .tag { text-align: left; white-space: normal; }
  .sw-print-bar { padding: 0 20px; }
}

@media (max-width: 560px) {
  .axiom-nav-cta { padding: 9px 14px !important; }
  .hero-headline { font-size: clamp(44px, 17vw, 84px); }
  .stat-num { font-size: 52px; }
  .case-card,
  .tier { padding: 34px 24px; }
  .case-card-headline { font-size: 30px; }
  .axiom-cta-section { padding: 110px 20px; }
  .axiom-cta-btn { display: block; padding-left: 18px; padding-right: 18px; }
  .axiom-footer { grid-template-columns: 1fr; }

  #axiom-chat-window { width: calc(100vw - 32px); right: 16px; }
}

@media print {
  .grain { display: none; }
  .sw-print-bar { display: none; }
  body { background: white; color: black; }
  .sw-case { background: white; }
}
