/* Home page (owner: home). Loads after styles.css, site.css and depth.css.
   Sections, in order (the identity first, then the value of owning, the agents, and only then the layers):
   hero (styles.css) · the shift to the agentic era (one graphic: the work changes hands, until now and in the
   agentic era, and three cards) · the numbers (stats, styles.css) · the agents (four systems +
   the agents' conversation) · what they run on (dark stage: the approved graphic, its key, what you own) · how it
   gets built (rail, three ways, one button) · founder (loop, styles.css) · reviews · blog · FAQ · closing. */

/* ---------- Hero ---------- */
.hero .hero__proof { transition: opacity .3s var(--ease); }
.hero a.hero__proof:hover { opacity: .85; }
.hero__lede { max-width: 580px; font-size: 18px; }
/* below 960px the hero follows the live site: the words, the portrait, then the actions; the lede opens the
   actions, so it sits after the portrait and before the button; on phones it is centred like them */
@media (max-width: 599px) {
  .hero__lede { margin-inline: auto; text-align: center; text-wrap: pretty; }
}
@media (max-width: 360px) {
  .hero__lede { font-size: 15.5px; }
  /* small phones: "business operations" stays on one line, so the title breaks in even lines */
  .hero__title { font-size: min(9.4vw, 34px); }
  .hero__ctas .cta-spin__inner { font-size: 14px; padding-inline: 18px; gap: 8px; white-space: nowrap; }
}

/* ---------- The shift to the agentic era: two cards that stack on scroll [cream section] ----------
   As on the live site's deck: card 01 (dark, without agents), card 02 (light, with agents). p-home.js adds
   .is-deck: each card sticks under the header (or, when taller than the screen, once its bottom is in view),
   card 02 slides up over card 01 and stops under its header strip, and card 01 steps back a little. Without
   .is-deck (no JS, reduced motion) the cards simply follow each other. Each card holds one state of the scene in
   website/src/shift.mjs: the wide drawing from a 720px figure, the tall one below, never both. Text sizes on the
   drawings are user units and never go under 11px on screen. */
.why { position: relative; padding: var(--section-y) var(--gutter); background: var(--cream); color: var(--ink); }
.why__wrap { display: flex; flex-direction: column; gap: clamp(40px, 5.5vw, 68px); }
/* headings break in balanced lines, never one word alone on a line */
.sec-head .h2 { text-wrap: balance; }
.why .sec-head__main { max-width: 800px; }
.why .sec-head__aside { max-width: 400px; color: var(--body-on-light); }
@media (max-width: 374px) { .why .eyebrow { gap: 10px; font-size: 11px; letter-spacing: .1em; } } /* one line at 320 */
.why__main { container: why / inline-size; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 52px); }

.wsd { position: relative; display: flex; flex-direction: column; gap: 32px; }
.wsd.is-deck { gap: 0; }
/* room after the last card, inside the deck, so the finished deck holds a moment before it scrolls away */
.wsd.is-deck::after { content: ''; display: block; height: var(--wsd-hold, 0px); }
.wsd.is-deck .wsc { position: sticky; top: var(--top, 92px); }
.wsd.is-deck .wsc + .wsc { margin-top: 36vh; }
.wsc {
  position: relative; border-radius: 28px; transform-origin: 50% 0; overflow: hidden;
  box-shadow: 0 -10px 32px -14px rgba(0, 0, 0, .45), 0 40px 80px -50px rgba(20, 17, 16, .5);
}
.wsc--dark { --card-line: rgba(245, 239, 230, .1); background: var(--ink-raised); color: var(--cream); border: 1px solid rgba(245, 239, 230, .08); }
.wsc--light { --card-line: rgba(20, 17, 16, .1); background: #fbf7f0; color: var(--ink); border: 1px solid rgba(20, 17, 16, .1); }
/* the header strip: what stays in view when the next card covers this one */
.wsc__head {
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  min-height: 60px; padding: 12px clamp(20px, 4vw, 44px); border-bottom: 1px solid var(--card-line);
}
.wsc__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--red); color: #fff; box-shadow: 0 6px 18px -8px rgba(215, 55, 43, .8);
  font: 500 13.5px/1 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em;
}
.wsc__name { font-size: 17px; font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.wsc__tags {
  margin-left: auto; text-align: right; font: 500 12px/1.4 'Geist Mono', ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.wsc--light .wsc__tags { color: var(--label-on-light); }
@media (max-width: 719px) { .wsc__tags { flex-basis: 100%; margin-left: 0; text-align: left; text-wrap: balance; } }
.wsc__main {
  display: grid; gap: clamp(22px, 3vw, 40px); align-items: center;
  padding: clamp(22px, 3vw, 34px) clamp(16px, 4vw, 44px) clamp(18px, 3vw, 38px);
}
.wsc__body { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding-inline: clamp(4px, 1vw, 0px); }
.wsc__title { margin: 0; font-size: clamp(28px, 2.9vw, 40px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.wsc__lede { margin: 0; font-size: 16px; line-height: 1.6; text-wrap: pretty; max-width: 60ch; }
.wsc--dark .wsc__title .serif { color: var(--red-bright); }
.wsc--dark .wsc__lede { color: var(--muted-light); }
.wsc--light .wsc__title .serif { color: var(--red-deep); }
.wsc--light .wsc__lede { color: var(--body-on-light); }
/* side by side from a wide card: the text, then the picture, which keeps at least 744px (wide drawing) */
@media (min-width: 1180px) { .wsc__main { grid-template-columns: minmax(280px, 1fr) minmax(0, 2.3fr); } }

.ws { container: ws / inline-size; margin: 0; min-width: 0; }
.ws__frame {
  position: relative; overflow: hidden; padding: 12px 8px 10px; border-radius: 20px; color: var(--cream);
  background:
    radial-gradient(70% 60% at 52% 86%, rgba(215, 55, 43, .2), transparent 64%),
    radial-gradient(90% 55% at 50% -8%, rgba(245, 239, 230, .06), transparent 60%),
    var(--ink);
  border: 1px solid rgba(245, 239, 230, .12);
  box-shadow: inset 0 1px 0 rgba(255, 246, 236, .07);
}
.wsc--light .ws__frame { box-shadow: inset 0 1px 0 rgba(255, 246, 236, .07), 0 30px 60px -36px rgba(20, 17, 16, .55); }
.ws[data-state="now"] .ws__frame {
  background:
    radial-gradient(60% 55% at 55% 70%, rgba(233, 180, 76, .08), transparent 64%),
    radial-gradient(90% 55% at 50% -8%, rgba(245, 239, 230, .05), transparent 60%),
    #171311;
}

/* the two drawings: tall on phones (at most 420px wide), wide from a 720px figure */
.ws__art { position: relative; }
.ws-art { display: block; width: 100%; height: auto; margin-inline: auto; overflow: visible; font-family: Geist, system-ui, -apple-system, sans-serif; }
.ws-art--wide { display: none; }
.ws-art--tall { max-width: 420px; }
@container ws (min-width: 720px) {
  .ws__frame { padding: 14px 12px 10px; }
  .ws-art--wide { display: block; max-width: 1060px; }
  .ws-art--tall { display: none; }
}

/* the drawings (website/src/shift.mjs): labels in mono; the finished frame is the markup. While a picture is on
   screen, p-home.js sets data-step (1 to 4) on the figure and the later steps fade out, one finished frame at a time.
   A part shown only at step 3 (the reply that waits for your OK) has ws-only3. */
.ws-art .ws-mono { font-family: 'Geist Mono', ui-monospace, monospace; }
.ws-art [data-s] { transition: opacity .55s var(--ease); }
.ws-art :is(.ws-only2, .ws-only3) { opacity: 0; }
.ws[data-step="1"] .ws-art [data-s]:not([data-s="1"]),
.ws[data-step="2"] .ws-art :is([data-s="3"], [data-s="4"]),
.ws[data-step="3"] .ws-art [data-s="4"] { opacity: 0; }
.ws[data-step="3"] .ws-art .ws-only3 { opacity: 1; }
.ws[data-step="2"] .ws-art .ws-only2 { opacity: 1; }

/* three cards: agents that act, your rules, what they build stays yours.
   Phones: stacked cards. Tablets: one list, the icon beside the words. Desktops: three across. */
.gain { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gain__i {
  position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; align-content: start; gap: 14px; min-width: 0;
  padding: 20px 20px 22px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line-l); box-shadow: var(--sh-card-l);
}
.gain__i .gain__d { grid-column: 1 / -1; }
/* each icon is a symbol from the picture: an agent, your OK, the plate you own */
.gain__ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: radial-gradient(90% 80% at 75% 15%, rgba(215, 55, 43, .32), transparent 65%), var(--ink);
  box-shadow: inset 0 1px 0 rgba(245, 239, 230, .08), 0 12px 24px -14px rgba(20, 17, 16, .7);
}
.gain__ic svg { width: 26px; height: 26px; overflow: visible; }
.gain__ic--agent svg { padding: 5px; border-radius: 50%; fill: #fff; background: radial-gradient(circle at 38% 32%, #ffc2b9, #e5402f 55%, #8a1b12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 14px rgba(239, 90, 76, .55); }
.gain__ic--ok svg { padding: 5px; border-radius: 50%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: #2a7a4a; box-shadow: inset 0 0 0 1.3px #8fe6aa, 0 0 14px rgba(120, 220, 150, .3); }
.gain__ic--own svg { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gain__slab { fill: rgba(245, 239, 230, .1); stroke: rgba(245, 239, 230, .75); }
.gain__edge { stroke: #ef5a4c; }
.gain__plus { stroke: #ef5a4c; stroke-width: 1.9; }
.gain__t { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.025em; color: var(--ink); }
.gain__d { font-size: 15.5px; line-height: 1.6; color: var(--body-on-light); }
@media (max-width: 374px) { /* small phones: a title may take two lines beside its icon */
  .gain__i { column-gap: 12px; padding: 18px 18px 20px; }
  .gain__t { font-size: 18px; }
  .gain__d { font-size: 15px; }
}
@container why (min-width: 640px) {
  .gain { gap: 0; padding: 4px 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-l); box-shadow: var(--sh-card-l); }
  .gain__i { grid-template-columns: 46px minmax(0, 1fr); align-items: start; column-gap: 22px; row-gap: 6px; padding: 24px 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .gain__i + .gain__i { border-top: 1px solid var(--line-l); }
  .gain__ic { grid-row: 1 / span 2; }
  .gain__i .gain__d { grid-column: 2; max-width: 70ch; }
  .gain__t { padding-top: 2px; }
}
@container why (min-width: 960px) {
  .gain { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .gain__i { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 28px 28px 30px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line-l); box-shadow: var(--sh-card-l); }
  .gain__i + .gain__i { border-top: 1px solid var(--line-l); }
  .gain__ic { grid-row: auto; margin-bottom: 8px; }
  .gain__i .gain__d { grid-column: auto; }
  .gain__t { padding-top: 0; }
}

/* ---------- The agentic era in numbers (stats, styles.css) ---------- */
/* their red light fades out before the section's lower edge */
.stats::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 280px; pointer-events: none; background: linear-gradient(180deg, rgba(15, 12, 11, 0), var(--ink-deep) 85%); }
.stats__wrap { z-index: 1; }
/* the source line: one label and the arrow (the shared rule styles every span in it as the arrow) */
.stat__src .stat__src-t, .stat__src .stat__src-t .nw { flex: 1 1 auto; min-width: 0; font-size: inherit; color: inherit; transition: none; }
.stat__src:hover .stat__src-t, .stat__src:hover .stat__src-t .nw { transform: none; }
.stat__src::before { content: ''; position: absolute; inset: -6px 0; }
.stat__src { position: relative; }
/* two bars or two rows of dots: label, bar or dots, value, on one shared grid so both rows line up */
.stat__bars--grid, .stat__dots { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-content: end; column-gap: 14px; row-gap: 12px; width: 100%; }
.stat__bars--grid .stat__bar, .stat__dotrow { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
/* 16 times more agents with control built in: sixteen agents against one */
.stat__dotset { display: grid; grid-template-columns: repeat(16, minmax(0, 12px)); gap: 6px; align-items: center; }
.stat__dot { display: block; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffc2b9, #e5402f 55%, #8a1b12); box-shadow: 0 0 9px rgba(239, 90, 76, .55); }
.stat__dot--muted { background: rgba(245, 239, 230, .42); box-shadow: none; }
.js .stat__dot { opacity: 0; transform: scale(.3); transition: opacity .35s ease, transform .5s var(--ease-out); transition-delay: calc(.15s + var(--i) * 45ms); }
.stat.is-in .stat__dot { opacity: 1; transform: none; }
/* without JS the bars and squares are simply there (main.js plays them in once in view) */
html:not(.js) .stat__fill { transform: none; }
html:not(.js) .stat__cell { opacity: 1; transform: none; }
/* two across: the cards in a row share their row lines, so the big numbers start together; every chart starts at the
   top of its card, so the four cards keep one rhythm */
@media (min-width: 900px) {
  .stats__grid > .stat { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 20px; }
  .stats__grid .stat__viz { align-self: start; }
}
@media (max-width: 599px) {
  /* phones: each label sits above its bar or its dots */
  .stat__bars--grid, .stat__dots { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .stat__bars--grid .stat__bar-label, .stat__dotrow .stat__bar-label { grid-column: 1 / -1; }
  .stat__bars--grid .stat__bar + .stat__bar, .stat__dotrow + .stat__dotrow { margin-top: 6px; }
  .stat__dotset { gap: 4px; }
  .stat__src { font-size: 11px; } /* styles.css sets 10.5px on phones; labels never go under 11px */
}
@media (prefers-reduced-motion: reduce) {
  .stat__dot { opacity: 1 !important; transform: none !important; }
}

/* ---------- The agentic AI systems: four systems beside the agents' conversation [sand] ---------- */
.agents { padding: var(--section-y) var(--gutter); background: var(--sand); color: var(--ink); }
.agents__wrap { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }
.agents .sec-head__aside { color: var(--body-on-light); max-width: 470px; }
.agents__head .sec-head__main { flex: 1 1 540px; }
.agents__def { flex: 0 1 470px; display: flex; flex-direction: column; gap: 10px; padding-left: 18px; border-left: 2px solid var(--red); }
.agents__def-k { font: 500 11px 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); }
.agents__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 40px clamp(36px, 4.5vw, 64px); align-items: start; }
.agents__col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
/* the conversation stays in view while the four systems scroll past it */
@media (min-width: 960px) { .agents__grid .chat { position: sticky; top: 96px; } }
.sys { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.sy {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: start; min-width: 0;
  padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-l); box-shadow: var(--sh-card-l);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .35s var(--ease);
}
@media (hover: hover) { .sy:hover { transform: translateY(-3px); border-color: rgba(215, 55, 43, .4); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 26px 50px -26px rgba(20, 17, 16, .35); } }
.sy__k { padding-top: 4px; font: 500 11px/1.45 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.sy__t { margin-top: 6px; text-wrap: balance; font-size: clamp(20px, 1.9vw, 24px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; }
.sy__d { margin-top: 8px; max-width: 56ch; font-size: 15.5px; line-height: 1.6; color: var(--body-on-light); }
/* the icon: a small stack, front to back; the parts the system works on light up in view */
.sy__ic {
  width: 64px; height: 64px; border-radius: 18px;
  background: radial-gradient(90% 80% at 75% 15%, rgba(215, 55, 43, .32), transparent 65%), var(--ink);
  box-shadow: inset 0 1px 0 rgba(245, 239, 230, .08), 0 12px 26px -14px rgba(20, 17, 16, .7);
}
.gly__p { fill: rgba(245, 239, 230, .07); stroke: rgba(245, 239, 230, .42); stroke-width: 1.1; stroke-linejoin: round; transition: fill .5s var(--ease) .2s, stroke .5s var(--ease) .2s; }
.gly__w { fill: none; stroke: #ef5a4c; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s var(--ease) .45s; }
.gly__orb { fill: #ef5a4c; stroke: rgba(255, 220, 214, .7); stroke-width: .8; opacity: 0; transform: scale(.3); transform-box: fill-box; transform-origin: center; transition: opacity .3s .5s, transform .5s var(--ease-expo) .5s; }
.gly__flow { fill: none; stroke: rgba(245, 239, 230, .8); stroke-width: 1.4; stroke-dasharray: 2.6 2.6; stroke-linecap: round; }
.gly__dot { fill: #fff6ea; }
.sy.is-in .gly__p--on, html:not(.js) .gly__p--on { fill: rgba(215, 55, 43, .78); stroke: #ff978b; }
.sy.is-in .gly__w, .sy.is-in .gly__orb, html:not(.js) .gly__w, html:not(.js) .gly__orb { opacity: 1; transform: none; }
.sy.is-in .gly__flow { animation: glyFlow 1.2s linear infinite; }
@keyframes glyFlow { to { stroke-dashoffset: -5.2; } }
/* the coordinator and its five specialists, drawn like the bracket in the picture; the name column fits the
   longest name ("Project Management") on one line */
.spec { container: spec / inline-size; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-l); }
.spec__lead { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.spec__orb { flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffc2b9, #e5402f 55%, #8a1b12); box-shadow: 0 0 10px rgba(239, 90, 76, .45); }
.spec__list { position: relative; display: grid; gap: 9px; margin: 10px 0 0 6px; padding: 0 0 0 26px; list-style: none; }
.spec__list::before { content: ''; position: absolute; left: 0; top: -6px; bottom: .72em; width: 1.5px; background: rgba(215, 55, 43, .45); }
.spec__list li { position: relative; display: grid; grid-template-columns: 152px minmax(0, 1fr); gap: 2px 12px; font-size: 14.5px; line-height: 1.45; color: var(--body-on-light); }
.spec__list li::before { content: ''; position: absolute; left: -26px; top: .72em; width: 14px; height: 1.5px; background: rgba(215, 55, 43, .45); }
.spec__list li::after { content: ''; position: absolute; left: -13px; top: calc(.72em - 4px); width: 9px; height: 9px; box-sizing: border-box; border-radius: 50%; border: 1.6px solid var(--red); background: var(--paper); }
.spec__list b { font-weight: 600; color: var(--ink); }
/* a narrow card (phones, and the two-column grid from 960 to about 1200px): each name above what it does */
@container spec (max-width: 400px) { .spec__list li { grid-template-columns: minmax(0, 1fr); } }
/* what scale means, in one line under the four systems */
.agents__scale {
  display: flex; align-items: flex-start; gap: 14px; margin: 0; padding: 18px 22px; border-radius: var(--r-md);
  background: rgba(251, 248, 243, .55); border: 1px dashed rgba(20, 17, 16, .2);
  font-size: 15.5px; line-height: 1.55; color: var(--ink);
}
.agents__scale-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the rule under the four systems: a plain sentence, never a slogan; then the way on, to what they run on */
.agents__end { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.agents__rule { display: flex; align-items: flex-start; justify-content: center; gap: 12px; max-width: 780px; margin: 0 auto; font-size: 16.5px; line-height: 1.55; color: var(--body-on-light); }
.agents__rule-k { font-weight: 600; color: var(--ink); }
.agents__tick { flex: none; position: relative; width: 20px; height: 20px; margin-top: 3px; border-radius: 50%; background: var(--green-ink); }
.agents__tick::after { content: ''; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.agents__end .link-arrow { align-self: center; }

.chat {
  position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--ink); color: var(--cream); border: 1px solid var(--line-d2);
  box-shadow: 0 50px 100px -50px rgba(20, 17, 16, .6), 0 30px 90px -50px rgba(215, 55, 43, .45);
}
.chat__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; row-gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-d); }
.chat__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(245, 239, 230, .14); }
.chat__bar i:first-child { background: var(--red); }
.chat__title { margin-left: 10px; white-space: nowrap; font: 500 11.5px 'Geist Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-light); }
.chat__body { position: relative; display: grid; min-height: 420px; padding: 22px 22px 8px; }
.run { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.run[hidden] { display: none; }
.msg { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.msg__who { display: inline-flex; align-items: center; gap: 8px; font: 500 11px 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.msg__orb { flex: none; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #ffc2b9, #e5402f 55%, #8a1b12); box-shadow: 0 0 10px rgba(239, 90, 76, .6); }
.msg--you { align-items: flex-end; text-align: right; }
.msg__t {
  display: inline-block; max-width: 92%; padding: 12px 16px; border-radius: 18px 18px 4px 18px;
  background: var(--cream); color: var(--ink); font-size: 15px; line-height: 1.5; text-align: left; min-height: 1.5em;
}
.msg__t::after { content: ''; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--red); opacity: 0; }
.msg__t.is-typing::after { opacity: 1; animation: blink 1s infinite; }
/* a run that starts on its own: an event or a schedule, not you */
.msg--event .msg__who { color: #e6ded4; }
.msg--event .msg__who::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #e9b44c; box-shadow: 0 0 0 3px rgba(233, 180, 76, .18); }
.msg--event .msg__t { background: rgba(245, 239, 230, .07); color: var(--cream); box-shadow: inset 0 0 0 1px rgba(245, 239, 230, .22); }
.msg--agent { gap: 10px; }
.ag { margin: 0; }
.ag--say { font-size: 15px; line-height: 1.5; color: var(--cream); }
.ag--tasks { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.task { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--muted-light); }
.task__tick { position: relative; flex: none; width: 18px; height: 18px; margin-top: 0; border-radius: 50%; border: 1.5px solid rgba(245, 239, 230, .25); transition: background .3s, border-color .3s; }
.task__tick::after { content: ''; position: absolute; left: 5px; top: 2.5px; width: 5px; height: 8px; border-right: 2px solid #0f0c0b; border-bottom: 2px solid #0f0c0b; transform: rotate(45deg) scale(0); transition: transform .3s var(--ease-expo); }
.task.is-done .task__tick { background: var(--green); border-color: var(--green); }
.task.is-done .task__tick::after { transform: rotate(45deg) scale(1); }
.task.is-done { color: var(--cream); }
.task.is-busy .task__tick { border-color: var(--red-bright); border-top-color: transparent; animation: rot .9s linear infinite; }
.task__who { font-weight: 600; color: #ffb3a8; }
.gate2 {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px 0 4px; border-radius: 999px;
  border: 1.5px solid; font-size: 13px; font-weight: 500; white-space: nowrap; transition: border-color .4s, background .4s, color .4s;
}
.gate2__ic { position: relative; width: 28px; height: 28px; border-radius: 50%; background: rgba(245, 239, 230, .08); }
.gate2__ic::before { content: ''; position: absolute; left: 10px; top: 6px; width: 8px; height: 8px; border-radius: 50%; border: 1.6px solid currentColor; }
.gate2__ic::after { content: ''; position: absolute; left: 7px; top: 15px; width: 14px; height: 7px; border-radius: 7px 7px 0 0; border: 1.6px solid currentColor; border-bottom: 0; }
.gate2__wait, .gate2__ok { transition: opacity .3s; }
.gate2__ok { position: absolute; left: 42px; opacity: 0; }
.gate2__tick { position: relative; width: 14px; height: 14px; opacity: 0; transition: opacity .3s; }
.gate2__tick::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.gate2[data-state="waiting"] { border-style: dashed; border-color: rgba(245, 239, 230, .4); color: var(--cream); }
.gate2[data-state="waiting"] .gate2__ic { animation: askPulse 1.1s ease-in-out infinite; }
.gate2[data-state="approved"] { border-color: var(--green); background: rgba(120, 220, 150, .1); color: #9fe8b5; }
.gate2[data-state="approved"] .gate2__wait { opacity: 0; }
.gate2[data-state="approved"] .gate2__ok, .gate2[data-state="approved"] .gate2__tick { opacity: 1; }
.ag--done { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 14.5px; line-height: 1.5; color: var(--cream); }
/* what happened at the end of a run (never a status label) */
.run-chip { flex: none; padding: 4px 10px; border-radius: 999px; background: rgba(215, 55, 43, .16); border: 1px solid rgba(239, 90, 76, .45); font: 500 11px 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #ffb3a8; }
.js .run .msg--agent .ag { opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .55s var(--ease-out); }
.js .run .ag.is-on { opacity: 1; transform: none; }
.chat__foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px 14px; border-top: 1px solid var(--line-d); font: 400 11px 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chat__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.8s infinite; }
.chat__team { color: var(--muted-light); }
@media (max-width: 959px) {
  .agents__grid { grid-template-columns: minmax(0, 1fr); }
}
/* small phones: each system's name stays on one line ("The customer-facing agents" at 320) */
@media (max-width: 359px) {
  .sys .sy { padding-inline: 18px; }
  .sy__t { font-size: 18.5px; }
}
@media (max-width: 599px) {
  .agents__def { padding-left: 14px; }
  .sy { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
  .sy__ic { width: 56px; height: 56px; border-radius: 16px; }
  .sy__k { padding-top: 0; }
  .spec__list li { grid-template-columns: minmax(0, 1fr); }
  .agents__scale { padding: 16px 18px; font-size: 15px; }
  .chat__body { min-height: 450px; padding: 18px 16px 6px; }
  /* too narrow for one row: the example label moves to its own line, it never hides */
    .msg__t { max-width: 100%; font-size: 14.5px; }
  .task { font-size: 13.5px; }
  .gate2 { font-size: 12.5px; }
  .chat__foot { padding-inline: 14px; font-size: 11px; letter-spacing: .06em; }
  .agents__rule { font-size: 15.5px; justify-content: flex-start; }
}

/* ---------- What they run on: the approved graphic on a dark stage [full bleed] ----------
   The graphic (depth.css) is full from 1100px here (the shared switch is 900px, but between 900 and 1100
   its words get too small to read), compact below. */
.inf {
  position: relative; overflow: hidden; overflow: clip; padding: var(--section-y) var(--gutter); color: var(--cream);
  background: linear-gradient(180deg, var(--ink-deep) 0%, #0b0908 18%, #0b0908 100%);
}
.inf__glow { /* the light under the picture */
  position: absolute; left: 0; right: 0; top: 22%; height: 1100px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(215, 55, 43, .2), rgba(215, 55, 43, .06) 55%, transparent);
}
.inf__wrap { position: relative; display: flex; flex-direction: column; gap: clamp(44px, 5vw, 72px); }
.inf .sec-head__aside { max-width: 440px; color: var(--muted-light); }
/* the key sits close under the picture, so most of it stays in view while a layer is lit */
.inf__art + .ikey { margin-top: calc(-1 * clamp(8px, 2.4vw, 36px)); }
.inf__art .dx--full { width: min(100%, max(1000px, calc((100vh - 120px) * 1.481))); width: min(100%, max(1000px, calc((100svh - 120px) * 1.481))); margin: 0 auto; }
.inf__art .dx--compact { width: min(100%, 560px); margin: 0 auto; }
@media (min-width: 900px) and (max-width: 1099px) {
  .inf__art .dx-both__full { display: none; }
  .inf__art .dx-both__compact { display: block; }
}

/* the key: the three layers and the foundation; hovering one lights its part of the picture (p-home.js) */
.ikey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.ikey__i {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: clamp(22px, 2.2vw, 28px);
  border-radius: var(--r-md); border: 1px solid rgba(245, 239, 230, .1);
  background: linear-gradient(180deg, rgba(245, 239, 230, .055), rgba(245, 239, 230, .015));
  box-shadow: inset 0 1px 0 rgba(245, 239, 230, .05);
  transition: border-color .35s var(--ease), background .35s var(--ease), transform .5s var(--ease);
}
/* like the panels in the picture: the red serif number with the name, the audience in one mono line */
.ikey__t { display: flex; align-items: baseline; gap: 12px; font-size: clamp(22px, 2vw, 26px); font-weight: 500; line-height: 1.1; letter-spacing: -.03em; color: #fff; }
.ikey__n { flex: none; font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; font-size: 1.3em; letter-spacing: 0; line-height: .8; color: var(--red-bright); }
.ikey__n--found { align-self: center; width: 24px; height: 9px; border-radius: 2px; background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); box-shadow: 0 0 12px rgba(239, 90, 76, .5); }
.ikey__k { padding-bottom: 14px; border-bottom: 1px solid rgba(245, 239, 230, .1); font: 500 11px/1.35 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: #d6cdc3; white-space: nowrap; }
.ikey__d { padding-top: 4px; font-size: 15px; line-height: 1.55; color: var(--muted-light); }
.ikey__parts { display: flex; flex-direction: column; gap: 7px; margin: auto 0 0; padding: 8px 0 0; list-style: none; }
.ikey__parts li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.35; color: #ece4da; }
.ikey__parts li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red-bright); }
.ikey__parts--found li::before { content: none; }
.ikey__parts svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--red-bright); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* the admin portal: the command center, red glass as in the picture */
.ikey__i--adm {
  border-color: rgba(239, 90, 76, .55);
  background: radial-gradient(120% 90% at 0% 0%, rgba(239, 90, 76, .28), transparent 60%), linear-gradient(160deg, #4a1510, #1c0806 70%);
  box-shadow: inset 0 1px 0 rgba(255, 151, 139, .25), 0 30px 70px -36px rgba(215, 55, 43, .65);
}
.ikey__i--adm .ikey__k { color: #ffb3a8; border-bottom-color: rgba(255, 151, 139, .22); }
.ikey__i--adm .ikey__parts li::before { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .ikey__i { cursor: default; }
  .ikey__i:hover { transform: translateY(-3px); border-color: rgba(239, 90, 76, .5); background: linear-gradient(180deg, rgba(245, 239, 230, .08), rgba(245, 239, 230, .025)); }
  .ikey__i--adm:hover { border-color: #ef5a4c; background: radial-gradient(120% 90% at 0% 0%, rgba(239, 90, 76, .36), transparent 60%), linear-gradient(160deg, #54170f, #1c0806 70%); }
}
@media (max-width: 1099px) {
  .ikey { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* two across (tablets): the website and the member portal share a row; the admin portal and the foundation take a
   row each, so no card stretches to a taller neighbour and stands half empty */
@media (min-width: 600px) and (max-width: 1099px) {
  .ikey__i--adm, .ikey__i--found { grid-column: 1 / -1; }
  .ikey__i--found .ikey__parts { flex-direction: row; flex-wrap: wrap; gap: 10px 26px; }
}
/* four across on small desktops: the audience line still fits on one line at 11px */
@media (min-width: 1100px) and (max-width: 1279px) {
  .ikey__i { padding-inline: 20px; }
  .ikey__k { letter-spacing: .08em; }
}

/* what the business owns, said as outcomes (never the names of the tools behind them) */
.own4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.own4__i { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid rgba(245, 239, 230, .14); }
.own4__ic { width: 30px; height: 30px; margin-bottom: 6px; fill: none; stroke: var(--red-bright); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.own4__t { font-size: 19px; font-weight: 500; letter-spacing: -.02em; color: #fff; }
.own4__d { font-size: 15px; line-height: 1.55; color: var(--muted-light); }
@media (max-width: 959px) {
  .own4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .ikey { grid-template-columns: minmax(0, 1fr); }
  .own4 { grid-template-columns: minmax(0, 1fr); }
  }

/* ---------- How it gets built: the rail, three ways, one button [cream, after the dark stage] ---------- */
.build { position: relative; overflow: hidden; padding: var(--section-y) var(--gutter); background: var(--cream); color: var(--ink); }
.build__wrap { position: relative; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.build__wrap > .sec-head { margin-bottom: 0; }
.build .sec-head__aside { max-width: 420px; color: var(--body-on-light); }
/* the process: four steps on one rail; the rail fills once in view (p-home.js adds is-in) */
.flow { --fg: clamp(20px, 2.6vw, 36px); position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px var(--fg); margin: 0; padding: 0; list-style: none; }
.flow::before, .flow::after { content: ''; position: absolute; z-index: 0; left: 22px; right: calc((100% - 3 * var(--fg)) / 4 - 22px); top: 21px; height: 2px; border-radius: 1px; }
.flow::before { background: var(--line-l2); }
.flow::after { background: linear-gradient(90deg, var(--red-deep), var(--red-bright)); box-shadow: 0 0 14px rgba(239, 90, 76, .35); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .2s; }
.flow.is-in::after, html:not(.js) .flow::after { transform: none; }
.fstep { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fstep__n {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-l2); font: 500 12px 'Geist Mono', ui-monospace, monospace; letter-spacing: .06em; color: var(--ink);
  transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease);
}
.flow.is-in .fstep__n, html:not(.js) .fstep__n { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px rgba(215, 55, 43, .12); }
.flow.is-in .fstep:nth-child(2) .fstep__n { transition-delay: .4s; }
.flow.is-in .fstep:nth-child(3) .fstep__n { transition-delay: .8s; }
.flow.is-in .fstep:nth-child(4) .fstep__n { transition-delay: 1.2s; }
.fstep__k { font: 500 11px 'Geist Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep); }
.fstep__t { font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.fstep__d { font-size: 15.5px; line-height: 1.6; color: var(--body-on-light); }
.ways { display: flex; flex-direction: column; gap: 18px; padding-top: clamp(36px, 4.5vw, 56px); border-top: 1px solid var(--line-l2); }
.ways__k { font: 500 11.5px 'Geist Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--red-deep); }
.ways__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.wy {
  display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-l); box-shadow: var(--sh-card-l);
  transition: border-color .35s var(--ease), transform .5s var(--ease);
}
@media (hover: hover) { .wy:hover { border-color: rgba(215, 55, 43, .4); transform: translateY(-3px); } }
.wy__t { font-size: clamp(24px, 2.2vw, 30px); font-weight: 500; line-height: 1.08; letter-spacing: -.03em; color: var(--ink); }
.wy__t .serif { color: var(--red-deep); }
.wy__d { font-size: 15.5px; line-height: 1.55; color: var(--body-on-light); }
.wy__m { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-l); font: 500 11px 'Geist Mono', ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--label-on-light); }
.build__end { display: flex; justify-content: center; }
@media (max-width: 1023px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow::before, .flow::after { display: none; }
}
/* from tablets up, the way is one full-width row: its name on the left, what it is on the right */
@media (min-width: 600px) {
  .wy { display: grid; grid-template-columns: minmax(150px, .38fr) minmax(0, 1fr); column-gap: 28px; row-gap: 12px; align-items: start; }
  .wy__t { grid-row: 1 / span 2; }
  .wy__m { margin-top: 0; padding-top: 12px; }
}
@media (max-width: 599px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .fstep { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; row-gap: 4px; }
  .fstep__n { grid-row: 1 / span 3; margin: 0; }
  .fstep__d { font-size: 15px; }
}

/* ---------- The person behind it (loop from styles.css) [sand] ---------- */
.loop__node::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  border: 1.5px solid var(--red);
  box-shadow: 0 0 0 4px rgba(215, 55, 43, .1), 0 16px 34px -16px rgba(215, 55, 43, .75);
  opacity: 0;
  animation: loopHit 9s linear calc(var(--k, 0) * 2.25s - .1s) infinite;
}
@keyframes loopHit {
  0% { opacity: 0; }
  1.7% { opacity: 1; }
  8.4% { opacity: 1; }
  12% { opacity: 0; }
  100% { opacity: 0; }
}
.creed { display: flex; flex-direction: column; margin: 0; }
.creed__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--line-l2); }
.creed__row:last-child { border-bottom: 1px solid var(--line-l2); }
.creed dt { font: 500 11px/1.4 'Geist Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--red-deep); padding-top: 4px; }
.creed dd { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ink); }
@media (max-width: 599px) {
  .creed__row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; }
  .creed dd { font-size: 16px; }
  .loop__num { font-size: 11px; } /* styles.css sets 10px on phones; labels never go under 11px */
}

/* ---------- Closing [red]: one door, to the What I build page (base look in styles.css / site.css) ---------- */
.book--end .book__inner { max-width: 900px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .loop__node::after { animation: none !important; opacity: 0; }
  .ws-art * { animation: none !important; transition: none !important; }
  .gate2[data-state="waiting"] .gate2__ic, .task.is-busy .task__tick, .chat__dot, .gly__flow { animation: none !important; }
  .gly__p, .gly__w, .gly__orb, .flow::after, .fstep__n { transition: none !important; }
  .js .run .msg--agent .ag { opacity: 1; transform: none; transition: none; }
  .sy .gly__p--on { fill: rgba(215, 55, 43, .78); stroke: #ff978b; }
  .sy .gly__w, .sy .gly__orb { opacity: 1; transform: none; }
  .flow::after { transform: none; }
  .sy, .ikey__i, .wy { transition: none; }
}
