/* =========================================================================
   Doric — design system
   Architectural & calm: warm stone + ink + one imperial-purple accent.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* palette */
  --paper:      #F5F6F8;   /* cool near-white (no beige) */
  --paper-2:    #FBFBFD;
  --paper-3:    #FFFFFF;
  --ink:        #191A1F;   /* cool near-black */
  --ink-soft:   #555863;
  --ink-faint:  #888B95;
  --line:       #E6E7EC;
  --line-soft:  #EEEFF3;
  --accent:     #5046C9;   /* clean violet (logo keeps official #534AB7) */
  --accent-700: #3A3396;
  --accent-soft:#ECEAFB;
  --accent-wash:#F4F3FE;
  --accent-lite:#8B7FE8;
  /* dark product-surface palette (lens panel, CTA) */
  --dark-bg:    #14151B;
  --dark-2:     #191A22;
  --dark-line:  #262834;
  --dark-ink:   #F2F2F5;
  --dark-soft:  #9A9CA8;
  --good:       #4F7A55;
  --warn:       #B5882F;
  --bad:        #A8493E;

  /* type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* shape */
  --r-card: 12px;
  --r-ctl:  8px;
  --shadow-sm: 0 1px 2px rgba(31,27,22,.05);
  --shadow-md: 0 6px 18px rgba(31,27,22,.07);
  --shadow-lg: 0 12px 32px rgba(31,27,22,.12);

  --maxw: 1120px;
  --readw: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* gentle page entry — staggered hero */
@media (prefers-reduced-motion: no-preference) {
  body { animation: pageIn .45s ease both; }
  .hero .wrap > * { animation: heroRise .9s cubic-bezier(.16,1,.3,1) both; }
  .hero .wrap > *:nth-child(1) { animation-delay: .05s; }
  .hero .wrap > *:nth-child(2) { animation-delay: .16s; }
  .hero .wrap > *:nth-child(3) { animation-delay: .27s; }
  .hero .wrap > *:nth-child(4) { animation-delay: .38s; }
  .hero .wrap > *:nth-child(5) { animation-delay: .50s; }
  .hero .wrap > *:nth-child(6) { animation-delay: .60s; }
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- typography ---- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1.1em; color: var(--ink-soft); }
a  { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-700); }
strong { color: var(--ink); font-weight: 600; }
.serif { font-family: var(--display); }

.mono, .eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow { display: inline-block; margin-bottom: 1rem; }

.lead { font-size: 1.22rem; line-height: 1.6; color: var(--ink-soft); }

/* ---- layout ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.center { text-align: center; }
.muted { color: var(--ink-faint); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--body); font-size: .95rem; font-weight: 500;
  padding: .72em 1.3em; border-radius: var(--r-ctl);
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-700); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }
.btn-lg { padding: .9em 1.6em; font-size: 1.02rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245,246,248,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand .glyph { width: 21px; height: 27px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-soft); font-size: .94rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff; }
.nav-links a.nav-mini { font-size: .84rem; color: var(--accent); }
.nav-links a.nav-mini:hover { color: var(--accent-700); }
.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .2s; }

/* ---- hero ---- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero .eyebrow { margin-top: 15pt; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin-bottom: .25em; }
.hero .dot { color: var(--accent); }
.hero .triad { font-family: var(--display); font-size: clamp(1.3rem,2.6vw,1.8rem); color: var(--ink-soft); font-style: italic; margin: 0 0 1.4em; }
.hero .lead { max-width: 640px; margin: 0 auto 2em; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.4em; font-size: .85rem; color: var(--ink-faint); }

/* ---- map figure (signature visual) ---- */
.figure { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); overflow: hidden; }
.figure-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper-3); }
.figure-bar .dots { display: flex; gap: 6px; }
.figure-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.figure-bar .tab { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); margin-left: 6px; }
.figure-body { padding: 0; line-height: 0; }
.figure-body svg { display: block; width: 100%; height: auto; }

/* ---- interactive lens surface (light) ---- */
.lens-surface { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.lens-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 15px 22px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.lens-crumb { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); display: flex; align-items: center; gap: 9px; }
.lens-crumb .live { width: 8px; height: 8px; border-radius: 50%; background: #3FBF7F; display: inline-block; }
.lens-tabs { display: flex; gap: 3px; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 4px; flex-wrap: wrap; }
.lens-tab { font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--ink-soft); padding: 6px 13px; border-radius: 6px; border: 0; background: none; cursor: pointer; transition: .15s; }
.lens-tab:hover { color: var(--ink); }
.lens-tab.active { background: var(--accent); color: #fff; }
.lens-body { padding: 18px 22px; }
.lens-panel { display: none; }
.lens-panel.active { display: block; animation: lensfade .25s ease; }
@keyframes lensfade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.lens-panel svg { display: block; width: 100%; height: auto; }
.lens-rows { display: flex; flex-direction: column; gap: 9px; }
.lens-row { display: flex; gap: 16px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; }
.lens-pill { font-family: var(--mono); font-size: .66rem; letter-spacing: .05em; font-weight: 600; padding: 7px 11px; border-radius: 6px; min-width: 118px; text-align: center; white-space: nowrap; }
.lens-pill.blue  { color: #2D6FD6; background: #EAF1FD; border: 1px solid #CBDDF8; }
.lens-pill.amber { color: #B5731F; background: #FBF1E2; border: 1px solid #F0DCBE; }
.lens-pill.violet{ color: #5046C9; background: #ECEAFB; border: 1px solid #D6D0F4; }
.lens-pill.green { color: #2C8C63; background: #E6F5EE; border: 1px solid #C5E8D6; }
.lens-row h4 { font-family: var(--body); font-size: .98rem; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.lens-row p { font-size: .86rem; color: var(--ink-soft); margin: 0; }
.lens-foot { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); margin-top: 16px; }
@media (max-width: 600px) { .lens-row { flex-direction: column; align-items: flex-start; gap: 8px; } .lens-pill { min-width: 0; } }

/* ---- logo strip ---- */
.strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip p { text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 18px; }
.strip-row { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; align-items: center; opacity: .7; }
.strip-row span { font-family: var(--display); font-size: 1.15rem; color: var(--ink-soft); }

/* ---- generic grid ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 28px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card .num { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 500; }
.card h3 { margin: 12px 0 8px; font-size: 1.18rem; }
.card p { font-size: .96rem; margin: 0; }
.card .why { margin-top: 12px; font-size: .86rem; color: var(--ink-faint); font-style: italic; }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-text h2 { margin-bottom: .35em; }

/* problem band */
.band { background: var(--ink); color: #EFE9DF; }
.band h2, .band h3 { color: #FBF9F5; }
.band p { color: #C9C1B3; }
.band .eyebrow { color: #AFA9EC; }
.band .card { background: #2A251F; border-color: #3A332B; }
.band .card:hover { border-color: #4a4236; }
.band .card h3 { color: #FBF9F5; }
.band .card p { color: #C9C1B3; }

/* quote */
.pull { font-family: var(--display); font-size: clamp(1.6rem,3.2vw,2.3rem); line-height: 1.3; color: var(--ink); max-width: 860px; margin: 0 auto; text-align: center; font-weight: 400; }
.pull .accent { color: var(--accent); }

/* audience ladder */
.ladder { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.ladder > div { padding: 32px; background: var(--paper-2); border-right: 1px solid var(--line); }
.ladder > div:last-child { border-right: 0; }
.ladder .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ladder h3 { margin: 10px 0; font-size: 1.15rem; }
.ladder p { font-size: .95rem; margin: 0; }

/* agent cards */
.agents { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.agent { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 28px; }
.agent .mark { width: 40px; height: 46px; margin-bottom: 14px; }
.agent .role { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.agent h3 { margin: 4px 0 8px; }
.agent p { font-size: .95rem; margin: 0; }

/* CTA band — light accent panel */
.cta-band { background: var(--accent-wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink-soft); max-width: 560px; margin: 0 auto 1.8em; }
.cta-band .eyebrow { color: var(--accent); }
.cta-band .btn-ghost { color: var(--ink); border-color: var(--line); }
.cta-band .btn-ghost:hover { border-color: var(--ink-soft); color: var(--ink); }

/* footer */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: var(--ink-soft); font-size: .92rem; }
.footer a:hover { color: var(--ink); }
.footer .brand { margin-bottom: 12px; }
.footer .tag { font-size: .9rem; color: var(--ink-faint); max-width: 260px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .82rem; color: var(--ink-faint); flex-wrap: wrap; gap: 10px; }

/* ---- page header (interior pages) ---- */
.page-head { padding: 80px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(2.2rem,4.5vw,3.4rem); }
.page-head .lead { max-width: 620px; margin: .4em auto 0; }

/* ---- step rows (how it works) ---- */
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.step.rev .step-media { order: 2; }
.step .step-no { font-family: var(--mono); color: var(--accent); font-size: .82rem; letter-spacing: .1em; }
.step h2 { font-size: 1.9rem; margin: 8px 0 .4em; }
.step ul { padding-left: 0; list-style: none; margin: 1em 0 0; }
.step li { padding-left: 24px; position: relative; margin-bottom: .6em; color: var(--ink-soft); font-size: .98rem; }
.step li::before { content: ''; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border: 1.5px solid var(--accent); border-radius: 2px; }

/* technical list */
.tlist { display: grid; grid-template-columns: repeat(2,1fr); gap: 0 48px; }
.tlist .item { padding: 22px 0; border-top: 1px solid var(--line); }
.tlist .item .dood { display: block; width: 54px; height: 40px; margin-bottom: 10px; }
.tlist .item .n { font-family: var(--mono); color: var(--accent); font-size: .8rem; }
.tlist .item h4 { margin: 6px 0 6px; font-size: 1.08rem; }
.tlist .item p { font-size: .92rem; margin: 0; }
.tlist .item .why { font-size: .84rem; color: var(--ink-faint); font-style: italic; margin-top: 6px; }

/* ---- blog ---- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-card .post-doodle { background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: 9px; height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.post-card .post-doodle svg { height: 66px; width: auto; display: block; }
.post-card .tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.post-card h3 { margin: 12px 0 8px; font-size: 1.22rem; line-height: 1.2; }
.post-card p { font-size: .93rem; margin: 0 0 16px; }
.post-card .meta { margin-top: auto; font-size: .82rem; color: var(--ink-faint); font-family: var(--mono); }

/* article */
.article { max-width: var(--readw); margin: 0 auto; padding: 0 28px; }
.article .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.article h1 { font-size: clamp(2rem,4.4vw,3rem); margin: 14px 0 .3em; }
.article .byline { font-family: var(--mono); font-size: .82rem; color: var(--ink-faint); margin-bottom: 40px; }
.article h2 { font-size: 1.6rem; margin: 1.6em 0 .5em; }
.article h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.article p, .article li { font-size: 1.08rem; line-height: 1.75; color: #38322B; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: .5em; }
.article blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-family: var(--display); font-size: 1.3rem; font-style: italic; color: var(--ink); }
.article code { font-family: var(--mono); font-size: .88em; background: var(--accent-wash); color: var(--accent-700); padding: 2px 6px; border-radius: 5px; }
.article pre { background: var(--ink); color: #EDE7DC; padding: 20px; border-radius: var(--r-card); overflow-x: auto; font-family: var(--mono); font-size: .86rem; line-height: 1.6; }
.article pre code { background: none; color: inherit; padding: 0; }
.article .callout { background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: var(--r-card); padding: 20px 24px; margin: 1.6em 0; }
.article .callout p { margin: 0; color: var(--accent-700); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* laws box (manifesto) */
.laws-box { background: var(--accent-wash); border: 1px solid var(--accent-soft); border-radius: var(--r-card); padding: 30px 34px; margin: 2.2em 0; }
.laws-box h3 { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.laws-box ol { margin: 0; padding-left: 22px; }
.laws-box li { margin-bottom: 11px; color: #38322B; font-size: 1.02rem; line-height: 1.55; }
.laws-box li:last-child { margin-bottom: 0; }
.laws-box li strong { color: var(--ink); }

/* capability carousel */
.carousel-wrap { position: relative; }
.carousel-nav { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 18px; }
.carousel-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink); transition: .18s; }
.carousel-nav button:hover { border-color: var(--accent); color: var(--accent); }
.carousel { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 18px; scroll-behavior: smooth; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.carousel .card { scroll-snap-align: start; flex: 0 0 300px; max-width: 300px; }
.carousel .card .ic { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; display: block; }
@media (max-width: 520px) { .carousel .card { flex: 0 0 80%; } }

/* compounding-memory roller */
.roller { position: relative; min-height: 248px; }
.roll-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 6px 10px; pointer-events: none; }
.roll-slide.active { opacity: 1; pointer-events: auto; }
.roll-slide .roll-img { width: 150px; height: 110px; margin-bottom: 14px; }
.roll-slide h3 { font-size: 1.18rem; margin: 0 0 6px; }
.roll-slide p { font-size: .96rem; color: var(--ink-soft); margin: 0; max-width: 330px; }
.roll-dots { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); display: flex; gap: 8px; }
.roll-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background .2s; }
.roll-dots span.active { background: var(--accent); }
@media (prefers-reduced-motion: reduce) { .roll-slide { transition: none; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* blueprint "forming live" animation + motion accents */
.bp-chip { display: inline-block; background: #fff; border: 1px solid var(--accent); color: var(--ink); font-size: .92rem; font-weight: 600; padding: 8px 14px; border-radius: 8px; }
.bp-row { display: flex; align-items: center; gap: 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 9px; padding: 12px 14px; }
.bp-a, .bp-b, .bp-c, .bp-d, .bp-e, .bp-f { opacity: 0; }
.bp-a { animation: bpA 9s ease-in-out infinite; }
.bp-b { animation: bpB 9s ease-in-out infinite; }
.bp-c { animation: bpC 9s ease-in-out infinite; }
.bp-d { animation: bpD 9s ease-in-out infinite; }
.bp-e { animation: bpE 9s ease-in-out infinite; }
.bp-f { animation: bpF 9s ease-in-out infinite; }
@keyframes bpA { 0%,2%{opacity:0;transform:translateY(6px)} 6%,93%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes bpB { 0%,12%{opacity:0;transform:translateY(6px)} 17%,93%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes bpC { 0%,20%{opacity:0;transform:translateY(6px)} 25%,93%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes bpD { 0%,28%{opacity:0;transform:translateY(6px)} 33%,93%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes bpE { 0%,54%{opacity:0;transform:translateY(6px)} 59%,93%{opacity:1;transform:none} 100%{opacity:0} }
@keyframes bpF { 0%,66%{opacity:0;transform:scale(.96)} 71%,80%{opacity:1;transform:scale(1)} 85%{transform:scale(1.05)} 89%,93%{opacity:1;transform:scale(1)} 100%{opacity:0} }
/* blueprint live flowchart */
.bp-flow { display:block; width:100%; height:auto; max-width:460px; margin:2px auto 0; }
.fl-n1,.fl-n2,.fl-n3,.fl-n4 { opacity:0; }
.fl-e1,.fl-e2,.fl-e3 { stroke-dasharray:1; stroke-dashoffset:1; }
.fl-n1{ animation:flN1 9s ease-in-out infinite; }
.fl-n2{ animation:flN2 9s ease-in-out infinite; }
.fl-n3{ animation:flN3 9s ease-in-out infinite; }
.fl-n4{ animation:flN4 9s ease-in-out infinite; }
.fl-e1{ animation:flE1 9s ease-in-out infinite; }
.fl-e2{ animation:flE2 9s ease-in-out infinite; }
.fl-e3{ animation:flE3 9s ease-in-out infinite; }
@keyframes flN1 { 0%,4%{opacity:0} 8%,93%{opacity:1} 100%{opacity:0} }
@keyframes flN2 { 0%,19%{opacity:0} 23%,93%{opacity:1} 100%{opacity:0} }
@keyframes flN3 { 0%,34%{opacity:0} 38%,93%{opacity:1} 100%{opacity:0} }
@keyframes flN4 { 0%,49%{opacity:0} 53%,93%{opacity:1} 100%{opacity:0} }
@keyframes flE1 { 0%,11%{stroke-dashoffset:1;opacity:1} 17%,93%{stroke-dashoffset:0;opacity:1} 100%{opacity:0} }
@keyframes flE2 { 0%,26%{stroke-dashoffset:1;opacity:1} 32%,93%{stroke-dashoffset:0;opacity:1} 100%{opacity:0} }
@keyframes flE3 { 0%,41%{stroke-dashoffset:1;opacity:1} 47%,93%{stroke-dashoffset:0;opacity:1} 100%{opacity:0} }
/* flowing connector lines */
.flow line, .flow path { stroke-dasharray: 6 7; animation: flowDash 1s linear infinite; }
@keyframes flowDash { to { stroke-dashoffset: -13; } }
.lens-crumb .live { animation: livePulse 2.2s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.82)} }
.thr { animation: thrPulse 3s ease-in-out infinite; }
.thr2 { animation-delay: -1s; }
.thr3 { animation-delay: -2s; }
@keyframes thrPulse { 0%,100%{opacity:.4} 50%{opacity:1} }
@media (prefers-reduced-motion: reduce) {
  .bp-a,.bp-b,.bp-c,.bp-d,.bp-e,.bp-f,.fl-n1,.fl-n2,.fl-n3,.fl-n4 { opacity: 1 !important; animation: none !important; transform: none !important; }
  .fl-e1,.fl-e2,.fl-e3 { stroke-dashoffset: 0 !important; animation: none !important; }
  .lens-crumb .live, .thr, .thr2, .thr3, .flow line, .flow path { animation: none !important; opacity: 1 !important; }
}

/* ---- index "deck": one theme per screen (desktop) ---- */
@media (min-width: 860px) {
  html.deck-snap { scroll-snap-type: y mandatory; }
  body.deck > header,
  body.deck > .wrap,
  body.deck > section:not(.cta-band):not(.steps-wrap) {
    min-height: 100vh;
    padding-top: 66px;
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
  }
  body.deck > section.cta-band { scroll-snap-align: start; }
  body.deck > .steps-wrap { min-height: 0; padding: 0; display: block; }
  body.deck .step { min-height: 100vh; align-content: center; border-top: 0; padding-top: 66px; padding-bottom: 18px; scroll-snap-align: start; }
}

/* deck affordances: pagination dots + next cue (desktop only) */
.deck-dots { position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.deck-dots button { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink-faint); background: transparent; cursor: pointer; padding: 0; transition: background .2s, border-color .2s, transform .2s; }
.deck-dots button:hover { border-color: var(--accent); }
.deck-dots button.active { background: var(--accent); border-color: var(--accent); transform: scale(1.3); }
.deck-next { position: fixed; bottom: 26px; left: 50%; z-index: 90; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.85); backdrop-filter: blur(6px); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .3s, border-color .2s, color .2s; animation: deckBounce 2.4s ease-in-out infinite; }
.deck-next:hover { border-color: var(--accent); color: var(--accent); }
.deck-next.is-hidden { opacity: 0; pointer-events: none; }
@keyframes deckBounce { 0%,100%{ transform: translateX(-50%) translateY(0); } 50%{ transform: translateX(-50%) translateY(5px); } }
@media (max-width: 859px) { .deck-dots, .deck-next { display: none; } }
@media (prefers-reduced-motion: reduce) { .deck-next { animation: none; transform: translateX(-50%); } }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 16px 28px; gap: 14px; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; margin-left: auto; }
  .grid-3, .grid-4, .agents, .posts, .ladder { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .ladder > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .ladder > div:last-child { border-bottom: 0; }
  .split, .step { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-media, .step.rev .step-media { order: 0; }
  .tlist { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
