/* AI Engineering service page. Builds on styles.css tokens. */

/* ─── HERO ─── */
.aie-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); grid-template-areas: "copy mvp" "copy kpis";
  gap: 1.4rem clamp(2rem, 5vw, 5rem); align-items: center;
  min-height: 100vh; min-height: 100svh; padding: calc(68px + clamp(2rem, 6vh, 4.5rem)) var(--gut) clamp(3rem, 8vh, 5rem);
}
.aie-copy { grid-area: copy; }
.aie-h { margin-top: 1.4rem; font-size: clamp(2.6rem, 1rem + 4.6vw, 6.6rem); font-weight: 800; letter-spacing: -.055em; line-height: .93; text-wrap: balance; }
.aie-h em { display: inline-block; background: var(--yellow); border: var(--line); border-radius: .14em; padding: 0 .1em .04em; box-shadow: .05em .05em 0 var(--ink); transform: rotate(-1.5deg); letter-spacing: -.02em; }
.aie-p { margin-top: 1.5rem; max-width: 50ch; color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.aie-hero .hero-cta { margin-top: 1.9rem; }
.aie-micro { margin-top: 1rem; max-width: 46ch; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .05em; color: var(--muted); line-height: 1.6; }
.built { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2rem; }
.built-l { font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem .3rem .35rem; border: var(--line); border-radius: 999px; background: #fff; font-size: .82rem; font-weight: 700; }
.chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.aie-kpis { grid-area: kpis; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.aie-kpis li { border: var(--line); border-radius: 14px; padding: .8rem 1rem; background: #fff; font-size: .85rem; color: var(--ink-2); box-shadow: var(--sh-sm); }
.aie-kpis b { display: block; font-size: 1.5rem; letter-spacing: -.04em; color: var(--ink); }

/* the MVP instrument */
.mvp { grid-area: mvp; position: relative; background: #fff; border: var(--line); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.mvp-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; background: var(--ink); color: var(--paper); }
.mvp-title { font-weight: 800; letter-spacing: -.02em; }
.mvp-state { display: inline-flex; align-items: center; gap: .45rem; padding: .28rem .7rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: background-color .3s; }
.mvp-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.mvp.s4 .mvp-state { background: var(--mint); }
.mvp.s4 .mvp-state i { animation: blink 1s steps(2, jump-none) infinite; }
.mvp-body {
  position: relative; height: 380px; padding: 1rem 1.1rem; display: grid; grid-template-rows: auto auto auto auto 1fr; gap: .75rem; align-content: start;
  background-color: var(--paper); background-image: radial-gradient(rgba(13, 20, 33, .12) 1px, transparent 1.2px); background-size: 18px 18px;
}
/* the idea note starts centre stage, then pins itself to the corner as the spec */
.mvp-idea {
  position: absolute; z-index: 3; left: 50%; top: 50%; width: 15rem; padding: 1rem 1.1rem; background: #fff3a6; border: var(--line); border-radius: 6px; box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--f-serif); font-style: italic; font-size: 1.5rem; line-height: 1.15; text-align: center;
  transform: translate(-50%, -50%) rotate(-3deg); transform-origin: 100% 0;
  transition: transform 700ms var(--spring), opacity 400ms;
}
.mvp.s1 .mvp-idea { transform: translate(calc(-50% + 9rem), calc(-50% - 7.4rem)) rotate(6deg) scale(.42); opacity: .9; }
.mvp.s2 .mvp-idea { opacity: 0; }
.mvp-ui, .mvp-api, .mvp-chat { transition: opacity 450ms var(--ease-out), transform 600ms var(--spring); }
.mvp-ui { display: grid; gap: .7rem; opacity: 0; transform: translateY(14px); }
.mvp.s1 .mvp-ui { opacity: 1; transform: none; }
.mvp-nav { display: flex; gap: .35rem; }
.mvp-nav span { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; padding: .3rem .6rem; border-radius: 7px; border: 1.5px solid var(--ink); background: #fff; }
.mvp-nav span.on { background: var(--yellow); }
.mvp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.mt { border: var(--line); border-radius: 12px; background: #fff; padding: .6rem .7rem; box-shadow: 3px 3px 0 var(--ink); }
.mt b { display: block; font-size: clamp(1.2rem, .9rem + 1vw, 1.7rem); letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mt span { font-size: .72rem; color: var(--muted); }
.mt:nth-child(1) { background: #fff7d6; } .mt:nth-child(2) { background: #e3f6ff; } .mt:nth-child(3) { background: #d6f7ec; }
/* prototype day: a wireframe of the same tiles */
.mvp:not(.s2) .mt, .mvp:not(.s2) .mvp-nav span { background: #fff; box-shadow: none; border-style: dashed; color: transparent; }
.mvp:not(.s2) .mt b, .mvp:not(.s2) .mt span { background: rgba(13, 20, 33, .1); border-radius: 4px; color: transparent; }
.mvp-spark { height: 46px; border: 1.5px dashed rgba(13, 20, 33, .2); border-radius: 10px; padding: 4px 6px; }
.mvp.s2 .mvp-spark { border-style: solid; border-color: var(--ink); background: #fff; }
.mvp-spark svg { width: 100%; height: 100%; display: block; }
.spark { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 400; stroke-dashoffset: calc(400 - var(--spark, 0) * 400); vector-effect: non-scaling-stroke; }
.mvp-api { display: flex; flex-wrap: wrap; gap: .4rem; opacity: 0; transform: translateX(-20px); }
.mvp.s3 .mvp-api { opacity: 1; transform: none; }
.api { font-family: var(--f-mono); font-size: .68rem; font-weight: 700; padding: .3rem .6rem; border-radius: 7px; background: var(--ink); color: var(--paper); }
.api.mcp { background: var(--purple); }
.mvp-chat { align-self: end; display: grid; gap: .4rem; opacity: 0; transform: translateY(14px); }
.mvp.s3 .mvp-chat { opacity: 1; transform: none; }
.cq, .ca { font-size: .86rem; line-height: 1.35; padding: .55rem .75rem; border: 1.5px solid var(--ink); border-radius: 12px; }
.cq { display: flex; align-items: center; gap: .5rem; background: var(--cream); font-weight: 700; }
.cq img { width: 18px; height: 18px; border-radius: 50%; }
.ca { background: var(--ink); color: var(--paper); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .5s var(--spring); }
.cvia { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mint-d); opacity: 0; transition: opacity .35s .2s; }
.mvp.s4 .ca, .mvp.s4 .cvia { opacity: 1; transform: none; }

/* the 30-day rail */
.mvp-rail { position: relative; height: 92px; border-top: var(--line); background: #fff; padding: 0 1.4rem; }
.rail-ticks { position: absolute; left: 1.4rem; right: 1.4rem; top: 40px; height: 14px; display: flex; justify-content: space-between; align-items: flex-end; }
.rail-ticks i { width: 2px; height: 6px; background: rgba(13, 20, 33, .35); border-radius: 1px; }
.rail-ticks i.major { height: 14px; background: var(--ink); }
.rail-ticks i.past { background: var(--ink); }
.rail-marks { position: absolute; left: 1.4rem; right: 1.4rem; top: 62px; height: 16px; }
.rail-marks span { position: absolute; left: calc((var(--d) - 1) / 29 * 100%); transform: translateX(-50%); font-family: var(--f-mono); font-size: .6rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.rail-marks span:first-child { transform: none; } .rail-marks span:last-child { transform: translateX(-100%); }
.rail-knob { position: absolute; top: 34px; left: calc(1.4rem + var(--k, 0) * (100% - 2.8rem)); width: 26px; height: 26px; margin-left: -13px; border: var(--line); border-radius: 50%; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); pointer-events: none; }
.rail-day { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: .2rem .5rem; border-radius: 6px; background: var(--ink); color: var(--paper); font-family: var(--f-mono); font-size: .64rem; font-weight: 700; white-space: nowrap; }
.rail-range { position: absolute; inset: 20px 0 0; width: 100%; height: 60px; margin: 0; opacity: 0; cursor: grab; }
.rail-range:active { cursor: grabbing; }
.mvp-rail:has(.rail-range:focus-visible) .rail-knob { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ─── WHAT WE SHIP ─── */
.ship { display: grid; grid-template-columns: auto 1fr; align-items: stretch; background: var(--ink); color: var(--paper); border-block: var(--line); }
.ship-l { display: grid; place-items: center; padding: 1rem 1.4rem; writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); border-left: 1px solid rgba(255, 253, 247, .2); }
.ship-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.ship-row li { padding: 1.6rem 1.3rem; border-left: 1px solid rgba(255, 253, 247, .2); font-size: .88rem; color: rgba(255, 253, 247, .72); line-height: 1.4; }
.ship-row b { display: block; font-size: clamp(1.5rem, 1rem + 1.4vw, 2.4rem); letter-spacing: -.045em; color: var(--paper); margin-bottom: .3rem; line-height: 1; }
.ship-row li:nth-child(1) b { color: var(--yellow); }

/* ─── SOUND FAMILIAR ─── */
.fam { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--paper); }
.fam-copy { max-width: 62rem; }
.fam-hint { margin-top: 1rem; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fam-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.6rem; align-items: start; }
.fam-list { border-top: var(--line); }
.fam-list button {
  width: 100%; display: flex; align-items: center; gap: 1rem; text-align: left; padding: 1.15rem .6rem 1.15rem 0; border-bottom: var(--line);
  font-size: clamp(1.02rem, .95rem + .45vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; transition: background-color var(--d-fast), padding var(--d-std) var(--spring);
}
.fam-list button i { flex: none; position: relative; width: 30px; height: 30px; border: var(--line); border-radius: 8px; background: #fff; transition: background-color var(--d-fast), transform 420ms var(--spring); }
.fam-list button i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-weight: 800; transform: scale(0); transition: transform 420ms var(--spring); }
.fam-list button:hover { background: var(--cream); padding-left: .6rem; }
.fam-list button[aria-pressed="true"] { background: #fff7d6; padding-left: .6rem; }
.fam-list button[aria-pressed="true"] i { background: var(--yellow); transform: rotate(-8deg); }
.fam-list button[aria-pressed="true"] i::after { transform: scale(1); }
.verdict { position: sticky; top: 100px; background: var(--ink); color: var(--paper); border: var(--line); border-radius: 22px; padding: 1.4rem; box-shadow: 10px 10px 0 var(--yellow); transition: box-shadow .3s; }
.verdict[data-hit="1"] { box-shadow: 10px 10px 0 var(--pink); }
.vd-count { font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 253, 247, .7); }
.vd-count b { display: inline-block; font-family: var(--f-sans); font-size: 3.4rem; letter-spacing: -.06em; color: var(--yellow); margin-right: .2rem; vertical-align: -.25em; }
.vd-count b.pop { animation: pop 420ms var(--spring); }
@keyframes pop { from { transform: scale(1.5) rotate(-6deg); } }
.vd-meme { margin: 1rem 0; border: 2px solid var(--paper); border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--ink-2); display: grid; }
.vd-meme img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--spring); }
.verdict[data-hit="1"] .vd-meme img { transform: scale(1.04) rotate(-1deg); }
.vd-t { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.vd-t span { display: block; margin-top: .35rem; font-weight: 500; font-size: .92rem; color: rgba(255, 253, 247, .72); }
.vd-hit { display: none; font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 1.7rem; }
.vd-hit span { font-family: var(--f-sans); font-style: normal; }
.verdict[data-hit="1"] .vd-hit { display: block; }
.verdict[data-hit="1"] .vd-wait { display: none; }

/* ─── THE SHIFT: a split screen, read side by side ─── */
.shift-sec { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--cream); border-top: var(--line); }
.shift-head { max-width: 64rem; margin-bottom: 2.6rem; }
.split { border: var(--line); border-radius: 24px; overflow: hidden; box-shadow: 10px 10px 0 var(--ink); background: var(--paper); }
.sp-hd, .sp-row { display: grid; grid-template-columns: minmax(0, 1fr) 3.4rem minmax(0, 1fr); }
.sp-hd p { padding: 1.1rem clamp(1rem, 2.4vw, 2rem); font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.sp-hb { color: #c2185b; }
.sp-ha { background: var(--ink); color: var(--mint); }
.sp-hd span { background: linear-gradient(90deg, var(--paper) 50%, var(--ink) 50%); }
.sp-row { border-top: 1px solid rgba(13, 20, 33, .14); }
.sp-row > p { display: flex; align-items: center; gap: .9rem; min-height: 4.8rem; padding: .9rem clamp(1rem, 2.4vw, 2rem); font-size: clamp(1rem, .85rem + .75vw, 1.6rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.sp-row > p::before { flex: none; display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 8px; font-size: .58em; font-weight: 800; }
.sp-b { color: var(--ink-2); }
.sp-b::before { content: "✕"; background: #ffe6f0; color: #c2185b; border: 2px solid var(--ink); }
.sp-a { background: var(--ink); color: var(--paper); border-top: 1px solid rgba(255, 253, 247, .1); margin-top: -1px; }
.sp-a::before { content: "✓"; background: var(--mint); color: var(--ink); }
.sp-row > i { position: relative; display: grid; place-items: center; font-style: normal; font-weight: 800; background: linear-gradient(90deg, var(--paper) 50%, var(--ink) 50%); }
.sp-row > i::after { content: "→"; display: grid; place-items: center; width: 36px; height: 36px; border: var(--line); border-radius: 50%; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); position: absolute; color: var(--ink); font-size: 1.05rem; }
.sp-row > i { color: transparent; }
/* arrival: each pair lands as you reach it; the "before" dims once its fix is on screen */
.split.js .sp-a { transform: translateX(28px); opacity: 0; transition: transform 700ms var(--spring), opacity .4s; }
.split.js .sp-row > i::after { transform: scale(0) rotate(-90deg); transition: transform 600ms var(--spring) .12s; }
.split.js .sp-b { transition: opacity .5s .2s; }
.split.js .sp-row.on .sp-a { transform: none; opacity: 1; }
.split.js .sp-row.on > i::after { transform: none; }
.split.js .sp-row.on .sp-b { opacity: .62; }
.sp-row:hover .sp-b { opacity: 1 !important; }

/* ─── CAPABILITIES (deliberately still) ─── */
.caps { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--paper); border-top: var(--line); }
.caps-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1rem 4rem; align-items: end; margin-bottom: 2.6rem; }
.caps-head .eyebrow { grid-column: 1 / -1; margin-bottom: -.4rem; }
.caps-head > p { color: var(--ink-2); max-width: 40ch; padding-bottom: .5rem; }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: var(--line); border-left: var(--line); }
.caps-grid li { padding: 1.6rem 1.5rem 1.8rem; border-right: var(--line); border-bottom: var(--line); display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; align-content: start; }
.caps-grid .sym { grid-row: 1 / 3; display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border: var(--line); border-radius: 10px; font-family: var(--f-mono); font-weight: 700; font-size: 1rem; box-shadow: 3px 3px 0 var(--ink); background: var(--yellow); }
.caps-grid li:nth-child(5n+2) .sym { background: var(--pink); } .caps-grid li:nth-child(5n+3) .sym { background: var(--blue); } .caps-grid li:nth-child(5n+4) .sym { background: var(--mint); } .caps-grid li:nth-child(5n+5) .sym { background: #fff; }
.caps-grid h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; align-self: center; }
.caps-grid p { grid-column: 2; color: var(--ink-2); font-size: .94rem; }

/* ─── PROJECTS ─── */
.proj { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--ink); color: var(--paper); border-top: var(--line); }
.proj .eyebrow { color: rgba(255, 253, 247, .6); }
.proj-head { max-width: 62rem; margin-bottom: 3rem; }
.proj-head > p { margin-top: 1.2rem; color: rgba(255, 253, 247, .72); max-width: 60ch; }
.proj-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); }
.gauge-col { position: relative; }
.gauge-card { position: sticky; top: 96px; background: var(--paper); color: var(--ink); border: 2px solid var(--paper); border-radius: 22px; padding: 1rem; box-shadow: 10px 10px 0 var(--yellow); }
.g-img { aspect-ratio: 16 / 10; border: var(--line); border-radius: 14px; overflow: hidden; background: var(--ink-2); }
.g-img img { width: 100%; height: 100%; object-fit: cover; }
.gauge { display: block; width: 72%; margin: .9rem auto 0; overflow: visible; }
.g-arc { fill: none; stroke: rgba(13, 20, 33, .1); stroke-width: 18; }
.g-seg { fill: none; stroke-width: 18; stroke: var(--ink); }
.g-seg.s1 { stroke: var(--mint); } .g-seg.s2 { stroke: var(--blue); } .g-seg.s3 { stroke: var(--yellow); } .g-seg.s4 { stroke: var(--pink); }
.g-needle { transform-box: view-box; transform-origin: 110px 112px; transform: rotate(var(--ang, 0deg)); }
.g-needle line { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.g-needle circle { fill: var(--ink); }
.g-lbl { display: flex; align-items: baseline; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: .4rem; text-align: center; }
.g-level { font-size: 1.7rem; letter-spacing: -.045em; }
.g-name { font-size: .86rem; color: var(--ink-2); }
.g-scale { display: flex; justify-content: space-between; width: 80%; margin: .5rem auto 0; font-family: var(--f-mono); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.proj-list { counter-reset: pj; }
.pj { position: relative; padding: 1.8rem 0 1.9rem 1.6rem; border-top: 1px solid rgba(255, 253, 247, .2); counter-increment: pj; transition: opacity .35s; }
.pj::before { content: ""; position: absolute; left: 0; top: 1.9rem; bottom: 1.9rem; width: 4px; border-radius: 2px; background: rgba(255, 253, 247, .15); transition: background-color .3s; }
.pj.on::before { background: var(--yellow); }
.pj-lv { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pj-lv::before { content: counter(pj, decimal-leading-zero); color: rgba(255, 253, 247, .45); }
.pj-lv i { font-style: normal; padding: .18rem .5rem; border-radius: 6px; color: var(--ink); }
.lv5 i { background: var(--pink); } .lv4 i { background: #ff9f7a; } .lv3 i { background: var(--yellow); } .lv2 i { background: var(--blue); } .lv1 i { background: var(--mint); }
.pj h3 { margin-top: .7rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.pj > p:not(.pj-lv):not(.pj-tags) { margin-top: .8rem; color: rgba(255, 253, 247, .72); max-width: 62ch; }
.pj-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.pj-tags span { font-family: var(--f-mono); font-size: .66rem; padding: .25rem .55rem; border: 1px solid rgba(255, 253, 247, .35); border-radius: 6px; color: rgba(255, 253, 247, .85); }
.pj-img-m { display: none; }

/* ─── ENGAGEMENT ─── */
.eng { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--paper); }
.eng-head { max-width: 60rem; margin-bottom: 3rem; }
.eng-head > p { margin-top: 1.2rem; color: var(--ink-2); max-width: 62ch; }
.eng-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; padding-top: 2.2rem; }
.eng-line { position: absolute; left: 0; right: 0; top: 10px; width: 100%; height: 6px; overflow: visible; }
.eng-line path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.eng-steps li { position: relative; border: var(--line); border-radius: 20px; padding: 1.6rem 1.4rem 1.8rem; background: #fff; box-shadow: 6px 6px 0 var(--ink); transform: translateY(18px); opacity: .35; transition: transform 700ms var(--spring), opacity .4s, background-color .3s; }
.eng-steps li::before { content: ""; position: absolute; top: calc(-2.2rem + 2px); left: 1.4rem; width: 22px; height: 22px; border: var(--line); border-radius: 50%; background: #fff; transition: background-color .3s, transform 500ms var(--spring); }
.eng-steps li.on { transform: none; opacity: 1; }
.eng-steps li.on::before { background: var(--yellow); transform: scale(1.15); }
.eng-steps li:nth-child(4) { background: var(--yellow); }
.ph { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.eng-steps h3 { margin: .7rem 0 .6rem; font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.eng-steps li p:last-child { color: var(--ink-2); font-size: .95rem; }
.eng-note { margin-top: 2rem; padding: 1rem 1.2rem; border: 2px dashed rgba(13, 20, 33, .35); border-radius: 14px; color: var(--ink-2); max-width: 72ch; }

/* ─── SATISFACTION ─── */
.sat { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--yellow); border-top: var(--line); overflow: hidden; }
.sat-h { font-size: clamp(4rem, 17vw, 19rem); font-weight: 800; letter-spacing: -.075em; line-height: .78; margin-left: -.04em; }
.sat-p { margin-top: 1.6rem; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); font-weight: 700; letter-spacing: -.02em; max-width: 40ch; }
.sat-list { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.sat-list li { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--paper); border: var(--line); border-radius: 14px; box-shadow: 4px 4px 0 var(--ink); font-weight: 600; line-height: 1.35; }
.sat-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: var(--line); border-radius: 7px; background: #fff; font-weight: 800; color: transparent; transition: background-color .3s, color .3s, transform 520ms var(--spring); }
.sat-list li.on::before { background: var(--mint); color: var(--ink); transform: rotate(-10deg) scale(1.1); }

/* ─── PROOF ─── */
.proof { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--paper); border-top: var(--line); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.6rem; }
.pcard { display: flex; flex-direction: column; gap: .7rem; text-decoration: none; padding: 1rem 1rem 1.4rem; background: #fff; border: var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); transition: transform var(--d-std) var(--spring), box-shadow var(--d-std) var(--spring); }
.pcard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: var(--line); border-radius: 14px; }
.pcard:hover { transform: translate(-3px, -3px) rotate(-.4deg); box-shadow: 12px 12px 0 var(--ink); }
.pk { font-family: var(--f-mono); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-top: .4rem; }
.pcard h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.pcard p { color: var(--ink-2); }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.tags i { font-style: normal; font-family: var(--f-mono); font-size: .66rem; padding: .25rem .55rem; border: 1.5px solid var(--ink); border-radius: 6px; }
.go { margin-top: auto; font-weight: 800; }

/* ─── WE BACK IT ─── */
.back { padding: clamp(5rem, 14vh, 9rem) var(--gut); background: var(--ink); color: var(--paper); }
.back .eyebrow { color: rgba(255, 253, 247, .6); }
.back-h { font-size: clamp(2.4rem, 1.2rem + 5vw, 7rem); font-weight: 800; letter-spacing: -.055em; line-height: .95; max-width: 18ch; }
.back-h em { color: var(--yellow); }
.back > p:last-child { margin-top: 1.8rem; max-width: 62ch; color: rgba(255, 253, 247, .75); font-size: 1.08rem; }

/* ─── FINAL (page variant) ─── */
.page-aie .fin-card h2 { font-size: clamp(2.4rem, 1rem + 3.2vw, 5rem); }
.page-aie .fin-card h2 em { font-size: 1em; transform: rotate(-2deg); }
.fin-steps { display: grid; gap: .1rem; margin: .4rem 0 1.4rem; border-top: 1px solid rgba(13, 20, 33, .15); }
.fin-steps li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid rgba(13, 20, 33, .15); color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.fin-steps b { display: grid; place-items: center; height: 1.9rem; border: var(--line); border-radius: 8px; background: var(--yellow); font-family: var(--f-mono); font-size: .72rem; }
.fin-steps li:nth-child(2) b { background: var(--pink); } .fin-steps li:nth-child(3) b { background: var(--mint); }
.fin-steps strong { color: var(--ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1080px) {
  .ship-row { grid-template-columns: repeat(3, 1fr); }
  .ship-row li:nth-child(n+4) { border-top: 1px solid rgba(255, 253, 247, .2); }
}
@media (max-width: 900px) {
  .aie-hero { grid-template-columns: 1fr; grid-template-areas: "copy" "mvp" "kpis"; min-height: 0; }
  .fam-grid, .proj-wrap, .caps-head { grid-template-columns: 1fr; }
  .verdict { position: static; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
  .gauge-col { display: none; }
  .pj-img-m { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 2px solid var(--paper); border-radius: 14px; margin-top: 1rem; }
  .eng-steps { grid-template-columns: 1fr; gap: 1rem; padding-top: 0; padding-left: 2.4rem; }
  .eng-line { display: none; }
  .eng-steps::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 3px; background: var(--ink); border-radius: 2px; }
  .eng-steps li::before { top: 1.6rem; left: -2.4rem; }
  .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sp-hd, .sp-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sp-row > i { display: none; }
  .sp-hd span { display: none; }
  .sp-row > p { font-size: .92rem; gap: .5rem; padding: .8rem .75rem; min-height: 4.6rem; }
  .sp-row > p::before { width: 1.5em; height: 1.5em; }
  .ship { grid-template-columns: 1fr; }
  .ship-l { writing-mode: horizontal-tb; transform: none; justify-content: start; padding: 1rem var(--gut) 0; border: 0; }
  .ship-row { grid-template-columns: 1fr 1fr; }
  .ship-row li:nth-child(n+3) { border-top: 1px solid rgba(255, 253, 247, .2); }
  .ship-row li:last-child { grid-column: 1 / -1; }
  .caps-grid { grid-template-columns: 1fr; }
  .mvp-body { height: 400px; padding: .8rem; }
  .mvp.s1 .mvp-idea { transform: translate(calc(-50% + 6.5rem), calc(-50% - 7.6rem)) rotate(6deg) scale(.36); }
  .mvp-idea { width: 13rem; font-size: 1.3rem; }
  .aie-kpis b { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .eng-steps li { transform: none; opacity: 1; }
}

/* ═════════ shared pieces for automation / foundation ═════════ */
.hero-eyebrow-note { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }

/* logo rails */
.logos { padding: clamp(2.4rem, 6vh, 3.6rem) 0; background: var(--paper); border-bottom: var(--line); overflow: hidden; }
.logos-l { padding: 0 var(--gut); margin-bottom: 1.4rem; font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.rail-row { overflow: hidden; }
.rail-row + .rail-row { margin-top: .8rem; }
.rtrack { display: flex; align-items: center; gap: clamp(1.6rem, 3vw, 3rem); width: max-content; will-change: transform; }
.rtrack img.cl { height: 38px; width: auto; max-width: 150px; object-fit: contain; transition: transform .35s var(--spring); }
.rtrack img.cl:hover { transform: scale(1.06); }
.ichip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .85rem .45rem .45rem; border: var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .9rem; white-space: nowrap; box-shadow: 2px 2px 0 var(--ink); }
.ichip img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; background: #fff; }
.integr { padding: clamp(5rem, 12vh, 8rem) 0; background: var(--cream); border-top: var(--line); overflow: hidden; }
.integr-head { padding: 0 var(--gut); max-width: 64rem; margin-bottom: 2.4rem; }
.integr-head > p { margin-top: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.integr .rtrack { gap: .8rem; padding: .3rem 0; }

/* spotlight: steps on one side, a sticky scene on the other */
.spot { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--cream); border-top: var(--line); }
.spot-head { max-width: 62rem; }
.spot-head > p { margin-top: 1.1rem; color: var(--ink-2); max-width: 62ch; }
.sp-tabs { position: sticky; top: 68px; z-index: 6; display: flex; gap: .5rem; flex-wrap: wrap; margin: 2.2rem calc(var(--gut) * -1) 0; padding: .8rem var(--gut); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(13, 20, 33, .12); }
.sp-tab { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: var(--line); border-radius: 999px; background: #fff; font-weight: 700; font-size: .88rem; transition: background-color .2s, transform .4s var(--spring); }
.sp-tab b { font-family: var(--f-mono); font-size: .66rem; }
.sp-tab.on { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.sp-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); }
.sp-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; opacity: .35; transition: opacity .35s; }
.sp-step.on { opacity: 1; }
.sp-step .ph { margin-bottom: .6rem; }
.sp-step h3 { font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.sp-step > p { margin-top: 1rem; color: var(--ink-2); max-width: 52ch; }
.ticks { margin-top: 1.3rem; display: grid; gap: .55rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: var(--line); border-radius: 6px; background: var(--mint); font-size: .7rem; font-weight: 800; margin-top: 1px; }
.sp-stage { position: relative; }
.sp-sticky { position: sticky; top: calc(68px + 5.4rem); height: min(560px, calc(100vh - 68px - 7rem)); }
.sp-scene { position: absolute; inset: 0; background: #fff; border: var(--line); border-radius: 22px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; opacity: 0; transform: translateY(24px) scale(.97) rotate(1deg); transition: opacity .35s, transform .7s var(--spring); pointer-events: none; }
.sp-scene.on { opacity: 1; transform: none; pointer-events: auto; }
.sp-scene * { animation-play-state: paused !important; }
.sp-scene.on * { animation-play-state: running !important; }
.scn-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 1rem; background: var(--ink); color: var(--paper); font-weight: 800; font-size: .92rem; }
.scn-top i { font-style: normal; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 999px; background: var(--mint); color: var(--ink); }
.scn-body { padding: 1.1rem; height: calc(100% - 44px); background-color: var(--paper); background-image: radial-gradient(rgba(13, 20, 33, .1) 1px, transparent 1.2px); background-size: 18px 18px; }

/* testimonials */
.quotes { padding: clamp(5rem, 12vh, 8rem) 0; background: var(--paper); border-top: var(--line); }
.quotes-head { padding: 0 var(--gut); max-width: 60rem; }
.q-row { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); padding: 2.4rem var(--gut) 1.6rem; scrollbar-width: thin; }
.q { flex: 0 0 min(460px, 84vw); scroll-snap-align: start; display: flex; flex-direction: column; gap: 1rem; padding: 1.6rem; background: #fff; border: var(--line); border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); }
.q:nth-child(odd) { transform: rotate(-.8deg); } .q:nth-child(even) { transform: rotate(.7deg); }
.q:first-child { background: var(--yellow); }
.q-stat { font-size: 2.6rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.q-stat span { display: block; font-size: .8rem; letter-spacing: 0; font-weight: 600; color: var(--ink-2); margin-top: .3rem; }
.q-logo { height: 30px; width: auto; max-width: 140px; object-fit: contain; object-position: left; }
.q blockquote { margin: 0; font-size: 1.08rem; line-height: 1.5; font-weight: 500; }
.q-who { margin-top: auto; display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid rgba(13, 20, 33, .15); }
.q-who img, .q-who .ini { width: 44px; height: 44px; border-radius: 50%; border: var(--line); object-fit: cover; flex: none; }
.q-who .ini { display: grid; place-items: center; background: var(--cream); font-family: var(--f-mono); font-weight: 700; font-size: .8rem; }
.q-who b { display: block; font-size: .95rem; } .q-who span { font-size: .8rem; color: var(--muted); }

/* case grid */
.cases { padding: clamp(5rem, 12vh, 8rem) var(--gut); background: var(--cream); border-top: var(--line); }
.cases .proof-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cases .proof-grid:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .cases .proof-grid:has(> :nth-child(4)) { grid-template-columns: 1fr; } }
.pcard .logos-s { display: flex; gap: .6rem; align-items: center; }
.pcard .logos-s { flex-wrap: wrap; gap: .8rem; margin-top: .2rem; }
.pcard .logos-s img { width: auto; height: 24px; max-width: 110px; aspect-ratio: auto; object-fit: contain; object-position: left center; border: 0; border-radius: 0; background: none; }

@media (max-width: 900px) {
  .sp-wrap { grid-template-columns: 1fr; }
  .sp-stage { order: -1; position: sticky; top: calc(68px + 3.6rem); z-index: 4; }
  .sp-sticky { position: relative; top: 0; height: 300px; }
  .sp-step { min-height: 0; padding: 2.4rem 0; }
  .sp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .sp-tab { flex: none; }
}

/* shared: one-line definition band, 4-step engagement, 10-stat strip */
/* in one line */
.oneline { display: grid; grid-template-columns: auto 1fr; gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: start; padding: clamp(3rem, 8vh, 5rem) var(--gut); background: var(--yellow); border-top: var(--line); }
.ol-l { font-family: var(--f-mono); font-size: var(--t-mono); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding-top: .6rem; }
.ol-t { font-size: clamp(1.3rem, 1rem + 1.4vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; max-width: 44ch; }
.ship-2 .ship-row { grid-template-columns: repeat(5, 1fr); }
.ship-2 .ship-row li:nth-child(n+6) { border-top: 1px solid rgba(255, 253, 247, .2); }

.eng-4 { grid-template-columns: repeat(4, 1fr); }
.eng-4 li:nth-child(4) { background: #fff; }
.eng-4 li:nth-child(5) { background: var(--yellow); }
@media (max-width: 1080px) { .eng-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .eng-4 { grid-template-columns: 1fr; } .oneline { grid-template-columns: 1fr; } }

.eng-steps li { min-width: 0; }
.viz { overflow: hidden; }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }
