/* =========================================================
   Infinityscape — v5
   Editorial-minimal design system with richer, more confident
   colour use: purple accent, purple-tinted alternate sections,
   a deep-ink contrast band, and a filled purple CTA — plus a
   tighter spacing scale so sections read as one composition,
   not a stack of near-identical blocks.
   No external requests: fonts, images and icons are all
   native/inline for performance.
   ========================================================= */

:root {
  --purple: #623598;
  --purple-2: #7a49ad;
  --button-bg: #8358b4;
  --button-bg-hover: #7647a8;
  --purple-bright: #9d6fd1;
  --purple-tint: #f1e7fa;
  --ink: #18151d;
  --muted: #514b5a;
  --paper: #faf8f6;
  --paper-2: #f4ecfa;
  --paper-2-section: rgba(244, 236, 250, 0.34);
  --surface: #ffffff;
  --ink-deep: #1a1424;
  --on-dark: #f4f1f9;
  --on-dark-muted: #b6acc7;
  --line: rgba(24, 21, 29, 0.13);
  --line-strong: rgba(24, 21, 29, 0.24);
  --radius: 4px;
  --radius-md: 6px;
  --max: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
  --neb-1: rgba(98, 53, 152, 0.42);
  --neb-2: rgba(28, 122, 138, 0.36);
  --neb-3: rgba(190, 82, 122, 0.3);
  --neb-4: rgba(205, 150, 60, 0.26);
  --neb-blend: multiply;
  --neb-stop: 90%;
  --stat-bg: rgba(255, 255, 255, 0.36);
  --stat-sheen: rgba(255, 255, 255, 0.58);
  --stat-glow: rgba(255, 255, 255, 0.2);
  --stat-border: rgba(255, 255, 255, 0.62);
  --stat-divider: rgba(98, 53, 152, 0.16);
  --stat-label: #6f687a;
  --stat-shadow: 0 18px 44px rgba(62, 43, 86, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(255, 255, 255, 0.18);
  --cta-bg: rgba(248, 242, 255, 0.88);
  --cta-border: rgba(98, 53, 152, 0.42);
  --cta-text: var(--ink);
  --cta-muted: var(--muted);
  --cta-pattern: rgba(98, 53, 152, 0.22);
  --cta-shadow: 0 16px 38px rgba(62, 43, 86, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --card-bg: transparent;
  --card-sheen: transparent;
  --card-glow: transparent;
  --card-accent-glow: transparent;
  --card-border: rgba(98, 53, 152, 0.78);
  --card-border-width: 2px;
  --card-text: #2f1748;
  --card-muted: #4f3d63;
  --card-link: #623598;
  --card-backdrop: none;
  --card-shadow: 0 12px 28px rgba(42, 31, 58, 0.18);
  --card-hover-shadow: 0 24px 58px rgba(42, 31, 58, 0.3), 0 0 32px rgba(157, 111, 209, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --purple: #b190e0;
    --purple-2: #9670c9;
    --button-bg: #623598;
    --button-bg-hover: #7a49ad;
    --purple-bright: #cdb3f2;
    --purple-tint: rgba(177, 144, 224, 0.16);
    --ink: #f1eef6;
    --muted: #c8bfd4;
    --paper: #131019;
    --paper-2: rgba(177, 144, 224, 0.07);
    --paper-2-section: rgba(177, 144, 224, 0.07);
    --surface: #1c1824;
    --ink-deep: #09070d;
    --on-dark: #f4f1f9;
    --on-dark-muted: #b6acc7;
    --line: rgba(255, 255, 255, 0.11);
    --line-strong: rgba(255, 255, 255, 0.2);
    color-scheme: dark;
    --neb-1: rgba(177, 144, 224, 0.45);
    --neb-2: rgba(78, 199, 206, 0.32);
    --neb-3: rgba(224, 128, 164, 0.32);
    --neb-4: rgba(230, 182, 104, 0.28);
    --neb-blend: screen;
    --stat-bg: rgba(16, 13, 24, 0.3);
    --stat-sheen: rgba(255, 255, 255, 0.12);
    --stat-glow: rgba(177, 144, 224, 0.09);
    --stat-border: rgba(255, 255, 255, 0.12);
    --stat-divider: rgba(255, 255, 255, 0.12);
    --stat-label: var(--on-dark-muted);
    --stat-shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
    --cta-bg: rgba(67, 42, 99, 0.62);
    --cta-border: rgba(255, 255, 255, 0.14);
    --cta-text: #fff;
    --cta-muted: rgba(255,255,255,0.82);
    --cta-pattern: rgba(255,255,255,0.5);
    --cta-shadow: 0 18px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --card-bg: rgba(28, 24, 36, 0.58);
    --card-sheen: rgba(255, 255, 255, 0.08);
    --card-glow: rgba(177, 144, 224, 0.12);
    --card-accent-glow: transparent;
    --card-border: rgba(205, 179, 242, 0.55);
    --card-border-width: 1px;
    --card-text: var(--ink);
    --card-muted: var(--muted);
    --card-link: var(--purple-bright);
    --card-backdrop: blur(18px) saturate(1.18);
    --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    --card-hover-shadow: 0 24px 58px rgba(0, 0, 0, 0.34), 0 0 36px rgba(177, 144, 224, 0.16);
  }
}
html[data-theme="dark"] {
  --purple: #b190e0;
  --purple-2: #9670c9;
  --button-bg: #623598;
  --button-bg-hover: #7a49ad;
  --purple-bright: #cdb3f2;
  --purple-tint: rgba(177, 144, 224, 0.16);
  --ink: #f1eef6;
  --muted: #c8bfd4;
  --paper: #131019;
  --paper-2: rgba(177, 144, 224, 0.07);
  --paper-2-section: rgba(177, 144, 224, 0.07);
  --surface: #1c1824;
  --ink-deep: #09070d;
  --on-dark: #f4f1f9;
  --on-dark-muted: #b6acc7;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.2);
  color-scheme: dark;
  --neb-1: rgba(177, 144, 224, 0.45);
  --neb-2: rgba(78, 199, 206, 0.32);
  --neb-3: rgba(224, 128, 164, 0.32);
  --neb-4: rgba(230, 182, 104, 0.28);
  --neb-blend: screen;
  --stat-bg: rgba(16, 13, 24, 0.3);
  --stat-sheen: rgba(255, 255, 255, 0.12);
  --stat-glow: rgba(177, 144, 224, 0.09);
  --stat-border: rgba(255, 255, 255, 0.12);
  --stat-divider: rgba(255, 255, 255, 0.12);
  --stat-label: var(--on-dark-muted);
  --stat-shadow: 0 18px 48px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.06);
  --cta-bg: rgba(67, 42, 99, 0.62);
  --cta-border: rgba(255, 255, 255, 0.14);
  --cta-text: #fff;
  --cta-muted: rgba(255,255,255,0.82);
  --cta-pattern: rgba(255,255,255,0.5);
  --cta-shadow: 0 18px 46px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  --card-bg: rgba(28, 24, 36, 0.58);
  --card-sheen: rgba(255, 255, 255, 0.08);
  --card-glow: rgba(177, 144, 224, 0.12);
  --card-accent-glow: transparent;
  --card-border: rgba(205, 179, 242, 0.55);
  --card-border-width: 1px;
  --card-text: var(--ink);
  --card-muted: var(--muted);
  --card-link: var(--purple-bright);
  --card-backdrop: blur(18px) saturate(1.18);
  --card-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  --card-hover-shadow: 0 24px 58px rgba(0, 0, 0, 0.34), 0 0 36px rgba(177, 144, 224, 0.16);
}
html[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--paper);
  min-width: 100%;
}
html[data-font-scale="small"] { font-size: 15px; }
html[data-font-scale="medium"] { font-size: 16px; }
html[data-font-scale="large"] { font-size: 18px; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
  min-width: 100%;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s ease, color 0.2s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 160px;
}

/* ---- Nebula: subtle, slow-moving colour field behind all content ----
   Fixed to the viewport, sits below <main> but above the page background,
   so it only shows through sections that don't set their own background.
   Colour swaps with theme via CSS variables only — the transforms driving
   position are untouched by a theme change, so the animation never resets. */
.nebula { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.nebula span {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: var(--neb-blend);
  will-change: transform;
}
.nebula span:nth-child(1) {
  width: 55vmax; height: 55vmax; left: -15%; top: -12%;
  background: radial-gradient(circle, var(--neb-1), transparent var(--neb-stop));
  animation: neb-a 5s ease-in-out infinite alternate;
}
.nebula span:nth-child(2) {
  width: 50vmax; height: 50vmax; right: -14%; top: 6%;
  background: radial-gradient(circle, var(--neb-2), transparent var(--neb-stop));
  animation: neb-b 6s ease-in-out infinite alternate;
}
.nebula span:nth-child(3) {
  width: 46vmax; height: 46vmax; left: 18%; bottom: -18%;
  background: radial-gradient(circle, var(--neb-3), transparent var(--neb-stop));
  animation: neb-c 7s ease-in-out infinite alternate;
}
.nebula span:nth-child(4) {
  width: 40vmax; height: 40vmax; right: 8%; bottom: -20%;
  background: radial-gradient(circle, var(--neb-4), transparent var(--neb-stop));
  animation: neb-d 4s ease-in-out infinite alternate;
}
@keyframes neb-a { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(7vw, 9vh) scale(1.12); } }
@keyframes neb-b { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-9vw, 7vh) scale(0.9); } }
@keyframes neb-c { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(6vw, -7vh) scale(1.08); } }
@keyframes neb-d { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-5vw, -6vh) scale(0.95); } }
@media (prefers-reduced-motion: reduce) {
  .nebula span { animation: none; }
}
@media (max-width: 720px) {
  .nebula { --neb-stop: 70%; }
  .nebula span { filter: blur(46px); }
}

img, svg { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-2); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
  position: relative;
  z-index: 1;
}
main { position: relative; z-index: 1; }

section { padding: 68px 0; }
section.tight { padding: 40px 0; }
.bordered-top { border-top: 1px solid var(--line); }
.on-paper2 {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%),
    var(--paper-2-section);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44), inset 0 -1px 0 rgba(24, 21, 29, 0.05);
  backdrop-filter: blur(24px) saturate(1.28);
  -webkit-backdrop-filter: blur(24px) saturate(1.28);
}

h1, h2, h3, h4 { margin: 0 0 14px; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h3 { font-size: 1.05rem; font-weight: 500; }
p { margin: 0 0 14px; color: var(--muted); }

.lead { font-size: 1.08rem; color: var(--muted); }
body.inner-page p,
body.inner-page .lead {
  font-size: 0.94rem;
}
body.inner-page .hero .lead { font-size: 1.02rem; }
.text-center { text-align: center; }
.narrow { max-width: 680px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.section-head { margin-bottom: 32px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--purple); display: inline-block; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--purple);
  cursor: pointer;
  background: none;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-solid { background: var(--button-bg); color: #fff; border-color: var(--button-bg); }
.btn-solid:hover { background: var(--button-bg-hover); color: #fff; border-color: var(--button-bg-hover); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
.btn-sm { padding: 9px 16px; font-size: 0.82rem; }
.btn-on-dark { border-color: rgba(255,255,255,0.35); color: var(--on-dark); }
.btn-on-dark:hover { border-color: #fff; color: #fff; }

/* ---- Header ---- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.logo {
  font-size: 1.38rem;
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}
.logo .infinity { color: var(--purple); }
.logo .scape { color: var(--muted); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.active { color: var(--ink); border-bottom-color: var(--purple); }

.theme-toggle,
.font-size-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px;
  gap: 1px;
}
.font-size-toggle { display: none; }
.theme-toggle button,
.font-size-toggle button {
  width: 28px; height: 28px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  border-radius: 3px;
  box-shadow: none;
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  margin: 0;
  padding: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.theme-toggle button svg { width: 14px; height: 14px; }
.font-size-toggle button { font-weight: 400; line-height: 1; letter-spacing: 0; }
.font-size-toggle button + button { border-left: 1px solid var(--line); }
.font-size-toggle button[data-font-size="small"] { font-size: 9px; }
.font-size-toggle button[data-font-size="medium"] { font-size: 12px; }
.font-size-toggle button[data-font-size="large"] { font-size: 16px; }
.theme-toggle button.active,
.font-size-toggle button.active { background: var(--button-bg); color: #fff; }

.nav-toggle {
  display: none;
  width: 32px; height: 32px;
  border: none; background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 999px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }

.mobile-nav {
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--paper);
  z-index: 99;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
}
.mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-nav ul { list-style: none; margin: 0; padding: 32px 28px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
  color: var(--ink);
  font-weight: 400;
}
.mobile-nav a.active { color: var(--purple); }

/* ---- Hero (with subtle static dot-grid texture, fades in from one side) ---- */
.hero { position: relative; overflow: hidden; padding: 112px 0 56px; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--purple) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.12;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 78% 35%, black, transparent 72%);
  mask-image: radial-gradient(ellipse 55% 60% at 78% 35%, black, transparent 72%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; }
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 46ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-art { display: flex; align-items: center; justify-content: center; position: relative; }
.hero-art svg { width: 100%; max-width: 340px; }
.hero-art.photo-frame { width: 100%; }
.photo-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3.1; box-shadow: 0 1px 2px rgba(24,21,29,0.06); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Stat band: translucent glass, lets the moving colour field breathe ---- */
.stat-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, var(--stat-sheen), transparent 34%),
    linear-gradient(180deg, var(--stat-glow), transparent 58%),
    var(--stat-bg);
  border-block: 1px solid var(--stat-border);
  box-shadow: var(--stat-shadow);
  backdrop-filter: blur(34px) saturate(1.7);
  -webkit-backdrop-filter: blur(34px) saturate(1.7);
}
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-strip .stat { padding: 26px 26px; border-left: 1px solid var(--stat-divider); text-align: left; }
.stat-strip .stat:first-child { border-left: none; }
.stat .num { font-size: 1.7rem; font-weight: 500; color: var(--purple-bright); display: block; margin-bottom: 4px; }
.stat .lbl { font-size: 0.82rem; color: var(--stat-label); }

/* ---- Editorial list (services) ---- */
.edit-list { border-top: 1px solid var(--line); }
.edit-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.edit-row .idx { font-size: 0.82rem; color: var(--purple); font-weight: 500; }
.edit-row h3 { margin-bottom: 4px; }
.edit-row p { margin-bottom: 0; max-width: 56ch; }
.edit-row .arrow {
  width: 32px; height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color .15s ease;
  flex: none;
}
.edit-row .arrow svg { width: 14px; height: 14px; }
a.edit-row:hover .arrow { background: var(--purple); color: #fff; border-color: var(--purple); transform: translateX(3px); }
.edit-row.static .arrow { display: none; }

/* ---- Split section ---- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 52px; align-items: center; }
.split.reverse .split-art { order: 2; }
.split-art { display: flex; align-items: center; justify-content: center; }
.split-art svg { width: 100%; max-width: 300px; }
.infinityscape-timeline-graphic {
  display: block;
  width: min(100%, 360px);
  max-width: 360px;
  height: auto;
  margin-inline: auto;
}
.split-art .infinityscape-timeline-graphic { max-width: 360px; }
.infinityscape-timeline-dark { display: none; }
html[data-theme="dark"] .infinityscape-timeline-light { display: none; }
html[data-theme="dark"] .infinityscape-timeline-dark { display: block; }
html[data-theme="light"] .infinityscape-timeline-light { display: block; }
html[data-theme="light"] .infinityscape-timeline-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .infinityscape-timeline-light { display: none; }
  :root:not([data-theme]) .infinityscape-timeline-dark { display: block; }
}
.infinityscape-team-graphic {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin-inline: auto;
}
.team-graphic-dark { display: none; }
html[data-theme="dark"] .team-graphic-light { display: none; }
html[data-theme="dark"] .team-graphic-dark { display: block; }
html[data-theme="light"] .team-graphic-light { display: block; }
html[data-theme="light"] .team-graphic-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .team-graphic-light { display: none; }
  :root:not([data-theme]) .team-graphic-dark { display: block; }
}
.hosting-care-simple {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin-inline: auto;
}

/* ---- Pull quote ---- */
.pull-quote {
  border-left: 2px solid var(--purple);
  padding-left: 22px;
  margin: 28px 0;
}
.pull-quote p { font-size: 1.12rem; color: var(--ink); font-style: italic; margin-bottom: 6px; }
.pull-quote cite { font-size: 0.85rem; color: var(--muted); font-style: normal; }

/* ---- Timeline (paired with a split-art illustration so it isn't a lone narrow column) ---- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px; top: 4px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--purple);
}
.timeline-item .year { font-size: 0.8rem; color: var(--purple); font-weight: 500; margin-bottom: 3px; }
.timeline-item h3 { margin-bottom: 4px; }
.timeline-item p { margin-bottom: 0; }

/* ---- Values / feature grid ---- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value-cell { background: var(--surface); padding: 24px 22px; transition: background .15s ease; }
.value-cell:hover { background: var(--purple-tint); }
.value-cell h3 { margin-bottom: 6px; }
.value-cell p { margin-bottom: 0; font-size: 0.94rem; }
.value-cell .mark { width: 24px; height: 24px; margin-bottom: 14px; color: var(--purple); }

/* ---- Checklist ---- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 24px; }
.checklist li { display: flex; align-items: baseline; gap: 10px; font-size: 0.95rem; color: var(--ink); }
.checklist svg { width: 13px; height: 13px; color: var(--purple); flex: none; transform: translateY(2px); }

.plain-list { margin: 0; padding-left: 18px; color: var(--muted); }
.plain-list li { margin-bottom: 8px; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-card { background: var(--surface); padding: 26px 24px; min-height: 210px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin-bottom: 16px; }
.service-card a { font-size: 0.88rem; font-weight: 500; }
.service-card:hover { background: var(--purple-tint); }

.note-panel {
  border-left: 2px solid var(--purple);
  padding: 18px 0 18px 22px;
  max-width: 760px;
}

.field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.94rem; color: var(--ink); background: var(--surface);
}
.field select:focus { outline: none; border-color: var(--purple); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-num { font-size: 0.85rem; color: var(--purple); border-top: 1px solid var(--line-strong); padding-top: 12px; margin-bottom: 8px; display: block; }

/* ---- Comparison table ---- */
.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--paper-2); }
.compare th { font-weight: 500; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare td:first-child, .compare th:first-child { color: var(--ink); }
.compare tbody tr:hover { background: var(--paper-2); }
.compare .yes { color: var(--purple); }
.compare .no { color: var(--muted); }

/* ---- Portfolio editorial list ---- */
.project-list { border-top: 1px solid var(--line); }
.project-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.project-row .project-meta { display: flex; align-items: baseline; gap: 18px; min-width: 0; }
.project-row .name { font-size: 1.1rem; color: var(--ink); }
.project-row .tag { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.project-row .go { color: var(--muted); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; justify-self: end; }
.project-row:hover .name { color: var(--purple); }
.project-row:hover .go { color: var(--purple); }

/* ---- Testimonial slider ---- */
.testimonial-section {
  margin: 0 clamp(12px, 1.8vw, 24px);
  padding: 38px 0 44px;
  border-radius: 8px;
  overflow: hidden;
}
.testimonial-section .container {
  max-width: min(var(--max), calc(100vw - 24px));
}
.testimonial-slider {
  position: relative;
  --slide-offset: calc((100% - var(--slide-card-width)) / 2);
  --slide-card-width: 52%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 8px 0 0;
}
.wall {
  display: flex;
  gap: 24px;
  overflow: hidden;
  padding: 8px 52px;
  margin: -8px -52px 0;
  border-radius: var(--radius-md);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.18) 5%, black 17%, black 83%, rgba(0, 0, 0, 0.18) 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.18) 5%, black 17%, black 83%, rgba(0, 0, 0, 0.18) 95%, transparent 100%);
}
.wall .t-card {
  flex: 0 0 var(--slide-card-width);
  min-height: 248px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: var(--card-border-width) solid var(--card-border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, var(--card-sheen), transparent 42%),
    radial-gradient(circle at top right, var(--card-glow), transparent 54%),
    radial-gradient(circle at bottom left, var(--card-accent-glow), transparent 60%),
    var(--card-bg);
  box-shadow: none;
  backdrop-filter: var(--card-backdrop);
  -webkit-backdrop-filter: var(--card-backdrop);
  opacity: 0.7;
  transform: translateX(var(--slide-offset)) scale(0.96);
  visibility: visible;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, transform 0.32s ease;
}
.wall .t-card.active {
  opacity: 1;
  box-shadow: none;
  transform: translateX(var(--slide-offset)) scale(1);
  visibility: visible;
}
.wall .t-card.prev-card {
  opacity: 0.58;
  transform: translateX(var(--slide-offset)) scale(0.96);
  visibility: visible;
}
.wall .t-card.next-card {
  opacity: 0.58;
  transform: translateX(var(--slide-offset)) scale(0.96);
  visibility: visible;
}
.wall .t-card.active:hover {
  border-color: var(--card-border);
  box-shadow: none;
  transform: translateX(var(--slide-offset)) translateY(-3px) scale(1);
}
@media (hover: none), (pointer: coarse) {
  .wall .t-card.active:hover,
  .wall .t-card.active:active,
  .wall .t-card.active:focus {
    transform: translateX(var(--slide-offset)) scale(1);
  }
}
.wall .t-card p { color: var(--card-text); margin-bottom: 14px; }
.wall .t-card .who { font-size: 0.85rem; color: var(--card-muted); }
.wall .t-card .who strong { color: var(--card-text); font-weight: 500; }
.wall .t-card a { color: var(--card-link); }
.wall .t-card a:hover { color: var(--purple-2); }
.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--card-text);
  background:
    linear-gradient(145deg, var(--card-sheen), transparent 48%),
    var(--card-bg);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-arrow:hover {
  box-shadow: var(--card-hover-shadow);
  transform: translateY(calc(-50% - 2px));
}
.slider-arrow svg { width: 19px; height: 19px; }
.slider-status {
  grid-column: 1;
  justify-self: center;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.slider-pill {
  width: 22px;
  height: 7px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: transparent;
  opacity: 0.55;
  cursor: pointer;
  padding: 0;
  transition: background 0.18s ease, opacity 0.18s ease, width 0.18s ease;
}
.slider-pill.active {
  width: 34px;
  background: var(--card-border);
  opacity: 1;
}

/* ---- FAQ ---- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  background: none; border: none; text-align: left; cursor: pointer;
  padding: 18px 0; font-family: var(--font); font-size: 0.98rem; line-height: 1.65; color: var(--ink); font-weight: 400;
}
.faq-q .sign { position: relative; width: 14px; height: 14px; flex: none; color: var(--purple); }
.faq-q .sign::before, .faq-q .sign::after { content: ""; position: absolute; background: var(--purple); transition: transform 0.2s ease, opacity .2s ease; }
.faq-q .sign::before { width: 100%; height: 1px; top: 50%; left: 0; }
.faq-q .sign::after { width: 1px; height: 100%; left: 50%; top: 0; }
.faq-item.open .faq-q .sign::after { opacity: 0; transform: rotate(90deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding-bottom: 18px; margin: 0; max-width: 62ch; }
.faq-item.open .faq-a { max-height: 300px; }

/* ---- CTA band ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--cta-bg);
  color: var(--cta-text);
  border: 1px solid var(--cta-border);
  border-radius: var(--radius-md);
  box-shadow: var(--cta-shadow);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--cta-pattern) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.08;
  -webkit-mask-image: linear-gradient(120deg, transparent 40%, black 100%);
  mask-image: linear-gradient(120deg, transparent 40%, black 100%);
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 4px; color: var(--cta-text); }
.cta-band p { margin-bottom: 0; color: var(--cta-muted); }
.cta-band .btn-solid { background: var(--button-bg); color: #fff; border-color: var(--button-bg); }
.cta-band .btn-solid:hover { background: var(--button-bg-hover); color: #fff; border-color: var(--button-bg-hover); }

/* ---- Forms ---- */
.form-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.83rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-family: var(--font); font-size: 0.94rem; color: var(--ink); background: var(--surface);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--purple); }
.field textarea { resize: none; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 78%, transparent); }
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field textarea,
html[data-theme="dark"] .field select {
  color: #f4f1f9;
}
html[data-theme="dark"] .field input::placeholder,
html[data-theme="dark"] .field textarea::placeholder {
  color: #a99fb6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .field input,
  :root:not([data-theme]) .field textarea,
  :root:not([data-theme]) .field select {
    color: #f4f1f9;
  }
  :root:not([data-theme]) .field input::placeholder,
  :root:not([data-theme]) .field textarea::placeholder {
    color: #a99fb6;
  }
}
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
.form-success { display: none; border: 1px solid var(--purple); color: var(--purple); border-radius: var(--radius); padding: 12px 16px; font-size: 0.87rem; margin-top: 14px; }
.form-success.show { display: block; }
.form-error { display: none; border: 1px solid #b34848; color: #b34848; border-radius: var(--radius); padding: 12px 16px; font-size: 0.87rem; margin-top: 14px; }
.form-error.show { display: block; }
.form-card.submitted .form-intro { display: none; }
.contact-form.submitted .form-fields { display: none; }
.contact-form.submitted .form-success { display: block; margin-top: 0; }
.cf-turnstile iframe { border-color: var(--line) !important; }
.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: none; }
.info-list strong { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.info-list span { color: var(--ink); font-size: 0.96rem; }

/* ---- Tech strip ---- */
.tech-strip { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.tech-strip span {
  font-size: 0.82rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 7px 12px;
}

/* ---- Footer ---- */
footer.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-grid h3 { font-size: 0.78rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 14px; }
.footer-grid p { font-size: 0.9rem; }
.footer-logo { font-size: 1.05rem; margin-bottom: 12px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-links li { color: var(--muted); font-size: 0.9rem; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 18px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.78rem; color: var(--muted);
}

/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split .split-art { order: -1; margin-bottom: 4px; }
  .mobile-hidden-graphic { display: none; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(n+3) { border-top: 1px solid var(--stat-divider); }
  .stat-strip .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .testimonial-slider { --slide-card-width: 68%; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .slider-arrow { width: 40px; height: 40px; }
}

@media (max-width: 720px) {
  .nav-row.container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav-row > div:last-child { gap: 8px !important; }
  .logo { font-size: 1.15rem; }
  .font-size-toggle { display: flex; }
  .theme-toggle button,
  .font-size-toggle button {
    width: 24px;
    height: 26px;
  }
  .main-nav .links { display: none; }
  .main-nav { gap: 12px; }
  .nav-toggle { display: flex; }
  .hero { padding: 96px 0 48px; }
  section { padding: 48px 0; }
  section.tight { padding: 32px 0; }
  .edit-row { grid-template-columns: 32px 1fr; }
  .edit-row .arrow { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .project-row { grid-template-columns: 1fr; row-gap: 6px; }
  .project-row .project-meta { display: grid; gap: 4px; }
  .project-row .go { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px 24px; }
  .form-card { padding: 22px; }
  .testimonial-slider { --slide-card-width: 100%; grid-template-columns: minmax(0, 1fr); gap: 10px; width: 100%; margin-left: 0; }
  .testimonial-slider .wall {
    grid-column: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    touch-action: pan-y;
    cursor: grab;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .testimonial-slider .wall.dragging { cursor: grabbing; }
  .slider-arrow { display: none; }
  .slider-status { grid-column: 1; }
  .wall .t-card {
    min-height: 260px;
    padding: 22px 24px;
  }
  .wall .t-card.active,
  .wall .t-card:hover {
    transform: translateX(var(--slide-offset)) scale(1);
  }
  .wall .t-card.prev-card,
  .wall .t-card.next-card {
    opacity: 1;
  }
}

@media (orientation: landscape) and (max-width: 980px) and (pointer: coarse) {
  .nav-row.container {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav-row > div:last-child { gap: 8px !important; }
  .logo { font-size: 1.15rem; }
  .font-size-toggle { display: flex; }
  .theme-toggle button,
  .font-size-toggle button {
    width: 24px;
    height: 26px;
  }
  .main-nav .links { display: none; }
  .main-nav { gap: 12px; }
  .nav-toggle { display: flex; }
  .mobile-nav ul {
    padding-left: max(84px, calc(env(safe-area-inset-left) + 28px));
    padding-right: max(84px, calc(env(safe-area-inset-right) + 28px));
  }
}
