/* ==========================================================================
   Story — the cinematic scroll scenes (homepage, technology page)

   Two modes:
   • Default (no JS / reduced motion / GSAP unavailable): every scene is an
     ordinary section with all content visible.
   • html.motion (set by story.js): a scene is a tall track (--len × 1vh) whose
     stage sticks to the viewport while GSAP ScrollTrigger scrubs a timeline.
     Native scrolling is never hijacked; position: sticky does the pinning.
   ========================================================================== */

.caps { text-transform: uppercase; }

.scene { position: relative; }
.scene__stage { position: relative; }
.scene:not(.hero) > .scene__stage { padding-block: var(--section); }

.motion .scene { height: calc(var(--len, 300) * 1vh); }
.motion .scene > .scene__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 8px) 0 24px;
}
.motion .scene > .scene__stage > .container { width: 100%; }

/* Shared scene headline */
.s3__title, .s4__title, .s5__title, .s6__title, .s7__title, .stack-scene__title, .process__title {
  font-size: clamp(1.9rem, 4.2vw, 3.7rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* --------------------------------------------------------------------------
   The world — fixed network canvas behind the story
   -------------------------------------------------------------------------- */
.world {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 900ms var(--ease-out);
}
.world.is-ready { opacity: 1; }

/* Story HUD (desktop) ------------------------------------------------------- */
.story-hud {
  position: fixed;
  left: var(--gutter);
  bottom: 28px;
  z-index: 40;
  display: none;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  pointer-events: none;
}
@media (min-width: 1100px) { .motion .story-hud { display: flex; } }
.story-hud.is-visible { opacity: 1; transform: none; }
.story-hud__bar { position: relative; width: 64px; height: 1px; background: var(--border-strong); overflow: hidden; }
.story-hud__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.story-hud__title { font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero__stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 24px) 0 96px;
  overflow: hidden;
}
.motion .hero > .hero__stage { padding-bottom: 96px; }
.hero__light {
  position: absolute;
  left: 64%;
  top: 46%;
  width: 78vmin;
  height: 78vmin;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(1, 194, 196, 0.2) 0%, rgba(36, 248, 197, 0.07) 34%, transparent 66%);
  animation: glow-in 1.8s var(--ease-out) 0.1s both;
  pointer-events: none;
}
.hero__content { position: relative; }
.hero__eyebrow { animation: fade-in 900ms var(--ease-out) 0.25s both; }
.hero__title {
  margin: 22px 0 26px;
  font-size: var(--fs-hero);
  font-weight: 780;
  line-height: 0.96;
  letter-spacing: -0.045em;
}
.hero__line { display: block; overflow: hidden; padding-bottom: 0.05em; margin-bottom: -0.05em; }
.hero__line > span { display: inline-block; animation: line-up 1.15s var(--ease-out) both; }
.hero__line:nth-child(1) > span { animation-delay: 0.35s; }
.hero__line:nth-child(2) > span { animation-delay: 0.45s; }
.hero__line:nth-child(3) > span { animation-delay: 0.6s; }
.hero__line:nth-child(4) > span { animation-delay: 0.7s; }
.hero__line--accent > span {
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__text {
  max-width: 54ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  animation: fade-up 1s var(--ease-out) 0.95s both;
}
.hero__actions { margin-top: 36px; animation: fade-up 1s var(--ease-out) 1.1s both; }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fade-in 1s var(--ease-out) 1.6s both;
}
.hero__scroll i { position: relative; width: 1px; height: 42px; background: var(--border); overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: scroll-cue 2.2s var(--ease-in-out) infinite; }

/* --------------------------------------------------------------------------
   01 · The financial world
   -------------------------------------------------------------------------- */
.s1__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: 34px; }
.s1__lines {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 7.2vw, 6.6rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--text-primary);
}
.s1__line { display: block; }
.s1__w { display: inline-block; }
.s1__after {
  max-width: 17ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.9vw, 3.4rem);
  font-weight: 720;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}
.motion .s1__w { opacity: 0.1; }
.motion .s1__after { position: absolute; inset: 0; margin: auto; width: min(17ch, 92vw); height: fit-content; opacity: 0; }

/* --------------------------------------------------------------------------
   02 · The complexity
   -------------------------------------------------------------------------- */
.s2__tangle {
  position: absolute;
  inset: 12% 0;
  width: 100%;
  height: 76%;
  fill: none;
  stroke: rgba(1, 30, 59, 0.1);
  stroke-width: 1;
  pointer-events: none;
}
.s2__tangle path { vector-effect: non-scaling-stroke; }
html:not(.motion) .s2__tangle { opacity: 0.5; }
.s2__inner { position: relative; display: grid; justify-items: center; text-align: center; gap: clamp(40px, 8vh, 96px); }
.s2__title {
  font-size: clamp(2.2rem, 6.2vw, 5.6rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.045em;
}
.s2__t { display: block; }
.motion .s2__title { display: grid; }
.motion .s2__t { grid-area: 1 / 1; }
.motion .s2__t--2 { opacity: 0; }
.s2__field { position: relative; width: 100%; display: grid; place-items: center; }
.s2__wire {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-bright) 20%, var(--mint) 50%, var(--accent-bright) 80%, transparent);
  opacity: 0.7;
}
.motion .s2__wire { transform: scaleX(0); opacity: 0; }
.s2__nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 14px 16px;
  list-style: none;
  padding: 0;
}
.s2__node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  will-change: transform;
}
.s2__node .icon { width: 20px; height: 20px; color: var(--accent); }
.s2__node.is-aligned { border-color: var(--border-accent); }

/* --------------------------------------------------------------------------
   03 · The connection — AITS core
   -------------------------------------------------------------------------- */
.s3__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.s3__title { margin: 18px 0 22px; }
.s3__text { max-width: 46ch; font-size: var(--fs-lead); }
.s3__visual { position: relative; width: min(100%, 600px, 72vh); aspect-ratio: 1; margin-inline: auto; }
.core__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.core__orbit { fill: none; stroke: rgba(1, 30, 59, 0.12); stroke-dasharray: 2 7; }
.core__orbit--inner { stroke: rgba(8, 127, 130, 0.22); }
.core__ring { fill: none; stroke: rgba(8, 127, 130, 0.45); stroke-width: 1.2; }
.core__line { stroke: rgba(8, 127, 130, 0.55); stroke-width: 1.4; fill: none; }
.core__pulse { fill: var(--accent-bright); }
.core__center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 27%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border-accent);
  box-shadow: var(--glow);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
}
.core__center img { width: 42%; height: auto; }
.core__center span { font-family: var(--font-display); font-size: clamp(0.56rem, 1vw, 0.76rem); font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-primary); }
.core__node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1vw, 0.78rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: border-color 400ms, color 400ms, box-shadow 400ms;
}
.core__node .icon { width: 18px; height: 18px; color: var(--text-muted); transition: color 400ms; }
.core__node.is-lit, html:not(.motion) .core__node { border-color: var(--border-accent); color: var(--text-primary); box-shadow: var(--glow); }
.core__node.is-lit .icon, html:not(.motion) .core__node .icon { color: var(--accent); }

/* --------------------------------------------------------------------------
   04 · Intelligence
   -------------------------------------------------------------------------- */
.s4__inner { display: grid; gap: clamp(24px, 5vh, 56px); }
.s4__head { display: grid; gap: 16px; }
.s4__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
}
.s4__in { display: grid; gap: 12px; justify-items: start; }
.tx {
  position: relative;
  width: min(100%, 300px);
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.tx__label { font-family: var(--font-display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.tx__amt { font-family: var(--font-display); font-size: 1.45rem; font-weight: 760; letter-spacing: -0.02em; color: var(--text-primary); }
.tx__meta { font-size: 0.82rem; color: var(--text-muted); }
.tx__dot { position: absolute; top: 16px; right: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(1, 194, 196, 0.15); animation: blink 1.4s ease-in-out infinite; }

.s4__engine { position: relative; width: clamp(150px, 17vw, 230px); display: grid; justify-items: center; gap: 12px; }
.s4__engine svg { width: 100%; overflow: visible; }
.eng__r { fill: none; stroke: rgba(1, 30, 59, 0.14); }
.eng__r--1 { fill: rgba(255, 255, 255, 0.8); }
.eng__r--2 { stroke: var(--accent-bright); stroke-width: 1.5; stroke-dasharray: 5 9; transform-origin: 120px 120px; }
.eng__r--3 { stroke: var(--border-accent); fill: rgba(1, 194, 196, 0.06); }
.eng__bars rect { fill: var(--accent); transform-box: fill-box; transform-origin: center bottom; animation: bar-grow 1.1s ease-in-out infinite alternate; }
.eng__bars rect:nth-child(2) { animation-delay: 0.2s; }
.eng__bars rect:nth-child(3) { animation-delay: 0.4s; }
.eng__bars rect:nth-child(4) { animation-delay: 0.6s; }
.eng__label { font-family: var(--font-display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-secondary); }

.s4__out { display: grid; gap: 10px; justify-items: stretch; width: min(100%, 320px); justify-self: end; }
.out {
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.out__k { font-family: var(--font-display); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.out__v { display: flex; align-items: center; gap: 6px; }
.out__v strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 780; letter-spacing: -0.02em; }
.out__v small { font-size: 0.82rem; color: var(--text-muted); }
.out__bar { display: block; height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.out__bar b { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--v, 1)); }
.out--decision strong { color: var(--success); }
.out--decision .icon { color: var(--success); width: 22px; height: 22px; }
.s4__log { display: grid; gap: 6px; list-style: none; padding: 0; margin-top: 4px; font-size: 0.88rem; }
.s4__log li { display: flex; justify-content: space-between; padding: 8px 14px; border-radius: 10px; background: var(--bg-secondary); }
.s4__log span { font-weight: 600; color: var(--text-primary); }
.s4__log b { font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.s4__log .ok { color: var(--success); }
.s4__log .warn { color: var(--amber); }
.s4__note { justify-content: center; }

/* --------------------------------------------------------------------------
   05 · Payments pipeline
   -------------------------------------------------------------------------- */
.s5__inner { display: grid; gap: clamp(40px, 9vh, 96px); }
.s5__head { display: grid; gap: 16px; max-width: 900px; }
.pipe { position: relative; --p: 1; }
.pipe__steps { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.pipe__step { display: grid; justify-items: center; align-content: start; text-align: center; gap: 4px; }
.pipe__node {
  position: relative;
  z-index: 1;
  width: 66px;
  height: 66px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
  transition: border-color 400ms, color 400ms, box-shadow 400ms, background-color 400ms;
}
.pipe__node .icon { width: 24px; height: 24px; }
.pipe__step.is-on .pipe__node,
html:not(.motion) .pipe__node { border-color: var(--accent); color: var(--accent); box-shadow: var(--glow); }
.pipe__step.is-current .pipe__node { background: var(--navy); color: var(--mint); border-color: var(--navy); }
.pipe__step.is-current .pipe__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent-bright);
  animation: pulse-ring 1.6s var(--ease-out) infinite;
}
.pipe__idx { font-size: 0.72rem; color: var(--accent); }
.pipe__step strong { font-family: var(--font-display); font-size: 1.02rem; }
.pipe__step small { font-size: 0.86rem; color: var(--text-muted); line-height: 1.4; }
.pipe__track { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 32px; height: 2px; background: var(--border); }
.pipe__fill { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p)); }
.pipe__packet {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  z-index: 2;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 6px rgba(1, 194, 196, 0.25);
}
html:not(.motion) .pipe__packet { display: none; }

/* --------------------------------------------------------------------------
   06 · Digital lending
   -------------------------------------------------------------------------- */
.s6__inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.s6__title { margin-top: 18px; }
.s6__steps { display: grid; gap: 2px; margin-top: 30px; list-style: none; padding: 0; }
.s6__steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0 8px 16px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 650;
  color: var(--text-muted);
  transition: color 400ms;
}
.s6__steps li::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--grad); transform: translateY(-50%); transition: height 400ms var(--ease-out); }
.s6__steps .mono { font-size: 0.72rem; color: var(--accent); }
.s6__steps li.is-done { color: var(--text-secondary); }
.s6__steps li.is-current { color: var(--text-primary); }
.s6__steps li.is-current::before { height: 70%; }
html:not(.motion) .s6__steps li { color: var(--text-secondary); }

.s6__visual { position: relative; height: min(520px, 64vh); min-height: 400px; }
.doc {
  position: absolute;
  width: 56%;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.doc--app { left: 0; top: 0; }
.doc--id { left: 20%; top: 14%; }
.doc--bank { left: 40%; top: 28%; }
.doc__head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.doc__head .icon { width: 20px; height: 20px; color: var(--accent); }
.doc__field { display: grid; gap: 5px; }
.doc__field i { font-style: normal; font-size: 0.7rem; color: var(--text-muted); }
.doc__field b, .doc__lines b, .doc__table b { display: block; height: 8px; border-radius: 4px; background: var(--surface-2); }
.doc__field b.short, .doc__lines b.short { width: 55%; }
.doc__idrow { display: flex; gap: 14px; align-items: center; }
.doc__avatar { flex: none; width: 54px; height: 64px; border-radius: 10px; background: linear-gradient(180deg, var(--bg-tint), var(--surface-2)); }
.doc__lines { flex: 1; display: grid; gap: 8px; }
.doc__table { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.doc__ok { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 4px 10px; border-radius: var(--radius-pill); background: #ecf8f3; color: var(--success); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.doc__ok .icon { width: 14px; height: 14px; stroke-width: 2.4; }
.s6__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-bright), transparent);
  box-shadow: 0 0 14px rgba(1, 194, 196, 0.8);
  opacity: 0;
  pointer-events: none;
}
.s6__panel {
  position: absolute;
  right: 0;
  width: 50%;
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.s6__risk { bottom: 24%; }
.s6__decision { bottom: 0; border-color: rgba(15, 138, 95, 0.3); }
.s6__panel .upper { color: var(--text-muted); }
.s6__bars { display: flex; align-items: flex-end; gap: 6px; height: 48px; }
.s6__bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent-bright), rgba(1, 194, 196, 0.25)); transform-origin: bottom; }
.s6__rules { display: grid; gap: 6px; list-style: none; padding: 0; font-size: 0.84rem; }
.s6__rules li { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.s6__rules .icon { width: 15px; height: 15px; color: var(--success); stroke-width: 2.4; }
.s6__decision strong { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.5rem; color: var(--success); }
.s6__decision strong .icon { width: 26px; height: 26px; }
.s6__disb { display: block; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.s6__disb i { display: block; height: 100%; background: var(--grad); transform-origin: left; }
.s6__decision small { font-size: 0.8rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   07 · Risk & fraud
   -------------------------------------------------------------------------- */
.s7 > .scene__stage { min-height: 640px; }
.s7__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.motion) .s7__canvas { opacity: 0.6; }
.s7__inner { position: relative; display: grid; gap: 32px; align-content: space-between; }
.motion .s7__inner { height: 100%; }
.s7__head { display: grid; gap: 16px; max-width: 760px; }
.s7__panel {
  justify-self: end;
  width: min(440px, 100%);
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.s7__states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; }
.s7__states li { display: grid; gap: 8px; font-family: var(--font-display); font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); transition: color 300ms; }
.s7__states i { display: block; height: 3px; border-radius: 3px; background: var(--surface-2); transition: background-color 300ms; }
.s7__states li.is-active { color: var(--text-primary); }
.s7__states li.is-active i { background: var(--accent); }
.s7__states li.is-alert i { background: var(--amber); }
.s7__states li.is-alert { color: var(--amber); }
.s7__msgs { position: relative; display: grid; margin-top: 16px; font-size: 0.98rem; }
.s7__msgs p { grid-area: 1 / 1; opacity: 0; transform: translateY(6px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); color: var(--text-secondary); }
.s7__msgs p.is-active { opacity: 1; transform: none; }
html:not(.motion) .s7__msgs { gap: 8px; }
html:not(.motion) .s7__msgs p { grid-area: auto; opacity: 1; transform: none; }
html:not(.motion) .s7__states li i { background: var(--accent); }

/* --------------------------------------------------------------------------
   08 · Solutions explorer
   -------------------------------------------------------------------------- */
.explorer { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.explorer__stage {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, var(--bg-secondary));
  overflow: hidden;
}
.explorer__panel {
  position: absolute;
  inset: 0;
  padding: 5% 6% 12%;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97);
  filter: blur(6px);
  transition: opacity 600ms var(--ease-out), transform 900ms var(--ease-out), filter 600ms var(--ease-out), visibility 0s linear 600ms;
}
.explorer__panel.is-active { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 0s; }
.explorer__panel .v { width: 100%; height: 100%; }
.explorer__caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.explorer__caption .mono { color: var(--accent); }
.explorer__list { border-bottom: 1px solid var(--border); }
.explorer__item { border-top: 1px solid var(--border); }
.explorer__title { font-size: inherit; letter-spacing: normal; }
.explorer__tab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  color: var(--text-muted);
  transition: color var(--t) var(--ease-out);
}
.explorer__num { font-size: 0.74rem; font-weight: 500; color: var(--accent); }
.explorer__icon { margin-left: auto; width: 22px; height: 22px; transition: transform var(--t) var(--ease-out), color var(--t); }
.explorer__tab:hover, .explorer__item.is-active .explorer__tab { color: var(--text-primary); }
.explorer__item.is-active .explorer__icon { transform: rotate(45deg); color: var(--accent); }
.explorer__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 520ms var(--ease-out); }
.js .explorer__item:not(.is-active) .explorer__body { grid-template-rows: 0fr; }
.explorer__body-inner { overflow: hidden; }
.explorer__body p { max-width: 46ch; padding-left: 40px; }
.explorer__body .link { margin: 14px 0 24px 40px; }

/* --------------------------------------------------------------------------
   09 · Technology
   -------------------------------------------------------------------------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.tech-item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 250px;
  padding: clamp(24px, 2.6vw, 36px);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
  transition: background-color var(--t) var(--ease-out);
}
.tech-item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
.tech-item:hover { background: #fff; }
.tech-item:hover::before { transform: scaleX(1); }
.tech-item__idx { position: absolute; top: 22px; right: 24px; font-size: 0.72rem; color: var(--text-muted); }
.tech-item__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: var(--bg-tint); color: var(--accent); margin-bottom: 18px; transition: transform var(--t) var(--ease-out), background-color var(--t), color var(--t); }
.tech-item:hover .tech-item__icon { transform: translateY(-4px); background: var(--navy); color: var(--mint); }
.tech-item__title { font-size: 1.12rem; }
.tech-item__text { font-size: 0.93rem; line-height: 1.55; }

/* Layered architecture ---------------------------------------------------- */
.stack-scene__inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.stack-scene__title { margin: 18px 0 18px; }
.stack-legend { display: grid; margin-top: 26px; list-style: none; padding: 0; border-top: 1px solid var(--border); }
.stack-legend li {
  display: grid;
  grid-template-columns: 34px 118px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 300ms;
}
.stack-legend .mono { font-size: 0.7rem; color: var(--accent); }
.stack-legend strong { font-family: var(--font-display); font-size: 0.95rem; color: inherit; }
.stack-legend li.is-active { color: var(--text-primary); }
html:not(.motion) .stack-legend li { color: var(--text-secondary); }
.stack { height: min(600px, 74vh); min-height: 420px; display: grid; place-items: center; perspective: 1600px; }
.stack__scene {
  --gap: 34px;
  position: relative;
  width: min(380px, 78%);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-40deg);
}
.stack__layer {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(8, 127, 130, 0.4);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(238, 246, 246, 0.45));
  transform: translateZ(calc((3 - var(--i)) * var(--gap)));
  transition: border-color 400ms, background-color 400ms, box-shadow 400ms;
}
.stack__layer.is-active { border-color: var(--accent); background: rgba(238, 250, 250, 0.92); box-shadow: 0 0 0 1px rgba(1, 194, 196, 0.3), 0 30px 70px rgba(1, 194, 196, 0.18); }
.stack__grid {
  position: absolute;
  inset: 14%;
  border-radius: 12px;
  background-image:
    linear-gradient(rgba(1, 30, 59, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 30, 59, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0;
  transition: opacity 400ms;
}
.stack__layer.is-active .stack__grid { opacity: 1; }
.stack__label {
  position: absolute;
  left: 7%;
  bottom: 6%;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.stack__layer.is-active .stack__label { color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   10 · Industries
   -------------------------------------------------------------------------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.industry {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  transition: border-color var(--t) var(--ease-out), transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out);
}
.industry:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.industry__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: var(--bg-tint); color: var(--accent); margin-bottom: 10px; }
.industry__icon .icon { width: 27px; height: 27px; stroke-dasharray: 120; stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms var(--ease-out); transition-delay: calc(var(--si, 0) * 90ms + 200ms); }
.reveal-ready .industry-grid:not(.is-in) .industry__icon .icon { stroke-dashoffset: 120; }
.industry:hover .industry__icon .icon { animation: icon-redraw 1.4s var(--ease-out); }
@keyframes icon-redraw { 0% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 0; } }
.industry__name { font-size: 1.15rem; }
.industry__text { font-size: 0.93rem; line-height: 1.55; }
.industry__list { display: grid; gap: 8px; margin-top: 8px; list-style: none; padding: 16px 0 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.industry__list li { display: flex; gap: 8px; color: var(--text-secondary); }
.industry__list .icon { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); stroke-width: 2; }

/* --------------------------------------------------------------------------
   11 · How we build
   -------------------------------------------------------------------------- */
.process__stage { display: grid; align-content: center; gap: clamp(32px, 6vh, 64px); }
.motion .process > .process__stage { display: grid; }
.process__head { display: grid; gap: 16px; }
.process__title { max-width: 16ch; }
.process__viewport { position: relative; }
.process__progress { position: relative; height: 1px; margin: 0 var(--gutter) 32px; max-width: var(--container); background: var(--border); }
.process__progress i { position: absolute; inset: 0; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 1)); }
.process__track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 0 var(--gutter);
}
.motion .process__track {
  display: flex;
  max-width: none;
  width: max-content;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
  padding-right: var(--gutter);
  will-change: transform;
}
.process__step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
}
.motion .process__step { width: clamp(280px, 27vw, 360px); min-height: 300px; }
.process__num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(8, 127, 130, 0.55);
}
.process__icon { position: absolute; top: 30px; right: 30px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-tint); color: var(--accent); }
.process__name { font-size: 1.35rem; margin-top: 14px; }
.process__step p { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   12 · Security
   -------------------------------------------------------------------------- */
.security { background: linear-gradient(180deg, var(--bg-secondary), #fff 70%); }
.security__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.security__visual { width: min(100%, 420px); margin-inline: auto; }
.security__visual svg { width: 100%; overflow: visible; }
.sec__ring { fill: none; stroke: rgba(1, 30, 59, 0.1); }
.sec__ring--2 { stroke: rgba(8, 127, 130, 0.35); stroke-dasharray: 3 9; transform-origin: 160px 160px; animation: spin-slow 80s linear infinite; }
.sec__ring--3 { fill: rgba(1, 194, 196, 0.06); stroke: rgba(8, 127, 130, 0.25); }
.sec__shield { fill: #fff; stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; }
.sec__tick { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease-out) 0.5s; }
.reveal-ready .security__visual:not(.is-in) .sec__tick { stroke-dashoffset: 60; }
.security__copy .lead { margin-top: 22px; }
.security__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 36px; list-style: none; padding: 0; }
.security__list li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--border); }
.security__list .icon { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.security__list strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.security__list span { display: block; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* --------------------------------------------------------------------------
   Finale
   -------------------------------------------------------------------------- */
.finale { text-align: center; }
.finale:not(.finale--scene) { overflow: hidden; }
.finale__stage { position: relative; display: grid; place-items: center; }
.finale--scene > .finale__stage { min-height: 100vh; min-height: 100svh; }
.finale__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90vmin;
  height: 90vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 194, 196, 0.13), rgba(36, 248, 197, 0.05) 40%, transparent 68%);
  pointer-events: none;
}
.finale__inner { position: relative; display: grid; justify-items: center; gap: 26px; }
.finale__l1 { font-family: var(--font-display); font-size: clamp(1.8rem, 4.6vw, 4rem); font-weight: 760; letter-spacing: -0.04em; line-height: 1.05; color: var(--text-muted); }
.finale__l2 { font-size: clamp(2.3rem, 7vw, 6.4rem); font-weight: 790; letter-spacing: -0.05em; line-height: 0.98; max-width: 14ch; }
.finale__cta { margin-top: 18px; }
