/* ==========================================================================
   Intravium — site styles
   Brand: Midnight Navy #081025 · Signature Violet #652AE9 · Workspace Blue #278DF3
          Digital Cyan #24D3F1 · White #FFFFFF
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --navy: #081025;
  --navy-2: #0e1938;      /* raised surface on navy */
  --navy-3: #1a2650;      /* borders on navy */
  --violet: #652ae9;
  --violet-hover: #5822d4;
  --blue: #278df3;
  --cyan: #24d3f1;
  --white: #ffffff;

  /* Neutrals (cool, derived from navy) */
  --paper: #f5f7fc;
  --ink: #081025;
  --ink-2: #3b4566;       /* secondary text on light, 9.3:1 on white */
  --ink-3: #5d6685;       /* meta text on light, 5.7:1 on white */
  --line: #dfe3ee;
  --on-navy: #ffffff;
  --on-navy-2: #b8c0db;   /* 10:1 on navy */
  --on-navy-3: #8e98b8;

  /* Type */
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --w-regular: 400;
  --w-medium: 500;
  --w-semibold: 600;

  --text-meta: 0.75rem;
  --text-secondary: 0.875rem;
  --text-body: 1rem;
  --text-lede: 1.1875rem;
  --text-h3: 1.25rem;
  --text-h2: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem);
  --text-h1: clamp(2.5rem, 1.6rem + 3.9vw, 4.375rem);

  /* Space (8pt) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  /* Viewports */
  --vp-wide: 1280px;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);

  /* Radius: small for controls, larger for UI panels */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Motion */
  --motion-100: 100ms;
  --motion-150: 150ms;
  --motion-200: 200ms;
  --motion-300: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  --header-h: 72px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--w-regular);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--w-semibold);
  line-height: 1.15;
  text-wrap: balance;
}
h2 { font-size: var(--text-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--text-h3); line-height: 1.25; font-weight: var(--w-medium); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: var(--s-4);
  top: -100px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-sm);
  font-weight: var(--w-medium);
}
.skip:focus { top: var(--s-3); }

.wrap {
  width: 100%;
  max-width: var(--vp-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: 0 var(--s-5);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: var(--text-secondary);
  font-weight: var(--w-medium);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color var(--motion-150) var(--ease-out),
    border-color var(--motion-150) var(--ease-out),
    color var(--motion-150) var(--ease-out);
}
.btn-lg { min-height: 52px; padding: 0 var(--s-6); font-size: var(--text-body); }
.btn-block { width: 100%; }

.btn-primary { background: var(--violet); color: var(--white); }
.btn-primary:hover { background: var(--violet-hover); }

.btn-ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--navy-3);
}
.btn-ghost:hover { border-color: var(--on-navy-3); }

.text-link {
  color: var(--violet);
  font-weight: var(--w-medium);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: text-decoration-color var(--motion-150) var(--ease-out);
}
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: var(--on-navy);
  border-bottom: 1px solid transparent;
  transition: border-color var(--motion-200) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--navy-3); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 148px; height: auto; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav ul { display: flex; gap: var(--s-1); }
.nav ul a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  color: var(--on-navy-2);
  font-size: var(--text-secondary);
  font-weight: var(--w-medium);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--motion-150) var(--ease-out);
}
.nav ul a:hover { color: var(--white); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  margin-right: calc(var(--s-2) * -1);
  background: transparent;
  border: 0;
  color: var(--white);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--motion-200) var(--ease-out), opacity var(--motion-150) var(--ease-out);
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }

@media (max-width: 899.98px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-5);
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: var(--navy);
    border-bottom: 1px solid var(--navy-3);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition:
      opacity var(--motion-150) var(--ease-in),
      transform var(--motion-150) var(--ease-in),
      visibility 0s linear var(--motion-150);
  }
  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition:
      opacity var(--motion-200) var(--ease-out),
      transform var(--motion-200) var(--ease-out),
      visibility 0s;
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a {
    width: 100%;
    min-height: 52px;
    padding: 0;
    font-size: var(--text-body);
    color: var(--white);
    border-bottom: 1px solid var(--navy-3);
    border-radius: 0;
  }
  .nav-cta { min-height: 52px; font-size: var(--text-body); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
}

/* Ambient light that follows the pointer (static on touch / reduced motion) */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px circle at var(--gx, 72%) var(--gy, 38%), rgba(101, 42, 233, 0.30), transparent 60%),
    radial-gradient(520px circle at calc(var(--gx, 72%) + 12%) calc(var(--gy, 38%) - 14%), rgba(36, 211, 241, 0.14), transparent 60%);
}
.hero::after {
  /* faint baseline grid, only in the hero */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(184, 192, 219, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(184, 192, 219, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-7);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  color: var(--on-navy-2);
  font-size: var(--text-secondary);
  font-weight: var(--w-medium);
}
.hero-kicker::before {
  /* the two panels of the mark, miniature */
  content: "";
  width: 18px; height: 16px;
  background:
    linear-gradient(45deg, #2686f6, #24dcef) right top / 11px 13px no-repeat,
    linear-gradient(45deg, #9f5cfa, #5329e8) left bottom / 11px 11px no-repeat;
  transform: skewY(-18deg);
  border-radius: 2px;
}

.hero-title {
  max-width: 13ch;
  font-size: var(--text-h1);
  line-height: 1.04;
  letter-spacing: -0.028em;
  font-weight: var(--w-medium);
}
.hero-title .w {
  display: inline-block;
  white-space: pre;
}

.hero-lede {
  max-width: 34rem;
  margin-top: var(--s-5);
  color: var(--on-navy-2);
  font-size: var(--text-lede);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-6);
  color: var(--on-navy-3);
  font-size: var(--text-secondary);
}
.hero-facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.hero-facts li::before {
  content: "";
  width: 14px; height: 14px;
  flex: none;
  background: no-repeat center / 14px 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2324D3F1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
}

/* ---------- Hero stage: the layered workplace ---------- */
.stage {
  --px: 0;
  --py: 0;
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 0.9;
  margin-inline: auto;
  perspective: 1800px;
}

.layer {
  --tx: 0px;
  --ty: 0px;
  position: absolute;
  width: 62%;
  transform-style: preserve-3d;
  transform:
    translate3d(
      calc(var(--tx) + var(--px) * var(--d) * 14px),
      calc(var(--ty) + var(--py) * var(--d) * 10px),
      0)
    rotateX(calc(8deg - var(--py) * 4deg))
    rotateY(calc(-18deg + var(--px) * 6deg))
    skewY(-9deg);
  transition: transform var(--motion-300) var(--ease-out), opacity var(--motion-300) var(--ease-out);
  will-change: transform;
}
.layer-back  { --d: 0.6; top: 2%;  right: 0;   z-index: 1; }
.layer-mid   { --d: 1;   top: 27%; left: 17%;  z-index: 2; }
.layer-front { --d: 1.5; top: 52%; left: 0;    z-index: 3; width: 56%; }

/* Load sequence: layers start stacked in the centre, then fan out into the mark's arrangement */
.js .stage:not(.is-ready) .layer { opacity: 0; }
.js .stage:not(.is-ready) .layer-back  { --tx: -18%; --ty: 34%; }
.js .stage:not(.is-ready) .layer-mid   { --tx: 0%;   --ty: 10%; }
.js .stage:not(.is-ready) .layer-front { --tx: 30%;  --ty: -22%; }
.stage.is-ready .layer-back  { transition-delay: 160ms; }
.stage.is-ready .layer-mid   { transition-delay: 80ms; }
.stage.is-ready .layer-front { transition-delay: 0ms; }
.stage.is-settled .layer { transition-delay: 0ms; transition-duration: var(--motion-200); }

.panel {
  position: relative;
  overflow: hidden;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-lg);
  font-family: var(--font-body);
  box-shadow:
    0 0 0 1px rgba(8, 16, 37, 0.08),
    0 40px 80px -30px rgba(3, 6, 20, 0.85);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}
.layer-back .panel::before  { background: linear-gradient(90deg, #2686f6, #24dcef); }
.layer-mid .panel::before   { background: linear-gradient(90deg, #5136e2, #278df3); }
.layer-front .panel::before { background: linear-gradient(90deg, #9f5cfa, #5329e8); }

.layer-back .panel  { box-shadow: 0 0 0 1px rgba(8,16,37,.08), 0 40px 80px -30px rgba(36, 211, 241, 0.35); }
.layer-front .panel { box-shadow: 0 0 0 1px rgba(8,16,37,.08), 0 50px 90px -30px rgba(101, 42, 233, 0.75); }

.panel-bar {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.panel-dot {
  width: 10px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(45deg, #9f5cfa, #24dcef);
}
.panel-title { font-size: var(--text-meta); font-weight: var(--w-medium); color: var(--ink-3); }
.panel-body { padding: 14px 16px 18px; display: grid; gap: 12px; }

.ui-greet { font-family: var(--font-display); font-size: 1.125rem; font-weight: var(--w-medium); line-height: 1.2; }
.ui-hero-tile {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #0e1938, #1b2a66);
  color: var(--white);
}
.ui-tag { font-size: var(--text-meta); color: var(--cyan); font-weight: var(--w-medium); }
.ui-head { font-size: var(--text-secondary); line-height: 1.3; font-weight: var(--w-medium); }
.ui-list { display: grid; gap: 8px; font-size: var(--text-meta); color: var(--ink-2); }
.ui-list li { display: flex; align-items: center; gap: 8px; }
.ui-sq { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.c-blue { background: var(--blue); }
.c-cyan { background: var(--cyan); }
.c-violet { background: var(--violet); }

.ui-files { display: grid; gap: 4px; }
.ui-files li {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.ui-files li:last-child { border-bottom: 0; }
.ui-files b { display: block; font-size: var(--text-secondary); font-weight: var(--w-medium); line-height: 1.25; }
.ui-files small { display: block; font-size: var(--text-meta); color: var(--ink-3); line-height: 1.3; }
.ui-file {
  display: grid; place-items: center;
  width: 26px; height: 30px; flex: none;
  border-radius: 4px;
  color: var(--white);
  font-size: var(--text-meta);
  font-weight: var(--w-semibold);
}
.f-doc { background: #2b5fd9; }
.f-pdf { background: #c8324a; }
.f-xls { background: #1f7a4c; }

.ui-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  border: 1.5px solid var(--violet);
  border-radius: var(--r-sm);
  font-size: var(--text-secondary);
}
.ui-mag {
  width: 12px; height: 12px; flex: none;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
  position: relative;
}
.ui-mag::after {
  content: ""; position: absolute;
  width: 2px; height: 6px; right: -4px; bottom: -5px;
  background: var(--ink-3); transform: rotate(-45deg); border-radius: 1px;
}
.ui-search::after {
  content: ""; width: 1.5px; height: 16px; margin-left: -6px;
  background: var(--violet);
}
.ui-result { padding: 10px 12px; border-radius: var(--r-sm); background: #f0ebfe; }
.ui-result b { display: block; font-size: var(--text-secondary); font-weight: var(--w-medium); }
.ui-result small, .ui-person small { display: block; font-size: var(--text-meta); color: var(--ink-3); }
.ui-person { display: flex; align-items: center; gap: 10px; }
.ui-person b { display: block; font-size: var(--text-secondary); font-weight: var(--w-medium); }
.ui-avatar {
  display: grid; place-items: center;
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #278df3, #24d3f1);
  color: var(--navy);
  font-size: var(--text-meta);
  font-weight: var(--w-semibold);
}

.panel-code { background: #0d1530; color: #d6dcf0; }
.panel-code .panel-bar { border-bottom-color: #1f2b55; }
.panel-code .panel-title { color: #8e98b8; }
.ui-code {
  margin: 0;
  font-family: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  font-size: var(--text-meta);
  line-height: 1.6;
  white-space: pre;
  overflow: hidden;
}
.ui-code .k { color: #b394ff; }
.ui-code .t { color: #24d3f1; }
.ui-code .f { color: #6fb6ff; }
.ui-code .s { color: #9be7b5; }

/* ---------- Platforms strip ---------- */
.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3) var(--s-6);
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding-block: var(--s-6);
  background: linear-gradient(var(--navy-3), var(--navy-3)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.platforms-label { color: var(--on-navy-3); font-size: var(--text-secondary); }
.platforms-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-6);
  color: var(--on-navy-2);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: var(--w-medium);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

.section-head { max-width: 40rem; margin-bottom: var(--s-8); }
.section-head p { margin-top: var(--s-4); color: var(--ink-2); font-size: var(--text-lede); }

/* Recognition */
.recognise { background: var(--white); }
.pairs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--s-8);
}
.pair {
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
}
.pair h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--w-medium);
  letter-spacing: -0.01em;
}
.pair p { margin-top: var(--s-3); max-width: 34rem; color: var(--ink-2); }

/* Services */
.services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-8);
  align-items: start;
}
.services-intro { position: sticky; top: calc(var(--header-h) + var(--s-7)); }
.services-intro p { margin-top: var(--s-4); margin-bottom: var(--s-5); color: var(--ink-2); font-size: var(--text-lede); max-width: 28rem; }

.service-list { border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--line);
}
.service h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: var(--w-medium); letter-spacing: -0.01em; }
.service p { margin-top: var(--s-3); color: var(--ink-2); max-width: 36rem; }
.service .service-deliver {
  margin-top: var(--s-3);
  color: var(--ink);
  font-size: var(--text-secondary);
  font-weight: var(--w-medium);
}
/* Mini mark: two overlapping panels, colour shifts per service */
.service-mark {
  position: relative;
  width: 22px; height: 26px;
  margin-top: 6px;
  transform: skewY(-18deg);
}
.service-mark::before,
.service-mark::after {
  content: ""; position: absolute; border-radius: 3px;
}
.service-mark::before { right: 0; top: 0; width: 13px; height: 18px; background: linear-gradient(45deg, #2686f6, #24dcef); }
.service-mark::after { left: 0; bottom: 0; width: 13px; height: 16px; background: linear-gradient(45deg, #9f5cfa, #5329e8); opacity: 0.92; }

/* Approach */
.approach { background: var(--white); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-5);
  counter-reset: step;
  position: relative;
}
.steps::before {
  /* the route line */
  content: "";
  position: absolute;
  left: 21px; right: calc((100% - 4 * var(--s-5)) / 5 - 21px); top: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue) 60%, var(--cyan));
}
.step { position: relative; padding-right: var(--s-2); }
.step-num {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  margin-bottom: var(--s-5);
  background: var(--white);
  border: 2px solid var(--violet);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: var(--w-semibold);
  color: var(--violet);
}
.step:nth-child(2) .step-num { border-color: #4a4cee; color: #4a4cee; }
.step:nth-child(3) .step-num { border-color: var(--blue); color: #1b6fc4; }
.step:nth-child(4) .step-num { border-color: #25b0f2; color: #1484b5; }
.step:nth-child(5) .step-num { border-color: var(--cyan); color: #0f7f93; }
.step h3 { font-family: var(--font-display); font-size: 1.25rem; }
.step p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--text-secondary); line-height: 1.6; }

/* Why */
.why { background: var(--navy); color: var(--on-navy); }
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.why-statement {
  font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  font-weight: var(--w-medium);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.why-points { display: grid; gap: 0; border-top: 1px solid var(--navy-3); }
.why-point { padding-block: var(--s-5); border-bottom: 1px solid var(--navy-3); }
.why-point h3 { font-family: var(--font-display); font-size: 1.25rem; }
.why-point p { margin-top: var(--s-2); color: var(--on-navy-2); max-width: 34rem; }

/* FAQ */
.faq { background: var(--paper); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--s-8);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  min-height: 64px;
  padding-block: var(--s-4);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: var(--w-medium);
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 12px; height: 12px;
  border-right: 2px solid var(--violet);
  border-bottom: 2px solid var(--violet);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--motion-200) var(--ease-out);
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list details p { padding-bottom: var(--s-5); color: var(--ink-2); max-width: 40rem; }

/* Contact */
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--navy);
  color: var(--on-navy);
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(640px circle at 12% 100%, rgba(101, 42, 233, 0.28), transparent 60%),
    radial-gradient(520px circle at 90% 0%, rgba(39, 141, 243, 0.16), transparent 60%);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: start;
}
.contact-copy h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); letter-spacing: -0.02em; max-width: 16ch; }
.contact-copy p { margin-top: var(--s-4); color: var(--on-navy-2); font-size: var(--text-lede); max-width: 30rem; }
.contact-direct a { color: var(--white); text-underline-offset: 0.25em; }

.form {
  display: grid;
  gap: var(--s-4);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.25rem);
  background: var(--navy-2);
  border: 1px solid var(--navy-3);
  border-radius: var(--r-lg);
}
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--text-secondary); font-weight: var(--w-medium); color: var(--white); }
.optional { color: var(--on-navy-3); font-weight: var(--w-regular); }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--navy);
  border: 1px solid #2a3768;
  border-radius: var(--r-sm);
  color: var(--white);
  font: inherit;
  transition: border-color var(--motion-150) var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover,
.field textarea:hover { border-color: #3c4b85; }
.field input:focus-visible,
.field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field [aria-invalid="true"] { border-color: #ff7a8a; }
.field-error { color: #ff9eaa; font-size: var(--text-secondary); }
.form-note { color: var(--on-navy-3); font-size: var(--text-meta); line-height: 1.4; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-2);
  border-top: 1px solid var(--navy-3);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5) var(--s-8);
  align-items: center;
  padding-block: var(--s-7);
}
.footer-brand img { width: 200px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--s-2); }
.footer-nav a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 var(--s-3);
  font-size: var(--text-secondary);
  text-decoration: none;
  color: var(--on-navy-2);
}
.footer-nav a:hover { color: var(--white); }
.footer-meta {
  grid-column: 1 / -1;
  padding-top: var(--s-5);
  border-top: 1px solid var(--navy-3);
  color: var(--on-navy-3);
  font-size: var(--text-meta);
  line-height: 1.4;
}

/* ---------- Headline reveal (one orchestrated moment, with the stage) ---------- */
.js .hero-title .w {
  opacity: 0;
  transform: translateY(0.35em);
  filter: blur(6px);
  transition:
    opacity var(--motion-300) var(--ease-out),
    transform var(--motion-300) var(--ease-out),
    filter var(--motion-300) var(--ease-out);
  transition-delay: calc(var(--i) * 45ms);
}
.js .hero.is-in .hero-title .w { opacity: 1; transform: none; filter: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1099.98px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-7); }
  .steps::before { display: none; }
}

@media (max-width: 899.98px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .hero-title { max-width: 15ch; }
  .stage { max-width: 460px; }
  .pairs { grid-template-columns: minmax(0, 1fr); }
  .services-grid,
  .faq-grid,
  .why-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .services-intro { position: static; }
  .faq .section-head { margin-bottom: 0; }
}

@media (max-width: 767.98px) {
  :root { --header-h: 64px; }
  .brand img { width: 128px; }
  .section-head { margin-bottom: var(--s-7); }
  .hero-actions .btn { flex: 1 1 100%; }
  .platforms { flex-direction: column; gap: var(--s-3); }
  .platforms-list { gap: var(--s-2) var(--s-5); font-size: var(--text-body); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    column-gap: var(--s-4);
    padding-bottom: var(--s-6);
  }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 20px; top: 42px; bottom: 0;
    width: 2px;
    background: var(--line);
  }
  .service { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .service h3 { font-size: 1.3125rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { justify-content: flex-start; margin-left: calc(var(--s-3) * -1); }
  .panel-body { gap: 10px; }
}

@media (max-width: 479.98px) {
  .stage { aspect-ratio: 1 / 1.18; }
  .layer { width: 74%; }
  .layer-front { width: 70%; top: 50%; }
  .layer-mid { left: 12%; top: 26%; }
  .panel-bar { padding: 10px 12px 8px; }
  .panel-body { padding: 10px 12px 12px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .layer {
    transform: rotateX(8deg) rotateY(-18deg) skewY(-9deg);
    transition: opacity var(--motion-150) ease;
  }
  .js .stage:not(.is-ready) .layer { --tx: 0px; --ty: 0px; }
  .stage.is-ready .layer { transition-delay: 0ms; }
  .js .hero-title .w {
    transform: none;
    filter: none;
    transition: opacity var(--motion-150) ease;
    transition-delay: 0ms;
  }
  .nav, .nav.is-open { transform: none; }
  .menu-icon, .menu-icon::before, .menu-icon::after,
  .faq-list summary::after { transition: none; }
}
