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

:root {
  --void: #0A0A0A;
  --surface: #1A1A1A;
  --surface-2: #111111;
  --document: #F0EDE6;
  --muted: #A79F94;
  --dim: #6F685E;
  --rule: rgba(240, 237, 230, 0.13);
  --warning: #F5C400;
  --urgent: #CC2200;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(240, 237, 230, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(240, 237, 230, 0.018) 1px, transparent 1px),
    var(--void);
  background-size: 72px 72px;
  color: var(--document);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(204, 34, 0, 0.08), transparent 22rem),
    radial-gradient(circle at 78% 8%, rgba(245, 196, 0, 0.06), transparent 18rem);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
img, iframe { max-width: 100%; }

a:focus-visible,
button:focus-visible {
  outline: 1px solid var(--warning);
  outline-offset: 4px;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 5vw;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark {
  width: 10px;
  height: 28px;
  background: linear-gradient(180deg, var(--urgent), var(--warning));
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--document);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
}

.nav-links {
  position: fixed;
  inset: 58px 0 auto 0;
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--void);
  border-bottom: 1px solid var(--rule);
}

.nav-links.open { display: flex; }

.nav-links a {
  display: block;
  padding: 1rem 5vw;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active { color: var(--document); }

.wrap {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.narrow { width: min(820px, 90vw); }

.hero {
  min-height: calc(100vh - 58px);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.eyebrow,
.meta,
.tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow { color: var(--urgent); margin-bottom: 1.2rem; }
.meta { color: var(--dim); }
.tag { color: var(--warning); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.3rem, 10vw, 8.5rem);
  line-height: 0.94;
}

.page-title {
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.98;
}

.lede {
  max-width: 720px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.7;
}

.redact {
  display: inline-block;
  min-width: 5.2em;
  height: 0.78em;
  background: var(--surface);
  border: 1px solid rgba(240, 237, 230, 0.07);
  transform: translateY(0.08em);
}

.section {
  padding: clamp(3rem, 8vw, 6.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-head h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1;
}

.section-head p {
  max-width: 650px;
  color: var(--muted);
}

.split {
  display: grid;
  gap: 1.5rem;
}

.panel {
  background: rgba(26, 26, 26, 0.72);
  border: 1px solid var(--rule);
}

.evidence-strip {
  display: grid;
  gap: 1rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  border-left: 3px solid var(--warning);
}

.evidence-strip blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.25;
}

.evidence-strip p { color: var(--muted); }

.talk-feature {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #050505;
}

.video-button,
.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-button {
  position: relative;
  padding: 0;
  cursor: pointer;
  background: #050505;
  color: var(--document);
}

.video-button img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.72;
  filter: grayscale(1) contrast(1.08);
}

.play-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 0.9rem;
  background: rgba(10, 10, 10, 0.86);
  border: 1px solid var(--rule);
  color: var(--warning);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  padding: 0 1rem;
  background: var(--warning);
  border: 1px solid var(--warning);
  color: var(--void);
}

.button:hover { background: transparent; color: var(--warning); }
.text-link { color: var(--warning); }
.text-link:hover { color: var(--document); }

.index-list,
.archive-list {
  display: grid;
  border-top: 1px solid var(--rule);
}

.index-item,
.archive-item {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.2rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--rule);
}

.index-item h3,
.archive-item h3 {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.12;
}

.index-item p,
.archive-item p {
  color: var(--muted);
  max-width: 680px;
}

.case-grid,
.note-grid,
.method-grid {
  display: grid;
  gap: 1rem;
}

.case-card,
.note-card,
.method-card {
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: rgba(26, 26, 26, 0.66);
  border: 1px solid var(--rule);
}

.case-card.flagship { border-left: 3px solid var(--urgent); }

.case-card h2,
.note-card h2,
.method-card h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.08;
}

.case-card p,
.note-card p,
.method-card p {
  color: var(--muted);
}

.note-card {
  display: grid;
  gap: 1rem;
}

.note-card::before {
  content: "";
  display: block;
  width: 46%;
  height: 0.9rem;
  background: var(--surface);
}

.process {
  display: grid;
  gap: 0.8rem;
  counter-reset: step;
}

.process li {
  list-style: none;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  counter-increment: step;
}

.process li::before {
  content: "0" counter(step);
  color: var(--urgent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.process strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 400;
}

.process span { color: var(--muted); }

.page-header {
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3rem, 7vw, 5rem);
  border-bottom: 1px solid var(--rule);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem 5vw;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.3rem;
    background: transparent;
    border: 0;
  }
  .nav-links a {
    padding: 0;
    border: 0;
    font-size: 0.62rem;
  }
  .hero-grid,
  .split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
  .case-grid,
  .note-grid,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .index-item,
  .archive-item {
    grid-template-columns: 10rem 1fr;
  }
}

/* Home page supplied art direction */
.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 18px;
  top: 18px;
  z-index: 100;
  padding: 0.7rem 0.9rem;
  background: var(--warning);
  color: var(--void);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.home-page {
  background: #0a0a09;
}

.home-page .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0 24px;
  background: rgba(10, 10, 9, 0.86);
  backdrop-filter: blur(14px);
}

.home-page .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
}

.home-page .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--document);
  font-size: 14px;
  font-weight: 500;
}

.home-page .logo-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule);
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}

.home-page .logo-mark::before,
.home-page .logo-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  right: 5px;
  height: 3px;
  background: var(--document);
}

.home-page .logo-mark::before { top: 7px; }
.home-page .logo-mark::after { bottom: 7px; }

.home-page .logo-mark span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--warning);
  position: relative;
  z-index: 1;
}

.home-page .nav-links {
  position: static;
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  border: 0;
}

.home-page .nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 11px;
  border: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.home-page .nav-links a:hover { color: var(--document); }

.home-page .nav-mob { display: none; }

.home-hero {
  position: relative;
  overflow: hidden;
  padding: 130px 0 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(90deg, rgba(245, 196, 0, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(240, 237, 230, 0.018) 1px, transparent 1px);
  background-size: 46px 46px;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(245, 196, 0, 0.055), transparent);
  transform: translateY(-100%);
  animation: simScan 8.5s linear infinite;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: clamp(1.5rem, 7vw, 6rem);
  right: clamp(1.5rem, 7vw, 6rem);
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 0, 0.7), transparent);
  transform: translateX(-18%);
  opacity: 0.44;
  animation: homeRuleDrift 7.5s ease-in-out infinite;
}

.home-page .hero-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 56px;
}

.home-hero-grid {
  display: grid;
  gap: clamp(2.2rem, 6vw, 5.5rem);
  align-items: end;
}

.home-copy {
  position: relative;
  z-index: 2;
}

.home-page .eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  color: var(--dim);
}

.home-page .eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--dim);
  flex-shrink: 0;
}

.home-page h1 {
  max-width: 14ch;
  margin-bottom: 44px;
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  line-height: 0.92;
}

.home-page h1 em {
  color: var(--warning);
  font-style: italic;
}

.home-page .hero-body {
  max-width: 52ch;
  padding-left: 18px;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 300;
  line-height: 1.65;
}

.home-page .hero-body p + p { margin-top: 14px; }

.home-ambient {
  position: relative;
  z-index: 1;
  min-height: clamp(220px, 30vw, 390px);
  pointer-events: none;
}

.home-ambient::before,
.home-ambient::after {
  content: "";
  position: absolute;
  inset: auto 2rem 18%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(240, 237, 230, 0.18), transparent);
}

.home-ambient::after {
  inset: 34% 0 auto;
  background: linear-gradient(90deg, transparent, rgba(204, 34, 0, 0.38), transparent);
  transform: translateX(12%);
}

.home-fragment {
  position: absolute;
  color: rgba(240, 237, 230, 0.46);
  font-family: var(--mono);
  font-size: clamp(0.62rem, 1.1vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: homeFragmentDrift 8s ease-in-out infinite;
}

.home-fragment:nth-child(1) { left: 3%; top: 14%; color: var(--warning); animation-delay: 0s; }
.home-fragment:nth-child(2) { right: 8%; top: 28%; animation-delay: 0.9s; }
.home-fragment:nth-child(3) { left: 18%; bottom: 28%; color: rgba(204, 34, 0, 0.78); animation-delay: 1.8s; }
.home-fragment:nth-child(4) { right: 18%; bottom: 12%; animation-delay: 2.7s; }
.home-fragment:nth-child(5) { left: 2%; bottom: 6%; animation-delay: 3.6s; }

.home-page .evidence-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  border-left: 0;
}

.home-page .ev-item {
  padding: 22px 26px;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.home-page .ev-item:last-child { border-right: 0; }

.home-page .ev-ref {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-page .ev-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.home-page .ev-line strong {
  display: block;
  margin-bottom: 4px;
  color: var(--document);
  font-weight: 500;
  font-size: 14px;
}

.home-page .redact {
  display: inline-block;
  min-width: 0;
  height: auto;
  background: var(--document);
  color: transparent;
  border-radius: 1px;
  user-select: none;
  transform: none;
}

.home-page .ev-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  color: var(--warning);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-page .ev-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--warning);
  flex-shrink: 0;
  animation: homeBlink 1.8s ease-in-out infinite;
}

.home-page .talk-section {
  padding: 100px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 0;
}

.home-page .talk-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.home-page .talk-label {
  margin-bottom: 20px;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-page .talk-title {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.home-page .talk-body {
  max-width: 44ch;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-page .talk-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--warning);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-page .talk-link::after { content: "↗"; }

.home-page .video-wrap {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.home-page .video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.home-page .below-fold {
  padding: 0 0 100px;
}

.home-page .bf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.home-page .bf-cell {
  min-height: 260px;
  padding: 36px 40px;
  background: #0a0a09;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-page .bf-cell-label {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.home-page .bf-cell-title {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  line-height: 1.05;
}

.home-page .bf-cell-body {
  max-width: 40ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-page .bf-cell-link {
  margin-top: auto;
  padding-top: 8px;
  color: var(--warning);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-page .bf-cell-link::after { content: " ↗"; }

.home-page .site-footer {
  border-top: 1px solid var(--rule);
  padding: 26px 0;
}

.home-page .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.home-page .footer-copy,
.home-page .footer-links a {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.home-page .footer-links {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.three-case-grid {
  grid-template-columns: 1fr;
}

.field-note-list {
  grid-template-columns: 1fr;
}

.search-label {
  display: block;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-input {
  width: min(100%, 620px);
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: rgba(26, 26, 26, 0.68);
  color: var(--document);
  font: inherit;
}

.search-input::placeholder { color: var(--dim); }

.no-results {
  padding: 2rem 0;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  gap: 1rem;
}

.contact-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.contact-panel h2 {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.contact-panel p {
  color: var(--muted);
  max-width: 42rem;
}

.contact-email {
  display: inline-block;
  max-width: 100%;
  color: var(--warning);
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 3.5rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

@media (min-width: 920px) {
  .three-case-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(260px, 0.62fr);
  }
}

@media (min-width: 820px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (max-width: 860px) {
  .home-page .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    display: none;
    flex-direction: column;
    background: #0a0a09;
    border-bottom: 1px solid var(--rule);
  }

  .home-page .nav-links.open { display: flex; }

  .home-page .nav-links a {
    display: block;
    padding: 1rem 24px;
    border-top: 1px solid var(--rule);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .home-page .nav-mob {
    display: inline-flex;
  }

  .home-page .talk-inner,
  .home-hero-grid,
  .home-page .evidence-strip,
  .home-page .bf-grid {
    grid-template-columns: 1fr;
  }

  .home-page .ev-item {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .home-page .ev-item:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .home-page .site-header { padding: 0 16px; }
  .home-page .bf-cell { padding: 28px 22px; }
  .home-page .talk-section { padding: 72px 0; }
  .home-ambient { min-height: 180px; }
  .home-fragment:nth-child(4) { right: 5%; }
}

/* Simulation page */
.simulation-page {
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 196, 0, 0.08), transparent 22rem),
    linear-gradient(90deg, rgba(245, 196, 0, 0.022) 1px, transparent 1px),
    linear-gradient(rgba(240, 237, 230, 0.018) 1px, transparent 1px),
    var(--void);
  background-size: auto, 42px 42px, 42px 42px, auto;
}

.sim-hero {
  position: relative;
  overflow: hidden;
}

.sim-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(245, 196, 0, 0.05), transparent);
  transform: translateY(-100%);
  animation: simScan 7s linear infinite;
}

.sim-hero-grid {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.xr-console {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(245, 196, 0, 0.22);
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.82), rgba(8, 8, 8, 0.94)),
    repeating-linear-gradient(0deg, rgba(240, 237, 230, 0.035) 0 1px, transparent 1px 6px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), inset 0 0 42px rgba(245, 196, 0, 0.045);
}

.xr-console::before,
.xr-console::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.xr-console::before {
  inset: 12px;
  border: 1px solid rgba(240, 237, 230, 0.08);
}

.xr-console::after {
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 0, 0.08), transparent);
  transform: translateX(-120%);
  animation: simSweep 4.8s ease-in-out infinite;
}

.xr-console-top,
.xr-status-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: var(--warning);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.xr-status-grid {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(240, 237, 230, 0.1);
  color: var(--muted);
}

.xr-status-grid span {
  padding: 0.2rem 0.4rem;
  border-right: 1px solid rgba(240, 237, 230, 0.1);
}

.xr-status-grid span:last-child { border-right: 0; color: var(--warning); }

.xr-stage {
  position: absolute;
  inset: 3.4rem 1rem 4.2rem;
  display: grid;
  place-items: center;
}

.xr-reticle {
  position: absolute;
  width: min(56vw, 280px);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 196, 0, 0.34);
  border-radius: 999px;
  animation: simPulse 3.4s ease-in-out infinite;
}

.xr-reticle::before,
.xr-reticle::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(240, 237, 230, 0.08);
  border-radius: inherit;
}

.xr-reticle::after {
  inset: 38%;
  border-color: rgba(204, 34, 0, 0.42);
}

.xr-wave {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  height: 90px;
  transform: translateY(-50%);
}

.xr-wave span {
  width: 2px;
  height: 22px;
  background: var(--warning);
  opacity: 0.55;
  animation: simWave 1.3s ease-in-out infinite;
}

.xr-wave span:nth-child(2) { animation-delay: 0.08s; }
.xr-wave span:nth-child(3) { animation-delay: 0.16s; }
.xr-wave span:nth-child(4) { animation-delay: 0.24s; background: var(--urgent); }
.xr-wave span:nth-child(5) { animation-delay: 0.32s; }
.xr-wave span:nth-child(6) { animation-delay: 0.4s; }
.xr-wave span:nth-child(7) { animation-delay: 0.48s; }

.xr-transcript {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  width: min(76%, 340px);
  padding: 1rem;
  border: 1px solid rgba(240, 237, 230, 0.12);
  background: rgba(10, 10, 10, 0.78);
  animation: simFloatA 5.5s ease-in-out infinite;
}

.xr-transcript strong {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  line-height: 1.1;
}

.xr-transcript-drift {
  left: auto;
  right: 1rem;
  top: auto;
  bottom: 1.4rem;
  border-color: rgba(204, 34, 0, 0.38);
  animation: simFloatB 5.5s ease-in-out infinite;
}

.xr-transcript-drift strong { color: var(--warning); }

.sim-process li {
  position: relative;
  padding: 1.15rem 0 1.15rem 1rem;
}

.sim-process li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2rem;
  bottom: 1.2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--urgent), var(--warning));
  opacity: 0.65;
  transform-origin: top;
  animation: simStep 2.8s ease-in-out infinite;
}

.sim-process li:nth-child(2)::after { animation-delay: 0.25s; }
.sim-process li:nth-child(3)::after { animation-delay: 0.5s; }
.sim-process li:nth-child(4)::after { animation-delay: 0.75s; }

.sim-system-section {
  background: rgba(245, 196, 0, 0.025);
}

.sim-state-grid {
  display: grid;
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.sim-state {
  position: relative;
  min-height: 190px;
  padding: 1.25rem;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.92);
}

.sim-state::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--warning);
  transform: scaleX(0.18);
  transform-origin: left;
  animation: simLoad 4s ease-in-out infinite;
}

.sim-state:nth-child(2)::after { animation-delay: 0.25s; }
.sim-state:nth-child(3)::after { animation-delay: 0.5s; }
.sim-state:nth-child(4)::after { animation-delay: 0.75s; background: var(--urgent); }

.sim-state span {
  color: var(--urgent);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.sim-state strong {
  display: block;
  margin: 1.8rem 0 0.55rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1;
}

.sim-state p { color: var(--muted); }
.sim-state.danger strong { color: var(--warning); }

@keyframes simScan {
  0% { transform: translateY(-100%); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

@keyframes simSweep {
  0%, 35% { transform: translateX(-120%); opacity: 0; }
  50% { opacity: 1; }
  80%, 100% { transform: translateX(120%); opacity: 0; }
}

@keyframes simPulse {
  0%, 100% { transform: scale(0.94); opacity: 0.36; }
  50% { transform: scale(1.04); opacity: 0.82; }
}

@keyframes simWave {
  0%, 100% { transform: scaleY(0.55); opacity: 0.35; }
  50% { transform: scaleY(2.8); opacity: 0.95; }
}

@keyframes simFloatA {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(10px, 8px, 0); }
}

@keyframes simFloatB {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, -8px, 0); }
}

@keyframes simStep {
  0%, 100% { transform: scaleY(0.35); opacity: 0.28; }
  50% { transform: scaleY(1); opacity: 0.9; }
}

@keyframes simLoad {
  0%, 100% { transform: scaleX(0.16); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 0.9; }
}

@keyframes homeBlink {
  0%, 100% { opacity: 0.34; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes homeRuleDrift {
  0%, 100% { transform: translateX(-18%); opacity: 0.22; }
  46% { opacity: 0.72; }
  72% { transform: translateX(18%); opacity: 0.34; }
}

@keyframes homeFragmentDrift {
  0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.34; }
  42% { opacity: 0.76; }
  58% { transform: translate3d(14px, -10px, 0); opacity: 0.52; }
}

@media (min-width: 820px) {
  .sim-hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .sim-state-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .xr-console {
    min-height: 390px;
  }

  .xr-status-grid {
    grid-template-columns: 1fr;
  }

  .xr-status-grid span {
    border-right: 0;
    border-bottom: 1px solid rgba(240, 237, 230, 0.1);
  }

  .xr-stage {
    bottom: 7.5rem;
  }

  .xr-transcript,
  .xr-transcript-drift {
    width: calc(100% - 2rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .home-hero::after,
  .home-fragment,
  .home-page .ev-tag::before,
  .sim-hero::before,
  .xr-console::after,
  .xr-reticle,
  .xr-wave span,
  .xr-transcript,
  .xr-transcript-drift,
  .sim-process li::after,
  .sim-state::after {
    animation: none;
  }
}

/* Canonical navigation: kept identical across pages, including pages with older inline styles. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 5vw;
  background: rgba(10, 10, 10, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(12px);
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  max-width: none;
  height: auto;
  color: var(--document);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav .brand-mark {
  width: 10px;
  height: 28px;
  background: linear-gradient(180deg, var(--urgent), var(--warning));
  flex: 0 0 auto;
}

.site-nav .nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--document);
  cursor: pointer;
}

.site-nav .nav-toggle span {
  display: block;
  width: 16px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
}

.site-nav .nav-links {
  position: fixed;
  inset: 58px 0 auto 0;
  display: none;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--void);
  border-bottom: 1px solid var(--rule);
}

.site-nav .nav-links.open { display: flex; }

.site-nav .nav-links a {
  display: block;
  min-height: auto;
  padding: 1rem 5vw;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a.active {
  color: var(--document);
}

@media (min-width: 760px) {
  .site-nav .nav-toggle { display: none; }

  .site-nav .nav-links {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 1.3rem;
    background: transparent;
    border: 0;
  }

  .site-nav .nav-links a {
    padding: 0;
    border: 0;
    font-size: 0.62rem;
  }
}

/* Shared motion layer */
@media (prefers-reduced-motion: no-preference) {
  body {
    animation: pageWake 520ms ease both;
  }

  .motion-ready .reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .motion-ready .reveal-item.reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav .brand-mark {
    background-size: 100% 220%;
    animation: brandSignal 5.8s ease-in-out infinite;
  }

  .site-nav .brand:hover .brand-mark {
    animation-duration: 1.4s;
  }

  .page-header {
    position: relative;
    overflow: hidden;
  }

  .page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--warning), transparent);
    transform: translateX(-100%);
    animation: ruleTrace 5.5s ease-in-out infinite;
    opacity: 0.55;
  }

  .home-page h1,
  .page-title {
    animation: titleResolve 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .home-page .hero-body,
  .lede {
    animation: textResolve 820ms ease 120ms both;
  }

  .home-page .ev-item:nth-child(1),
  .case-card:nth-child(1),
  .note-card:nth-child(1),
  .archive-item:nth-child(1),
  .method-card:nth-child(1) { --reveal-delay: 0ms; }

  .home-page .ev-item:nth-child(2),
  .case-card:nth-child(2),
  .note-card:nth-child(2),
  .archive-item:nth-child(2),
  .method-card:nth-child(2) { --reveal-delay: 80ms; }

  .home-page .ev-item:nth-child(3),
  .case-card:nth-child(3),
  .note-card:nth-child(3),
  .archive-item:nth-child(3) { --reveal-delay: 150ms; }

  .note-card:nth-child(4),
  .archive-item:nth-child(4) { --reveal-delay: 220ms; }

  .note-card:nth-child(5),
  .archive-item:nth-child(5) { --reveal-delay: 290ms; }
}

.site-nav {
  transition: background 220ms ease, border-color 220ms ease;
}

.site-nav .nav-links a {
  position: relative;
  transition: color 180ms ease, transform 180ms ease;
}

.site-nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  background: var(--warning);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav .nav-links a:hover,
.site-nav .nav-links a:focus-visible {
  transform: translateY(-1px);
}

.site-nav .nav-links a:hover::after,
.site-nav .nav-links a.active::after {
  transform: scaleX(1);
}

.case-card,
.note-card,
.method-card,
.archive-item,
.index-item,
.home-page .bf-cell,
.contact-panel,
.talk-feature {
  position: relative;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.case-card::after,
.note-card::after,
.method-card::after,
.archive-item::after,
.index-item::after,
.home-page .bf-cell::after,
.contact-panel::after,
.talk-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid transparent;
  background: linear-gradient(120deg, transparent 0 35%, rgba(245, 196, 0, 0.08), transparent 65%) 0 0 / 240% 100%;
  opacity: 0;
  transition: opacity 220ms ease, background-position 520ms ease;
}

.case-card:hover,
.note-card:hover,
.method-card:hover,
.archive-item:hover,
.index-item:hover,
.home-page .bf-cell:hover,
.contact-panel:hover,
.talk-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 196, 0, 0.28);
  background: rgba(26, 26, 26, 0.78);
}

.case-card:hover::after,
.note-card:hover::after,
.method-card:hover::after,
.archive-item:hover::after,
.index-item:hover::after,
.home-page .bf-cell:hover::after,
.contact-panel:hover::after,
.talk-feature:hover::after {
  opacity: 1;
  background-position: 100% 0;
}

.home-page .ev-tag::before,
.tag::before {
  box-shadow: 0 0 0 rgba(245, 196, 0, 0.35);
  animation: statusPing 2.8s ease-in-out infinite;
}

.home-page .ev-line .redact {
  position: relative;
  overflow: hidden;
}

.home-page .ev-line .redact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 196, 0, 0.22), transparent);
  transform: translateX(-120%);
  animation: redactScan 4.5s ease-in-out infinite;
}

.search-input {
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.search-input:focus {
  outline: none;
  border-color: rgba(245, 196, 0, 0.65);
  background: rgba(26, 26, 26, 0.88);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.08);
}

@keyframes pageWake {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes brandSignal {
  0%, 100% { filter: saturate(0.9); background-position: 0 0; }
  50% { filter: saturate(1.35); background-position: 0 100%; }
}

@keyframes ruleTrace {
  0%, 42% { transform: translateX(-100%); opacity: 0; }
  55% { opacity: 0.7; }
  78%, 100% { transform: translateX(100%); opacity: 0; }
}

@keyframes titleResolve {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes textResolve {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes statusPing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 196, 0, 0.32); }
  50% { box-shadow: 0 0 0 6px rgba(245, 196, 0, 0); }
}

@keyframes redactScan {
  0%, 55% { transform: translateX(-120%); }
  80%, 100% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
}
