/* ==========================================================================
   Nova — static agency site
   1. Tokens (light + dark)   2. Base   3. Layout   4. Header & menu   5. Buttons
   6. Hero   7. Sections & cards   8. Forms   9. Footer   10. Motion
   11. Theme toggle, hub diagram and other additions
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* fixed colours that never change with the theme */
  --ink: #0a0c10;
  --cream: #f3efe7;

  /* light theme (default) */
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #11151b;
  --muted: #4e5663;
  --placeholder: #646b76;
  --line: rgba(13, 18, 28, 0.1);
  --line-strong: rgba(13, 18, 28, 0.26);
  --hover: rgba(13, 18, 28, 0.06);
  --hover-soft: rgba(13, 18, 28, 0.03);
  --glass: rgba(246, 245, 241, 0.8);
  --dot: rgba(13, 18, 28, 0.13);
  --btn-bg: #11151b;
  --btn-fg: #ffffff;
  --btn-bg-hover: #000000;
  --on-accent: #ffffff;
  --danger: #c62828;
  --shadow-md: 0 1px 2px rgba(16, 24, 40, 0.05), 0 12px 28px -16px rgba(16, 24, 40, 0.22);
  --shadow-lg: 0 2px 6px rgba(16, 24, 40, 0.06), 0 28px 60px -24px rgba(16, 24, 40, 0.3);

  /* the contrast panel: dark on the light theme, cream on the dark theme */
  --panel-bg: #ffffff;
  --panel-fg: #11151b;
  --panel-muted: #59616e;
  --panel-line: rgba(13, 18, 28, 0.12);
  --panel-accent: #c4411a;
  --panel-strong: #bf3f19;
  --panel-strong-fg: #ffffff;

  /* brand + one colour per service (darker on light for readable text) */
  --nova: #bf3f19;
  --web: #2f5fd6;
  --cloud: #09786a;
  --app: #996000;
  --marketing: #c72c5d;
  --care: #5b49d6;
  --comm: #387b00;
  --accent: var(--nova);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", monospace;

  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 11vw, 144px);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 72px;

  /* motion tokens — every animation below uses these */
  --dur-fast: 150ms;
  --dur: 300ms;
  --dur-slow: 800ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --stagger: 70ms;
  --rise: 28px;
}

[data-theme="dark"] {
  --bg: #0a0c10;
  --surface: #10131a;
  --text: #ece8e0;
  --muted: #9aa1ad;
  --placeholder: #8e96a3;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.28);
  --hover: rgba(255, 255, 255, 0.07);
  --hover-soft: rgba(255, 255, 255, 0.035);
  --glass: rgba(10, 12, 16, 0.72);
  --dot: rgba(255, 255, 255, 0.11);
  --btn-bg: #f3efe7;
  --btn-fg: #0a0c10;
  --btn-bg-hover: #ffffff;
  --on-accent: #0a0c10;
  --danger: #ff8f8f;
  --shadow-md: 0 12px 30px -18px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.8), 0 2px 6px rgba(0, 0, 0, 0.3);

  --panel-bg: #10131a;
  --panel-fg: #ece8e0;
  --panel-muted: #9aa1ad;
  --panel-line: rgba(255, 255, 255, 0.12);
  --panel-accent: #ff8a5c;
  --panel-strong: #ff6a3d;
  --panel-strong-fg: #0a0c10;

  --nova: #ff6a3d;
  --web: #6c9bff;
  --cloud: #2fd6c0;
  --app: #f6bb42;
  --marketing: #ff6f96;
  --care: #9d8fff;
  --comm: #a6e65a;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection { background: var(--nova); color: #fff; }
[data-theme="dark"] ::selection { color: var(--ink); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cream); color: var(--ink);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top var(--dur-fast) ease-out;
}
.skip-link:focus { top: 12px; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.section-head { display: grid; gap: 20px; max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head p { color: var(--muted); font-size: 1.1rem; max-width: 60ch; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 56ch; }
.accent { color: var(--accent); }
.accent .plain { color: var(--text); }

/* per-service accent colours */
[data-accent="web"] { --accent: var(--web); }
[data-accent="cloud"] { --accent: var(--cloud); }
[data-accent="app"] { --accent: var(--app); }
[data-accent="marketing"] { --accent: var(--marketing); }

/* light "paper" panel that breaks up the dark page */
.panel-light {
  background: var(--panel-bg); color: var(--panel-fg);
  border-radius: clamp(24px, 4vw, 44px);
  margin-inline: clamp(8px, 1.5vw, 20px);
}
.panel-light .section-head p { color: var(--panel-muted); }

/* scroll progress */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120;
  background: linear-gradient(90deg, var(--web), var(--cloud), var(--app), var(--marketing));
  transform: scaleX(0); transform-origin: left;
}

/* 4. Header & menu ---------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) ease-out, border-color var(--dur) ease-out,
    backdrop-filter var(--dur) ease-out;
}
.site-header.is-scrolled {
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -0.04em;
}
.brand svg { width: 26px; height: 26px; color: var(--nova); transition: transform var(--dur-slow) var(--ease); }
.brand:hover svg { transform: rotate(90deg) scale(1.1); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav a, .nav .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 0 14px; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
  transition: color var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out;
}
.nav a:hover, .nav .nav-trigger:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { background: var(--hover); }
.nav-trigger svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease); }
.has-menu:hover .nav-trigger svg, .has-menu:focus-within .nav-trigger svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  width: 320px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(0.98);
  transition: opacity var(--dur-fast) ease-out, transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.dropdown::before { content: ""; position: absolute; inset: -12px 0 100% 0; } /* hover bridge */
.has-menu:hover .dropdown, .has-menu:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s;
}
.dropdown a {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--radius-sm); min-height: 56px;
  color: var(--text); font-weight: 600;
}
.dropdown a:hover { background: var(--hover); }
.dropdown small { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; line-height: 1.3; }
.icon-chip {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.icon-chip svg { width: 20px; height: 20px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--hover-soft); cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
  background: var(--bg); overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path 500ms var(--ease), opacity var(--dur) ease-out, visibility 0s linear 500ms;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; clip-path: inset(0); transition-delay: 0s; }
.mobile-menu a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px;
  font-family: var(--font-display); font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity var(--dur) ease-out, transform 500ms var(--ease);
}
.mobile-menu a svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.mobile-menu .sub a { font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; letter-spacing: 0; color: var(--muted); min-height: 48px; }
.mobile-menu .sub a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 12px; flex: none; }
.mobile-menu .sub a span { margin-right: auto; }
.mobile-menu.is-open a { opacity: 1; transform: none; transition-delay: calc(120ms + var(--i, 0) * 45ms); }
.mobile-menu .btn { margin-top: auto; }
body.menu-open { overflow: hidden; }

/* 5. Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out,
    border-color var(--dur-fast) ease-out, box-shadow var(--dur) ease-out, color var(--dur-fast) ease-out;
}
.btn:active { transform: scale(0.96); }
.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent:hover { box-shadow: 0 12px 34px -10px var(--accent); }
.btn--ghost { border-color: var(--line); color: var(--text); background: var(--hover-soft); }
.btn--ghost:hover { border-color: var(--line-strong); background: var(--hover); }
.btn--dark { background: var(--panel-fg); color: var(--panel-bg); }
.btn--dark:hover { box-shadow: 0 12px 30px -12px rgba(10, 12, 16, 0.7); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--accent);
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.text-link:hover svg, a:hover > .text-link svg { transform: translateX(5px); }

/* 6. Hero & orbit ----------------------------------------------------------- */
.hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden;
}
.hero::before { /* dot grid that fades out */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 10%, transparent 75%);
}
.hero::after { /* warm glow from the accent colour */
  content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -20vw; top: -25vw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
  filter: blur(20px); animation: breathe 9s ease-in-out infinite;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.hero--page .hero-grid { grid-template-columns: 1.2fr 0.8fr; align-items: end; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 0.92rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 2px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-current] { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; }

/* headline word-by-word rise */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.split .w > span { display: inline-block; }
.js .split .w > span {
  transform: translateY(115%);
  animation: rise var(--dur-slow) var(--ease) forwards;
  animation-delay: calc(120ms + var(--i) * 55ms);
}

.orbit { position: relative; width: min(460px, 100% - 90px); aspect-ratio: 1; margin-inline: auto; }
.ring {
  position: absolute; inset: var(--inset, 0); border-radius: 50%;
  border: 1px dashed var(--line);
  animation: spin var(--t, 40s) linear infinite; animation-delay: var(--d, 0s);
}
.ring:nth-child(2) { border-style: solid; border-color: var(--hover); }

/* "at a glance" card in service hero */
.glance {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 22px;
  background: var(--surface); box-shadow: var(--shadow-md);
}
.glance li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.glance li:last-child { border-bottom: 0; }
.glance span { color: var(--muted); white-space: nowrap; }
.glance b { text-align: right; font-weight: 600; }

/* 7. Sections & cards -------------------------------------------------------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease-out, box-shadow var(--dur) ease-out;
}
.card::before { /* pointer-following spotlight, set from JS via --mx/--my */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%);
  transition: opacity var(--dur) ease-out;
}
.card p { color: var(--muted); font-size: 0.97rem; }
.card .num { font-size: 0.82rem; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 24px 50px -28px var(--accent); }
  .card:hover::before { opacity: 1; }
}

/* the four big service cards */
.service-card { min-height: 100%; padding: clamp(24px, 3vw, 40px); gap: 20px; }
.service-card .top { display: flex; align-items: center; gap: 14px; }
.service-card .top h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
.service-card .icon-chip { width: 52px; height: 52px; border-radius: 16px; }
.service-card .icon-chip svg { width: 26px; height: 26px; }
.service-card h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .chip {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 0.82rem; color: var(--text); background: var(--hover-soft);
}
.service-card .text-link { margin-top: auto; }
.service-card .stretch::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */

/* process steps with a line that draws itself */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: var(--panel-line); }
.steps::after { background: var(--panel-fg); transform: scaleX(0); transform-origin: left; transition: transform 1600ms var(--ease) 200ms; }
.steps.in::after { transform: scaleX(1); }

.steps li { position: relative; display: grid; gap: 12px; align-content: start; counter-increment: step; padding-top: 64px; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--panel-strong); color: var(--panel-strong-fg); font-weight: 600; font-size: 0.85rem; font-variant-numeric: tabular-nums;
}

.steps p { color: var(--panel-muted); font-size: 0.97rem; }

/* stats */

/* two-column split */
.split-2 { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.checks { display: grid; gap: 0; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--panel-line); }
.checks li:first-child { border-top: 1px solid var(--panel-line); }
.checks svg { width: 24px; height: 24px; margin-top: 3px; color: var(--panel-accent); }
.checks h3 { margin-bottom: 6px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); transition: border-color var(--dur) ease-out; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px;
  padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--accent); font-size: 1.2rem; line-height: 1;
  transition: transform var(--dur) var(--ease), background-color var(--dur-fast) ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.faq .answer { padding: 0 20px 20px; color: var(--muted); max-width: 70ch; }
.faq details[open] .answer { animation: fade-up var(--dur) var(--ease); }

/* CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(40px, 7vw, 88px); border-radius: clamp(24px, 4vw, 44px);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 28px; justify-items: start;
}
.cta::before {
  content: ""; position: absolute; z-index: -1; right: -15%; bottom: -70%; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%);
  animation: breathe 8s ease-in-out infinite;
}
.cta h2 { max-width: 16ch; }
.cta p { color: var(--muted); max-width: 52ch; font-size: 1.1rem; }

/* 8. Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--hover-soft); border: 1px solid var(--line);
  transition: border-color var(--dur-fast) ease-out, background-color var(--dur-fast) ease-out, box-shadow var(--dur-fast) ease-out;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--surface); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--hover);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field .error { color: var(--danger); font-size: 0.85rem; min-height: 1.2em; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }

.contact-list { display: grid; gap: 12px; }
.contact-list a, .contact-list div {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  transition: border-color var(--dur-fast) ease-out, transform var(--dur) var(--ease);
}
.contact-list a:hover { border-color: color-mix(in srgb, var(--accent) 50%, transparent); transform: translateX(4px); }
.contact-list small { display: block; color: var(--muted); font-size: 0.8rem; }
.contact-list b { font-weight: 600; overflow-wrap: anywhere; }

/* 9. Footer ----------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 88px); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.footer-grid .fh { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.footer-grid li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); transition: color var(--dur-fast) ease-out; }
.footer-grid li a:hover { color: var(--nova); }
.footer-grid p { color: var(--muted); max-width: 34ch; margin-top: 16px; }
.wordmark {
  margin-top: clamp(32px, 6vw, 72px); font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.2rem, 17.5vw, 15rem); line-height: 0.8; letter-spacing: -0.06em; text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  background: linear-gradient(180deg, var(--line), transparent 80%); -webkit-background-clip: text; background-clip: text;
  user-select: none; pointer-events: none;
}
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; color: var(--muted); font-size: 0.88rem; border-top: 1px solid var(--line); }

/* 10. Motion ---------------------------------------------------------------- */
/* Scroll reveal: elements start hidden only when JS is running (class on <html>). */
.js [data-reveal] {
  opacity: 0; transform: translateY(var(--rise)); filter: blur(6px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), filter var(--dur-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * var(--stagger));
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-rev { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes pulse { from { transform: scale(1); opacity: 0.7; } to { transform: scale(2.3); opacity: 0; } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.14) rotate(45deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.12); opacity: 1; } }

/* smooth cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: block; }
  .hero-grid, .hero--page .hero-grid, .split-2 { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .orbit { width: min(380px, 100% - 72px); margin-top: 32px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before, .steps::after { left: 21px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.in::after { transform: scaleY(1); }
  .steps li { padding: 0 0 36px 68px; min-height: 60px; }
  .steps li h3 { padding-top: 9px; }
  
  
  
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .btn-row .btn { flex: 1 1 100%; }
  
  .glance li { font-size: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-property: color, background-color, border-color, box-shadow, opacity, fill, stroke !important;
    transition-duration: 150ms !important; transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .js .split .w > span { transform: none; animation: none; }
  
  .ring { animation: none; }
  @view-transition { navigation: none; }
}

/* 11. Additions ------------------------------------------------------------- */
[data-accent="nova"] { --accent: var(--nova); }
[data-accent="care"] { --accent: var(--care); }

.card { box-shadow: var(--shadow-md); }
.panel-light .section-head p { color: var(--panel-muted); }
.theming, .theming *, .theming *::before, .theming *::after {
  transition: background-color 300ms ease-out, color 300ms ease-out, border-color 300ms ease-out, box-shadow 300ms ease-out !important;
}

/* theme toggle */
.theme-toggle {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out;
}
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; transition: opacity var(--dur-fast) ease-out, transform var(--dur) var(--ease); }
[data-theme="light"] .theme-toggle .moon,
[data-theme="dark"] .theme-toggle .sun { opacity: 0; transform: scale(0.3) rotate(-90deg); }

/* centred hero with service pills */
.hero--center .hero-copy { justify-items: center; text-align: center; max-width: 920px; margin-inline: auto; }
.hero--center h1 { font-size: clamp(2.3rem, 5.8vw, 4.25rem); }
.hero--center .btn-row { justify-content: center; }
.hero--center::after { right: 50%; translate: 50% 0; top: -30vw; }
.hero--center::before {
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 10%, transparent 75%);
}
.hero-pills {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 6px;
  border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.hero-pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px;
  font-size: 0.85rem; font-weight: 600;
}
.hero-pills i {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.hero-pills svg { width: 15px; height: 15px; }

/* hub diagram: every service connects to one core */

@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* outcome cards, benefit strip, value cards */
.card-head { display: flex; align-items: center; gap: 14px; }
.card-head h3 { color: var(--accent); font-size: clamp(1.3rem, 2vw, 1.6rem); }
.card-head .num { margin-left: auto; white-space: nowrap; }

.benefits {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line);
}
.benefits li { display: flex; align-items: center; gap: 12px; }
.benefits .icon-chip { flex: none; border-radius: 50%; }
.benefits b { display: block; line-height: 1.25; }
.benefits small { color: var(--muted); font-size: 0.85rem; }
.ticks { display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; }
.ticks svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

/* CTA is always a dark panel, with project-focus chips */
.cta {
  --text: #ece8e0; --muted: #a0a7b3; --line: rgba(255, 255, 255, 0.13); --line-strong: rgba(255, 255, 255, 0.32);
  --hover: rgba(255, 255, 255, 0.09); --hover-soft: rgba(255, 255, 255, 0.045);
  background: #0d1117; color: var(--text); border-color: rgba(255, 255, 255, 0.08);
  justify-items: center; text-align: center;
}
.cta h2 { max-width: 20ch; }
.cta .accent,
.cta .focus-label { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.cta .btn-row { justify-content: center; }
.focus-label { font-size: 0.92rem; font-weight: 600; margin-bottom: -8px; }
.focus { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.focus button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--hover-soft); color: var(--text); font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.focus button:hover { border-color: var(--line-strong); }
.focus button:active { transform: scale(0.96); }
.focus button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 60%, #fff); border-color: transparent; color: #0a0c10; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; color: var(--muted); font-size: 0.88rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 60%, #fff); }

/* technologies page */
.tech-group { gap: 20px; }
.tech-group .chip { font-size: 0.9rem; padding: 8px 14px; background: var(--hover-soft); }

@media (max-width: 900px) {
  .header-actions .theme-toggle { display: grid; }
  
  
  
  
  
  .benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  
  .benefits { grid-template-columns: 1fr; }
  .hero-pills li { font-size: 0.8rem; padding-right: 10px; }
}

/* 13. AI service colour + tidy odd-numbered grids ---------------------------- */
[data-accent="ai"] { --accent: var(--care); }
.grid--2 > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* 14. Logo image in header and footer */
.brand img { height: 44px; width: auto; }
.site-footer .brand img { height: 52px; }
@media (max-width: 640px) { .brand img { height: 38px; } }

/* 15. SEO keyword line above service headlines */

/* 13b. Messaging service colour */
[data-accent="comm"] { --accent: var(--comm); }

/* 16. Build · Host · Grow journey -------------------------------------------
   A dark stage (same in both themes). Three tabs auto-play every 7 seconds;
   each one shows a small animated scene. Hover, the pause button or a click
   stops the tour. Scenes are sized in em so they scale with the panel. */
@property --cur { syntax: "<color>"; inherits: true; initial-value: #6c9bff; }

.journey {
  --text: #ece8e0; --muted: #a0a7b3; --line: rgba(255, 255, 255, 0.12);
  --c1: #6c9bff; --c2: #2fd6c0; --c3: #ff6f96;
  --cur: var(--c1); --tour: 7s;
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(40px, 6vw, 72px); padding: clamp(22px, 4vw, 52px);
  border-radius: clamp(24px, 4vw, 44px); border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080b11; color: var(--text); box-shadow: var(--shadow-lg);
  transition: --cur 700ms ease-out;
}
.journey[data-stage="1"] { --cur: var(--c2); }
.journey[data-stage="2"] { --cur: var(--c3); }
.j-glow { /* colour wash that follows the active stage */
  position: absolute; z-index: -2; width: 62%; aspect-ratio: 1; left: -8%; top: -30%; border-radius: 50%;
  background: var(--cur); opacity: 0.32; filter: blur(90px);
  transition: transform 1100ms var(--ease);
}
.journey[data-stage="1"] .j-glow { transform: translate(52%, 26%); }
.journey[data-stage="2"] .j-glow { transform: translate(104%, 0); }

.j-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 28px; margin-bottom: clamp(20px, 3.5vw, 40px); }
.j-head h2 { display: flex; flex-wrap: wrap; gap: 0 0.3em; font-size: clamp(2.2rem, 5.6vw, 4.2rem); letter-spacing: -0.045em; line-height: 1; }
.jw { color: rgba(236, 232, 224, 0.55); transition: color 500ms ease-out; }
.jw.on { color: var(--cur); }
.jsep { color: rgba(255, 255, 255, 0.22); }
.j-side { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.j-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--text);
  transition: background-color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.j-toggle:hover { background: rgba(255, 255, 255, 0.12); }
.j-toggle:active { transform: scale(0.92); }
.j-toggle svg { width: 16px; height: 16px; }
.j-toggle .ic-play, .j-toggle[aria-pressed="true"] .ic-pause { display: none; }
.j-toggle[aria-pressed="true"] .ic-play { display: block; }

.j-body { display: grid; grid-template-columns: minmax(250px, 0.72fr) 1.6fr; gap: clamp(16px, 3vw, 36px); align-items: start; }

/* tabs */
.j-tabs { display: grid; gap: 12px; }
.j-tab {
  --c: var(--c1);
  position: relative; display: grid; gap: 4px; padding: 18px 20px 22px; overflow: hidden; text-align: left;
  border-radius: 20px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer;
  transition: background-color var(--dur) ease-out, border-color var(--dur) ease-out, box-shadow var(--dur) ease-out, transform var(--dur) var(--ease);
}
.j-tab:nth-child(2) { --c: var(--c2); }
.j-tab:nth-child(3) { --c: var(--c3); }
.j-tab b { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.04em; line-height: 1.1; }
.j-tab small { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
.j-tab:hover { border-color: rgba(255, 255, 255, 0.28); }
.j-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--c) 13%, rgba(8, 11, 17, 0.7)); border-color: color-mix(in srgb, var(--c) 65%, transparent);
  box-shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.8); transform: translateX(6px);
}
.bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--c); transform-origin: left; transform: scaleX(0); }
.j-tab.is-active .bar { animation: j-fill var(--tour) linear forwards; animation-play-state: paused; }
.journey.is-playing .j-tab.is-active .bar { animation-play-state: running; }
.journey.is-playing:hover .j-tab.is-active .bar, .journey.is-playing:focus-within .j-tab.is-active .bar { animation-play-state: paused; }

/* panels */
.j-panel { display: grid; gap: 16px; }
.j-panel[hidden] { display: none; }
.j-panel.is-active { animation: j-panel-in 600ms var(--ease) both; }
.j-desc { display: none; color: var(--muted); }
.j-desc b { color: var(--text); }
.j-links { display: flex; flex-wrap: wrap; gap: 8px; }
.j-links a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); font-weight: 600; font-size: 0.93rem; color: var(--text);
  transition: background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out, transform var(--dur) var(--ease);
}
.j-links a:hover { background: rgba(255, 255, 255, 0.11); border-color: var(--cur); transform: translateY(-2px); }
.mini { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--cur); background: color-mix(in srgb, var(--cur) 16%, transparent); }
.mini svg { width: 16px; height: 16px; }

/* ---- scenes ---- */
.scene {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden; container-type: inline-size;
  border-radius: 24px;
}
.scene-build { --sc: var(--c1); }
.scene-host { --sc: var(--c2); }
.scene-grow { --sc: var(--c3); }
.si { position: absolute; inset: 0; font-size: max(10px, 2.55cqw); }
.scene b, .scene u, .scene em, .scene s { font-style: normal; text-decoration: none; }

/* build: a page assembling itself, a phone, and a code snippet */
.win { position: absolute; left: 5%; top: 9%; width: 67%; height: 80%; border-radius: 1.1em; background: #0d121b; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 2em 4em -1.5em rgba(0, 0, 0, 0.7); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 0.45em; height: 2.5em; padding: 0 1em; background: rgba(255, 255, 255, 0.05); }
.win-bar i { width: 0.7em; height: 0.7em; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.win-bar i:first-child { background: #ff6f96; } .win-bar i:nth-child(2) { background: #f6bb42; } .win-bar i:nth-child(3) { background: #2fd6c0; }
.win-bar span { margin-left: 0.8em; padding: 0.2em 1em; border-radius: 1em; background: rgba(255, 255, 255, 0.07); font-family: var(--font-mono); font-size: 0.8em; color: var(--muted); }
.win-body { display: grid; gap: 0.8em; padding: 1em; }
.b { background: rgba(255, 255, 255, 0.07); border-radius: 0.7em; }
.b-nav { display: flex; gap: 0.7em; align-items: center; padding: 0.7em 0.9em; }
.b-nav s { height: 0.55em; width: 3.2em; border-radius: 1em; background: rgba(255, 255, 255, 0.28); }
.b-nav s:first-child { background: var(--c1); width: 4.4em; }
.b-hero { display: grid; gap: 0.55em; padding: 1.1em; background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 55%, transparent), rgba(255, 255, 255, 0.05)); }
.b-hero u { height: 0.9em; width: 70%; border-radius: 1em; background: rgba(255, 255, 255, 0.85); }
.b-hero u + u { width: 46%; height: 0.55em; background: rgba(255, 255, 255, 0.45); }
.b-hero em { width: 5em; height: 1.5em; margin-top: 0.3em; border-radius: 2em; background: #fff; }
.b-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8em; }
.b-card { height: 5.2em; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)); }
.b-line { height: 1.3em; width: 62%; }
.cursor { position: absolute; width: 1.7em; height: 1.7em; left: 0; top: 0; filter: drop-shadow(0 0.3em 0.4em rgba(0, 0, 0, 0.5)); opacity: 0; }
.phone { position: absolute; right: 5%; bottom: 6%; width: 22%; height: 55%; display: grid; align-content: start; gap: 0.6em; padding: 1.4em 0.8em 0.8em; border-radius: 1.6em; background: #0b0f17; border: 2px solid rgba(255, 255, 255, 0.22); box-shadow: 0 2em 3.5em -1.2em rgba(0, 0, 0, 0.8); }
.phone::before { content: ""; position: absolute; top: 0.5em; left: 50%; width: 28%; height: 0.35em; margin-left: -14%; border-radius: 1em; background: rgba(255, 255, 255, 0.25); }
.p1 { height: 3.6em; background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 60%, transparent), rgba(255, 255, 255, 0.05)); }
.p2 { height: 2em; } .p3 { height: 2em; width: 70%; }
.code { position: absolute; right: 5%; top: 8%; width: 24%; display: grid; gap: 0.55em; padding: 0.9em; border-radius: 0.9em; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.code b { font-family: var(--font-mono); font-size: 0.85em; color: var(--c1); }
.code span { display: block; height: 0.5em; width: 0; border-radius: 1em; background: var(--cc, var(--c1)); }
.badge { position: absolute; left: 36%; bottom: 3%; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1em 0.55em 0.7em; border-radius: 2em; background: #0b0f17; border: 1px solid color-mix(in srgb, var(--c2) 60%, transparent); color: var(--c2); font-weight: 600; font-size: 0.95em; box-shadow: 0 0.8em 1.6em -0.8em rgba(0, 0, 0, 0.7); }
.badge svg, .tag svg { width: 1.2em; height: 1.2em; }

/* host: a cloud, three servers and little data packets travelling up */
.cloudw { position: absolute; left: 50%; top: 7%; width: 7em; height: 7em; margin-left: -3.5em; display: grid; place-items: center; }
.cloudi { position: relative; z-index: 1; display: grid; place-items: center; width: 4.6em; height: 4.6em; border-radius: 50%; color: #06201c; background: linear-gradient(160deg, #7cf0dd, var(--c2)); box-shadow: 0 1em 2em -1em rgba(0, 0, 0, 0.7); }
.cloudi svg { width: 2.4em; height: 2.4em; }
.ring { position: absolute; inset: 0.6em; border-radius: 50%; border: 1px solid var(--c2); opacity: 0; }
.racks { position: absolute; left: 28%; width: 44%; top: 44%; display: grid; gap: 0.8em; }
.srv { position: relative; display: flex; align-items: center; gap: 0.5em; height: 3.2em; padding: 0 1em; border-radius: 0.8em; background: #0d121b; border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 1em 2em -1em rgba(0, 0, 0, 0.8); }
.srv span { flex: 1; height: 0.45em; margin-left: 0.6em; border-radius: 1em; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 0.5em, transparent 0.5em 0.8em); }
.led { width: 0.7em; height: 0.7em; border-radius: 50%; background: #3dffa2; }
.led.l2 { background: var(--c2); }
.led.l3 { background: #f6bb42; }
.pk { position: absolute; left: var(--x); top: 44%; width: 0.55em; height: 0.55em; margin-left: -0.275em; border-radius: 50%; background: var(--c2); opacity: 0; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1em 0.55em 0.75em; border-radius: 2em; background: #0b0f17; border: 1px solid color-mix(in srgb, var(--c2) 55%, transparent); color: var(--text); font-weight: 600; font-size: 0.95em; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, 0.8); }
.tag svg { color: var(--c2); }
.tag-a { left: 5%; top: 14%; } .tag-b { right: 5%; top: 30%; } .tag-c { left: 6%; bottom: 8%; }
.dot { width: 0.7em; height: 0.7em; border-radius: 50%; background: #3dffa2; }

/* grow: bars rising, a trend line drawing itself, KPI chips and a search */
.chart { position: absolute; left: 5%; top: 9%; width: 62%; height: 68%; padding: 1em 1em 0.8em; border-radius: 1.1em; background: #0d121b; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 2em 4em -1.5em rgba(0, 0, 0, 0.7); }
.bars { position: absolute; inset: 1em 1em 0.8em; display: flex; align-items: end; gap: 0.7em; }
.bars i { flex: 1; height: var(--h); border-radius: 0.4em 0.4em 0 0; background: linear-gradient(180deg, color-mix(in srgb, var(--c3) 90%, #fff), color-mix(in srgb, var(--c3) 25%, transparent)); transform-origin: bottom; transform: scaleY(0); }
.trend { position: absolute; inset: 1em 1em 0.8em; width: calc(100% - 2em); height: calc(100% - 1.8em); overflow: visible; }
.trend path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.dotend { position: absolute; right: calc(1em - 0.4em); top: calc(1em + 6%); width: 0.9em; height: 0.9em; border-radius: 50%; background: #fff; border: 0.3em solid color-mix(in srgb, var(--c3) 55%, transparent); transform: scale(0); }
.gchip { position: absolute; right: 5%; display: flex; align-items: center; gap: 0.55em; width: 24%; padding: 0.65em 0.8em; border-radius: 0.9em; background: #0b0f17; border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 600; font-size: 0.95em; opacity: 0; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, 0.8); }
.gchip svg { flex: none; width: 1.5em; height: 1.5em; padding: 0.25em; border-radius: 50%; color: #052a1a; background: #3dffa2; }
.g1 { top: 10%; } .g2 { top: 32%; } .g3 { top: 54%; }
.gsearch { position: absolute; left: 5%; bottom: 5%; width: 62%; display: flex; align-items: center; gap: 0.7em; padding: 0.7em 1em; border-radius: 2em; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.16); }
.gsearch svg { flex: none; width: 1.3em; height: 1.3em; color: var(--c3); }
.typed { display: block; width: 0; overflow: hidden; white-space: nowrap; border-right: 0.15em solid #fff; font-family: var(--font-mono); font-size: 0.9em; }

/* ---- scene animation: only runs while that panel is the visible one ---- */
.is-active .b { animation: j-build 560ms var(--ease) both; animation-delay: calc(240ms + var(--k) * 150ms); }
.is-active .cursor { animation: j-cursor 5.4s var(--ease) 600ms infinite; }
.is-active .code span { animation: j-type 1100ms var(--ease) forwards; animation-delay: calc(300ms + var(--k) * 240ms); }
.is-active .badge { animation: j-pop 520ms var(--ease) both, j-float 4s ease-in-out 1.8s infinite; animation-delay: calc(240ms + var(--k) * 150ms), 0s; }
.is-active .phone { animation: j-rise 700ms var(--ease) 700ms both; }

.is-active .ring { animation: j-ring 3.2s ease-out infinite; }
.is-active .ring.r2 { animation-delay: 1.6s; }
.is-active .cloudi { animation: j-float 4s ease-in-out infinite; }
.is-active .pk { animation: j-packet 2.6s linear infinite; animation-delay: var(--d); }
.is-active .srv { animation: j-rise 600ms var(--ease) both; }
.is-active .srv:nth-child(2) { animation-delay: 120ms; } .is-active .srv:nth-child(3) { animation-delay: 240ms; }
.is-active .led { animation: j-blink 1.6s steps(2, jump-none) infinite; }
.is-active .led.l2 { animation-delay: -0.5s; } .is-active .led.l3 { animation-delay: -1.1s; }
.is-active .tag { animation: j-pop 520ms var(--ease) both; animation-delay: calc(500ms + var(--k) * 420ms); }
.is-active .dot { animation: j-live 1.8s ease-out infinite; }

.is-active .bars i { animation: j-grow 800ms var(--ease) both; animation-delay: calc(200ms + var(--k) * 90ms); }
.is-active .trend path { animation: j-draw 1700ms var(--ease) 600ms forwards; }
.is-active .dotend { animation: j-pop 500ms var(--ease) 2200ms both; }
.is-active .gchip { animation: j-slide 600ms var(--ease) both; animation-delay: calc(900ms + var(--k) * 260ms); }
.is-active .typed { animation: j-typing 1900ms steps(20) 500ms forwards, j-caret 700ms steps(1) infinite; }

@keyframes j-fill { to { transform: scaleX(1); } }
@keyframes j-panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes j-build { from { opacity: 0; transform: translateY(0.9em) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes j-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes j-rise { from { opacity: 0; transform: translateY(1.6em); } to { opacity: 1; transform: none; } }
@keyframes j-slide { from { opacity: 0; transform: translateX(1.6em); } to { opacity: 1; transform: none; } }
@keyframes j-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.45em); } }
@keyframes j-type { to { width: var(--w); } }
@keyframes j-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes j-draw { to { stroke-dashoffset: 0; } }
@keyframes j-typing { to { width: 21ch; } }
@keyframes j-caret { 50% { border-color: transparent; } }
@keyframes j-ring { from { transform: scale(0.6); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }
@keyframes j-packet { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-10.5em); opacity: 0; } }
@keyframes j-blink { 50% { opacity: 0.25; } }
@keyframes j-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes j-cursor {
  0% { left: 14%; top: 74%; opacity: 0; } 8% { opacity: 1; }
  30% { left: 52%; top: 40%; } 52% { left: 24%; top: 62%; }
  76% { left: 44%; top: 82%; opacity: 1; } 100% { left: 14%; top: 74%; opacity: 0; }
}

@media (max-width: 900px) {
  .j-body { grid-template-columns: 1fr; }
  .j-tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .j-tab { padding: 12px 12px 16px; gap: 2px; border-radius: 16px; }
  .j-tab small { display: none; }
  .j-tab b { font-size: clamp(1.15rem, 4.6vw, 1.6rem); }
  .j-tab[aria-selected="true"] { transform: none; }
  .j-desc { display: block; }
  .j-side p { display: none; }
}
@media (max-width: 560px) {
  .scene { aspect-ratio: 4 / 3.7; border-radius: 18px; }
  .si { font-size: max(9.5px, 2.9cqw); }
  .code { display: none; }
  .win { width: 70%; }
  .gchip { width: 27%; padding: 0.55em 0.6em; gap: 0.4em; }
}
@media (prefers-reduced-motion: reduce) {
  .j-tab.is-active .bar { animation: none; transform: scaleX(1); }
  .is-active .trend path { stroke-dashoffset: 0; }
  .typed { width: 21ch; border-right: 0; }
  .is-active .typed { animation: none; width: 21ch; }
  .cursor { display: none; }
}

/* 18. Logo per theme */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

/* 19. "How we work" panel and the quote box follow the theme (light in light, dark in dark) */
.panel-light { border: 1px solid var(--line); box-shadow: var(--shadow-md); }
[data-theme="light"] .cta {
  --text: #11151b; --muted: #4e5663; --line: rgba(13, 18, 28, 0.12); --line-strong: rgba(13, 18, 28, 0.3);
  --hover: rgba(13, 18, 28, 0.06); --hover-soft: rgba(13, 18, 28, 0.035);
  background: #ffffff; color: var(--text); border-color: var(--line); box-shadow: var(--shadow-lg);
}
[data-theme="light"] .cta .accent,
[data-theme="light"] .cta .focus-label { color: var(--nova); }
[data-theme="light"] .focus button[aria-pressed="true"] { background: var(--accent); color: #ffffff; }
[data-theme="light"] .trust li::before { background: var(--nova); }

/* 20. Footer wordmark: a flat orange tint, decorative only */
.wordmark {
  font-family: var(--font-body); font-weight: 600; letter-spacing: -0.035em; line-height: 0.82; padding-bottom: 0.04em;
  color: color-mix(in srgb, var(--nova) 17%, transparent); background: none; -webkit-text-stroke: 0;
}
.wordmark::before { content: "SEONova"; content: "SEONova" / ""; }

/* 21. Contact form: fields, chips, checkbox, loading, error and success states */
.form-body { display: grid; gap: 18px; }
.form-body[hidden], .form-done[hidden], .form-alert[hidden] { display: none; }
.form-head { display: grid; gap: 6px; }
.form-head h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.035em; }
.form-head p { color: var(--muted); font-size: 0.95rem; }
.req { color: var(--nova); font-weight: 700; }
.opt { color: var(--muted); font-weight: 400; font-size: 0.82rem; margin-left: 4px; }
.form .error { color: var(--danger); font-size: 0.85rem; line-height: 1.4; }
.field .error { min-height: 0; }
.field .error:empty { display: none; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 16%, transparent); }
.field input[aria-invalid="false"]:not(:placeholder-shown):not(:focus), .field textarea[aria-invalid="false"]:not(:focus) { border-color: color-mix(in srgb, var(--cloud) 55%, transparent); }
.form .error:empty { display: none; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.chip-group legend { width: 100%; padding: 0; margin-bottom: 2px; font-size: 0.9rem; font-weight: 600; }
.chip-group label { position: relative; }
.chip-group input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-group label span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--hover-soft); font-size: 0.9rem; font-weight: 500;
  transition: background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out, transform var(--dur-fast) ease-out;
}
.chip-group label:hover span { border-color: var(--line-strong); }
.chip-group label:active span { transform: scale(0.96); }
.chip-group input:checked + span { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.chip-group input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.msg-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.msg-foot .error { flex: 1; }
.counter { margin-left: auto; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.counter.warn { color: var(--danger); }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 0.93rem; color: var(--muted); cursor: pointer; }
.check input {
  appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 22px; height: 22px; margin: 1px 0 0; cursor: pointer;
  border-radius: 7px; border: 1.5px solid var(--line-strong); background: var(--hover-soft);
  transition: background-color var(--dur-fast) ease-out, border-color var(--dur-fast) ease-out;
}
.check input::after { content: ""; width: 10px; height: 6px; margin-top: -2px; border: 2px solid var(--on-accent); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform var(--dur-fast) var(--ease); }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.check input[aria-invalid="true"] { border-color: var(--danger); }

.hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.privacy { color: var(--muted); font-size: 0.82rem; }

.btn[disabled] { cursor: progress; }
.btn .lbl { display: inline-flex; align-items: center; gap: 10px; }
.btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
.btn.is-loading .spin { display: inline-block; }
.btn.is-loading .lbl svg { display: none; }

.form-alert { display: grid; gap: 10px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--danger) 55%, transparent); background: color-mix(in srgb, var(--danger) 9%, transparent); }
.form-alert span { color: var(--muted); font-size: 0.93rem; }

.form-done { display: grid; gap: 14px; justify-items: start; padding: 6px 0; animation: h-rise 700ms var(--ease) backwards; }
.form-done h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.035em; }
.form-done p { color: var(--muted); }
.done-mark {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--cloud);
  background: color-mix(in srgb, var(--cloud) 15%, transparent); border: 1px solid color-mix(in srgb, var(--cloud) 40%, transparent);
  animation: j-pop 520ms var(--ease) backwards;
}
.done-mark path { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw-check 600ms var(--ease) 250ms forwards; }
.next { display: grid; gap: 10px; margin: 4px 0 8px; counter-reset: n; }
.next li { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.next li::before { counter-increment: n; content: counter(n); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hover); color: var(--text); font-weight: 600; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
@keyframes draw-check { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .done-mark path { stroke-dashoffset: 0; animation: none; } }

/* 22. Audit fixes: utilities, small-screen button wrap, placeholder contrast, themed browser surfaces */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-head > * { min-width: 0; }
.section-head h2 a { display: inline-block; padding-block: 6px; }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: 10px; } }
::placeholder { color: var(--placeholder); opacity: 1; }
html { accent-color: var(--accent); scrollbar-color: var(--line-strong) transparent; }
input, textarea, select { caret-color: var(--accent); }
.faq .answer a, .form-done a, .privacy a { text-underline-offset: 0.2em; }

/* 17. Home sections: achieve (rising bars) / services (bento) / process / value (stacking cards) */
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* shared entrance: starts hidden only while JS is on and the block has not scrolled into view */
.js .stairs:not(.in) .stair, .js .svc-grid:not(.in) .svc, .js .steps--rich:not(.in) .s-card { opacity: 0; }
.stairs.in .stair { animation: h-rise 800ms var(--ease) backwards; animation-delay: calc(var(--n) * 130ms); }
.svc-grid.in .svc { animation: h-rise 800ms var(--ease) backwards; animation-delay: calc(var(--n) * 100ms); }
@keyframes h-rise { from { opacity: 0; transform: translateY(56px) scale(0.97); } }

/* --- What you achieve: four tiles that climb like a bar chart --- */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: end; }
.stair {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px;
  min-height: calc(270px + var(--n) * 64px); padding: clamp(22px, 2.4vw, 30px);
  border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--surface) 28%, color-mix(in srgb, var(--accent) 11%, var(--surface)));
  transition: transform var(--dur) var(--ease), border-color var(--dur) ease-out, box-shadow var(--dur) ease-out;
}
.stair::after { /* decorative step number: generated content, hidden from screen readers */
  content: attr(data-n); content: attr(data-n) / ""; position: absolute; right: 12px; bottom: -18px; z-index: -1; pointer-events: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 11vw, 9rem); line-height: 1; letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--accent) 15%, transparent);
}
.orb {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform var(--dur) var(--ease);
}
.orb .ico svg { width: 26px; height: 26px; }
.orbit { position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); animation: spin 14s linear infinite; }
.orbit i { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--accent); }
.stair h3 { color: var(--text); font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.035em; }
.stair p { color: var(--muted); font-size: 0.97rem; }
.stair-foot { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 600; font-size: 0.93rem; color: var(--accent); }
.stair-foot svg { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
@media (hover: hover) {
  .stair:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 30px 60px -32px var(--accent); }
  .stair:hover .orb { transform: scale(1.1) rotate(-6deg); }
  .stair:hover .stair-foot svg { transform: translateX(5px); }
}
.benefits li { transition: transform var(--dur) var(--ease); }
@media (hover: hover) { .benefits li:hover { transform: translateY(-3px); } }

/* --- Our services: bento grid with a spinning light border --- */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.svc {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 14px; grid-column: span 2;
  padding: clamp(24px, 2.8vw, 36px); border-radius: var(--radius); color: var(--text);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) ease-out;
}
.svc:nth-child(1) { grid-column: span 4; }
.svc:nth-child(6) { grid-column: span 6; display: grid; grid-template-columns: 1.1fr 1fr; column-gap: clamp(24px, 5vw, 64px); align-content: start; }
.svc:nth-child(6) .svc-head { grid-column: 1; }
.svc:nth-child(6) p { grid-column: 1; }
.svc:nth-child(6) .tags { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.svc:nth-child(6) .svc-go { grid-column: 1 / -1; }
.svc::before { /* soft light that follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur) ease-out;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%);
}
.svc::after { /* rotating conic border, visible on hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--a), transparent 0 55%, var(--accent) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity var(--dur) ease-out; animation: h-spin 3.6s linear infinite;
}
@keyframes h-spin { to { --a: 360deg; } }
.svc-ghost { position: absolute; right: -36px; top: -36px; z-index: -1; width: 230px; height: 230px; color: var(--accent); opacity: 0.08; animation: spin 40s linear infinite; pointer-events: none; }
.svc-ghost svg { width: 100%; height: 100%; stroke-width: 1; }
.svc-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: var(--on-accent); background: var(--accent);
  box-shadow: 0 16px 30px -14px var(--accent); transition: transform var(--dur) var(--ease);
}
.svc-icon svg { width: 26px; height: 26px; }
.svc-head { display: flex; align-items: center; gap: 16px; }
.svc h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; }
.svc p { color: var(--muted); max-width: 46ch; }
.svc-go { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 600; }
.svc-go b { color: var(--accent); font-weight: 600; }
.svc-go i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hover); transition: transform var(--dur) var(--ease), background-color var(--dur-fast) ease-out, color var(--dur-fast) ease-out; }
.svc-go svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px var(--accent); }
  .svc:hover::before, .svc:hover::after { opacity: 1; }
  .svc:hover .svc-icon { transform: rotate(-8deg) scale(1.08); }
  .svc:hover .svc-go i { background: var(--accent); color: var(--on-accent); transform: rotate(-45deg); }
}
.svc:focus-visible { outline-offset: 4px; }

/* --- How we work: a line that fills while each step lights up in turn --- */
.steps--rich li { padding-top: 70px; }
.steps--rich::after { height: 2px; background: var(--panel-strong); }
.steps--rich li::before { background: var(--panel-bg); color: var(--panel-fg); border: 1.5px solid var(--panel-line); }
.steps--rich.in li::before { animation: h-node 700ms var(--ease) forwards; animation-delay: calc(500ms + var(--n) * 480ms); }
@keyframes h-node {
  0% { transform: scale(0.82); }
  60% { transform: scale(1.16); }
  100% { transform: scale(1); background: var(--panel-strong); color: var(--panel-strong-fg); border-color: transparent; }
}
.s-card { display: grid; gap: 10px; align-content: start; padding: 4px 0 0; }
.s-head { display: flex; align-items: center; gap: 12px; }
.steps--rich.in .s-card { animation: h-rise 700ms var(--ease) backwards; animation-delay: calc(480ms + var(--n) * 480ms); }
.s-ico { display: grid; place-items: center; flex: none; color: var(--panel-strong); transition: transform var(--dur) var(--ease); }
.s-ico svg { width: 26px; height: 26px; }
.steps--rich li h3 { padding-top: 0; }
@media (hover: hover) {
  .s-card:hover .s-ico { transform: rotate(-8deg) scale(1.1); }
}

/* --- How we add value: cards that stack on top of each other as you scroll --- */
.value-split { align-items: start; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.kpis li { display: grid; gap: 4px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.kpis b { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpis li:nth-child(1) b { color: var(--web); } .kpis li:nth-child(2) b { color: var(--cloud); }
.kpis li:nth-child(3) b { color: var(--nova); } .kpis li:nth-child(4) b { color: var(--care); }
.kpis span { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }
.stack { display: grid; }
.vcard {
  position: sticky; top: calc(var(--header-h) + 20px + var(--n) * 22px);
  display: grid; gap: 14px; align-content: start; min-height: 300px; margin-bottom: 22px; padding: clamp(24px, 3vw, 38px);
  border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform-origin: 50% 0; will-change: transform;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 58%);
}
.vcard:last-child { margin-bottom: 0; }
.vcard-head { display: flex; align-items: center; gap: 16px; }
.vcard .icon-chip { width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--on-accent); border-color: transparent; box-shadow: 0 16px 30px -14px var(--accent); }
.vcard .icon-chip svg { width: 26px; height: 26px; }
.vcard h3 { font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -0.03em; }
.vcard p { color: var(--muted); max-width: 46ch; }

@media (max-width: 1024px) {
  .stairs { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
  .stair { min-height: 0; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc, .svc:nth-child(n) { grid-column: span 1; }
  .svc:nth-child(1), .svc:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .steps--rich li { padding: 0 0 28px 68px; }
  .steps--rich li::before { top: 0; }
  .vcard { top: calc(var(--header-h) + 12px + var(--n) * 14px); min-height: 0; }
}
@media (max-width: 700px) {
  .stairs { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc:nth-child(n) { grid-column: 1 / -1; display: flex; }
  .svc:nth-child(6) .tags { align-self: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .stairs.in .stair, .svc-grid.in .svc, .steps--rich.in .s-card { animation: none; }
  .steps--rich li::before { animation: none; background: var(--panel-strong); color: var(--panel-strong-fg); border-color: transparent; }
  .orbit, .svc-ghost, .svc::after { animation: none; }
  .vcard { transform: none !important; filter: none !important; }
}

/* 15. SEO keyword line under service headlines */
.subhead { margin: -12px 0 0; font-weight: 600; font-size: clamp(1.05rem, 1.7vw, 1.3rem); color: var(--accent); }
