/* Home page. */

/* Hero */
.hero { background: var(--navy-deep); color: #ffffff; position: relative; overflow: hidden; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -40% 10% auto 10%; height: 160%; background: radial-gradient(closest-side, rgb(74 134 232 / .35), transparent); pointer-events: none; }
.hc { position: relative; display: grid; justify-items: center; padding-block: clamp(72px, 10vw, 150px); }
.hc h1 { font-size: clamp(40.5px, 5.4vw, 85px); line-height: 1.02; max-width: 16ch; margin: 0 auto; color: #ffffff; }
.hc .lede { margin: 26px auto 0; font-size: clamp(18px, .8vw + 12px, 21.5px); color: var(--on-navy-2); max-width: 52ch; }
.hc .btns { margin-top: 34px; justify-content: center; align-items: center; gap: 24px; }
.hero .tl { color: #ffffff; }

/* Hero motion. Normal styles are the finished frame; animations run only with JS and without reduced motion
   (site.css switches every animation off for reduced motion). [data-anim].is-offscreen pauses them (site.js). */
.hero-sweep { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-sweep::before, .hero-sweep::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -40%; width: 26%; background: linear-gradient(90deg, transparent, rgb(143 184 255 / .10), transparent); transform: skewX(-20deg); }
.hero-sweep::after { width: 40%; background: linear-gradient(90deg, transparent, rgb(143 184 255 / .06), transparent); }
.js .hero-sweep::before { animation: hero-sweep 14s linear infinite; }
.js .hero-sweep::after { animation: hero-sweep 14s linear -7s infinite; }
@keyframes hero-sweep { from { transform: translateX(0) skewX(-20deg); } to { transform: translateX(620%) skewX(-20deg); } }

/* Big "A" behind the headline, in two blurred layers: a soft filled glow and an outline. It floats slowly; with a
   mouse, both layers lean toward the pointer at different depths (site.js initHeroMark sets --mx/--my from -1 to 1),
   and the outline brightens and sharpens a little while the pointer is over the hero. */
.hero-a { --mx: 0; --my: 0; position: absolute; left: 50%; top: clamp(24px, 4vw, 64px); width: clamp(300px, 40vw, 600px); aspect-ratio: 108.11 / 100; translate: -50% 0; perspective: 900px; pointer-events: none; }
.js .hero-a { animation: hero-a-float 12s ease-in-out infinite; }
@keyframes hero-a-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hero-a-l { position: absolute; inset: 0; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .4s ease, filter .4s ease; }
.hero-a-l svg { display: block; width: 100%; height: auto; }
.hero-a-glow { color: #4a86e8; opacity: .19; filter: blur(16px);
  transform: translate(calc(var(--mx) * -16px), calc(var(--my) * -12px)) rotateY(calc(var(--mx) * 8deg)) rotateX(calc(var(--my) * -8deg)); }
.hero-a-line { color: #8fb8ff; opacity: .2; filter: blur(2.5px);
  transform: translate(calc(var(--mx) * 34px), calc(var(--my) * 26px)) rotateY(calc(var(--mx) * 16deg)) rotateX(calc(var(--my) * -16deg)); }
.hero-a-line path { fill: none; stroke: currentColor; stroke-width: .4; }
.hero.is-pointing .hero-a-line { opacity: .28; filter: blur(1.5px); }

/* Headline rises in word by word, then the lede and buttons follow */
.hc h1 .w { display: inline-block; }
.js .hc h1 .w { animation: hero-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.js .hc h1 .w:nth-child(2) { animation-delay: .07s; }
.js .hc h1 .w:nth-child(3) { animation-delay: .14s; }
.js .hc h1 .w:nth-child(4) { animation-delay: .21s; }
.js .hc h1 .w:nth-child(5) { animation-delay: .28s; }
.js .hc h1 .w:nth-child(6) { animation-delay: .35s; }
.js .hc h1 .w:nth-child(7) { animation-delay: .42s; }
.js .hc h1 .w:nth-child(8) { animation-delay: .49s; }
.js .hc h1 .w:nth-child(9) { animation-delay: .56s; }
.js .hc h1 .w:nth-child(n+10) { animation-delay: .63s; }
.js .hc .lede { animation: hero-rise .6s cubic-bezier(.2, .7, .2, 1) .7s both; }
.js .hc .btns { animation: hero-rise .6s cubic-bezier(.2, .7, .2, 1) .82s both; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(.45em); } }

/* Hero showreel (Zensite-style): a wide video panel under the headline with its own player (site.js initReel).
   The control bar fades in on hover/focus and stays while paused; the centre button shows while paused.
   The frame grows (transform) as it scrolls in. */
.hero .hc { padding-bottom: clamp(40px, 5vw, 64px); }
.reel-w { position: relative; padding-bottom: clamp(56px, 7vw, 112px); }
.reel { position: relative; margin: 0 auto; max-width: 1120px; background: #f4f3ef; transform-origin: 50% 0; overflow: hidden;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .14), 0 40px 90px -30px rgb(0 0 0 / .65); }
.reel-v { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; cursor: pointer; }
html:not(.js) .reel-v { cursor: auto; }
.js .reel { animation: reel-in .8s ease .95s both; } /* opacity only: transform belongs to the scroll grow */
@keyframes reel-in { from { opacity: 0; } }

/* Full screen: the figure fills the screen; the video letterboxes on black. */
.reel.is-full { max-width: none; width: 100%; height: 100%; background: #000000; transform: none !important; box-shadow: none; display: grid; place-items: center; }
.reel.is-full .reel-v { width: 100%; height: 100%; object-fit: contain; }

/* Player */
.vp[hidden] { display: none; }
.vp svg { width: 20px; height: 20px; fill: currentColor; }
.vp svg .st { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgb(10 23 48 / .82); color: #ffffff; cursor: pointer;
  box-shadow: 0 0 0 6px rgb(255 255 255 / .18); transition: background .2s, transform .2s; }
.vp-big svg { width: 30px; height: 30px; margin-left: 4px; }
.vp-big:hover { background: var(--blue); transform: scale(1.06); }
.vp-big[hidden] { display: none; }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 28px 12px 10px;
  color: #ffffff; background: linear-gradient(transparent, rgb(7 16 34 / .82));
  opacity: 0; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease; }
.reel.is-active .vp-bar, .reel.is-paused .vp-bar, .reel:has(:focus-visible) .vp-bar { opacity: 1; transform: none; } /* keyboard focus keeps it up; a mouse click does not */
.reel:not(.is-active):not(.is-paused) .reel-v { cursor: none; }
.reel.is-active .reel-v, .reel.is-paused .reel-v { cursor: pointer; }
.vp-b { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; flex: none; }
.vp-b:hover { color: #8fb8ff; }
.vp-b:focus-visible, .vp-big:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* Icon pairs: the figure's state classes pick which icon of each button shows. */
.reel .ic-play, .reel.is-paused .ic-pause, .reel .ic-muted, .reel.is-muted .ic-vol, .reel .ic-exit, .reel.is-full .ic-full { display: none; }
.reel.is-paused .ic-play, .reel.is-muted .ic-muted, .reel.is-full .ic-exit { display: block; }
.vp-time { font: 500 13px var(--f-body); font-variant-numeric: tabular-nums; white-space: nowrap; padding-inline: 6px; flex: none; }
.vp-vol { display: flex; align-items: center; flex: none; }

/* Range inputs: thin track, filled up to --p (set by site.js), round thumb. */
.vp-range { -webkit-appearance: none; appearance: none; height: 44px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.vp-seek { flex: 1; min-width: 60px; }
.vp-volume { width: 84px; }
.vp-range::-webkit-slider-runnable-track { height: 4px; background: linear-gradient(90deg, #8fb8ff var(--p), rgb(255 255 255 / .3) var(--p)); }
.vp-range::-moz-range-track { height: 4px; background: rgb(255 255 255 / .3); }
.vp-range::-moz-range-progress { height: 4px; background: #8fb8ff; }
.vp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #ffffff; border: 0; }
.vp-range::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #ffffff; border: 0; }
.vp-range:focus-visible { outline: 3px solid var(--focus); outline-offset: -8px; }
.vp-range:hover::-webkit-slider-thumb { transform: scale(1.2); }

@media (max-width: 640px) {
  .vp-bar { padding: 20px 4px 4px; gap: 0; }
  .vp-volume, .vp-time { display: none; } /* phones use their own volume buttons */
  .vp-big { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .vp-big svg { width: 24px; height: 24px; }
}
@media (hover: none) { .vp-volume { display: none; } }



/* Service tabs. Without JS the tab list is hidden and every panel shows, stacked. */
.svt { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); border: 1px solid var(--line); background: var(--panel); }
html:not(.js) .svt { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .stabs { display: none; }
html:not(.js) .sp + .sp { border-top: 1px solid var(--line); }
.stabs { display: grid; align-content: start; border-right: 1px solid var(--line); }
.stabs button { all: unset; cursor: pointer; display: grid; gap: 4px; padding: 22px 24px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
.stabs button b { font: 700 17.5px/1.25 var(--f-disp); color: var(--ink-2); }
.stabs button span { font: italic 16px var(--f-body); color: var(--ink-2); }
.stabs button[aria-selected="true"] { background: var(--bg); border-left-color: var(--accent); }
.stabs button[aria-selected="true"] b, .stabs button:hover b { color: var(--ink); }
.stabs button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: clamp(24px, 3vw, 40px); align-items: center; }
.sp h3 { font-size: clamp(24.5px, 2vw, 32px); line-height: 1.1; }
.sp p { color: var(--ink-2); font-size: 17px; margin-top: 14px; }
.sp .btns { margin-top: 24px; align-items: center; gap: 18px; }

/* Mock-up screens */
.mk { background: var(--mk-bg); border: 1px solid var(--line-strong); box-shadow: 0 30px 50px -30px rgb(11 31 61 / .5); font-size: 14px; color: var(--ink); }
.mk-b { padding: 9px 14px; background: var(--bg-2); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.mk-in { padding: 16px; display: grid; gap: 8px; }
.mk-in b { font: 700 18px var(--f-disp); margin-bottom: 4px; }
.mk-in .row { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.mk-in em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; }
.mk-in em.due { background: var(--chip-due-bg); color: var(--chip-due-fg); }
.mk-in em.ok { background: var(--chip-ok-bg); color: var(--chip-ok-fg); }
.mk-in .go { background: var(--btn-bg); color: var(--btn-fg); text-align: center; padding: 10px; font-weight: 600; margin-top: 4px; }
.mk-in .note { font-size: 12.5px; color: var(--ink-2); }
.mk-in.chat p { margin: 0; padding: 8px 12px; max-width: 85%; font-size: 13.5px; }
.mk-in.chat .u { background: var(--bg-2); justify-self: start; }
.mk-in.chat .a { background: var(--chat-bg); color: var(--chat-fg); justify-self: end; }

/* Mock-up motion. The normal styles below are the finished frame, so without JS, with reduced motion, or before a
   panel plays, the screen is complete. site.js adds .is-playing to the active panel's .mk (and re-adds it on every
   tab change); a-* classes then replay from their first keyframe, delayed by --d from the t* classes (t12 = 1.2s). */
.mk-in .toast { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg); border: 1px solid var(--line); border-left: 4px solid var(--green); box-shadow: 0 12px 24px -16px rgb(11 31 61 / .5); font-size: 12.5px; font-weight: 600; }
.mk-in .toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.mk-in .thumbs { display: inline-flex; align-items: center; gap: 4px; }
.mk-in .thumbs i { width: 14px; height: 14px; background: var(--pic); display: block; }
.mk-in .thumbs i:last-of-type { margin-right: 6px; }
.mk-in .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; font-weight: 600; }
.mk-in .steps span { padding-top: 6px; border-top: 3px solid var(--accent); color: var(--accent-ink); }
.mk-in .swap, .mk-in .flip { display: grid; }
.mk-in .swap > *, .mk-in .flip > * { grid-area: 1 / 1; }
.mk-in .flip { justify-items: end; }
.mk-in .swap > :first-child, .mk-in .flip > :first-child { opacity: 0; } /* the "before" text, gone in the final frame */
.mk-in .prog { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.mk-in .prog .swap { font-weight: 600; color: var(--ink); justify-items: end; }
.mk-in .bar { height: 6px; background: var(--line); }
.mk-in .bar i { display: block; height: 100%; width: 100%; background: var(--green); }
.mk-in.chat .a { display: grid; }
.mk-in.chat .a > * { grid-area: 1 / 1; }
.mk-in .dots { display: inline-flex; gap: 4px; align-items: center; opacity: 0; }
.mk-in .dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .55; }

.mk.is-playing .a-in { animation: mk-in .45s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.mk.is-playing .a-pop { animation: mk-pop .35s cubic-bezier(.2, .8, .2, 1.3) var(--d, 0s) both; }
.mk.is-playing .a-out { animation: mk-out .25s ease var(--d, 0s) both; }
.mk.is-playing .a-press { animation: mk-press .45s ease var(--d, 0s) both; }
.mk.is-playing .a-toast { animation: mk-toast .55s cubic-bezier(.2, .8, .2, 1.15) var(--d, 0s) both; }
.mk.is-playing .a-step { animation: mk-step .4s ease var(--d, 0s) both; }
.mk.is-playing .a-fill { animation: mk-fill .6s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.mk.is-playing .a-gone { animation: mk-gone .2s ease var(--d, 0s) both; }
/* Dots bounce during the .8s before their reply text arrives (.dots carries the reply's --d). */
.mk.is-playing .dots i { animation: mk-bounce .6s ease-in-out calc(var(--d, 0s) - .8s) 2; }
.mk.is-playing .dots i:nth-child(2) { animation-delay: calc(var(--d, 0s) - .7s); }
.mk.is-playing .dots i:nth-child(3) { animation-delay: calc(var(--d, 0s) - .6s); }
.svt.is-offscreen .mk * { animation-play-state: paused !important; }
.mk .t1 { --d: 0.1s; } .mk .t2 { --d: 0.2s; } .mk .t3 { --d: 0.3s; } .mk .t4 { --d: 0.4s; } .mk .t5 { --d: 0.5s; } .mk .t6 { --d: 0.6s; } .mk .t7 { --d: 0.7s; } .mk .t8 { --d: 0.8s; } .mk .t9 { --d: 0.9s; } .mk .t10 { --d: 1s; } .mk .t11 { --d: 1.1s; } .mk .t12 { --d: 1.2s; } .mk .t13 { --d: 1.3s; } .mk .t14 { --d: 1.4s; } .mk .t15 { --d: 1.5s; } .mk .t16 { --d: 1.6s; } .mk .t17 { --d: 1.7s; } .mk .t18 { --d: 1.8s; } .mk .t19 { --d: 1.9s; } .mk .t20 { --d: 2s; } .mk .t21 { --d: 2.1s; } .mk .t22 { --d: 2.2s; } .mk .t23 { --d: 2.3s; } .mk .t24 { --d: 2.4s; } .mk .t25 { --d: 2.5s; } .mk .t26 { --d: 2.6s; } .mk .t27 { --d: 2.7s; } .mk .t28 { --d: 2.8s; } .mk .t29 { --d: 2.9s; } .mk .t30 { --d: 3s; } .mk .t31 { --d: 3.1s; } .mk .t32 { --d: 3.2s; } .mk .t33 { --d: 3.3s; } .mk .t34 { --d: 3.4s; } .mk .t35 { --d: 3.5s; } .mk .t36 { --d: 3.6s; } .mk .t37 { --d: 3.7s; } .mk .t38 { --d: 3.8s; } .mk .t39 { --d: 3.9s; } .mk .t40 { --d: 4s; } .mk .t41 { --d: 4.1s; } .mk .t42 { --d: 4.2s; } .mk .t43 { --d: 4.3s; } .mk .t44 { --d: 4.4s; } .mk .t45 { --d: 4.5s; } .mk .t46 { --d: 4.6s; }

@keyframes mk-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes mk-pop { from { opacity: 0; transform: scale(.4); } }
@keyframes mk-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes mk-press { 0%, 100% { transform: none; } 45% { transform: scale(.96); filter: brightness(1.25); } }
@keyframes mk-toast { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes mk-step { from { border-top-color: var(--line); color: var(--ink-2); } }
@keyframes mk-fill { from { width: 66%; } }
@keyframes mk-gone { from { opacity: 1; } to { opacity: 0; } }
@keyframes mk-bounce { 0%, 100% { transform: none; } 40% { transform: translateY(-3px); } }

/* Standard on every engagement */
.incg { display: grid; grid-template-columns: repeat(4,minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.inc { padding: 26px 24px 4px 0; display: grid; gap: 10px; align-content: start; }
.inc + .inc { padding-left: 24px; border-left: 1px solid var(--line); }
.inc i { width: 44px; height: 44px; background: var(--accent); color: #ffffff; display: grid; place-items: center; transition: transform .25s ease; }
.inc i svg { width: 22px; height: 22px; }
.inc:hover i { transform: translateY(-3px) rotate(-4deg); }
.inc:nth-child(2) i { background: var(--green); }
.inc:nth-child(3) i { background: var(--amber); }
.inc:nth-child(4) i { background: var(--blue); }
.inc h3 { font-size: 19px; line-height: 1.2; }
.inc p { color: var(--ink-2); font-size: 16.5px; }

/* Connects to the systems you run today */
.conn { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 64px; align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.h3b { font-size: clamp(23.5px, 2vw, 29.5px); margin-bottom: 12px; }
.lead2 { color: var(--ink-2); font-size: 18px; margin-bottom: 20px; max-width: 46ch; }
.toolg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tool { background: var(--bg); padding: 22px; display: grid; gap: 8px; align-content: start; }
.tooli { display: grid; place-items: center; width: 36px; height: 36px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tooli svg { width: 19px; height: 19px; }
.tool:first-child .tooli { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.tool h3 { font-size: 19px; }
.tool p { color: var(--ink-2); font-size: 16.5px; }

/* Why work with us: four numbered cards, two by two */
.whyg { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.whyc { position: relative; background: var(--card); border: 1px solid var(--line); padding: clamp(24px, 2.6vw, 36px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-content: start; transition: border-color .2s ease, transform .2s ease; }
.whyc:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.whyn { grid-row: span 2; font: 600 clamp(29.5px, 2.6vw, 38px)/1 var(--f-disp); color: var(--accent); letter-spacing: -.02em; }
.whyc h3 { font-size: 20.5px; line-height: 1.25; padding-right: 52px; }
.whyi { position: absolute; top: clamp(20px, 2.2vw, 30px); right: clamp(20px, 2.2vw, 30px); display: grid; place-items: center; width: 42px; height: 42px; color: var(--accent); background: color-mix(in srgb, var(--accent) 11%, transparent); transition: background .2s ease, color .2s ease; }
.whyi svg { width: 21px; height: 21px; }
.whyc:hover .whyi { background: var(--accent); color: #ffffff; }
.whyc p { color: var(--ink-2); font-size: 16.5px; }

/* What you can count on: deep navy band (fixed colours, the same in dark mode) */
.proof { background: var(--navy-deep); color: #ffffff; }
.proof .sh h2, .proof .prom b { color: #ffffff; }
.proof .sh p, .proof .prom span, .proof .soon { color: var(--on-navy-2); }
.proof .prom { border-top-color: rgb(255 255 255 / .22); }
.proof .prom div + div { border-left-color: rgb(255 255 255 / .14); }
.proof .tl { color: #ffffff; }
.prom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.prom div { padding: 24px 20px 0 0; display: grid; gap: 4px; }
.prom div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.prom b { font: 600 clamp(21.5px, 1.9vw, 26px)/1.1 var(--f-disp); color: var(--ink); letter-spacing: -.02em; }
.prom span { color: var(--ink-2); }

/* Inside Standard, a rule splits the feature cards from "Connects to the systems you run today". */
.conn { border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }

/* How an engagement runs: fog background, a soft blue-grey with two faint misty patches. */
.process-tl { overflow-x: clip; background-color: var(--fog);
  background-image: radial-gradient(ellipse 60% 45% at 18% 0%, color-mix(in srgb, var(--bg) 70%, transparent), transparent 70%),
    radial-gradient(ellipse 55% 40% at 85% 100%, color-mix(in srgb, var(--bg) 55%, transparent), transparent 70%); }

/* How an engagement runs: scroll timeline. Normal styles are the finished state (rail full, rings full, every card
   shown), which is what you get without JS or with reduced motion. site.js initTimeline adds .is-live, then sets the
   fill height and .is-on per step from the scroll position, both ways. */
.tl-head { display: grid; justify-items: center; gap: 14px; text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.tl-head h2 { margin: 0 auto; }
.tl-head p { color: var(--ink-2); font-size: 18px; max-width: 52ch; }
.tline { --rail-x: 50%; position: relative; max-width: 1000px; margin: 0 auto; padding-block: 40px; }
/* Thin rail (in the spirit of Agiloft's "trifecta" section): 2px pale track, ink fill, square caps at both ends.
   The bottom cap turns ink once the fill reaches it (.is-done). */
.tl-rail { position: absolute; top: 5px; bottom: 5px; left: var(--rail-x); width: 2px; margin-left: -1px; background: var(--line); overflow: hidden; }
.tl-fill { display: block; width: 100%; height: 100%; background: var(--ink); }
.tline::before, .tline::after { content: ""; position: absolute; left: var(--rail-x); width: 10px; height: 10px; margin-left: -5px; background: var(--ink); z-index: 1; }
.tline::before { top: 0; }
.tline::after { bottom: 0; }
.tline.is-live::after { background: var(--line-strong); transition: background .3s ease; }
.tline.is-live.is-done::after { background: var(--ink); }
.tl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.tl-step { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: center; }
.tl-card { position: relative; grid-row: 1; background: var(--bg); border: 1px solid var(--line); padding: 22px 24px; display: grid; gap: 6px; align-content: start; box-shadow: 0 20px 40px -32px rgb(11 31 61 / .45); }
.tl-card h3 { font-size: var(--h3); line-height: 1.2; }
.tl-card p { color: var(--ink-2); font-size: 16.5px; }
/* Numbered circle on the card's top corner, on the side facing the rail */
.tl-num { position: absolute; top: -18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 15px var(--f-body); letter-spacing: .02em; box-shadow: 0 0 0 4px var(--fog); }
.tl-step:nth-child(odd) .tl-num { right: -18px; }
.tl-step:nth-child(even) .tl-num { left: -18px; }
.tl-step:nth-child(odd) .tl-card { grid-column: 1; text-align: right; }
.tl-step:nth-child(even) .tl-card { grid-column: 3; }

.tline.is-live .tl-card { opacity: 0; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.tline.is-live .tl-step:nth-child(odd) .tl-card { transform: translateX(-48px); }
.tline.is-live .tl-step:nth-child(even) .tl-card { transform: translateX(48px); }
.tline.is-live .tl-step.is-on .tl-card { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .tline { --rail-x: 28px; }
  .tl-step { grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; }
  .tl-step:nth-child(odd) .tl-card, .tl-step:nth-child(even) .tl-card { grid-column: 2; text-align: left; }
  .tl-step:nth-child(odd) .tl-num, .tl-step:nth-child(even) .tl-num { left: -18px; right: auto; }
  .tline.is-live .tl-step:nth-child(odd) .tl-card, .tline.is-live .tl-step:nth-child(even) .tl-card { transform: translateX(32px); }
}


@media (max-width: 1000px) {
  .svt, .sp, .conn { grid-template-columns: minmax(0, 1fr); }
  .stabs { border-right: 0; border-bottom: 1px solid var(--line); }
  .whyg { grid-template-columns: minmax(0, 1fr); }
  .prom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prom div:nth-child(3) { padding-left: 0; border-left: 0; }
  .incg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inc:nth-child(odd) { padding-left: 0; border-left: 0; }
  .inc:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 24px; }
}
@media (max-width: 640px) {
  .incg, .toolg, .prom { grid-template-columns: minmax(0, 1fr); }
  .inc, .inc + .inc, .prom div, .prom div + div { padding-left: 0; border-left: 0; }
  .stabs button { padding: 16px 18px; }
  .inc:nth-child(n+3) { border-top: 0; margin-top: 0; }
}
