/* AI Integration and AI Software Factory. Midnight & Brass, the forge after dark.
   AI Integration hero: an AI chip descends on scroll and lands in a business workflow, then lights it up.
   Software Factory hero: a job card rides the line through eight stations while two engineers work beside it.
   Motion is transform, opacity and SVG strokes; calm mode shows every end state and stills the loops. */
.world-ai {
  --d1: #e0b45e; --d2: #3fd6c3; --d3: #5aa2ff; --d4: #ff7a59; --d5: #a98bff;
  --up: #3ddc97; --down: #ff6170;
  --builder: #ff9a4d; --platform: #5aa2ff; --review: #3fd6c3;
  --glass: linear-gradient(180deg, rgba(21, 32, 48, .78), rgba(12, 18, 28, .82));
  background-image:
    radial-gradient(1200px 640px at 82% -8%, rgba(201, 161, 91, .10), transparent 60%),
    linear-gradient(rgba(220, 230, 245, .026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 230, 245, .026) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.world-ai .pad { padding-block: clamp(76px, 10vw, 136px); }
.world-ai .h2 em, .world-ai .display em { font-style: italic; background: linear-gradient(180deg, #f3dfae, #c9a15b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Glass card (brand) ---------- */
.ai-card {
  --cx: 50%; --cy: 50%; --c: var(--brass);
  position: relative; border-radius: 18px; padding: clamp(20px, 2.3vw, 28px); overflow: hidden; isolation: isolate;
  background: var(--glass); border: 1px solid rgba(220, 230, 245, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 30px 60px -30px rgba(0, 0, 0, .8);
  transition: transform .35s var(--ease-out), border-color .3s, box-shadow .35s;
}
.ai-card::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px 240px at var(--cx) var(--cy), color-mix(in srgb, var(--c) 18%, transparent), transparent 70%); }
.ai-card::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; opacity: .65;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c) 75%, transparent), transparent); }
.ai-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 34px -10px color-mix(in srgb, var(--c) 60%, transparent); }
.ai-card:hover::before { opacity: 1; }
.ai-card h3 { font-family: var(--serif); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.05; letter-spacing: -.02em; margin: 12px 0 10px; }
.ai-card p { color: var(--dim); font-size: 15.5px; margin: 0; }
.ai-card .k { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--c); display: flex; align-items: center; gap: 10px; }
.ai-card .k i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-style: normal;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); color: var(--c); }
.ai-card .k i svg { width: 15px; height: 15px; }
.ai-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: var(--dim); }
.ai-card ul li { display: grid; grid-template-columns: 14px 1fr; gap: 8px; }
.ai-card ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; margin-top: .55em; background: var(--c); box-shadow: 0 0 8px var(--c); }

.ai-kick { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); display: inline-flex; gap: 10px; align-items: center; }
.ai-kick::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.ai-sample { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); border: 1px dashed rgba(220, 230, 245, .2); padding: 3px 8px; border-radius: 99px; }
.ai-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--up); }
.ai-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--up); animation: ai-ping 1.6s var(--ease-out) infinite; }
@keyframes ai-ping { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 151, .85), 0 0 10px var(--up); } 100% { box-shadow: 0 0 0 11px rgba(61, 220, 151, 0), 0 0 10px var(--up); } }

/* ---------- Page switcher (two pages, one section) ---------- */
.ai-switch { position: relative; z-index: 3; display: flex; justify-content: center; margin-top: -26px; }
.ai-switch nav { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(8, 10, 16, .78); border: 1px solid var(--line-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.ai-switch a { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--dim); transition: color .25s, background .25s, box-shadow .3s; }
.ai-switch a i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); transition: background .3s, box-shadow .3s; }
.ai-switch a:hover { color: var(--paper); background: rgba(236, 230, 216, .06); }
.ai-switch a[aria-current="page"] { color: #1a1206; background: linear-gradient(180deg, #f3dca5, var(--brass) 60%, #a9813f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 22px -10px rgba(201, 161, 91, .8); }
.ai-switch a[aria-current="page"] i { background: #1a1206; }

/* =====================================================================
   AI INTEGRATION — HERO: the chip lands in the workflow
   ===================================================================== */
.chip-hero { position: relative; }
.ch-pin { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.38fr); align-items: center; gap: clamp(10px, 3vw, 44px); padding: 100px var(--gutter) 56px; }
.ch-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 620px at 66% 56%, rgba(201, 161, 91, calc(.08 + var(--glow, 0) * .22)), transparent 64%), radial-gradient(600px 400px at 10% 10%, rgba(90, 162, 255, .06), transparent 70%); }
.ch-bg svg { position: absolute; width: min(1200px, 120vw); right: -18vw; top: 50%; transform: translateY(-50%); opacity: .5; }
.ch-copy { position: relative; z-index: 2; max-width: 560px; }
.ch-title { font-size: clamp(46px, 6.4vw, 104px); margin: 18px 0 0; }
.ch-copy .lede { margin: 20px 0 28px; font-size: clamp(17px, 1.5vw, 20px); }
.ch-replay { cursor: pointer; margin-left: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(236, 230, 216, .04); color: var(--dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; transition: color .3s, border-color .3s, transform .4s cubic-bezier(.34, 1.5, .5, 1); }
.ch-replay:hover { color: var(--brass-hi); border-color: rgba(236, 210, 154, .45); transform: translateY(-2px); }
.ch-meter { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.ch-meter .track { width: 160px; height: 2px; border-radius: 2px; background: rgba(236, 230, 216, .1); overflow: hidden; }
.ch-meter .track i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); box-shadow: 0 0 10px var(--brass); }
.ch-meter b { color: var(--brass-hi); font-weight: 500; min-width: 4ch; }
.ch-meter .st { color: var(--dim); white-space: nowrap; }

.ch-stage { position: relative; z-index: 1; width: 100%; max-height: calc(100svh - 140px); aspect-ratio: 1200 / 760; justify-self: center; }
.ch-stage svg { width: 100%; height: 100%; overflow: visible; }
.ch-cap { position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; }

/* SVG parts */
.wf-trace { fill: none; stroke: rgba(220, 230, 245, .12); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wf-lit { fill: none; stroke: url(#wfLit); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: url(#wfGlow); stroke-dasharray: var(--len, 900); stroke-dashoffset: calc(var(--len, 900) * (1 - var(--t, 0))); }
.wf-old { fill: none; stroke: rgba(255, 122, 89, .35); stroke-width: 1.6; stroke-dasharray: 4 7; opacity: calc(1 - var(--land, 0)); }
.wf-node rect.bx { fill: rgba(15, 22, 34, .92); stroke: rgba(220, 230, 245, .16); stroke-width: 1.2; transition: stroke .5s, fill .5s; }
.wf-node.on rect.bx { stroke: color-mix(in srgb, var(--nc) 70%, transparent); fill: rgba(20, 30, 46, .96); }
.wf-node rect.halo { fill: none; stroke: var(--nc); stroke-width: 10; opacity: 0; filter: url(#wfBlur); transition: opacity .6s; }
.wf-node.on rect.halo { opacity: .35; }
.wf-node .ico { fill: none; stroke: var(--dim); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .5s; }
.wf-node.on .ico { stroke: var(--nc); }
.wf-node .nm { font-family: var(--sans); font-size: 21px; font-weight: 500; fill: var(--paper); }
.wf-node .s0, .wf-node .s1 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.2px; transition: opacity .5s; }
.wf-node .s0 { fill: #ff8a73; opacity: 1; }
.wf-node .s1 { fill: var(--nc); opacity: 0; }
.wf-node.on .s0 { opacity: 0; }
.wf-node.on .s1 { opacity: 1; }
.wf-node .pip { fill: #ff8a73; transition: fill .5s; }
.wf-node.on .pip { fill: var(--nc); }
.wf-socket rect { fill: rgba(8, 11, 18, .9); stroke: rgba(236, 210, 154, calc(.25 + var(--land, 0) * .6)); stroke-width: 1.6; stroke-dasharray: 6 6; }
.wf-socket .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; fill: var(--mute); opacity: calc(1 - var(--land, 0)); }
.wf-shock { fill: none; stroke: var(--brass-hi); stroke-width: 2; }
.wf-pkt { fill: #fff3d6; filter: url(#wfGlow); }
.wf-chip-shadow { fill: rgba(0, 0, 0, .55); filter: url(#wfBlur); }
.wf-trail { fill: url(#chipTrail); }
.wf-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; fill: var(--mute); }

/* Before / after strip under the hero copy */
.ch-ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.ch-ba div { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 10, 16, .55); }
.ch-ba span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.ch-ba b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(18px, 1.5vw, 22px); white-space: nowrap; line-height: 1.1; margin-top: 4px; color: var(--ivory); }

@media (max-width: 980px) {
  .ch-pin { grid-template-columns: minmax(0, 1fr); align-items: start; padding-top: 84px; gap: 10px; min-height: 0; }
  .ch-stage { order: -1; max-height: none; }
  .ch-tall .ch-stage { aspect-ratio: 700 / 880; width: min(100%, 460px); }
  .ch-tall .wf-node .s0, .ch-tall .wf-node .s1 { letter-spacing: .3px; font-size: 12px; }
  .ch-bg svg { right: -40vw; }
  .ch-cap { display: none; }
}
@media (max-width: 560px) {
  .ch-ba { display: none; }
  .ch-meter { margin-top: 18px; }
}

/* ---------- Method: start to finish ---------- */
.mt-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.mt-side { position: sticky; top: 110px; }
.mt-side .h2 { margin: 18px 0 18px; }
.mt-dial { margin-top: 30px; position: relative; width: min(340px, 80%); aspect-ratio: 1; }
.mt-dial svg { width: 100%; height: 100%; }
.mt-dial .trk { fill: none; stroke: rgba(236, 230, 216, .08); stroke-width: 10; }
.mt-dial .seg { fill: none; stroke: rgba(236, 230, 216, .14); stroke-width: 10; transition: stroke .5s, filter .5s; }
.mt-dial .seg.lit { stroke: var(--brass-hi); filter: drop-shadow(0 0 6px rgba(236, 210, 154, .6)); }
.mt-dial .ctr { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.mt-dial .ctr b { font-family: var(--serif); font-weight: 400; font-size: 64px; line-height: 1; color: var(--ivory); }
.mt-dial .ctr span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin-top: 8px; max-width: 18ch; }
.mt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.mt-steps li { --c: var(--brass); }
.mt-steps .ai-card { padding-left: 76px; }
.mt-steps .n { position: absolute; left: 22px; top: 24px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: var(--dim); border: 1px solid var(--line-2); background: var(--ink); transition: all .5s var(--ease-out); }
.mt-steps li.lit .n { color: #1a1206; background: var(--brass-hi); border-color: var(--brass-hi); box-shadow: 0 0 0 6px rgba(201, 161, 91, .16), 0 0 24px rgba(236, 210, 154, .45); }
.mt-steps h3 { margin-top: 2px; }
.mt-steps .out { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.mt-steps .out b { color: var(--brass-hi); font-weight: 500; }
@media (max-width: 900px) { .mt-wrap { grid-template-columns: 1fr; } .mt-side { position: static; } .mt-dial { display: none; } }

/* ---------- Every way AI plugs in (explorer) ---------- */
.ex { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); gap: clamp(16px, 2.4vw, 28px); align-items: stretch; }
.ex-list { display: grid; gap: 8px; align-content: start; }
.ex-tab { --c: var(--brass); position: relative; display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(236, 230, 216, .02); color: var(--dim); transition: border-color .3s, background .3s, color .3s, transform .4s var(--ease-out); }
.ex-tab:hover { color: var(--paper); border-color: color-mix(in srgb, var(--c) 35%, transparent); transform: translateX(4px); }
.ex-tab[aria-selected="true"] { color: var(--paper); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 12%, transparent), rgba(236, 230, 216, .02)); box-shadow: 0 0 30px -14px var(--c); }
.ex-tab .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.ex-tab .ic svg { width: 19px; height: 19px; }
.ex-tab b { display: block; font-weight: 500; font-size: 16px; }
.ex-tab small { display: block; font-size: 13px; color: var(--mute); margin-top: 2px; }
.ex-tab .no { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.ex-tab[aria-selected="true"] .no { color: var(--c); }
.ex-panels { position: relative; }
.ex-panel { --c: var(--brass); height: 100%; display: flex; flex-direction: column; }
.ex-panel[hidden] { display: none; }
.ex-panel.ai-card { padding: clamp(24px, 3vw, 38px); }
.ex-panel h3 { font-size: clamp(30px, 3.2vw, 46px); margin: 14px 0 12px; }
.ex-panel .lede { font-size: 17px; margin: 0 0 22px; }
.ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 4px; }
.ex-cols h4 { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px; }
.ex-cols ul { margin: 0; }
.ex-plug { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ex-plug span.lb { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-right: 4px; }
.ex-plug .chip { font-size: 12.5px; }
.ex-guard { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(61, 220, 151, .22); background: rgba(61, 220, 151, .05); font-size: 14.5px; color: var(--dim); }
.ex-guard svg { width: 18px; height: 18px; flex: none; color: var(--up); margin-top: 2px; }
.ex-guard b { color: var(--paper); font-weight: 500; }
.ex-panel.swap { animation: ex-in .55s var(--ease-out); }
@keyframes ex-in { from { opacity: 0; transform: translateY(14px) scale(.99); } }
@media (max-width: 900px) { .ex { grid-template-columns: 1fr; } .ex-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ex-tab { grid-template-columns: 34px 1fr; } .ex-tab .no { display: none; } .ex-tab small { display: none; } .ex-tab .ic { width: 34px; height: 34px; } }
@media (max-width: 560px) { .ex-cols { grid-template-columns: 1fr; } }

/* ---------- Autonomy dial ---------- */
.dial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); align-items: center; }
.dial-viz { position: relative; aspect-ratio: 1.25; max-width: 560px; width: 100%; justify-self: center; }
.dial-viz svg { width: 100%; height: 100%; overflow: visible; }
.dial-viz .arc { fill: none; stroke: rgba(236, 230, 216, .08); stroke-width: 22; stroke-linecap: round; }
.dial-viz .arc-f { fill: none; stroke: url(#dialG); stroke-width: 22; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 25)); transition: stroke-dashoffset .8s var(--ease-out); filter: drop-shadow(0 0 10px rgba(236, 210, 154, .4)); }
.dial-viz .needle { transform-origin: 300px 300px; transform: rotate(calc(-90deg + var(--v, 25) * 1.8deg)); transition: transform .9s cubic-bezier(.34, 1.4, .5, 1); }
.dial-viz .tick { font-family: var(--mono); font-size: 13px; letter-spacing: 2px; fill: var(--mute); transition: fill .4s; }
.dial-viz .tick.on { fill: var(--brass-hi); }
.dial-viz .big { font-family: var(--serif); font-size: 64px; fill: var(--ivory); }
.dial-viz .sm { font-family: var(--mono); font-size: 12px; letter-spacing: 2.4px; fill: var(--dim); }
.dial-ctl { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 22px; }
.dial-ctl button { cursor: pointer; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(236, 230, 216, .04); color: var(--dim); font-size: 14px; transition: all .3s var(--ease-out); }
.dial-ctl button:hover { color: var(--paper); transform: translateY(-2px); border-color: rgba(236, 210, 154, .4); }
.dial-ctl button[aria-pressed="true"] { color: #1a1206; background: linear-gradient(180deg, #f3dca5, var(--brass) 60%, #a9813f); border-color: transparent; box-shadow: 0 8px 22px -10px rgba(201, 161, 91, .9); }
.dial-out h3 { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); margin: 0 0 10px; letter-spacing: -.02em; }
.dial-out p { color: var(--dim); }
.dial-out dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; }
.dial-out dt { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.dial-out dd { margin: 0; color: var(--paper); }
@media (max-width: 900px) { .dial { grid-template-columns: 1fr; } }

/* ---------- Guard grid ---------- */
.guard-grid .ai-card { --c: var(--up); }
.guard-grid .ai-card:nth-child(2) { --c: var(--d3); }
.guard-grid .ai-card:nth-child(3) { --c: var(--d4); }
.guard-grid .ai-card:nth-child(4) { --c: var(--brass-hi); }
.guard-grid .ai-card:nth-child(5) { --c: var(--d2); }
.guard-grid .ai-card:nth-child(6) { --c: var(--d5); }

.nope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.nope div { padding: 18px 20px; border-radius: 16px; border: 1px solid rgba(255, 97, 112, .2); background: rgba(255, 97, 112, .04); font-size: 15px; color: var(--dim); }
.nope b { display: block; color: var(--paper); font-weight: 500; margin-bottom: 4px; }
@media (max-width: 860px) { .nope { grid-template-columns: 1fr; } }

.works { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.works .chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }

/* =====================================================================
   SOFTWARE FACTORY — HERO: the line
   ===================================================================== */
.fx-hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; padding: 120px 0 70px; overflow: hidden; }
.fx-hero .bgfort { position: absolute; width: min(1100px, 110vw); right: -26vw; top: -6%; opacity: .42; pointer-events: none; z-index: -1; }
.fx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 520px at 50% 72%, rgba(201, 161, 91, .14), transparent 65%); }
.fx-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 60px); align-items: end; }
.fx-top .display { font-size: clamp(50px, 7.4vw, 116px); margin: 18px 0 0; }
.fx-top .lede { margin: 0 0 24px; }
.fx-line { position: relative; margin-top: clamp(36px, 5vw, 64px); }
.fx-line svg { width: 100%; height: auto; overflow: visible; }
.fx-belt { fill: none; stroke: rgba(220, 230, 245, .12); stroke-width: 2; }
.fx-belt-lit { fill: none; stroke: url(#fxBelt); stroke-width: 2.6; filter: url(#fxGlow); stroke-dasharray: 1600; stroke-dashoffset: calc(1600 * (1 - var(--p, 0))); }
.fx-dash { fill: none; stroke: rgba(236, 210, 154, .28); stroke-width: 1; stroke-dasharray: 2 10; animation: fx-move 1.2s linear infinite; }
@keyframes fx-move { to { stroke-dashoffset: -12; } }
.fx-st circle.ring { fill: rgba(8, 11, 18, .95); stroke: rgba(220, 230, 245, .2); stroke-width: 1.4; transition: stroke .4s, fill .4s; }
.fx-st circle.glow { fill: var(--brass); opacity: 0; filter: url(#fxBlur); transition: opacity .5s; }
.fx-st .ic { fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.fx-st text { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; fill: var(--mute); transition: fill .4s; }
.fx-st text.n { font-size: 10px; fill: rgba(220, 230, 245, .3); }
.fx-st.done circle.ring { stroke: var(--brass-lo); }
.fx-st.done .ic { stroke: var(--brass); }
.fx-st.done text { fill: var(--dim); }
.fx-st.on circle.ring { stroke: var(--brass-hi); fill: rgba(30, 24, 12, .95); }
.fx-st.on circle.glow { opacity: .55; }
.fx-st.on .ic { stroke: var(--brass-hi); }
.fx-st.on text { fill: var(--brass-hi); }
.fx-card rect { fill: rgba(18, 26, 40, .96); stroke: rgba(236, 210, 154, .55); stroke-width: 1.2; }
.fx-card .t { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.6px; fill: var(--brass-hi); }
.fx-card .b { font-family: var(--sans); font-size: 12px; fill: var(--paper); }
.fx-card .bar { fill: rgba(236, 230, 216, .1); }
.fx-card .barf { fill: var(--brass-hi); }
.fx-lane path { fill: none; stroke-width: 1.4; stroke-dasharray: 3 7; opacity: .55; }
.fx-lane text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 2px; }
.fx-agent { filter: url(#fxGlow); }
.fx-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.fx-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 0; box-shadow: 0 0 10px currentColor; }
.fx-proof { list-style: none; margin: 28px 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; border-top: 1px solid var(--line); }
.fx-proof b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.05; color: var(--ivory); }
.fx-proof span { display: block; font-size: 14px; color: var(--dim); margin-top: 4px; }
@media (max-width: 900px) { .fx-top { grid-template-columns: 1fr; } .fx-proof { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fx-line { margin-inline: calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; } .fx-line svg { width: 900px; max-width: none; } .fx-line::-webkit-scrollbar { display: none; } }

/* ---------- Influences ---------- */
.inf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.inf-grid .ai-card { grid-column: span 2; display: flex; flex-direction: column; }
.inf-grid .ai-card.wide { grid-column: span 3; }
.inf-who { display: flex; align-items: center; gap: 14px; }
.inf-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--serif); font-size: 24px; color: #1a1206;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 30%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 10px 24px -10px var(--c); }
.inf-who b { display: block; font-weight: 500; font-size: 17px; }
.inf-who small { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-top: 3px; }
.inf-grid h3 { font-size: clamp(22px, 2vw, 27px); margin: 18px 0 8px; }
.inf-took { margin-top: auto; padding-top: 16px; }
.inf-took div { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(236, 230, 216, .03); border: 1px solid var(--line); font-size: 14px; color: var(--paper); }
.inf-took span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--c); margin-bottom: 4px; }
@media (max-width: 1000px) { .inf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .inf-grid .ai-card, .inf-grid .ai-card.wide { grid-column: span 1; } }
@media (max-width: 640px) { .inf-grid { grid-template-columns: 1fr; } }

/* ---------- Two engineers ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(14px, 2vw, 24px); align-items: center; }
.duo .ai-card.bld { --c: var(--builder); }
.duo .ai-card.plt { --c: var(--platform); }
.duo .role { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.duo .obj { margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 7%, transparent); }
.duo .obj span { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.duo .obj b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.15; margin-top: 3px; }
.orb { position: relative; aspect-ratio: 1; width: 100%; max-width: 440px; justify-self: center; }
.orb svg { width: 100%; height: 100%; overflow: visible; }
.orb .o1 { fill: none; stroke: color-mix(in srgb, var(--builder) 45%, transparent); stroke-width: 1.2; stroke-dasharray: 3 6; }
.orb .o2 { fill: none; stroke: color-mix(in srgb, var(--platform) 45%, transparent); stroke-width: 1.2; stroke-dasharray: 3 6; }
.orb .core { fill: url(#coreG); }
.orb .coreT { font-family: var(--serif); font-size: 26px; fill: #1a1206; }
.orb .coreS { font-family: var(--mono); font-size: 8.5px; letter-spacing: 1.8px; fill: #3a2a10; }
.orb .spin1 { transform-origin: 220px 220px; animation: orb-spin 14s linear infinite; }
.orb .spin2 { transform-origin: 220px 220px; animation: orb-spin 22s linear infinite reverse; }
.orb .spin3 { transform-origin: 220px 220px; animation: orb-spin 30s linear infinite; }
@keyframes orb-spin { to { transform: rotate(360deg); } }
.orb .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; }
.orb .o3 { fill: none; stroke: rgba(63, 214, 195, .35); stroke-width: 1; stroke-dasharray: 1 8; }
html[data-calm] .orb .spin1, html[data-calm] .orb .spin2, html[data-calm] .orb .spin3, html[data-calm] .fx-dash { animation: none; }
@media (max-width: 1000px) { .duo { grid-template-columns: 1fr 1fr; } .orb { grid-column: 1 / -1; grid-row: 1; max-width: 340px; } }
@media (max-width: 640px) { .duo { grid-template-columns: 1fr; } }

.heal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(40px, 6vw, 80px); }
.heal-viz { position: relative; aspect-ratio: 1; max-width: 460px; width: 100%; justify-self: center; }
.heal-viz svg { width: 100%; height: 100%; overflow: visible; }
.heal-viz .loop { fill: none; stroke: rgba(220, 230, 245, .1); stroke-width: 2; }
.heal-viz .loopf { fill: none; stroke: url(#healG); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 70 930; filter: url(#healGlow); animation: heal-run 5.5s linear infinite; }
@keyframes heal-run { to { stroke-dashoffset: -1000; } }
html[data-calm] .heal-viz .loopf { animation: none; stroke-dasharray: none; opacity: .5; }
.heal-viz .hn circle { fill: rgba(10, 14, 22, .96); stroke: var(--hc); stroke-width: 1.4; }
.heal-viz .hn text { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; fill: var(--paper); }
.heal-viz .hn text.s { fill: var(--dim); font-size: 9.5px; letter-spacing: 1px; font-family: var(--sans); }
.heal-viz .hc { font-family: var(--serif); font-size: 30px; fill: var(--ivory); }
.heal-viz .hcs { font-family: var(--mono); font-size: 9.5px; letter-spacing: 2px; fill: var(--dim); }
.heal-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: h; }
.heal-steps li { counter-increment: h; display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 15.5px; }
.heal-steps li::before { content: counter(h, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--platform); padding-top: 3px; }
.heal-steps b { color: var(--paper); font-weight: 500; }
@media (max-width: 900px) { .heal { grid-template-columns: 1fr; } }

/* ---------- Station stepper ---------- */
.stx-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(8, 10, 16, .55); position: relative; }
.stx-bar::-webkit-scrollbar { display: none; }
.stx-t { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 11px 16px; border-radius: 999px; border: 0; background: none; color: var(--dim); font-size: 14px; white-space: nowrap; transition: color .3s, background .3s, box-shadow .3s; }
.stx-t i { font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.stx-t:hover { color: var(--paper); background: rgba(236, 230, 216, .05); }
.stx-t[aria-selected="true"] { color: #1a1206; background: linear-gradient(180deg, #f3dca5, var(--brass) 60%, #a9813f); box-shadow: 0 8px 22px -10px rgba(201, 161, 91, .9); }
.stx-t[aria-selected="true"] i { color: #3a2a10; }
.stx-prog { height: 2px; border-radius: 2px; background: rgba(236, 230, 216, .08); margin: 14px 8px 0; overflow: hidden; }
.stx-prog i { display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, .125)); background: linear-gradient(90deg, var(--brass-lo), var(--brass-hi)); transition: transform .6s var(--ease-out); box-shadow: 0 0 10px var(--brass); }
.stx-panel { margin-top: 24px; }
.stx-panel[hidden] { display: none; }
.stx-panel.swap > * { animation: ex-in .55s var(--ease-out) both; }
.stx-panel.swap > *:nth-child(2) { animation-delay: .06s; }
.stx-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.stx-main h3 { font-size: clamp(32px, 3.4vw, 50px); }
.stx-main .lede { font-size: 17px; margin: 0 0 18px; }
.stx-side { display: grid; gap: 14px; align-content: start; }
.stx-who { display: flex; flex-wrap: wrap; gap: 8px; }
.stx-who span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; font-size: 13px; border: 1px solid color-mix(in srgb, var(--wc) 40%, transparent); background: color-mix(in srgb, var(--wc) 8%, transparent); color: var(--paper); }
.stx-who span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 8px var(--wc); }
.stx-kv { display: grid; gap: 4px; }
.stx-kv span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.stx-kv b { font-weight: 500; color: var(--paper); font-size: 15.5px; }
.stx-gate { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(236, 210, 154, .28); background: rgba(201, 161, 91, .06); font-size: 14.5px; color: var(--dim); }
.stx-gate svg { width: 18px; height: 18px; flex: none; color: var(--brass-hi); margin-top: 2px; }
.stx-gate b { color: var(--paper); font-weight: 500; }
.stx-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }
@media (max-width: 560px) { .stx-nav .btn { min-height: 44px; padding: 0 14px; font-size: 14px; } .stx-nav [data-stx-play] { display: none; } }
@media (max-width: 900px) { .stx-grid { grid-template-columns: 1fr; } }

/* ---------- Live client board (sample) ---------- */
.lb { --c: var(--brass); border-radius: 24px; border: 1px solid rgba(220, 230, 245, .16); overflow: hidden; position: relative; isolation: isolate;
  background: radial-gradient(700px 300px at 0% 0%, rgba(201, 161, 91, .14), transparent 70%), linear-gradient(180deg, #0c121c, #070a11);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); }
.lb::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .6; background-image: linear-gradient(rgba(220, 230, 245, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 230, 245, .03) 1px, transparent 1px); background-size: 28px 28px; }
.lb-top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.lb-top .ttl { display: flex; align-items: center; gap: 12px; }
.lb-top .ttl svg { width: 26px; height: 26px; filter: drop-shadow(0 0 8px rgba(236, 210, 154, .4)); }
.lb-top .ttl b { font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; }
.lb-top .ttl small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.lb-top .sp { flex: 1; }
.lb-top .clk { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); font-variant-numeric: tabular-nums; }
.lb-body { display: grid; grid-template-columns: 260px minmax(0, 1fr) 300px; min-height: 460px; }
.lb-col { padding: 18px 20px; border-right: 1px solid var(--line); }
.lb-col:last-child { border-right: 0; }
.lb-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; display: flex; justify-content: space-between; }
.lb-ring { position: relative; width: 150px; height: 150px; margin: 4px auto 18px; }
.lb-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lb-ring .t { fill: none; stroke: rgba(236, 230, 216, .08); stroke-width: 9; }
.lb-ring .f { fill: none; stroke: url(#lbRing); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--v, 0)); transition: stroke-dashoffset 1s var(--ease-out); filter: drop-shadow(0 0 6px rgba(236, 210, 154, .5)); }
.lb-ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.lb-ring .c b { font-family: var(--serif); font-weight: 400; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.lb-ring .c span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-top: 4px; }
.lb-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.lb-tree li { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 11px; border: 1px solid var(--line); background: rgba(236, 230, 216, .02); position: relative; }
.lb-tree li.sub { margin-left: 18px; }
.lb-tree li.sub::before { content: ""; position: absolute; left: -12px; top: 50%; width: 10px; height: 1px; background: var(--line-2); }
.lb-tree li i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 8px var(--ac); flex: none; }
.lb-tree li.busy i { animation: lb-pulse 1.3s ease-in-out infinite; }
@keyframes lb-pulse { 50% { transform: scale(1.5); opacity: .55; } }
.lb-tree li em { font-style: normal; margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--mute); text-transform: uppercase; }
.lb-kan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lb-lane { min-height: 330px; border-radius: 14px; padding: 10px; background: rgba(236, 230, 216, .02); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.lb-lane .lh { margin: 2px 2px 4px; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; }
.lb-lane .lh b { color: var(--lc); font-weight: 500; }
.lb-tk { padding: 10px 11px; border-radius: 11px; background: linear-gradient(180deg, rgba(24, 34, 52, .95), rgba(16, 23, 36, .95)); border: 1px solid rgba(220, 230, 245, .12); font-size: 12.5px; color: var(--paper); box-shadow: 0 10px 20px -14px rgba(0, 0, 0, .9); position: relative; overflow: hidden; overflow-wrap: anywhere; }
.lb-tk::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--lc); box-shadow: 0 0 8px var(--lc); }
.lb-tk small { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; color: var(--mute); margin-top: 6px; text-transform: uppercase; }
.lb-tk.fly { animation: lb-fly .7s var(--ease-out); }
@keyframes lb-fly { from { opacity: 0; transform: translateY(-10px) scale(.96); box-shadow: 0 0 0 1px var(--brass-hi), 0 0 24px rgba(236, 210, 154, .5); } }
.lb-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--mono); font-size: 11.5px; line-height: 1.45; color: var(--dim); max-height: 300px; overflow: hidden; }
.lb-log li { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed rgba(220, 230, 245, .07); }
.lb-log li time { color: var(--mute); font-variant-numeric: tabular-nums; }
.lb-log li b { font-weight: 500; color: var(--lc, var(--paper)); }
.lb-log li.new { animation: ex-in .5s var(--ease-out); }
.lb-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 16px; }
.lb-checks div { padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(236, 230, 216, .02); }
.lb-checks span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.lb-checks b { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--up); font-variant-numeric: tabular-nums; }
@media (max-width: 1180px) { .lb-body { grid-template-columns: 1fr 1fr; } .lb-col.mid { grid-column: 1 / -1; grid-row: 1; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 680px) { .lb-body { grid-template-columns: 1fr; } .lb-col { border-right: 0; border-bottom: 1px solid var(--line); } .lb-kan { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lb-lane { min-height: 180px; } }
.lb-under { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
@media (max-width: 860px) { .lb-under { grid-template-columns: 1fr; } }

/* ---------- Tracks ---------- */
.tracks { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.trk { --c: var(--brass); position: relative; padding: 18px 16px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(236, 230, 216, .02); transition: transform .45s cubic-bezier(.34, 1.5, .5, 1), border-color .3s, box-shadow .3s; }
.trk:hover { transform: translateY(-6px) rotate(-1deg); border-color: color-mix(in srgb, var(--c) 50%, transparent); box-shadow: 0 0 30px -12px var(--c); }
.trk i { display: block; width: 30px; height: 3px; border-radius: 3px; background: var(--c); box-shadow: 0 0 10px var(--c); margin-bottom: 14px; }
.trk b { display: block; font-weight: 500; font-size: 15px; }
.trk span { display: block; font-size: 13px; color: var(--dim); margin-top: 4px; }
@media (max-width: 1100px) { .tracks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tracks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.credit { margin-top: 18px; font-size: 13px; color: var(--mute); max-width: 80ch; }
.credit a { color: var(--dim); text-decoration: underline; text-decoration-color: rgba(236, 230, 216, .25); text-underline-offset: 3px; }
.credit a:hover { color: var(--brass-hi); }

/* Calm mode stills every CSS loop on these pages (belt dashes, live pings, busy pulses, orbits, the heal loop). */
html[data-calm] .world-ai *, html[data-calm] .world-ai *::before, html[data-calm] .world-ai *::after { animation: none !important; }
