/* oper.run homepage: Logbook Flagship design system (Light and Dark, zero-jump stacks, WCAG AA) */

:root {
  color-scheme: light;
  --paper: #f2efe6;
  --surface: #fdfcf8;
  --surface-soft: #f9f7f1;
  --fill: #e6e1d3;
  --ink: #1a1d1a;
  --ink-soft: #434740;
  --muted: #52564e;
  --line: #dad4c4;
  --line-strong: #c5bea9;
  --forest: #1d4a36;
  --action: #1d4a36;
  --on-action: #f6f2e7;
  --desk: #0f2a20;
  --on-desk: #ece7da;
  --on-desk-soft: #c9d2ca;
  --brass: #e2b455;
  --on-brass: #0f2a20;
  --positive: #1d573e;
  --positive-tint: #e6efe6;
  --warning: #6b470c;
  --warning-tint: #f6e9c8;
  --danger: #8f2a19;
  --danger-tint: #fbe9e4;
  --bot-bg: #161a1f;
  --bot-well: #0d1014;
  --bot-border: #303842;
  --bot-ink: #e8ecf1;
  --bot-soft: #c8d0da;
  --bot-bad: #ff9c8a;
  --bot-bad-bg: #2e1918;
  --desk-ok: #8fddb3;
  --desk-well: #173429;
  --desk-well-border: #2c5a46;
  --focus: #1d4a36;
  --shadow-1: 0 1px 3px rgba(15, 42, 32, 0.06);
  --shadow-2: 0 10px 28px rgba(15, 42, 32, 0.1);
  --shadow-3: 0 24px 60px rgba(15, 42, 32, 0.16);
  --serif: 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --logo: 'Manrope', sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0e1813;
  --surface: #15221c;
  --surface-soft: #122019;
  --fill: #0a130f;
  --ink: #ece7da;
  --ink-soft: #c3c8bc;
  --muted: #a4ab9e;
  --line: #223129;
  --line-strong: #2e4036;
  --forest: #8fddb3;
  --action: #ece7da;
  --on-action: #0e1813;
  --desk: #08110d;
  --on-desk: #ece7da;
  --on-desk-soft: #c3ccc4;
  --positive: #8fddb3;
  --positive-tint: #16291f;
  --warning: #e2b455;
  --warning-tint: #2d2512;
  --danger: #f5aa9a;
  --danger-tint: #2e1713;
  --focus: #8fddb3;
  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 14px 34px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 28px 64px rgba(0, 0, 0, 0.62);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0e1813;
    --surface: #15221c;
    --surface-soft: #122019;
    --fill: #0a130f;
    --ink: #ece7da;
    --ink-soft: #c3c8bc;
    --muted: #a4ab9e;
    --line: #223129;
    --line-strong: #2e4036;
    --forest: #8fddb3;
    --action: #ece7da;
    --on-action: #0e1813;
    --desk: #08110d;
    --on-desk: #ece7da;
    --on-desk-soft: #c3ccc4;
    --positive: #8fddb3;
    --positive-tint: #16291f;
    --warning: #e2b455;
    --warning-tint: #2d2512;
    --danger: #f5aa9a;
    --danger-tint: #2e1713;
    --focus: #8fddb3;
    --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 14px 34px rgba(0, 0, 0, 0.45);
    --shadow-3: 0 28px 64px rgba(0, 0, 0, 0.62);
  }
}

:root.theme-switching *, :root.theme-switching *::before, :root.theme-switching *::after {
  transition: none !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.48;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--brass);
  color: var(--on-brass);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus { left: 16px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }

/* Zero-layout-shift stack: every pane occupies grid-area 1/1 so height never shifts */
.z-stack { display: grid; }
.z-pane {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease-out;
}
.z-pane.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Sticky topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--desk);
  color: var(--on-desk);
  border-bottom: 1px solid var(--desk-well-border);
}
.topbar-in {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand-group { display: inline-flex; align-items: center; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand img { width: 25px; height: 25px; display: block; }
.brand-name { font-family: var(--logo); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--on-desk); }
.brand-by { font-size: 12.5px; color: var(--on-desk-soft); min-height: 44px; display: inline-flex; align-items: center; }
.brand-by:hover { color: var(--brass); }
.nav-links { display: flex; gap: 24px; font-size: 13.5px; color: var(--on-desk); }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
.nav-links a:hover { color: var(--brass); }
.nav-cta {
  background: var(--brass);
  color: var(--on-brass);
  font-weight: 600;
  font-size: 13.5px;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
}
.menu { display: none; position: relative; }
.menu summary {
  list-style: none;
  min-height: 44px;
  min-width: 64px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--desk-well-border);
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--on-desk);
}
.menu summary::-webkit-details-marker { display: none; }
.menu nav {
  position: absolute;
  right: 0;
  top: 52px;
  width: 220px;
  background: var(--desk);
  border: 1px solid var(--desk-well-border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--shadow-3);
}
.menu nav a {
  padding: 10px 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  font-size: 14px;
  color: var(--on-desk);
}
.menu nav a:hover { background: var(--desk-well); color: var(--brass); }

/* Kickers and buttons */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .pulse-dot { animation: soft-pulse 2.2s ease-in-out infinite; }
  @keyframes soft-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.84); } }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 120ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--action); color: var(--on-action); box-shadow: var(--shadow-1); }
.btn-brass { background: var(--brass); color: var(--on-brass); }
.btn-secondary { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-outline-desk {
  background: transparent;
  color: var(--on-desk);
  border: 1px solid var(--on-desk-soft);
}
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 12.5px; border-radius: 7px; }
.pause-btn {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--on-desk);
  border: 1px solid var(--desk-well-border);
  background: var(--desk-well);
  padding: 0 11px;
  border-radius: 6px;
  min-height: 32px;
  min-width: 56px;
}
.pause-btn:hover { border-color: var(--brass); }
.pause-btn.is-hidden { visibility: hidden; pointer-events: none; }

section.band { padding: 68px 0; scroll-margin-top: 68px; }
section.band + section.band { border-top: 1px solid var(--line); }
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.sec-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.sec-sub { font-size: 15px; color: var(--ink-soft); max-width: 410px; }

/* Hero */
.hero { padding: 52px 0 58px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.hero-lead {
  font-size: 18px;
  line-height: 1.48;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.provide-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line-strong);
}
.prov {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
}
.prov-k { font-family: var(--mono); font-size: 10.5px; color: var(--forest); font-weight: 600; text-transform: uppercase; }
.prov-v { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 2px; }

/* Zero-jump 3D Owner's Ledger */
.ledger-stage { perspective: 1400px; }
.ledger-shell {
  background: var(--desk);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-3);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (prefers-reduced-motion: no-preference) {
  .ledger-shell {
    transform: rotateY(-2.2deg) rotateX(1deg);
    animation: hero-enter 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .ledger-stage:hover .ledger-shell { transform: rotateY(0deg) rotateX(0deg) translateY(-2px); }
  @keyframes hero-enter {
    from { opacity: 0; transform: translateY(20px) rotateY(-4.5deg) rotateX(2.5deg); }
    to { opacity: 1; transform: translateY(0) rotateY(-2.2deg) rotateX(1deg); }
  }
}
.ledger-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 10px 10px;
  color: var(--on-desk);
}
.lb-name { font-family: var(--serif); font-size: 15px; font-weight: 500; }
.lb-right { display: flex; align-items: center; gap: 8px; }
.brass-count {
  background: var(--brass);
  color: var(--on-brass);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.sheet {
  background: var(--paper);
  border-radius: 11px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.l-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.l-tab {
  position: relative;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px 11px;
  min-height: 48px;
  overflow: hidden;
  transition: border-color 180ms ease;
}
.l-tab.is-active {
  border-color: var(--forest);
  box-shadow: var(--shadow-1);
}
.lt-k { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.l-tab.is-active .lt-k { color: var(--forest); font-weight: 600; }
.lt-t { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 1px; }
.lt-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: transparent;
}
.lt-prog-fill { height: 100%; width: 0%; background: var(--brass); }
.l-tab.is-active .lt-prog { background: var(--fill); }
@media (prefers-reduced-motion: no-preference) {
  .ledger-shell:not(.is-paused) .l-tab.is-active .lt-prog-fill { animation: sweep 5s linear infinite; }
  @keyframes sweep { from { width: 0%; } to { width: 100%; } }
}
.ledger-shell.is-paused .l-tab.is-active .lt-prog-fill { width: 100%; }

.l-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--brass);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 13px;
  height: 100%;
}
.lc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lc-title { font-family: var(--serif); font-size: 20px; font-weight: 500; }
.pill { font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.pill-wait { background: var(--warning-tint); color: var(--warning); }
.pill-ok { background: var(--positive-tint); color: var(--positive); }

.cite-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cite { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
.cite.warn { background: var(--danger-tint); border-color: var(--danger); }
.cite-k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--forest); margin-bottom: 4px; }
.cite.warn .cite-k { color: var(--danger); }
.cite-big { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; margin-bottom: 3px; }
.cite-v { font-size: 12.5px; color: var(--ink-soft); }

.ok-bar {
  background: var(--positive-tint);
  color: var(--positive);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  padding: 7px 11px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.lc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.lc-lock { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.demo-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.demo-pill-primary { background: var(--action); color: var(--on-action); }
.demo-pill-sec { background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); }

/* Scroll-driven 3D reveals (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes card-rise-3d {
      from { opacity: 0.35; transform: perspective(1100px) translateY(30px) rotateX(6deg) scale(0.98); }
      to { opacity: 1; transform: perspective(1100px) translateY(0) rotateX(0deg) scale(1); }
    }
    .scroll-3d {
      animation: card-rise-3d linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
    @keyframes office-parallax-tilt {
      entry 0% { transform: perspective(1400px) rotateX(7deg) scale(0.95); }
      entry 100%, exit 0% { transform: perspective(1400px) rotateX(0deg) scale(1); }
      exit 100% { transform: perspective(1400px) rotateX(-4deg) scale(0.98); }
    }
    .office-3d-frame {
      animation: office-parallax-tilt linear both;
      animation-timeline: view();
    }
  }
}

/* Section 2: 4 scaling paths */
.sc-tabs { display: inline-flex; gap: 6px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line-strong); padding: 5px; border-radius: 9px; }
.sc-tab { font-size: 12.5px; font-weight: 500; min-height: 36px; padding: 0 13px; border-radius: 6px; color: var(--ink-soft); }
.sc-tab.is-active { background: var(--desk); color: var(--on-desk); font-weight: 600; }

.paths-4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.18fr); gap: 14px; }
.p-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.p-card.bot { background: var(--bot-bg); border-color: var(--bot-border); color: var(--bot-ink); }
.p-card.op { background: var(--desk); border: 2px solid var(--forest); color: var(--on-desk); box-shadow: var(--shadow-2); }
.p-k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.p-card.bot .p-k { color: var(--bot-bad); }
.p-card.op .p-k { color: var(--brass); }
.p-t { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 4px 0 12px; }
.p-trace {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
}
.p-card.bot .p-trace { background: var(--bot-well); border-color: var(--bot-border); color: var(--bot-soft); }
.p-card.op .p-trace { background: var(--desk-well); border-color: var(--desk-well-border); color: var(--on-desk); }
.t-bad { color: var(--danger); font-weight: 600; }
.p-card.bot .t-bad { color: var(--bot-bad); }
.t-wait { color: var(--brass); font-weight: 600; }
.t-ok { color: var(--desk-ok); font-weight: 600; }
.p-verdict {
  padding: 8px 11px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: var(--fill);
  color: var(--ink);
}
.p-card.bot .p-verdict { background: var(--bot-bad-bg); color: var(--bot-bad); }
.p-card.op .p-verdict { background: var(--brass); color: var(--on-brass); }

/* Section 3: 4 industries + looping video + companion apps */
.ind-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.ind-tab {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 14px;
  min-height: 56px;
}
.ind-tab.is-active { background: var(--desk); border-color: var(--desk); color: var(--on-desk); }
.it-k { font-family: var(--mono); font-size: 10.5px; text-transform: uppercase; color: var(--muted); }
.ind-tab.is-active .it-k { color: var(--brass); }
.it-n { font-size: 14px; font-weight: 600; margin-top: 2px; }

.ind-stage {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 16px;
}
.ind-pane { display: flex; flex-direction: column; gap: 14px; }
.ind-badge { align-self: flex-start; font-family: var(--mono); font-size: 10.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--positive-tint); color: var(--positive); }
.ind-h { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.18; }
.ba-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; }
.ba.after { border-color: var(--forest); background: var(--positive-tint); }
.ba-k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--danger); margin-bottom: 4px; }
.ba.after .ba-k { color: var(--positive); }
.ba-v { font-size: 12.5px; line-height: 1.4; }

.media-box { background: var(--desk); border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); }
.media-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 13px; color: var(--on-desk); font-family: var(--mono); font-size: 11px; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; background: var(--desk); overflow: hidden; }
.video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-wrap .ind-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.video-wrap .ind-img.is-active { opacity: 1; }

.sys-strip { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.sys-lbl { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.sys-chip { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

.apps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 34px 0 14px;
}
.apps-title { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.apps-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.apps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 15px;
  align-items: center;
  box-shadow: var(--shadow-1);
}
.app-thumb {
  width: 92px;
  height: 120px;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.app-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.app-k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--forest); }
.app-name { font-family: var(--serif); font-size: 19px; font-weight: 600; margin: 2px 0 5px; }
.app-desc { font-size: 12.5px; line-height: 1.44; color: var(--ink-soft); }

/* Section 4: Try to break the locks */
.bench-wrap {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-2);
}
.st-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.st-btn {
  text-align: left;
  background: var(--surface-soft);
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px 13px;
  min-height: 54px;
}
.st-btn.is-active { background: var(--desk); border-color: var(--desk); color: var(--on-desk); }
.stb-k { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.st-btn.is-active .stb-k { color: var(--brass); }
.stb-t { font-size: 13px; font-weight: 600; margin-top: 2px; }

.gate-panel { display: flex; flex-direction: column; gap: 16px; }
.gate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gate-req { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.gate-status { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; background: var(--danger-tint); color: var(--danger); }
.gate-status.brass { background: var(--warning-tint); color: var(--warning); }
.gate-status.ok { background: var(--positive-tint); color: var(--positive); }

.pipe-track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.g-node { border: 1.5px solid var(--line-strong); border-radius: 9px; padding: 12px; background: var(--surface-soft); }
.g-node.is-stop { background: var(--danger-tint); border-color: var(--danger); border-width: 2px; }
.g-node.is-brass { background: var(--warning-tint); border-color: var(--brass); border-width: 2px; }
.g-node.is-pass { background: var(--positive-tint); border-color: var(--positive); }
.g-node.is-dim { background: var(--paper); border-style: dashed; border-color: var(--line-strong); }
.gn-k { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--muted); }
.g-node.is-stop .gn-k { color: var(--danger); }
.g-node.is-brass .gn-k { color: var(--warning); }
.g-node.is-pass .gn-k { color: var(--positive); }
.gn-t { font-size: 13.5px; font-weight: 600; margin-top: 3px; color: var(--ink); }
.g-node.is-dim .gn-t { color: var(--ink-soft); }
.gn-d { font-size: 12px; color: var(--muted); margin-top: 2px; }

.bench-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--desk);
  color: var(--on-desk);
  border-radius: 9px;
  padding: 12px 16px;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11.5px;
}
.bench-strip strong { color: var(--brass); }

/* Section 5: 3D Office */
.office-band { background: var(--desk); color: var(--on-desk); }
.office-band .kicker { color: var(--brass); }
.office-band .sec-sub { color: var(--on-desk-soft); }
.office-3d-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--desk-well-border);
  box-shadow: var(--shadow-3);
  aspect-ratio: 16 / 8.2;
  background: var(--desk);
}
.office-img { width: 100%; height: 100%; object-fit: cover; object-position: center 46%; display: block; filter: brightness(0.9) contrast(1.04); }
@media (prefers-reduced-motion: no-preference) {
  .office-img { animation: office-glide 18s ease-in-out infinite alternate; }
  @keyframes office-glide { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); } }
}
.office-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 14, 0.12) 0%, rgba(8, 18, 14, 0.25) 68%, rgba(8, 18, 14, 0.88) 100%); pointer-events: none; }
.office-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.route-line { fill: none; stroke: rgba(226, 180, 85, 0.62); stroke-width: 2.5; stroke-dasharray: 6 6; }
@media (prefers-reduced-motion: no-preference) {
  .route-line { animation: dash-flow 2.4s linear infinite; }
  @keyframes dash-flow { to { stroke-dashoffset: -24; } }
}
.office-pins { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.o-pin { background: var(--desk); border: 1px solid var(--desk-well-border); border-radius: 9px; padding: 10px 12px; }
.o-pin.brass { border-color: var(--brass); }
.op-k { font-family: var(--mono); font-size: 10.5px; color: var(--desk-ok); }
.o-pin.brass .op-k { color: var(--brass); }
.op-t { font-size: 13px; font-weight: 600; color: var(--on-desk); margin-top: 2px; }

/* Section 6: FourLabs + status + FAQs */
.steps-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.step-c { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px 18px; }
.step-n { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--forest); margin-bottom: 5px; }
.step-t { font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 4px; }
.step-d { font-size: 13.5px; color: var(--ink-soft); }

.founder-strip {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--forest);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.founder-strip strong { color: var(--ink); }
.founder-link { color: var(--forest); text-decoration: underline; font-weight: 600; }

.status-faq { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.status-card { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 16px; }
.st-tabs-mini { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.stm { font-family: var(--mono); font-size: 11.5px; font-weight: 600; min-height: 36px; padding: 0 11px; border-radius: 6px; background: var(--fill); color: var(--ink); }
.stm.is-active { background: var(--desk); color: var(--on-desk); }
.st-rows { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.st-rows li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.st-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.st-rows span:last-child { font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-list details { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 15px; }
.faq-list summary { font-weight: 600; font-size: 14px; min-height: 32px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-family: var(--mono); color: var(--forest); font-size: 16px; }
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }

/* Footer */
.mast { background: var(--desk); color: var(--on-desk); padding: 44px 0 34px; }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--desk-well-border); margin-bottom: 22px; }
.mast-h { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); font-weight: 500; }
.mast-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.mast-bottom { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--on-desk-soft); }
.mast-links { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; }
.mast-links a { text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; color: var(--on-desk); }
.mast-links a:hover { color: var(--brass); }

.addr-form { display: flex; flex-direction: column; gap: 4px; }
.addr-row { display: flex; align-items: center; gap: 6px; }
.addr-row input {
  background: var(--desk-well);
  border: 1px solid var(--on-desk-soft);
  color: var(--on-desk);
  border-radius: 6px;
  min-height: 40px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  width: 144px;
}
.addr-row input::placeholder { color: var(--on-desk-soft); }
.addr-suffix { font-family: var(--mono); font-size: 12px; color: var(--on-desk); }
.addr-go {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid var(--on-desk-soft);
  color: var(--on-desk);
  font-size: 13px;
  font-weight: 600;
}
.addr-note { font-size: 12px; color: var(--brass); min-height: 16px; }

.theme-sw {
  display: inline-flex;
  border: 1px solid var(--desk-well-border);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
}
.theme-sw legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.theme-sw label { position: relative; cursor: pointer; }
.theme-sw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.theme-sw span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 54px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--on-desk);
}
.theme-sw input:checked + span { background: var(--on-desk); color: var(--desk); font-weight: 600; }
.theme-sw input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: -2px; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 28px); }
  .nav-links, .nav-cta { display: none; }
  .menu { display: block; }
  .hero { padding: 28px 0 36px; }
  .hero-grid, .paths-4, .ind-stage, .apps-3, .steps-3, .status-faq { grid-template-columns: 1fr; }
  .ledger-shell { transform: none !important; }
  .provide-strip, .l-tabs, .cite-2, .ba-2, .ind-tabs, .st-btns, .pipe-track, .office-pins { grid-template-columns: 1fr; }
  .office-3d-frame { aspect-ratio: auto; min-height: 400px; }
  .office-pins { position: relative; left: 0; right: 0; bottom: 0; padding: 12px; background: var(--desk); }
  section.band { padding: 44px 0; }
  .pause-btn, .sc-tab, .stm, .btn-sm { min-height: 44px; }
}
