/* APG homepage — light paper desk */
:root {
  --paper: #F7F6F2;
  --ink: #0B1220;
  --body: #334155;
  --hair: #2563EB;
  --hair-2: #3b82f6;
  --cta: #0B1220;
  --cta-ink: #ffffff;
  --plate: #ffffff;
  --line: rgba(11, 18, 32, 0.10);
  --line-2: rgba(37, 99, 235, 0.22);
  --muted: #64748b;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --r: 10px;
  --r-lg: 12px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--hair); outline-offset: 3px; }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--cta); color: var(--cta-ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 16px; }

body::before, body::after {
  content: "";
  position: fixed; top: 0; bottom: 0; width: 0;
  border-left: 1px dashed var(--line-2);
  z-index: 8; pointer-events: none;
}
body::before { left: clamp(16px, 3vw, 36px); }
body::after { right: clamp(16px, 3vw, 36px); }

.page { position: relative; z-index: 10; }

.wrap { width: min(1120px, calc(100% - 56px)); margin: 0 auto; }
.wide { width: min(1180px, calc(100% - 56px)); margin: 0 auto; }

.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hair);
  font-weight: 500;
}

/* NAV */
.nav-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  padding: 12px 0 10px;
  background: linear-gradient(180deg, rgba(247,246,242,.96) 40%, rgba(247,246,242,.72) 78%, transparent);
  pointer-events: none;
}
.nav-wrap .nav-bar, .nav-wrap .nav-toggle, .nav-wrap a { pointer-events: auto; }
.page { padding-top: 78px; }
#desk { scroll-margin-top: 88px; }
.nav-bar {
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 14px 40px rgba(11,18,32,.06);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name small {
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.brand-name span { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-links { display: flex; gap: 2px; align-items: center; font-size: 14px; font-weight: 500; color: var(--body); }
.nav-links a { padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: var(--paper); }
.nav-cta, .btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #0B1220;
  border: 1px solid rgba(11,18,32,.16);
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 0 rgba(11,18,32,.04);
}
.btn:hover, .nav-cta:hover { background: #0B1220; color: #fff; border-color: #0B1220; }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--plate); color: var(--ink);
  border-radius: 10px; padding: 10px 16px; font-size: 13.5px; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--hair); color: var(--hair); }
.btn-indigo {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hair); color: #fff; border: 1px solid var(--hair);
  border-radius: 10px; padding: 10px 16px; font-size: 13.5px; font-weight: 600;
}

/* HERO — visual first, one journey */
.hero {
  padding: 48px 0 20px;
}
.hero-visual { max-width: 1180px; }
.hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin: 0 0 12px;
  max-width: 16ch;
}
.lede {
  font-size: 18px;
  line-height: 1.4;
  color: var(--body);
  max-width: 36ch;
  margin: 0 0 28px;
  font-weight: 500;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.micro {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 280px;
  line-height: 1.45;
}
.sold {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--body);
  max-width: 540px;
}
.file-line {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* MIRO — four plates, one leak, one wire */
.miro {
  position: relative;
  background-color: #F3F1EA;
  background-image: radial-gradient(#c5c1b6 0.85px, transparent 0.95px);
  background-size: 13px 13px;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 20px;
  padding: 16px 16px 10px;
  box-shadow: 0 24px 60px rgba(15,23,42,.08);
  overflow: hidden;
}
.miro-top {
  display: flex; justify-content: flex-end; align-items: center;
  margin-bottom: 10px; min-height: 18px;
}
.miro .live, .miro-top .trace-live {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--hair);
  display: flex; align-items: center; gap: 6px;
}
.miro .live i, .miro-top .trace-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--hair);
  box-shadow: 0 0 0 0 rgba(37,99,235,.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(37,99,235,0); }
}
.miro-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
  z-index: 2;
}
.miro-flow::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%;
  top: 52%;
  border-top: 2px dotted rgba(37,99,235,.42);
  z-index: 0;
  pointer-events: none;
}
.sticky {
  position: relative; z-index: 1;
  background: #fff;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 12px;
  padding: 14px 14px 16px;
  min-height: 108px;
  box-shadow: 0 12px 28px rgba(15,23,42,.08);
}
.sticky.start { transform: rotate(-0.45deg); }
.sticky.leak {
  transform: rotate(0.55deg);
  background: #FBF4EC;
  border-color: rgba(180, 90, 40, .16);
  box-shadow: 0 12px 28px rgba(140, 70, 30, .08);
}
.sticky.file {
  transform: rotate(-0.25deg);
  box-shadow: inset 4px 0 0 #2563EB, 0 12px 28px rgba(15,23,42,.08);
}
.sticky.out { transform: rotate(0.4deg); }
.sticky em {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: normal;
  font-weight: 500;
}
.sticky b {
  display: block;
  margin-top: 10px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.28;
}
.miro-wires {
  display: block;
  width: 88%;
  height: 18px;
  margin: 2px auto 0;
  position: relative;
  z-index: 1;
}
.miro-wires path {
  fill: none;
  stroke: #2563EB;
  stroke-width: 0.7;
  stroke-dasharray: 1.1 1.6;
  opacity: .7;
}

/* DESK SECTION */
#desk {
  padding: 12px 0 56px;
}
.desk-kicker { display: none; }
.desk-shell {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  background: rgba(255,255,255,.55);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(11,18,32,.05);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
#desk-root {
  width: 100%;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0 0 12px;
}

.desk-bezel {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.desk-bezel .dots { display: flex; gap: 5px; margin-right: 8px; }
.desk-bezel .dots i {
  width: 8px; height: 8px; border-radius: 50%; display: block;
  background: #e2e8f0;
}
.desk-bezel .dots i:nth-child(1){ background:#fb7185 }
.desk-bezel .dots i:nth-child(2){ background:#fbbf24 }
.desk-bezel .dots i:nth-child(3){ background:#34d399 }
#desk-root > .apg-desk, #desk-root .desk { padding: 8px 12px 20px; }
#desk-root.apg-desk .desk { padding: 12px 12px 28px; max-width: none; }

/* BEFORE / AFTER */
.split { padding: 24px 0 72px; }
.split-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.tall-plate {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  min-height: 560px;
  box-shadow: 0 24px 70px rgba(11,18,32,.07);
  display: flex; flex-direction: column;
}
.tall-plate .ph {
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; display: block; background: rgba(255,255,255,.35); }
.win-dots i:nth-child(1){ background:#fb7185 }
.win-dots i:nth-child(2){ background:#fbbf24 }
.win-dots i:nth-child(3){ background:#34d399 }
.tall-plate.without .ph { background: #0B1220; }
.tall-plate.with .ph { background: #2563EB; }
.tall-plate .mock { padding: 16px; display: grid; gap: 10px; flex: 1; }
.mock-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 12px;
  font-size: 13px;
}
.mock-card .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.mock-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 6px 0; border-bottom: 1px dashed var(--line);
  color: var(--ink); font-size: 13px;
}
.mock-row:last-child { border-bottom: 0; }
.bad { color: #b91c1c; font-family: var(--mono); font-size: 11px; }
.ok { color: #15803d; font-family: var(--mono); font-size: 11px; }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pipe {
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px;
  min-height: 92px;
}
.pipe .k { margin-bottom: 8px; }
.chip-live {
  display: inline-block; background: #eff6ff; color: var(--hair);
  border: 1px solid var(--line-2); border-radius: 6px;
  padding: 4px 6px; font-size: 11px; margin-bottom: 4px;
}
.blink { animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* FLOW */
.flow { padding: 8px 0 72px; }
.flow h2, .split h2, .practices h2, .mission h2, .founder-sec h2, .seq h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 600;
  margin: 8px 0 22px;
}
.flow-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.flow-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 20px 20px;
  min-height: 200px;
  box-shadow: 0 16px 40px rgba(11,18,32,.04);
}
.flow-step .n {
  font-family: var(--sans); font-size: 42px; color: rgba(37,99,235,.28);
  letter-spacing: -0.06em; font-weight: 600; line-height: 1;
}
.flow-step h3 { color: var(--ink); font-size: 18px; font-weight: 600; margin: 8px 0 8px; }
.flow-step p { font-size: 13.5px; color: var(--body); }

/* TAGS */
.tags { padding: 0 0 72px; }
.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag-cloud a, .tag-cloud span {
  display: inline-flex; align-items: center;
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink);
}
.tag-cloud a:hover { border-color: var(--hair); color: var(--hair); }

/* MISSION */
.mission { padding: 0 0 72px; }
.mission p {
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 760px;
  font-weight: 500;
}

/* PRACTICES */
.practices { padding: 0 0 72px; }
.prac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.prac {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px 24px;
  min-height: 240px;
  box-shadow: 0 16px 40px rgba(11,18,32,.04);
}
.prac .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--hair); }
.prac h3 { color: var(--ink); font-size: 20px; margin: 10px 0 10px; font-weight: 600; }
.prac p { font-size: 14px; }

/* FOUNDER */
.founder-sec { padding: 0 0 64px; }
.founder-sec h2 { font-size: clamp(22px, 3vw, 32px); margin: 6px 0 8px; color: var(--ink); }
.founder-sec p { max-width: 42ch; font-size: 16px; }

/* SEQUENCE */
.seq { padding: 0 0 80px; }
.seq-board {
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.seq-track {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  margin-top: 8px;
}
.seq-node {
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  padding: 12px 10px;
  min-height: 92px;
}
.seq-node .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--hair);
}
.seq-node p { font-size: 13px; color: var(--ink); margin-top: 6px; font-weight: 500; }

/* FOOTER */
.site-foot {
  border-top: 1px solid var(--line);
  padding: 36px 0 28px;
  font-size: 13px;
  color: var(--muted);
}
.foot-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px;
  padding-bottom: 28px;
}
.foot-brand p { margin-top: 8px; }
.foot-col h4 { color: var(--ink); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-family: var(--mono); margin-bottom: 10px; font-weight: 500; }
.foot-col a { display: block; padding: 4px 0; color: var(--body); }
.foot-col a:hover { color: var(--hair); }
.foot-bar { border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; line-height: 1.6; }
.foot-bar a { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid, .split-grid, .file-modal-grid, .file-preview,
  .flow-row, .prac-grid, .seq-track, .foot-grid, .pipeline { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links, .nav-cta { display: none; }
  .nav-bar.is-open .nav-links {
    display: flex; flex-direction: column; position: absolute;
    top: 62px; left: 28px; right: 28px;
    background: var(--plate); border: 1px solid var(--line); border-radius: 12px;
    padding: 10px;
  }
  .nav-bar.is-open .nav-cta { display: inline-flex; position: absolute; top: auto; }
  .hero { padding-top: 40px; }
  .readouts { grid-template-columns: 1fr; }
  .tall-plate { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .miro .live i, .blink, .sticky { animation: none; transform: none; }
}

.file-instrument {
  margin-top: 12px;
  display: grid; grid-template-columns: 140px 1fr;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  position: relative; z-index: 1;
}
.file-instrument aside {
  background: #F7F6F2; border-right: 1px solid var(--line);
  padding: 12px 10px; font-size: 11px; color: var(--body);
}
.file-instrument aside h4 {
  font-family: var(--mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 10px 0 4px; font-weight: 500;
}
.file-instrument aside h4:first-child { margin-top: 0; }
.file-instrument aside b { color: var(--ink); font-size: 22px; letter-spacing: -.03em; display: block; }
.file-instrument .body { padding: 12px; display: grid; gap: 8px; }
@media (max-width: 900px) {
  .file-instrument { grid-template-columns: 1fr; }
  .nav-bar { border-radius: 16px; }
}


/* STACK leftovers + doors as visual plates */
.stack-sec, .fit { display: none; }
.doors { padding: 8px 0 64px; }
.doors-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.door-plate {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 24px 22px;
  min-height: 180px;
  box-shadow: 0 16px 40px rgba(15,23,42,.06);
  position: relative;
}
.door-plate::before {
  content: "";
  position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px;
  background: #2563EB; border-radius: 0 3px 3px 0;
}
.door-plate .mark {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  color: #2563EB; font-weight: 500;
}
.door-plate h2 {
  font-size: 26px; letter-spacing: -0.03em; color: var(--ink);
  font-weight: 600; margin: 8px 0 8px;
}
.door-plate p { color: var(--body); font-size: 15.5px; max-width: 34ch; }
.stack-sec h2, .fit h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.035em;
  color: var(--ink);
  font-weight: 600;
  margin: 8px 0 28px;
}
.stack {
  position: relative;
  padding-left: 36px;
  display: flex;
  flex-direction: column-reverse;
  gap: 14px;
  max-width: 760px;
}
.stack::before {
  content: "";
  position: absolute;
  left: 7px; top: 18px; bottom: 18px;
  width: 2px;
  background: #1e3a8a;
  box-shadow: 0 0 14px rgba(37,99,235,.55);
  border-radius: 2px;
}
.stack-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,.08);
  padding: 20px 22px 20px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
}
.stack-card::after {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 5px;
  background: #1e3a8a;
  border-radius: 0 4px 4px 0;
}
.stack-card .node {
  position: absolute;
  left: -36px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px;
  border: 2.5px solid #1e3a8a;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #F7F6F2, 0 0 12px rgba(37,99,235,.35);
  z-index: 2;
}
.stack-card h3 {
  color: #0B1220;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.stack-card p { color: #64748b; font-size: 14.5px; margin: 0; line-height: 1.45; }
.stack-card .mark {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .12em;
  color: #2563EB;
  font-weight: 500;
}

.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15,23,42,.07);
  padding: 28px 26px;
  position: relative;
  overflow: hidden;
}
.fit-card::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px;
  border-radius: 0 4px 4px 0;
}
.fit-card.yes::before { background: #1e3a8a; }
.fit-card.no::before { background: #94A3B8; }
.fit-card h2 { margin: 8px 0 12px; font-size: 28px; }
.fit-card p { color: #334155; font-size: 16px; max-width: 46ch; }

@media (max-width: 900px) {
  .fit-grid { grid-template-columns: 1fr; }
  .stack { padding-left: 28px; max-width: none; }
}

/* Premium paper grid + etch — readable faded chrome */
body {
  background:
    radial-gradient(ellipse 90% 46% at 50% -8%, rgba(37,99,235,.09), transparent 58%),
    var(--paper);
}
.paper-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(11,18,32,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,18,32,.16) 1px, transparent 1px),
    linear-gradient(rgba(37,99,235,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.14) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 11px 11px, 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 78% 52% at 50% 16%, transparent 0 34%, rgba(0,0,0,.42) 58%, #000 84%, transparent 100%);
  mask-image: radial-gradient(ellipse 78% 52% at 50% 16%, transparent 0 34%, rgba(0,0,0,.42) 58%, #000 84%, transparent 100%);
  opacity: 1;
}
.etch {
  position: fixed; pointer-events: none; z-index: 1;
  mix-blend-mode: multiply;
  filter: invert(1) contrast(1.35) brightness(.92);
  background-size: cover; background-repeat: no-repeat;
}
.etch-hatch {
  inset: -6%;
  background-image: url("../assets/etch/hatch-soft.png");
  background-position: center;
  opacity: .72;
  -webkit-mask-image: radial-gradient(ellipse at 50% 22%, transparent 0 30%, rgba(0,0,0,.4) 55%, #000 78%, transparent 92%);
  mask-image: radial-gradient(ellipse at 50% 22%, transparent 0 30%, rgba(0,0,0,.4) 55%, #000 78%, transparent 92%);
}
.etch-corner {
  right: -2%; bottom: -4%;
  width: min(760px, 70vw); height: min(560px, 62vh);
  background-image: url("../assets/etch/desk-corner.png");
  background-position: right bottom;
  opacity: .78;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 90% 90%, #000 28%, rgba(0,0,0,.5) 58%, transparent 82%);
  mask-image: radial-gradient(ellipse 85% 85% at 90% 90%, #000 28%, rgba(0,0,0,.5) 58%, transparent 82%);
}
.etch-type {
  left: -4%; top: 2vh;
  width: min(600px, 56vw); height: min(500px, 60vh);
  background-image: url("../assets/etch/typecase.png");
  background-position: left top;
  opacity: .74;
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 10% 16%, #000 30%, rgba(0,0,0,.5) 58%, transparent 82%);
  mask-image: radial-gradient(ellipse 85% 85% at 10% 16%, #000 30%, rgba(0,0,0,.5) 58%, transparent 82%);
}
.page { position: relative; z-index: 10; }

.founder-plate {
  display: grid; grid-template-columns: 132px 1fr; gap: 28px; align-items: center;
}
.founder-shot {
  width: 132px; height: 154px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(11,18,32,.12);
  background: #0B1220;
}
.founder-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.brand-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.brand-row a {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 14px rgba(15,23,42,.06);
}
.brand-row a svg, .brand-row a img { width: 18px; height: 18px; display: block; }
.brand-row .ghl {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--hair); font-weight: 600;
  width: auto; padding: 0 10px; height: 36px;
}

#read-trade { color: var(--hair); }
@media (max-width: 900px) {
  .founder-plate { grid-template-columns: 96px 1fr; }
  .founder-shot { width: 96px; height: 112px; }
  .j-step.j-founder-step .j-plate.founder-plate { grid-template-columns: 104px 1fr; gap: 14px; padding: 14px; }
  .j-step.j-founder-step .founder-shot { width: 104px; height: 124px; }
  .etch-type, .etch-corner { opacity: .55; }
  .etch-hatch { opacity: .52; }
  .paper-grid {
    opacity: .75;
    -webkit-mask-image: radial-gradient(ellipse 100% 58% at 50% 14%, transparent 0 48%, rgba(0,0,0,.35) 68%, #000 92%, transparent 100%);
    mask-image: radial-gradient(ellipse 100% 58% at 50% 14%, transparent 0 48%, rgba(0,0,0,.35) 68%, #000 92%, transparent 100%);
  }
  .miro-flow { grid-template-columns: 1fr; }
  .doors-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

/* 21st fold mount — hero + desk are one React tree */
.fold, #desk {
  padding: 8px 0 36px;
  position: relative;
  z-index: 30;
  overflow: visible;
}
#desk-root {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  position: relative;
  z-index: 30;
  overflow: visible;
}
.desk-shell { display: none; }
.hero { display: none !important; }

@media (max-width: 720px) {
  .fold, #desk { padding: 4px 0 20px; }
  #desk-root { width: min(1180px, calc(100% - 20px)); }
  .nav-wrap { padding-top: 8px; padding-bottom: 8px; }
  .page { padding-top: 72px; }
  .apg-desk .miro-flow { grid-template-columns: 1fr; }
}


/* LINEAR JOURNEY — Neuro-like connected path, Digital Butlers numbers */
.doors { display: none !important; }
.founder-sec { display: none !important; }

.journey {
  padding: 12px 0 80px;
  position: relative;
  z-index: 1;
}
.journey-head {
  margin-bottom: 8px;
}
.journey-head h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.038em;
  color: var(--ink);
  font-weight: 600;
  margin: 8px 0 28px;
  max-width: 18ch;
  line-height: 1.05;
}
.journey-spine {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  position: relative;
  max-width: 1080px;
}
.journey-spine::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 48px;
  left: 28px;
  width: 0;
  border-left: 2px dashed rgba(37,99,235,.55);
  z-index: 0;
  pointer-events: none;
}
.j-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 16px;
  align-items: start;
  padding: 10px 0 28px;
  position: relative;
  z-index: 1;
}
.j-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.j-rail .n {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.06em;
  color: rgba(37,99,235,.55);
  line-height: 1;
}
.j-rail .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #2563EB;
  box-shadow: 0 0 0 5px var(--paper);
  display: block;
  flex-shrink: 0;
}
.j-plate {
  background: #fff;
  border: 1px solid rgba(11,18,32,.12);
  border-radius: 22px;
  padding: 22px 22px 20px;
  box-shadow: 0 18px 44px rgba(15,23,42,.10), 0 1px 0 rgba(255,255,255,.8) inset;
  min-width: 0;
  position: relative;
  z-index: 2;
  overflow: hidden;
}
.j-plate::before {
  content: "";
  position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px;
  background: #2563EB; border-radius: 0 3px 3px 0;
}
.j-kicker {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2563EB;
  font-weight: 500;
  margin: 0 0 8px;
}
.j-plate h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.1;
}
.j-plate > p {
  color: var(--body);
  font-size: 15.5px;
  max-width: 36ch;
  margin: 0;
  line-height: 1.45;
}
.j-search {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid #0B1220;
  border-radius: 999px;
  padding: 8px 16px 8px 14px;
  box-shadow: 0 10px 28px rgba(15,23,42,.07);
}
.j-search span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563EB;
}
.j-search b {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.j-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.j-chips span {
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #2563EB;
  border: 1px solid rgba(37,99,235,.22);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
}
.j-strip {
  display: grid;
  grid-template-columns: minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr) 12px minmax(0,1fr);
  align-items: center;
  gap: 4px;
  margin-top: 16px;
}
.j-strip span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(15,23,42,.05);
}
.j-strip i {
  width: 100%;
  height: 0;
  border-top: 1.5px dashed rgba(37,99,235,.45);
  display: block;
}
.j-doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
.j-door {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  position: relative;
}
.j-door::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: #2563EB;
  border-radius: 0 3px 3px 0;
}
.j-door .mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #2563EB;
  font-weight: 500;
}
.j-door h4 {
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 600;
  margin: 4px 0 6px;
}
.j-door p {
  color: var(--body);
  font-size: 14.5px;
  max-width: 42ch;
  margin: 0;
}
.j-step.j-founder-step .j-plate.founder-plate {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px 22px 18px 18px;
}
.j-step.j-founder-step .founder-shot {
  width: 148px;
  height: 176px;
  border-radius: 18px;
  margin: 0;
  border: 1px solid rgba(37,99,235,.22);
  box-shadow: 0 18px 40px rgba(11,18,32,.12);
}
.j-step.j-founder-step h3 { margin-bottom: 8px; max-width: 16ch; }
.founder-copy p { max-width: 32ch; }
.founder-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid #0B1220;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15,23,42,.08);
}
.founder-cta:hover { border-color: #2563EB; color: #2563EB; }

@media (min-width: 900px) {
  .journey-spine::before {
    left: 50%;
    transform: translateX(-50%);
  }
  .j-step {
    grid-template-columns: 1fr 88px 1fr;
    gap: 0 12px;
    align-items: center;
    padding: 18px 0 32px;
  }
  .j-rail {
    grid-column: 2;
    grid-row: 1;
  }
  .j-rail .n {
    font-size: 56px;
    color: rgba(37,99,235,.48);
  }
  .j-step:nth-child(odd) .j-plate { grid-column: 3; }
  .j-step:nth-child(even) .j-plate { grid-column: 1; }
  .j-step.j-doors-step .j-plate {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 820px;
    margin: 8px auto 0;
    width: 100%;
  }
  .j-step.j-doors-step .j-rail {
    grid-column: 2;
    grid-row: 1;
  }
  .j-doors {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .j-plate { padding: 28px 28px 24px; }
  .j-step.j-founder-step .j-plate.founder-plate {
    grid-template-columns: 160px 1fr;
    gap: 28px;
    padding: 22px 28px 22px 22px;
  }
  .j-step.j-founder-step .founder-shot { width: 160px; height: 192px; }
}

@media (max-width: 899px) {
  .j-rail .n { font-size: 22px; }
}


/* Value stack + belief plate */
.j-belief {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  align-items: center;
}
.j-belief .no,
.j-belief .yes {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  background: var(--paper);
  color: #64748b;
  border: 1px solid var(--line);
  text-decoration: none;
}
.j-belief .no.is-on,
.j-belief .yes.is-on {
  color: #2563EB;
  background: #eff6ff;
  border-color: rgba(37,99,235,.35);
}
.j-belief .no:not(.is-on) { text-decoration: line-through; color: #94a3b8; }

.j-graph {
  margin-top: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 10px;
  position: relative;
  overflow: hidden;
}
.j-plot {
  display: none;
  width: 100%;
  height: 112px;
}
.j-graph[data-view="leads"] .j-plot-leads,
.j-graph[data-view="week"] .j-plot-week { display: block; }
.j-plot .wash { fill: url(#none); fill: rgba(37,99,235,.10); }
.j-plot .line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.j-plot .line-up { stroke: #2563EB; stroke-width: 2.2; }
.j-plot .line-flat { stroke: #94a3b8; stroke-width: 1.8; stroke-dasharray: 4 5; }
.j-plot .bars { fill: #93c5fd; }
.j-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.j-legend i {
  display: inline-block;
  width: 14px;
  height: 2px;
  margin-right: 6px;
  vertical-align: middle;
  background: #2563EB;
}
.j-legend i.flat { background: #94a3b8; }
.j-legend i.bar { height: 8px; width: 8px; background: #93c5fd; border-radius: 2px; }
.j-graph[data-view="leads"] .lg-week,
.j-graph[data-view="week"] .lg-leads { display: none; }
.j-graph-cap {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  display: none;
}
.j-graph[data-view="leads"] .j-cap-leads,
.j-graph[data-view="week"] .j-cap-week { display: block; }
.j-trade-strip { margin-top: 14px; }
.j-trade-copy span { color: var(--ink); font-weight: 600; }
.v-stack {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.v-stack li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}
.v-stack .v-n {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: rgba(37,99,235,.36);
  line-height: 1;
}
.v-stack b {
  display: block;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
  font-weight: 600;
}
.v-stack p {
  font-size: 13.5px;
  color: var(--body);
  margin: 0;
  max-width: none;
}
.v-stack .brand-row { margin-top: 10px; }
.j-close-kicker { margin-top: 22px; }
@media (min-width: 900px) {
  .j-step.j-stack-step .j-plate {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 860px;
    margin: 8px auto 0;
    width: 100%;
  }
  .j-step.j-stack-step .j-rail {
    grid-column: 2;
    grid-row: 1;
  }
  .j-stack-step .j-doors,
  .j-doors-step .j-doors {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.j-chips.is-keep span {
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: -0.015em;
  text-transform: none;
  font-weight: 500;
}


/* Fixed-nav lock — keep logo/hamburger on first paint (mobile + desktop) */
.nav-wrap { position: fixed !important; top: 0; left: 0; right: 0; z-index: 80 !important; }
.page { padding-top: 78px; }
@media (max-width: 720px) {
  .page { padding-top: 72px; }
}
#desk { scroll-margin-top: 88px; }
.nav-bar { position: relative; }

.founder-lite { padding: 28px 20px 48px; }
.founder-lite .founder-plate { margin: 0 auto; }
body.is-week .fold { min-height: 0; padding: 8px 0 0; }
body.is-week #desk { padding: 0; }
body.is-week #desk-root { width: 100%; }
body.is-week .paper-grid,
body.is-week .etch { display: none !important; }
body.is-week .journey-head h2 { max-width: 22ch; }
body.is-week .apg-desk .desk.is-spine { padding: 0 0 24px; max-width: none; }
body.is-week .apg-desk .desk.is-spine .journey { padding-top: 8px; }
