/* ============================================================
   AALYON — Industrial Operational Intelligence
   "Arctic Blueprint" — light theme · v2
   ============================================================ */

:root {
  /* ---- palette · "Liquid Light" ---- */
  --paper:    #ECEFEE;   /* cool porcelain mist */
  --paper-2:  #E3E7E6;   /* alt section */
  --paper-3:  #D8DDDC;   /* deeper panel */
  --ink:      #0A1417;   /* near-black, teal undertone */
  --ink-2:    #16242A;
  --muted:    #56676B;
  --muted-2:  #8A9699;
  --accent:   #1E63FF;   /* electric blue */
  --accent-d: #143FCC;   /* darker for text/hover */
  --aqua:     #14C8B4;   /* water spectrum: aqua */
  --indigo:   #6A35FF;   /* water spectrum: indigo */
  --cyan:     #14C8B4;   /* alias kept for older refs */
  --grad: linear-gradient(115deg, var(--aqua) 0%, var(--accent) 52%, var(--indigo) 100%);
  --line:     rgba(10, 20, 23, 0.13);
  --line-2:   rgba(10, 20, 23, 0.055);

  /* ---- type ---- */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-serif:   'Fraunces', Georgia, serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:  cubic-bezier(0.76, 0, 0.24, 1);
  --radius: 18px;
  --header-h: 76px;
}

/* gradient ink for expressive words */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; overflow-x: clip; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }
svg.sprite-defs { position: absolute; width: 0; height: 0; }

@media (pointer: fine) {
  body, a, button, [data-hover], [data-magnetic] { cursor: none; }
}

/* ---------- Blueprint grid background ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center;
  pointer-events: none;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 90%);
}

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4.5vw, 3.5rem);
}
.container-wide { max-width: 1560px; }

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 2.2rem;
  height: 1px;
  background: var(--accent);
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: '';
  width: 2.2rem; height: 1px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(2.1rem, 4.8vw, 4.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-title em,
.hero-title em,
.statement em,
.cta-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  font-size: 1.08em;
  color: var(--accent);
}

section { position: relative; }
.divider { height: 1px; background: var(--line); }

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9000;
  border-radius: 50%;
  display: none;
  mix-blend-mode: difference;
}
@media (pointer: fine) { .cursor-dot, .cursor-ring { display: block; } }
.cursor-dot {
  width: 7px; height: 7px;
  background: #fff;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.6);
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background-color 0.3s;
}
.cursor-ring.is-hover { width: 70px; height: 70px; background: rgba(255,255,255,0.08); }

/* ============================================================
   Page transition overlay
   ============================================================ */
.page-trans {
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  overflow: hidden;
}
.page-trans .pt-fill {
  position: absolute; inset: 0;
  background: #000000;
  transform: scaleY(1);
  transform-origin: top;
  will-change: transform;
}
.page-trans .pt-logo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0;
}
.page-trans .pt-logo svg { width: clamp(96px, 13vw, 150px); height: auto; }

/* Awwwards-style loading counter (first load) */
.pt-count {
  position: absolute; z-index: 2;
  right: clamp(1.4rem, 5vw, 4rem);
  bottom: clamp(1rem, 4vw, 3rem);
  display: flex; align-items: flex-end;
  color: #fff; opacity: 0;
  font-family: var(--font-display);
  font-weight: 600; letter-spacing: -0.05em; line-height: 0.78;
}
.pt-count #pt-num { font-size: clamp(5rem, 19vw, 15rem); }
.pt-count i { font-style: normal; font-size: clamp(1.1rem, 3vw, 2.4rem); margin-left: 0.15rem; color: var(--accent); transform: translateY(-0.15em); }
.pt-tag {
  position: absolute; z-index: 2;
  left: clamp(1.4rem, 5vw, 4rem); bottom: clamp(1.6rem, 4.5vw, 3.4rem);
  opacity: 0; color: rgba(255,255,255,0.55);
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.pt-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,0.14); opacity: 0; }
.pt-bar span { display: block; height: 100%; width: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }

/* ---------- Chapter rail (the journey spine) ---------- */
.chapter-rail {
  position: fixed; right: clamp(0.9rem, 2.2vw, 1.8rem); top: 50%;
  transform: translateY(-50%); z-index: 400;
  display: flex; flex-direction: column; gap: 1.05rem;
  padding-right: 0.9rem;
}
.rail-line { position: absolute; right: 3px; top: -0.5rem; bottom: -0.5rem; width: 1px; background: var(--line); }
.rail-line i { position: absolute; inset: 0; background: var(--grad); transform: scaleY(0); transform-origin: top; }
.rail-item { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem; color: var(--muted-2); transition: color 0.3s; }
.rail-item .rail-name { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0; transform: translateX(6px); transition: opacity 0.3s, transform 0.3s; }
.rail-item .rail-num { font-family: var(--font-mono); font-size: 0.7rem; }
.rail-item .rail-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; transition: background 0.3s, border-color 0.3s; }
.rail-item:hover { color: var(--ink); }
.rail-item:hover .rail-name { opacity: 1; transform: none; }
.rail-item.is-active { color: var(--ink); }
.rail-item.is-active .rail-name { opacity: 1; transform: none; }
.rail-item.is-active .rail-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(30,99,255,0.14); }

/* ---------- Next chapter ---------- */
.next-chapter {
  display: block; position: relative;
  padding: clamp(3rem, 8vh, 6rem) 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.next-chapter .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.nc-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent-d); }
.nc-title { font-size: clamp(2.4rem, 7vw, 5.5rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 0.5em; transition: transform 0.5s var(--ease-out); }
.nc-title .nc-num { font-family: var(--font-mono); font-weight: 400; font-size: 0.42em; color: var(--accent-d); }
.nc-title em { font-style: normal; transition: transform 0.5s var(--ease-out); }
.next-chapter:hover .nc-title { transform: translateX(1rem); }
.next-chapter:hover .nc-title em { transform: translateX(0.6rem); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 600;
  transition: background 0.4s, border-color 0.4s, transform 0.6s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(244, 241, 233, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  max-width: 1560px;
  margin-inline: auto;
  height: var(--header-h);
  padding-inline: clamp(1.25rem, 4.5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo-svg { height: 19px; width: auto; color: var(--ink); }
.logo-svg .mark { color: var(--accent); }
.main-nav { display: flex; gap: 2.4rem; }
.nav-link {
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.3s;
}
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link::after {
  content: '';
  position: absolute; left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-right { display: flex; align-items: center; gap: 1.3rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.menu-toggle span { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform 0.35s var(--ease-out); }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu-overlay {
  position: fixed; inset: 0; z-index: 550;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(1.5rem, 6vw, 4rem);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-io);
}
.menu-overlay.is-open { clip-path: inset(0 0 0 0); }
.menu-nav { display: flex; flex-direction: column; gap: 0.2rem; }
.menu-link {
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  display: flex; align-items: baseline; gap: 1rem;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), color 0.3s;
}
.menu-link:hover { color: var(--accent); }
.menu-overlay.is-open .menu-link { opacity: 1; transform: translateY(0); }
.menu-overlay.is-open .menu-link:nth-child(1) { transition-delay: 0.20s; }
.menu-overlay.is-open .menu-link:nth-child(2) { transition-delay: 0.27s; }
.menu-overlay.is-open .menu-link:nth-child(3) { transition-delay: 0.34s; }
.menu-overlay.is-open .menu-link:nth-child(4) { transition-delay: 0.41s; }
.menu-overlay.is-open .menu-link:nth-child(5) { transition-delay: 0.48s; }
.menu-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.menu-footer {
  position: absolute;
  bottom: clamp(1.5rem, 5vw, 3rem);
  left: clamp(1.5rem, 6vw, 4rem); right: clamp(1.5rem, 6vw, 4rem);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
  transition: color 0.35s, border-color 0.35s, box-shadow 0.35s, background-color 0.35s, transform 0.35s var(--ease-out);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-d); box-shadow: 0 12px 34px rgba(20, 85, 255, 0.28); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-d); }
.btn-sm { padding: 0.62rem 1.35rem; font-size: 0.82rem; }
.btn-lg { padding: 1.15rem 2.5rem; font-size: 1rem; }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 9vh, 7rem));
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  overflow: hidden;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.page-hero-text { position: relative; z-index: 2; }
.page-hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
}
.page-hero-index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-d); letter-spacing: 0.2em; }
.page-hero-title {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 1.4rem 0;
}
.page-hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.page-hero-title .line-inner { display: block; transform: translateY(110%); }
.page-hero-lede {
  max-width: 54ch;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  color: var(--muted);
}
[data-fade] { opacity: 0; }

/* ---------- Shared droplet zone (glow + contact shadow) ---------- */
.droplet-zone { position: relative; }
.droplet-zone::before {
  content: ''; position: absolute; inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(20,85,255,0.24), rgba(0,152,199,0.13) 46%, transparent 70%);
  filter: blur(34px); z-index: 0;
}
.droplet-zone::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: 8%; height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(12,22,32,0.20), transparent 70%);
  filter: blur(11px); z-index: 0;
}
.droplet { position: absolute; inset: 0; z-index: 1; }
.droplet canvas { width: 100%; height: 100%; }

/* ============================================================
   HOME — Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 1.5rem) 0 4rem;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}
.hero-text { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 1.8rem; }
.hero-title {
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: clamp(1.6rem, 3.2vh, 2.4rem);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-title .line-inner { display: block; transform: translateY(112%); }
.hero-sub { max-width: 46ch; font-size: clamp(0.98rem, 1.2vw, 1.1rem); color: var(--muted); margin-bottom: 2.2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.hero-scroll {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: clamp(1.5rem, 4vh, 2.4rem);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero-scroll .mono-label { writing-mode: vertical-rl; }
.hero-scroll-line { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll-line::after {
  content: ''; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--accent);
  animation: scroll-hint 2.2s var(--ease-out) infinite;
}
@keyframes scroll-hint { 0% { top: -100%; } 55% { top: 0; } 100% { top: 110%; } }

/* ============================================================
   STORY — scroll-driven particle narrative (home)
   ============================================================ */
.story { position: relative; height: 540vh; }
.story-pin {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
}
.story-canvas { position: absolute; top: var(--header-h); left: 40%; right: 2.5%; bottom: 4%; z-index: 0; }
.story-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 1%, rgba(236,239,238,0.66) 34%, rgba(236,239,238,0) 62%),
    linear-gradient(180deg, var(--paper) 0%, rgba(236,239,238,0) 15%);
}
.story-beats { position: absolute; inset: 0; z-index: 2; }
.story-beat { position: absolute; inset: 0; display: flex; align-items: center; }
.story-beat .container { width: 100%; }
.story-kicker {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--accent-d); margin-bottom: 1.3rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.story-kicker::before { content: ''; width: 2rem; height: 1px; background: var(--accent); }
.story-h {
  font-size: clamp(2.2rem, 5.4vw, 4.6rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.03em;
  max-width: 17ch;
}
.story-h em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 1.07em; }
.story-p { margin-top: 1.4rem; color: var(--muted); max-width: 46ch; font-size: clamp(1rem, 1.3vw, 1.18rem); }
.story-beat .hero-ctas { margin-top: 2.2rem; }
.story-progress {
  position: absolute; right: clamp(1.25rem, 4.5vw, 3.5rem); top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 0.8rem; pointer-events: none;
}
.story-progress span { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--muted-2); transition: background 0.3s, border-color 0.3s, transform 0.3s; }

/* reduced-motion: linear stacked story */
.js.reduced-story .story { height: auto; }
.js.reduced-story .story-pin { position: static; height: auto; overflow: visible; padding: 4rem 0; }
.js.reduced-story .story-canvas { position: sticky; top: 0; height: 60vh; }
.js.reduced-story .story-scrim { display: none; }
.js.reduced-story .story-beats { position: static; }
.js.reduced-story .story-beat { position: relative; inset: auto; padding: 3rem 0; }

/* ============================================================
   Marquee
   ============================================================ */
.marquee { border-block: 1px solid var(--line); padding: 1.1rem 0; overflow: hidden; background: var(--paper-2); }
.marquee-track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--accent); font-size: 0.55rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   Statement / Intro
   ============================================================ */
.statement-sec { padding: clamp(7rem, 16vh, 12rem) 0 clamp(5rem, 10vh, 8rem); }
.statement {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -0.015em;
  max-width: 26ch;
}
.statement .w { display: inline-block; }

/* ============================================================
   Stats
   ============================================================ */
.stats { padding: clamp(2rem, 6vh, 4rem) 0 clamp(7rem, 14vh, 10rem); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  border-top: 1px solid var(--line); padding-top: 3rem;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 500; color: var(--ink); line-height: 1; margin-bottom: 1rem;
}
.stat-value sup, .stat-value sub { font-size: 0.4em; color: var(--accent); position: relative; top: -0.6em; margin-left: 0.12em; }
.stat-value sub { top: 0; }
.stat-label { font-size: 0.88rem; color: var(--muted); max-width: 24ch; }

/* ============================================================
   Solutions (home preview + solutions page)
   ============================================================ */
.section-head { padding-top: clamp(6rem, 12vh, 9rem); }
.section-head.tight { padding-top: clamp(4rem, 9vh, 7rem); }

/* Home: pinned horizontal gallery */
.sol-gallery { background: var(--paper-2); border-block: 1px solid var(--line); }
.sol-gallery-head { padding-top: clamp(6rem, 12vh, 9rem); }
.sol-pin { height: 100vh; display: flex; align-items: center; overflow: hidden; }
.sol-track { display: flex; gap: clamp(1.2rem, 2.4vw, 2rem); padding-inline: clamp(1.25rem, 4.5vw, 3.5rem); will-change: transform; }
.sol-card {
  flex: none; width: min(420px, 82vw); min-height: 440px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.3rem 2.1rem; background: var(--paper);
  display: flex; flex-direction: column; position: relative;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.sol-card:hover { border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 24px 60px rgba(12,22,32,0.10); }
.sol-num {
  font-family: var(--font-mono); font-size: clamp(3.2rem, 5vw, 4.4rem); font-weight: 400;
  color: transparent; -webkit-text-stroke: 1px var(--line); line-height: 1; margin-bottom: auto;
}
.sol-card:hover .sol-num { -webkit-text-stroke-color: var(--accent); }
.sol-icon { width: 30px; height: 30px; color: var(--accent); margin: 2.2rem 0 1.2rem; }
.sol-card h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 0.8rem; }
.sol-card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1.4rem; }
.sol-tag { margin-top: auto; padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; width: fit-content; color: var(--accent-d); }

/* Solutions page: detailed alternating rows */
.sol-detail { padding: clamp(5rem, 11vh, 9rem) 0; border-bottom: 1px solid var(--line); }
.sol-detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.sol-detail:nth-child(even) .sol-detail-visual { order: -1; }
.sol-detail-index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-d); letter-spacing: 0.2em; }
.sol-detail h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -0.02em; margin: 1rem 0 1.2rem; }
.sol-detail p { color: var(--muted); max-width: 52ch; margin-bottom: 1.6rem; }
.sol-detail ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.sol-detail li { display: flex; gap: 0.8rem; align-items: baseline; font-size: 0.92rem; }
.sol-detail li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: 0.45rem; background: var(--accent); border-radius: 1px; transform: rotate(45deg); }
.sol-detail-visual {
  aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.sol-detail-visual .blueprint-num {
  font-family: var(--font-mono); font-size: clamp(4rem, 12vw, 9rem); font-weight: 300;
  color: transparent; -webkit-text-stroke: 1px var(--line);
}
.sol-detail-visual svg.big-icon { position: absolute; width: 38%; height: auto; color: var(--accent); opacity: 0.92; }

/* ============================================================
   Approach / timeline
   ============================================================ */
.approach { padding: clamp(7rem, 15vh, 11rem) 0; }
.approach-list { position: relative; margin-top: clamp(3.5rem, 7vh, 5.5rem); padding-left: clamp(1.6rem, 4vw, 3rem); }
.approach-line { position: absolute; left: 0; top: 0.5rem; bottom: 0.5rem; width: 1px; background: var(--line); }
.approach-line span { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--accent), var(--cyan)); transform: scaleY(0); transform-origin: top; }
.approach-item { display: grid; grid-template-columns: 150px 1fr; gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2.2rem, 5vh, 3.5rem) 0; border-bottom: 1px solid var(--line); }
.approach-item:last-child { border-bottom: none; }
.approach-num { color: var(--accent-d); padding-top: 0.55rem; }
.approach-body h3 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 0.9rem; }
.approach-body p { color: var(--muted); max-width: 58ch; font-size: 0.98rem; }
.approach-body .meta { margin-top: 1rem; display: flex; gap: 1.4rem; flex-wrap: wrap; }

/* ============================================================
   Industries
   ============================================================ */
.industries { padding: clamp(7rem, 15vh, 11rem) 0; }
.industries.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.industries-grid { margin-top: clamp(3.5rem, 7vh, 5.5rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.ind-tile {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.4rem 2.2rem; min-height: 230px;
  display: flex; flex-direction: column; position: relative;
  background: var(--paper); overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.ind-tile::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 80% at 80% 0%, rgba(20,85,255,0.08), transparent 70%); opacity: 0; transition: opacity 0.5s; }
.ind-tile:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(12,22,32,0.09); }
.ind-tile:hover::before { opacity: 1; }
.ind-num { margin-bottom: auto; color: var(--accent-d); }
.ind-tile h3 { font-size: 1.4rem; font-weight: 500; margin: 2rem 0 0.6rem; letter-spacing: -0.01em; }
.ind-tile p { font-size: 0.9rem; color: var(--muted); max-width: 40ch; }
.ind-arrow { position: absolute; top: 2rem; right: 2.2rem; font-size: 1.3rem; color: var(--muted); transition: transform 0.4s var(--ease-out), color 0.3s; }
.ind-tile:hover .ind-arrow { transform: translate(5px, -5px) rotate(-45deg); color: var(--accent); }

/* Industries page: deep rows */
.ind-detail { padding: clamp(5rem, 11vh, 9rem) 0; border-bottom: 1px solid var(--line); }
.ind-detail-grid { display: grid; grid-template-columns: 0.45fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.ind-detail-grid h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -0.02em; }
.ind-detail-grid .lede { color: var(--muted); margin-bottom: 2rem; max-width: 60ch; }
.ind-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2.5rem; }
.ind-point h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.6rem; }
.ind-point h4::before { content: ''; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); }
.ind-point p { font-size: 0.88rem; color: var(--muted); }

/* ============================================================
   Trust
   ============================================================ */
.trust { padding: clamp(7rem, 15vh, 11rem) 0; }
.trust.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.trust-sub { margin-top: 1.6rem; color: var(--muted); max-width: 52ch; font-size: 0.98rem; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.chip { padding: 0.8rem 1.3rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--paper); transition: border-color 0.3s, color 0.3s, transform 0.3s var(--ease-out); }
.chip:hover { border-color: var(--accent); color: var(--accent-d); transform: translateY(-2px); }

/* ============================================================
   Values (about)
   ============================================================ */
.values-grid { margin-top: clamp(3.5rem, 7vh, 5.5rem); display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.value { padding: clamp(2rem, 4vw, 3rem); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value:nth-child(2n) { border-right: none; }
.value:nth-last-child(-n+1) { border-bottom: none; }
.value-num { font-family: var(--font-mono); color: var(--accent-d); font-size: 0.8rem; }
.value h3 { font-size: 1.4rem; font-weight: 500; margin: 1rem 0 0.7rem; letter-spacing: -0.01em; }
.value p { color: var(--muted); font-size: 0.92rem; max-width: 44ch; }

/* ============================================================
   Insights cards
   ============================================================ */
.insights { padding: clamp(7rem, 15vh, 11rem) 0; }
.insights.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.insights-grid { margin-top: clamp(3.5rem, 7vh, 5.5rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.insight-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; display: flex; flex-direction: column; gap: 1rem; background: var(--paper); transition: border-color 0.4s, transform 0.4s var(--ease-out), box-shadow 0.4s; }
.insight-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(12,22,32,0.09); }
.insight-tag { color: var(--accent-d); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; width: fit-content; }
.insight-card h3 { font-size: 1.22rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.3; }
.insight-card p { font-size: 0.88rem; color: var(--muted); flex-grow: 1; }
.insight-link { font-size: 0.86rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: 0.5rem; }
.insight-link i { font-style: normal; color: var(--accent); transition: transform 0.3s var(--ease-out); }
.insight-card:hover .insight-link i { transform: translateX(6px); }

/* ============================================================
   Service tiers (solutions page)
   ============================================================ */
.tiers { padding: clamp(6rem, 13vh, 10rem) 0; background: var(--paper-2); border-block: 1px solid var(--line); }
.tiers-grid { margin-top: clamp(3rem, 6vh, 5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.tier { padding: 2.2rem 1.8rem; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 0.8rem; transition: background 0.4s; }
.tier:last-child { border-right: none; }
.tier:hover { background: var(--paper-2); }
.tier-num { font-family: var(--font-mono); color: var(--accent-d); font-size: 0.78rem; }
.tier h3 { font-size: 1.2rem; font-weight: 500; }
.tier p { font-size: 0.86rem; color: var(--muted); flex-grow: 1; }
.tier .price { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink); padding-top: 0.8rem; border-top: 1px solid var(--line); }

/* ============================================================
   CTA
   ============================================================ */
.cta { padding: clamp(9rem, 20vh, 14rem) 0; text-align: center; overflow: hidden; position: relative; }
.cta-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.cta-glow::before {
  content: ''; position: absolute; left: 50%; top: 52%;
  width: min(560px, 76vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(20,85,255,0.22), rgba(0,152,199,0.16), rgba(122,90,255,0.18), rgba(20,85,255,0.22));
  filter: blur(64px); opacity: 0.7;
  animation: spinGlow 22s linear infinite;
}
@keyframes spinGlow { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-inner { position: relative; z-index: 2; }
.cta-title { font-size: clamp(2.6rem, 7vw, 6rem); font-weight: 500; line-height: 1.04; letter-spacing: -0.03em; max-width: 18ch; margin-inline: auto; }
.cta-title .w { display: inline-block; }
.cta-sub { margin: 1.8rem auto 0; color: var(--muted); max-width: 48ch; font-size: 1rem; }
.cta-actions { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.cta-mail { letter-spacing: 0.2em; transition: color 0.3s; }
.cta-mail:hover { color: var(--accent-d); }

/* ============================================================
   Contact (about page)
   ============================================================ */
.contact { padding: clamp(6rem, 13vh, 10rem) 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.contact-form { display: flex; flex-direction: column; gap: 1.4rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.9rem 1.1rem; transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20,85,255,0.12); }
.field textarea { resize: vertical; min-height: 120px; }
.contact-aside h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; margin-bottom: 1.2rem; }
.contact-aside p { color: var(--muted); margin-bottom: 2rem; max-width: 44ch; }
.contact-points { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-point { display: flex; gap: 1rem; align-items: baseline; }
.contact-point .mono-label { color: var(--accent-d); min-width: 90px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--line); padding: clamp(4rem, 8vh, 6rem) 0 2.5rem; background: var(--paper-2); }
.footer-logo { width: clamp(220px, 36vw, 420px); height: auto; color: var(--ink); margin-bottom: clamp(3rem, 6vh, 4.5rem); }
.footer-logo .mark { color: var(--accent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3.5rem; border-bottom: 1px solid var(--line); }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-head { margin-bottom: 0.6rem; color: var(--accent-d); }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color 0.3s; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-note p { font-size: 0.9rem; color: var(--muted); max-width: 30ch; }
.footer-bottom { padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }

/* ============================================================
   Reveal defaults
   ============================================================ */
.js [data-reveal] { opacity: 0; transform: translateY(42px); }
.js.reduced [data-reveal],
.js.reduced .line-inner,
.js.reduced [data-fade] { opacity: 1 !important; transform: none !important; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
  .chapter-rail { display: none; }
}
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .trust-grid, .contact-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .tier:nth-child(2n) { border-right: none; }
  .tier:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ind-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 899px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 3rem); }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .page-hero-visual { max-width: 320px; margin: 0.5rem auto 0; }
  /* particles get a top band; text sits below on solid paper */
  .story-canvas { top: var(--header-h); left: 0; right: 0; bottom: auto; height: 40vh; }
  .story-scrim { background: linear-gradient(180deg, rgba(236,239,238,0) 24%, var(--paper) 44%); }
  .story-beat { align-items: flex-end; }
  .story-beat .container { padding-bottom: 7vh; }
  .story-beat .hero-title { font-size: clamp(1.9rem, 7.6vw, 2.7rem); }
  .story-h { font-size: clamp(1.85rem, 7.2vw, 2.5rem); max-width: 100%; }
  .story-beat .hero-sub, .story-p { font-size: 0.95rem; }
  .story-progress { display: none; }
  .sol-pin { height: auto; overflow-x: auto; padding: 3.5rem 0 5rem; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .sol-pin::-webkit-scrollbar { display: none; }
  .sol-card { scroll-snap-align: center; min-height: 420px; }
  .sol-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sol-detail:nth-child(even) .sol-detail-visual { order: 0; }
  .values-grid { grid-template-columns: 1fr; }
  .value { border-right: none; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-right .btn { display: none; }
  .hero-scroll { display: none; }
  .approach-item { grid-template-columns: 1fr; gap: 0.8rem; }
  .industries-grid { grid-template-columns: 1fr; }
  .insights-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .ind-points { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-grid, .footer-grid, .tiers-grid { grid-template-columns: 1fr; }
  .tier { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-scroll-line::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
