/* ==========================================================
   Rigel Digital — design tokens
   ========================================================== */
:root {
  /* Brand: Rigel blue */
  --rigel-600: #2F56E0;
  --rigel-500: #3D6BFF;
  --rigel-400: #6A8DFF;
  --rigel-300: #9DB6FF;
  --rigel-200: #C7D6FF;
  --rigel-100: #E6EDFF;

  /* Night sky (dark surfaces) */
  --ink-950: #05070D;
  --ink-900: #070A13;
  --ink-850: #0C1120;
  --ink-800: #111829;
  --ink-700: #1B2338;
  --line-dark: rgba(190, 205, 255, 0.10);
  --text-on-dark: #F2F5FF;
  --muted-on-dark: #A4AEC8;

  /* Light surfaces */
  --surface: #FFFFFF;
  --surface-2: #F5F7FC;
  --line: #E2E6F0;
  --text: #0B1020;
  --muted: #4A5470;

  --ok: #2BB673;

  /* Type */
  --font-display: "Onest", "Inter", system-ui, sans-serif;
  --font-logo: "Space Grotesk", "Inter", system-ui, sans-serif; /* wordmark only, matches the logo files */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Consolas", monospace;

  /* Spacing / shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(80px, 11vw, 140px);

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  --z-header: 50;
  --z-skip: 100;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }

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

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: var(--z-skip);
  background: var(--rigel-500); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 16px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--xs { width: 14px; height: 14px; }

.text-gradient {
  background: linear-gradient(95deg, var(--rigel-300) 0%, #EEF3FF 45%, var(--rigel-400) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  /* Room for descenders (g, y, p): the gradient only paints inside the box */
  padding-bottom: .16em; margin-bottom: -.16em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Bracket tag (like "[ SERVICES ]") */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--rigel-300);
  margin-bottom: 20px;
}
.tag--light { color: var(--rigel-600); }

.link { color: var(--rigel-600); text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--rigel-500); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur);
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn .icon { transition: transform var(--dur) var(--ease-out); }
.btn:hover .icon { transform: translate(2px, -2px); }
.btn--primary {
  background: var(--rigel-500); color: #fff;
  box-shadow: 0 0 0 1px rgba(157,182,255,.25) inset, 0 10px 30px -10px rgba(61,107,255,.7);
}
.btn--primary:hover { background: var(--rigel-600); }
.btn--ghost { color: var(--text-on-dark); border-color: var(--line-dark); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: rgba(190,205,255,.3); background: rgba(255,255,255,.06); }
.btn--light { background: #fff; color: var(--ink-900); }
.btn--light:hover { background: var(--rigel-100); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; }

/* ==========================================================
   Announcement + header
   ========================================================== */
.announce {
  background: linear-gradient(90deg, #1E2F7A, var(--rigel-500) 50%, #1E2F7A);
  text-align: center;
}
.announce a {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: #fff;
}
.announce a:hover { text-decoration: underline; text-underline-offset: 3px; }
.announce__dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 10px 2px rgba(255,255,255,.8);
}

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(7, 10, 19, .94);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-on-dark);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand__mark { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(110,145,255,.55)); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-logo); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.brand__sub { font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--rigel-300); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 6px; }
.nav__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 14px; color: var(--muted-on-dark);
  transition: color var(--dur-fast);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff;
  transition: transform var(--dur) var(--ease-out);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink-900);
  color: var(--text-on-dark);
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 9vw, 120px);
}
.hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(61,107,255,.22), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, rgba(61,107,255,.10), transparent 70%),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 65% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 90% 70%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 8% 65%, rgba(255,255,255,.3), transparent);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(190,205,255,.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}
.hero__grid {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -.035em;
}
.hero__line { display: block; white-space: nowrap; }
.hero__lead {
  margin-top: 28px; max-width: 56ch; text-wrap: pretty;
  font-size: clamp(16px, 1.4vw, 18px); color: var(--muted-on-dark);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__proof { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 28px; margin-top: 36px; font-size: 14px; color: var(--muted-on-dark); }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof .icon { color: var(--rigel-300); }

.hero__visual { position: relative; }

/* Rigel star: sits directly on the hero background, four points = four pillars */
.rigel {
  position: relative;
  width: 100%; max-width: 540px; aspect-ratio: 1;
  margin-left: auto;
}
.rigel__svg { width: 100%; height: 100%; overflow: visible; }
.rigel__glow { transform-box: fill-box; transform-origin: center; animation: pulse 5s ease-in-out infinite; }
.rigel__orbit { transform-box: fill-box; transform-origin: center; animation: spin 90s linear infinite; }
.rigel__spikes { filter: drop-shadow(0 0 6px rgba(157,182,255,.8)); animation: shimmer 4s ease-in-out infinite; }
.rigel__core { filter: drop-shadow(0 0 22px rgba(157,182,255,.95)); }
.rigel__orion path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.6s var(--ease-out) .3s forwards; }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .75; } }

.pillar {
  position: absolute;
  display: grid; gap: 2px;
  line-height: 1.25;
}
.pillar span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--rigel-300); }
.pillar strong { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -.01em; color: #fff; }
.pillar small { font-size: 13px; color: var(--muted-on-dark); }
.pillar--top { left: calc(50% + 24px); top: 4%; transform: translateY(-35%); }
.pillar--right { right: 0; bottom: calc(50% + 18px); text-align: right; }
.pillar--bottom { left: calc(50% + 24px); bottom: 4%; transform: translateY(35%); }
.pillar--left { left: 0; top: calc(50% + 18px); }

.status { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status--ok { background: var(--ok); box-shadow: 0 0 0 3px rgba(43,182,115,.2); }

.hero__caption {
  margin-top: 28px; max-width: 540px; margin-left: auto; text-align: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--muted-on-dark);
}

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ==========================================================
   Brands: rolling logo bar
   ========================================================== */
.brands {
  background: linear-gradient(180deg, var(--ink-900), #0A1024);
  border-top: 1px solid var(--line-dark);
  padding: 36px 0 44px;
  overflow: hidden;
}
.brands__title {
  margin: 0 0 26px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--rigel-300);
}
.brands__viewport {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.brands__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.brands__viewport:hover .brands__track { animation-play-state: paused; }
.brands__list { display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); padding-right: clamp(48px, 6vw, 88px); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Wordmarks (monochrome, like logos on a client bar) */
.brand-word {
  white-space: nowrap; color: rgba(230,236,255,.62);
  font-size: 24px; line-height: 1;
  transition: color var(--dur);
}
.brand-word:hover { color: #fff; }
.brand-word--lindbergh { font-family: var(--font-body); font-weight: 300; font-size: 21px; letter-spacing: .32em; }
/* Real logos: shown in one light colour so the bar stays calm and consistent */
.brand-logo { display: flex; align-items: center; }
.brand-logo img {
  display: block; width: auto; height: var(--logo-h, 32px);
  filter: brightness(0) invert(1); opacity: .62;
  transition: opacity var(--dur);
}
.brand-logo:hover img { opacity: 1; }
.brand-logo--verisure { --logo-h: 38px; }
.brand-logo--trackday { --logo-h: 52px; }
.brand-logo--dik { --logo-h: 34px; }
.brand-logo--insatech { --logo-h: 34px; }
.brand-logo--toej { --logo-h: 30px; }
.brand-logo--momkind { --logo-h: 27px; }
.brand-logo--lejebolig { --logo-h: 40px; }
.brand-logo--tomorrows { --logo-h: 36px; }

@media (max-width: 640px) {
  .brands { padding: 28px 0 32px; }
  .brands__title { margin-bottom: 20px; }
  .brand-word { font-size: 20px; }
  .brand-logo img { height: calc(var(--logo-h, 32px) * .82); }
  .brands__track { animation-duration: 35s; }
}

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: var(--section-y) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 6vw, 72px); }
.section-head--left { text-align: left; margin: 0; }
.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.03em;
  text-wrap: balance;
}
.section-title--light { color: var(--text-on-dark); }
/* Headlines use no full stops: a small Rigel star separates two phrases on one line */
.h-sep {
  display: inline-block; width: .42em; height: .42em; margin: 0 .22em;
  vertical-align: .12em; color: var(--rigel-500); fill: currentColor;
}
.section-title--light .h-sep { color: var(--rigel-300); }
.h-part { white-space: nowrap; }
/* If the phrases don't fit on one line, the script stacks them and drops the star */
.is-stacked .h-part { display: block; white-space: normal; }
.is-stacked .h-sep { display: none; }
.section-lead { margin-top: 20px; color: var(--muted); font-size: 17px; }

/* Service overview cards */
.service-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-bottom: clamp(72px, 9vw, 120px);
}
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 28px 24px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur) var(--ease-out);
}
.service-card:hover {
  border-color: var(--rigel-300);
  box-shadow: 0 20px 40px -24px rgba(61,107,255,.45);
  transform: translateY(-3px);
}
.service-card__num { font-family: var(--font-mono); font-size: 12px; color: var(--rigel-600); letter-spacing: .1em; }
.service-card h3 { margin-top: 28px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.service-card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.service-card__arrow { position: absolute; top: 24px; right: 22px; color: var(--muted); transition: color var(--dur-fast), transform var(--dur) var(--ease-out); }
.service-card:hover .service-card__arrow { color: var(--rigel-500); transform: translate(2px, -2px); }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 80px;
}
.feature--reverse .feature__copy { order: 2; }
.feature--wide-visual { grid-template-columns: 1fr 1.16fr; column-gap: clamp(24px, 2.4vw, 32px); }
/* Let the player grow into the empty page margin on wide screens, so the text keeps its width */
@media (min-width: 901px) {
  .feature--wide-visual .feature__visual { margin-right: calc(-1 * min(116px, max(0px, (100vw - 1200px) / 2) + 16px)); }
  /* Tracking: picture on the left, 30% larger. Wider column + room in the left margin, then scale the whole map */
  .feature--big-visual-left { grid-template-columns: 1.14fr 1fr; column-gap: clamp(24px, 2.4vw, 32px); }
  .feature--big-visual-left .feature__visual { margin-left: calc(-1 * min(42px, max(0px, (100vw - 1200px) / 2) + 16px)); }
}
@media (min-width: 1280px) { .feature--big-visual-left .datamap-mock { zoom: 1.2; } }
.feature > *, .agents li > div, .datamap > *, .cycle > *, .promises > *, .points > * { min-width: 0; }
.feature__eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--rigel-600);
}
.feature__eyebrow span {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--rigel-200); border-radius: var(--radius-sm); background: var(--rigel-100);
}
.feature__title {
  margin: 20px 0 16px;
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.025em;
  text-wrap: balance;
}
.feature__copy > p { color: var(--muted); max-width: 54ch; }
.feature__copy > p + p { margin-top: 14px; }
.checklist { display: grid; gap: 12px; margin-top: 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.checklist .icon {
  margin-top: 2px; padding: 3px; width: 22px; height: 22px;
  color: var(--rigel-600); background: var(--rigel-100); border-radius: 50%;
}

/* Mock UI panels */
.mock {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: 24px;
  box-shadow: 0 30px 60px -40px rgba(11,16,32,.35);
}
.mock--dark {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  border-color: var(--ink-700);
  color: var(--text-on-dark);
  box-shadow: 0 40px 80px -40px rgba(61,107,255,.5);
}
.mock__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 20px; }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-700); }
.mock__bar p { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted-on-dark); }
.mock__foot, .mock__note {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-dark);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark);
}
.mock__note { border-top-color: var(--line); color: var(--muted); }

/* AI agents list */
.agents { display: grid; gap: 10px; }
.agents li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-dark);
}
.agent__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(61,107,255,.16); }
.agents strong { display: block; font-size: 14px; font-weight: 500; }
.agents small { display: block; font-size: 12px; color: var(--muted-on-dark); }
.pill { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 99px; letter-spacing: .04em; }
.pill--ok { background: rgba(43,182,115,.14); color: #6FE0A8; }
.pill--run { background: rgba(61,107,255,.18); color: var(--rigel-200); position: relative; padding-left: 22px; }
.pill--run::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px;
  border-radius: 50%; background: var(--rigel-300); animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* AI First: AI working inside Google Ads overnight (light card, matches the white section) */
.aiops {
  padding: 22px;
  background: radial-gradient(60% 45% at 85% 0%, rgba(61,107,255,.10), transparent 70%), var(--surface-2);
}
.aiops__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.aiops__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.aiops__g { display: inline-grid; grid-template-columns: repeat(2, 6px); gap: 3px; }
.aiops__g i { width: 6px; height: 6px; border-radius: 50%; }
.aiops__g i:nth-child(1) { background: #4285F4; }
.aiops__g i:nth-child(2) { background: #EA4335; }
.aiops__g i:nth-child(3) { background: #FBBC05; }
.aiops__g i:nth-child(4) { background: #34A853; }
.aiops__live {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; color: var(--rigel-600);
  background: var(--rigel-100); border: 1px solid var(--rigel-200);
}
.aiops__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--rigel-500); box-shadow: 0 0 6px rgba(61,107,255,.6); animation: blink 1.6s ease-in-out infinite; }
.aiops__night {
  display: flex; align-items: center; gap: 8px; margin: 18px 0 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--rigel-600);
}
.aiops__night svg { width: 15px; height: 15px; }
.aiops__log { position: relative; display: grid; gap: 8px; }
.aiops__log::before { content: ""; position: absolute; z-index: 1; left: 21px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--rigel-500), rgba(61,107,255,.25)); }
.aiops__log time { z-index: 2; }
.aiops__log li {
  position: relative; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 12px 10px 0; border-radius: 10px;
}
.aiops__log li:nth-child(odd) { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.aiops__log time {
  position: relative; z-index: 1; justify-self: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--rigel-600);
  background: var(--surface); padding: 3px 4px; border-radius: 6px; border: 1px solid var(--rigel-200);
}
.aiops__log div { min-width: 0; }
.aiops__log p { margin-top: 3px; font-size: 13px; color: var(--text); line-height: 1.35; }
.aiops__tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--rigel-600); }
.aiops__tag--warn { color: #B06000; }
.aiops__state { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 99px; white-space: nowrap; }
.aiops__state--ok { background: #E6F4EA; color: #137333; }
.aiops__state--warn { background: #FEF3E0; color: #B06000; }
.aiops__state--wait { background: var(--rigel-100); color: var(--rigel-600); }
.aiops__flow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
}
.aiops__flow li {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  padding: 9px 6px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
}
.aiops__flow li:nth-child(2) { border-color: var(--rigel-200); background: var(--rigel-100); }
.aiops__flow li:nth-child(3) { border-color: #B7DFC3; background: #E6F4EA; }
.aiops__flow b {
  display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%;
  font-family: var(--font-mono); font-size: 10px; background: var(--ink-900); color: #fff;
}
.js .reveal .aiops__log li { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal.is-visible .aiops__log li { opacity: 1; transform: none; }
.js .reveal.is-visible .aiops__log li:nth-child(2) { transition-delay: 120ms; }
.js .reveal.is-visible .aiops__log li:nth-child(3) { transition-delay: 240ms; }
.js .reveal.is-visible .aiops__log li:nth-child(4) { transition-delay: 360ms; }
.js .reveal.is-visible .aiops__log li:nth-child(5) { transition-delay: 480ms; }
@media (max-width: 640px) {
  .aiops { padding: 16px 12px; }
  .aiops__log li { grid-template-columns: 40px 1fr; padding-right: 8px; }
  .aiops__log::before { left: 19px; }
  .aiops__state { grid-column: 2; justify-self: start; }
  .aiops__flow li { flex-direction: column; gap: 4px; font-size: 11px; }
}

/* Google Ads: growth compass (two routes from today to the business goal) */
/* Light card that sits on the white section */
.compass {
  padding: 18px 22px 22px;
  background: radial-gradient(60% 55% at 75% 22%, rgba(61,107,255,.10), transparent 70%), var(--surface-2);
}
.compass__map { display: block; width: 100%; height: auto; overflow: visible; }
.compass__axis line { stroke: #B9C2D8; stroke-width: 1.2; }
.compass__axis polygon { fill: #9AA5C0; }
.compass__axislbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; fill: var(--muted); }
.compass__lbl { font-family: var(--font-display); font-size: 15px; font-weight: 600; fill: var(--text); }
.compass__sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; fill: var(--muted); }
.compass__goal { font-family: var(--font-display); font-size: 13px; font-weight: 600; fill: var(--rigel-600); }
.compass__guide { fill: none; stroke: rgba(61,107,255,.35); stroke-width: 1.2; stroke-dasharray: 2 6; stroke-linecap: round; }
.compass__course { fill: none; stroke: rgba(47,86,224,.65); stroke-width: 1.6; stroke-dasharray: 5 7; stroke-linecap: round; animation: flow 1.8s linear infinite; }
.compass__route { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.compass__route--a { stroke: #4285F4; filter: drop-shadow(0 2px 4px rgba(66,133,244,.35)); }
.compass__route--b { stroke: #34A853; filter: drop-shadow(0 2px 4px rgba(52,168,83,.35)); }
.compass__head--a { fill: #4285F4; }
.compass__head--b { fill: #34A853; }
.compass__glow { transform-box: fill-box; transform-origin: center; animation: pulse 4.5s ease-in-out infinite; }
.compass__star { filter: drop-shadow(0 0 6px rgba(47,86,224,.9)) drop-shadow(0 0 16px rgba(61,107,255,.6)); }
.js .reveal .compass__route { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.1s var(--ease-out) .2s; }
.js .reveal.is-visible .compass__route { stroke-dashoffset: 0; }
.js .reveal.is-visible .compass__route--b { transition-delay: .55s; }
.js .reveal .compass__head { opacity: 0; transition: opacity .3s ease 1.2s; }
.js .reveal.is-visible .compass__head { opacity: 1; }
.js .reveal.is-visible .compass__head--b { transition-delay: 1.5s; }
.compass__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.compass__legend li {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
}
.compass__key { flex: none; width: 14px; height: 4px; margin-top: 8px; border-radius: 2px; }
.compass__key--a { background: #4285F4; }
.compass__key--b { background: #34A853; }
.compass__legend strong { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.compass__legend span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@media (max-width: 640px) {
  .compass { padding: 14px 12px 16px; }
  .compass__legend { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal .compass__route { stroke-dashoffset: 0; }
  .js .reveal .compass__head { opacity: 1; }
}

/* YouTube-style ad player */
.yt { padding: 14px; }
.yt__frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 10px 10px 0 0;
  /* anime sunburst behind the stage */
  background:
    repeating-conic-gradient(from 0deg at 50% 38%, rgba(255,255,255,.07) 0deg 5deg, transparent 5deg 15deg),
    radial-gradient(70% 80% at 50% 35%, #4B3BB0 0%, #26206E 45%, #0E1233 100%);
}
.yt__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.yt__star { filter: drop-shadow(0 0 8px rgba(157,182,255,.9)); }
.yt__shirt { font-family: var(--font-display); font-weight: 700; font-size: 8.5px; letter-spacing: .06em; fill: #fff; stroke: none; }
.yt__shirt--sub { font-family: var(--font-mono); font-weight: 500; font-size: 4.6px; letter-spacing: .3em; fill: #9DB6FF; }
.yt__point { animation: point 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 100% 100%; }
@keyframes point { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
/* 5-second ad loop: bars rise one by one, then the arrow draws (JS toggles .is-playing) */
.yt__bars rect { transform-box: fill-box; transform-origin: bottom; }
.yt.is-playing .yt__bars rect { animation: bar-rise 500ms var(--ease-out) both; }
.yt.is-playing .yt__bars rect:nth-child(1) { animation-delay: .15s; }
.yt.is-playing .yt__bars rect:nth-child(2) { animation-delay: .8s; }
.yt.is-playing .yt__bars rect:nth-child(3) { animation-delay: 1.45s; }
.yt.is-playing .yt__bars rect:nth-child(4) { animation-delay: 2.1s; }
.yt.is-playing .yt__bars rect:nth-child(5) { animation-delay: 2.75s; }
.yt__arrow { stroke-dasharray: 190; }
.yt.is-playing .yt__arrow { animation: arrow-draw 900ms var(--ease-out) 3.35s both; }
.yt__head, .yt__speed { transform-box: fill-box; transform-origin: center; }
.yt.is-playing .yt__head { animation: pop-in 300ms var(--ease-out) 4.15s both; }
.yt.is-playing .yt__speed { animation: fade-in 400ms ease 3.35s both; }
.yt.is-playing .yt__progress span { animation: ad-progress 5s linear both; }
.yt.is-playing .yt__progress i { animation: ad-knob 5s linear both; }
@keyframes bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes arrow-draw { from { stroke-dashoffset: 190; } to { stroke-dashoffset: 0; } }
@keyframes pop-in { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: .8; } }
@keyframes ad-progress { from { width: 0%; } to { width: 100%; } }
@keyframes ad-knob { from { left: 0%; } to { left: 100%; } }
.yt__beam { animation: sweep 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: top center; }
.yt__beam--b { animation-delay: -3s; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .5; } }
@keyframes sweep { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }

.yt__top {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  font-size: 12.5px; font-weight: 500; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.yt__avatar {
  display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--ink-900); border: 1px solid rgba(157,182,255,.4);
}
.yt__avatar svg { width: 15px; height: 15px; }
.yt__avatar--lg { width: 36px; height: 36px; }
.yt__avatar--lg svg { width: 22px; height: 22px; }
.yt__adinfo {
  position: absolute; left: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.yt__adbadge { background: #FFCC00; color: #0A0D1F; font-weight: 600; padding: 2px 6px; border-radius: 3px; text-shadow: none; }
.yt__skip {
  position: absolute; right: 0; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; font-size: 12px; font-weight: 500; color: #fff;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.25); border-right: 0;
}
.yt__skip svg { width: 14px; height: 14px; }

.yt__progress { position: relative; height: 4px; background: rgba(255,255,255,.18); }
.yt__progress span { position: absolute; inset: 0 auto 0 0; width: 100%; background: #FFCC00; }
.yt__progress i {
  position: absolute; left: 100%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: #FFCC00;
}
.yt__controls {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 6px 4px; color: #E8ECF7;
}
.yt__controls svg { width: 18px; height: 18px; flex: none; }
.yt__time { font-size: 12px; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }
.yt__spacer { flex: 1; }
.yt__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; padding: 12px 6px 4px; border-top: 1px solid var(--line-dark);
}
.yt__meta div { flex: 1; min-width: 0; }
.yt__meta strong { display: block; font-size: 14px; font-weight: 600; }
.yt__meta small { display: block; font-size: 12px; color: var(--muted-on-dark); }
.yt__cta {
  flex: none; padding: 8px 14px; border-radius: 99px;
  background: var(--rigel-500); color: #fff; font-size: 12px; font-weight: 600;
}

/* Tracking data map: messy sources -> Rigel layer -> clean destinations */
.datamap-mock {
  background:
    radial-gradient(40% 50% at 50% 50%, rgba(61,107,255,.22), transparent 70%),
    linear-gradient(160deg, var(--ink-800), var(--ink-900));
}
.datamap__head, .datamap {
  display: grid; grid-template-columns: 27% 13% 20% 13% 27%;
}
.datamap__head {
  margin-bottom: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.datamap__head span:nth-child(1) { grid-column: 1; }
.datamap__head span:nth-child(2) { grid-column: 2 / 5; text-align: center; color: var(--rigel-200); }
.datamap__head span:nth-child(3) { grid-column: 5; text-align: right; }

.datamap { position: relative; height: 280px; grid-template-rows: 100%; }
.datamap__wires { grid-row: 1; width: 100%; height: 100%; overflow: visible; }
.datamap__wires--in { grid-column: 2; }
.datamap__wires--out { grid-column: 4; }
.datamap__wires path { fill: none; vector-effect: non-scaling-stroke; }
.datamap__wires--in path { stroke: rgba(164,174,200,.45); stroke-width: 1.2; }
.datamap__wires--in .dm--warn { stroke: rgba(255,184,92,.75); stroke-dasharray: 3 4; }
.datamap__wires--in .dm--dup { stroke: rgba(255,122,122,.6); stroke-dasharray: 1 4; stroke-linecap: round; }
.datamap__wires--out path {
  stroke: var(--rigel-400); stroke-width: 1.6;
  stroke-dasharray: 6 6; animation: flow 1.6s linear infinite;
  filter: drop-shadow(0 0 3px rgba(106,141,255,.8));
}
@keyframes flow { to { stroke-dashoffset: -24; } }

.datamap__col {
  position: relative; z-index: 1;
  display: grid; grid-template-rows: repeat(var(--n), 1fr); align-items: center;
}
.datamap__col--in { grid-column: 1; }
.datamap__col--out { grid-column: 5; }
.dm-chip {
  min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 8px 10px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-dark);
  font-size: 12.5px; font-weight: 500; color: var(--muted-on-dark);
  line-height: 1.2; white-space: nowrap;
}
.dm-chip--out { background: rgba(61,107,255,.12); border-color: rgba(106,141,255,.35); color: var(--text-on-dark); }
.status--warn { background: #FFB85C; box-shadow: 0 0 0 3px rgba(255,184,92,.18); }

.datamap__hub {
  position: relative; z-index: 1;
  grid-column: 3; align-self: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 46%; padding: 16px 10px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #121B3D, var(--ink-900));
  border: 1px solid rgba(106,141,255,.5);
  box-shadow: 0 0 0 4px rgba(61,107,255,.08), 0 0 50px -6px rgba(61,107,255,.7);
  text-align: center;
}
.datamap__star { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(157,182,255,.9)); }
.datamap__hub strong { font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.2; }
.datamap__hub ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.datamap__hub li {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 99px;
  background: rgba(61,107,255,.18); color: var(--rigel-200);
}

.datamap__foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-dark);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted-on-dark);
}
.datamap__foot span { display: inline-flex; align-items: center; gap: 8px; }

/* ==========================================================
   Approach
   ========================================================== */
.approach { background: var(--surface-2); }
.approach .section-head { max-width: 980px; }
.approach .section-lead { max-width: 720px; margin-inline: auto; }
.approach .section-lead { max-width: 720px; margin-inline: auto; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value {
  padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
.value__num { font-family: var(--font-mono); font-size: 12px; color: var(--rigel-600); letter-spacing: .1em; }
.value h3 { margin: 32px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }
.value p { color: var(--muted); font-size: 15px; }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 56px; border-top: 1px solid var(--line);
  counter-reset: step;
}
.step { padding: 28px 24px 0 0; position: relative; }
.step::before {
  content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rigel-500); box-shadow: 0 0 0 4px var(--rigel-100);
}
.step__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.step h3 { margin: 10px 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.step p { color: var(--muted); font-size: 15px; }
.process .step { display: flex; flex-direction: column; align-items: flex-start; }
.process .step p { flex: 1; }
.step__out {
  display: inline-block; margin-top: 16px; padding: 6px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em;
  color: var(--rigel-600); background: var(--rigel-100);
}

/* Partnership: collaboration & transparency */
.partner { background: var(--surface-2); }
.partner__head {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px clamp(40px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.partner__head .section-lead { margin-top: 0; }
.partner__accent { color: var(--rigel-600); }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.promise {
  position: relative; overflow: hidden;
  padding: clamp(28px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 80% at 100% 0%, rgba(61,107,255,.35), transparent 60%), linear-gradient(160deg, var(--ink-800), var(--ink-950));
  border: 1px solid var(--ink-700);
  color: var(--text-on-dark);
  box-shadow: 0 30px 60px -36px rgba(61,107,255,.6);
}
.promise__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(61,107,255,.18); border: 1px solid rgba(157,182,255,.3); color: var(--rigel-200);
  box-shadow: 0 0 24px -4px rgba(106,141,255,.6);
}
.promise__tag {
  display: block; margin-top: 28px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rigel-300);
}
.promise h3 { margin: 8px 0 10px; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.2vw, 28px); letter-spacing: -.02em; }
.promise p { color: var(--muted-on-dark); font-size: 15.5px; }

.perks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.perk {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}
.perk .icon {
  flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 10px;
  color: var(--rigel-600); background: var(--rigel-100);
}
.perk h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.perk p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.faq { background: var(--surface-2); }
@media (max-width: 1024px) {
  .promises { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) { .partner__head { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .perks { grid-template-columns: 1fr; } .perk { padding-right: 0; } }

/* How we work: tabs */
.process__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin-bottom: clamp(40px, 5vw, 64px);
  scroll-margin-top: 96px;
}
.process__top .tag { margin-bottom: 0; }
.tabs {
  display: inline-flex; padding: 5px; gap: 4px;
  border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 8px 24px -16px rgba(11,16,32,.3);
}
.tabs__btn {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 99px;
  background: transparent; color: var(--muted);
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: background-color var(--dur-fast), color var(--dur-fast);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { background: var(--ink-900); color: #fff; box-shadow: 0 6px 16px -8px rgba(61,107,255,.6); }
.js .tabs__panel:not(.is-active) { display: none; }
.tabs__panel.is-active { animation: panel-in 450ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabs__next {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin-top: clamp(32px, 4vw, 48px); padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rigel-600);
}
.tabs__next:hover { color: var(--rigel-500); }
.tabs__next .icon { transition: transform var(--dur) var(--ease-out); }
.tabs__next:hover .icon { transform: translate(2px, -2px); }
.tabs__back { transform: rotate(-90deg); }
.tabs__next:hover .tabs__back { transform: rotate(-90deg) translate(2px, -2px); }

/* Ongoing: monthly wheel + QBP */
.cycle { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.cycle__card {
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -48px rgba(11,16,32,.4);
}
.cycle__card--dark {
  background: radial-gradient(120% 70% at 100% 0%, rgba(61,107,255,.35), transparent 60%), linear-gradient(160deg, var(--ink-800), var(--ink-950));
  border-color: var(--ink-700); color: var(--text-on-dark);
}
.cycle__kicker { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rigel-600); }
.cycle__card--dark .cycle__kicker { color: var(--rigel-300); }
.cycle__head h4 { margin: 6px 0 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; }

.wheel-wrap { display: grid; place-items: center; margin: 20px 0 8px; }
.wheel { width: 100%; max-width: 340px; overflow: visible; }
.wheel__orbit { stroke: var(--rigel-200); stroke-width: 1.5; stroke-dasharray: 2 6; }
.wheel__spin { transform-box: view-box; transform-origin: 160px 160px; animation: spin 14s linear infinite; }
.wheel__dot { fill: var(--rigel-500); filter: drop-shadow(0 0 6px rgba(61,107,255,.9)); }
.wheel__seg { stroke: #fff; stroke-width: 2; transition: transform var(--dur) var(--ease-out); transform-box: view-box; transform-origin: 160px 160px; }
.wheel__seg--1 { fill: #2F56E0; }
.wheel__seg--2 { fill: #3D6BFF; }
.wheel__seg--3 { fill: #5B82FF; }
.wheel__seg--4 { fill: #1E3A9E; }
.wheel__num { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; fill: rgba(255,255,255,.8); }
.wheel__lbl { font-family: var(--font-display); font-weight: 600; font-size: 13px; fill: #fff; }
.wheel__center { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: .14em; fill: var(--muted); }
.wheel__star { filter: drop-shadow(0 0 10px rgba(61,107,255,.6)); }

.wheel-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin-top: 20px; }
.wheel-legend li { display: flex; gap: 12px; align-items: flex-start; }
.wheel-legend span {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  font-family: var(--font-mono); font-size: 11px; color: #fff; background: var(--rigel-500);
}
.wheel-legend li:nth-child(1) span { background: #2F56E0; }
.wheel-legend li:nth-child(3) span { background: #5B82FF; }
.wheel-legend li:nth-child(4) span { background: #1E3A9E; }
.wheel-legend strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.wheel-legend p { margin-top: 2px; font-size: 14px; color: var(--muted); }
.cycle__note {
  display: flex; align-items: center; gap: 10px;
  margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--line);
  font-size: 14px; color: var(--muted);
}
.cycle__pulse { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--rigel-500); box-shadow: 0 0 0 4px var(--rigel-100); animation: blink 1.6s ease-in-out infinite; }

.qbp__intro { margin-top: 14px; color: var(--muted-on-dark); font-size: 15.5px; }
.qbp__timeline {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 28px 0 30px;
}
.qbp__timeline::before {
  content: ""; position: absolute; left: 12%; right: 12%; top: 22px; height: 1px;
  background: repeating-linear-gradient(90deg, rgba(157,182,255,.5) 0 4px, transparent 4px 8px);
}
.qbp__timeline li {
  position: relative; display: grid; justify-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark);
}
.qbp__timeline svg {
  width: 44px; height: 44px; padding: 11px; border-radius: 50%;
  background: var(--ink-850); border: 1px solid rgba(157,182,255,.3); color: var(--rigel-200);
}
.qbp__milestone { color: #fff !important; font-weight: 500; }
.qbp__milestone svg { padding: 6px; background: rgba(61,107,255,.25); border-color: var(--rigel-400); box-shadow: 0 0 22px -2px rgba(106,141,255,.8); }
.qbp__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--rigel-300); }
.qbp__list { display: grid; gap: 10px; margin-top: 12px; }
.qbp__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.qbp__list .icon { margin-top: 1px; padding: 3px; width: 22px; height: 22px; border-radius: 50%; color: var(--rigel-200); background: rgba(61,107,255,.22); }
.qbp__out { margin-top: 24px; background: rgba(61,107,255,.2); color: var(--rigel-200); }

@media (max-width: 1024px) { .cycle { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .tabs { width: 100%; }
  .tabs__btn { flex: 1; padding: 0 8px; font-size: 11px; letter-spacing: .04em; }
  .wheel-legend { grid-template-columns: 1fr; }
}

/* Process: how a collaboration starts */
.process { background: var(--surface); }
.process__intro {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px clamp(40px, 6vw, 96px); align-items: start;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.process__lead p { color: var(--muted); font-size: 17px; }
.process__lead p + p { margin-top: 14px; }
.process__expect { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 28px; }
.process__expect li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; }
.process__expect .icon {
  margin-top: 1px; padding: 3px; width: 22px; height: 22px;
  color: var(--rigel-600); background: var(--rigel-100); border-radius: 50%;
}
.process .steps { margin-top: 0; }

/* ==========================================================
   About / Why Rigel
   ========================================================== */
.about {
  position: relative; overflow: hidden;
  /* A touch lighter than before, with a soft blue glow in the bottom-right corner */
  background:
    radial-gradient(55% 55% at 92% 100%, rgba(61,107,255,.24), transparent 70%),
    radial-gradient(35% 35% at 5% 0%, rgba(61,107,255,.07), transparent 70%),
    var(--ink-900);
  color: var(--text-on-dark);
  padding: var(--section-y) 0;
}
.about__stars {
  position: absolute; inset: 0; pointer-events: none; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 10% 20%, #fff, transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(200,215,255,.8), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 92% 60%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 70% 85%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 45% 5%, rgba(255,255,255,.5), transparent);
}
.about__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__mark { position: relative; aspect-ratio: 1; max-width: 420px; width: 100%; margin-inline: auto; display: grid; place-items: center; }
.about__halo {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(157,182,255,.55) 0%, rgba(61,107,255,.22) 30%, transparent 65%);
  animation: pulse 6s ease-in-out infinite;
}
.about__mark::before, .about__mark::after {
  content: ""; position: absolute; inset: 8%; border-radius: 50%; border: 1px solid rgba(157,182,255,.14);
}
.about__mark::after { inset: 22%; border-style: dashed; animation: spin 60s linear infinite; }
.about__star { position: relative; width: 58%; height: 58%; filter: drop-shadow(0 0 30px rgba(157,182,255,.8)); }
.about__copy > p { color: var(--muted-on-dark); margin-top: 20px; max-width: 58ch; }
.about__copy .section-title { margin-top: 0; }
.about__facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 24px; justify-content: start;
  margin: 36px 0 0; padding-top: 28px; border-top: 1px solid var(--line-dark);
}
.about__facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-on-dark); }
.about__facts dd { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.about__facts dd .icon { color: var(--rigel-300); }

.about__copy strong { color: var(--text-on-dark); font-weight: 600; }

/* Four points of the star */
.points {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: clamp(56px, 7vw, 88px);
}
.point {
  padding: 28px 24px;
  border: 1px solid rgba(157,182,255,.16); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(61,107,255,.16), rgba(61,107,255,.04));
  transition: border-color var(--dur), background-color var(--dur);
}
.point:hover { border-color: rgba(157,182,255,.35); }
.point__icon { width: 48px; height: 48px; overflow: visible; }
.point__base { fill: rgba(157,182,255,.2); }
.point__lit { fill: #E6EDFF; filter: drop-shadow(0 0 6px rgba(157,182,255,.9)); }
.point__num { display: block; margin-top: 24px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; color: var(--rigel-300); }
.point h3 { margin: 6px 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: #fff; }
.point p { font-size: 15px; color: var(--muted-on-dark); }
@media (max-width: 1024px) { .points { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .points { grid-template-columns: 1fr; } }

.studio {
  position: relative;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 64px; align-items: center;
  margin-top: clamp(64px, 8vw, 104px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(61,107,255,.12), rgba(255,255,255,.02));
}
.studio .tag { margin-bottom: 12px; }
.studio h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.02em; line-height: 1.15; }
.studio > p { color: var(--muted-on-dark); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================
   FAQ
   ========================================================== */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 72px; padding: 18px 0;
  font-family: var(--font-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em;
  cursor: pointer; list-style: none;
  transition: color var(--dur-fast);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--rigel-600); }
.faq summary .icon { color: var(--rigel-600); transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 64ch; }

/* ==========================================================
   Contact
   ========================================================== */
.contact {
  position: relative; overflow: hidden;
  background: var(--ink-900); color: var(--text-on-dark);
  padding: var(--section-y) 0;
}
.contact__bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 15% 100%, rgba(61,107,255,.28), transparent 70%),
    radial-gradient(30% 40% at 95% 0%, rgba(61,107,255,.14), transparent 70%);
}
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__lead { margin-top: 20px; color: var(--muted-on-dark); font-size: 17px; max-width: 46ch; }
.contact__info { display: grid; gap: 12px; margin-top: 36px; }
.contact__info li { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--muted-on-dark); }
.contact__info li > :last-child { min-width: 0; overflow-wrap: anywhere; }
.contact__info .icon { color: var(--rigel-300); }
.contact__info a { color: #fff; border-bottom: 1px solid rgba(157,182,255,.4); }
.contact__info a:hover { border-color: var(--rigel-300); }

.form {
  display: grid; gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-dark);
  background: rgba(17, 24, 41, .7);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--text-on-dark); padding: 0; }
.field legend { margin-bottom: 8px; }
.field label span { color: var(--rigel-300); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: #fff;
  background: var(--ink-900); border: 1px solid var(--ink-700); border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #7A849E; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rigel-400); box-shadow: 0 0 0 3px rgba(61,107,255,.3); }
.field input[aria-invalid="true"] { border-color: #FF7A7A; }
.field__error { font-size: 13px; color: #FF9A9A; min-height: 0; }
.field__error:empty { display: none; }

/* All four interests sit on one line; they only wrap on very narrow phones */
.field:has(> .chips) { container-type: inline-size; min-width: 0; }
.chips { display: flex; flex-wrap: nowrap; gap: 6px; }
@container (max-width: 439px) {
  .chips { gap: 5px; }
  .chips .chip span { padding: 0 6px; font-size: 12px; min-height: 36px; }
}
/* Phones: too narrow for one line, so a neat 2 × 2 grid */
@container (max-width: 344px) {
  .chips { display: grid; grid-template-columns: auto auto; gap: 6px; }
  .chips .chip span { width: 100%; justify-content: center; padding: 0 10px; font-size: 13px; min-height: 40px; }
}
.chip { position: relative; cursor: pointer; flex: 0 0 auto; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 13px;
  border: 1px solid var(--ink-700); border-radius: 99px;
  font-size: 14px; color: var(--muted-on-dark); white-space: nowrap;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.chip:hover span { border-color: var(--rigel-400); color: #fff; }
.chip input:checked + span { background: rgba(61,107,255,.22); border-color: var(--rigel-400); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--rigel-400); outline-offset: 2px; }
.form__status { font-size: 14px; color: var(--rigel-200); padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(61,107,255,.12); }
.form__status[data-state="success"] { color: #8BEBBE; background: rgba(43,182,115,.12); }
.form__status[data-state="error"] { color: #FF9A9A; background: rgba(255,122,122,.1); }
.form__status:empty { display: none; }
.form__note { font-size: 13px; color: var(--muted-on-dark); text-align: center; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--ink-950); color: var(--muted-on-dark); border-top: 1px solid var(--line-dark); padding: 64px 0 32px; }
.footer__inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer__brand .brand { color: #fff; }
.footer__brand p { margin-top: 16px; font-size: 14px; max-width: 32ch; }
.footer__brand .footer__pillars { margin-top: 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--rigel-300); max-width: none; }
.footer__nav { display: flex; gap: 72px; }
.footer__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; transition: color var(--dur-fast); }
.footer__nav a:hover { color: #fff; }
/* Language switch in the header, right of "Book a call" */
.lang {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 20px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .08em;
}
.lang__link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 40px; padding: 0 4px;
  color: var(--muted-on-dark); transition: color var(--dur-fast);
}
.lang__link:hover { color: #fff; }
.lang__link[aria-current="page"] { color: #fff; text-decoration: underline; text-decoration-color: var(--rigel-400); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.lang__sep { color: var(--muted-on-dark); opacity: .5; }
.header__inner .nav { margin-left: auto; }
@media (max-width: 900px) { .lang { margin-left: auto; margin-right: 8px; } }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono); font-size: 12px;
}

/* ==========================================================
   Reveal on scroll
   ========================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: var(--ink-900); border-bottom: 1px solid var(--line-dark);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { width: 100%; min-height: 48px; font-size: 16px; border-bottom: 1px solid var(--line-dark); padding: 0; }
  .nav__cta { min-height: 48px; }

  .hero__grid, .about__grid, .contact__grid, .faq__grid, .studio, .process__intro { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; width: 100%; margin-inline: auto; }
  .rigel, .hero__caption { margin-inline: auto; }
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__copy { order: 0; }
  .values { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 8px; }
  .about__mark { max-width: 280px; }
}

@media (max-width: 640px) {
  .service-cards { grid-template-columns: 1fr; }
  .pillar strong { font-size: 15px; }
  .pillar small { display: none; }
  .pillar span { font-size: 10px; }
  .pillar--top, .pillar--bottom { left: calc(50% + 16px); }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); margin-left: 4px; }
  .step { padding: 0 0 28px 24px; }
  .step::before { top: 4px; left: -5px; }
  .about__facts { grid-template-columns: 1fr; }
  .hero__proof { grid-template-columns: 1fr; }
  .process__expect { grid-template-columns: 1fr; }
  .footer__nav { gap: 48px; }
  .announce a { font-size: 11px; letter-spacing: .06em; }
  .yt { padding: 10px; }
  .yt__top { font-size: 11px; padding: 8px 10px 14px; }
  .yt__skip { padding: 5px 9px; font-size: 11px; bottom: 10px; }
  .yt__adinfo { font-size: 10px; }
  .yt__controls { gap: 12px; }
  .yt__meta strong { font-size: 13px; }
  .datamap-mock { padding: 18px 12px; }
  .datamap__head, .datamap { grid-template-columns: 31% 6% 26% 6% 31%; }
  .datamap__head { font-size: 8.5px; letter-spacing: .04em; }
  .datamap__head span:nth-child(2) { grid-column: 3; }
  .datamap { height: 260px; }
  .dm-chip { padding: 6px 5px; gap: 4px; font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
  .dm-chip .status { width: 5px; height: 5px; box-shadow: none; }
  .datamap__hub { padding: 12px 4px; gap: 8px; }
  .datamap__star { width: 26px; height: 26px; }
  .datamap__hub strong { font-size: 11.5px; }
  .datamap__hub li { font-size: 9px; padding: 2px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rigel__orion path { stroke-dashoffset: 0; }
  .brands__track { animation: none; width: auto; }
  .brands__viewport { -webkit-mask-image: none; mask-image: none; }
  .brands__list { flex-wrap: wrap; justify-content: center; row-gap: 24px; padding: 0 var(--gutter); }
  .brands__list[aria-hidden="true"] { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
