/* Branches: one stylesheet for every page.
   Layout: one idea per section, left-aligned. Sections are flat blocks of the
   supplied palette (paper, Dawn Mist, Pine, Moss, Cedar), opened by a full-bleed
   photo in the same colors. No gradients except the photo's legibility scrim. */

:root {
  /* Palette (supplied): Pine Shade, Moss Whisper, Cedar Wood, Sunlit Timber,
     Stone Path, Dawn Mist. */
  --pine: #232b22;
  --moss: #5c664a;
  --cedar: #6e4a33;
  --timber: #b27a3d;
  --stone: #a69c92;
  --dawn: #e7e0d0;
  --logo-green: #546032; /* the supplied logo color */

  --paper: #f4f1ea;
  --surface: #faf8f3;
  --ink: var(--pine);
  --ink-2: #464c41;
  --muted: #6d685f;
  --line: #ddd6c8;
  --line-strong: #c9c0af;
  --moss-deep: #4a533b;
  --moss-wash: #e6e6d8;
  --timber-wash: #f3e6d1;
  --on-dark: #f4f1ea;
  --on-dark-muted: #b9b8a8;

  --font-display: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(20px, 5vw, 56px);
  --measure: 1160px;
  --block: clamp(72px, 10vw, 136px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }
::selection { background: var(--moss-wash); color: var(--ink); }
:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); font-weight: 500; text-wrap: balance; }
.title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; }
.statement { font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 21ch; }
.statement-sm { font-family: var(--font-display); font-size: clamp(1.6rem, 3.1vw, 2.5rem); line-height: 1.14; letter-spacing: -0.025em; max-width: 28ch; }
.h3 { font-size: 1.35rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.verse { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; line-height: 1.5; }
.caption { font-size: 0.82rem; color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.9em; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--measure), 100% - 2 * var(--gutter)); margin-inline: auto; }
.block { padding-block: var(--block); border-top: 1px solid var(--line); }
.block-tight { padding-block: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); }
.stack { display: grid; gap: 20px; align-content: start; }
.stack-lg { display: grid; gap: 32px; align-content: start; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.two > * { min-width: 0; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); }
.cols > * { min-width: 0; padding-top: 22px; border-top: 1px solid var(--line-strong); display: grid; gap: 8px; align-content: start; }
.cols h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.cols p { font-size: 0.98rem; }
.rows { display: grid; margin: 0; }
.rows > * { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 8px 32px; padding-block: 22px; border-top: 1px solid var(--line); }
.rows > *:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-size: 0.9rem; font-weight: 600; color: var(--muted); padding-top: 6px; }
.rows dd { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Tones: flat palette sections ---------- */
.tone { background: var(--tone-bg); color: var(--ink-2); border-top: 0; }
.tone-dawn { --tone-bg: var(--dawn); --ink: #232b22; --ink-2: #3a4036; --muted: #5f594f; --line: rgba(35, 43, 34, 0.14); --line-strong: rgba(35, 43, 34, 0.26); }
.tone-pine { --tone-bg: var(--pine); --ink: #f4f1ea; --ink-2: #d9d3c5; --muted: #a69c92; --line: rgba(231, 224, 208, 0.14); --line-strong: rgba(231, 224, 208, 0.26); }
.tone-moss { --tone-bg: var(--moss); --ink: #f7f4ec; --ink-2: #ece7dc; --muted: #e2dccf; --line: rgba(244, 241, 234, 0.2); --line-strong: rgba(244, 241, 234, 0.34); }
.tone-cedar { --tone-bg: var(--cedar); --ink: #f7f2e8; --ink-2: #eadfcd; --muted: #e4bd8a; --line: rgba(244, 241, 234, 0.2); --line-strong: rgba(244, 241, 234, 0.32); }
.tone + .block, .tone + .block-tight, .tone + .closing, .block + .tone, .hero-photo + .block { border-top: 0; }

/* ---------- Buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--ink); color: var(--tone-bg, var(--paper)); }
.btn-primary:hover { opacity: 0.86; }
.btn-accent { background: var(--timber); color: #161b15; }
.btn-accent:hover { background: #c38a4a; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 5px; }
.link:hover { text-decoration-color: var(--ink); }
.link svg { width: 16px; height: 16px; }
[data-icon] { display: inline-grid; place-items: center; }
[data-icon] > svg { display: block; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--paper); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -0.035em; }
.brand img { display: block; height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; text-decoration: none; font-size: 0.95rem; color: var(--ink-2); border-radius: 999px; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--moss); text-underline-offset: 6px; }
.nav-links .nav-cta { margin-left: 12px; gap: 6px; padding: 0 16px 0 18px; background: var(--ink); color: var(--paper); font-weight: 600; }
.nav-links .nav-cta:hover { background: var(--moss-deep); color: var(--paper); }
.nav-links .nav-cta svg { width: 15px; height: 15px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; place-items: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px 36px; }
.site-footer .brand img { height: 30px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-tag { max-width: 28em; margin-top: 14px; color: var(--muted); font-size: 0.95rem; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.footer-bottom a { color: var(--ink-2); }
.socials { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; }
.social { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 500; }
.social:hover { text-decoration: underline; text-underline-offset: 4px; }
.social svg { width: 18px; height: 18px; }

/* ---------- Mark and plants ---------- */
.plant .p-line { fill: none; stroke: var(--plant, var(--moss)); stroke-linecap: round; stroke-linejoin: round; }
.plant .p-flower { fill: var(--plant, var(--moss)); }
.plant .p-flower.hollow { fill: none; stroke: var(--plant, var(--moss)); stroke-width: 1; }
.grow .p-line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw var(--dur, 1s) var(--d, 0s) var(--ease) forwards; }
.grow .p-flower { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: bloom 0.6s var(--d, 0s) var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes bloom { to { transform: scale(1); } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 10s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-0.7deg); } to { transform: rotate(0.8deg); } }

/* ---------- Home ---------- */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; background: var(--pine); --ink: #f4f1ea; --ink-2: #ddd6c8; --line-strong: rgba(231, 224, 208, 0.4); min-height: clamp(560px, 84vh, 880px); display: grid; align-items: end; }
.hero-photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(35, 43, 34, 0.9) 0%, rgba(35, 43, 34, 0.6) 42%, rgba(35, 43, 34, 0) 72%), linear-gradient(0deg, rgba(35, 43, 34, 0.75) 0%, rgba(35, 43, 34, 0) 45%); }
.hero-inner { display: grid; gap: 26px; padding-block: clamp(140px, 18vw, 220px) clamp(56px, 8vw, 104px); }
.hero-logo { margin: 0; line-height: 0; }
.hero-logo img { display: block; width: clamp(260px, 52vw, 640px); height: auto; }
.hero-photo .label { color: #d9a868; }
.tagline { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; letter-spacing: -0.025em; color: var(--ink); max-width: 18ch; }
.hero-sub { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 30em; }

.verse-block { display: grid; gap: clamp(28px, 4vw, 44px); }
.verse-block .verse { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; }
.verse-block .statement-sm { color: var(--ink-2); }

.growth { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--timber); margin-top: 16px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { border-radius: 16px; padding: clamp(22px, 3vw, 32px); min-height: clamp(180px, 20vw, 250px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.tile h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); letter-spacing: -0.035em; line-height: 1; color: inherit; }
.tile p { font-size: 1.05rem; font-weight: 500; }
.tile-timber { background: var(--timber); color: #161b15; }
.tile-moss { background: var(--moss); color: #f7f4ec; }
.tile-cedar { background: var(--cedar); color: #f7f2e8; }

.offset { margin-left: calc(5 / 12 * 100%); }

.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.modules li { font-family: var(--font-mono); font-size: 0.95rem; color: var(--ink); padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.license { display: inline-flex; gap: 10px; align-items: baseline; font-size: 0.9rem; color: var(--muted); }
.license b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }

.closing { padding-block: clamp(56px, 7vw, 88px) clamp(96px, 12vw, 160px); text-align: center; }
.meadow { width: min(980px, 100%); margin: 0 auto; aspect-ratio: 1100 / 430; }
.meadow > svg { width: 100%; height: 100%; overflow: visible; }
.meadow .side { --plant: var(--stone); }
.closing .verse { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.1; margin-top: 12px; }
.closing .label { display: block; margin-top: 18px; }
.closing .actions { justify-content: center; margin-top: 40px; }

/* ---------- Barnabas walkthrough ---------- */
.agent { --ink: #232b22; --ink-2: #464c41; --muted: #6d685f; --line: #ddd6c8; --line-strong: #c9c0af; color: var(--ink-2); margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); padding: 12px; }
.agent-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 14px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.agent-id { display: flex; align-items: center; gap: 12px; }
.agent-id .avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.agent-id .avatar img { width: 22px; height: auto; }
.agent-id strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--moss); animation: pulse 1.4s infinite; }
.status[data-state="paused"] { background: var(--timber-wash); border-color: #e4cfae; color: var(--cedar); }
.status[data-state="paused"] .dot { background: var(--timber); }
.status[data-state="approved"] .dot { animation: none; background: var(--moss-deep); }
@keyframes pulse { 50% { opacity: 0.3; } }
.models { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.models .label { margin-right: 6px; font-size: 0.68rem; }
.models button { border: 1px solid transparent; background: transparent; border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.models button[aria-pressed="true"] { border-color: var(--line-strong); color: var(--ink); }
.agent-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 0.95fr); gap: 12px; }
.agent-body > * { min-width: 0; }
.steps { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; align-content: start; }
.steps li { position: relative; }
.steps button { width: 100%; text-align: left; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 10px 6px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; }
.steps button:hover { background: var(--paper); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 18.5px; top: 38px; bottom: -8px; width: 1px; background: var(--line-strong); }
.steps li.done:not(:last-child)::after { background: var(--moss); }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: transparent; position: relative; z-index: 1; transition: background-color 0.3s, border-color 0.3s; }
.step-dot svg { width: 13px; height: 13px; stroke-width: 3; }
.steps li.done .step-dot { background: var(--moss-deep); border-color: var(--moss-deep); color: var(--on-dark); }
.steps li.active .step-dot { border-color: var(--moss); box-shadow: 0 0 0 4px var(--moss-wash); }
.step-txt strong { display: block; font-weight: 600; font-size: 0.97rem; color: var(--ink); line-height: 1.3; }
.step-txt span { display: block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); margin-top: 3px; }
.steps li.pending .step-txt strong { color: var(--muted); font-weight: 500; }
.stage { border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; padding: 20px; display: grid; grid-template-rows: auto 1fr auto; min-height: 420px; }
.stage-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.stage-head span:last-child { font-size: 0.8rem; color: var(--muted); }
.stage-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; margin-top: 18px; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }
.panel { display: grid; gap: 16px; align-content: start; animation: panel-in 0.4s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel .quote { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.2; color: var(--ink); }
.kv { border: 1px solid var(--line); border-radius: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; font-size: 0.92rem; }
.kv div + div { border-top: 1px solid var(--line); }
.kv .k { color: var(--muted); }
.kv .v { color: var(--ink); font-weight: 600; text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; }
.tag-dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.share-list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink); }
.share-list li.no { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.share-list .b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--moss-wash); color: var(--moss-deep); flex: none; }
.share-list li.no .b { background: var(--paper); color: var(--muted); }
.share-list .b svg { width: 11px; height: 11px; stroke-width: 3; }
.match { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.match.best { border-color: var(--moss); background: var(--moss-wash); }
.match.dim { color: var(--muted); }
.match strong { display: block; font-weight: 600; font-size: 0.97rem; }
.match div > span { font-size: 0.82rem; color: var(--muted); }
.handoff-title { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; color: var(--ink); letter-spacing: -0.02em; }
.handoff-body { background: var(--paper); border-radius: 10px; padding: 14px 16px; color: var(--ink-2); font-size: 0.97rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--ink); }
.checks .tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--moss-deep); color: var(--on-dark); flex: none; }
.checks .tick svg { width: 11px; height: 11px; stroke-width: 3; }
.panel.play .checks li { animation: pop-in 0.35s var(--ease) both; }
.panel.play .checks li:nth-child(2) { animation-delay: 0.12s; } .panel.play .checks li:nth-child(3) { animation-delay: 0.24s; }
.panel.play .checks li:nth-child(4) { animation-delay: 0.36s; } .panel.play .checks li:nth-child(5) { animation-delay: 0.48s; }
.panel.play .checks li:nth-child(6) { animation-delay: 0.6s; } .panel.play .checks li:nth-child(7) { animation-delay: 0.72s; }
.panel.play .checks li:nth-child(8) { animation-delay: 0.84s; }
@keyframes pop-in { from { opacity: 0; } to { opacity: 1; } }
.result { padding: 14px 16px; border-radius: 10px; background: var(--moss-wash); color: var(--ink); }
.result strong { display: block; font-weight: 600; }
.result span { font-size: 0.88rem; color: var(--ink-2); }
.result.dark { background: var(--ink); color: var(--on-dark); }
.result.dark strong { color: var(--on-dark); }
.result.dark span { color: var(--on-dark-muted); }
[data-sub="wait"] [data-when="done"], [data-sub="done"] [data-when="wait"] { display: none; }
.approver { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.approver .av { width: 38px; height: 38px; border-radius: 50%; background: var(--moss); color: var(--on-dark); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; flex: none; }
.approver div { flex: 1; min-width: 150px; }
.approver strong { display: block; color: var(--ink); font-weight: 600; }
.approver div > span { font-size: 0.85rem; color: var(--muted); }
.approve-btn { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 0.92rem; flex: none; }
.approve-btn:disabled { background: var(--moss-deep); cursor: default; }
.approve-btn svg { width: 15px; height: 15px; stroke-width: 3; }
.approve-btn.wait { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: 0 0 0 6px var(--moss-wash); } }
.trace { background: var(--pine); color: #d9d9cb; border-radius: var(--radius); padding: 18px 20px; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.55; display: grid; grid-template-rows: auto 1fr; min-height: 420px; }
.trace-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid rgba(244, 241, 234, 0.1); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: #9c9a8a; }
.trace-head .model { color: #d9a868; letter-spacing: 0.04em; text-transform: none; }
.trace ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; }
.trace li { display: grid; gap: 2px; overflow-wrap: anywhere; }
.trace .call { color: var(--on-dark); }
.trace .call::before { content: "› "; color: #8c8a7a; }
.trace .ret { color: #aaa898; padding-left: 14px; }
.trace .ret.warn { color: #d9a868; }
.trace .typing { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; animation: type var(--t, 0.6s) steps(var(--n, 20)) forwards; }
@keyframes type { to { max-width: calc(var(--n, 20) * 1ch + 1ch); } }
.trace .cursor { display: inline-block; width: 0.6em; height: 1.05em; background: #d9d9cb; vertical-align: -0.18em; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.agent-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 8px 4px; }
.play-btn { border: 0; background: none; padding: 0; font-size: 0.88rem; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; }

/* ---------- Journeys (Partners) ---------- */
.journeys { margin-top: clamp(40px, 6vw, 64px); border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface); padding: clamp(16px, 3vw, 30px); }
.j-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.j-head h3 { font-size: 1.4rem; letter-spacing: -0.025em; }
.j-head h3 small { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.j-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.15fr) 280px 120px; gap: 16px; align-items: center; padding: 14px 10px; border-radius: 12px; transition: background-color 0.5s; }
.j-row + .j-row { border-top: 1px solid var(--line); }
.j-row.j-labels { padding-block: 0 10px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.j-row.j-labels .stages { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; letter-spacing: 0.02em; text-transform: none; font-size: 0.74rem; }
.j-row.j-labels > :last-child { text-align: right; }
.j-resp strong { display: block; font-weight: 600; color: var(--ink); }
.j-resp small { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.j-branch { font-weight: 500; color: var(--ink); min-width: 0; }
.j-track { display: grid; grid-template-columns: repeat(4, 1fr); }
.j-track i { position: relative; height: 20px; display: grid; place-items: center; }
.j-track i::before { content: ""; position: absolute; top: 50%; right: 50%; width: 100%; height: 1.5px; background: var(--line-strong); transform: translateY(-50%); }
.j-track i:first-child::before { display: none; }
.j-track i b { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--line); display: grid; place-items: center; color: var(--on-dark); }
.j-track i b svg { width: 9px; height: 9px; stroke-width: 3.5; opacity: 0; }
.j-track i.on b { background: var(--moss-deep); }
.j-track i.on b svg { opacity: 1; }
.j-track i.on::before { background: var(--moss-deep); }
.j-status { text-align: right; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.j-row.waiting { background: var(--timber-wash); }
.j-row.waiting small, .j-row.waiting .j-status { color: var(--cedar); }
.j-row.rerouted .j-branch { text-decoration: line-through; color: var(--muted); }
.j-reroute { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.j-reroute > div { overflow: hidden; }
.j-reroute.open { grid-template-rows: 1fr; }
.j-reroute-inner { margin: 6px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--moss); }
.j-reroute-inner div { flex: 1; min-width: 180px; }
.j-reroute-inner strong { display: block; font-weight: 600; color: var(--ink); }
.j-reroute-inner div > span { font-size: 0.88rem; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 112px) clamp(48px, 7vw, 88px); }
.page-hero .wrap { display: grid; gap: 24px; }
.page-hero .title { max-width: 16ch; }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -0.025em; line-height: 1.15; margin-top: 2em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose strong { color: var(--ink); }
.big-verse { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; max-width: 26ch; margin: 0; }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered li::before { content: counter(n, decimal-leading-zero); font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); padding-top: 4px; grid-row: span 2; }
.numbered h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); text-decoration: none; }
.contact-list li:last-child a { border-bottom: 1px solid var(--line); }
.contact-list strong { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -0.02em; color: var(--ink); }
.contact-list span:not([data-icon]) { grid-column: 1; color: var(--muted); font-size: 0.97rem; }
.contact-list [data-icon] { grid-row: 1 / span 2; grid-column: 2; color: var(--ink); }
.contact-list [data-icon] svg { width: 20px; height: 20px; transition: transform 0.2s var(--ease); }
.contact-list a:hover [data-icon] svg { transform: translate(2px, -2px); }
.email-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.email-line .addr { font-family: var(--font-display); font-size: clamp(1.6rem, 4.4vw, 3rem); font-weight: 500; letter-spacing: -0.03em; color: var(--ink); word-break: break-all; user-select: all; }

/* Docs */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.docs > * { min-width: 0; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); display: grid; gap: 2px; font-size: 0.92rem; }
.toc .label { margin-bottom: 10px; }
.toc a { text-decoration: none; color: var(--muted); padding: 5px 0 5px 12px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--ink); }
.doc-section { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.doc-section:last-child { border-bottom: 0; }
.doc-section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.doc-section > p { max-width: 66ch; }
.doc-section > * + * { margin-top: 18px; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line-strong); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 13px 16px 13px 0; vertical-align: top; }
th { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td { border-top: 1px solid var(--line); }
code { font-family: var(--font-mono); font-size: 0.86em; background: var(--dawn); padding: 1px 6px; border-radius: 5px; color: var(--ink); white-space: nowrap; }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.glossary div { padding-block: 16px; border-top: 1px solid var(--line); }
.glossary dt { font-family: var(--font-mono); font-size: 0.92rem; color: var(--ink); }
.glossary dd { margin: 6px 0 0; font-size: 0.95rem; }
.loop { list-style: none; margin: 0; padding: 0; counter-reset: l; }
.loop li { counter-increment: l; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--line); }
.loop li::before { content: counter(l); font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); padding-top: 3px; }
.loop strong { display: block; color: var(--ink); font-weight: 600; }
.note { padding: 16px 18px; border-left: 2px solid var(--moss); background: var(--surface); font-size: 0.95rem; }
.plain-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; max-width: 620px; }
.plain-checks li { padding-block: 10px; border-top: 1px solid var(--line); color: var(--ink); }

.doc-file { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(20px, 4vw, 40px); align-items: start; }
.doc-file > * { min-width: 0; }
.doc-cover { display: block; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; background: var(--surface); transition: transform 0.2s var(--ease); }
.doc-cover:hover { transform: translateY(-2px); }
.doc-cover img { display: block; width: 100%; height: auto; }

/* Docs: one reading column */
.docs-col > * { max-width: 820px; }
.rows-plain > * { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.rows-plain dd { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; letter-spacing: 0; color: var(--ink-2); }
.rows-plain dt { color: var(--ink); padding-top: 0; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding-block: 12px; border-top: 1px solid var(--line); color: var(--ink); }
.plain-list li:last-child { border-bottom: 1px solid var(--line); }
.numbered p { color: var(--ink-2); }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.4rem; font-weight: 400; line-height: 1; color: var(--muted); transition: transform 0.2s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; max-width: 62ch; }
.faq a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: var(--line-strong); }

/* ---------- Motion ---------- */
/* Reveal on scroll: site.js adds .motion to <html> and .rv to each item,
   so without JavaScript or with reduced motion nothing is hidden. */
html.motion .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
html.motion .rv.in { opacity: 1; transform: none; }

/* Hero: content rises in on load; the photo drifts slowly. */
.hero-inner > * { animation: rise 0.9s var(--ease) both; }
.hero-inner > :nth-child(2) { animation-delay: 0.08s; }
.hero-inner > :nth-child(3) { animation-delay: 0.18s; }
.hero-inner > :nth-child(4) { animation-delay: 0.28s; }
.hero-inner > :nth-child(5) { animation-delay: 0.38s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-photo > img { transform-origin: 62% 45%; animation: drift 32s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }

/* Arrows nudge in the direction they point. */
a [data-icon] svg { transition: transform 0.25s var(--ease); }
a:hover [data-icon="arrow-up-right"] svg { transform: translate(2px, -2px); }
a:hover [data-icon="arrow-right"] svg { transform: translateX(3px); }
a:hover [data-icon="arrow-down"] svg { transform: translateY(2px); }

/* FAQ answers ease open. */
.faq details[open] p { animation: faq-in 0.35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* A plant grows beside "It follows up". */
.follow-wrap { position: relative; }
.follow-plant { position: absolute; left: 0; bottom: calc(-1 * var(--block)); width: clamp(150px, 20vw, 250px); height: auto; aspect-ratio: 200 / 260; --plant: rgba(231, 224, 208, 0.55); pointer-events: none; }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 60px; }
.lost .plant-wrap { width: 150px; height: 190px; margin: 0 auto 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .agent-body { grid-template-columns: 200px minmax(0, 1fr); }
  .trace { grid-column: 1 / -1; min-height: 0; }
  .j-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) 220px 100px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: flex; width: 100%; min-height: 52px; padding: 0; font-size: 1.1rem; border-radius: 0; border-top: 1px solid var(--line); }
  .nav-links li:first-child a { border-top: 0; }
  .nav-links .nav-cta { margin: 14px 0 0; justify-content: center; border-radius: 999px; border-top: 0; padding: 0 18px; }
  .nav-links.open { box-shadow: 0 16px 24px -16px rgba(35, 43, 34, 0.25); }
  .menu-btn { display: inline-grid; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .follow-plant { display: none; }
  .hero-photo > img { object-position: 68% 40%; }
  .hero-photo::after { background: linear-gradient(0deg, rgba(35, 43, 34, 0.94) 0%, rgba(35, 43, 34, 0.72) 48%, rgba(35, 43, 34, 0.2) 100%); }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile { min-height: 0; padding-block: 26px; }
  .offset { margin-left: 0; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols > * { padding-block: 20px; }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .toc .label { width: 100%; margin-bottom: 4px; }
  .toc a { border-left: 0; padding: 4px 0; }
  .toc a.on { text-decoration: underline; text-underline-offset: 4px; }
  .j-labels { display: none !important; }
  .j-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "resp status" "branch branch" "track track"; gap: 10px; }
  .j-resp { grid-area: resp; } .j-branch { grid-area: branch; } .j-track { grid-area: track; } .j-status { grid-area: status; }
}
@media (max-width: 760px) {
  .agent-body { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .steps li::after { display: none; }
  .steps .step-txt span { display: none; }
  .steps button { padding: 6px; align-items: center; }
  .stage { min-height: 360px; padding: 16px; }
  .checks, .glossary, .plain-checks { grid-template-columns: minmax(0, 1fr); }
  .doc-file { grid-template-columns: 120px minmax(0, 1fr); }
  .rows > * { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 auto; }
  .doc-file { grid-template-columns: minmax(0, 1fr); }
  .doc-cover { width: 160px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .grow .p-line { stroke-dashoffset: 0; }
  .grow .p-flower { transform: none; }
}
