:root {
  --ink: #161513;
  --ink-deep: #0d0c0b;
  --ink-soft: #24211d;
  --paper: #e8e2d8;
  --paper-bright: #f4efe7;
  --paper-dim: #c9c2b7;
  --orange: #e37422;
  --orange-hot: #ff8a32;
  --orange-dark: #a94716;
  --olive: #98a747;
  --green: #708a43;
  --red: #b9543e;
  --hairline: #6e6a61;
  --muted: #969087;
  --shadow: rgba(0, 0, 0, 0.38);
  --shell: min(1460px, calc(100vw - 64px));
  --condensed: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #161513;
  content: "";
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--orange);
  color: #10100f;
}

:focus-visible {
  outline: 3px solid var(--orange-hot);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--paper-bright);
  color: var(--ink);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #37342f;
  background: rgba(22, 21, 19, 0.96);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--shell);
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
}

.brand-mark {
  color: var(--orange);
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  line-height: 0.9;
  transform: skew(-8deg);
}

.brand-type {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: var(--condensed);
  letter-spacing: 0.17em;
}

.brand-type strong {
  font-size: 20px;
  line-height: 1;
}

.brand-type small {
  font-size: 11px;
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

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

.nav-links a {
  position: relative;
  color: var(--paper-dim);
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: var(--paper-bright);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--orange);
  color: var(--paper);
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-cta:hover {
  background: var(--orange);
  color: var(--ink);
}

.menu {
  display: none;
  position: relative;
}

.menu summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  cursor: pointer;
  font-family: var(--condensed);
  font-weight: 800;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary i,
.menu summary i::before {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.menu summary i::before {
  transform: translateY(6px);
}

.menu-panel {
  position: absolute;
  top: 55px;
  right: 0;
  width: min(340px, calc(100vw - 40px));
  padding: 24px;
  border: 1px solid #4a463f;
  background: var(--ink-soft);
  box-shadow: 0 24px 60px var(--shadow);
}

.menu-panel .nav-links {
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.status-rail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 32px;
  border-bottom: 1px solid #302d29;
  background: var(--ink-deep);
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-rail strong {
  color: var(--paper-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(227, 116, 34, 0.7);
}

.hero {
  position: relative;
  padding: 86px 0 70px;
  background: var(--ink);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--orange);
  content: "";
}

.hero-shell {
  width: var(--shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(560px, 1.35fr);
  align-items: center;
  gap: clamp(42px, 6vw, 100px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--orange);
  font-family: var(--condensed);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 6px;
  border: 1px solid currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--condensed);
  line-height: 0.98;
}

h1,
h2 {
  letter-spacing: -0.035em;
}

h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-size: clamp(54px, 6.2vw, 98px);
  font-weight: 700;
}

h1 em,
h2 em {
  color: var(--orange);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-copy h1 {
  font-size: clamp(52px, 5.6vw, 92px);
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 34px;
  color: var(--paper-dim);
  font-size: clamp(17px, 1.3vw, 21px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  min-width: 208px;
  min-height: 64px;
  padding: 10px 18px;
  border: 1px solid;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button span {
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.78;
  text-transform: uppercase;
}

.button strong {
  font-family: var(--condensed);
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.button-primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.button-primary:hover {
  border-color: var(--orange-hot);
  background: var(--orange-hot);
}

.button-secondary {
  border-color: #5b564e;
  color: var(--paper);
}

.button-secondary:hover {
  border-color: var(--paper-dim);
  background: var(--paper);
  color: var(--ink);
}

.button-dark {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button-dark:hover {
  background: #322f2a;
}

.promise-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}

.promise-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
}

.promise-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 2px;
  background: var(--orange);
  content: "";
}

.hero-machine {
  position: relative;
  margin: 0;
}

.interface-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interface-label span:first-child {
  color: var(--orange);
}

.machine-frame {
  --machine-energy: 0.16;
  position: relative;
  overflow: hidden;
  border: 1px solid #4b4740;
  background: #11100f;
  box-shadow: 0 28px 90px var(--shadow), 0 0 calc(42px * var(--machine-energy)) rgba(227, 116, 34, calc(var(--machine-energy) * 0.55));
}

.machine-frame picture,
.machine-frame img {
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-playhead {
  fill: rgba(227, 116, 34, 0.08);
  stroke: rgba(255, 138, 50, 0.62);
  stroke-width: 2;
}

.hero-hit-pulse {
  fill: var(--orange-hot);
  filter: drop-shadow(0 0 10px rgba(255, 138, 50, 1));
}

.hero-trigger-led,
.hero-energy {
  fill: #ff5c35;
  filter: drop-shadow(0 0 8px rgba(255, 92, 53, 1));
}

.hero-machine figcaption,
.wide-graphic figcaption,
.graphic-card figcaption,
.proof-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  color: var(--muted);
  font-size: 11px;
}

.hero-machine figcaption strong,
.wide-graphic figcaption strong,
.graphic-card figcaption strong {
  color: var(--paper-dim);
  font-family: var(--condensed);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--orange);
  color: var(--ink);
}

.fact-bar div {
  min-height: 108px;
  padding: 20px;
  border-right: 1px solid rgba(22, 21, 19, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.fact-bar div:last-child {
  border-right: 0;
}

.fact-bar strong {
  font-family: var(--condensed);
  font-size: 31px;
  line-height: 1;
}

.fact-bar span {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.section {
  padding: clamp(84px, 9vw, 144px) 0;
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

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

.section-dark {
  background: var(--ink-deep);
  color: var(--paper);
}

.section-proof {
  background: var(--orange);
  color: var(--ink);
}

.section-lineup {
  background: var(--ink-soft);
  color: var(--paper);
}

.section-heading {
  max-width: 1040px;
  margin-bottom: clamp(48px, 6vw, 84px);
}

.section-heading-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 70px;
}

.section-heading h2 {
  max-width: 980px;
  margin-bottom: 26px;
  font-size: clamp(46px, 6vw, 88px);
}

.section-heading > p:last-child,
.section-heading-split > p {
  max-width: 760px;
  margin-bottom: 0;
  color: #575149;
  font-size: clamp(17px, 1.5vw, 22px);
}

.section-dark .section-heading > p:last-child,
.section-dark .section-heading-split > p,
.section-lineup .section-heading-split > p {
  color: var(--paper-dim);
}

.section-proof .eyebrow {
  color: var(--ink);
}

.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  gap: clamp(40px, 7vw, 100px);
}

.long-copy p {
  margin-bottom: 24px;
  font-size: 17px;
  line-height: 1.82;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--orange);
  color: inherit;
  font-family: var(--condensed);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  color: var(--orange-dark);
}

.graphic-card,
.wide-graphic {
  margin: 0;
}

.graphic-card img,
.wide-graphic img,
.proof-card img {
  width: 100%;
  border: 1px solid #504b44;
  background: var(--ink);
}

.section-paper .graphic-card figcaption,
.section-paper .wide-graphic figcaption {
  color: #655f57;
}

.section-paper .graphic-card figcaption strong,
.section-paper .wide-graphic figcaption strong {
  color: var(--ink);
}

.discovery-grid {
  display: grid;
  margin-bottom: 70px;
  border-top: 1px solid #4d4942;
  border-left: 1px solid #4d4942;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.discovery-grid article {
  min-height: 310px;
  padding: 32px;
  border-right: 1px solid #4d4942;
  border-bottom: 1px solid #4d4942;
  background: var(--ink);
}

.discovery-grid article span,
.proof-card > div > span,
.lineup-status,
.support-grid article > span,
.proof-cta span {
  color: var(--orange);
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.discovery-grid h3 {
  margin: 42px 0 18px;
  font-size: 28px;
  line-height: 1.1;
}

.discovery-grid p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 14px;
  line-height: 1.7;
}

.wide-graphic {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.proof-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-card {
  overflow: hidden;
  border: 1px solid rgba(22, 21, 19, 0.55);
  background: var(--paper);
}

.proof-card img {
  border: 0;
  border-bottom: 1px solid rgba(22, 21, 19, 0.55);
}

.proof-card > div {
  padding: 28px 30px 32px;
}

.proof-card > div > span {
  color: var(--orange-dark);
}

.proof-card h3 {
  margin: 18px 0 14px;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.06;
}

.proof-card p {
  margin-bottom: 0;
  color: #554e46;
  line-height: 1.65;
}

.engineering-grid {
  display: grid;
  grid-template-columns: minmax(400px, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(44px, 8vw, 110px);
  margin-bottom: 80px;
}

.code-contract {
  border: 1px solid #5b554d;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 12px 12px 0 var(--orange);
}

.code-head {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #4e4942;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.code-head span:last-child {
  color: var(--olive);
}

.code-contract pre {
  margin: 0;
  padding: 28px;
  overflow: auto;
}

.code-contract code {
  color: var(--paper-dim);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.85;
}

.not-sampler {
  padding: 22px;
  border-left: 5px solid var(--orange);
  background: var(--paper-bright);
}

.machine-lineup {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lineup-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #514c45;
  background: var(--ink);
}

.lineup-card.is-current {
  border-color: var(--orange);
}

.lineup-card img {
  width: 100%;
  border-bottom: 1px solid #4a453f;
}

.lineup-status {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid #5a554e;
  background: rgba(13, 12, 11, 0.92);
}

.is-current .lineup-status {
  border-color: var(--orange);
}

.lineup-card > div:last-child {
  padding: 28px 30px 34px;
}

.lineup-card > div:last-child > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lineup-card h3 {
  margin: 13px 0 14px;
  font-size: 42px;
}

.lineup-card p {
  color: var(--paper-dim);
}

.final-cta {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 150px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 80px;
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(46px, 6vw, 88px);
}

.final-cta > div:last-child {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.final-cta > div:last-child p {
  margin-bottom: 28px;
  color: var(--paper-dim);
  font-size: 19px;
}

.site-footer {
  border-top: 1px solid #413d37;
  background: var(--ink-deep);
}

.footer-shell {
  width: var(--shell);
  margin: 0 auto;
  padding: 68px 0;
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.55fr;
  gap: 60px;
}

.footer-brand p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-notes p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer-notes strong {
  color: var(--paper-dim);
}

.footer-shell nav {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 12px;
}

.footer-shell nav a {
  border-bottom: 1px solid #514d46;
  color: var(--paper-dim);
  font-family: var(--condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-bottom {
  min-height: 42px;
  padding: 0 max(32px, calc((100vw - 1460px) / 2));
  border-top: 1px solid #2f2c28;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #706b63;
  font-family: var(--condensed);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-hero {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(84px, 9vw, 140px) 0 clamp(60px, 7vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  align-items: end;
  gap: 70px;
}

.page-hero h1 {
  max-width: 990px;
  margin-bottom: 0;
}

.page-hero > p {
  margin-bottom: 12px;
  color: var(--paper-dim);
  font-size: clamp(17px, 1.5vw, 22px);
}

.page-hero-compact {
  padding-bottom: 65px;
}

/* Explorer */

.tour-shell {
  width: var(--shell);
  margin: 0 auto 120px;
}

.tour-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 14px;
  border: 1px solid #4e4942;
  border-bottom: 0;
  background: var(--ink-deep);
}

.tour-tabs {
  display: flex;
  gap: 6px;
}

.tour-tabs button,
.audio-button,
.guide-actions button,
.reset-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #4d4942;
  background: transparent;
  color: var(--paper-dim);
  cursor: pointer;
  font-family: var(--condensed);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.tour-tabs button.is-active,
.tour-tabs button:hover,
.audio-button:hover,
.guide-actions button:hover,
.reset-button:hover {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.audio-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-toolbar [role="status"] {
  min-width: 140px;
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
}

.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.55fr);
  align-items: stretch;
  border: 1px solid #4e4942;
}

.tour-stage {
  min-width: 0;
  padding: 26px;
  background: #11100f;
}

.tour-panel {
  height: 100%;
}

.tour-machine-frame {
  position: relative;
  border: 1px solid #554f47;
}

.tour-machine-frame img {
  width: 100%;
}

.machine-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.machine-hotspots button {
  position: absolute;
  top: 15.4%;
  left: var(--x);
  width: 6.3%;
  height: 32.6%;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform: translateX(-50%);
}

.machine-hotspots button:hover,
.machine-hotspots button:focus-visible,
.machine-hotspots button.is-selected {
  border-color: var(--orange-hot);
  background: rgba(227, 116, 34, 0.1);
}

.selected-strip {
  position: absolute;
  top: 15.4%;
  left: var(--selected-x, 22.4%);
  width: 6.3%;
  height: 32.6%;
  border: 2px solid var(--orange-hot);
  box-shadow: 0 0 22px rgba(227, 116, 34, 0.34);
  pointer-events: none;
  transform: translateX(-50%);
}

.mobile-landscape-note {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.voice-bank {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid #45413b;
  border-left: 1px solid #45413b;
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.voice-bank button {
  min-height: 70px;
  padding: 10px 8px;
  border: 0;
  border-right: 1px solid #45413b;
  border-bottom: 1px solid #45413b;
  background: var(--ink);
  color: var(--paper-dim);
  cursor: pointer;
  text-align: left;
}

.voice-bank button:hover,
.voice-bank button.is-selected {
  background: var(--orange);
  color: var(--ink);
}

.voice-bank b,
.voice-bank span {
  display: block;
}

.voice-bank b {
  font-family: var(--condensed);
  font-size: 18px;
  letter-spacing: 0.08em;
}

.voice-bank span {
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.tour-inspector {
  padding: 30px;
  border-left: 1px solid #4e4942;
  background: var(--ink-soft);
}

.inspector-kicker {
  margin-bottom: 20px;
  color: var(--orange);
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.inspector-title {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.inspector-title > span {
  display: flex;
  width: 58px;
  height: 58px;
  border: 1px solid var(--orange);
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-family: var(--condensed);
  font-size: 22px;
  font-weight: 800;
}

.inspector-title h2 {
  margin: 0 0 5px;
  font-size: 34px;
}

.inspector-title p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.tour-inspector > p[data-voice-description] {
  color: var(--paper-dim);
  font-size: 14px;
}

.control-stack {
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid #4e4942;
  border-bottom: 1px solid #4e4942;
}

.control-note {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.control-stack label {
  display: block;
  margin-bottom: 18px;
}

.control-stack label > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--paper-dim);
  font-family: var(--condensed);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.control-stack output {
  color: var(--orange);
}

input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 0;
  accent-color: var(--orange);
  cursor: ew-resize;
}

.reset-button {
  min-height: 34px;
  padding: 0 11px;
}

.stage-detail {
  margin-bottom: 26px;
  padding: 18px;
  border-left: 3px solid var(--olive);
  background: var(--ink-deep);
}

.stage-detail span {
  color: var(--olive);
  font-family: var(--condensed);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.stage-detail h3 {
  margin: 10px 0;
  font-size: 24px;
}

.stage-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.inspector-play {
  width: 100%;
  cursor: pointer;
}

.audio-disclaimer {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.tour-graphic {
  margin: 0;
}

.tour-graphic img {
  width: 100%;
  border: 1px solid #514c45;
}

.tour-graphic figcaption {
  padding: 10px 0;
  color: var(--muted);
  font-size: 11px;
}

.stage-bank {
  display: grid;
  margin-top: 12px;
  border-top: 1px solid #47433d;
  border-left: 1px solid #47433d;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stage-bank button {
  min-height: 84px;
  padding: 12px;
  border: 0;
  border-right: 1px solid #47433d;
  border-bottom: 1px solid #47433d;
  background: var(--ink);
  color: var(--paper-dim);
  cursor: pointer;
  text-align: left;
}

.stage-bank button:hover,
.stage-bank button.is-selected {
  background: var(--olive);
  color: var(--ink);
}

.stage-bank b,
.stage-bank span {
  display: block;
}

.stage-bank b {
  color: var(--orange);
  font-family: var(--condensed);
  font-size: 16px;
}

.stage-bank button.is-selected b {
  color: var(--ink);
}

.stage-bank span {
  margin-top: 10px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.proof-contract-grid {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid #47433d;
  border-left: 1px solid #47433d;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-contract-grid div {
  min-height: 90px;
  padding: 18px;
  border-right: 1px solid #47433d;
  border-bottom: 1px solid #47433d;
}

.proof-contract-grid strong,
.proof-contract-grid span {
  display: block;
}

.proof-contract-grid strong {
  color: var(--orange);
  font-family: var(--condensed);
  font-size: 24px;
}

.proof-contract-grid span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.guide {
  display: grid;
  padding: 28px;
  border: 1px solid #4e4942;
  border-top: 0;
  background: var(--paper);
  color: var(--ink);
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
}

.guide-progress > span {
  display: block;
  margin-bottom: 11px;
  font-family: var(--condensed);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.guide-progress i {
  display: block;
  width: 100%;
  height: 5px;
  background: #bdb5a9;
}

.guide-progress b {
  display: block;
  height: 100%;
  background: var(--orange);
  transition: width 180ms ease;
}

.guide-copy > p:first-child {
  margin-bottom: 7px;
  color: var(--orange-dark);
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-copy h2 {
  margin-bottom: 8px;
  font-size: 27px;
  line-height: 1.12;
}

.guide-copy > p:last-child {
  margin: 0;
  color: #595249;
  font-size: 13px;
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.guide-actions button {
  border-color: #6b645b;
  color: var(--ink);
}

.guide-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

/* Dossier */

.dossier-nav {
  position: sticky;
  top: 76px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 52px;
  border-top: 1px solid #3e3a35;
  border-bottom: 1px solid #3e3a35;
  background: rgba(13, 12, 11, 0.96);
  backdrop-filter: blur(12px);
}

.dossier-nav a {
  color: var(--paper-dim);
  font-family: var(--condensed);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.dossier-nav a:hover {
  color: var(--orange);
}

.dossier-section {
  padding: clamp(80px, 8vw, 130px) max(32px, calc((100vw - 1260px) / 2));
  background: var(--paper);
  color: var(--ink);
}

.dossier-section-dark {
  background: var(--ink-deep);
  color: var(--paper);
}

.dossier-section > header {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 50px;
}

.dossier-section > header span {
  color: var(--orange);
  font-family: var(--condensed);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dossier-section > header h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 80px);
}

.dossier-list {
  border-top: 1px solid #8c857b;
}

.dossier-section-dark .dossier-list {
  border-color: #504b44;
}

.dossier-list article {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid #8c857b;
}

.dossier-section-dark .dossier-list article {
  border-color: #504b44;
}

.dossier-index {
  color: var(--orange-dark);
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.dossier-section-dark .dossier-index {
  color: var(--orange);
}

.dossier-list h3 {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.7vw, 40px);
  line-height: 1.1;
}

.dossier-list p {
  max-width: 920px;
  color: #5d564d;
  font-size: 16px;
  line-height: 1.78;
}

.dossier-section-dark .dossier-list p {
  color: var(--paper-dim);
}

.dossier-list strong {
  display: block;
  max-width: 920px;
  color: var(--orange-dark);
  font-size: 14px;
}

.dossier-section-dark .dossier-list strong {
  color: var(--orange);
}

.proof-gallery {
  padding-bottom: 0;
}

.proof-cta {
  margin-top: 70px;
  padding: 50px 0;
  border-top: 1px solid rgba(22, 21, 19, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.proof-cta span {
  color: var(--orange-dark);
}

.proof-cta h2 {
  margin: 10px 0 0;
  font-size: clamp(34px, 4vw, 58px);
}

/* Support */

.support-grid {
  width: var(--shell);
  margin: 0 auto 120px;
  display: grid;
  border-top: 1px solid #4c4841;
  border-left: 1px solid #4c4841;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.support-grid article {
  min-height: 330px;
  padding: clamp(30px, 4vw, 60px);
  border-right: 1px solid #4c4841;
  border-bottom: 1px solid #4c4841;
}

.support-grid h2 {
  margin: 34px 0 20px;
  font-size: clamp(34px, 4vw, 54px);
}

.support-grid p {
  max-width: 660px;
  color: var(--paper-dim);
}

.support-grid dl {
  margin: 26px 0 0;
}

.support-grid dl div {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 10px 0;
  border-bottom: 1px solid #48443e;
}

.support-grid dt {
  color: var(--muted);
}

.support-grid dd {
  margin: 0;
  color: var(--paper);
  font-weight: 700;
  text-align: right;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .hero-overlay {
    display: none;
  }

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

@media (max-width: 1160px) {
  :root {
    --shell: min(100% - 40px, 1120px);
  }

  .desktop-nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-machine {
    width: min(1000px, 100%);
    margin: 0 auto;
  }

  .section-heading-split,
  .page-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .section-heading-split > p,
  .page-hero > p {
    max-width: 720px;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .approach-grid .long-copy {
    max-width: 850px;
  }

  .discovery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .engineering-grid {
    grid-template-columns: 1fr;
  }

  .code-contract {
    width: min(700px, 100%);
  }

  .tour-layout {
    grid-template-columns: 1fr;
  }

  .tour-inspector {
    border-top: 1px solid #4e4942;
    border-left: 0;
  }

  .control-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .control-stack label {
    margin-bottom: 0;
  }

  .control-stack .reset-button {
    width: max-content;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .nav-shell {
    min-height: 66px;
  }

  .brand-type small {
    display: none;
  }

  .status-rail {
    gap: 10px;
    padding: 0 12px;
  }

  .status-rail span:last-child {
    display: none;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-copy h1,
  h1 {
    font-size: clamp(48px, 13.5vw, 72px);
  }

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

  .interface-label span:last-child {
    display: none;
  }

  .hero-machine figcaption,
  .wide-graphic figcaption,
  .graphic-card figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .fact-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fact-bar div {
    min-height: 90px;
    border-bottom: 1px solid rgba(22, 21, 19, 0.38);
  }

  .fact-bar div:last-child {
    grid-column: 1 / -1;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading h2 {
    font-size: clamp(44px, 13vw, 68px);
  }

  .discovery-grid,
  .proof-grid,
  .machine-lineup,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .discovery-grid article {
    min-height: 0;
  }

  .final-cta {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    padding: 0 14px;
  }

  .tour-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .tour-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .tour-tabs button {
    padding: 0 8px;
  }

  .audio-toolbar {
    flex-wrap: wrap;
  }

  .audio-toolbar [role="status"] {
    width: 100%;
    margin: 4px 0 0;
  }

  .tour-stage {
    padding: 12px;
  }

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

  .stage-bank {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-contract-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .control-stack {
    grid-template-columns: 1fr;
  }

  .guide {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .guide-actions {
    justify-content: flex-start;
  }

  .dossier-nav {
    top: 66px;
    justify-content: flex-start;
    padding: 0 14px;
    gap: 22px;
    overflow-x: auto;
  }

  .dossier-nav a {
    flex: 0 0 auto;
  }

  .dossier-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .dossier-list article {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .proof-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) and (orientation: portrait) {
  .mobile-landscape-note {
    display: block;
  }

  .tour-machine-frame {
    overflow-x: auto;
  }

  .tour-machine-frame picture {
    display: block;
    min-width: 680px;
  }

  .machine-hotspots,
  .selected-strip {
    min-width: 680px;
  }
}
