/* ==========================================================================
   TrainICSI — trainicsi.com
   --------------------------------------------------------------------------
   Design concept: "instrumentation". The visual language is borrowed from
   the objects this product lives among — an optical bench, a micromanipulator's
   coordinate readout, a microscope reticle. Structure is drawn with hairlines
   and coordinate labels rather than shadowed cards.

   Colour is taken directly from the trademarked TrainICSI mark:
     blue  #1DA7D3  (pentagon outline, "ICSI")
     green #2FCB9E  (target circle + arrow, "Train")
   Both are used at full strength only in small, deliberate doses — the mark,
   live data, one CTA. Darkened variants carry text so contrast stays legible.
   ========================================================================== */

:root{
  /* --- brand (trademarked; do not substitute) --- */
  --brand-blue:       #1DA7D3;
  --brand-blue-deep:  #12718F;   /* AA-contrast text/CTA variant */
  --brand-blue-dark:  #0C5670;
  --brand-green:      #2FCB9E;
  --brand-green-deep: #1A8465;   /* AA-contrast text variant */

  /* --- surfaces --- */
  --paper:      #F6F7F5;
  --paper-dim:  #ECEFEC;
  --white:      #FFFFFF;
  --ink:        #0F1719;
  --ink-soft:   #3A464A;
  --ink-faint:  #6C767A;
  --line:       #D8DDDA;
  --line-soft:  #E6E9E6;

  --dark:       #0A1416;
  --dark-2:     #0E1D20;
  --on-dark:      #EDF1F0;
  --on-dark-soft: #94A6A8;
  --on-dark-line: rgba(237,241,240,0.14);

  --tint-blue:  #E6F4F9;
  --tint-green: #E5F7F1;

  --danger:     #B2453A;

  /* --- type --- */
  --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --step--2: 0.72rem;
  --step--1: clamp(0.84rem, 0.81rem + 0.14vw, 0.92rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.11rem + 0.38vw, 1.42rem);
  --step-2:  clamp(1.55rem, 1.34rem + 0.9vw, 2.05rem);
  --step-3:  clamp(2rem, 1.62rem + 1.6vw, 2.9rem);
  --step-4:  clamp(2.45rem, 1.88rem + 2.5vw, 4rem);
  --step-5:  clamp(3rem, 2.05rem + 3.9vw, 5.3rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  --ease: cubic-bezier(.16,.8,.24,1);
  --dur-1: 300ms;
  --dur-2: 560ms;
}

/* ========================= reset & base ========================= */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:84px; }
body{ margin:0; background:var(--paper); color:var(--ink);
  font-family:var(--font-body); font-size:var(--step-0); line-height:1.58;
  -webkit-font-smoothing:antialiased; }
img,svg,video{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; cursor:pointer; background:none; border:none; color:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,p{ margin:0; }
h1,h2,h3,h4,h5{ font-family:var(--font-display); font-weight:600; letter-spacing:-0.015em; }

::selection{ background:var(--brand-blue); color:#fff; }
:focus-visible{ outline:2px solid var(--brand-blue); outline-offset:3px; border-radius:2px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:var(--gutter); }
.section{ padding-block: clamp(4.5rem, 9vw, 8rem); position:relative; }
.section-tight{ padding-block: clamp(3rem, 6vw, 5rem); position:relative; }
.band-dim{ background:var(--paper-dim); }
.band-dark{ background:var(--dark); color:var(--on-dark); }
.band-dark .lede,.band-dark .small-print{ color:var(--on-dark-soft); }
.band-dark .rule{ border-top-color:var(--on-dark-line); }
.band-dark .coord{ color:var(--on-dark-soft); }

/* ========================= type utilities ========================= */
.h-display{ font-size:var(--step-5); line-height:1.03; letter-spacing:-0.025em; }
.h-1{ font-size:var(--step-4); line-height:1.07; letter-spacing:-0.02em; }
.h-2{ font-size:var(--step-3); line-height:1.12; }
.h-3{ font-size:var(--step-2); line-height:1.2; }
.lede{ font-size:var(--step-1); color:var(--ink-soft); max-width:46ch; line-height:1.5; }
.small-print{ font-size:var(--step--1); color:var(--ink-faint); }
.coord{ font-family:var(--font-mono); font-size:var(--step--2); letter-spacing:0.04em; color:var(--ink-faint); }
.rule{ border:0; border-top:1px solid var(--line); margin:0; }

.eyebrow{ display:flex; align-items:center; gap:0.8rem; margin-bottom:1.2rem; }
.eyebrow .rule{ flex:1; }

.section-head{
  display:grid; grid-template-columns:1.15fr 0.85fr;
  gap:clamp(1.6rem,5vw,4rem); align-items:end;
  margin-bottom:clamp(2.4rem,6vw,4.2rem);
}
@media (max-width:820px){ .section-head{ grid-template-columns:1fr; } }

/* target glyph reused from the logo's arrow-in-circle */
.glyph{ width:15px; height:15px; flex-shrink:0; color:var(--brand-blue); }
.glyph-green{ color:var(--brand-green-deep); }

/* ========================= buttons ========================= */
.btn{
  display:inline-flex; align-items:center; gap:0.55em;
  padding:0.85em 1.55em; border-radius:3px; border:1px solid transparent;
  font-weight:600; font-size:var(--step--1); white-space:nowrap;
  transition:background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease),
             color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn-primary{ background:var(--brand-blue-deep); color:#fff;
  transform:translate(var(--mx,0),var(--my,0)); }
.btn-primary:hover{ background:var(--brand-blue); }
.btn-ghost{ border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--ink); }
.band-dark .btn-ghost{ border-color:var(--on-dark-line); color:var(--on-dark); }
.band-dark .btn-ghost:hover{ border-color:var(--on-dark); }
.btn-row{ display:flex; gap:0.9rem; flex-wrap:wrap; align-items:center; }

/* ========================= navigation ========================= */
.nav{
  position:fixed; inset:0 0 auto 0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:0.85rem clamp(1.25rem,4vw,3rem);
  background:rgba(246,247,245,0.78);
  backdrop-filter:blur(12px) saturate(150%);
  -webkit-backdrop-filter:blur(12px) saturate(150%);
  border-bottom:1px solid transparent;
  transition:border-color var(--dur-1) var(--ease);
}
.nav.is-scrolled{ border-bottom-color:var(--line); }
.nav-logo img{ height:34px; width:auto; }
.nav-links{ display:flex; align-items:center; gap:clamp(0.9rem,1.9vw,1.75rem); }
.nav-links a{ font-size:0.9rem; color:var(--ink-soft); position:relative; padding:0.25rem 0;
  transition:color var(--dur-1) var(--ease); }
.nav-links a::after{ content:""; position:absolute; left:0; bottom:-1px; width:0; height:1.5px;
  background:var(--brand-blue); transition:width var(--dur-1) var(--ease); }
.nav-links a:hover{ color:var(--ink); }
.nav-links a:hover::after,.nav-links a.is-current::after{ width:100%; }
.nav-links a.is-current{ color:var(--ink); }
.nav-end{ display:flex; align-items:center; gap:1rem; }
.nav-end .btn{ padding:0.62em 1.2em; }

.nav-toggle{ display:none; width:42px; height:42px; position:relative; }
.nav-toggle i,.nav-toggle i::before,.nav-toggle i::after{
  content:""; position:absolute; left:10px; right:10px; height:1.5px; background:var(--ink);
  transition:transform var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease), top var(--dur-1) var(--ease);
}
.nav-toggle i{ top:20px; }
.nav-toggle i::before{ top:-7px; }
.nav-toggle i::after{ top:7px; }
.nav-toggle.is-open i{ background:transparent; }
.nav-toggle.is-open i::before{ top:0; transform:rotate(45deg); background:var(--ink); }
.nav-toggle.is-open i::after{ top:0; transform:rotate(-45deg); background:var(--ink); }

.nav-panel{
  position:fixed; inset:62px 0 0 0; z-index:90; background:var(--paper);
  padding:2rem var(--gutter); display:flex; flex-direction:column; gap:1.35rem;
  opacity:0; transform:translateY(-10px); pointer-events:none;
  transition:opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
  overflow-y:auto;
}
.nav-panel.is-open{ opacity:1; transform:none; pointer-events:auto; }
.nav-panel a{ font-family:var(--font-display); font-size:1.35rem; font-weight:600; }
.nav-panel .btn{ align-self:flex-start; margin-top:0.6rem; }
@media (max-width:1100px){   /* 10 nav links need the extra room before collapsing to the menu */
  .nav-links{ display:none; }
  .nav-end .btn-ghost{ display:none; }
  .nav-toggle{ display:block; }
}

/* ========================= scroll reveal ========================= */
.reveal{ opacity:0; transform:translateY(16px);
  transition:opacity 680ms var(--ease), transform 680ms var(--ease); }
.reveal.is-in{ opacity:1; transform:none; }
.reveal[data-delay="1"]{ transition-delay:80ms; }
.reveal[data-delay="2"]{ transition-delay:160ms; }
.reveal[data-delay="3"]{ transition-delay:240ms; }

/* ========================= hero (cinematic, full-bleed) =========================
   The one deliberately theatrical section at the top of the page, along with
   the Showcase section right after it. Real product photography, full-bleed,
   dark gradient for legible type — everything below this stays calmer. */
.hero-cinematic{
  position:relative; min-height:100svh; display:flex; align-items:flex-end;
  overflow:hidden; background:var(--dark); color:var(--on-dark);
}
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; object-position:center 38%;
  transform:scale(1.06); will-change:transform; }
.hero-cinematic::after{
  content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(6,14,16,0.1) 0%, rgba(6,14,16,0.42) 48%, rgba(6,14,16,0.92) 100%),
    linear-gradient(90deg, rgba(6,14,16,0.72) 0%, rgba(6,14,16,0.08) 52%);
}
.hero-cin-inner{ position:relative; z-index:2;
  padding-top:clamp(8rem,18vw,11.5rem); padding-bottom:clamp(3.2rem,7vw,5.5rem); }
.hero-cinematic .h-display{ max-width:16ch; margin-bottom:1.3rem;
  text-shadow:0 2px 24px rgba(4,10,12,0.5); }
.hero-cinematic .hero-eyebrow .coord{ text-shadow:0 1px 10px rgba(4,10,12,0.7); }
.hero-lede{ color:var(--on-dark-soft); max-width:44ch; margin-bottom:2rem;
  text-shadow:0 1px 14px rgba(4,10,12,0.45); }
.btn-ghost-dark{ border-color:var(--on-dark-line); color:var(--on-dark); }
.btn-ghost-dark:hover{ border-color:var(--on-dark); background:var(--on-dark); color:var(--ink); }

.hero-eyebrow{ display:flex; align-items:center; gap:0.75rem; margin-bottom:1.5rem; }
.brand-badge{ width:30px; height:30px; flex-shrink:0; }
.brand-badge path{ stroke-dasharray:100; stroke-dashoffset:100;
  transition:stroke-dashoffset 1.15s var(--ease); }
.brand-badge .bb-ring{ transition-delay:.18s; }
.brand-badge .bb-arrow{ stroke-dasharray:16; stroke-dashoffset:16; transition-delay:.58s; }
.brand-badge.is-drawn path{ stroke-dashoffset:0; }
@media (prefers-reduced-motion:reduce){ .brand-badge path{ stroke-dashoffset:0 !important; } }

.scroll-cue{ position:absolute; z-index:2; left:50%; bottom:1.6rem; transform:translateX(-50%);
  width:26px; height:42px; border:1.5px solid var(--on-dark-line); border-radius:20px; }
.scroll-cue i{ position:absolute; left:50%; top:7px; width:4px; height:4px; border-radius:50%;
  background:var(--on-dark); transform:translateX(-50%); animation:cue 1.8s var(--ease) infinite; }
@keyframes cue{ 0%{ top:7px; opacity:1 } 70%{ top:24px; opacity:0 } 100%{ top:24px; opacity:0 } }
@media (prefers-reduced-motion:reduce){ .scroll-cue i{ animation:none; } }
@media (max-width:640px){ .scroll-cue{ display:none; } }

/* ========================= showcase (scroll-scrubbed video) =========================
   A tall track with a viewport-pinned stage inside it. JS maps scroll
   progress through the track to the video's currentTime. On touch devices
   and under reduced-motion, main.js swaps this to a plain autoplay loop. */
.showcase{ position:relative; height:320vh; background:var(--dark); }
.showcase-pin{ position:sticky; top:0; height:100svh; overflow:hidden; }
.showcase-media{ position:absolute; inset:0; }
.showcase-media video{ width:100%; height:100%; object-fit:cover; }
.showcase-overlay{ position:absolute; inset:0; z-index:2; pointer-events:none;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:clamp(1.5rem,5vw,3.5rem);
  background:
    linear-gradient(0deg, rgba(6,14,16,0.68) 0%, rgba(6,14,16,0) 42%),
    linear-gradient(180deg, rgba(6,14,16,0.5) 0%, rgba(6,14,16,0) 22%); }
.showcase-tag{ position:relative; z-index:3; color:var(--on-dark); margin-bottom:0.9rem;
  display:inline-flex; padding:0.3rem 0.7rem; border-radius:3px;
  background:rgba(6,14,16,0.45); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  text-shadow:0 1px 10px rgba(4,10,12,0.7); width:fit-content; }
.showcase-lines{ position:absolute; inset:0; pointer-events:none; }
.showcase-line{ position:absolute; margin:0; color:var(--on-dark);
  font-family:var(--font-display); font-weight:600; letter-spacing:-0.015em;
  font-size:clamp(1.4rem,4vw,2.6rem); max-width:20ch; line-height:1.15;
  text-shadow:0 2px 20px rgba(4,10,12,0.6);
  opacity:0; transition:opacity 520ms var(--ease), transform 520ms var(--ease); }
.showcase-line.pos-bl{ left:clamp(1.5rem,5vw,3.5rem); bottom:clamp(1.5rem,5vw,3.5rem);
  text-align:left; transform:translateY(14px); }
.showcase-line.pos-tr{ right:clamp(1.5rem,5vw,3.5rem); top:clamp(4.5rem,9vw,6.5rem);
  text-align:right; transform:translateY(-14px); }
.showcase-line.pos-br{ right:clamp(1.5rem,5vw,3.5rem); bottom:clamp(1.5rem,5vw,3.5rem);
  text-align:right; transform:translateY(14px); }
.showcase-line.is-on{ opacity:1; transform:none; }
@media (max-width:760px){
  .showcase-line.pos-tr{ top:clamp(5.5rem,16vw,7.5rem); }
}
@media (prefers-reduced-motion:reduce){
  .showcase-line{ transition:none; }
  .showcase{ height:auto; }
  .showcase-pin{ position:relative; height:70svh; }
}
/* Narrow / tall viewports: cover crops a landscape video down to a sliver
   of its centre. Letterbox it instead so the whole product stays visible. */
@media (max-width:760px){
  .showcase{ height:220vh; }
  .showcase-media{ background:var(--dark-2); }
  .showcase-media video{ object-fit:contain; }
  .showcase-overlay{ background:linear-gradient(0deg, rgba(6,14,16,0.88) 0%, rgba(6,14,16,0.2) 60%, rgba(6,14,16,0) 80%); }
}

/* ========================= problem / path comparison ========================= */
.path-compare{ display:flex; flex-direction:column; gap:1.1rem; position:relative; z-index:1; }
.flow-box{ border:1px solid var(--line); border-radius:10px;
  padding:clamp(1.4rem,3.4vw,2.3rem) clamp(1.3rem,3vw,2rem);
  background:rgba(255,255,255,0.68); backdrop-filter:blur(3px); -webkit-backdrop-filter:blur(3px); }
.band-dark .flow-box{ background:rgba(14,29,32,0.55); border-color:var(--on-dark-line); }
.path-label{ display:block; font-family:var(--font-mono); font-size:var(--step--1);
  font-weight:500; letter-spacing:0.04em; color:var(--ink-faint); margin-bottom:0.65rem; }
.path-label.is-good{ color:var(--brand-green-deep); }
.path-row{ display:flex; align-items:center; flex-wrap:wrap; gap:0.55rem 0.5rem; }
.path-step{ font-family:var(--font-display); font-weight:600; font-size:1rem;
  padding:0.6rem 1.05rem; border-radius:30px; white-space:nowrap; }
.path-row.is-before .path-step{ background:var(--paper-dim); color:var(--ink-soft); }
.path-row.is-after .path-step{ background:var(--tint-green); color:var(--ink); }
.path-arrow{ color:var(--ink-faint); font-size:1.1rem; }
.path-row.is-after .path-arrow{ color:var(--brand-green-deep); }
.flow-connector{ display:flex; align-items:center; gap:0.6rem; padding:0.85rem 0.1rem;
  color:var(--brand-blue-deep); font-family:var(--font-mono); font-size:var(--step--2);
  letter-spacing:0.05em; }
.flow-connector svg{ width:17px; height:17px; flex-shrink:0; }
@media (max-width:640px){ .path-step{ font-size:0.9rem; padding:0.5rem 0.85rem; } }

/* ========================= ambient section backgrounds =========================
   Soft, slow-drifting colour plus a few hairline pentagon outlines (echoing the
   logo's pentagon) — used to give the quieter, text-only sections
   (Problem, Procedures, Intelligence, Mistakes) some depth without
   competing with the content. Purely decorative: aria-hidden, and the
   layer itself is pointer-events:none so it never blocks clicks.
   Each pentagon is an individual element so main.js can "bulge" the ones
   near the cursor — see .pent and the mousemove handler in main.js. */
.has-ambient{ position:relative; overflow:hidden; }
.has-ambient > .container{ position:relative; z-index:1; }
.ambient{ position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:0; }
.ambient .blob{ position:absolute; border-radius:50%; filter:blur(64px); will-change:transform; }
.ambient .blob.blue{ background:radial-gradient(circle, rgba(29,167,211,0.11), transparent 72%); }
.ambient .blob.green{ background:radial-gradient(circle, rgba(47,203,158,0.09), transparent 72%); }
.band-dark .ambient .blob.blue{ background:radial-gradient(circle, rgba(29,167,211,0.09), transparent 72%); }
.band-dark .ambient .blob.green{ background:radial-gradient(circle, rgba(47,203,158,0.07), transparent 72%); }
@media (prefers-reduced-motion:reduce){ .ambient .blob{ transform:none !important; } }

/* Pentagon accents — a handful of hairline outlines per section, never a grid.
   Outline only (no fill), very low opacity, and masked out toward the centre
   column so they can never sit behind body copy. Positioned per section in
   index.html; drift and pointer-parallax are handled in main.js / below. */
.pent-field{
  position:absolute; inset:0;
  -webkit-mask-image:linear-gradient(90deg,#000 0,#000 9%,transparent 29%,transparent 71%,#000 91%,#000 100%);
          mask-image:linear-gradient(90deg,#000 0,#000 9%,transparent 29%,transparent 71%,#000 91%,#000 100%);
}
.pent-o{
  position:absolute; width:var(--s); height:var(--s);
  --px:0px; --py:0px; --near:0;
  color:var(--brand-blue);
  opacity:calc(var(--o,.15) + var(--near) * .22);
  transform:translate3d(var(--px),var(--py),0);
  will-change:transform;
}
.pent-o.is-green{ color:var(--brand-green); }
.pent-o.is-ink{ color:var(--ink); }
.band-dark .pent-o.is-ink{ color:var(--on-dark); }
.pent-o svg{
  width:100%; height:100%; display:block; overflow:visible;
  fill:none; stroke:currentColor; stroke-width:1.25; stroke-linejoin:round;
  transform:rotate(var(--r,0deg));
  animation:pent-drift var(--dur,120s) linear infinite;
}
.pent-o svg .inner{ opacity:.6; }
.pent-o svg .inner2{ opacity:.4; }
@keyframes pent-drift{
  from{ transform:rotate(var(--r,0deg)); }
  to  { transform:rotate(calc(var(--r,0deg) + 360deg)); }
}
@media (prefers-reduced-motion:reduce){ .pent-o svg{ animation:none; } .pent-o{ transform:none; } }
@media (max-width:900px){ .pent-field{ display:none; } }

.bullets{ display:grid; grid-template-columns:repeat(2,1fr); gap:0 2.4rem; }
@media (max-width:640px){ .bullets{ grid-template-columns:1fr; } }
.bullets li{ display:flex; gap:0.7rem; align-items:flex-start; font-size:var(--step--1);
  color:var(--ink-soft); padding:0.65rem 0; border-top:1px solid var(--line-soft); }
.bullets .glyph{ margin-top:0.18em; }

/* ========================= media slot (photo placeholders) ========================= */
.media{ position:relative; border:1px solid var(--line); border-radius:5px;
  background:var(--paper-dim); overflow:hidden; }
.media img,.media video{ width:100%; height:100%; object-fit:cover; }
.media-16x10{ aspect-ratio:16/10; }
.media-4x3{ aspect-ratio:4/3; }
.media-4x5{ aspect-ratio:4/5; }
.slot{ position:absolute; inset:0; display:flex; flex-direction:column; gap:0.6rem;
  align-items:center; justify-content:center; text-align:center; padding:1.4rem;
  color:var(--ink-faint); font-family:var(--font-mono); font-size:var(--step--2); line-height:1.55; }
.slot > span:last-child{ max-width:30ch; }
.slot .tag{ border:1px dashed var(--line); padding:0.3rem 0.7rem; border-radius:2px; }
.slot-icon{ width:26px; height:26px; color:var(--line); margin-bottom:0.2rem; }
.band-dark .slot-icon{ color:var(--on-dark-line); }
.band-dark .media{ background:var(--dark-2); border-color:var(--on-dark-line); }
.band-dark .slot{ color:var(--on-dark-soft); }
.band-dark .slot .tag{ border-color:var(--on-dark-line); }

/* ========================= how it works ========================= */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:4px; overflow:hidden; }
@media (max-width:860px){ .steps{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .steps{ grid-template-columns:1fr; } }
.step{ background:var(--white); padding:1.7rem 1.5rem; display:flex; flex-direction:column; gap:0.6rem; }
.step .si{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--brand-blue-deep); }
.step h4{ font-size:1.05rem; }
.step p{ font-size:var(--step--1); color:var(--ink-soft); }

/* ========================= control hotspots (on the static image) ========================= */
.rig-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:clamp(1.6rem,4vw,3rem); align-items:start; }
@media (max-width:900px){ .rig-grid{ grid-template-columns:1fr; } }
.rig{ position:relative; }
.hotspot{ position:absolute; width:18px; height:18px; border-radius:50%;
  border:1.5px solid var(--brand-blue); background:rgba(29,167,211,0.16);
  transform:translate(-50%,-50%); transition:transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.hotspot::after{ content:""; position:absolute; inset:-9px; border-radius:50%; }
.hotspot:hover,.hotspot.is-on{ background:var(--brand-blue); transform:translate(-50%,-50%) scale(1.2); }
.tip{ position:absolute; width:210px; background:var(--ink); color:var(--on-dark);
  padding:0.7rem 0.85rem; border-radius:3px; font-size:var(--step--2); line-height:1.5;
  pointer-events:none; opacity:0; transform:translateY(6px); z-index:5;
  transition:opacity var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.tip.is-on{ opacity:1; transform:none; }
.tip strong{ display:block; font-family:var(--font-display); font-size:0.85rem; margin-bottom:0.2rem; }

/* ========================= legend (used in Controls zone) ========================= */
.legend li{ display:flex; align-items:flex-start; gap:0.7rem; padding:0.6rem 0;
  border-top:1px solid var(--line-soft); font-size:var(--step--1); color:var(--ink-soft); }
.legend .glyph{ margin-top:0.18em; }

/* ========================= scope ========================= */
.scope-grid{ display:grid; grid-template-columns:0.95fr 1.05fr; gap:clamp(2rem,5vw,4rem); align-items:center; }
@media (max-width:900px){ .scope-grid{ grid-template-columns:1fr; } }
.scope-eye{ position:relative; aspect-ratio:1/1; border-radius:50%; overflow:hidden;
  border:1px solid var(--on-dark-line);
  background:radial-gradient(circle at 50% 45%,#12262A,#0A1416 72%); }
.scope-eye svg{ width:100%; height:100%; }
.scope-eye img{ width:100%; height:100%; object-fit:cover; }

/* ========================= procedures =========================
   Left: a clickable/hoverable procedure list with a sliding active-bar
   indicator. Right: a large image stage that feather-crossfades between
   the two stacked <img> layers (.proc-img) on hover/focus, with the
   procedure's description as a bold white caption over a diagonal scrim. */
.proc-display{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:clamp(1.6rem,4vw,3rem); align-items:stretch; }
@media (max-width:860px){ .proc-display{ grid-template-columns:1fr; } }

.proc-list{ position:relative; display:flex; flex-direction:column; border-left:2px solid var(--line); }
.proc-item{ position:relative; padding:0.95rem 0 0.95rem 1.4rem; cursor:pointer;
  display:flex; align-items:baseline; gap:0.8rem; width:100%; text-align:left;
  transition:padding-left var(--dur-1) var(--ease); }
.proc-item .pi{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-faint);
  transition:color var(--dur-1) var(--ease); }
.proc-item .pn{ font-family:var(--font-display); font-weight:600; font-size:1.1rem; color:var(--ink-soft);
  transition:color var(--dur-1) var(--ease); }
.proc-item:hover{ padding-left:1.7rem; }
.proc-item:hover .pn, .proc-item.is-active .pn{ color:var(--ink); }
.proc-item.is-active .pi{ color:var(--brand-blue-deep); }
.proc-indicator{ position:absolute; left:-2px; width:2px; height:3.5rem; background:var(--brand-blue);
  border-radius:2px; top:0; transition:top 420ms var(--ease); }
@media (max-width:860px){ .proc-list{ flex-direction:row; flex-wrap:wrap; border-left:0; border-top:2px solid var(--line); gap:0 1.2rem; }
  .proc-item{ padding:0.8rem 0 0.5rem; }
  .proc-indicator{ display:none; } }

.proc-stage{ position:relative; border-radius:8px; overflow:hidden; aspect-ratio:16/11;
  background:var(--ink); isolation:isolate; }
.proc-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity 560ms cubic-bezier(.4,0,.2,1);
  mask-image:radial-gradient(circle at 50% 50%, #000 70%, transparent 135%);
  -webkit-mask-image:radial-gradient(circle at 50% 50%, #000 70%, transparent 135%); }
.proc-img.is-on{ opacity:1; z-index:1; }
.proc-scrim{ position:absolute; inset:0; z-index:2; pointer-events:none;
  background:linear-gradient(135deg, rgba(5,10,11,0.92) 0%, rgba(5,10,11,0.55) 32%, transparent 62%); }
.proc-caption{ position:absolute; z-index:3; left:1.6rem; right:1.6rem; bottom:1.5rem;
  margin:0; color:#fff; font-family:var(--font-display); font-weight:700;
  font-size:clamp(1.05rem,2.3vw,1.5rem); line-height:1.3; max-width:34ch;
  text-shadow:0 2px 14px rgba(0,0,0,0.4); }
.procimg-fallback{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--dark-2); color:var(--on-dark-soft); font-family:var(--font-mono); font-size:var(--step--2); }

/* ========================= modes ========================= */
.modes{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; }
@media (max-width:920px){ .modes{ grid-template-columns:1fr; } }
.mode{ border:1px solid var(--line); border-radius:4px; background:var(--white);
  padding:1.7rem; display:flex; flex-direction:column; gap:0.75rem;
  transition:border-color var(--dur-1) var(--ease); }
.mode:hover{ border-color:var(--brand-blue); }
.mode .mi{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-faint); }
.mode h3{ font-size:1.28rem; }
.mode .mt{ color:var(--brand-blue-deep); font-weight:600; font-size:var(--step--1); }
.mode p{ font-size:var(--step--1); color:var(--ink-soft); }
.mode ul{ display:flex; flex-direction:column; gap:0.4rem; margin-top:0.2rem; }
.mode ul li{ display:flex; gap:0.6rem; align-items:flex-start; font-size:var(--step--1); color:var(--ink-soft); }
.mode ul li .glyph{ width:13px; height:13px; margin-top:0.2em; }

.chain{ display:flex; flex-wrap:wrap; gap:0.45rem; margin-top:0.4rem; }
.chain span{ padding:0.45rem 0.85rem; border:1px solid var(--line); border-radius:20px;
  font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-soft);
  transition:background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.chain span.is-on{ background:var(--ink); border-color:var(--ink); color:var(--on-dark); }

/* ========================= dashboard ========================= */
.dash{ border:1px solid var(--line); border-radius:6px; background:var(--white);
  padding:clamp(1.2rem,2.6vw,1.8rem); box-shadow:0 26px 60px -34px rgba(15,23,25,0.3); }
.dash-head{ display:flex; justify-content:space-between; align-items:center; gap:1rem;
  flex-wrap:wrap; padding-bottom:1rem; margin-bottom:1.2rem; border-bottom:1px solid var(--line-soft); }
.dash-head .who{ font-family:var(--font-display); font-weight:600; }
.dash-metrics{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:0.9rem; }
.metric{ border:1px solid var(--line-soft); border-radius:4px; padding:0.9rem 1rem; }
.metric .ml{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-faint); }
.metric .mv{ font-family:var(--font-display); font-size:1.45rem; margin-top:0.25rem; }
.bar{ height:4px; border-radius:2px; background:var(--paper-dim); margin-top:0.6rem; overflow:hidden; }
.bar i{ display:block; height:100%; width:0; background:var(--brand-blue);
  transition:width 1.1s var(--ease); }
.bar.is-green i{ background:var(--brand-green); }
.metric-note{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-faint); margin-top:0.7rem; }
.dash-chart{ margin-top:1.3rem; border:1px solid var(--line-soft); border-radius:4px; padding:1rem 1.1rem 0.5rem; }
.dash-chart svg{ width:100%; height:auto; }
.dash-chart .spark{ stroke-dasharray:820; stroke-dashoffset:820; }
.dash-chart .spark.is-drawn{ stroke-dashoffset:0; transition:stroke-dashoffset 1.3s var(--ease); }
.dash-note{ margin-top:0.9rem; font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-faint); }

/* ========================= events ========================= */
.events li{ display:grid; grid-template-columns:96px 1fr auto; gap:1rem; align-items:center;
  padding:0.85rem 0; border-top:1px solid var(--line); font-size:var(--step--1); }
.events li:last-child{ border-bottom:1px solid var(--line); }
.events .t{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-faint); }
.events .b{ font-family:var(--font-mono); font-size:var(--step--2); padding:0.18rem 0.55rem;
  border-radius:20px; border:1px solid var(--line); color:var(--ink-faint); justify-self:end; }
.events li.flag .b{ border-color:var(--danger); color:var(--danger);
  animation:flag-blink 0.6s steps(1,end) 3; animation-fill-mode:forwards; }
@keyframes flag-blink{
  0%,100%{ border-color:var(--danger); color:var(--danger); background:transparent; }
  50%{ border-color:transparent; color:var(--paper); background:var(--danger); }
}
@media (prefers-reduced-motion:reduce){ .events li.flag .b{ animation:none; } }
@media (max-width:560px){ .events li{ grid-template-columns:76px 1fr; }
  .events .b{ grid-column:2; justify-self:start; } }

/* ========================= cloud flow ========================= */
.cflow{ display:flex; align-items:center; gap:0.4rem; flex-wrap:wrap; }
.cnode{ flex:1; min-width:135px; border:1px solid var(--on-dark-line); border-radius:4px;
  padding:1.15rem 0.9rem; text-align:center; background:rgba(237,241,240,0.035); }
.cnode .cl{ font-family:var(--font-display); font-weight:600; font-size:0.95rem; }
.cnode .cs{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--on-dark-soft); margin-top:0.25rem; }
.cwire{ position:relative; width:34px; height:12px; flex-shrink:0; }
.cwire::before{ content:""; position:absolute; top:50%; left:0; right:0; height:1px;
  background:var(--on-dark-line); }
.cwire i{ position:absolute; top:50%; left:0; width:5px; height:5px; border-radius:50%;
  background:var(--brand-green); transform:translateY(-50%); animation:travel 3.2s linear infinite; }
@keyframes travel{ 0%{ left:0; opacity:0 } 12%{ opacity:1 } 88%{ opacity:1 } 100%{ left:100%; opacity:0 } }
@media (prefers-reduced-motion:reduce){ .cwire i{ animation:none; opacity:.8; left:45%; } }
@media (max-width:820px){ .cflow{ flex-direction:column; align-items:stretch; }
  .cwire{ width:12px; height:26px; align-self:center; }
  .cwire::before{ inset:0 auto 0 50%; width:1px; height:auto; }
  .cwire i{ animation:travel-y 3.2s linear infinite; left:50%; }
  @keyframes travel-y{ 0%{ top:0; opacity:0 } 12%{ opacity:1 } 88%{ opacity:1 } 100%{ top:100%; opacity:0 } } }

/* ========================= benefits / compare ========================= */
.benefits{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px;
  background:var(--line); border:1px solid var(--line); }
@media (max-width:860px){ .benefits{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .benefits{ grid-template-columns:1fr; } }
.benefit{ background:var(--white); padding:1.5rem 1.4rem; }
.benefit h4{ font-size:1.05rem; margin-bottom:0.35rem; }
.benefit p{ font-size:var(--step--1); color:var(--ink-soft); }

.compare{ display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--line);
  border-radius:4px; overflow:hidden; }
@media (max-width:700px){ .compare{ grid-template-columns:1fr; } }
.compare-col{ padding:1.7rem 1.6rem; }
.compare-col.a{ background:var(--paper-dim); }
.compare-col.b{ background:var(--tint-blue); }
.compare-col h4{ font-family:var(--font-mono); font-weight:500; font-size:var(--step--2);
  color:var(--ink-faint); margin-bottom:1rem; letter-spacing:0.04em; }
.compare-col li{ padding:0.55rem 0; border-top:1px solid rgba(15,23,25,0.08);
  font-size:var(--step--1); color:var(--ink-soft); }
.compare-col li:first-of-type{ border-top:0; }

/* ========================= testimonials ========================= */
.tcar{ position:relative; }
.ttrack{ display:flex; gap:1.3rem; overflow-x:auto; scroll-snap-type:x mandatory;
  padding-bottom:0.4rem; scrollbar-width:none; }
.ttrack::-webkit-scrollbar{ display:none; }
.tcard{ flex:0 0 calc(33.333% - 0.87rem); scroll-snap-align:start;
  border:1px solid var(--line); border-radius:4px; background:var(--white);
  padding:1.6rem; display:flex; flex-direction:column; gap:1.1rem; }
@media (max-width:920px){ .tcard{ flex-basis:calc(50% - 0.65rem); } }
@media (max-width:620px){ .tcard{ flex-basis:88%; } }
.tcard.is-slot{ border-style:dashed; align-items:center; justify-content:center;
  text-align:center; min-height:210px; color:var(--ink-faint);
  font-family:var(--font-mono); font-size:var(--step--2); }
.tquote{ font-size:1rem; line-height:1.55; }
.twho{ display:flex; align-items:center; gap:0.8rem; margin-top:auto; }
.tavatar{ width:44px; height:44px; border-radius:50%; flex-shrink:0; object-fit:cover;
  background:var(--paper-dim); border:1px solid var(--line); }
.tavatar-fallback{ width:44px; height:44px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; background:var(--tint-blue);
  color:var(--brand-blue-deep); border:1px solid var(--line);
  font-family:var(--font-display); font-weight:600; font-size:0.8rem; }
.tname{ display:block; font-weight:600; font-size:0.9rem; }
.trole{ display:block; font-size:var(--step--2); color:var(--ink-faint); line-height:1.4; }
.carousel-nav{ display:flex; align-items:center; justify-content:center; gap:1.1rem; margin-top:1.5rem; }
.cbtn{ width:38px; height:38px; border-radius:50%; border:1px solid var(--line);
  background:var(--white); display:flex; align-items:center; justify-content:center;
  transition:border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.cbtn:hover{ border-color:var(--brand-blue); color:var(--brand-blue-deep); }
.cdots{ display:flex; gap:0.45rem; }
.cdots span{ width:6px; height:6px; border-radius:50%; background:var(--line);
  transition:background var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.cdots span.is-on{ background:var(--brand-blue); transform:scale(1.35); }

/* ========================= conferences =========================
   A flat grid of individual team/demo photos (simplified from the old
   per-event collage-and-lightbox system — see README §6). */
.conf-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:0.8rem; }
@media (max-width:760px){ .conf-grid{ grid-template-columns:repeat(2,1fr); } }
.conf-tile{ position:relative; aspect-ratio:4/3; border:1px solid var(--line); border-radius:4px;
  overflow:hidden; background:var(--paper-dim); padding:0;
  transition:border-color var(--dur-1) var(--ease); }
.conf-tile:hover{ border-color:var(--brand-blue); }
.confimg{ width:100%; height:100%; object-fit:cover; display:block; }
.confimg-fallback{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  background:var(--paper-dim); color:var(--ink-faint); font-family:var(--font-mono); font-size:var(--step--2); }

/* lightbox — single image, no prev/next/count (simplified alongside the grid) */
.lb{ position:fixed; inset:0; z-index:200; background:rgba(10,20,22,0.95);
  display:flex; align-items:center; justify-content:center; }
.lb[hidden]{ display:none; }
.lb-stage{ width:min(80vw,960px); max-height:82vh; border:1px solid var(--on-dark-line);
  border-radius:6px; background:var(--dark-2); display:flex; align-items:center;
  justify-content:center; overflow:hidden; color:var(--on-dark-soft);
  font-family:var(--font-mono); font-size:var(--step--1); }
.lb-stage img{ max-width:100%; max-height:82vh; object-fit:contain; }
.lb-close{ position:absolute; top:1.3rem; right:1.5rem; width:42px; height:42px; margin:0; font-size:1.5rem;
  border-radius:50%; border:1px solid var(--on-dark-line); color:var(--on-dark);
  transition:border-color var(--dur-1) var(--ease); }
.lb-close:hover{ border-color:var(--on-dark); }

/* ========================= roadmap / vision ========================= */
.roadmap{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; }
@media (max-width:860px){ .roadmap{ grid-template-columns:1fr; } }
.rcard{ border:1px solid var(--on-dark-line); border-radius:4px; padding:1.5rem;
  background:rgba(237,241,240,0.035); }
.rstatus{ display:inline-block; font-family:var(--font-mono); font-size:var(--step--2);
  padding:0.2rem 0.6rem; border-radius:20px; border:1px solid var(--brand-green);
  color:var(--brand-green); margin-bottom:0.85rem; }
.rcard h4{ font-size:1.08rem; margin-bottom:0.45rem; }
.rcard p{ font-size:var(--step--1); color:var(--on-dark-soft); }

.vision-mark{ position:absolute; top:50%; right:-7%; width:min(46vw,620px); height:min(46vw,620px);
  transform:translateY(-50%); color:var(--ink); opacity:0.04; pointer-events:none; }
.pillars{ display:flex; flex-wrap:wrap; gap:0.6rem; margin:1.7rem 0 2rem; }
.pillars span{ font-family:var(--font-display); font-weight:600; font-size:1.05rem;
  padding:0.55rem 1.1rem; border:1px solid var(--line); border-radius:30px; }

/* ========================= founders ========================= */
.founders{ display:grid; grid-template-columns:repeat(2,1fr); gap:2rem; }
@media (max-width:700px){ .founders{ grid-template-columns:1fr; } }
.founder{ display:flex; gap:1.3rem; align-items:flex-start; }
.fphoto{ width:100px; height:100px; border-radius:4px; object-fit:cover; flex-shrink:0;
  background:var(--paper-dim); border:1px solid var(--line); }
.fname{ font-family:var(--font-display); font-weight:600; font-size:1.1rem; }
.frole{ font-size:var(--step--1); color:var(--ink-faint); margin:0.1rem 0 0.55rem; }
.fbio{ font-size:var(--step--1); color:var(--ink-soft); }
.fsocial{ display:flex; gap:0.7rem; margin-top:0.8rem; }
.fsocial a{ width:30px; height:30px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--ink-faint);
  transition:border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.fsocial a:hover{ border-color:var(--brand-blue); color:var(--brand-blue-deep); }
.fsocial .glyph{ width:15px; height:15px; color:inherit; }
.footer .fsocial a{ border-color:var(--on-dark-line); color:var(--on-dark-soft); }
.footer .fsocial a:hover{ border-color:var(--on-dark); color:var(--on-dark); }

/* ========================= contact ========================= */
.contact-grid{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:clamp(2rem,5vw,4rem); }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.cdetail{ margin-bottom:1.3rem; }
.cdetail .dl{ font-family:var(--font-mono); font-size:var(--step--2); color:var(--ink-faint); }
.cdetail .dv{ font-size:1.05rem; margin-top:0.15rem; }
.dv-icon{ display:flex; align-items:flex-start; gap:0.55rem; }
.cicon{ width:17px; height:17px; margin-top:0.22em; color:var(--brand-blue-deep); flex-shrink:0; }
.wa-link{ display:inline-flex; width:17px; height:17px; flex-shrink:0; color:var(--brand-green-deep); }
.wa-link .glyph{ width:100%; height:100%; }
.form{ border:1px solid var(--line); border-radius:6px; background:var(--white);
  padding:clamp(1.3rem,3vw,2.1rem); }
.phone-row{ display:flex; align-items:center; gap:0.5rem; }
.phone-row + .phone-row{ margin-top:0.3rem; }
.phone-row a{ transition:color var(--dur-1) var(--ease); }
.phone-row a:hover{ color:var(--brand-blue-deep); }
.form-embed{ padding:clamp(0.6rem,1.5vw,1rem); }
.form-embed iframe{ display:block; width:100%; border:0; border-radius:3px; min-height:600px; }
.frow{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:560px){ .frow{ grid-template-columns:1fr; } }
.field{ margin-bottom:1.05rem; }
.field label{ display:block; font-family:var(--font-mono); font-size:var(--step--2);
  color:var(--ink-faint); margin-bottom:0.4rem; }
.field input,.field select,.field textarea{ width:100%; padding:0.75em 0.9em;
  border:1px solid var(--line); border-radius:3px; background:var(--paper);
  font-family:var(--font-body); font-size:0.95rem; color:var(--ink);
  transition:border-color var(--dur-1) var(--ease); }
.field input:focus,.field select:focus,.field textarea:focus{ border-color:var(--brand-blue); outline:none; }
.field textarea{ min-height:110px; resize:vertical; }
.fcheck{ display:flex; align-items:center; gap:0.6rem; font-size:var(--step--1); color:var(--ink-soft); }
.fcheck input{ width:auto; }
.ffoot{ display:flex; align-items:center; justify-content:space-between; gap:1rem;
  flex-wrap:wrap; margin-top:0.7rem; }
.fstatus{ font-size:var(--step--1); }
.fstatus[data-s="ok"]{ color:var(--brand-green-deep); }
.fstatus[data-s="err"]{ color:var(--danger); }
.hp{ position:absolute; left:-9999px; }

/* ========================= final CTA / footer ========================= */
.final{ padding-block:clamp(5rem,10vw,9rem); }
.final h2{ max-width:17ch; margin-bottom:1.9rem; }

.footer{ background:var(--dark-2); color:var(--on-dark-soft);
  padding-block:clamp(2.5rem,5vw,4rem); }
.footer-top{ display:flex; justify-content:space-between; gap:2rem; flex-wrap:wrap;
  padding-bottom:2rem; border-bottom:1px solid var(--on-dark-line); }
.footer-brand{ max-width:320px; }
.footer-brand img{ height:38px; width:auto; margin-bottom:0.9rem; }
.footer-brand p{ font-size:var(--step--1); }
.footer-cols{ display:flex; gap:clamp(2rem,5vw,4.5rem); flex-wrap:wrap; }
.footer-col h5{ font-family:var(--font-mono); font-weight:500; font-size:var(--step--2);
  color:var(--on-dark); margin-bottom:0.8rem; letter-spacing:0.04em; }
.footer-col a{ display:block; font-size:var(--step--1); padding:0.32rem 0;
  transition:color var(--dur-1) var(--ease); }
.footer-col a:hover{ color:var(--on-dark); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:1rem;
  flex-wrap:wrap; padding-top:1.5rem; font-size:var(--step--2); }

.skip{ position:absolute; left:-9999px; background:var(--ink); color:#fff;
  padding:0.8em 1.2em; z-index:500; border-radius:4px; }
.skip:focus{ left:1rem; top:1rem; }

.mt{ margin-top:clamp(2rem,5vw,3.2rem); }
.mb{ margin-bottom:clamp(1.4rem,3vw,2rem); }
