/* AI Consulting (consulting.html): the deck's content in this site's style. Uses home.css for the tokens, header, hero,
   sections, buttons, the week ruler (.how) and the contact section. Theme variables only; light and dark. */

.cs-index { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 8px 32px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.cs-index a { color: var(--ink-2); }
.cs-index a:hover { color: var(--ink); }

/* a heading on the left, its figure on the right */
.cs-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.cs-split--gap { margin-top: var(--pad-sec); }
.cs-strong { color: var(--ink); font-weight: 600; }
.cs-src { display: block; margin-top: 16px; font-family: var(--f-mono); font-size: 12px; line-height: 1.6; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }

/* the workforce bars: one ink bar per year, the later one full width */
.cs-bars { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cs-bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) 88px; align-items: center; gap: 16px; }
.cs-bar + .cs-bar { margin-top: 18px; }
.cs-bar-y { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.cs-bar-t { height: 28px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.cs-bar-t i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--tick); border-radius: 6px; }
.cs-bar--now .cs-bar-t i { background: #071B53; }   /* Prompt 23: the gap to fill, solid navy (no muddy gradient) */
.cs-bar-n { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums; }
.cs-bars figcaption { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.cs-up { font-size: 17px; font-weight: 600; }

/* one 40-hour week: five days, 35% of each day hatched as lost (14 of 40 hours) */
.cs-week { margin: 0; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cs-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.cs-day { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cs-day-bar { position: relative; height: 160px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cs-day-bar i {
  position: absolute; left: 0; right: 0; top: 0; height: 35%;
  background: repeating-linear-gradient(135deg, var(--amber) 0 2px, transparent 2px 7px);
  border-bottom: 1px solid var(--amber);
}
.cs-day-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cs-week figcaption { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.cs-key { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.cs-key-lost { flex: none; width: 18px; height: 12px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--amber) 0 2px, transparent 2px 7px); box-shadow: inset 0 0 0 1px var(--amber); }

/* the way out: one big figure */
.cs-stat { padding-top: 8px; }
.cs-stat-n { font-size: var(--fs-big); font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.cs-stat-l { margin-top: 16px; font-size: 19px; line-height: 1.45; color: var(--ink); max-width: 22em; }

/* how we decide what to automate: four factors multiplied into the roadmap */
.cs-formula-wrap { margin-top: 96px; }
.cs-formula { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 12px; }
.cs-f { display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; background: var(--surface); border-radius: 20px; border: 1px solid var(--line); }
.cs-f b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.cs-f span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cs-f--out { justify-content: center; background: var(--btn); border-color: var(--btn); box-shadow: 0 16px 36px -18px rgba(108, 196, 254, .55), 0 8px 24px -16px rgba(166, 219, 255, .5); }
.cs-f--out b { color: var(--btn-ink); }
.cs-op { align-self: center; font-size: 22px; color: var(--muted); }
.cs-start { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.cs-start-h { font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.cs-start-h span { font-weight: 400; color: var(--muted); }
.cs-start-l { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.cs-start-l li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; color: var(--ink); background: var(--surface); }

/* why Katalyst (Prompt 21): two plates, AI engineers and construction engineers, and what flows between them */
.cs-part { margin-top: 64px; display: grid; gap: 0; max-width: 820px; }
.cs-plate { padding: 26px 30px; border-radius: var(--r-card); }
.cs-plate--ai { border: 1px solid var(--signal); background: var(--surface); box-shadow: 0 0 0 4px var(--signal-soft); }
.cs-plate--eng { background: var(--surface); border: 1px solid var(--line); }
.cs-plate-k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-plate-k i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.cs-plate-n { margin-top: 8px; font-size: 26px; font-weight: 600; letter-spacing: -0.015em; }
.cs-plate-d { margin-top: 6px; font-size: 15px; color: var(--ink-2); }
.cs-plate-big { margin-top: 18px; font-size: 20px; font-weight: 600; }
.cs-links { display: flex; justify-content: center; gap: 12px; padding: 18px 0; position: relative; }
.cs-links::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--tick); }
.cs-links li { position: relative; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.cs-means { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.cs-means li { padding-top: 20px; border-top: 1px solid var(--line); }
.cs-means p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--muted); }

/* the engagement model: three steps, each ending in a go or no-go decision */
.cs-steps { margin-top: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.cs-step { display: flex; flex-direction: column; padding: 28px 28px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.cs-step:first-child { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(7, 27, 83, .05); }
.cs-step-tag { height: 28px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.cs-step-k { padding-top: 16px; border-top: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cs-step-h { margin-top: 6px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.cs-step-t { margin-top: 12px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cs-step-o { margin-top: auto; padding-top: 22px; font-size: 17px; font-weight: 500; color: var(--ink); }

/* who we'd like in the room */
.cs-room { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: baseline; }
.cs-room-l { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-room-l li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; background: var(--surface); }

@media (max-width: 1099.98px) {
  /* the formula stacks: each factor on its own row, the operators between them */
  .cs-formula { grid-template-columns: minmax(0, 1fr); max-width: 560px; gap: 8px; }
  .cs-op { justify-self: center; line-height: 1; }
}
@media (max-width: 899.98px) {
  .cs-index { margin-top: 48px; }
  .cs-split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cs-bars, .cs-week { padding: 20px; }
  .cs-bar { grid-template-columns: 44px minmax(0, 1fr) 72px; gap: 12px; }
  .cs-bar-n { font-size: 22px; }
  .cs-day-bar { height: 120px; }
  .cs-formula-wrap { margin-top: 64px; }
  .cs-means, .cs-steps { grid-template-columns: minmax(0, 1fr); }
  .cs-step-tag { height: auto; min-height: 0; margin-bottom: 8px; }
  .cs-step-tag[aria-hidden] { display: none; }
  .cs-room { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Prompt 17B: three signature moments (js/consulting.js). 2D only; transform and opacity only; paused off
   screen; reduced motion (or no JavaScript) shows each final state. ---------- */

/* a. the hero: "From 40 workflows to your top 3", a frosted panel on the ink hero with a fixed shape (no layout shift) */
.cs-hero .hero-grid { align-items: center; }
.cx { position: relative; padding: 20px 20px 16px; border-radius: var(--r-panel); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.cx-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.cx-top .lbl:first-child { display: inline-flex; align-items: center; gap: 8px; }
.cx-top .lbl:first-child::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px rgba(108, 196, 254, .8); }
.cx-s { color: var(--muted); }
.cx-box { position: relative; margin-top: 12px; aspect-ratio: 480 / 400; }
.cx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.cx-svg .cx-grid { stroke: rgba(255, 255, 255, .06); stroke-width: 1.5; }
.cx-svg .cx-dot { fill: #DCE6F5; }
.cx-svg .cx-blue { fill: #6CC4FE; }
.cx-svg .cx-halo { fill: rgba(108, 196, 254, .28); }
.cx-svg .cx-hit { fill: transparent; cursor: default; }
.cx-svg .cx-scan line { stroke: #6CC4FE; stroke-width: 1.5; }
.cx-svg .cx-scan rect { fill: rgba(108, 196, 254, .07); }
.cx-svg text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; fill: #A6DBFF; }
.cx-svg .cx-name { font-family: var(--f-sans); font-size: 15px; font-weight: 500; letter-spacing: -0.005em; text-transform: none; fill: #FFFFFF; }
.cx-svg .cx-rule { stroke: rgba(255, 255, 255, .12); stroke-width: 1.5; }
.cx-tip { position: absolute; left: 0; top: 0; padding: 4px 10px; border-radius: 12px; background: rgba(7, 27, 83, .92); border: 1px solid rgba(255, 255, 255, .16); color: #FFFFFF; font-size: 13px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.cx-tip.is-on { opacity: 1; }
/* without the script: the ranked list on its own */
.cx-fallback { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; font-size: 15px; font-weight: 500; }
.cx-fallback li { display: flex; align-items: center; gap: 12px; }
.cx-fallback li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #6CC4FE; box-shadow: 0 0 0 6px rgba(108, 196, 254, .2); }
.cx.is-live .cx-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 1099.98px) { .cx { max-width: 560px; } }
@media (max-width: 599.98px) { .cx { padding: 16px 12px 12px; } }

/* b. how we decide what to automate: each factor fills its bar in turn, the signs pulse, the result turns blue */
.cs-f { position: relative; }
.cs-f-bar { display: block; margin-top: auto; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cs-f-bar i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #6CC4FE, #6CC4FE); transform-origin: 0 50%; }
.cs-f b + span { margin-bottom: 8px; }
.cs-f--out { overflow: hidden; color: #071B53; background: #FFFFFF !important; border-color: transparent !important; box-shadow: 0 16px 36px -18px rgba(2, 8, 30, .55), 0 0 0 1px rgba(108, 196, 254, .3) !important; }   /* Prompt 26: no lime behind text: the outcome is a white tile with navy text and a small lime tick (resolved) */
.cs-f--out b { color: #071B53; }
.cs-f--out::after { content: ""; position: absolute; top: 12px; right: 12px; width: 16px; height: 16px; border-radius: 50%; background: #E3FB99 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.4 7 10.6l4.4-5' fill='none' stroke='%23071B53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.cs-out-grey { position: absolute; inset: -1px; z-index: 2; display: none; align-items: center; padding: 20px 18px; background: var(--fill-2); border-radius: inherit; }
.cs-out-grey b { color: var(--ink); }
.cs-formula.is-armed .cs-out-grey { display: flex; }
.cs-formula.is-armed .cs-f-bar i { transform: scaleX(0); transition: transform .45s cubic-bezier(.33, 1, .68, 1); }
.cs-formula.is-armed .cs-out-grey { opacity: 1; transition: opacity .45s ease; }
.cs-formula.is-armed.is-on .cs-f-bar i { transform: none; }
.cs-formula.is-armed.is-on li:nth-child(3) .cs-f-bar i { transition-delay: .45s; }
.cs-formula.is-armed.is-on li:nth-child(5) .cs-f-bar i { transition-delay: .9s; }
.cs-formula.is-armed.is-on li:nth-child(7) .cs-f-bar i { transition-delay: 1.35s; }
.cs-formula.is-armed.is-on .cs-out-grey { opacity: 0; transition-delay: 1.75s; }
.cs-formula.is-armed.is-on .cs-op { animation: cs-pulse .4s ease-out both; }
.cs-formula.is-armed.is-on li:nth-child(2) { animation-delay: .4s; }
.cs-formula.is-armed.is-on li:nth-child(4) { animation-delay: .85s; }
.cs-formula.is-armed.is-on li:nth-child(6) { animation-delay: 1.3s; }
.cs-formula.is-armed.is-on li:nth-child(8) { animation-delay: 1.72s; }
@keyframes cs-pulse { 0%, 100% { transform: none; opacity: 1; } 45% { transform: scale(1.4); opacity: .55; } }

/* c. the evidence band: scrubbed by the scroll (outer scaleX clips, the inner counter-scales, so the taper never
   stretches); a go or no-go gate (a small diamond) at the end of each step ticks blue as the band passes it */
.cs-band { position: relative; margin-top: 24px; height: 32px; }
.cs-band-clip { position: absolute; inset: 0; overflow: hidden; transform-origin: 0 50%; }
.cs-band-in { position: absolute; inset: 0; transform-origin: 0 50%; }
.cs-band-in svg { width: 100%; height: 100%; display: block; }
.cs-gate { position: absolute; top: 50%; left: calc((100% - 48px) / 3 * var(--k) + 24px * (var(--k) - 1) - 10px); width: 20px; height: 20px; margin-top: -10px; }
.cs-gate::before { content: ""; position: absolute; inset: 3px; transform: rotate(45deg); border: 1.5px solid var(--ring); background: var(--bg); border-radius: 2px; }
.cs-gate i { position: absolute; inset: 3px; transform: rotate(45deg); border-radius: 2px; background: linear-gradient(135deg, #6CC4FE, #6CC4FE); box-shadow: 0 0 10px rgba(108, 196, 254, .45); opacity: 1; transition: opacity .25s ease; }
.cs-gate i::after { content: ""; position: absolute; left: 4px; top: 2px; width: 3px; height: 6px; border: solid #FFFFFF; border-width: 0 1.5px 1.5px 0; transform: rotate(0deg); }
.cs-gate:nth-of-type(3) { left: calc(100% - 20px); }
.cs-band.is-armed .cs-gate i { opacity: 0; }
.cs-band.is-armed .cs-gate.is-on i { opacity: 1; }
@media (max-width: 899.98px) {
  .cs-gate { left: calc(100% / 3 * var(--k) - 10px); }
  .cs-gate:nth-of-type(3) { left: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) { .cs-formula .cs-out-grey { display: none !important; } .cs-formula .cs-f-bar i { transform: none !important; } }
@media (max-width: 599.98px) { .cx-svg .cx-name { font-size: 20px; } .cx-svg text { font-size: 13px; } }

/* ---------- Prompt 19: spacing and motion ----------
   Spacing: the shared scale (a sub line or headline to its content 48px), so each topic fits one screen at 1440 x 900.
   Motion (js/consulting.js adds .is-armed, then .is-on once well in view; once per view; 2D, transform and opacity only;
   reduced motion or no JavaScript: the final state). */
.cs-index { margin-top: 48px; }
.cs-part, .cs-means, .cs-steps, .cs-room { margin-top: var(--g-content); }

/* a. the workforce bars grow from zero while the numbers count; 2027 in an amber gradient with a soft amber shadow */
.cs-bar-t { overflow: visible; }
.cs-bar-t i { transform-origin: 0 50%; }
.cs-bar--now .cs-bar-t i { background: #071B53; box-shadow: 0 8px 20px -10px rgba(7, 27, 83, .45); }
[data-theme="dark"] .cs-bar--now .cs-bar-t i { background: #FFFFFF; box-shadow: none; }
.cs-bars.is-armed .cs-bar-t i { transform: scaleX(0); transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.cs-bars.is-armed .cs-bar--now .cs-bar-t i { transition-delay: .15s; }
.cs-bars.is-armed.is-on .cs-bar-t i { transform: none; }

/* b. the week: the five days fill top-down with the amber hatch, Monday to Friday, while the counter ticks to 14 hrs */
.cs-day-bar i { transform-origin: 50% 0; }
.cs-week.is-armed .cs-day-bar i { transform: scaleY(0); transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.cs-week.is-armed .cs-day:nth-child(2) .cs-day-bar i { transition-delay: .12s; }
.cs-week.is-armed .cs-day:nth-child(3) .cs-day-bar i { transition-delay: .24s; }
.cs-week.is-armed .cs-day:nth-child(4) .cs-day-bar i { transition-delay: .36s; }
.cs-week.is-armed .cs-day:nth-child(5) .cs-day-bar i { transition-delay: .48s; }
.cs-week.is-armed.is-on .cs-day-bar i { transform: none; }

/* c. the way out: a ring draws to 27% (blue to cyan) with the number counting inside it */
.cs-stat { display: grid; justify-items: start; }
.cs-ring { position: relative; width: clamp(200px, 19vw, 260px); aspect-ratio: 1; display: grid; place-items: center; }
.cs-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.cs-ring-bg { fill: none; stroke: var(--line); stroke-width: 8; }
.cs-ring-fg { fill: none; stroke: url(#cs-ring-g); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 27 100; filter: drop-shadow(0 0 6px rgba(166, 219, 255, .35)); }
.cs-ring.is-armed .cs-ring-fg { stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s cubic-bezier(.33, 1, .68, 1); }
.cs-ring.is-armed.is-on .cs-ring-fg { stroke-dasharray: 27 100; }
.cs-ring .cs-stat-n { position: relative; font-size: clamp(48px, 4.6vw, 68px); }
.cs-stat-l { margin-top: 24px; }

/* e. how we decide what to automate: the ink section in the middle of the page (its tokens come from .on-ink) */
.cs-decide { position: relative; overflow: hidden; }
.cs-decide .wrap { position: relative; z-index: 1; }
.cs-decide .cs-formula-wrap { margin-top: var(--g-content); }
.cs-decide .cs-formula { margin-top: 0; }
.cs-decide .cs-f { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.cs-decide .cs-f-bar { background: rgba(255, 255, 255, .12); }
.cs-decide .cs-out-grey { background: #0E2969; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }   /* Prompt 26: opaque, so the white outcome tile and its tick stay hidden until it resolves */
.cs-decide .cs-out-grey b { color: #FFFFFF; }
.cs-decide .cs-start { border-top-color: rgba(255, 255, 255, .12); }
.cs-decide .cs-start-l li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }

/* d. the partnership: the line draws between the two plates; three pulses carry the chips across it */
.cs-links::before { transform-origin: 50% 100%; background: linear-gradient(180deg, var(--signal), var(--tick)); }
.cs-links-p { position: absolute !important; left: 50%; top: 0; bottom: 0; width: 0; padding: 0 !important; border: 0 !important; background: none !important; }
.cs-links-p i { position: absolute; left: -4px; bottom: 0; width: 8px; height: 8px; border-radius: 50%; background: #A6DBFF; box-shadow: 0 0 0 3px rgba(166, 219, 255, .2), 0 0 12px rgba(108, 196, 254, .8); opacity: 0; }
.cs-links.is-armed::before { transform: scaleY(0); transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.cs-links.is-armed > li:not(.cs-links-p) { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.cs-links.is-armed.is-on::before { transform: none; }
.cs-links.is-armed.is-on > li:not(.cs-links-p) { opacity: 1; transform: none; }
.cs-links.is-armed.is-on > li:nth-child(2) { transition-delay: .75s; }
.cs-links.is-armed.is-on > li:nth-child(3) { transition-delay: 1.05s; }
.cs-links.is-armed.is-on > li:nth-child(4) { transition-delay: 1.35s; }
.cs-links.is-armed.is-on .cs-links-p i { animation: cs-carry 1s cubic-bezier(.45, 0, .25, 1) both; }
.cs-links.is-armed.is-on .cs-links-p i:nth-child(1) { animation-delay: .5s; }
.cs-links.is-armed.is-on .cs-links-p i:nth-child(2) { animation-delay: .8s; }
.cs-links.is-armed.is-on .cs-links-p i:nth-child(3) { animation-delay: 1.1s; }
@keyframes cs-carry { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(calc(-1 * var(--h, 64px))); opacity: 0; } }

/* g. who we would like in the room: the role chips arrive round a simple table outline */
.cs-room { align-items: center; }
.cs-table { position: relative; height: 200px; max-width: 640px; width: 100%; }
.cs-table-svg { position: absolute; left: 50%; top: 50%; width: 320px; height: 120px; transform: translate(-50%, -50%); transform: translate(round(-50%, 1px), round(-50%, 1px)); }
.cs-table-svg rect, .cs-table-svg path { fill: none; stroke: var(--ring); stroke-width: 1.5; stroke-linecap: round; }
.cs-table-svg rect { fill: var(--surface); }
.cs-table .cs-room-l { position: absolute; inset: 0; display: block; }
.cs-table .cs-room-l li { position: absolute; white-space: nowrap; box-shadow: 0 1px 2px rgba(7, 27, 83, .05), 0 8px 20px -12px rgba(7, 27, 83, .25); }
.cs-table .cs-room-l li:nth-child(1) { left: 50%; top: 0; transform: translateX(-50%); transform: translateX(round(-50%, 1px)); }
.cs-table .cs-room-l li:nth-child(2) { left: 0; bottom: 0; }
.cs-table .cs-room-l li:nth-child(3) { right: 0; bottom: 0; }
.cs-table.is-armed .cs-room-l li { opacity: 0; translate: 0 10px; scale: .96; transition: opacity .5s ease, translate .7s cubic-bezier(.22, 1, .36, 1), scale .7s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(.2s + var(--i) * .18s); }
.cs-table.is-armed .cs-table-svg { opacity: 0; transition: opacity .6s ease; }
.cs-table.is-armed.is-on .cs-table-svg { opacity: 1; }
.cs-table.is-armed.is-on .cs-room-l li { opacity: 1; translate: 0 0; scale: 1; }
@media (max-width: 599.98px) {
  .cs-table { height: 220px; }
  .cs-table-svg { width: 240px; height: 90px; }
  .cs-table .cs-room-l li { font-size: 14px; white-space: normal; max-width: 46%; text-align: center; }
  .cs-table .cs-room-l li:nth-child(1) { max-width: 70%; }
}

/* h. cards tilt toward the pointer (at most 4 degrees) with a soft sheen, like What we build (fine pointers only) */
.tilt { --rx: 0deg; --ry: 0deg; position: relative; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .45s var(--ease); }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%); opacity: 0; transition: opacity .3s ease; }
:is(.on-ink, [data-theme="dark"]) .tilt::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 45%); }
.tilt.is-hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .tilt { transform: none !important; } .tilt::after { display: none; }
  .cs-ring-fg { transition: none !important; }
}

/* Prompt 19, the fit at 1440 x 900: on wide screens the two plates sit side by side, the line runs between them and the
   pulses carry the chips from the construction engineers (right) to the AI engineers (left); the room's table is lower */
@media (min-width: 1100px) {
  .cs-part { grid-template-columns: minmax(0, 1fr) 232px minmax(0, 1fr); max-width: none; align-items: stretch; }
  .cs-links { flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; }
  .cs-links::before { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; transform-origin: 100% 50%; background: linear-gradient(90deg, var(--signal), var(--tick)); }
  .cs-links.is-armed::before { transform: scaleX(0); }
  .cs-links.is-armed.is-on::before { transform: none; }
  .cs-links.is-armed > li:not(.cs-links-p) { transform: translateX(14px); }
  .cs-links.is-armed.is-on > li:not(.cs-links-p) { transform: none; }
  .cs-links-p { left: 0 !important; right: 0; top: 50%; bottom: auto; width: auto !important; height: 0; }
  .cs-links-p i { left: auto; right: 0; top: -4px; bottom: auto; }
  .cs-links.is-armed.is-on .cs-links-p i { animation-name: cs-carry-x; }
  @keyframes cs-carry-x { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(calc(-1 * var(--w, 232px))); opacity: 0; } }
}
.cs-room { padding-top: 16px; }
.cs-table { height: 148px; }
.cs-table-svg { width: 280px; height: 100px; }
@media (max-width: 599.98px) { .cs-links { flex-direction: column; align-items: center; gap: 8px; } }

/* ---------- Prompt 20: what every AI Pod includes. A glass capsule (a soft blue-to-mint wash) whose thin gradient border
   draws itself as the section enters (SVG stroke, pathLength 100), the six items arriving 90ms apart; one muted line under
   it. js/consulting.js initPod adds .is-armed, then .is-on. ---------- */
.pod { position: relative; padding: 40px 48px; border-radius: 24px; background: linear-gradient(135deg, rgba(243, 248, 253, .7), rgba(255, 255, 255, .55)); box-shadow: 0 1px 2px rgba(7, 27, 83, .04), 0 24px 48px -32px rgba(108, 196, 254, .35); }
[data-theme="dark"] .pod { background: linear-gradient(135deg, rgba(11, 36, 97, .8), rgba(11, 36, 97, .7)); box-shadow: 0 24px 48px -28px rgba(0, 0, 0, .6); }
.pod-edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.pod-edge-r { width: calc(100% - 2px); height: calc(100% - 2px); fill: none; stroke: url(#pod-g); stroke-width: 1.5; stroke-dasharray: 100 0; }
.pod-l { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; }
.pod-l li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.pod-l li i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 12px; background: linear-gradient(135deg, #6CC4FE, #6CC4FE); box-shadow: 0 6px 14px -6px rgba(108, 196, 254, .6); }
.pod-l li i::after { content: ""; position: absolute; left: 10px; top: 7px; width: 6px; height: 11px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pod-note { margin-top: 24px; font-size: 16px; color: var(--muted); }
.pod.is-armed .pod-edge-r { stroke-dasharray: 0 100; transition: stroke-dasharray 1.4s cubic-bezier(.65, 0, .35, 1); }
.pod.is-armed.is-on .pod-edge-r { stroke-dasharray: 100 0; }
.pod.is-armed .pod-l li { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s var(--ease); transition-delay: calc(.35s + var(--i) * 90ms); }
.pod.is-armed.is-on .pod-l li { opacity: 1; transform: none; }
@media (max-width: 1099.98px) { .pod-l { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .pod { padding: 28px 24px; border-radius: 20px; } .pod-edge-r { rx: 21px; ry: 21px; } .pod-l { grid-template-columns: minmax(0, 1fr); gap: 16px; } .pod-l li { font-size: 17px; } }

/* Prompt 28B: no empty charts. A chart goes with its number (data-fact-of: js/facts.js removes it when its fact is not
   shown), and the text block left alone takes the full width of the grid */
.cs-split:has(> :only-child) { grid-template-columns: minmax(0, 1fr); }
.cs-split:has(> :only-child) > div > .sec-h { max-width: 18em; }

/* Prompt 28C: the way out shows F13, "5.5 hours", large with a soft azure glow (navy on light), its full text beneath */
.cs-hrs { color: #071B53; text-shadow: 0 0 28px rgba(108, 196, 254, .35), 0 0 64px rgba(108, 196, 254, .18); }
[data-theme="dark"] .cs-hrs { color: #FFFFFF; text-shadow: 0 0 24px rgba(108, 196, 254, .5), 0 0 64px rgba(108, 196, 254, .25); }
.cs-stat--hrs { margin: 0; }

/* ==========================================================================================================
   Prompt 28D: who we'd like in the room, as a meeting room seen from above (the svg is 760 x 280; the labels are HTML
   pills placed in the same coordinates, so they scale with it). Empty chairs grey and dashed; lit chairs azure with a soft
   glow; the azure lines to the roadmap sheet; the sheet's lime tick (the only lime). The play (.is-armed, then .is-on):
   the sponsor lights (300ms), the process owners 250ms later, our engineers 250ms after; the lines draw (500ms); the
   sheet lands and its tick appears; about 2.5s. Phones: the room scales down and the labels stack above and below it.
   ========================================================================================================== */
.cs-roommap { position: relative; height: auto; max-width: 760px; aspect-ratio: 760 / 280; }
.cs-roommap .rm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rm-table { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.rm-ch { fill: var(--surface); stroke: #8A93A6; stroke-width: 1.5; stroke-dasharray: 3 3; transition: fill .3s var(--ease), stroke .3s ease, filter .3s ease; }
[data-theme="dark"] .rm-ch { stroke: #8A97B5; }
.rm-ch--lit { fill: #6CC4FE; stroke: #6CC4FE; stroke-dasharray: none; filter: drop-shadow(0 0 6px rgba(108, 196, 254, .7)); }
.rm-ptr path { fill: none; stroke: var(--ink); stroke-opacity: .45; stroke-width: 1; transition: opacity .3s ease; }
.rm-links path { fill: none; stroke: #6CC4FE; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease); }
.rm-sheet rect { fill: #FFFFFF; stroke: var(--ink); stroke-width: 1.5; }
.rm-sheet > path { fill: none; stroke: var(--ink); stroke-opacity: .5; stroke-width: 1.5; stroke-linecap: round; }
.rm-sheet { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .4s cubic-bezier(.3, 1.35, .5, 1), opacity .3s ease; }
.rm-tick circle { fill: #E3FB99; }
.rm-tick path { fill: none; stroke: #071B53; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rm-tick { transform-box: fill-box; transform-origin: 50% 50%; transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s ease; }
.rm-sheet-l { position: absolute; left: 50%; top: 60.7%; transform: translateX(-50%); transform: translateX(round(-50%, 1px)); margin: 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; transition: opacity .3s ease; }
.cs-roommap .rm-labels { position: absolute; inset: 0; display: block; }
.cs-roommap .rm-l { position: absolute; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: #FFFFFF; color: #071B53; border: 1px solid #E3EAF3; font-size: 15px; line-height: 1.3; box-shadow: 0 1px 2px rgba(7, 27, 83, .05), 0 8px 20px -12px rgba(7, 27, 83, .25); transition: opacity .3s ease; }
.rm-l1 { right: 77.4%; top: 51.8%; transform: translateY(-50%); transform: translateY(round(-50%, 1px)); }
.rm-l2 { left: 44.1%; top: 15.7%; transform: translate(-50%, -100%); transform: translate(round(-50%, 1px), round(-100%, 1px)); }
.rm-l3 { left: 55.9%; top: 84.3%; transform: translateX(-50%); transform: translateX(round(-50%, 1px)); }
/* the play */
.cs-roommap.is-armed:not(.is-on) .rm-ch--lit { fill: var(--surface); stroke: #8A93A6; stroke-dasharray: 3 3; filter: none; }
.cs-roommap.is-armed:not(.is-on) .rm-ptr path, .cs-roommap.is-armed:not(.is-on) .rm-l { opacity: 0; }
.cs-roommap.is-armed:not(.is-on) .rm-links path { stroke-dashoffset: 1; }
.cs-roommap.is-armed:not(.is-on) .rm-sheet { opacity: 0; transform: translateY(-10px) scale(.85); }
.cs-roommap.is-armed:not(.is-on) .rm-tick { opacity: 0; transform: scale(.3); }
.cs-roommap.is-armed:not(.is-on) .rm-sheet-l { opacity: 0; }
.cs-roommap.is-on .rm-g2, .cs-roommap.is-on .rm-ptr path:nth-child(2), .cs-roommap.is-on .rm-l2 { transition-delay: .25s; }
.cs-roommap.is-on .rm-g3, .cs-roommap.is-on .rm-ptr path:nth-child(3), .cs-roommap.is-on .rm-l3 { transition-delay: .5s; }
.cs-roommap.is-on .rm-links path { transition-delay: .9s; }
.cs-roommap.is-on .rm-sheet, .cs-roommap.is-on .rm-sheet-l { transition-delay: 1.45s; }
.cs-roommap.is-on .rm-tick { transition-delay: 1.95s; }
@media (prefers-reduced-motion: reduce) { .cs-roommap *, .cs-roommap.is-on * { transition: none !important; } }
/* phones: the room scales down; the labels stack above (sponsor, process owners) and below (our engineers), no pointers */
@media (max-width: 599.98px) {
  .cs-roommap { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .cs-roommap .rm-svg { position: relative; inset: auto; order: 2; width: 100%; height: auto; aspect-ratio: 760 / 280; }
  .rm-ptr { display: none; }
  .cs-roommap .rm-labels { position: static; display: contents; }
  .cs-roommap .rm-l { position: static; transform: none; white-space: normal; text-align: center; font-size: 15px; }
  .rm-l1 { order: 0; } .rm-l2 { order: 1; } .rm-l3 { order: 3; }
  .rm-sheet-l { position: static; order: 4; transform: none; }
}
/* the old pill-table rules (Prompt 19) still match .cs-table li; these win over them */
.cs-roommap .rm-labels .rm-l { left: auto; right: auto; top: auto; bottom: auto; max-width: none; }
.cs-roommap .rm-labels .rm-l1 { right: 77.4%; top: 51.8%; transform: translateY(-50%); transform: translateY(round(-50%, 1px)); }
.cs-roommap .rm-labels .rm-l2 { left: 44.1%; top: 15.7%; transform: translate(-50%, -100%); transform: translate(round(-50%, 1px), round(-100%, 1px)); }
.cs-roommap .rm-labels .rm-l3 { left: 55.9%; top: 84.3%; transform: translateX(-50%); transform: translateX(round(-50%, 1px)); }
@media (max-width: 599.98px) { .cs-roommap .rm-labels .rm-l { position: static; transform: none; max-width: 100%; } .cs-roommap { height: auto; } }
/* round 2: the sheet carries its own label; the engineers sit on the outer bottom chairs, so no line crosses a label */
.rm-sheet-l { top: 51.8%; transform: translate(-50%, -50%); transform: translate(round(-50%, 1px), round(-50%, 1px)); color: #071B53; }
.cs-roommap .rm-labels .rm-l3 { left: 50%; }
.cs-roommap .rm-labels { list-style: none; margin: 0; padding: 0; }
@media (max-width: 599.98px) { .rm-sheet-l { position: static; transform: none; } }
@media (max-width: 1199.98px) { .cs-room { grid-template-columns: minmax(0, 1fr); } .cs-roommap { margin-inline: auto; } }   /* the room under its headline, so the sponsor label never meets it */
/* phones: the svg is drawn at 190% and its empty label margins cropped (the labels stack above and below), so the table
   and its chairs fill the column */
@media (max-width: 599.98px) { .cs-roommap { overflow: hidden; } .cs-roommap .rm-svg { width: 190%; max-width: none; margin: -14.5% -45% -12%; } }
/* round 3: the svg and the sheet label share a stage, so the label stays on its sheet at every width */
.rm-stage { position: absolute; inset: 0; }
@media (max-width: 599.98px) {
  .rm-stage { position: relative; inset: auto; order: 2; width: 100%; }
  .cs-roommap .rm-stage .rm-svg { position: relative; display: block; }
  .rm-stage .rm-sheet-l { position: absolute; left: 50%; top: 50%; width: 27%; white-space: normal; text-align: center; line-height: 1.15; letter-spacing: .02em; transform: translate(-50%, -50%); transform: translate(round(-50%, 1px), round(-50%, 1px)); }
}

/* ==========================================================================================================
   Prompt 28E: no blank starts. Every visual on this page shows its frame from the first paint; the plays only add:
   the bars and week fill their visible tracks (within 1.2s), the partnership chips sit in place while the line draws,
   the room shows its table, chairs, labels and sheet while the chairs light and the lines draw, the AI Pod items show
   while the border draws, and the commitment band shows its faint tapered track before the scroll fills it.
   ========================================================================================================== */
.cs-links.is-armed > li:not(.cs-links-p) { opacity: 1; transform: none; }
.cs-roommap.is-armed:not(.is-on) .rm-ptr path, .cs-roommap.is-armed:not(.is-on) .rm-l, .cs-roommap.is-armed:not(.is-on) .rm-sheet-l { opacity: 1; }
.cs-roommap.is-armed:not(.is-on) .rm-sheet { opacity: 1; transform: none; }
.cs-roommap.is-on .rm-links path { transition-delay: .6s; }
.cs-roommap.is-on .rm-tick { transition-delay: 1.15s; }
.pod.is-armed .pod-l li { opacity: 1; transform: none; }
.cs-band::before { content: ""; position: absolute; inset: 0; background: rgba(7, 27, 83, .08); clip-path: polygon(0 44%, 100% 0, 100% 100%, 0 56%); }
[data-theme="dark"] .cs-band::before, .on-ink .cs-band::before { background: rgba(255, 255, 255, .1); }
.cs-bar-t { background: rgba(7, 27, 83, .07); box-shadow: inset 0 0 0 1px rgba(7, 27, 83, .08); }   /* the track shows before the bar grows */
[data-theme="dark"] .cs-bar-t { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cs-bars.is-armed .cs-bar-t i { transition-duration: 1.05s; }   /* both bars done within 1.2s */
/* Prompt 28G: the roadmap label carries its own white backing (the sheet it sits on), so it reads in either theme */
.rm-sheet-l { background: #FFFFFF; color: #071B53; padding: 1px 4px; border-radius: 2px; }

/* Prompt 28H: the brighter lime on white (light theme only): resolved ticks on light sections take #C6EE3E with a fine #A6CC2A edge */
html:not([data-theme="dark"]) .rm-tick circle { fill: #C6EE3E; stroke: #A6CC2A; stroke-width: 1; }

/* Prompt 29: the splits sit on the 12-column grid: text 1 to 5, the figure 7 to 12 (column 6 the breathing room) */
@media (min-width: 900px) {
  .cs-split { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gutter); }
  .cs-split > :first-child { grid-column: 1 / span 5; }
  .cs-split > :nth-child(2) { grid-column: 7 / -1; }
  .cs-split:has(> :only-child) > :first-child { grid-column: 1 / -1; }
  .cs-hero .hero-grid > :first-child { grid-column: 1 / span 6; }
  .cs-hero .hero-grid > :last-child { grid-column: 8 / -1; }
}

/* Prompt 29, the final pass: each bar's source marker sits beside its number (it dropped onto a row of its own) */
.cs-bar { grid-template-columns: 52px minmax(0, 1fr) 88px auto; }
.cs-bar > .src-m { align-self: center; margin-left: 4px; }
@media (max-width: 899.98px) { .cs-bar { grid-template-columns: 44px minmax(0, 1fr) 72px auto; gap: 12px; } }
