/* ============================================================
   CompositeApps — shared styles v3 · "Quiet Authority"
   Palette: deep navy + warm bone paper + restrained brass accent
   Design direction: classicist federal white-paper aesthetic
   ============================================================ */

:root {
  /* Navy tones */
  --navy:          #0A1628;
  --navy-2:        #102338;
  --navy-3:        #1A3152;
  --navy-4:        #28486E;

  /* Paper / bone tones */
  --paper:         #F2EDE2;
  --paper-2:       #E8E2D1;
  --paper-3:       #DDD5BF;
  --paper-ink:     #0A1628;

  /* Surface tints (on navy) */
  --surface-d:     rgba(245, 242, 234, 0.035);
  --surface-d-2:   rgba(245, 242, 234, 0.06);

  /* Surface tints (on paper) */
  --surface-l:     rgba(10, 22, 40, 0.03);
  --surface-l-2:   rgba(10, 22, 40, 0.05);

  /* Borders */
  --border-d:      rgba(245, 242, 234, 0.1);
  --border-d-2:    rgba(245, 242, 234, 0.2);
  --border-l:      rgba(10, 22, 40, 0.1);
  --border-l-2:    rgba(10, 22, 40, 0.2);

  /* Text on navy */
  --ink:           #F5F2EA;
  --ink-soft:      #B8C0CF;
  --ink-muted:     #7A8799;

  /* Text on paper */
  --ink-dark:      #0A1628;
  --ink-dark-soft: #3E4A5E;
  --ink-dark-muted:#6B7788;

  /* Single accent: muted brass/antique gold */
  --brass:         #AE8851;
  --brass-soft:    #C6A677;
  --brass-deep:    #7E5F32;

  /* Signal red for alerts only */
  --signal:        #8E2222;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body {
  background: var(--paper);
  color: var(--ink-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11", "kern";
  overflow-x: hidden;
}

/* ===================== TYPOGRAPHY ===================== */

h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: inherit;
}

h1.display {
  font-size: clamp(56px, 7.4vw, 112px);
  font-weight: 500;
  letter-spacing: -0.032em;
  line-height: 0.98;
}
h2.section {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h3 { font-size: 22px; letter-spacing: -0.014em; font-weight: 600; }

em {
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: inherit;
}
em.brass {
  color: var(--brass);
  font-style: italic;
  font-weight: 500;
}
strong { font-weight: 600; }

/* body text */
p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-dark-soft);
  font-weight: 400;
}
p.lead {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
  color: var(--ink-dark);
}

/* mono */
.mono { font-family: 'JetBrains Mono', monospace; }
.kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  padding: 2px 7px;
  background: var(--surface-l);
  border: 1px solid var(--border-l);
  border-radius: 2px;
  color: var(--ink-dark);
  white-space: nowrap;
}

/* eyebrow */
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--brass);
}

/* Links */
a { color: var(--ink-dark); text-decoration: none; transition: color 0.15s ease; border-bottom: 1px solid var(--border-l-2); padding-bottom: 1px; }
a:hover { color: var(--brass-deep); border-bottom-color: var(--brass); }
a.clean { border: none; padding: 0; }

/* ===================== DARK CONTEXT ===================== */
.dark {
  background: var(--navy);
  color: var(--ink);
}
.dark h1, .dark h2, .dark h3 { color: var(--ink); }
.dark p { color: var(--ink-soft); }
.dark p.lead { color: var(--ink); }
.dark em { color: var(--ink); }
.dark em.brass { color: var(--brass-soft); }
.dark .eyebrow { color: var(--brass-soft); }
.dark .eyebrow::before { background: var(--brass-soft); }
.dark a { color: var(--ink); border-bottom-color: var(--border-d-2); }
.dark a:hover { color: var(--brass-soft); border-bottom-color: var(--brass-soft); }
.dark .kbd {
  background: var(--surface-d);
  border-color: var(--border-d);
  color: var(--ink);
}

/* ===================== LAYOUT ===================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 48px; }
section { position: relative; }

/* ===================== NAVIGATION ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  z-index: 100;
  background: rgba(242, 237, 226, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-l);
}
.nav.on-dark {
  background: rgba(10, 22, 40, 0.88);
  border-bottom-color: var(--border-d);
}

.nav .brand {
  display: flex; align-items: center; gap: 14px;
  font-family: 'Inter'; font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--ink-dark);
  text-transform: uppercase;
  border: none; padding: 0;
}
.nav.on-dark .brand { color: var(--ink); }
.nav .brand:hover { color: var(--ink-dark); border: none; }

.nav .links {
  display: flex; gap: 34px; align-items: center;
  font-size: 13px; font-weight: 500;
}
.nav .links a {
  color: var(--ink-dark-soft); font-family: 'Inter';
  border: none; padding: 0; letter-spacing: 0.04em;
}
.nav .links a:hover { color: var(--ink-dark); }
.nav.on-dark .links a { color: var(--ink-soft); }
.nav.on-dark .links a:hover { color: var(--ink); }

.nav .cta {
  padding: 10px 20px;
  background: var(--ink-dark);
  color: var(--paper);
  font-family: 'Inter'; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--ink-dark);
  border-radius: 2px;
  transition: all 0.2s ease;
}
.nav .cta:hover { background: var(--navy-2); color: var(--paper); }
.nav.on-dark .cta {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}
.nav.on-dark .cta:hover { background: var(--paper-2); color: var(--navy); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  font-family: 'Inter'; font-weight: 600; font-size: 12.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn.primary {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--paper);
}
.btn.primary:hover {
  background: var(--paper-2);
  color: var(--navy);
  transform: translateY(-1px);
}
.btn.dark {
  background: var(--ink-dark);
  color: var(--paper);
  border-color: var(--ink-dark);
}
.btn.dark:hover { background: var(--navy-2); color: var(--paper); }

.btn.ghost {
  background: transparent;
  color: inherit;
  border-color: var(--border-d-2);
}
.btn.ghost:hover { border-color: var(--brass-soft); color: var(--brass-soft); }

.btn.ghost.on-light {
  border-color: var(--border-l-2);
  color: var(--ink-dark);
}
.btn.ghost.on-light:hover { border-color: var(--brass); color: var(--brass-deep); }

.btn .arrow { display: inline-block; transition: transform 0.2s ease; font-family: 'Inter'; }
.btn:hover .arrow { transform: translateX(4px); }

/* ===================== HERO ===================== */
.hero {
  background: var(--navy);
  color: var(--ink);
  min-height: 100vh;
  padding: 170px 0 80px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}

/* Subtle navy layering — no photo background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1100px 500px at 85% 20%, rgba(174, 136, 81, 0.08), transparent 60%),
    radial-gradient(ellipse 900px 500px at 10% 100%, rgba(174, 136, 81, 0.04), transparent 60%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(174, 136, 81, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 136, 81, 0.03) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero .eyebrow { margin-bottom: 32px; }

.hero h1 { margin-bottom: 28px; max-width: 1000px; }
.hero h1 em { color: var(--brass-soft); font-weight: 400; font-style: italic; }

.hero .subhead {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--brass-soft);
  margin-top: -8px;
  margin-bottom: 30px;
  max-width: 740px;
}
.hero .subhead em { color: var(--ink); font-weight: 500; font-style: italic; }

.hero .lede {
  font-family: 'Fraunces', serif;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 740px;
  margin-bottom: 44px;
  font-weight: 400;
}
.hero .lede em { color: var(--brass-soft); font-style: italic; }

.hero .cta-row {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 80px; flex-wrap: wrap;
}

/* Hero grid: prose left, live panel right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}

/* Live system panel */
.hero-panel {
  background: var(--navy-2);
  border: 1px solid var(--border-d);
  border-radius: 2px;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
  position: relative;
}
.hero-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-soft), transparent);
  opacity: 0.5;
}
.panel-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  background: var(--navy-3);
  border-bottom: 1px solid var(--border-d);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.panel-head .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #9CBFA0;
  box-shadow: 0 0 10px #9CBFA0;
  animation: livepulse 2.2s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.panel-head .label { flex: 1; }
.panel-head .sig { color: var(--ink-muted); font-size: 10px; letter-spacing: 0.14em; }

.panel-body {
  padding: 18px 20px;
  min-height: 172px;
  line-height: 2;
  color: var(--ink-soft);
}
.tel-row {
  display: grid;
  grid-template-columns: 82px 85px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 11px;
  padding: 2px 0;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.tel-ts { color: var(--brass-soft); font-size: 10.5px; }
.tel-pfx { color: var(--ink-muted); letter-spacing: 0.1em; font-size: 10px; }
.tel-txt { color: var(--ink); font-size: 11px; }
.tel-txt.ok { color: #9CBFA0; }
.tel-txt.hash { color: var(--brass-soft); }
.tel-txt.alert { color: #E88D6A; }

.panel-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-d);
  background: var(--navy-3);
}
.panel-foot .meta {
  padding: 14px 18px;
  border-left: 1px solid var(--border-d);
  display: flex; flex-direction: column; gap: 4px;
}
.panel-foot .meta:first-child { border-left: none; }
.panel-foot .meta .k {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.panel-foot .meta .v {
  font-size: 12px;
  color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.panel-foot .meta .v .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #9CBFA0;
  box-shadow: 0 0 6px #9CBFA0;
}
.panel-foot .meta .v.mono { font-family: 'JetBrains Mono', monospace; color: var(--brass-soft); font-size: 11.5px; }

/* Model chips in architecture input */
.arch-node .chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.arch-node .chips .chip {
  padding: 5px 10px;
  border: 1px solid var(--border-d);
  border-radius: 2px;
  font-size: 11px;
  font-family: 'Inter';
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s ease;
}
.arch-node .chips .chip:hover {
  border-color: var(--brass);
  color: var(--brass-soft);
  background: rgba(174, 136, 81, 0.08);
}

/* Pull quote band */
.pullquote-band {
  background: var(--paper-2);
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}
.pullquote-band blockquote {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  color: var(--ink-dark);
  text-align: center;
  letter-spacing: -0.015em;
}
.pullquote-band blockquote em { color: var(--brass-deep); }
.pullquote-band .attrib {
  margin-top: 28px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* ===================== SECTIONS ===================== */
.section-pad { padding: 140px 0; position: relative; }
.section-pad.tight { padding: 90px 0; }

.section-pad.paper { background: var(--paper); color: var(--ink-dark); }
.section-pad.paper-2 { background: var(--paper-2); color: var(--ink-dark); }
.section-pad.navy {
  background: var(--navy);
  color: var(--ink);
}
.section-pad.navy h1, .section-pad.navy h2, .section-pad.navy h3 { color: var(--ink); }
.section-pad.navy p { color: var(--ink-soft); }
.section-pad.navy p.lead { color: var(--ink); }
.section-pad.navy em { color: var(--ink); }
.section-pad.navy em.brass { color: var(--brass-soft); }
.section-pad.navy .eyebrow { color: var(--brass-soft); }
.section-pad.navy .eyebrow::before { background: var(--brass-soft); }

/* Section head */
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 72px;
  margin-bottom: 80px;
  align-items: start;
}
.section-head .lhs .eyebrow { margin-bottom: 20px; }
.section-head .lhs .label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.4;
  color: var(--brass-deep);
}
.section-pad.navy .section-head .lhs .label { color: var(--brass-soft); }
.section-head .rhs h2 { margin-bottom: 20px; }

/* ===================== WHAT WE DO — three columns ===================== */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-l);
}
.what-col {
  padding: 48px 36px 48px 0;
  border-left: 1px solid var(--border-l);
  padding-left: 36px;
}
.what-col:first-child { border-left: none; padding-left: 0; }
.what-col .idx {
  font-family: 'JetBrains Mono';
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 22px;
}
.what-col h3 {
  font-family: 'Fraunces';
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink-dark);
  margin-bottom: 18px;
}
.what-col h3 em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.what-col p {
  font-size: 16px;
  line-height: 1.68;
  color: var(--ink-dark-soft);
}

/* ===================== ARCHITECTURE DIAGRAM (custom, clean) ===================== */
.arch-diagram {
  background: var(--navy);
  color: var(--ink);
  padding: 72px 64px;
  border: 1px solid var(--border-l);
  border-radius: 2px;
  margin-top: 24px;
}
.paper .arch-diagram {
  background: var(--navy);
}
.arch-row {
  display: grid;
  grid-template-columns: 1fr 44px 1.4fr 44px 1fr;
  gap: 8px;
  align-items: stretch;
}
.arch-node {
  padding: 28px 26px;
  background: var(--surface-d);
  border: 1px solid var(--border-d);
  border-radius: 2px;
}
.arch-node.center {
  background: var(--surface-d-2);
  border-color: var(--brass);
  padding: 32px 28px;
}
.arch-node .hdr {
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 14px;
}
.arch-node .name {
  font-family: 'Fraunces';
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.arch-node ul { list-style: none; }
.arch-node ul li {
  position: relative;
  padding-left: 14px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.arch-node ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 7px; height: 1px; background: var(--brass-soft);
}
.arch-sep {
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono';
  font-size: 18px;
  color: var(--brass-soft);
  font-weight: 400;
}
.arch-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-d);
  font-family: 'JetBrains Mono';
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.arch-foot .chip {
  padding: 4px 12px;
  background: var(--surface-d);
  border: 1px solid var(--border-d);
  border-radius: 2px;
  color: var(--brass-soft);
}

/* ===================== GLASS-BOX ARTIFACT CARD ===================== */
.artifact {
  max-width: 780px;
  margin: 0 auto;
  background: var(--navy);
  color: var(--ink);
  padding: 0;
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.85;
  border: 1px solid var(--border-l);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(10, 22, 40, 0.15);
}
.artifact .topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  background: var(--navy-2);
  border-bottom: 1px solid var(--border-d);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.artifact .topbar .dots {
  display: flex; gap: 6px;
}
.artifact .topbar .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-d);
}
.artifact .body {
  padding: 28px 32px;
}
.artifact .row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 4px 0;
}
.artifact .row.head {
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-d);
}
.artifact .row.foot {
  padding: 18px 0 0;
  margin-top: 18px;
  border-top: 1px solid var(--border-d);
}
.artifact .k { color: var(--ink-muted); letter-spacing: 0.1em; font-size: 11px; text-transform: uppercase; padding-top: 3px; }
.artifact .v { color: var(--ink); font-size: 14px; }
.artifact .v.hash { color: var(--brass-soft); font-size: 13.5px; }
.artifact .v.ok { color: #9CBFA0; }
.artifact .v.sig { color: var(--ink); font-size: 19px; font-family: 'Fraunces'; letter-spacing: -0.01em; }
.artifact .factor {
  display: grid; grid-template-columns: 160px 70px 60px 1fr;
  gap: 12px; padding: 5px 0;
  font-size: 13px; color: var(--ink);
}
.artifact .factor .n { color: var(--brass-soft); }
.artifact .factor .bar {
  height: 4px; background: var(--border-d); border-radius: 2px; position: relative;
  margin-top: 9px;
}
.artifact .factor .bar::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--brass-soft); border-radius: 2px;
  width: var(--w, 50%);
}
.artifact .note {
  margin-top: 12px;
  font-size: 12px; color: var(--ink-muted); letter-spacing: 0.04em;
  font-style: italic;
}

/* ===================== PROOF BAND (navy) ===================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-d);
  border-bottom: 1px solid var(--border-d);
}
.stat-cell {
  padding: 40px 0;
  border-left: 1px solid var(--border-d);
  padding-left: 32px;
  padding-right: 24px;
}
.stat-cell:first-child { border-left: none; padding-left: 0; }
.stat-cell .n {
  font-family: 'Fraunces';
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1;
  color: var(--ink);
}
.stat-cell .l {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  line-height: 1.55;
}

.compliance-line {
  margin-top: 48px;
  padding: 28px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  line-height: 1.95;
  border-top: 1px solid var(--border-d);
}
.compliance-line strong { color: var(--brass-soft); font-weight: 600; }

/* ===================== WHO-IT'S-FOR (simple, no images) ===================== */
.who-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-l);
}
.who-col {
  padding: 48px 40px 48px 40px;
  border-left: 1px solid var(--border-l);
}
.who-col:first-child { border-left: none; padding-left: 0; }
.who-col:last-child { padding-right: 0; }
.who-col .idx {
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.who-col h3 {
  font-family: 'Fraunces';
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
  color: var(--ink-dark);
}
.who-col p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-dark-soft);
  margin-bottom: 20px;
}
.who-col ul { list-style: none; }
.who-col ul li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dark-soft);
  margin-bottom: 6px;
}
.who-col ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--brass);
}

/* ===================== PROBLEM SECTION (pain before solution) ===================== */
.problem {
  background: var(--navy);
  color: var(--ink);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}
.problem::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 400px at 20% 0%, rgba(174, 136, 81, 0.08), transparent 60%),
    radial-gradient(ellipse 900px 400px at 80% 100%, rgba(174, 136, 81, 0.05), transparent 60%);
  pointer-events: none;
}
.problem .container { position: relative; z-index: 2; }

.problem-head {
  text-align: center;
  margin-bottom: 56px;
}
.problem-head .eyebrow {
  margin-bottom: 20px;
  justify-content: center;
}
.problem-head .eyebrow::before {
  background: var(--brass-soft);
}
.problem-head h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--ink);
  max-width: 1000px;
  margin: 0 auto;
}
.problem-head h2 em { color: var(--brass-soft); font-style: italic; }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}

.problem-col {
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.problem-col.left {
  background: rgba(245, 242, 234, 0.02);
  border: 1px solid var(--border-d);
  border-radius: 2px;
}
.problem-col.right {
  background: var(--navy-3);
  border: 1px solid var(--brass);
  border-radius: 2px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.25);
  position: relative;
}
.problem-col.right::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-soft), transparent);
  opacity: 0.6;
}

.problem-col .pc-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-d);
  display: flex;
  align-items: center;
  gap: 12px;
}
.problem-col.right .pc-label {
  color: var(--brass-soft);
}
.problem-col .pc-label::before {
  content: "";
  width: 20px; height: 1px;
  background: currentColor;
}
.problem-col .pc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.problem-col .pc-list li {
  font-family: 'Fraunces', serif;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.42;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.005em;
  padding-left: 20px;
  position: relative;
}
.problem-col.left .pc-list li { color: var(--ink-soft); }
.problem-col .pc-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--ink-muted);
}
.problem-col.right .pc-list li::before { background: var(--brass-soft); }
.problem-col .pc-list li em {
  color: var(--brass-soft);
  font-style: italic;
  font-weight: 500;
}

.problem-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brass-soft);
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
}

.problem-foot {
  margin-top: 48px;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--brass-soft);
  letter-spacing: -0.01em;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.problem-foot strong {
  color: var(--ink);
  font-weight: 500;
  font-style: italic;
}

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 20px; }
  .problem-arrow { transform: rotate(90deg); padding: 6px 0; }
}

/* ===================== PLATFORM STACK (3-band architecture) ===================== */
.platform-stack {
  margin-top: 32px;
  position: relative;
  font-family: 'JetBrains Mono', monospace;
}
.platform-band {
  position: relative;
  border: 1px solid var(--border-l);
  border-radius: 2px;
  padding: 28px 40px;
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper);
}
.platform-band.top {
  background: var(--paper);
}
.platform-band.mid {
  background: var(--navy);
  color: var(--ink);
  border-color: var(--brass);
  box-shadow: 0 24px 60px rgba(10, 22, 40, 0.18);
  padding: 36px 44px;
  position: relative;
  z-index: 2;
}
.platform-band.mid::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-soft), transparent);
  opacity: 0.6;
}
.platform-band.bot {
  background: var(--paper);
}

.band-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.band-num {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.band-num.brass { color: var(--brass-soft); }
.band-name {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--ink-dark);
  line-height: 1.1;
}
.band-name.brass { color: var(--brass-soft); }
.platform-band.mid .band-name { color: var(--ink); }
.band-sub {
  font-size: 11px;
  color: var(--ink-dark-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 4px;
}
.platform-band.mid .band-sub { color: var(--ink-muted); }

/* Band body — content differs per band */
.band-body { min-width: 0; }

/* Top band: model chips */
.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mchip {
  padding: 6px 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dark-soft);
  border: 1px solid var(--border-l);
  background: var(--surface-l);
  border-radius: 1px;
  transition: all 0.2s ease;
}
.mchip:hover {
  border-color: var(--brass);
  color: var(--brass-deep);
  background: rgba(174, 136, 81, 0.06);
}

/* Middle band: agent grid + runtime strip */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.agent-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px;
  background: rgba(245, 242, 234, 0.03);
  border: 1px solid var(--border-d);
  border-radius: 1px;
}
.agent-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brass);
  margin-bottom: 6px;
  animation: agentPulse 3s ease-in-out infinite;
}
.agent-dot.advocate { background: #9CBFA0; animation-delay: 0s; }
.agent-dot.defender { background: #C97D5C; animation-delay: 0.6s; }
.agent-dot.arbiter  { background: var(--brass-soft); animation-delay: 1.2s; }
.agent-dot.scribe   { background: var(--ink-soft); animation-delay: 1.8s; }
.agent-dot.sentry   { background: #7DA3C9; animation-delay: 2.4s; }
@keyframes agentPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}
.agent-nm {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.agent-tx {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.runtime-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-d);
  padding-top: 16px;
}
.rt-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 12px;
  border-right: 1px solid var(--border-d);
}
.rt-item:last-child { border-right: none; }
.rt-k {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.rt-v {
  font-size: 13px;
  color: var(--ink);
}
.rt-v.mono { color: var(--brass-soft); }

/* Bottom band: authority grid */
.authority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.auth-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 14px;
  border-right: 1px solid var(--border-l);
  padding-left: 14px;
}
.auth-cell:first-child { padding-left: 0; }
.auth-cell:last-child { border-right: none; }
.auth-k {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dark-muted);
}
.auth-v {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dark);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

/* Flow connector between bands */
.platform-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 40px;
  margin: 0;
  position: relative;
}
.platform-flow .flow-tag {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dark-muted);
}
.platform-flow .flow-tag.left { text-align: right; }
.platform-flow .flow-tag.right { text-align: left; }
.flow-pipe {
  display: flex;
  align-items: center;
  gap: 3px;
}
.flow-pipe .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--brass);
  opacity: 0.4;
}
.flow-pipe .dot.live {
  animation: flowPulse 2.4s ease-in-out infinite;
}
@keyframes flowPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}
.flow-pipe .arrow {
  color: var(--brass);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  padding: 0 2px;
}

/* Supporting three-point strip below stack */
.platform-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-l);
  margin-top: 56px;
  padding-top: 32px;
}
.platform-point {
  padding: 0 36px;
  border-left: 1px solid var(--border-l);
}
.platform-point:first-child { border-left: none; padding-left: 0; }
.platform-point:last-child { padding-right: 0; }
.platform-point .pp-icon {
  width: 32px; height: 32px;
  color: var(--brass-deep);
  margin-bottom: 14px;
}
.platform-point .pp-icon svg { width: 100%; height: 100%; display: block; }
.platform-point .pp-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 8px;
}
.platform-point .pp-h {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.18;
  color: var(--ink-dark);
  margin-bottom: 10px;
}
.platform-point .pp-h em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.platform-point .pp-p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-dark-soft);
}

@media (max-width: 1100px) {
  .platform-band { grid-template-columns: 1fr; gap: 20px; padding: 22px 24px; }
  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  .runtime-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rt-item { border-right: none; }
  .authority-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .auth-cell { border-right: none; padding-left: 0; }
  .platform-points { grid-template-columns: 1fr; gap: 32px; }
  .platform-point { border-left: none; padding: 0; border-top: 1px solid var(--border-l); padding-top: 24px; }
  .platform-point:first-child { border-top: none; padding-top: 0; }
  .platform-flow { padding: 8px 12px; }
}

/* ===================== COMPLIANCE RIBBON ===================== */
.compliance-ribbon {
  background: var(--paper-2);
  border-bottom: 1px solid var(--border-l);
  padding: 22px 0;
  position: relative;
}
.compliance-ribbon::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-soft), transparent);
  opacity: 0.55;
}
.compliance-ribbon .container {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.compliance-ribbon .cr-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
  white-space: nowrap;
}
.compliance-ribbon .cr-label::before {
  content: "";
  display: inline-block;
  width: 18px; height: 1px;
  background: var(--brass);
  vertical-align: middle;
  margin-right: 12px;
}
.compliance-ribbon .cr-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}
.compliance-ribbon .cr-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dark);
  padding: 6px 16px;
  position: relative;
}
.compliance-ribbon .cr-mark + .cr-mark::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 1px; height: 12px;
  background: var(--border-l-2);
  transform: translateY(-50%);
}
.compliance-ribbon .cr-mark strong {
  color: var(--brass-deep);
  font-weight: 600;
}

@media (max-width: 960px) {
  .compliance-ribbon .container { justify-content: flex-start; gap: 14px; }
  .compliance-ribbon .cr-mark { padding: 4px 10px; font-size: 10px; }
}

/* ===================== PREMISE ICONS ===================== */
.premise-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  color: var(--brass-deep);
  display: block;
}
.premise-icon svg { width: 100%; height: 100%; display: block; }

/* ===================== DUOTONE PHOTOGRAPHY ===================== */
/*
 * Apply to any <img> wrapped in a .duotone container.
 * Grayscale + warm brass cast in midtones + soft navy in shadows.
 * Preserves facial detail while harmonizing source photos to the
 * bone+navy+brass palette.
 */
.duotone {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}
.duotone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.08) brightness(1.02) sepia(0.18);
}
/* Navy shadow tint */
.duotone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  mix-blend-mode: lighten;
  opacity: 0.55;
  pointer-events: none;
}
/* Brass highlight wash */
.duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(198, 166, 119, 0.18) 0%,
    rgba(174, 136, 81, 0.05) 50%,
    rgba(10, 22, 40, 0.18) 100%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
/* Optional inner brass hairline (for portraits) */
.duotone.framed {
  border: 1px solid var(--border-l);
  outline: 1px solid rgba(174, 136, 81, 0.3);
  outline-offset: -6px;
}

/* ===================== CINEMATIC BAND (gut-shot) ===================== */
.cinematic-band {
  position: relative;
  width: 100%;
  height: clamp(440px, 62vh, 720px);
  overflow: hidden;
  background: var(--navy);
  isolation: isolate;
  border-top: 1px solid var(--border-l);
  border-bottom: 1px solid var(--border-l);
}
.cinematic-band .cb-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: grayscale(100%) contrast(1.12) brightness(0.95) sepia(0.22);
  opacity: 1;
  transform: scale(1.04);
  animation: cbDriftSlow 26s ease-in-out infinite alternate;
}
@keyframes cbDriftSlow {
  from { transform: scale(1.04) translateX(0); }
  to   { transform: scale(1.07) translateX(-1.2%); }
}
.cinematic-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.45) 0%, rgba(10,22,40,0.05) 30%, rgba(10,22,40,0.78) 100%),
    linear-gradient(115deg, rgba(174,136,81,0.20) 0%, rgba(10,22,40,0.0) 55%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}
.cinematic-band .cb-bg + .cb-tint {
  position: absolute; inset: 0;
  background: var(--navy);
  mix-blend-mode: lighten;
  opacity: 0.45;
  pointer-events: none;
  z-index: 1;
}
.cinematic-band::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(174, 136, 81, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(174, 136, 81, 0.04) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 2;
}
.cb-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: 64px;
}
.cb-content .container {
  width: 100%;
}
.cb-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.cb-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--brass-soft);
}
.cb-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 50px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 980px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}
.cb-quote em { color: var(--brass-soft); font-style: italic; }
.cb-attrib {
  margin-top: 22px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  opacity: 0.85;
}
.cb-credit {
  position: absolute;
  bottom: 12px;
  right: 24px;
  z-index: 3;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.7;
}

/* ===================== ORIGIN SECTION ===================== */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1.7fr;
  gap: 80px;
  align-items: start;
  margin-top: 32px;
  padding-top: 56px;
  border-top: 1px solid var(--border-l);
}
.origin-side {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.origin-column {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 360px;
  padding: 36px 32px 32px;
  background: var(--paper-2, #EBE4D6);
  border: 1px solid var(--border-l);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
}
.origin-column .column-mark {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 44px;
}
.origin-column .column-mark .mark-bar {
  height: 6px;
  background: var(--brass);
  border-radius: 1px;
}
.origin-column .column-mark .mark-bar:nth-child(1) { width: 100%; opacity: 1; }
.origin-column .column-mark .mark-bar:nth-child(2) { width: 86%; opacity: 0.72; margin-left: 6px; }
.origin-column .column-mark .mark-bar:nth-child(3) { width: 72%; opacity: 0.48; margin-left: 12px; }
.origin-column .pulled-quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.42;
  color: var(--ink-dark);
  letter-spacing: -0.005em;
}
.origin-column .origin-attrib {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 20px;
  border-top: 1px solid var(--border-l);
}
.origin-column .origin-attrib .name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink-dark);
  line-height: 1.2;
}
.origin-column .origin-attrib .role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.origin-prose {
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 760px;
}
.origin-block .origin-marker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.origin-block .origin-marker::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--brass);
}
.origin-block h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.12;
  color: var(--ink-dark);
  margin-bottom: 16px;
}
.origin-block h3 em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.origin-block p {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-dark);
  letter-spacing: -0.005em;
}
.origin-block p + p { margin-top: 16px; }
.origin-block p em { color: var(--brass-deep); font-style: italic; }
.origin-block .agents-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-family: 'JetBrains Mono', monospace;
}
.origin-block .agents-list .agent-chip {
  padding: 6px 14px;
  border: 1px solid var(--border-l);
  background: var(--surface-l);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border-radius: 1px;
}
.origin-block .agents-list .agent-chip strong { color: var(--ink-dark); font-weight: 600; }

@media (max-width: 1100px) {
  .origin-grid { grid-template-columns: 1fr; gap: 48px; }
  .origin-side { position: static; }
}

/* ===================== CONSOLE (live demo) ===================== */
.console-frame {
  position: relative;
  background: var(--navy);
  border: 1px solid var(--border-l);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(10, 22, 40, 0.22), 0 0 0 1px rgba(174, 136, 81, 0.12);
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink);
  margin-top: 32px;
  isolation: isolate;
}
.console-frame::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-soft), transparent);
  opacity: 0.55;
  z-index: 5;
}

/* Window chrome */
.console-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: var(--navy-3);
  border-bottom: 1px solid var(--border-d);
}
.chrome-dots {
  display: flex; gap: 6px;
}
.chrome-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-d);
}
.chrome-title {
  flex: 1;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.chrome-status {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.chrome-status .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #9CBFA0;
  box-shadow: 0 0 8px #9CBFA0;
  animation: livepulse 2.2s ease-in-out infinite;
}

/* Mission tabs */
.console-tabs {
  display: flex;
  background: var(--navy-2);
  border-bottom: 1px solid var(--border-d);
  position: relative;
}
.console-tab {
  flex: 1;
  padding: 16px 22px;
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-d);
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.console-tab:last-child { border-right: none; }
.console-tab:hover { color: var(--ink); background: rgba(174, 136, 81, 0.06); }
.console-tab.active {
  color: var(--brass-soft);
  background: var(--navy);
}
.console-tab.active::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--brass);
}
.console-tab .tab-num {
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.18em;
}
.console-tab.active .tab-num { color: var(--brass); }
.console-tab .tab-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 1px;
  background: var(--brass-soft);
  width: 0%;
  transition: width linear;
  opacity: 0.7;
}

/* Workspace — 3 panes */
.console-workspace {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  min-height: 460px;
}
.console-pane {
  padding: 24px 22px;
  border-right: 1px solid var(--border-d);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.console-pane:last-child { border-right: none; }
.console-pane.center {
  background: rgba(174, 136, 81, 0.025);
}
.pane-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-d);
}
.pane-hdr .pane-name {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.pane-hdr .pane-count {
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* SIGNALS pane — incoming feed */
.signal-stream {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  font-size: 11.5px;
  line-height: 1.55;
}
.signal-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(245, 242, 234, 0.025);
  border-left: 2px solid var(--brass-deep);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.signal-row.in {
  opacity: 1;
  transform: translateX(0);
}
.signal-row .sig-tag {
  color: var(--brass-soft);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-top: 2px;
}
.signal-row .sig-text {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

/* COMPOSITE LAYER pane — agent reasoning */
.agent-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  font-size: 12px;
  line-height: 1.55;
}
.agent-turn {
  padding: 12px 14px;
  background: rgba(245, 242, 234, 0.03);
  border: 1px solid rgba(245, 242, 234, 0.06);
  border-left: 2px solid;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.agent-turn.in { opacity: 1; transform: translateY(0); }
.agent-turn.advocate { border-left-color: #9CBFA0; }
.agent-turn.defender { border-left-color: #C97D5C; }
.agent-turn.arbiter  { border-left-color: var(--brass); background: rgba(174, 136, 81, 0.06); }
.agent-turn .agent-name {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.agent-turn.advocate .agent-name { color: #9CBFA0; }
.agent-turn.defender .agent-name { color: #C97D5C; }
.agent-turn.arbiter  .agent-name { color: var(--brass-soft); }
.agent-turn .agent-name::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.agent-turn .agent-text {
  color: var(--ink);
  font-size: 11.5px;
  line-height: 1.55;
}
.typing-cursor::after {
  content: "▋";
  display: inline-block;
  margin-left: 2px;
  color: var(--brass-soft);
  animation: blink 0.9s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* GLASS-BOX pane — receipt */
.verdict-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  font-size: 11.5px;
  background: rgba(10, 22, 40, 0.4);
  border: 1px solid rgba(174, 136, 81, 0.18);
  padding: 16px 18px;
}
.verdict-row {
  display: grid;
  grid-template-columns: 1fr;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(245, 242, 234, 0.05);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.verdict-row.in { opacity: 1; transform: translateY(0); }
.verdict-row:last-child { border-bottom: none; }
.verdict-row .vk {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.verdict-row .vv {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  font-family: 'JetBrains Mono', monospace;
}
.verdict-row .vv.brass { color: var(--brass-soft); }
.verdict-row .vv.ok    { color: #9CBFA0; }
.verdict-row.head .vv {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 500;
}
.verdict-sig {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid rgba(174, 136, 81, 0.18);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.verdict-sig.in { opacity: 1; }
.verdict-sig .sig-pending { color: var(--brass-soft); font-style: italic; text-transform: none; letter-spacing: 0.04em; font-family: 'Fraunces', serif; font-size: 12px; }

/* Status bar */
.console-statusbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy-3);
  border-top: 1px solid var(--border-d);
}
.status-cell {
  padding: 14px 18px;
  border-right: 1px solid var(--border-d);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.status-cell:last-child { border-right: none; }
.status-cell .sk {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.status-cell .sv {
  font-size: 12.5px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-cell .sv .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #9CBFA0;
  box-shadow: 0 0 8px #9CBFA0;
}
.status-cell .sv.brass { color: var(--brass-soft); }

/* Pin indicator */
.pin-hint {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 5;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}
.pin-hint.pinned { color: var(--brass-soft); }
.pin-hint .pin-icon {
  width: 12px; height: 12px;
}

@media (max-width: 1100px) {
  .console-workspace { grid-template-columns: 1fr; min-height: auto; }
  .console-pane { border-right: none; border-bottom: 1px solid var(--border-d); padding: 18px; }
  .console-pane:last-child { border-bottom: none; }
  .console-tabs { flex-direction: column; }
  .console-tab { border-right: none; border-bottom: 1px solid var(--border-d); }
  .console-statusbar { grid-template-columns: 1fr 1fr; }
  .status-cell { border-bottom: 1px solid var(--border-d); }
}

/* ===================== TEAM (with portraits) ===================== */
.team-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  border-top: 1px solid var(--border-l);
  padding-top: 56px;
  margin-top: 24px;
}
.team-entry { display: flex; flex-direction: column; }
.team-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 22px;
}
.team-portrait .portrait-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  z-index: 4;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  background: rgba(10, 22, 40, 0.78);
  padding: 4px 10px;
  border: 1px solid rgba(174, 136, 81, 0.35);
}
.team-entry .name {
  font-family: 'Fraunces';
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink-dark);
  margin-bottom: 4px;
}
.team-entry .role {
  font-family: 'JetBrains Mono';
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.team-entry p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-dark-soft);
}

/* ===================== CONTACT ===================== */
.contact-card {
  max-width: 640px;
  padding: 40px 44px;
  background: var(--surface-d);
  border: 1px solid var(--border-d-2);
  border-radius: 2px;
}
.contact-card .k {
  font-family: 'JetBrains Mono';
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
  margin-bottom: 10px;
}
.contact-card .name {
  font-family: 'Fraunces';
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-card .role {
  font-family: 'Fraunces';
  font-style: italic;
  font-size: 15px;
  color: var(--brass-soft);
  margin-bottom: 22px;
}
.contact-card .lines {
  font-family: 'JetBrains Mono';
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink);
}
.contact-card .lines a {
  color: var(--ink); border-bottom-color: var(--border-d);
}
.contact-card .lines a:hover {
  color: var(--brass-soft); border-bottom-color: var(--brass-soft);
}

/* ===================== FOOTER ===================== */
footer {
  padding: 72px 0 40px;
  background: var(--paper);
  color: var(--ink-dark);
  border-top: 1px solid var(--border-l);
}
footer.on-dark { background: var(--navy); color: var(--ink); border-top-color: var(--border-d); }
footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
footer .col .brand {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Inter'; font-weight: 600;
  letter-spacing: 0.22em; font-size: 13px; color: inherit;
  text-transform: uppercase;
  margin-bottom: 18px;
}
footer .col p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dark-muted);
  max-width: 340px;
}
footer.on-dark .col p { color: var(--ink-muted); }
footer .col h5 {
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 18px;
}
footer.on-dark .col h5 { color: var(--brass-soft); }
footer .col ul { list-style: none; }
footer .col ul li { margin-bottom: 10px; font-size: 14px; }
footer .col ul a {
  color: var(--ink-dark-soft);
  border: none; padding: 0;
}
footer .col ul a:hover { color: var(--brass-deep); }
footer.on-dark .col ul a { color: var(--ink-soft); }
footer.on-dark .col ul a:hover { color: var(--brass-soft); }
footer .legal {
  padding-top: 28px;
  border-top: 1px solid var(--border-l);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--ink-dark-muted);
  text-transform: uppercase;
}
footer.on-dark .legal { border-top-color: var(--border-d); color: var(--ink-muted); }

/* ===================== PAGE HEADER (sub-pages) ===================== */
.page-header {
  background: var(--navy);
  color: var(--ink);
  padding: 200px 0 120px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 1100px 500px at 80% 25%, rgba(174, 136, 81, 0.08), transparent 60%);
}
.page-header .container { position: relative; z-index: 1; max-width: 1100px; }
.page-header .eyebrow { margin-bottom: 22px; }
.page-header h1 {
  font-family: 'Fraunces';
  font-size: clamp(52px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 28px;
  max-width: 980px;
  color: var(--ink);
}
.page-header h1 em { color: var(--brass-soft); font-weight: 400; }
.page-header .lede {
  font-family: 'Fraunces';
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 800px;
}
.page-header .lede em { color: var(--ink); }

/* ===================== TIMELINE ===================== */
.timeline {
  position: relative;
  padding-left: 40px;
  margin-top: 24px;
  border-top: 1px solid var(--border-l);
  padding-top: 48px;
}
.timeline::before {
  content: "";
  position: absolute; left: 0; top: 48px; bottom: 0;
  width: 1px; background: var(--border-l-2);
}
.timeline-item {
  position: relative;
  padding-bottom: 48px;
}
.timeline-item::before {
  content: "";
  position: absolute; left: -44px; top: 11px;
  width: 8px; height: 8px;
  background: var(--brass);
  border-radius: 50%;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .year {
  font-family: 'JetBrains Mono';
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; color: var(--brass-deep); text-transform: uppercase;
  margin-bottom: 8px;
}
.timeline-item .event {
  font-family: 'Fraunces';
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.25;
  color: var(--ink-dark); margin-bottom: 8px;
}
.timeline-item p {
  font-size: 15px; color: var(--ink-dark-soft); line-height: 1.7;
}

/* ===================== VALUES ===================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-l);
  padding-top: 48px;
  margin-top: 24px;
}
.value-col {
  padding: 0 40px 0 40px;
  border-left: 1px solid var(--border-l);
  padding-top: 4px;
}
.value-col:first-child { border-left: none; padding-left: 0; }
.value-col:last-child { padding-right: 0; }
.value-col .idx {
  font-family: 'JetBrains Mono';
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 14px;
}
.value-col h3 {
  font-family: 'Fraunces';
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--ink-dark);
  margin-bottom: 12px;
}
.value-col p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-dark-soft);
}

/* ===================== SKU (services) ===================== */
.sku-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-l);
  margin-top: 24px;
}
.sku-col {
  padding: 48px 36px 48px 40px;
  border-left: 1px solid var(--border-l);
}
.sku-col:first-child { border-left: none; padding-left: 0; }
.sku-col:last-child { padding-right: 0; }
.sku-col .idx {
  font-family: 'JetBrains Mono';
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 18px;
}
.sku-col .name {
  font-family: 'Fraunces';
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: var(--ink-dark);
  margin-bottom: 8px;
}
.sku-col .tagline {
  font-family: 'Fraunces';
  font-style: italic;
  font-size: 16px;
  color: var(--brass-deep);
  margin-bottom: 20px;
}
.sku-col p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-dark-soft);
  margin-bottom: 18px;
}
.sku-col ul {
  list-style: none;
  margin-bottom: 22px;
}
.sku-col ul li {
  position: relative; padding-left: 16px;
  font-size: 13.5px; color: var(--ink-dark-soft);
  margin-bottom: 7px; line-height: 1.55;
}
.sku-col ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 1px; background: var(--brass);
}
.sku-col .meta {
  padding-top: 18px;
  border-top: 1px dashed var(--border-l);
  font-family: 'JetBrains Mono';
  font-size: 11px;
  color: var(--ink-dark-muted);
  letter-spacing: 0.06em;
  line-height: 1.8;
}
.sku-col .meta strong { color: var(--brass-deep); font-weight: 600; }

/* Engagement path */
.path-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-l);
  margin-top: 24px;
}
.path-col {
  padding: 44px 40px 44px 40px;
  border-left: 1px solid var(--border-l);
  position: relative;
}
.path-col:first-child { border-left: none; padding-left: 0; }
.path-col:last-child { padding-right: 0; }
.path-col .num {
  font-family: 'Fraunces';
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--brass);
  line-height: 1;
  margin-bottom: 6px;
}
.path-col .dur {
  font-family: 'JetBrains Mono';
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.path-col .title {
  font-family: 'Fraunces';
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink-dark);
  margin-bottom: 12px;
}
.path-col p { font-size: 14.5px; line-height: 1.65; color: var(--ink-dark-soft); }
.path-col .deliverables {
  margin-top: 18px;
  font-family: 'JetBrains Mono';
  font-size: 12px; letter-spacing: 0.05em;
  color: var(--ink-dark-muted);
  line-height: 1.85;
  list-style: none;
}
.path-col .deliverables li::before {
  content: "› ";
  color: var(--brass);
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-l);
  margin-top: 24px;
}
.use-col {
  padding: 36px 28px 36px 32px;
  border-left: 1px solid var(--border-l);
}
.use-col:first-child { padding-left: 0; border-left: none; }
.use-col:last-child { padding-right: 0; }
.use-col .domain {
  font-family: 'JetBrains Mono';
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 12px;
}
.use-col h4 {
  font-family: 'Fraunces';
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.014em;
  line-height: 1.2;
  color: var(--ink-dark);
  margin-bottom: 12px;
}
.use-col p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dark-soft);
}

/* ===================== COMPOSITION (isometric section) ===================== */
.comp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.comp-prose h2 { color: var(--ink-dark); }
.comp-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}
.iso-stack {
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 18px 30px rgba(10, 22, 40, 0.06));
}
.iso-layer {
  transform-origin: 220px 120px;
  animation: isoFloat 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.6s);
}
@keyframes isoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.iso-center {
  animation: isoFloatMid 6s ease-in-out infinite;
}
@keyframes isoFloatMid {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.iso-flow {
  animation: flowDown 4.5s cubic-bezier(.55,.05,.45,.95) infinite;
}
.iso-flow.flow-a {
  offset-path: path('M220 20 L220 100');
  animation-delay: 0s;
}
.iso-flow.flow-b {
  offset-path: path('M220 100 L220 170');
  animation-delay: 1.5s;
}
.iso-flow.flow-c {
  offset-path: path('M220 170 L220 240');
  animation-delay: 3s;
}
@keyframes flowDown {
  0% { offset-distance: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
/* Fallback for browsers without offset-path */
@supports not (offset-path: path('M0 0')) {
  .iso-flow { display: none; }
}

/* ===================== THREE LOOPS (set-piece) ===================== */
.scene-set {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 16px;
}
.scene {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border-l);
}
.scene:last-child { border-bottom: none; padding-bottom: 8px; }

/* Banner: full-width duotone industry image with overlaid tag/title/sector mark */
.scene-banner {
  position: relative;
  width: 100%;
  height: clamp(220px, 28vh, 320px);
  overflow: hidden;
  background: var(--navy);
  border: 1px solid var(--border-l);
  isolation: isolate;
}
.scene-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.10) brightness(0.95) sepia(0.20);
  opacity: 1;
  transform: scale(1.03);
  transition: transform 12s ease-out;
}
.scene-banner:hover img { transform: scale(1.06); }
/* Navy lift overlay */
.scene-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--navy);
  mix-blend-mode: lighten;
  opacity: 0.45;
  pointer-events: none;
}
/* Brass + vignette wash */
.scene-banner::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.05) 0%, rgba(10,22,40,0.55) 100%),
    linear-gradient(115deg, rgba(174,136,81,0.18) 0%, rgba(10,22,40,0) 55%);
  pointer-events: none;
  mix-blend-mode: multiply;
}
.scene-banner .sb-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 36px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.scene-banner .sb-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.scene-banner .sb-bottom {
  display: flex;
  align-items: flex-end;
}
.scene-banner .scene-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.scene-banner .scene-tag::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  background: var(--brass-soft);
  vertical-align: middle;
  margin-right: 12px;
}
.scene-banner .scene-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 720px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.scene-banner .scene-title em {
  color: var(--brass-soft);
  font-style: italic;
  font-weight: 500;
}
/* Sector mark — small icon top-right */
.scene-banner .sector-mark {
  width: 44px;
  height: 44px;
  color: var(--brass-soft);
  opacity: 0.85;
}
.scene-banner .sector-mark svg { width: 100%; height: 100%; display: block; }
.scene-banner .sb-credit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  opacity: 0.65;
  margin-left: auto;
}

@media (max-width: 960px) {
  .scene-banner .sb-content { padding: 22px 24px; }
  .scene-banner .sector-mark { width: 32px; height: 32px; }
}

.scene-grid {
  display: grid;
  grid-template-columns: 1fr 36px 1.18fr 36px 1fr;
  gap: 0;
  align-items: stretch;
  position: relative; /* anchor for the flowing dot */
}

/* Flowing dot — left cell → composite layer → witnessed decision */
.scene-dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 14px var(--brass-soft), 0 0 28px rgba(174, 136, 81, 0.4);
  transform: translate(-50%, -50%) scale(0.9);
  pointer-events: none;
  z-index: 4;
  opacity: 0;
}
.scene.in .scene-dot {
  animation: sceneDotFlow 11s cubic-bezier(.55,.05,.45,.95) infinite;
}
@keyframes sceneDotFlow {
  0%   { left: 15%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  6%   { opacity: 1; }
  32%  { left: 50%; opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  48%  { left: 50%; opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
  94%  { opacity: 1; }
  100% { left: 85%; opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
}

/* Composite cell pulses while the dot is passing through it */
.scene.in .scene-cell.center {
  animation: compositePulse 11s cubic-bezier(.55,.05,.45,.95) infinite;
}
@keyframes compositePulse {
  0%, 22%   { box-shadow: 0 22px 48px rgba(10, 22, 40, 0.18); }
  40%, 50%  { box-shadow: 0 22px 48px rgba(10, 22, 40, 0.22),
                          0 0 0 1px rgba(198, 166, 119, 0.55),
                          0 0 42px rgba(174, 136, 81, 0.28); }
  70%, 100% { box-shadow: 0 22px 48px rgba(10, 22, 40, 0.18); }
}

@media (prefers-reduced-motion: reduce) {
  .scene.in .scene-dot,
  .scene.in .scene-cell.center {
    animation: none;
  }
}
@media (max-width: 1100px) {
  .scene-dot { display: none; }
}

.scene-cell {
  padding: 26px 28px 28px;
  background: var(--paper);
  border: 1px solid var(--border-l);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
}
.scene-cell.center {
  background: var(--navy);
  color: var(--ink);
  border-color: var(--navy);
  box-shadow: 0 22px 48px rgba(10, 22, 40, 0.18);
  position: relative;
}
.scene-cell.center::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-soft), transparent);
  opacity: 0.55;
}
.scene-cell .cell-hdr {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 12px;
}
.scene-cell.center .cell-hdr { color: var(--brass-soft); }
.scene-cell .cell-title {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--ink-dark);
  margin-bottom: 16px;
}
.scene-cell.center .cell-title { color: var(--ink); }
.scene-cell ul { list-style: none; flex: 1; }
.scene-cell ul li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-dark-soft);
  padding-top: 4px;
  padding-bottom: 4px;
}
.scene-cell.center ul li { color: var(--ink-soft); }
.scene-cell ul li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 7px; height: 1px;
  background: var(--brass);
}
.scene-cell.center ul li::before { background: var(--brass-soft); }
.scene-cell ul li strong {
  color: var(--brass-deep);
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.scene-cell.center ul li strong { color: var(--brass-soft); }

.scene-cell .verdict {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-dark);
  padding: 14px 16px;
  background: rgba(174, 136, 81, 0.08);
  border-left: 2px solid var(--brass);
  border-radius: 1px;
  margin-top: 6px;
}
.verdict .verdict-pending {
  color: var(--ink-dark-muted);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: inline-block;
  margin-top: 4px;
}

.scene-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  color: var(--brass);
}

.scene-caption {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 17px;
  color: var(--brass-deep);
  text-align: right;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .scene-meta { grid-template-columns: 1fr; gap: 12px; }
  .scene-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .scene-arrow { transform: rotate(90deg); padding: 4px 0; }
  .scene-caption { text-align: left; }
}

/* ===================== WHO ICONS ===================== */
.who-icon {
  width: 44px;
  height: 44px;
  color: var(--brass-deep);
  margin-bottom: 20px;
}
.who-icon svg { width: 100%; height: 100%; display: block; }

/* ===================== BEFORE / AFTER ===================== */
.ba-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: stretch;
}
.ba-card {
  padding: 32px 34px;
  border: 1px solid var(--border-l);
  border-radius: 2px;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
}
.ba-card.ba-before {
  background: transparent;
  border-color: var(--border-l);
}
.ba-card.ba-after {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--ink);
  box-shadow: 0 24px 56px rgba(10, 22, 40, 0.18);
}
.ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-l);
  gap: 12px;
}
.ba-card.ba-after .ba-head { border-bottom-color: var(--border-d); }
.ba-k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.ba-card.ba-before .ba-k { color: var(--ink-dark-muted); }
.ba-card.ba-after .ba-k { color: var(--brass-soft); }
.ba-badge {
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 1px;
  border: 1px solid currentColor;
}
.ba-badge-muted { color: var(--ink-dark-muted); }
.ba-badge-brass { color: var(--brass-soft); border-color: var(--brass); background: rgba(174,136,81,0.08); }
.ba-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ba-line {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 3px 0;
}
.ba-card.ba-before .ba-line { color: var(--ink-dark-soft); }
.ba-card.ba-after .ba-line { color: var(--ink-soft); }
.ba-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 2px;
}
.ba-card.ba-before .ba-tag { color: var(--ink-dark-muted); }
.ba-card.ba-after .ba-tag { color: var(--ink-muted); }
.ba-ok { color: #2E7D53; font-weight: 600; }
.ba-card.ba-after .ba-ok { color: #9CBFA0; }
.ba-bad { color: var(--signal); font-style: italic; }
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
}
.ba-arrow svg { width: 50px; height: 20px; }

/* ===================== REVEALS ===================== */
/* Always visible by default; .in plays a subtle slide-up when triggered. */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 1; transform: none; }
.reveal.in { animation: revealUp 0.85s cubic-bezier(.22,.95,.37,.98) both; }
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { max-width: 520px; }
  .comp-row { grid-template-columns: 1fr; gap: 48px; }
  .comp-art { justify-self: start; max-width: 440px; }
  .ba-row { grid-template-columns: 1fr; gap: 14px; }
  .ba-arrow { transform: rotate(90deg); padding: 8px; }
}
@media (max-width: 960px) {
  .container, .container-narrow { padding: 0 24px; }
  .nav { padding: 16px 24px; }
  .nav .links { gap: 18px; }
  .nav .links .hide-sm { display: none; }
  .section-pad { padding: 90px 0; }
  .section-head { grid-template-columns: 1fr; gap: 28px; }
  .what-grid, .who-row, .team-row, .stats-row, .values-grid, .sku-row, .path-row { grid-template-columns: 1fr; border-top: none; }
  .use-grid { grid-template-columns: 1fr 1fr; }
  .what-col, .who-col, .value-col, .sku-col, .path-col, .stat-cell, .use-col { border-left: none; border-top: 1px solid var(--border-l); padding: 32px 0; }
  .section-pad.navy .stat-cell, .section-pad.navy .what-col { border-top-color: var(--border-d); }
  .team-row { grid-template-columns: 1fr; gap: 32px; }
  .arch-row { grid-template-columns: 1fr; gap: 10px; }
  .arch-sep { transform: rotate(90deg); padding: 4px; }
  .artifact { font-size: 12px; }
  .artifact .row { grid-template-columns: 1fr; gap: 4px; }
  .artifact .factor { grid-template-columns: 1fr; gap: 4px; }
  footer .row { grid-template-columns: 1fr 1fr; }
}

/* ===================== NOTES (long-form reading) ===================== */
.notes-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.notes-article .n-head {
  padding-top: 140px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border-l);
  margin-bottom: 44px;
}
.notes-article .n-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.notes-article .n-eyebrow .dot { color: var(--ink-dark-muted); }
.notes-article .n-eyebrow a {
  color: var(--brass-deep);
  border-bottom-color: var(--brass);
  padding-bottom: 1px;
}
.notes-article .n-eyebrow a:hover { color: var(--ink-dark); border-bottom-color: var(--ink-dark); }
.notes-article h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink-dark);
  margin-bottom: 22px;
}
.notes-article h1 em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.notes-article .n-deck {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--ink-dark-soft);
  max-width: 620px;
  letter-spacing: -0.005em;
}
.notes-article .n-byline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dark-muted);
  margin-top: 28px;
}
.notes-article .n-byline .by { color: var(--brass-deep); }

.notes-article .n-body {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink-dark);
  letter-spacing: -0.005em;
}
.notes-article .n-body p {
  margin-bottom: 22px;
}
.notes-article .n-body p.lead-para {
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-dark);
}
.notes-article .n-body p.lead-para::first-letter {
  font-size: 3.2em;
  float: left;
  font-weight: 500;
  line-height: 0.9;
  padding: 4px 12px 0 0;
  color: var(--brass-deep);
  font-style: normal;
}
.notes-article .n-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.018em;
  line-height: 1.18;
  color: var(--ink-dark);
  margin-top: 44px;
  margin-bottom: 18px;
}
.notes-article .n-body h2 em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.notes-article .n-body h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
}
.notes-article .n-body em {
  color: var(--brass-deep);
  font-style: italic;
  font-weight: 500;
}
.notes-article .n-body strong {
  color: var(--ink-dark);
  font-weight: 600;
}
.notes-article .n-body blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-dark-soft);
  padding: 20px 0 20px 28px;
  margin: 28px 0;
  border-left: 2px solid var(--brass);
  max-width: 620px;
}
.notes-article .n-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.notes-article .n-body ul,
.notes-article .n-body ol {
  margin-bottom: 22px;
  padding-left: 28px;
}
.notes-article .n-body li {
  margin-bottom: 10px;
}
.notes-article .n-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--surface-l);
  padding: 1px 6px;
  border-radius: 2px;
  color: var(--brass-deep);
}
.notes-article .n-body a {
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
}
.notes-article .n-body a:hover {
  color: var(--ink-dark);
  border-bottom-color: var(--ink-dark);
}
.notes-article .n-body hr {
  border: none;
  border-top: 1px solid var(--border-l);
  margin: 44px auto;
  max-width: 120px;
}

.notes-article .n-foot {
  margin-top: 72px;
  padding-top: 36px;
  border-top: 1px solid var(--border-l);
}
.notes-article .n-foot .author {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  align-items: center;
}
.notes-article .n-foot .author .portrait {
  width: 72px; height: 72px;
  border-radius: 50%;
  overflow: hidden;
  filter: grayscale(100%) sepia(0.08) brightness(0.92);
}
.notes-article .n-foot .author .portrait img {
  width: 100%; height: 100%; object-fit: cover;
}
.notes-article .n-foot .author .meta .n {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--ink-dark);
}
.notes-article .n-foot .author .meta .r {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-top: 3px;
}
.notes-article .n-foot .author .meta .b {
  font-size: 14px;
  color: var(--ink-dark-soft);
  margin-top: 8px;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}
.notes-article .n-next {
  margin-top: 48px;
  padding: 28px 32px;
  background: var(--paper-2);
  border: 1px solid var(--border-l);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
}
.notes-article .n-next .k {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 8px;
}
.notes-article .n-next a {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  color: var(--ink-dark);
  border-bottom: none;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.25;
  display: inline-block;
}
.notes-article .n-next a:hover { color: var(--brass-deep); }

/* Notes index listing */
.notes-index {
  max-width: 820px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}
.notes-index .index-head {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-l);
}
.notes-index .index-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: 16px;
}
.notes-index h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink-dark);
  margin-bottom: 18px;
}
.notes-index h1 em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.notes-index .index-lede {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-dark-soft);
  max-width: 640px;
}

.notes-list { display: flex; flex-direction: column; gap: 0; }
.notes-list .note-item {
  display: block;
  padding: 32px 0;
  border-top: 1px solid var(--border-l);
  border-bottom: none;
  text-decoration: none;
}
.notes-list .note-item:first-child { border-top: none; }
.notes-list .note-item:hover h2 { color: var(--brass-deep); }
.notes-list .note-item .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dark-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.notes-list .note-item .meta .date { color: var(--brass-deep); }
.notes-list .note-item h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 32px);
  letter-spacing: -0.018em;
  line-height: 1.15;
  color: var(--ink-dark);
  margin-bottom: 14px;
  transition: color 0.15s ease;
}
.notes-list .note-item h2 em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.notes-list .note-item .deck {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-dark-soft);
  max-width: 640px;
}

@media (max-width: 640px) {
  .notes-article .n-head { padding-top: 100px; padding-bottom: 32px; margin-bottom: 28px; }
  .notes-article .n-body { font-size: 17.5px; line-height: 1.62; }
  .notes-article .n-body p.lead-para { font-size: 19px; }
  .notes-article .n-body p.lead-para::first-letter { font-size: 2.8em; padding: 4px 10px 0 0; }
  .notes-article .n-body blockquote { font-size: 18px; padding-left: 20px; }
  .notes-article .n-foot .author { grid-template-columns: 56px 1fr; gap: 16px; }
  .notes-article .n-foot .author .portrait { width: 56px; height: 56px; }
  .notes-article .n-next { padding: 22px 20px; }
  .notes-article .n-next a { font-size: 19px; }
  .notes-index { padding: 100px 20px 56px; }
  .notes-index .index-head { margin-bottom: 40px; padding-bottom: 24px; }
}

/* ===================== SERVICES PATH MORE LINK ===================== */
.services-path-more {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-l);
  text-align: center;
}
.services-path-more a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-deep);
  border-bottom: 1px solid var(--brass);
  padding-bottom: 4px;
  transition: all 0.15s ease;
}
.services-path-more a:hover {
  color: var(--ink-dark);
  border-bottom-color: var(--ink-dark);
}

/* ===================== CONSOLE CTA (homepage → demo) ===================== */
.console-cta {
  margin-top: 56px;
  padding: 36px 44px;
  background: var(--paper);
  border: 1px solid var(--border-l);
  border-left: 3px solid var(--brass);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.console-cta .console-cta-lede {
  font-family: 'Fraunces', serif;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-dark);
  margin: 0;
}
.console-cta .console-cta-lede em { color: var(--brass-deep); font-style: italic; font-weight: 500; }
.console-cta .console-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.console-cta .btn.primary { background: var(--ink-dark); color: var(--paper); border-color: var(--ink-dark); }
.console-cta .btn.primary:hover { background: var(--navy-2); color: var(--paper); }
.console-cta .btn.ghost { color: var(--ink-dark); border-color: var(--ink-dark); }
.console-cta .btn.ghost:hover { background: var(--ink-dark); color: var(--paper); }

@media (max-width: 900px) {
  .console-cta {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 20px;
  }
  .console-cta .console-cta-row { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .console-cta { padding: 24px 20px; }
  .console-cta .console-cta-lede { font-size: 17px; }
}

/* ===================== HERO AMBIENT MOTION ===================== */
/* Composite-weave backdrop: three horizontal strands drift slowly across the
   hero, each with a brass highlight. Slow floating nodes add depth.
   Respects prefers-reduced-motion and pauses on small screens. */
.hero-motion {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 120% 110% at 50% 50%, #000 35%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 120% 110% at 50% 50%, #000 35%, transparent 92%);
}
.hero-motion .strand {
  position: absolute;
  left: -30%;
  right: -30%;
  height: 1px;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 38%,
    rgba(174, 136, 81, 0.22) 46%,
    rgba(198, 166, 119, 0.55) 50%,
    rgba(174, 136, 81, 0.22) 54%,
    transparent 62%,
    transparent 100%
  );
  background-size: 100% 100%;
  transform: translateX(-40%);
  will-change: transform;
}
.hero-motion .strand.s1 {
  top: 24%;
  animation: strandDrift 22s linear infinite;
}
.hero-motion .strand.s2 {
  top: 52%;
  animation: strandDrift 14s linear infinite;
  animation-delay: -6s;
  opacity: 0.78;
}
.hero-motion .strand.s3 {
  top: 76%;
  animation: strandDrift 28s linear infinite;
  animation-delay: -12s;
  opacity: 0.6;
}
@keyframes strandDrift {
  0%   { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}

/* Floating light nodes — small brass pinpoints that slowly pulse and drift */
.hero-motion .node {
  position: absolute;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(198, 166, 119, 0.65);
  box-shadow:
    0 0 6px rgba(198, 166, 119, 0.45),
    0 0 14px rgba(174, 136, 81, 0.22);
  animation: nodeFloat 14s ease-in-out infinite;
  will-change: transform, opacity;
}
.hero-motion .node.n1 { top: 18%; left: 12%; animation-duration: 17s; animation-delay: -2s; }
.hero-motion .node.n2 { top: 33%; left: 28%; animation-duration: 21s; animation-delay: -7s; width: 3px; height: 3px; }
.hero-motion .node.n3 { top: 14%; left: 62%; animation-duration: 19s; animation-delay: -4s; }
.hero-motion .node.n4 { top: 68%; left: 18%; animation-duration: 23s; animation-delay: -11s; width: 3px; height: 3px; }
.hero-motion .node.n5 { top: 82%; left: 44%; animation-duration: 16s; animation-delay: -5s; }
.hero-motion .node.n6 { top: 42%; left: 78%; animation-duration: 20s; animation-delay: -9s; }
.hero-motion .node.n7 { top: 58%; left: 88%; animation-duration: 25s; animation-delay: -13s; width: 3px; height: 3px; }
.hero-motion .node.n8 { top: 88%; left: 72%; animation-duration: 18s; animation-delay: -3s; }
.hero-motion .node.n9 { top: 28%; left: 92%; animation-duration: 22s; animation-delay: -8s; width: 3px; height: 3px; }
@keyframes nodeFloat {
  0%   { transform: translate(0, 0);    opacity: 0.25; }
  25%  {                                 opacity: 0.85; }
  50%  { transform: translate(-14px, 10px); opacity: 0.55; }
  75%  {                                 opacity: 0.85; }
  100% { transform: translate(0, 0);    opacity: 0.25; }
}

.hero .container { z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .hero-motion .strand,
  .hero-motion .node { animation: none; opacity: 0.35; }
}

/* ===================== MOBILE (≤640px) ===================== */
@media (max-width: 640px) {
  /* Containers and section spacing */
  .container, .container-narrow { padding: 0 20px; }
  .section-pad { padding: 72px 0; }
  .section-pad.tight { padding: 56px 0; }

  /* Navigation */
  .nav { padding: 14px 20px; }
  .nav .brand { font-size: 12px; letter-spacing: 0.2em; gap: 10px; }
  .nav .links { gap: 12px; font-size: 12px; }
  .nav .cta { padding: 8px 14px; font-size: 10.5px; letter-spacing: 0.12em; }

  /* Hero */
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero .eyebrow { margin-bottom: 22px; font-size: 10.5px; letter-spacing: 0.22em; }
  h1.display { font-size: clamp(42px, 10.5vw, 56px); line-height: 1.02; }
  .hero h1 { margin-bottom: 20px; }
  .hero .subhead { font-size: 20px; margin-bottom: 22px; }
  .hero .lede { font-size: 17px; line-height: 1.5; margin-bottom: 32px; }
  .hero .cta-row { gap: 10px; margin-bottom: 48px; }
  .hero .cta-row .btn { flex: 1 1 auto; justify-content: center; padding: 13px 18px; font-size: 11.5px; letter-spacing: 0.1em; }
  .hero-grid { gap: 36px; }

  /* Live system panel */
  .hero-panel { font-size: 11px; }
  .panel-head { padding: 11px 14px; font-size: 9.5px; }
  .panel-body { padding: 14px 14px; min-height: 146px; }
  .tel-row { grid-template-columns: 60px 70px 1fr; gap: 8px; font-size: 10px; }
  .tel-pfx { font-size: 9px; }
  .tel-txt { font-size: 10px; }
  .panel-foot { grid-template-columns: 1fr 1fr; }
  .panel-foot .meta { padding: 10px 12px; }
  .panel-foot .meta:nth-child(3) { grid-column: span 2; border-top: 1px solid var(--border-d); border-left: none; }

  /* Hero motion — reduce count on mobile */
  .hero-motion .node.n3,
  .hero-motion .node.n6,
  .hero-motion .node.n7,
  .hero-motion .node.n9 { display: none; }

  /* Section headings */
  h2.section { font-size: clamp(30px, 8.5vw, 40px); line-height: 1.08; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.24em; }
  .section-head .label { font-size: clamp(18px, 5.5vw, 22px); }
  .lead { font-size: 17px; line-height: 1.5; }

  /* Compliance ribbon */
  .compliance-ribbon { padding: 22px 0; }
  .compliance-ribbon .container { flex-direction: column; align-items: flex-start; gap: 12px; }
  .compliance-ribbon .cr-label { font-size: 10px; }
  .compliance-ribbon .cr-marks { gap: 8px; flex-wrap: wrap; }
  .compliance-ribbon .cr-mark { padding: 4px 10px; font-size: 10.5px; }
  .compliance-ribbon .cr-mark + .cr-mark::before { display: none; }

  /* Problem */
  .problem-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Platform bands — already stack at 1100, tighten padding */
  .platform-band { padding: 20px 18px; gap: 16px; }
  .band-body h3 { font-size: 20px; }
  .platform-points { gap: 24px; }
  .agent-grid { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Loops / scenes */
  .scene-card { padding: 22px 18px; }
  .scene-banner { aspect-ratio: 16 / 10; }
  .scene-meta { grid-template-columns: 1fr; gap: 8px; }

  /* Console — simplify */
  .console-frame { border-radius: 2px; }
  .console-statusbar { grid-template-columns: 1fr !important; gap: 2px; }
  .console-statusbar .item { border-top: 1px solid var(--border-d); border-left: none; }
  .console-statusbar .item:first-child { border-top: none; }

  /* Stats (Proof) */
  .stats-row { grid-template-columns: 1fr 1fr !important; border-top: none; }
  .stat-cell { border-top: 1px solid var(--border-d); padding: 24px 0 !important; border-left: none !important; }
  .stat-cell .n { font-size: clamp(36px, 11vw, 56px); }

  /* Pull quote */
  .pullquote-band { padding: 72px 0; }
  .pullquote { font-size: clamp(20px, 5.2vw, 26px); line-height: 1.3; }

  /* Buttons (global) */
  .btn { padding: 12px 18px; font-size: 11.5px; letter-spacing: 0.1em; }

  /* Footer */
  footer { padding: 56px 0 32px; }
  footer .row { grid-template-columns: 1fr !important; gap: 28px; }
  footer .col h5 { font-size: 10px; }

  /* Origin (about page) */
  .origin-column { padding: 28px 22px; }
  .origin-column .pulled-quote { font-size: 17px; }
  .origin-block h3 { font-size: clamp(22px, 6vw, 28px) !important; }
  .origin-block p { font-size: 17px; line-height: 1.55; }
  .agents-list { gap: 6px; }

  /* Timeline */
  .timeline-item { padding: 18px 0; }

  /* Services — SKUs */
  .sku-col, .path-col, .arch-col { padding: 28px 0 !important; }

  /* Archetypes — the 3-col set */
  .arch-row { gap: 8px; }

  /* Contact / CTA */
  .contact-card { padding: 24px 20px; }
  .contact-card .lines { font-size: 13px; }

  /* Hide less-essential marks in compliance ribbon beyond the first 3 on very small */
}

/* ===================== EXTRA-SMALL (≤420px) ===================== */
@media (max-width: 420px) {
  .container, .container-narrow { padding: 0 16px; }
  .section-pad { padding: 60px 0; }
  .nav { padding: 12px 16px; }

  h1.display { font-size: clamp(38px, 11vw, 48px); }
  h2.section { font-size: clamp(26px, 9vw, 34px); }

  .hero { padding: 104px 0 48px; }
  .hero .cta-row { flex-direction: column; align-items: stretch; }
  .hero .cta-row .btn { width: 100%; }

  .stats-row { grid-template-columns: 1fr !important; }
  .agent-grid { grid-template-columns: 1fr; }

  /* Further reduce motion on tiny screens */
  .hero-motion .strand.s3 { display: none; }
}

/* ===================== TOUCH TARGETS ===================== */
@media (hover: none) and (pointer: coarse) {
  a.btn, button.btn, .nav .cta, .sign-btn { min-height: 44px; }
}

