/* Owen Molina · v4 "Rising Light"
   Two main colours: Midnight Black and Electric Blue. One surprise: Cantaloupe, used in very few places. */

:root {
  --stage: max(var(--pad, 24px), calc((100vw - 1320px) / 2));
  --midnight: #02070A;
  --midnight-2: #0A1D2B;
  --navy: #061624;          /* the page ground: deep navy instead of pure black */
  --navy-deep: #030C14;
  --blue: #0297DE;
  --blue-hi: #6CCBFF;
  --blue-deep: #013A5C;
  --cantaloupe: #FC734D;
  --cantaloupe-hi: #FFB08F;
  --ink: #EEF4F7;
  --ink-dim: #9DB0BC;
  --ink-faint: #4F6470;
  --line: rgb(108 203 255 / 0.14);

  --serif: "Boska", "Times New Roman", serif;             /* display: headings and big numbers */
  --sans: "Satoshi", ui-sans-serif, sans-serif;           /* body and interface */
  --mono: "Geist Mono", ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--navy-deep); }
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }
body { margin: 0; background: transparent; color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, figure, dl, dd, ol { margin: 0; }
ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--cantaloupe); color: var(--midnight); }
:focus-visible { outline: 2px solid var(--cantaloupe); outline-offset: 4px; border-radius: 6px; }
.skip { position: absolute; left: var(--pad); top: -80px; z-index: 99; background: var(--ink); color: var(--midnight); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--blue-hi); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 18px var(--pad) auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  height: 58px; padding: 0 8px 0 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgb(2 7 10 / 0.42); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 30px; height: auto; }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); margin: 0 auto; font: 400 13px/1 var(--mono); letter-spacing: .04em; color: var(--ink-dim); }
.nav__links a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; transition: color .2s; }
.nav__links a i { width: 6px; height: 6px; border-radius: 50%; background: var(--cantaloupe); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { height: 42px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--midnight); font-weight: 600; font-size: 14px; transition: background .2s, transform .2s; }
.nav__cta:hover { background: var(--cantaloupe); }
.nav__cta:active { transform: scale(.97); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow-x: clip; overflow-y: visible;   /* the glow may spill downward and fade on its own, never cut flat */
  will-change: transform, opacity;                    /* one GPU layer: the zoom-out moves a picture instead of repainting text and blur every frame */
  min-height: max(100svh, 760px);
  display: grid; grid-template-columns: 1fr minmax(0, 1100px) 1fr;
  padding: 0 var(--pad);
}
.hero__rays { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; filter: blur(2.6px); opacity: .75; }
.hero__rays {   /* only the rays are masked: a mask on a blurred layer cuts the blur flat at its sides */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 97%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 97%);
}
.hero__glow {
  position: absolute; z-index: -1; left: var(--light-x, 64%); bottom: -18%; width: min(1100px, 120vw); aspect-ratio: 1.6; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgb(252 115 77 / 0.42), rgb(252 115 77 / 0.12) 45%, transparent 72%),
    radial-gradient(closest-side at 50% 30%, rgb(2 151 222 / 0.4), transparent 70%);
  filter: blur(18px);
}
.hero__beam { /* a hard column of light straight up behind you */
  position: absolute; z-index: -1; left: var(--light-x, 64%); top: -10%; bottom: 0; width: clamp(140px, 16vw, 260px); transform: translateX(-50%);
  background: linear-gradient(to top, transparent 0%, rgb(108 203 255 / .26) 14%, rgb(2 151 222 / .12) 50%, transparent 88%);
  filter: blur(28px); mix-blend-mode: screen;
}
.hero__flash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  /* centred well above the hero's bottom edge, so the burst has faded out before it gets there */
  background: radial-gradient(55% 46% at var(--light-x, 66%) 60%, rgb(255 255 255 / .45), rgb(108 203 255 / .16) 40%, transparent 70%); }
.hero::after { /* the floor dissolves into the aurora below, so the hero and the rest of the page read as one sky */
  content: ""; position: absolute; inset: auto 0 0; height: 22%; z-index: 2; pointer-events: none;
  background: none;
}

.hero__copy { grid-column: 1 / -1; position: relative; z-index: 3; will-change: transform, opacity; margin-left: calc(var(--stage) - var(--pad)); max-width: min(760px, 50vw); padding-top: clamp(150px, 22vh, 210px); }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.hero__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cantaloupe); box-shadow: 0 0 0 4px rgb(252 115 77 / .18); }
.hero__title {
  margin-top: 24px;
  font: 500 clamp(50px, 6.6vw, 110px)/0.95 var(--serif); letter-spacing: -0.025em;
}
.hero__title .line { display: block; overflow: hidden; padding: 0 0.04em 0.07em; margin-left: -0.04em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: italic; font-weight: 400; color: var(--cantaloupe); }
.hero__lead { max-width: 44ch; margin-top: 26px; color: var(--ink-dim); font-size: clamp(15px, 1.2vw, 17px); }

/* You, standing in the light, on the right. Sized by height so the head never reaches the words. */
.hero__figure { position: absolute; z-index: 1; right: calc(var(--stage) - 20px); bottom: 0; height: min(88%, 860px); aspect-ratio: 1242 / 1546; pointer-events: none; }
.hero__photo {   /* the bottom and left-edge fades are baked into the image itself, so they look the same in every browser */
  width: 100%; height: 100%; object-fit: contain; object-position: bottom;
}
.hero__figure { filter: drop-shadow(0 -10px 50px rgb(2 151 222 / 0.55)) drop-shadow(-18px 0 40px rgb(252 115 77 / 0.25)); }

.hero__stats {
  position: relative; z-index: 3; grid-column: 1 / -1; align-self: end;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
  max-width: 54vw; margin: clamp(36px, 6vh, 64px) 0 clamp(48px, 9vh, 96px) calc(var(--stage) - var(--pad));
}
.hero__stats > div { padding: 0 clamp(16px, 2.2vw, 34px); border-left: 1px solid var(--line); }
.hero__stats > div:first-child { padding-left: 0; border-left: 0; }
.hero__stats dt { font: 500 clamp(36px, 3.4vw, 54px)/1 var(--serif); letter-spacing: -0.02em; }
.hero__stats dd { margin-top: 8px; font: 400 11.5px/1.45 var(--mono); color: var(--ink-dim); letter-spacing: .02em; }


.hero__scroll { display: none !important; position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dim); }
.hero__scroll svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero__scroll:hover { color: var(--ink); }

/* ---------- The bridge into section 2 ---------- */
.bridge { position: relative; padding: 0 var(--pad) clamp(100px, 12vw, 170px); text-align: center; }
.bridge__head { position: relative; padding-top: 340px; }
.bridge__title { margin-top: 18px; font: 500 clamp(40px, 5vw, 80px)/1 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.bridge__title em { font-style: italic; font-weight: 400; color: var(--blue-hi); }

/* ---------- Reveal starting states (only when JS runs and motion is allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-h], .js [data-reveal-nav] { opacity: 0; }
  .js .hero__title [data-h="line"] { opacity: 1; }
  .js .hero__title .w, .js .bridge__title .w { opacity: 0; }
  .js .bridge__title:not(:has(.w)), .js .services__title:not(:has(.w)), .js .process__title:not(:has(.w)), .js .about__title:not(:has(.w)), .js .book__title:not(:has(.w)) { opacity: 0; }   /* hidden until it is split into words, so it never flashes whole first */
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav { justify-content: space-between; }
  .hero { min-height: auto; display: flex; flex-direction: column; padding-bottom: 0; --light-x: 50%; }
  .hero__copy { order: 1; margin-left: auto !important; } .hero__figure { order: 2; } .hero__stats { order: 3; margin: 34px auto 70px !important; }
  .hero__copy { padding-top: 120px; }
  .hero__copy { text-align: center; margin: 0 auto; max-width: 760px; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__stats { grid-template-columns: 1fr 1fr; gap: 22px 0; margin: 34px auto 0; max-width: 520px; text-align: center; justify-content: stretch; }
  .hero__stats > div, .hero__stats > div:first-child { padding: 0 12px; border-left: 0; }
  .hero__stats dd br { display: none; }
  .hero__figure { position: relative; right: auto !important; bottom: auto; height: auto; width: min(420px, 82vw); margin: 30px auto 0; }
  .hero__scroll { display: none; }
}
@media (max-width: 560px) {
  .nav { inset: 12px 12px auto; height: 52px; }
  .brand span { display: none; }
  .hero__title { font-size: clamp(44px, 12.5vw, 64px); }
  .hero__stats dt { font-size: 38px; }
}

/* ---------- Section 2: workflows redrawn live ---------- */
.cases { max-width: 1240px; margin: clamp(80px, 10vw, 140px) auto 0; display: grid; gap: clamp(110px, 14vw, 180px); text-align: left; }
.case { display: grid; gap: clamp(28px, 3.5vw, 44px); }
.case__story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 56px; align-items: end; }
.case__story > .case__index, .case__story > .case__title { grid-column: 1; }
.case__story > .case__body, .case__story > .case__stats, .case__story > .case__tools { grid-column: 2; }
.case__story > .case__body { grid-row: 1 / span 2; align-self: end; margin-top: 0; }
.case__story > .case__stats { margin-top: 30px; }
.case__story > .case__tools { margin-top: 0; }
.case__index { font: 500 12px/1 var(--mono); letter-spacing: .16em; color: var(--ink-faint); }
.case__index b { color: var(--cantaloupe); font-weight: 500; }
.case__title { margin-top: 16px; font: 500 clamp(36px, 3.6vw, 54px)/1 var(--serif); letter-spacing: -0.02em; }
.case__body { margin-top: 18px; color: var(--ink-dim); max-width: 42ch; }
.case__stats { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 26px; }
.case__stats span { display: flex; flex-direction: column; gap: 7px; padding-left: 14px; border-left: 2px solid rgb(108 203 255 / .25);
  font: 400 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.case__stats span:first-child { border-left-color: var(--cantaloupe); }
.case__stats b { font: 700 26px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; text-transform: none; }
.case__tools { margin-top: 22px; font: 400 12px/1.5 var(--mono); color: var(--ink-faint); letter-spacing: .04em; }

.canvas {
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  position: relative; aspect-ratio: 1000 / 430; border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(circle at 1px 1px, rgb(108 203 255 / .14) 1px, transparent 1.4px) 0 0 / 22px 22px,
    radial-gradient(80% 90% at 70% 0%, rgb(2 151 222 / .16), transparent 60%),
    rgb(10 29 43 / .72);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -50px rgb(2 151 222 / .7);
}
.canvas__bar { position: absolute; z-index: 2; left: 18px; right: 18px; top: 14px; display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--mono); color: var(--ink-faint); letter-spacing: .06em; }
.canvas__bar i { width: 8px; height: 8px; border-radius: 50%; background: #1d2c35; }
.canvas__bar .live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--blue-hi); }
.canvas__bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cantaloupe); box-shadow: 0 0 10px var(--cantaloupe); }
.canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wire-base { fill: none; stroke: rgb(108 203 255 / .16); stroke-width: 2; }
.wire-label { font: 400 11px var(--mono); fill: var(--ink-faint); letter-spacing: .04em; }


/* The real screenshot, with the run drawn over it in the image's own pixel grid. */
.canvas--shot { aspect-ratio: auto; padding: calc(42px + var(--shot-pad, 0px)) 0 var(--shot-pad, 0px); overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.shot { position: relative; min-width: 760px; }
.shot img { display: block; width: 100%; height: auto; }
.shot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.shot img {   /* the screenshot's edges melt into the frame */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 2.5%, #000 97.5%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.edge path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: 0; transition: opacity .18s ease-out; }
.edge__line { stroke: var(--ok); stroke-width: 2; }
.edge__halo { stroke: var(--ok); stroke-width: 7; }
.edge__shine { stroke: #E9FFF5; stroke-width: 2.4; stroke-dasharray: 7 93; }
.edge.on .edge__line { opacity: 1; }
.edge.on .edge__halo { opacity: .16; }
.edge.on .edge__shine { opacity: .9; animation: shine 1.1s linear infinite; }
.edge--sub .edge__line { stroke-dasharray: 5 5; }
.edge--sub.on .edge__halo { opacity: .1; }
@keyframes shine { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.comet { opacity: 0; transition: opacity .1s; }
.comet__core { fill: #F4FFF9; }
.snode rect { fill: none; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .15s ease-out; }
.snode .ring { stroke: var(--ok); stroke-width: 2; }
.snode .halo { stroke: var(--ok); stroke-width: 9; }
.snode .spin { stroke: var(--blue-hi); stroke-width: 2.4; stroke-dasharray: 24 76; stroke-linecap: round; }
.snode.busy .spin { opacity: 1; animation: sspin .55s linear infinite; }
.snode.busy .halo { opacity: .14; stroke: var(--blue-hi); }
.snode.done .ring { opacity: 1; }
.snode.done .halo { opacity: .16; }
.snode .tick { transform: scale(0); transform-box: fill-box; transform-origin: center; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.snode.done .tick { transform: scale(1); }
.snode .tick circle { fill: var(--ok); stroke: #16202c; stroke-width: 3; }
.snode .tick path { fill: none; stroke: #052012; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes sspin { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .snode.busy .spin, .edge.on .edge__shine { animation: none; } }

/* n8n-style canvas: square node tiles with the name underneath, like the real editor. */
.canvas { --ok: #3DDC97; }
.canvas--n8n { --t: clamp(30px, 3.5cqw, 44px); container-type: inline-size; aspect-ratio: 1000 / 500; }
.nnode { position: absolute; z-index: 1; width: var(--lw, clamp(54px, 5.8cqw, 74px)); transform: translate(-50%, calc(var(--t) / -2)); display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.nnode .tile { position: relative; width: var(--t); height: var(--t); border-radius: 11px; display: grid; place-items: center;
  background: rgb(14 30 42 / .96); border: 1px solid rgb(108 203 255 / .22); box-shadow: 0 12px 24px -14px #000;
  transition: border-color .35s, box-shadow .35s; }
.nnode .tile > svg { width: 45%; height: 45%; fill: none; stroke: var(--blue-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nnode.k-clock .tile > svg, .nnode.k-cursor .tile > svg { stroke: var(--ink); }
.nnode.k-webhook .tile > svg { stroke: var(--cantaloupe); }
.nnode.k-wait .tile > svg, .nnode.k-mail .tile > svg, .nnode.k-code .tile > svg { stroke: var(--cantaloupe); }
.nnode.is-trigger .tile { border-radius: 40% 11px 11px 40%; }
.nnode.is-sub .tile { border-radius: 50%; }                                                  /* models and memory are round, as in n8n */
.nnode.k-agent .tile > svg, .nnode.k-model .tile > svg, .nnode.k-memory .tile > svg { stroke: var(--ink); }
.nnode.k-spark .tile > svg, .nnode.k-upload .tile > svg { stroke: var(--cantaloupe); }
.canvas--n8n .wire-base.sub { stroke-dasharray: 4 5; }          /* triggers have a rounded left side, as in n8n */
.nlabel { font: 500 clamp(9px, .86cqw, 10.5px)/1.25 var(--sans); color: var(--ink-dim); transition: color .35s; }
.nlabel small { display: block; margin-top: 2px; font: 400 9px/1.2 var(--mono); color: var(--ink-faint); }
.nnode .ok { position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok); box-shadow: 0 0 0 3px rgb(6 18 26), 0 0 12px rgb(61 220 151 / .6); transform: scale(0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.nnode .ok svg { width: 10px; height: 10px; fill: none; stroke: #04140c; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nnode.busy .tile { border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgb(108 203 255 / .14), 0 0 22px rgb(2 151 222 / .55); }
.nnode.busy .tile::after { content: ""; position: absolute; inset: -5px; border-radius: 14px; border: 2px solid transparent; border-top-color: var(--blue-hi); animation: nspin .7s linear infinite; }
.nnode.done .tile { border-color: var(--ok); box-shadow: 0 0 0 3px rgb(61 220 151 / .10), 0 0 20px rgb(61 220 151 / .28); }
.nnode.done .ok { transform: scale(1); }
.nnode.busy .nlabel, .nnode.done .nlabel { color: var(--ink); }
@keyframes nspin { to { transform: rotate(360deg); } }
.canvas--n8n .wire-base { stroke: rgb(160 190 210 / .22); stroke-width: 1.6; }
.wire-run { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 6 9; opacity: 0; transition: opacity .3s; }
.wire-run.on { opacity: .8; animation: nflow .45s linear infinite; }
.wire-run.hot { opacity: 1; stroke-width: 2.6; filter: drop-shadow(0 0 5px rgb(61 220 151 / .8)); }
@keyframes nflow { to { stroke-dashoffset: -15; } }
.packet { fill: #DFFFF0; opacity: 0; filter: drop-shadow(0 0 6px var(--ok)) drop-shadow(0 0 2px var(--ok)); }
@media (prefers-reduced-motion: reduce) { .wire-run.on { animation: none; } .nnode.busy .tile::after { animation: none; } }
@media (max-width: 700px) {
  .canvas--n8n { --t: 40px; }
  .nnode { width: auto; flex-direction: row; gap: 12px; text-align: left; transform: translate(-20px, -20px); }
  .nnode .nlabel { font-size: 13px; padding-top: 0; } .nnode { align-items: center; }
}


@media (max-width: 980px) {
  .case__story { grid-template-columns: 1fr; }
  .case__story > * { grid-column: 1 !important; grid-row: auto !important; }
  .case__story > .case__body { margin-top: 14px; }
}
@media (max-width: 700px) {
  .canvas { aspect-ratio: auto; }       /* height is set by main.js from the number of steps */
  .wire-label { display: none; }
}

/* ---------- Section 3: services as big glass cards ---------- */
.services::after { /* focus mode: while a card is spotlit, everything behind the cards softens and dims */
  content: ""; position: absolute; inset: -18% 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
  background: rgb(3 12 20 / .35); }
.services.has-focus::after { opacity: 1; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.services { position: relative; isolation: isolate; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(110px, 13vw, 180px); }
.services__aurora {
  position: absolute; z-index: -1; inset: 10% 0 0; pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 40%, rgb(2 151 222 / .28), transparent 70%),
    radial-gradient(30% 35% at 72% 62%, rgb(2 151 222 / .2), transparent 70%),
    radial-gradient(16% 20% at 60% 30%, rgb(252 115 77 / .16), transparent 70%);
  filter: blur(30px);
}
.services__head { max-width: 1240px; margin: 0 auto; }
.services__title { margin-top: 18px; max-width: 14ch; font: 500 clamp(44px, 5.6vw, 88px)/0.98 var(--serif); letter-spacing: -0.025em; }
.services__title em { font-style: italic; font-weight: 400; color: var(--cantaloupe); }

.glass-grid { position: relative; z-index: 1; max-width: 1240px; margin: clamp(48px, 6vw, 80px) auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); perspective: 1000px; }
.glass {
  position: relative; overflow: hidden; min-height: clamp(300px, 28vw, 380px);
  display: flex; flex-direction: column; padding: clamp(24px, 2.6vw, 36px);
  border-radius: 30px;
  background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02) 45%, rgb(2 151 222 / .05));
  border: 1px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 40px 80px -50px rgb(0 0 0 / .9);
  transition: border-color .4s, box-shadow .5s; backface-visibility: hidden;
  -webkit-user-select: none; user-select: none;        /* a quick click never highlights the words */
  -webkit-font-smoothing: antialiased;
}
.glass.is-focus { z-index: 2; border-color: rgb(255 255 255 / .22); box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 60px 110px -40px rgb(0 0 0 / .95); }
.glass.is-focus.glass--hot { border-color: rgb(252 115 77 / .45); }
.glass__top { display: flex; align-items: center; justify-content: space-between; }
.glass__no { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--ink-faint); }
.glass__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgb(2 151 222 / .12); border: 1px solid rgb(108 203 255 / .22); }
.glass__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.glass--hot .glass__icon { background: rgb(252 115 77 / .14); border-color: rgb(252 115 77 / .4); }
.glass--hot .glass__icon svg { stroke: var(--cantaloupe); }
.glass h3 { margin: 36px 0 0; padding: 0; min-height: 2.1em; display: flex; align-items: flex-end; font: 500 clamp(30px, 2.7vw, 40px)/1.04 var(--serif); letter-spacing: -0.015em; }
.glass p { margin-top: 12px; max-width: 38ch; min-height: 8em; color: var(--ink-dim); }   /* five lines reserved, so every tag row starts level */
.glass__tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin: 22px 0 0; min-height: 76px; padding: 0; list-style: none; }
.glass__tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font: 400 11.5px/1 var(--mono); color: var(--ink-dim); }
.services__intro { max-width: 1240px; margin: 26px auto 0; }
.services__intro p { max-width: 58ch; color: var(--ink-dim); font-size: 18px; }
.bridge__intro { max-width: 56ch; margin: 22px auto 0; color: var(--ink-dim); }

/* The preview fan: five real workflows as glowing cards */
.fan { --cw: clamp(170px, 21vw, 300px); position: relative; height: calc(var(--cw) * 0.66 + 80px); margin: clamp(40px, 6vh, 64px) auto 0; width: 100%; }
.fan__card { position: absolute; left: 50%; top: 30px; width: var(--cw); margin-left: calc(var(--cw) / -2); aspect-ratio: 16 / 10.5;
  padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 120%; }
.fan__card:nth-child(1), .fan__card:nth-child(5) { z-index: 1; } .fan__card:nth-child(2), .fan__card:nth-child(4) { z-index: 2; } .fan__card:nth-child(3) { z-index: 3; }
.fan__card.is-on { z-index: 5; }
.fan__face { position: relative; display: block; width: 100%; height: 100%; border-radius: 16px; overflow: hidden;
  background: #131c28; border: 1px solid rgb(108 203 255 / .22);
  box-shadow: 0 30px 60px -28px rgb(0 0 0 / .9), 0 0 0 1px rgb(255 255 255 / .03) inset;
  transition: border-color .35s, box-shadow .35s, opacity .35s; will-change: transform; }
.fan__face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transform: scale(1.02); }
.fan__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(3 12 20 / .92), rgb(3 12 20 / .25) 45%, transparent 70%); }
.fan__cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; gap: 8px; align-items: baseline;
  font: 500 13px/1.25 var(--sans); color: var(--ink); text-align: left; }
.fan__cap b { font: 500 11px/1 var(--mono); color: var(--cantaloupe); letter-spacing: .08em; }
.fan.is-hover .fan__face { opacity: .55; }
.fan.is-hover .fan__card.is-on .fan__face { opacity: 1; border-color: rgb(61 220 151 / .7);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .95), 0 0 0 1px rgb(61 220 151 / .35), 0 0 34px rgb(61 220 151 / .25); }
.fan__card:focus-visible .fan__face { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
@media (max-width: 700px) { .fan { --cw: 46vw; } .fan__cap { font-size: 11px; left: 10px; bottom: 8px; } }
.services__also { max-width: 1240px; margin: 32px auto 0; font: 400 13px/1.5 var(--mono); color: var(--ink-faint); letter-spacing: .02em; }

@media (max-width: 760px) {
  .glass-grid { grid-template-columns: 1fr; }
  .glass { min-height: 0; }
  .glass h3 { padding-top: 28px; }
}

/* ---------- Section 4: FAQ ---------- */
.faq { position: relative; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(120px, 14vw, 200px); }
.faq__head, .faq__list { max-width: 980px; margin: 0 auto; }
.faq__title { margin-top: 18px; font: 500 clamp(40px, 5vw, 76px)/1 var(--serif); letter-spacing: -0.025em; }
.faq__title em { font-style: italic; font-weight: 400; color: var(--blue-hi); }
.faq__list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; gap: 24px; padding: clamp(20px, 2.4vw, 30px) 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item h3 { flex: 1; margin: 0; font: 500 clamp(22px, 2.2vw, 32px)/1.15 var(--serif); letter-spacing: -0.01em; transition: color .25s; }
.faq__item summary:hover h3 { color: var(--blue-hi); }
.faq__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .4s var(--ease-out), background-color .25s, border-color .25s; }
.faq__icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.faq__item.is-open .faq__icon { transform: rotate(180deg); background: var(--cantaloupe); border-color: var(--cantaloupe); }
.faq__item.is-open .faq__icon svg { stroke: var(--midnight); }
.faq__a { overflow: hidden; }
.faq__item p { max-width: 64ch; margin: 0; padding: 0 64px clamp(24px, 2.6vw, 32px) 0; color: var(--ink-dim); font-size: 18px; }
@media (max-width: 560px) { .faq__item p { padding-right: 0; font-size: 16.5px; } }

/* ---------- The aurora behind the whole site ----------
   One fixed sky under every section. A navy gradient, the flowing aurora canvas, and a faint grain on top. */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #0B2A40 0%, transparent 60%),
    linear-gradient(180deg, #071B2B 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.sky canvas { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(5px) saturate(135%) drop-shadow(0 0 16px rgb(108 203 255 / .3)); opacity: .85; }
.sky::after { content: ""; position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

main { position: relative; z-index: 1; }

/* The opener: a line of light draws across the dark, then the dark parts from it like a pair of doors. */
.opener { display: none; }
.js .opener { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none;
  animation: opener-failsafe 0s linear 4s forwards; }            /* if scripts never run, it still gets out of the way */
.opener__half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--midnight); }
.opener__half--top { top: 0; } .opener__half--bot { bottom: 0; }
.opener__line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; transform: scaleX(0);
  background: linear-gradient(90deg, transparent, var(--blue) 18%, #E6F6FF 50%, var(--blue) 82%, transparent);
  box-shadow: 0 0 18px 2px rgb(2 151 222 / .7), 0 0 60px 6px rgb(108 203 255 / .25); }
@keyframes opener-failsafe { to { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .js .opener { display: none; } }

/* A soft burst of light at the spot behind you, used by the hero exit. */
.hero__wash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0;
  background: radial-gradient(70% 60% at var(--light-x, 64%) 75%, rgb(220 242 255 / .75), rgb(108 203 255 / .35) 35%, transparent 70%); }

/* Cover: on laptops and desktops the hero stays pinned while the next section slides up over it. */
html.cover .hero { position: sticky; top: var(--hero-top, 0px); z-index: 0; }
html.cover main > :not(.hero) { position: relative; z-index: 1; }

/* ---------- Scenes: on laptops and desktops every [data-panel] is laid out as one full screen,
   and scrolling glides freely between them ---------- */
html.scenes [data-panel] { min-height: 100vh; min-height: 100svh; box-sizing: border-box; }
html.scenes .hero { min-height: 0; }
html.scenes .hero__copy { padding-top: clamp(110px, 17vh, 190px); }
html.scenes .hero__stats { margin-top: clamp(24px, 4.5vh, 56px); margin-bottom: clamp(24px, 6vh, 72px); }
html.scenes .bridge { padding-bottom: 0; }
html.scenes .bridge__open { position: relative; display: grid; place-content: center; padding: 96px var(--pad) 40px; overflow: hidden; }
html.scenes .bridge__head { padding-top: 0; }
html.scenes .cases { margin: 0 auto; gap: 0; }
html.scenes .case { grid-template-rows: auto minmax(0, 1fr); padding: 104px 0 36px; gap: 22px; }
html.scenes .case__title { font-size: clamp(32px, 3vw, 46px); }
html.scenes .case__visual { min-height: 0; display: flex; flex-direction: column; }
html.scenes .canvas { aspect-ratio: auto; flex: 1; min-height: 0; }
html.scenes html.scenes .canvas--shot { flex: none; }
html.scenes .case.case--shot { grid-template-rows: auto auto; align-content: center; }
html.scenes .case.case--n8n { grid-template-rows: auto minmax(var(--case-min, 460px), 1fr); }        /* screenshots get their own layout once they arrive */
html.scenes .services { display: flex; flex-direction: column; justify-content: center; padding: 96px var(--pad) 36px; }
html.scenes .services__title { font-size: clamp(40px, 4.2vw, 68px); max-width: none; }
html.scenes .services__intro { margin-top: 16px; }
html.scenes .services__intro p { font-size: 17px; }
html.scenes .glass-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(24px, 3.5vh, 44px); width: 100%; }
html.scenes .glass { min-height: clamp(250px, 36vh, 340px); padding: 24px; border-radius: 24px; }
html.scenes .glass h3 { font-size: clamp(24px, 1.9vw, 30px); margin-top: 22px; padding-top: 0; }
html.scenes .glass p { font-size: 15.5px; }
html.scenes .glass__icon { width: 48px; height: 48px; border-radius: 15px; }
html.scenes .services__also { margin-top: 20px; }
html.scenes .faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 80px); align-items: center;
  max-width: calc(1240px + var(--pad) * 2); margin: 0 auto; padding: 92px var(--pad) 28px; }
html.scenes .faq__head, html.scenes .faq__list { margin: 0; max-width: none; }
html.scenes .faq__list { margin-top: 0; }
html.scenes .faq__title { font-size: clamp(40px, 4vw, 66px); }
html.scenes .faq__item summary { padding: 13px 0; }
html.scenes .faq__item h3 { font-size: clamp(19px, 1.5vw, 23px); }
html.scenes .faq__icon { width: 36px; height: 36px; }
html.scenes .faq__item p { font-size: 16px; padding-bottom: 18px; }

.pager { position: fixed; z-index: 60; right: 22px; top: 50%; transform: translateY(-50%); display: grid; gap: 6px; }
.pager button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.pager span { width: 6px; height: 6px; border-radius: 50%; background: rgb(238 244 247 / .35); transition: height .5s var(--ease-out), background-color .35s; }
.pager button:hover span { background: var(--ink); }
.pager button.on span { height: 18px; border-radius: 4px; background: var(--cantaloupe); }


/* ---------- Process: four steps joined by a wire that fills green as you scroll ---------- */
.process { position: relative; padding: clamp(80px, 10vw, 140px) var(--pad); }
.process__head { max-width: 760px; margin: 0 auto; text-align: center; }
.process__title { margin-top: 18px; font: 500 clamp(40px, 5vw, 76px)/1 var(--serif); letter-spacing: -0.025em; text-wrap: balance; }
.process__title em, .about__title em { font-style: italic; font-weight: 400; color: var(--blue-hi); }
.process__intro { margin: 20px auto 0; max-width: 48ch; color: var(--ink-dim); }
.flow { --node: 64px; position: relative; max-width: 1240px; margin: clamp(48px, 7vh, 80px) auto 0; }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.flow__wire { position: absolute; left: calc(12.5% - 10px); right: calc(12.5% - 10px); top: calc(var(--node) / 2 - 1px); height: 2px; background: rgb(108 203 255 / .14); border-radius: 2px; }
.flow__fill { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--ok, #3DDC97), #8FF0C4); box-shadow: 0 0 14px rgb(61 220 151 / .55); border-radius: inherit; }
.flow__packet { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #F4FFF9; box-shadow: 0 0 0 5px rgb(61 220 151 / .22), 0 0 22px 4px rgb(61 220 151 / .7); opacity: 0; }
.flow__step { position: relative; text-align: center; }
.flow__node { position: relative; z-index: 1; width: var(--node); height: var(--node); margin: 0 auto; display: grid; place-items: center; border-radius: 18px;
  background: rgb(14 30 42 / .96); border: 1px solid rgb(108 203 255 / .25); box-shadow: 0 16px 34px -18px #000; transition: border-color .4s, box-shadow .4s; }
.flow__node > svg { width: 26px; height: 26px; fill: none; stroke: var(--blue-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.flow__ok { position: absolute; right: -7px; bottom: -7px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #3DDC97;
  box-shadow: 0 0 0 3px rgb(6 18 26); transform: scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.flow__ok svg { width: 13px; height: 13px; fill: none; stroke: #052012; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow__step.is-done .flow__node { border-color: #3DDC97; box-shadow: 0 0 0 4px rgb(61 220 151 / .12), 0 0 28px rgb(61 220 151 / .3); }
.flow__step.is-done .flow__ok { transform: scale(1); }
.flow__no { display: block; margin-top: 22px; font: 500 12px/1 var(--mono); letter-spacing: .16em; color: var(--cantaloupe); }
.flow__step h3 { margin: 12px 0 0; font: 500 clamp(24px, 2vw, 30px)/1.1 var(--serif); letter-spacing: -0.01em; }
.flow__step p { margin: 12px auto 0; max-width: 30ch; color: var(--ink-dim); font-size: 16px; }
@media (max-width: 860px) {
  .flow__list { grid-template-columns: 1fr; gap: 40px; }
  .flow__wire { display: none; }
}

/* ---------- About: the graduation portrait and who you would be working with ---------- */
.about { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad); display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.deck { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1000 / 1135; padding: 0; border: 0; background: none; cursor: pointer; }
.deck__card { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; border: 1px solid rgb(255 255 255 / .1);
  box-shadow: 0 40px 90px -40px #000, 0 0 0 1px rgb(0 0 0 / .2); will-change: transform; }
.deck__hint { position: absolute; z-index: 10; left: 50%; bottom: -46px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); transition: color .25s; }
.deck__hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.deck:hover .deck__hint { color: var(--blue-hi); }
.deck:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 12px; border-radius: 26px; }
.about__title { margin: 18px 0 0; font: 500 clamp(38px, 4.4vw, 66px)/1.02 var(--serif); letter-spacing: -0.025em; }
.about__copy > p:not(.eyebrow) { margin-top: 18px; max-width: 56ch; color: var(--ink-dim); }
.about__copy > p.eyebrow + h2 + p { margin-top: 26px; }
.about__facts { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about__facts li { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgb(255 255 255 / .03); font-size: 15px; line-height: 1.35; color: var(--ink); }
.about__facts b { display: block; margin-bottom: 6px; font: 400 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.about__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.about__link { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--midnight); font-weight: 600; font-size: 15px; transition: background .2s; }
.about__link:hover { background: var(--cantaloupe); }
.about__link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .deck { width: min(300px, 80%); margin-bottom: 40px; }
  .about__facts { grid-template-columns: 1fr; }
}
html.scenes .process, html.scenes .about { display: grid; align-content: center; padding-top: 96px; padding-bottom: 48px; }
html.scenes .about { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }


/* ---------- Stacked sheets: the work section on laptops and desktops ---------- */
html.stack .bridge { padding-bottom: 0; }
html.stack .bridge__open { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; }
html.stack .cases { max-width: none; margin: 0 calc(var(--pad) * -1); gap: 0; }
html.stack .case { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; overflow: hidden;
  padding: 92px var(--stage) 30px; gap: 22px; grid-template-rows: auto minmax(0, 1fr);
  background: radial-gradient(90% 60% at 70% 0%, rgb(2 151 222 / .12), transparent 60%), linear-gradient(180deg, #0A1D2C, #061624 35%, #04101A);
  border-radius: 36px 36px 0 0; border-top: 1px solid rgb(108 203 255 / .2); box-shadow: 0 -40px 90px -30px rgb(0 0 0 / .85); }
html.stack .bridge__open::after, html.stack .case::after { /* the dim that settles over a sheet once the next one covers it */
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit; background: #02080D; opacity: var(--dim, 0); }
html.stack .case__visual { min-height: 0; display: flex; }
html.stack .canvas--shot { flex: 1; min-height: 0; min-width: 0; container-type: size; display: grid; place-items: center; overflow: hidden;
  padding: 44px 18px 14px; --shot-pad: 0px; }
html.stack .shot { min-width: 0; width: min(100cqw, 100cqh * var(--ar)); aspect-ratio: var(--ar); }
html.stack .case--side { grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr); grid-template-rows: minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); }
html.stack .case--side .case__story { grid-template-columns: 1fr; align-content: center; align-self: center; }
html.stack .case--side .case__story > * { grid-column: 1 !important; grid-row: auto !important; }
html.stack .case--side .case__body { margin-top: 18px; }

/* The travel curtain */
.veil { position: fixed; inset: 0; z-index: 190; visibility: hidden; display: grid; place-content: center; justify-items: center; gap: 18px; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 55%, #0B2335, var(--midnight) 70%); }
.veil__label { font: 500 clamp(30px, 4vw, 60px)/1.05 var(--serif); letter-spacing: -0.02em; color: var(--ink); text-align: center; padding: 0 var(--pad); white-space: pre; }
.veil__line { width: min(420px, 60vw); height: 2px; transform: scaleX(0); background: linear-gradient(90deg, transparent, var(--blue), #E6F6FF, var(--blue), transparent);
  box-shadow: 0 0 16px rgb(2 151 222 / .7); order: 2; }
html.stack .case.case--shot { grid-template-rows: auto minmax(0, 1fr); align-content: stretch; }
html.stack .case.case--shot.case--side { grid-template-rows: minmax(0, 1fr); }
html.stack .case--side .case__story { display: flex; flex-direction: column; justify-content: center; gap: 0; }
html.stack .case--side .case__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
html.stack .case--side .case__tools { margin-top: 20px; }
html.stack .case--side .case__story { align-items: stretch; }
html.stack .case--side .case__story > * { align-self: auto !important; }

html.stack .case--side .case__title { margin-bottom: 0; }

.about__link--ghost { background: transparent; color: var(--ink); border: 1px solid rgb(238 244 247 / .3); }
.about__link--ghost:hover { background: rgb(238 244 247 / .08); border-color: var(--ink); }

/* ---------- Book a call ---------- */
.book { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--pad); display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.book__title { margin: 18px 0 0; font: 500 clamp(38px, 4.4vw, 66px)/1.02 var(--serif); letter-spacing: -0.025em; }
.book__title em { font-style: italic; font-weight: 400; color: var(--cantaloupe); }
.book__intro { margin-top: 22px; max-width: 46ch; color: var(--ink-dim); }
.book__steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.book__steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: baseline; color: var(--ink); font-size: 16px; }
.book__steps b { font: 500 12px/1 var(--mono); letter-spacing: .12em; color: var(--cantaloupe); }
.book__alt { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-hi); }
.book__alt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.book__alt:hover { color: var(--ink); }
.book__cal { position: relative; height: min(700px, 78vh); border-radius: 26px; overflow: hidden; border: 1px solid rgb(108 203 255 / .2);
  background: #0a1d2c; box-shadow: 0 40px 90px -40px #000, 0 0 60px -20px rgb(2 151 222 / .4); }
.book__cal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s; }
.book__cal.is-ready iframe { opacity: 1; }
.book__calcom { position: absolute; inset: 0; overflow: auto; scrollbar-width: none; }
.book__cal:has(.book__calcom) { background: #0A1D2C; }
.book__loading { position: absolute; inset: 0; display: grid; place-content: center; margin: 0; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.book__cal.is-ready .book__loading { display: none; }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .book__cal { height: 720px; } }
html.scenes .book { min-height: 100svh; align-content: center; padding-top: 96px; padding-bottom: 40px; }

/* Smoother sheets: each one is its own GPU layer, and frosted glass is skipped inside opaque sheets */
html.stack .bridge__open, html.stack .case { will-change: transform; backface-visibility: hidden; }
html.stack .case .canvas { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgb(10 26 38 / .9); }

/* Book a call, wide: Cal.com switches to its three-column layout (details | calendar | times) at about 900px wide */
@media (min-width: 1000px) {
  .book { max-width: none; margin: 0; padding-left: var(--stage); padding-right: var(--stage); grid-template-columns: minmax(0, 1fr) 900px; gap: clamp(36px, 4vw, 64px); }
  .book__cal { height: min(560px, 74vh); }
  .book__title { font-size: clamp(36px, 3.6vw, 58px); }
}
/* Not enough room beside it: the words go on top and the calendar spans the full width below */
@media (min-width: 1000px) and (max-width: 1399px) {
  .book { grid-template-columns: 1fr; justify-items: center; }
  .book__copy { width: 100%; max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 48px; align-items: end; }
  .book__copy > .eyebrow, .book__copy > .book__title { grid-column: 1; }
  .book__copy > .book__intro, .book__copy > .book__steps, .book__copy > .book__alt { grid-column: 2; }
  .book__copy > .book__intro { grid-row: 1 / span 2; align-self: end; }
  .book__steps { margin-top: 18px; gap: 8px; } .book__steps li { font-size: 15px; }
  .book__alt { margin-top: 16px; }
  .book__cal { width: 100%; max-width: 980px; }
}

/* Click to spin: show the card's back while it turns, so it never blinks out halfway */
[data-glass] { cursor: pointer; }
.glass.is-spinning { backface-visibility: visible; -webkit-backface-visibility: visible; }
.glass > * { opacity: var(--face, 1); }      /* the words fade out as the card turns away, so the back is plain glass */

/* Word-by-word headlines: each word is its own piece so it can drift in on its own */
.w { display: inline-block; will-change: transform, opacity, filter; }
.hero__title .line { overflow: visible; }

html.stack .case--side .case__stats { margin-top: 34px; }

/* Process: sticks in place while the green runs, with no JavaScript pinning */
.process-track { position: relative; height: calc(100vh + 140vh); height: calc(100svh + 140vh); }
.process-track > .process { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; }

/* ---------- Orion, the chat assistant ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.orion { position: fixed; z-index: 120; right: 22px; bottom: 22px; font-family: var(--sans); }
.orion__mark { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; }
.orion__mark path { fill: none; opacity: .55; }
.orion__launch { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(108 203 255 / .35); color: var(--ink); font: 600 15px/1 var(--sans);
  background: linear-gradient(135deg, rgb(2 151 222 / .35), rgb(10 29 44 / .9)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px -16px #000, 0 0 26px -6px rgb(2 151 222 / .6); transition: transform .25s var(--ease-out), box-shadow .25s; }
.orion__launch:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px #000, 0 0 34px -4px rgb(2 151 222 / .8); }
.orion__launch .orion__mark { color: #CDEFFF; filter: drop-shadow(0 0 6px rgb(108 203 255 / .8)); }
.orion.is-open .orion__launch { opacity: 0; pointer-events: none; transform: scale(.9); }
.orion__panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100svh - 120px));
  display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; border: 1px solid rgb(108 203 255 / .22);
  background: radial-gradient(120% 60% at 80% 0%, rgb(2 151 222 / .2), transparent 60%), rgb(7 20 31 / .94);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: 0 40px 90px -30px #000, 0 0 60px -24px rgb(2 151 222 / .7);
  transform-origin: 100% 100%; }
.orion__panel[hidden] { display: none; }
.orion__head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 18px; border-bottom: 1px solid rgb(108 203 255 / .12); }
.orion__avatar { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: #CDEFFF;
  background: linear-gradient(145deg, rgb(2 151 222 / .4), rgb(2 151 222 / .08)); border: 1px solid rgb(108 203 255 / .3); }
.orion__who { display: grid; gap: 3px; flex: 1; }
.orion__who b { font: 500 21px/1 var(--serif); letter-spacing: -0.01em; }
.orion__who small { display: inline-flex; align-items: center; gap: 6px; font: 400 11px/1 var(--mono); letter-spacing: .06em; color: var(--ink-faint); }
.orion__who small i { width: 6px; height: 6px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 8px #3DDC97; }
.orion__close { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: none; color: var(--ink-dim); cursor: pointer; }
.orion__close:hover { color: var(--ink); border-color: rgb(238 244 247 / .3); }
.orion__close svg, .orion__send svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.orion__log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: rgb(108 203 255 / .2) transparent; overscroll-behavior: contain; }
.orion__msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.orion__msg a { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 2px; }
.orion__msg--bot { align-self: flex-start; background: rgb(255 255 255 / .05); border: 1px solid rgb(108 203 255 / .14); border-bottom-left-radius: 6px; color: var(--ink); }
.orion__msg--me { align-self: flex-end; background: linear-gradient(135deg, #0297DE, #0A7DB8); color: #fff; border-bottom-right-radius: 6px; }
.orion__typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; border-radius: 18px; border-bottom-left-radius: 6px; background: rgb(255 255 255 / .05); border: 1px solid rgb(108 203 255 / .14); }
.orion__typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); animation: orion-dot 1s infinite ease-in-out; }
.orion__typing i:nth-child(2) { animation-delay: .15s; } .orion__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes orion-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.orion__slots { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 6px; max-width: 92%; }
.orion__slot, .orion__chip { padding: 8px 12px; border-radius: 999px; border: 1px solid rgb(108 203 255 / .3); background: rgb(2 151 222 / .08); color: var(--ink);
  font: 500 12.5px/1 var(--sans); cursor: pointer; transition: background .2s, border-color .2s; }
.orion__slot:hover, .orion__chip:hover { background: rgb(2 151 222 / .22); border-color: var(--blue-hi); }
.orion__chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; }
.orion__chips:empty { display: none; }
.orion__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgb(108 203 255 / .12); }
.orion__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.orion__input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid rgb(108 203 255 / .2); background: rgb(255 255 255 / .04);
  color: var(--ink); font: 400 15px var(--sans); outline: none; transition: border-color .2s; }
.orion__input::placeholder { color: var(--ink-faint); }
.orion__input:focus { border-color: var(--blue-hi); }
.orion__send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #0297DE, #0A7DB8); box-shadow: 0 0 18px -4px rgb(2 151 222 / .8); }
.orion__send:disabled { opacity: .5; cursor: default; }
@media (max-width: 560px) { .orion { right: 14px; bottom: 14px; } .orion__launch span { display: none; } .orion__launch { width: 52px; padding: 0; justify-content: center; } }

/* ---------- Footer ---------- */
.footer { position: relative; max-width: none; margin: 0; padding: clamp(56px, 7vw, 90px) var(--stage) 32px; border-top: 1px solid rgb(108 203 255 / .14);
  background: linear-gradient(180deg, rgb(3 12 20 / 0), rgb(3 12 20 / .75) 40%); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, .7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
.footer__logo { display: inline-flex; align-items: center; gap: 12px; font: 500 26px/1 var(--serif); color: var(--ink); }
.footer__logo img { width: 34px; height: auto; }
.footer__brand p { margin: 18px 0 0; max-width: 46ch; color: var(--ink-dim); font-size: 15.5px; }
.footer__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--midnight); font-weight: 600; font-size: 14.5px; transition: background .2s; }
.footer__cta:hover { background: var(--cantaloupe); }
.footer__cta svg, .footer__top-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h3 { margin: 4px 0 6px; font: 400 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.footer__col a { color: var(--ink-dim); font-size: 15px; width: fit-content; transition: color .2s; overflow-wrap: anywhere; }
.footer__col a:hover { color: var(--blue-hi); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 72px); padding-top: 22px;
  border-top: 1px solid rgb(108 203 255 / .1); font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-faint); }
.footer__bottom p { margin: 0; }
.footer__top-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); margin-right: clamp(0px, 14vw, 230px); }
.footer__top-link:hover { color: var(--ink); }
@media (max-width: 800px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } .footer__top-link { margin-right: 0; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }
.orion__note { margin: 0; padding: 0 16px 8px; font: 400 10.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-faint); text-align: center; }
