/* Quantumard — site stylesheet
   Base: midnight.  Brand: magenta → violet (from the logo).  Cold ice-blue is reserved
   for instrument readouts inside the hero console and data tables, nowhere else. */

:root {
  --ink: #06060d;
  --ink-2: #0c0c1a;
  --ink-3: #14142a;
  --glass: rgba(255, 255, 255, 0.035);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --rose: #e6245f;
  --rose-soft: rgba(230, 36, 95, 0.18);
  --violet: #8a1d78;
  --ice: #9be3ff;
  --ice-soft: rgba(155, 227, 255, 0.14);
  --text: #eceaf6;
  --text-2: #bdbbd3;
  --muted: #8d8ba8;
  --brand: linear-gradient(135deg, #f0245a 0%, #c91f6c 48%, #8a1d78 100%);

  --display: "Unbounded", "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --max: 1240px;
  --gutter: clamp(20px, 5vw, 72px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(230, 36, 95, 0.4); color: #fff; }

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

/* ----- Typography ----- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: #fff;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); font-weight: 600; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
h4 { font-family: var(--body); font-weight: 600; font-size: 1.05rem; color: #fff; }

p { max-width: 62ch; color: var(--text-2); }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-2); }
.small { font-size: 0.9rem; color: var(--muted); }
.readout { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.02em; color: var(--ice); }

/* ----- Layout ----- */

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(84px, 11vw, 150px); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head p { margin-top: 18px; }
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Page background: fixed star field canvas + a faint lattice that fades with depth */
#space {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  width: 100%; height: 100%;
}
.lattice {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(155, 227, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 227, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 100%);
}
.page { position: relative; z-index: 1; }

/* ----- Glass ----- */

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px -40px rgba(0, 0, 0, 0.8);
}
.glass::after {
  /* top-edge light catch, the thing that makes glass read as glass */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), transparent 40%);
}
.glass--lg { border-radius: var(--r-lg); }

/* cursor-tracked specular highlight; --mx/--my set by JS */
.spec { overflow: hidden; }
.spec::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(230, 36, 95, 0.16), transparent 55%);
  opacity: 0; transition: opacity 0.45s var(--ease-out);
}
.spec:hover::before { opacity: 1; }

/* ----- Buttons ----- */

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; line-height: 1;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  color: #fff; background: var(--brand);
  box-shadow: 0 10px 30px -10px rgba(230, 36, 95, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(230, 36, 95, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn--ghost {
  color: #fff; background: var(--glass-strong); border: 1px solid var(--line-strong);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); }
.btn--sm { padding: 11px 18px; font-size: 0.875rem; }
.btn svg { width: 16px; height: 16px; }

.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #fff;
  border-bottom: 1px solid transparent; transition: border-color 0.3s;
}
.link:hover { border-color: var(--rose); }
.link svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.link:hover svg { transform: translateX(3px); }

/* ----- Header ----- */

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 60;
  transform-origin: 0 50%; transform: scaleX(0); background: var(--brand);
}

.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: 14px; transition: padding 0.4s var(--ease-out);
}
.header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(12, 12, 26, 0.55);
  border: 1px solid transparent;
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.header.is-scrolled { padding-top: 8px; }
.header.is-scrolled .wrap {
  background: rgba(12, 12, 26, 0.78); border-color: var(--line);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand svg { width: 30px; height: 30px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; color: var(--text-2);
  transition: color 0.3s, background 0.3s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.06); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.group-switch { position: relative; }
.group-switch > button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--text-2); transition: color 0.3s, background 0.3s;
}
.group-switch > button:hover, .group-switch.is-open > button { color: #fff; background: rgba(255, 255, 255, 0.06); }
.group-switch > button svg { width: 12px; height: 12px; transition: transform 0.3s var(--ease-out); }
.group-switch.is-open > button svg { transform: rotate(180deg); }
.group-menu {
  position: absolute; top: calc(100% + 12px); right: 0; width: 320px; padding: 8px;
  border-radius: var(--r-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
}
.group-switch.is-open .group-menu { opacity: 1; visibility: visible; transform: none; }
.group-menu a {
  display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 12px; transition: background 0.3s;
}
.group-menu a:hover { background: rgba(255, 255, 255, 0.06); }
.group-menu a + a { margin-top: 2px; }
.group-menu .dot {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: #fff;
}
.group-menu .dot svg { width: 18px; height: 18px; }
.group-menu strong { display: block; font-weight: 600; color: #fff; font-size: 0.92rem; }
.group-menu small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 1px; }
.group-menu .ext { width: 14px; height: 14px; color: var(--muted); }
.group-menu .current { opacity: 0.55; pointer-events: none; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; place-items: center; background: rgba(255, 255, 255, 0.06); }
.menu-toggle span { display: block; width: 18px; height: 1.5px; background: #fff; margin: 2.5px 0; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 45; display: none; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 40px; background: rgba(6, 6, 13, 0.92); backdrop-filter: blur(24px);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: #fff; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-nav .sub { margin-top: 28px; }
.mobile-nav .sub a { font-family: var(--body); font-size: 1rem; color: var(--text-2); border: 0; padding: 8px 0; }

/* ----- Hero ----- */

.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 72px; overflow: clip;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-copy h1 { margin-bottom: 26px; }
.hero-copy h1 .line { display: block; overflow: hidden; }
.hero-copy h1 .line > span { display: block; transform: translateY(110%); animation: rise 1.1s var(--ease-out) forwards; }
.hero-copy h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-copy h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
.hero-copy .lede { max-width: 52ch; opacity: 0; animation: fade 1s 0.5s var(--ease-out) forwards; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; opacity: 0; animation: fade 1s 0.7s var(--ease-out) forwards; }
.hero-note { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 0.88rem; opacity: 0; animation: fade 1s 0.9s var(--ease-out) forwards; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note svg { width: 14px; height: 14px; color: var(--rose); }

@keyframes rise { to { transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }

/* The console: a glass instrument panel that runs a looping campaign readout */
.console-wrap { position: relative; perspective: 1400px; opacity: 0; animation: fade 1.2s 0.4s var(--ease-out) forwards; }
.console {
  transform: rotateY(-6deg) rotateX(2deg); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
  padding: 22px; border-radius: var(--r-lg);
}
.console-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.console-head .readout { display: flex; align-items: center; gap: 10px; }
.console-head .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 0 rgba(155, 227, 255, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(155, 227, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 227, 255, 0); } }
.console-title { font-family: var(--display); font-size: 0.8rem; font-weight: 500; color: #fff; letter-spacing: 0.02em; }

.console-chart { position: relative; height: 180px; border-radius: 14px; overflow: hidden; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.console-chart svg { width: 100%; height: 100%; }
.console-chart .axis { stroke: rgba(255, 255, 255, 0.06); }
.console-chart .area { fill: url(#areaFill); opacity: 0; animation: fade 1.2s 1.6s forwards; }
.console-chart .trace { fill: none; stroke: var(--rose); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s 0.9s var(--ease-io) forwards; filter: drop-shadow(0 0 8px rgba(230, 36, 95, 0.7)); }
.console-chart .trace--ice { stroke: var(--ice); stroke-width: 1.5; opacity: 0.8; animation-delay: 1.3s; filter: drop-shadow(0 0 6px rgba(155, 227, 255, 0.6)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.console-chart .scan {
  position: absolute; top: 0; bottom: 0; width: 1px; left: 0;
  background: linear-gradient(to bottom, transparent, rgba(155, 227, 255, 0.9), transparent);
  animation: scan 6s 1s linear infinite;
}
@keyframes scan { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

.console-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { padding: 14px 14px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.stat .readout { font-size: 0.68rem; color: var(--muted); }
.stat strong { display: block; margin-top: 6px; font-family: var(--display); font-weight: 500; font-size: clamp(1.2rem, 1.6vw, 1.5rem); color: #fff; letter-spacing: -0.02em; }
.stat .delta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-family: var(--mono); font-size: 0.7rem; color: var(--ice); }
.stat .delta svg { width: 10px; height: 10px; }

.console-bars { margin-top: 12px; display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 110px 1fr 44px; gap: 12px; align-items: center; font-size: 0.78rem; color: var(--text-2); }
.bar .track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar .fill { height: 100%; width: 0; border-radius: 3px; background: var(--brand); animation: grow 1.6s var(--ease-out) forwards; }
.bar .fill--ice { background: linear-gradient(90deg, rgba(155, 227, 255, 0.5), var(--ice)); }
.bar .readout { text-align: right; color: var(--text-2); }
@keyframes grow { to { width: var(--w); } }

.console-tag {
  position: absolute; padding: 10px 14px; border-radius: 12px; font-size: 0.8rem; color: #fff;
  display: inline-flex; align-items: center; gap: 10px; animation: hover-float 7s ease-in-out infinite;
}
.console-tag--a { top: -18px; left: -26px; animation-delay: 0.5s; }
.console-tag--b { bottom: -18px; right: -20px; animation-delay: 2.5s; }
.console-tag svg { width: 16px; height: 16px; color: var(--rose); }
@keyframes hover-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-glow {
  position: absolute; z-index: -1; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  right: -20vw; top: -10vw; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(138, 29, 120, 0.42), rgba(230, 36, 95, 0.12) 50%, transparent 72%);
  filter: blur(40px);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 0.75rem;
  opacity: 0; animation: fade 1s 1.6s forwards;
}
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(to bottom, var(--rose), transparent); animation: cue 2.2s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ----- Registration strip ----- */

.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(12, 12, 26, 0.5); }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 24px 24px 24px 0; display: flex; gap: 14px; align-items: flex-start; }
.strip-item + .strip-item { padding-left: 24px; border-left: 1px solid var(--line); }
.strip-item svg { width: 22px; height: 22px; flex: none; color: var(--rose); margin-top: 2px; }
.strip-item strong { display: block; color: #fff; font-weight: 600; font-size: 0.95rem; }
.strip-item span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

/* ----- Services (scroll-stacked panels) ----- */

.services-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.services-intro { position: sticky; top: 120px; }
.services-intro .lede { margin-top: 20px; }
.services-index { margin-top: 36px; display: grid; gap: 4px; }
.services-index button {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 0.95rem;
  border: 1px solid transparent; transition: color 0.3s, background 0.3s, border-color 0.3s;
}
.services-index button i { width: 22px; height: 1px; background: var(--muted); transition: width 0.4s var(--ease-out), background 0.3s; }
.services-index button.is-active { color: #fff; background: var(--glass); border-color: var(--line); }
.services-index button.is-active i { width: 44px; background: var(--rose); }

.stack { display: grid; gap: 24px; }
.panel {
  position: sticky; top: 110px; padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(20, 20, 42, 0.92), rgba(12, 12, 26, 0.96));
  transform-origin: 50% 0; will-change: transform;
}
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.panel-head .readout { padding-top: 6px; }
.panel h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.panel-body { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.panel p { color: var(--text-2); }
.panel ul { margin-top: 20px; display: grid; gap: 10px; }
.panel li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 0.95rem; }
.panel li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; flex: none; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px rgba(230, 36, 95, 0.8); }
.panel .link { margin-top: 24px; }

.panel-art { position: relative; aspect-ratio: 1 / 1; max-width: 360px; justify-self: end; width: 100%; border-radius: 20px; overflow: hidden; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); }
.panel-art svg { width: 100%; height: 100%; }

/* art: orbit (marketing) */
.orbit .ring { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-dasharray: 2 6; }
.orbit .ring--hot { stroke: rgba(230, 36, 95, 0.5); stroke-dasharray: none; }
.orbit .sat { transform-origin: 180px 180px; animation: spin 14s linear infinite; }
.orbit .sat--2 { animation-duration: 22s; animation-direction: reverse; }
.orbit .sat--3 { animation-duration: 9s; }
.orbit .core { fill: url(#coreFill); filter: drop-shadow(0 0 18px rgba(230, 36, 95, 0.8)); }
@keyframes spin { to { transform: rotate(360deg); } }

/* art: feed (social) */
.feed .card { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.1); }
.feed .card--hot { stroke: rgba(230, 36, 95, 0.6); fill: rgba(230, 36, 95, 0.08); }
.feed .heart { fill: var(--rose); transform-origin: center; animation: beat 1.8s var(--ease-io) infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.25); } 40% { transform: scale(1); } }
.feed .tick { stroke: var(--ice); stroke-width: 1.5; fill: none; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.2s 0.4s forwards; }
.feed .counter { font-family: var(--mono); font-size: 11px; fill: var(--ice); }
.feed g.slide { animation: slide 6s var(--ease-io) infinite; }
@keyframes slide { 0%, 30% { transform: translateY(0); } 50%, 80% { transform: translateY(-78px); } 100% { transform: translateY(0); } }

/* art: blueprint (web) */
.blue .frame { fill: none; stroke: rgba(155, 227, 255, 0.35); stroke-width: 1; }
.blue .block { fill: rgba(155, 227, 255, 0.08); stroke: rgba(155, 227, 255, 0.35); stroke-width: 1; }
.blue .block--hot { fill: rgba(230, 36, 95, 0.15); stroke: rgba(230, 36, 95, 0.7); }
.blue .cursor { fill: #fff; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.blue .measure { stroke: rgba(155, 227, 255, 0.6); stroke-width: 1; stroke-dasharray: 3 3; }
.blue .lbl { font-family: var(--mono); font-size: 9px; fill: var(--ice); }
.blue .build { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 5s var(--ease-io) infinite alternate; }

/* art: schema (erp/crm) */
.schema .node { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.14); }
.schema .node--hot { stroke: rgba(230, 36, 95, 0.7); fill: rgba(230, 36, 95, 0.1); }
.schema .edge { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; fill: none; }
.schema .packet { fill: var(--ice); filter: drop-shadow(0 0 6px var(--ice)); }
.schema .lbl { font-family: var(--mono); font-size: 9px; fill: var(--text-2); }
.schema .row { fill: rgba(255, 255, 255, 0.08); }

/* ----- Approach (drawn timeline) ----- */

.approach { background: linear-gradient(to bottom, transparent, rgba(12, 12, 26, 0.7) 20%, rgba(12, 12, 26, 0.7) 80%, transparent); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.timeline .track { position: absolute; left: 0; top: 23px; height: 1px; width: 100%; background: var(--brand); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(230, 36, 95, 0.7); }
.step { position: relative; padding-top: 56px; }
.step .num {
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 0.8rem; color: var(--muted); background: var(--ink); border: 1px solid var(--line);
  transition: color 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step.is-lit .num { color: #fff; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(230, 36, 95, 0.15), 0 0 24px rgba(230, 36, 95, 0.5); }
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { font-size: 0.95rem; }
.step .dur { display: block; margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); }

/* ----- Proof (case + testimonials) ----- */

.case { display: grid; grid-template-columns: 1.1fr 0.9fr; border-radius: var(--r-lg); overflow: hidden; }
.case-copy { padding: clamp(28px, 4vw, 56px); }
.case-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); margin-top: 14px; }
.case-copy p { margin-top: 18px; }
.case-copy .link { margin-top: 28px; }
.case-data { padding: clamp(28px, 4vw, 56px); border-left: 1px solid var(--line); background: rgba(0, 0, 0, 0.22); display: grid; align-content: center; gap: 4px; }
.case-data .row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.case-data .row:last-child { border-bottom: 0; }
.case-data .row span { color: var(--text-2); font-size: 0.95rem; }
.case-data .row strong { font-family: var(--display); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 2.1rem); color: #fff; letter-spacing: -0.02em; }

.quotes { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { padding: 28px; border-radius: var(--r-md); display: flex; flex-direction: column; }
.quote blockquote { font-size: 1rem; color: var(--text); line-height: 1.6; flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-family: var(--display); font-size: 2.4rem; line-height: 0.6; color: var(--rose); margin-bottom: 14px; }
.quote footer { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote footer strong { display: block; color: #fff; font-weight: 600; font-size: 0.92rem; }
.quote footer span { color: var(--muted); font-size: 0.82rem; }

/* ----- Group: portals to the other two businesses ----- */

.portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
.portal {
  position: relative; display: flex; flex-direction: column; min-height: 400px; padding: 30px; border-radius: var(--r-lg);
  transition: transform 0.5s var(--ease-out), border-color 0.4s;
  transform-style: preserve-3d;
}
.portal:hover { border-color: var(--line-strong); }
.portal--here { background: linear-gradient(180deg, rgba(230, 36, 95, 0.14), rgba(138, 29, 120, 0.08)), var(--glass); }
.portal-top { display: flex; justify-content: space-between; align-items: center; }
.portal .domain { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.portal .here-badge { font-family: var(--mono); font-size: 0.7rem; color: var(--ice); padding: 4px 10px; border: 1px solid var(--ice-soft); border-radius: 999px; }
.portal .ext { width: 18px; height: 18px; color: var(--muted); transition: transform 0.4s var(--ease-out), color 0.3s; }
.portal:hover .ext { transform: translate(3px, -3px); color: #fff; }
.portal-art { flex: 1; display: grid; place-items: center; padding: 20px 0; }
.portal-art svg { width: 150px; height: 150px; transform: translateZ(40px); }
.portal h3 { font-size: 1.35rem; }
.portal p { margin-top: 10px; font-size: 0.95rem; }
.portal .btn { margin-top: 22px; align-self: flex-start; }

.orb .halo { fill: none; stroke: rgba(155, 227, 255, 0.35); stroke-dasharray: 3 5; transform-origin: center; animation: spin 30s linear infinite; }
.orb .globe { fill: none; stroke: rgba(155, 227, 255, 0.45); }
.orb .route { fill: none; stroke: var(--rose); stroke-width: 1.5; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 3s 0.5s var(--ease-io) infinite alternate; }
.hex .cell { fill: rgba(255, 255, 255, 0.04); stroke: rgba(255, 255, 255, 0.14); }
.hex .cell--hot { fill: rgba(230, 36, 95, 0.18); stroke: var(--rose); }
.hex .cell--ice { stroke: rgba(155, 227, 255, 0.6); }
.hex g { transform-origin: center; animation: hex-breathe 4s var(--ease-io) infinite; }
@keyframes hex-breathe { 50% { transform: scale(1.04); } }
.qmark .ring { fill: none; stroke: url(#qGrad); stroke-width: 20; }
.qmark .tail { fill: url(#qGrad); }

/* ----- Founder ----- */

.founder { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); }
.founder-photo { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) contrast(1.05); }
.founder-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 6, 13, 0.6), transparent 60%); }
.founder h3 { font-size: 1.3rem; }
.founder .role { display: block; margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.founder p { margin-top: 18px; }
.founder .links { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ----- CTA band ----- */

.cta { position: relative; overflow: clip; }
.cta-box { position: relative; padding: clamp(40px, 6vw, 88px); border-radius: var(--r-lg); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; overflow: hidden; }
.cta-box h2 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); }
.cta-box p { margin-top: 18px; }
.cta-box .hero-actions { animation: none; opacity: 1; margin-top: 30px; }
.cta-box .aurora { position: absolute; inset: -40%; z-index: -1; background:
  radial-gradient(ellipse 40% 50% at 70% 40%, rgba(230, 36, 95, 0.35), transparent 70%),
  radial-gradient(ellipse 40% 50% at 30% 70%, rgba(138, 29, 120, 0.35), transparent 70%),
  radial-gradient(ellipse 30% 30% at 80% 80%, rgba(155, 227, 255, 0.12), transparent 70%);
  filter: blur(40px); animation: aurora 18s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate(6%, -6%) rotate(6deg); } }
.contact-card { padding: 26px; border-radius: var(--r-md); display: grid; gap: 14px; }
.contact-card a { display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: center; color: var(--text-2); transition: color 0.3s; }
.contact-card a:hover { color: #fff; }
.contact-card svg { width: 18px; height: 18px; color: var(--rose); }
.contact-card small { display: block; color: var(--muted); font-size: 0.8rem; }

/* ----- Footer ----- */

.footer { border-top: 1px solid var(--line); background: rgba(6, 6, 13, 0.85); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer p { margin-top: 16px; font-size: 0.92rem; max-width: 36ch; }
.footer h4 { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; color: var(--text-2); font-size: 0.95rem; transition: color 0.3s; }
.footer-col a:hover { color: #fff; }
.footer-col a svg { width: 12px; height: 12px; vertical-align: -1px; margin-left: 6px; color: var(--muted); }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--glass); border: 1px solid var(--line); color: var(--text-2); transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out); }
.socials a:hover { color: #fff; border-color: var(--rose); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }
.legal-ids { display: grid; gap: 8px; }
.legal-ids div { font-size: 0.85rem; color: var(--text-2); }
.legal-ids div span { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); }
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: #fff; }

/* ----- Inner pages ----- */

.page-hero { padding-top: 160px; padding-bottom: clamp(48px, 7vw, 96px); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 4rem); }
.page-hero .lede { margin-top: 22px; max-width: 58ch; }
.crumb { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 22px; font-size: 0.85rem; color: var(--muted); }
.crumb a { color: var(--text-2); }
.crumb i { width: 18px; height: 1px; background: var(--line-strong); }

.detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px); border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 0; }
.detail .sticky { position: sticky; top: 120px; align-self: start; }
.detail .sticky .readout { display: block; margin-bottom: 14px; }
.detail .sticky p { margin-top: 18px; }
.detail-list { display: grid; gap: 14px; }
.detail-item { padding: 22px 24px; border-radius: var(--r-md); display: grid; grid-template-columns: 1fr; gap: 6px; }
.detail-item h4 { font-size: 1rem; }
.detail-item p { font-size: 0.93rem; max-width: none; }
.stack-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.stack-pills span { padding: 7px 12px; border-radius: 999px; font-size: 0.8rem; color: var(--text-2); border: 1px solid var(--line); background: var(--glass); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { padding: 30px; border-radius: var(--r-lg); display: flex; flex-direction: column; }
.plan--featured { border-color: rgba(230, 36, 95, 0.5); background: linear-gradient(180deg, rgba(230, 36, 95, 0.12), rgba(12, 12, 26, 0.3)); }
.plan h3 { font-size: 1.1rem; }
.plan .price { margin-top: 18px; display: flex; align-items: baseline; gap: 8px; }
.plan .price strong { font-family: var(--display); font-weight: 500; font-size: 2.2rem; color: #fff; letter-spacing: -0.02em; }
.plan .price span { color: var(--muted); font-size: 0.9rem; }
.plan .renew { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.plan .for { margin-top: 18px; font-size: 0.95rem; }
.plan ul { margin: 22px 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 0.92rem; color: var(--text-2); }
.plan li svg { width: 16px; height: 16px; flex: none; color: var(--ice); margin-top: 3px; }
.plan .btn { justify-content: center; }

.fineprint { margin-top: 24px; font-size: 0.85rem; color: var(--muted); max-width: 70ch; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact-side { display: grid; gap: 16px; position: sticky; top: 120px; }
.contact-side .glass { padding: 24px; }
.contact-side h4 { margin-bottom: 8px; }
.contact-side a { color: var(--text); display: block; }
.contact-side a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.form { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; color: #fff;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--line); transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238d8ba8' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--ink-2); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose); box-shadow: 0 0 0 4px rgba(230, 36, 95, 0.15); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 0.88rem; color: var(--text-2); cursor: pointer; transition: background 0.3s, border-color 0.3s, color 0.3s; }
.chips input:checked + span { color: #fff; border-color: var(--rose); background: var(--rose-soft); }
.chips input:focus-visible + span { outline: 2px solid var(--ice); outline-offset: 2px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 8px; }
.form-status { display: none; grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; font-size: 0.92rem; border: 1px solid var(--line); }
.form-status.is-ok { display: block; border-color: rgba(155, 227, 255, 0.4); background: var(--ice-soft); color: #fff; }
.form-status.is-err { display: block; border-color: rgba(230, 36, 95, 0.5); background: var(--rose-soft); color: #fff; }

/* Compliance page */
.records { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.record { padding: 26px; border-radius: var(--r-md); }
.record h4 { font-size: 1rem; }
.record dl { margin-top: 18px; display: grid; gap: 12px; }
.record dt { font-size: 0.78rem; color: var(--muted); }
.record dd { font-family: var(--mono); font-size: 0.9rem; color: #fff; margin-top: 2px; word-break: break-word; }
.certs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert { border-radius: var(--r-md); overflow: hidden; }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; filter: brightness(0.9); transition: filter 0.4s, transform 0.6s var(--ease-out); }
.cert:hover img { filter: brightness(1); }
.cert figcaption { padding: 16px 20px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--text-2); }
.cert figcaption strong { display: block; color: #fff; font-weight: 600; }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.channel { padding: 26px; border-radius: var(--r-md); }
.channel a { display: block; color: var(--text); padding: 4px 0; }
.channel a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.notice { padding: 22px 26px; border-radius: var(--r-md); border-left: 3px solid var(--rose); }
.notice p { max-width: none; font-size: 0.95rem; }
.commitments { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.commit { padding: 24px; border-radius: var(--r-md); }
.commit h4 { font-size: 1rem; }
.commit p { margin-top: 8px; font-size: 0.93rem; max-width: none; }

/* Prose (privacy) */
.prose { max-width: 76ch; }
.prose h2 { font-size: 1.5rem; margin-top: 56px; margin-bottom: 14px; }
.prose h3 { font-size: 1.1rem; margin-top: 30px; margin-bottom: 10px; }
.prose p, .prose li { color: var(--text-2); margin-top: 12px; max-width: none; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.toc { padding: 24px 28px; border-radius: var(--r-md); margin-bottom: 20px; }
.toc ol { padding-left: 20px; display: grid; gap: 6px; columns: 2; }
.toc a { color: var(--text-2); font-size: 0.92rem; }
.toc a:hover { color: #fff; }

/* ----- Reveal (used once per section head, not on every card) ----- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ----- Responsive ----- */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console-wrap { max-width: 640px; }
  .console { transform: none; }
  .services-layout { grid-template-columns: 1fr; }
  .services-intro { position: static; }
  .services-index { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portals { grid-template-columns: 1fr; }
  .portal { min-height: 0; }
  .portal-art { padding: 10px 0; }
  .portal-art svg { width: 110px; height: 110px; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before, .timeline .track { display: none; }
  .records, .certs, .channels, .plans, .quotes { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail .sticky { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
}

@media (max-width: 860px) {
  .nav, .group-switch, .header-actions .btn { display: none; }
  .menu-toggle { display: grid; }
  .strip .wrap { grid-template-columns: 1fr 1fr; }
  .strip-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .strip-item { border-top: 1px solid var(--line); }
  .strip-item:nth-child(-n + 2) { border-top: 0; }
  .case { grid-template-columns: 1fr; }
  .case-data { border-left: 0; border-top: 1px solid var(--line); }
  .cta-box { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 220px; }
  .panel-body { grid-template-columns: 1fr; }
  .panel-art { justify-self: start; max-width: 320px; }
  .form-grid { grid-template-columns: 1fr; }
  .commitments { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

@media (max-width: 600px) {
  .hero { padding-top: 104px; }
  .console-tag { display: none; }
  .console-stats { grid-template-columns: 1fr 1fr; }
  .bar { grid-template-columns: 90px 1fr 40px; }
  .strip .wrap { grid-template-columns: 1fr; }
  .strip-item, .strip-item + .strip-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .strip-item:first-child { border-top: 0; }
  .timeline, .records, .certs, .channels, .plans, .quotes, .footer-grid { grid-template-columns: 1fr; }
  .panel { position: static; }
  .stack { gap: 16px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ----- Motion preferences ----- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .hero-copy h1 .line > span { transform: none; }
  .hero-copy .lede, .hero-actions, .hero-note, .console-wrap, .scroll-cue { opacity: 1; }
  .console-chart .trace { stroke-dashoffset: 0; }
  .console-chart .area { opacity: 1; }
  .bar .fill { width: var(--w); }
  .reveal { opacity: 1; transform: none; }
  .timeline .track { transform: scaleX(1); }
}
