/* ============================================================
   VEYRISHA LABS — Design System
   Quiet luxury meets technical brilliance.
   Hand-crafted CSS. No frameworks.
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS
   ------------------------------------------------------------ */
:root {
  /* Light mode — warm porcelain environment */
  --canvas: #F7F5F2;
  --canvas-alt: #F1EFEA;            /* 2% darker section break */
  --ink: #16171B;
  --stone: #6B6B73;
  --accent: #A85831;
  --accent-soft: rgba(168, 88, 49, 0.08);
  --surface: #FDFBF7;
  --border: #E8E4DE;
  --border-strong: #D9D4CB;
  --hairline: #E0DCD5;
  --inset: #EFEAE3;

  --btn-bg: #16171B;
  --btn-text: #F7F5F2;
  --btn-hover-text: #FDFBF7;

  --footer-bg: #16171B;

  --shadow-card-hover: 0 8px 32px -8px rgba(22, 23, 27, 0.10);
  --shadow-media: 0 24px 64px -16px rgba(22, 23, 27, 0.18);
  --shadow-hero: 0 40px 80px -20px rgba(22, 23, 27, 0.15);

  --glow-accent: rgba(168, 88, 49, 0.02);

  /* Semantic + scene tokens */
  --ok: #3E7C59;
  --ok-soft: rgba(62, 124, 89, 0.10);
  --warn: #A97A24;
  --warn-soft: rgba(169, 122, 36, 0.10);
  --blue: #4A6FA5;
  --blue-soft: rgba(74, 111, 165, 0.10);

  /* Hero aurora + spotlight */
  --aurora-a: rgba(168, 88, 49, 0.32);
  --aurora-b: rgba(224, 164, 88, 0.36);
  --aurora-c: rgba(199, 81, 70, 0.22);
  --dot: rgba(22, 23, 27, 0.14);
  --hero-glow: rgba(168, 88, 49, 0.07);
  --spot: rgba(168, 88, 49, 0.07);

  /* Motion */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: 32px;
  --radius-card: 10px;
  --radius-btn: 8px;
  --radius-media: 6px;

  color-scheme: light;
}

html[data-theme="dark"] {
  /* Dark mode — deep midnight environment */
  --canvas: #0E0E14;
  --canvas-alt: #111118;
  --ink: #EDEAE4;
  --stone: #8B8B93;
  --accent: #C77B4A;
  --accent-soft: rgba(199, 123, 74, 0.10);
  --surface: #15161D;
  --border: #22232C;
  --border-strong: #2E2F3A;
  --hairline: #1E1F26;
  --inset: #12131A;

  --btn-bg: #EDEAE4;
  --btn-text: #16171B;
  --btn-hover-text: #FDFBF7;

  --footer-bg: #0A0B0F;

  --shadow-card-hover: 0 8px 32px -8px rgba(0, 0, 0, 0.45);
  --shadow-media: 0 24px 64px -16px rgba(0, 0, 0, 0.55);
  --shadow-hero: 0 40px 80px -20px rgba(0, 0, 0, 0.5);

  --glow-accent: rgba(199, 123, 74, 0.04);

  /* Semantic + scene tokens */
  --ok: #6FA88A;
  --ok-soft: rgba(111, 168, 138, 0.14);
  --warn: #D0A156;
  --warn-soft: rgba(208, 161, 86, 0.14);
  --blue: #7E9CC4;
  --blue-soft: rgba(126, 156, 196, 0.14);

  /* Hero aurora + spotlight */
  --aurora-a: rgba(199, 123, 74, 0.30);
  --aurora-b: rgba(224, 164, 88, 0.20);
  --aurora-c: rgba(199, 81, 70, 0.18);
  --dot: rgba(237, 234, 228, 0.13);
  --hero-glow: rgba(199, 123, 74, 0.09);
  --spot: rgba(199, 123, 74, 0.10);

  color-scheme: dark;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Fine paper noise — organic warmth across the whole canvas */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #FDFBF7; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--canvas);
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  transition: top 0.25s var(--ease-std);
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------
   3. LAYOUT PRIMITIVES
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: 120px; }
.section--alt { background: var(--canvas-alt); transition: background-color 0.4s ease; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

/* ------------------------------------------------------------
   4. TYPOGRAPHY
   ------------------------------------------------------------ */
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-top: 14px;
  opacity: 0.85;
}

.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.display em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.h2 { font-size: 42px; line-height: 1.15; }
.lede {
  color: var(--stone);
  font-size: 16px;
  line-height: 1.6;
  max-width: 68ch;
}

/* Animated editorial link — underline draws from left */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  position: relative;
  padding-bottom: 3px;
  width: fit-content;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-std);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform 0.3s var(--ease-std); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ------------------------------------------------------------
   5. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.3s var(--ease-std),
              color 0.3s var(--ease-std),
              border-color 0.3s var(--ease-std),
              transform 0.3s var(--ease-std);
  white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease-std); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s var(--ease-expo);
  pointer-events: none;
}
.btn--primary:hover { background: var(--accent); color: var(--btn-hover-text); }
.btn--primary:hover::after { left: 130%; }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--lg { font-size: 18px; padding: 16px 36px; }

/* ------------------------------------------------------------
   6. NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__wordmark {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  text-decoration: none;
}
.nav__wordmark .wm__main { position: relative; }
.nav__wordmark .wm__main span { color: var(--accent); }
.nav__wordmark .wm__main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  opacity: 0.42;
  transition: opacity 0.3s var(--ease-std);
}
.nav__wordmark:hover .wm__main::after { opacity: 0.70; }
.wm__tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--stone);
  margin-left: 7px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--stone);
  padding: 6px 0;
  transition: color 0.25s var(--ease-std);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-std);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 18px; }

/* Theme toggle — sun/moon crossfade */
.theme-toggle {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  color: var(--stone);
  transition: color 0.25s var(--ease-std), border-color 0.25s var(--ease-std);
  position: relative;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle svg {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.35s var(--ease-std), transform 0.5s var(--ease-expo);
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }
html[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0deg) scale(1); }
html[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.nav__cta { padding: 12px 24px; }

/* Hamburger */
.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 130;
}
.nav__burger span {
  position: absolute;
  left: 10px;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-expo), top 0.35s var(--ease-expo), opacity 0.25s;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 23px; }
.nav__burger.is-open span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px var(--gutter) 48px;
  background:
    radial-gradient(120% 90% at 85% 10%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--canvas) 0%, var(--canvas-alt) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-expo), visibility 0s 0.4s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease-expo);
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  padding-block: 6px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo), color 0.25s;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.mobile-menu__link small {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.32s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(6) { transition-delay: 0.38s; }
.mobile-menu__foot {
  margin-top: 40px;
  font-size: 14px;
  color: var(--stone);
  opacity: 0;
  transition: opacity 0.5s ease 0.45s;
}
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; }

/* ------------------------------------------------------------
   7. HERO
   ------------------------------------------------------------ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(56% 44% at 74% 38%, var(--hero-glow), transparent 72%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}
.hero__title {
  font-size: 64px;
  margin-top: 28px;
}
.hero__title .line { display: block; }
.hero__sub {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 480px;
}
.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Entrance choreography — expo-out, staged */
.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-rise 0.6s var(--ease-expo) forwards;
}
.js .hero [data-hero="label"]   { animation-delay: 0.10s; animation-duration: 0.4s; }
.js .hero [data-hero="sub"]     { animation-delay: 0.95s; animation-duration: 0.5s; }
.js .hero [data-hero="actions"] { animation-delay: 1.08s; animation-duration: 0.5s; }
.js .hero [data-hero="visual"] {
  transform: scale(0.96);
  animation-name: hero-visual-in;
  animation-duration: 0.8s;
  animation-delay: 0.5s;
}
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-visual-in {
  to { opacity: 1; transform: scale(1); }
}

/* Headline — masked word-by-word reveal */
.hero__title .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0 0.06em 0.12em 0;
  margin: 0 -0.06em -0.12em 0;
}
.hero__title .wi { display: inline-block; will-change: transform; }
.js .hero__title .wi {
  transform: translateY(118%);
  animation: word-rise 0.85s var(--ease-expo) forwards;
  animation-delay: var(--wd, 0s);
}
@keyframes word-rise {
  to { transform: translateY(0); }
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: var(--border-strong);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scroll-cue 2.5s var(--ease-std) infinite;
  transform-origin: bottom;
}
@keyframes scroll-cue {
  0%   { transform: scaleY(0); transform-origin: bottom; }
  45%  { transform: scaleY(1); transform-origin: bottom; }
  55%  { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: top; }
}

/* Hero visual — operations console over an aurora field */
.hero-visual {
  position: relative;
  height: 560px;
  perspective: 1200px;
}

/* Aurora blobs + dotted grid */
.hero-aurora {
  position: absolute;
  inset: -10% -8%;
  pointer-events: none;
}
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}
.aurora--a {
  width: 58%;
  aspect-ratio: 1;
  top: -12%;
  left: -10%;
  background: radial-gradient(circle at 38% 38%, var(--aurora-a), transparent 68%);
  animation: aurora-drift-a 14s ease-in-out infinite alternate;
}
.aurora--b {
  width: 50%;
  aspect-ratio: 1;
  bottom: -16%;
  right: -6%;
  background: radial-gradient(circle at 62% 62%, var(--aurora-b), transparent 68%);
  animation: aurora-drift-b 18s ease-in-out infinite alternate;
}
.aurora--c {
  width: 36%;
  aspect-ratio: 1;
  top: 26%;
  right: 14%;
  background: radial-gradient(circle at 50% 50%, var(--aurora-c), transparent 66%);
  animation: aurora-drift-a 21s ease-in-out infinite alternate-reverse;
}
@keyframes aurora-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(7%, 9%) scale(1.14); }
}
@keyframes aurora-drift-b {
  from { transform: translate(0, 0) scale(1.08); }
  to   { transform: translate(-8%, -7%) scale(0.94); }
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 46%, #000 28%, transparent 76%);
          mask-image: radial-gradient(75% 70% at 50% 46%, #000 28%, transparent 76%);
  opacity: 0.6;
}

.hv-tilt {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-expo);
  will-change: transform;
}
.hv-float {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: hv-breathe 6s ease-in-out infinite alternate;
}
@keyframes hv-breathe {
  from { transform: translateY(-3px) rotate(-0.15deg); }
  to   { transform: translateY(3px) rotate(0.15deg); }
}

/* Window chrome dots — shared by console, terminal, and work scenes */
.win-dots { display: inline-flex; gap: 6px; flex: 0 0 auto; }
.win-dots i { width: 8px; height: 8px; border-radius: 50%; }
.win-dots i:nth-child(1) { background: #E5634D; }
.win-dots i:nth-child(2) { background: #E0A458; }
.win-dots i:nth-child(3) { background: #59A869; }

/* Operations console */
.console-card {
  position: absolute;
  top: 4%;
  left: 0;
  width: 88%;
  background: linear-gradient(180deg, var(--accent-soft), transparent 34%), var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  transition: transform 0.6s var(--ease-expo), border-color 0.4s ease, background-color 0.4s ease;
  will-change: transform;
}
.console-card__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--canvas-alt) 55%, var(--surface));
}
.console-card__title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--stone);
}
.status-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--ok);
  background: var(--ok-soft);
  border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent);
  white-space: nowrap;
}
.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  animation: dot-pulse 2.2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.console-card__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.kpi {
  padding: 14px;
  border-right: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.kpi:last-child { border-right: 0; }
.kpi__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--stone);
  white-space: nowrap;
}
.kpi__value {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi__delta { font-size: 9.5px; font-weight: 600; color: var(--ok); }
.console-card__chart { padding: 6px 12px 0; }
.console-card__chart svg { display: block; width: 100%; height: 118px; }
.chart-grid line {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}
.chart-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: chart-draw 2s var(--ease-expo) 0.9s forwards;
}
@keyframes chart-draw { to { stroke-dashoffset: 0; } }
.chart-area { opacity: 0; animation: chart-fade 1.2s ease 2s forwards; }
.chart-tip { fill: var(--accent); opacity: 0; animation: chart-fade 0.5s ease 2.7s forwards; }
.chart-tip-halo { fill: var(--accent); opacity: 0; animation: tip-halo 2.6s ease-in-out 2.7s infinite; }
@keyframes chart-fade { to { opacity: 1; } }
@keyframes tip-halo {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.32; }
}
.console-card__deploys { margin-top: 6px; }
.console-card__deploys li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border-top: 1px solid var(--hairline);
  font-size: 11px;
}
.deploy-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); flex: 0 0 auto; }
.deploy-dot--run { background: var(--accent); animation: dot-pulse 1.4s ease-in-out infinite; }
.deploy-msg {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 500;
}
.console-card__deploys code {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--stone);
  background: var(--inset);
  border-radius: 4px;
  padding: 2px 6px;
}
.deploy-time { font-size: 10px; color: var(--stone); }

/* Terminal card — always midnight, like a real terminal */
.term-card {
  position: absolute;
  right: -2%;
  bottom: 2%;
  width: 56%;
  transform: rotate(2deg);
  background: #12131A;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 28px 56px -18px rgba(10, 11, 15, 0.45);
  overflow: hidden;
  transition: transform 0.6s var(--ease-expo);
  will-change: transform;
}
.term-card__chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: #7C7C88;
}
.term-card__body {
  padding: 10px 14px 13px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.95;
  color: #C9C9D1;
}
.tl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl.is-idle { visibility: hidden; }
.tl.is-in { animation: tl-in 0.3s var(--ease-std); }
@keyframes tl-in {
  from { opacity: 0; transform: translateY(3px); }
}
.tl--cmd { color: #EDEAE4; }
.tl--dim { color: #7C7C88; }
.tl--ok { color: #7FBD9B; }
.tl--caret i {
  display: inline-block;
  width: 7px;
  height: 12px;
  background: #C77B4A;
  vertical-align: -2px;
  animation: caret-blink 1.1s steps(1) infinite;
}
@keyframes caret-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

/* Live status card */
.pulse-card {
  position: absolute;
  top: -2%;
  right: 4%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 16px;
  transform: rotate(-3deg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-card-hover);
  transition: transform 0.6s var(--ease-expo), border-color 0.4s ease, background-color 0.4s ease;
  will-change: transform;
}
.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: 0 0 auto;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--ok);
  animation: pulse-ring 2s var(--ease-std) infinite;
}
@keyframes pulse-ring {
  from { transform: scale(0.55); opacity: 0.9; }
  to   { transform: scale(1.7); opacity: 0; }
}
.pulse-card__txt strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.pulse-card__txt span { font-size: 10px; color: var(--stone); white-space: nowrap; }

.hv-shadow {
  position: absolute;
  bottom: -8%;
  left: 12%;
  right: 12%;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(22, 23, 27, 0.16), transparent 70%);
  filter: blur(6px);
}
html[data-theme="dark"] .hv-shadow {
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.5), transparent 70%);
}

/* ------------------------------------------------------------
   8. TRUST LINE
   ------------------------------------------------------------ */
.trust {
  padding-block: 80px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}
.trust__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--stone);
  max-width: 700px;
  margin-inline: auto;
  line-height: 1.5;
}
.trust__logos {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trust__logos svg {
  height: 22px;
  width: auto;
  color: var(--stone);
  opacity: 0.4;
  transition: opacity 0.3s var(--ease-std);
}
.trust__logos svg:hover { opacity: 0.7; }

/* ------------------------------------------------------------
   9. SERVICES
   ------------------------------------------------------------ */
.services-head { grid-column: 1 / span 5; }
.services-head .h2 { margin-top: 24px; }
.services-head .lede { margin-top: 20px; max-width: 400px; }

.services-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-std),
              border-color 0.4s var(--ease-std),
              box-shadow 0.4s var(--ease-std),
              background-color 0.4s ease;
}
/* Cursor-tracking spotlight (Linear-style) */
.service-card::before,
.model-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-std);
  pointer-events: none;
}
.service-card:hover::before,
.model-card:hover::before { opacity: 1; }
.service-card > *, .model-card > * { position: relative; }
html[data-theme="dark"] .service-card {
  background: linear-gradient(180deg, rgba(199, 123, 74, 0.04), transparent 40%), var(--surface);
}
.service-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-card-hover);
}
.service-card__icon {
  width: 24px;
  height: 24px;
  color: var(--ink);
  transition: color 0.3s var(--ease-std);
}
.service-card:hover .service-card__icon { color: var(--accent); }
.service-card__title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.service-card__desc {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--stone);
}

/* ------------------------------------------------------------
   10. FEATURED WORK
   ------------------------------------------------------------ */
.work-head {
  grid-column: 6 / span 7;
  text-align: left;
}
.work-head .h2 { margin-top: 24px; }
.work-head .lede { margin-top: 20px; max-width: 460px; }

.work-list { margin-top: 60px; display: flex; flex-direction: column; gap: 80px; }
.work-row {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 48px;
  align-items: center;
}
.work-row--flip { grid-template-columns: 45fr 55fr; }
.work-row--flip .work-media { order: 2; }
.work-row--flip .work-body { order: 1; }

.work-media {
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-media);
  border: 1px solid transparent;
  transition: border-color 0.4s var(--ease-std);
  position: relative;
}
.work-media:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.work-media .shot {
  transition: transform 0.6s var(--ease-std), background-color 0.4s ease;
}
.work-media:hover .shot { transform: scale(1.02); }

.work-body .tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-body h2, .work-body h3 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.work-body .outcome {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 380px;
}
.work-body .link-arrow { margin-top: 20px; }

/* Pictorial product scenes — hand-crafted UI snapshots per project */
.shot {
  --tint: var(--accent-soft);
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--tint), transparent 58%), var(--canvas);
  position: relative;
  overflow: hidden;
}
.shot--fin { --tint: rgba(168, 88, 49, 0.10); }
.shot--med { --tint: rgba(62, 124, 89, 0.10); }
.shot--ret { --tint: rgba(169, 122, 36, 0.10); }
.shot--sas { --tint: rgba(74, 111, 165, 0.10); }
.shot--log { --tint: rgba(96, 106, 128, 0.10); }
html[data-theme="dark"] .shot--fin { --tint: rgba(199, 123, 74, 0.14); }
html[data-theme="dark"] .shot--med { --tint: rgba(111, 168, 138, 0.14); }
html[data-theme="dark"] .shot--ret { --tint: rgba(208, 161, 86, 0.14); }
html[data-theme="dark"] .shot--sas { --tint: rgba(126, 156, 196, 0.14); }
html[data-theme="dark"] .shot--log { --tint: rgba(140, 150, 170, 0.14); }

.shot__chrome {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--canvas-alt) 60%, var(--surface));
}
.shot__url {
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--stone);
  background: var(--inset);
  border: 1px solid var(--border);
  padding: 3px 12px;
  border-radius: 999px;
}
.shot__body { flex: 1; display: flex; gap: 3.5%; min-height: 0; }

/* Sidebar (fintech / dashboards) */
.s-side {
  flex: 0 0 14%;
  border-right: 1px solid var(--border);
  padding: 3.5% 2.5%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
  min-width: 0;
}
.s-side__logo {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--accent); opacity: 0.85;
  align-self: flex-start; margin-bottom: 4px;
}
.s-side span {
  display: block; height: 5px; border-radius: 2.5px;
  background: var(--inset);
}
.s-side span.on { background: var(--accent); opacity: 0.55; }
.s-side__ava {
  margin-top: auto;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 7.5px; font-weight: 700;
  display: grid; place-items: center;
  font-style: normal; font-family: var(--font-body);
}

/* Main content area inside shots */
.s-main { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.s-head { display: flex; align-items: center; gap: 10px; }
.s-title { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.s-search {
  margin-left: auto;
  font-size: 9.5px; color: var(--stone);
  background: var(--inset);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px;
  white-space: nowrap;
}
.s-chips { display: flex; gap: 6px; margin-left: auto; }
.s-chip {
  font-size: 9px; font-weight: 600; color: var(--stone);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 9px; background: var(--surface);
  white-space: nowrap;
}
.s-chip.on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--accent-soft);
}

/* KPI card strip */
.s-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.s-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.s-kpi { padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; }

/* Status pills */
.s-pill {
  display: inline-flex; align-items: center;
  width: fit-content;
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.02em;
  padding: 2px 7px; border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.s-pill--ok { color: var(--ok); background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.s-pill--warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.s-pill--accent { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }

/* Chart wrappers inside shots */
.s-chartwrap { flex: 1; padding: 8px 10px 6px; display: flex; flex-direction: column; }
.s-chartwrap svg { flex: 1; width: 100%; height: 100%; min-height: 0; }
.s-grid-lines line {
  stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 6;
}
.s-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.s-line--prev {
  stroke: var(--border-strong);
  stroke-dasharray: 4 5;
  stroke-dashoffset: 0;
}
.s-area { opacity: 0; }
.s-tip { fill: var(--accent); }
.s-xaxis {
  display: flex; justify-content: space-between; padding-top: 4px;
  font-size: 8.5px; font-weight: 600; color: var(--stone);
}

/* Chart draw-on-scroll — triggered via .is-visible on parent */
.work-row.is-visible .s-line { animation: chart-draw 1.8s var(--ease-expo) 0.3s forwards; }
.work-row.is-visible .s-area { animation: chart-fade 1.2s ease 0.6s forwards; }
.work-row.is-visible .s-tip { animation: chart-fade 0.5s ease 1.4s forwards; }

/* Application / data rows */
.s-rows { display: flex; flex-direction: column; gap: 2px; }
.s-row {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 2px;
  border-top: 1px solid var(--hairline);
}
.s-avatar {
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 7.5px; font-weight: 700; font-family: var(--font-body); font-style: normal;
  background: var(--accent-soft); color: var(--accent);
  flex: 0 0 auto;
}
.s-avatar--b { background: var(--blue-soft); color: var(--blue); }
.s-avatar--c { background: var(--ok-soft); color: var(--ok); }
.s-row__name { font-size: 10.5px; font-weight: 500; color: var(--ink); line-height: 1.25; }
.s-row__name small { display: block; font-size: 7.5px; font-weight: 500; color: var(--stone); }
.s-label { font-size: 8.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--stone); white-space: nowrap; }
.s-val { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }

/* Healthcare calendar */
.s-cal { flex: 1; overflow: hidden; padding: 4px 10px 8px; }
.s-cal__days {
  display: grid; grid-template-columns: 34px repeat(7, 1fr);
  margin-bottom: 4px;
}
.s-cal__days span {
  font-size: 8px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--stone); text-align: center; padding: 2px 0;
}
.s-cal__days span.today { color: var(--accent); }
.s-cal__grid {
  position: relative; flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 34px repeat(7, 1fr);
  grid-template-rows: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  background-image:
    repeating-linear-gradient(180deg, var(--border) 0 1px, transparent 1px 25%);
}
.s-cal__today {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(34px + (100% - 34px) * 3 / 7);
  width: calc((100% - 34px) / 7);
  background: var(--accent-soft);
  border-radius: 6px;
  pointer-events: none;
}
.s-cal__time {
  font-size: 7.5px; color: var(--stone); padding: 2px 4px 0 0; text-align: right;
}
.s-evt {
  margin: 2px 3px; padding: 3px 6px; border-radius: 5px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: 8.5px; font-weight: 600; color: var(--ink);
  overflow: hidden;
}
.s-evt small { display: block; font-size: 7.5px; font-weight: 500; color: var(--stone); }
.s-evt--b { border-color: var(--blue); background: var(--blue-soft); }
.s-evt--c { border-color: var(--ok); background: var(--ok-soft); }
.s-evt--d { border-color: var(--warn); background: var(--warn-soft); }

/* Scene footer */
.s-foot {
  display: flex; align-items: center; gap: 7px; font-size: 9px; color: var(--stone); padding-top: 0;
}
.s-livedot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  animation: dot-pulse 2.2s ease-in-out infinite; flex: 0 0 auto;
}

/* Retail inventory table */
.s-table { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 4px 10px 6px; }
.s-trow {
  flex: 1;
  display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--hairline);
  min-height: 0;
  padding: 2px 0;
}
.s-thumb {
  flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 5px;
  background: var(--th, var(--accent-soft));
  border: 1px solid var(--border);
}
.s-trow__name { font-size: 10px; font-weight: 600; color: var(--ink); line-height: 1.25; min-width: 68px; }
.s-trow__name small { display: block; font-size: 7.5px; font-weight: 500; color: var(--stone); }
.s-stock { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.s-stock__bar { flex: 1; height: 5px; border-radius: 3px; background: var(--inset); overflow: hidden; }
.s-stock__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.s-stock__bar i.low { background: var(--warn); }
.s-stock__bar i.mid { background: var(--accent); }
.s-stock__pct { font-size: 8.5px; color: var(--stone); width: 26px; text-align: right; }

/* SaaS analytics legend */
.s-legend {
  display: flex; gap: 14px; font-size: 8.5px; color: var(--stone);
  align-items: center; padding: 0 2px 4px;
}
.s-legend i {
  display: inline-block; width: 14px; height: 2px; border-radius: 1px;
  background: var(--accent); margin-right: 5px; vertical-align: middle;
}
.s-legend .prev i { background: var(--border-strong); }

/* Logistics route map */
.s-map {
  flex: 0 0 54%;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(var(--dot) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--canvas);
}
.s-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-route {
  stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 5 6;
  animation: route-march 1.6s linear infinite;
}
@keyframes route-march { to { stroke-dashoffset: -11; } }
.s-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 7.5px; font-weight: 600; color: var(--stone);
}
.s-pin i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
}
.s-pin--depot i { border-radius: 3px; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.s-pin--end i { background: var(--ok); box-shadow: 0 0 0 1px var(--ok); }

/* Route info column */
.s-route-col { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s-rrow {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}
.s-rrow__info { min-width: 0; font-size: 9.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.s-rrow__info small { display: block; font-size: 7.5px; font-weight: 500; color: var(--stone); }

/* ------------------------------------------------------------
   11. PROCESS
   ------------------------------------------------------------ */
.process-head { text-align: center; max-width: 600px; margin-inline: auto; }
.process-head .eyebrow-rule { margin-inline: auto; }
.process-head .h2 { margin-top: 24px; }
.process-head .lede { margin-top: 20px; margin-inline: auto; }

.process-track { margin-top: 80px; position: relative; }
.process-line {
  position: absolute;
  top: 110px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: var(--border-strong);
  transform: scaleX(0);
  transform-origin: left;
}
.process-track.is-visible .process-line {
  animation: process-draw 1.2s var(--ease-expo) forwards;
}
@keyframes process-draw { to { transform: scaleX(1); } }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.process-step {
  text-align: center;
  padding-inline: 8px;
  opacity: 1;
}
.js .process-step { opacity: 0; transform: translateY(16px); }
.process-track.is-visible .process-step {
  animation: hero-rise 0.6s var(--ease-expo) forwards;
}
.process-track.is-visible .process-step:nth-child(1) { animation-delay: 1.20s; }
.process-track.is-visible .process-step:nth-child(2) { animation-delay: 1.32s; }
.process-track.is-visible .process-step:nth-child(3) { animation-delay: 1.44s; }
.process-track.is-visible .process-step:nth-child(4) { animation-delay: 1.56s; }

.process-step__num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.3;
  transition: opacity 0.35s var(--ease-std);
}
.process-step__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin: 36px auto 0;
  transition: transform 0.35s var(--ease-std);
  position: relative;
}
.process-step__name {
  margin-top: 26px;
  font-size: 16px;
  font-weight: 600;
}
.process-step__desc {
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 220px;
}
.process-step:hover .process-step__num { opacity: 1; }
.process-step:hover .process-step__dot { transform: scale(1.667); }

/* ------------------------------------------------------------
   12. WHY — dark gallery band (always midnight)
   ------------------------------------------------------------ */
.dark-band {
  background: linear-gradient(
    to bottom,
    var(--canvas) 0%,
    #0E0E14 80px,
    #0E0E14 calc(100% - 80px),
    var(--canvas) 100%
  );
  padding-block: 0;
}
.dark-band__inner {
  background: radial-gradient(640px 420px at 50% 50%, rgba(199, 123, 74, 0.03), transparent 70%);
  padding-block: 120px;
  text-align: center;
}
.dark-band .eyebrow { color: #C77B4A; }
.dark-band .eyebrow-rule { margin-inline: auto; background: #C77B4A; }
.dark-band .h2 { color: #EDEAE4; margin-top: 24px; }
.dark-band .lede { color: #8B8B93; margin-inline: auto; }

.principles {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 800px;
  margin-inline: auto;
  text-align: left;
}
.principle h3 {
  font-size: 18px;
  font-weight: 600;
  color: #EDEAE4;
  letter-spacing: -0.01em;
}
.principle p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #8B8B93;
}

/* ------------------------------------------------------------
   13. ABOUT PREVIEW
   ------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: center;
}
.about-copy .h2 { margin-top: 24px; font-size: 36px; line-height: 1.2; }
.about-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 58ch;
}
.about-copy p + p { margin-top: 16px; }
.about-copy .link-arrow { margin-top: 32px; }
.about-photo {
  border-radius: var(--radius-media);
  overflow: hidden;
  box-shadow: var(--shadow-media);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
  transition: transform 0.8s var(--ease-expo);
}
.about-photo:hover img { transform: scale(1.03); }

/* ------------------------------------------------------------
   14. FINAL CTA
   ------------------------------------------------------------ */
.cta {
  padding-block: 160px;
  text-align: center;
  position: relative;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 360px at 50% 42%, var(--glow-accent), transparent 70%);
  pointer-events: none;
}
.cta .eyebrow-rule { margin-inline: auto; }
.cta .h2 {
  margin-top: 28px;
  font-size: 56px;
  line-height: 1.1;
}
.cta .lede {
  margin: 32px auto 0;
  font-size: 17px;
  max-width: 480px;
}
.cta .btn { margin-top: 32px; }

/* ------------------------------------------------------------
   15. FOOTER
   ------------------------------------------------------------ */
.footer {
  background: var(--footer-bg);
  color: #9B9BA3;
  padding: 80px 0 40px;
  transition: background-color 0.4s ease;
  position: relative;
  z-index: 1;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer__brand {
  display: flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  color: #EDEAE4;
}
.footer__brand .wm__main { position: relative; }
.footer__brand .wm__main span { color: #C77B4A; }
.footer__brand .wm__main::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 100%;
  height: 1px;
  background: #C77B4A;
  opacity: 0.42;
}
.footer__brand .wm__tag {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8B8B93;
  margin-left: 7px;
}
.footer__tag {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 240px;
}
.footer__social {
  margin-top: 24px;
  display: flex;
  gap: 18px;
}
.footer__social a {
  color: #9B9BA3;
  transition: color 0.2s var(--ease-std);
  display: grid;
  place-items: center;
}
.footer__social a:hover { color: #C77B4A; }
.footer__social svg { width: 18px; height: 18px; }

.footer__heading {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EDEAE4;
}
.footer__list { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.footer__list a, .footer__list span {
  font-size: 14px;
  color: #9B9BA3;
  transition: color 0.2s var(--ease-std);
  width: fit-content;
}
.footer__list a:hover { color: #EDEAE4; }
.footer__list a.footer__mail:hover { color: #C77B4A; }
.footer__note {
  margin-top: 14px;
  font-size: 13px;
  color: #6B6B73;
  font-style: italic;
}
.footer__bar {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #22232C;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__bar p { font-size: 13px; }
.footer__bar .sign {
  font-family: var(--font-display);
  font-style: italic;
}

/* ------------------------------------------------------------
   16. INTERIOR PAGES
   ------------------------------------------------------------ */
.page-hero {
  padding-top: 200px;
  padding-bottom: 80px;
}
.page-hero__title {
  font-size: 56px;
  margin-top: 28px;
  max-width: 15ch;
}
.page-hero__lede {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--stone);
  max-width: 540px;
}

/* Services page — detailed rows */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding-block: 56px;
  border-top: 1px solid var(--hairline);
}
.svc-row:last-child { border-bottom: 1px solid var(--hairline); }
.svc-row__index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.45;
}
.svc-row__title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-top: 16px;
}
.svc-row__body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--stone);
  max-width: 60ch;
}
.svc-row__tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.svc-row__tags li {
  font-size: 13px;
  font-weight: 500;
  color: var(--stone);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  transition: border-color 0.25s var(--ease-std), color 0.25s var(--ease-std);
}
.svc-row:hover .svc-row__tags li { border-color: var(--border-strong); }

/* Engagement models */
.models {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.model-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-std), border-color 0.4s var(--ease-std), box-shadow 0.4s var(--ease-std);
}
html[data-theme="dark"] .model-card {
  background: linear-gradient(180deg, rgba(199, 123, 74, 0.04), transparent 40%), var(--surface);
}
.model-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: var(--shadow-card-hover);
}
.model-card h3 { font-size: 18px; font-weight: 600; }
.model-card .for {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.model-card p { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--stone); }

/* About page */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.about-story {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.about-story__copy p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--stone);
  max-width: 62ch;
}
.about-story__copy p + p { margin-top: 20px; }
.about-story__copy p strong { color: var(--ink); font-weight: 500; }

/* Careers page */
.roles { border-top: 1px solid var(--hairline); margin-top: 60px; }
.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 8px;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.3s var(--ease-std), padding 0.3s var(--ease-std);
  border-radius: 4px;
}
.role-row:hover { background: var(--surface); padding-left: 20px; padding-right: 20px; }
.role-row__title { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.role-row__meta {
  margin-top: 4px;
  font-size: 13px;
  color: var(--stone);
  display: flex;
  gap: 16px;
}
.role-row__apply {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  white-space: nowrap;
}
.role-row__apply svg { transition: transform 0.3s var(--ease-std); }
.role-row:hover .role-row__apply svg { transform: translateX(4px); }

.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  margin-top: 60px;
}
.benefit h3 { font-size: 17px; font-weight: 600; }
.benefit p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--stone); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 64px;
  align-items: start;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-media);
  padding: 13px 16px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-std), box-shadow 0.25s var(--ease-std), background-color 0.4s ease;
  width: 100%;
}
.field textarea { min-height: 148px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%236B6B73' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--border-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--accent);
}
.field__error {
  font-size: 13px;
  color: var(--accent);
  min-height: 18px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.25s var(--ease-std), transform 0.25s var(--ease-std);
}
.field.has-error .field__error { opacity: 1; transform: translateY(0); }

.form__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.form__privacy { font-size: 13px; color: var(--stone); max-width: 320px; line-height: 1.5; }

.form-success {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.form-success__seal {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.form-success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
}
.form-success p { margin-top: 10px; font-size: 15px; color: var(--stone); max-width: 40ch; margin-inline: auto; }

.contact-aside { display: flex; flex-direction: column; gap: 32px; }
.contact-block {
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}
.contact-block h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}
.contact-block p, .contact-block a {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  display: block;
  width: fit-content;
}
.contact-block a { transition: color 0.2s var(--ease-std); }
.contact-block a:hover { color: var(--accent); }
.contact-block .quiet { font-size: 14px; color: var(--stone); }

/* ------------------------------------------------------------
   17. SCROLL REVEAL SYSTEM
   ------------------------------------------------------------ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ------------------------------------------------------------
   18. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero__title { font-size: 52px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 480px; }
}

@media (max-width: 900px) {
  .section { padding-block: 88px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }

  .hero { min-height: auto; padding-block: 160px 96px; }
  .hero__grid { grid-template-columns: 1fr; gap: 64px; }
  .hero__title { font-size: 44px; }
  .hero-visual { height: 420px; max-width: 520px; }
  .term-card { width: 58%; }
  .scroll-cue { display: none; }

  .grid-12 { grid-template-columns: 1fr; }
  .services-head, .work-head { grid-column: 1 / -1; }

  .work-row, .work-row--flip { grid-template-columns: 1fr; gap: 32px; }
  .work-row--flip .work-media { order: 0; }
  .work-row--flip .work-body { order: 1; }

  .process-line { display: none; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }

  .about-grid, .about-story, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-photo { order: -1; }

  .svc-row { grid-template-columns: 1fr; gap: 20px; padding-block: 44px; }
  .svc-row__index { font-size: 40px; }
  .svc-row__title { margin-top: 0; }

  .models, .values-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .page-hero { padding-top: 160px; padding-bottom: 56px; }
  .page-hero__title { font-size: 42px; }
}

@media (max-width: 560px) {
  :root { --gutter: 24px; }
  .section { padding-block: 64px; }
  .h2 { font-size: 32px; }
  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 16px; }
  .hero-visual { height: 410px; }
  .console-card { width: 100%; }
  .kpi__value { font-size: 17px; }
  .console-card__chart svg { height: 96px; }
  .console-card__deploys li:nth-child(3) { display: none; }
  .pulse-card { display: none; }
  .term-card { width: 82%; right: 0; }
  .hero-aurora { inset: -5% -2%; }
  .cta { padding-block: 96px; }
  .cta .h2 { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .process-step__num { font-size: 56px; }
  .principles { grid-template-columns: 1fr; }
  .trust__logos { gap: 32px; }
  .form { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .footer__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .role-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-hero__title { font-size: 34px; }
}

/* ------------------------------------------------------------
   19. REDUCED MOTION — calm by request
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.2s !important;
  }
  .js [data-reveal], .js .hero [data-hero], .js .process-step {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .process-line { transform: scaleX(1) !important; }
  .hv-float { animation: none !important; }
  .scroll-cue::after { animation: none !important; transform: scaleY(1); }

  /* New hero / shot animations */
  .aurora, .pulse-dot::after, .status-pill i, .s-livedot { animation: none !important; }
  .chart-line { stroke-dashoffset: 0 !important; animation: none !important; }
  .chart-area, .chart-tip, .s-area { opacity: 1 !important; animation: none !important; }
  .chart-tip-halo { display: none; }
  .s-route { animation: none !important; }
  .js .hero__title .wi { transform: none !important; animation: none !important; }
  .btn--primary::after { display: none; }
}
