/* Hallmark · macrostructure: Marquee Hero
 *           · genre: atmospheric · theme: Aurora
 *           · paper-band: dark · display-style: geometric-sans · accent-hue: cool
 * Pre-emit critique: P5 H5 E5 S5 R4 V5
 *
 * Full rebuild of alt.bitvibelabs.com - dark cyan canvas, animated gradient
 * mesh + dual bloom + cursor-tracked spotlight + grid floor. Heavy motion
 * within the page; restraint within the type. The wow is the canvas, not
 * the chrome.
 */

/* ────────────────────────────────────────────────────────────────────────
   TOKENS - Aurora (atmospheric dark + cyan)
   ──────────────────────────────────────────────────────────────────────── */
:root, [data-theme="aurora"] {
  --color-paper:      oklch(11% 0.025 200);
  --color-paper-2:    oklch(15% 0.028 200);
  --color-paper-3:    oklch(18% 0.030 200);
  --color-rule:       oklch(28% 0.022 200);
  --color-rule-2:     oklch(38% 0.024 200);
  --color-muted:      oklch(60% 0.018 200);
  --color-neutral:    oklch(74% 0.014 200);
  --color-ink-2:      oklch(82% 0.012 200);
  --color-ink:        oklch(96% 0.010 200);
  --color-accent:     oklch(67% 0.22  28);      /* signature scarlet (#FF4520) - 2026-05-24 red-flip */
  --color-accent-2:   oklch(64% 0.150 175);     /* teal-green - retained for contrast moments */
  --color-accent-3:   oklch(72% 0.170 200);     /* cyan - previous primary accent, kept as secondary */
  --color-focus:      oklch(67% 0.22  28);      /* matches accent for visible focus rings */

  /* Canonical brand hues preserved for any HTML inline-style references */
  --bit:    #1FB8FF;
  --vibe:   #FF4520;
  --labs:   #EFECE6;  /* soft warm-white - harmonizes with Bit cyan + Vibe scarlet without harsh full white */
  --win:    #18E69B;

  --font-display: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body:    "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-serif:   "Instrument Serif", ui-serif, Georgia, serif;
  --font-mono:    "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-label:   "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --display-weight: 600;
  --tracking-display: -0.035em;
  --tracking-tight:   -0.02em;
  --tracking-label:    0.10em;

  --lh-tight:   1.0;
  --lh-snug:    1.18;
  --lh-normal:  1.55;
  --lh-relaxed: 1.7;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 80rem;

  --ease-out:    cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in:     cubic-bezier(0.6, 0, 0.7, 0.4);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card:   0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
  --shadow-glow:   0 0 80px -20px var(--color-accent);
  --shadow-glow-2: 0 0 80px -20px var(--color-accent-3);
}

/* ────────────────────────────────────────────────────────────────────────
   BASE
   ──────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
body {
  overflow-x: clip;
  min-width: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "ss02", "cv11";
  cursor: none;
}
@media (pointer: coarse), (hover: none) {
  body { cursor: auto; }
  .cursor-light { display: none; }
}

/* Force cursor:none on every interactive surface - the UA-stylesheet
   default `cursor: pointer` on <a href> beats the inherited body
   cursor:none otherwise, which is why hovering cards / nav links
   was showing the OS hand cursor. */
a, a:link, a:visited, a:hover, a:active,
button, button:hover,
.card, .contact-row, .nav-pill__link, .nav-brand, .nav-cta,
.signup__btn, .signup__input,
.footer-links a, .alt-banner a, [data-cursor="hover"] {
  cursor: none;
}
a { color: var(--color-ink); text-decoration: none; transition: color 200ms var(--ease-out); }
a:hover { color: var(--color-accent); }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--color-accent); color: var(--color-paper); }

/* ────────────────────────────────────────────────────────────────────────
   BACKGROUND LAYERS - canvas mesh + grid + dual bloom + cursor light
   ──────────────────────────────────────────────────────────────────────── */
#aurora-bg {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.78;
}
.aurora-grid {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.038) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 25%, transparent 78%);
  opacity: 0.5;
}
.aurora-bloom {
  position: fixed; z-index: 1;
  pointer-events: none;
  width: 80vmax; height: 80vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.42;
  animation: bloomDrift 26s var(--ease-in-out) infinite alternate;
}
.aurora-bloom--1 {
  top: -28vmax; left: -22vmax;
  /* 2026-05-24 red-flip: was hue 220 (cyan-violet), now hue 25 (warm red-orange) */
  background: radial-gradient(circle, oklch(60% 0.22 25) 0%, transparent 60%);
}
.aurora-bloom--2 {
  bottom: -32vmax; right: -24vmax;
  background: radial-gradient(circle, oklch(58% 0.18 320) 0%, transparent 60%);
  animation-direction: alternate-reverse;
  animation-duration: 32s;
  opacity: 0.32;
}
@keyframes bloomDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8vmax, 6vmax) scale(1.1); }
  100% { transform: translate(-4vmax, 4vmax) scale(0.95); }
}

/* ─── Liquid-Glass cursor (ring + dot, ring lerps, dot snaps) ─── */
.cursor-ring,
.cursor-dot {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.02) 40%,
    rgba(31, 184, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 6px 24px -4px rgba(31, 184, 255, 0.35),
    0 0 24px -2px rgba(31, 184, 255, 0.2);
  transition:
    width  280ms var(--ease-out),
    height 280ms var(--ease-out),
    border-color 280ms var(--ease-out),
    box-shadow 280ms var(--ease-out),
    background 280ms var(--ease-out);
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
}
body.cursor-hover .cursor-ring {
  width: 64px; height: 64px;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(31, 184, 255, 0.10) 40%,
    rgba(160, 32, 240, 0.08) 100%);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 12px 48px -4px var(--color-accent),
    0 0 36px -4px var(--color-accent);
}
body.cursor-pressed .cursor-ring {
  width: 30px; height: 30px;
  border-color: var(--color-accent);
}

/* All content above the bg layers */
body > *:not(canvas):not(.aurora-grid):not(.aurora-bloom):not(.cursor-ring):not(.cursor-dot) { position: relative; z-index: 10; }

@media (pointer: coarse), (hover: none) {
  .cursor-ring, .cursor-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora-bloom { animation: none; }
  html { scroll-behavior: auto; }
}

/* ────────────────────────────────────────────────────────────────────────
   ALT BANNER (very thin top stripe)
   ──────────────────────────────────────────────────────────────────────── */
.alt-banner {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  padding: 7px 16px;
  background: rgba(8, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.alt-banner__dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}
.alt-banner__text a { color: var(--color-accent); text-decoration: none; }
.alt-banner__text a:hover { color: var(--color-ink); }
.alt-banner__meta { font-weight: 500; color: var(--color-accent); }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.85); } }

/* ────────────────────────────────────────────────────────────────────────
   NAV - N5 floating pill
   ──────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 44px;
  left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill);
  background: rgba(8, 18, 26, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--color-rule);
  box-shadow: 0 12px 36px -12px rgba(0,0,0,0.6);
  max-width: calc(100vw - 40px);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}
.nav-brand__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}
.nav-brand__text i { font-style: italic; font-family: var(--font-serif); color: var(--color-muted); font-weight: 500; }

.nav-pill {
  display: flex; gap: 4px;
}
.nav-pill__link {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  transition: background 200ms var(--ease-out), color 200ms var(--ease-out);
}
.nav-pill__link:hover { color: var(--color-ink); background: rgba(255,255,255,0.05); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-paper);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  transition: transform 240ms var(--ease-spring), box-shadow 240ms var(--ease-out), background 240ms var(--ease-out);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 0 24px -4px var(--color-accent); color: var(--color-paper); }
.nav-cta svg { transition: transform 240ms var(--ease-out); }
.nav-cta:hover svg { transform: translateX(3px); }

@media (max-width: 720px) {
  .nav { top: 36px; padding: 6px 6px 6px 14px; gap: 8px; }
  .nav-pill { display: none; }
  .nav-brand { font-size: 14px; }
  .nav-cta { padding: 8px 12px; font-size: 10px; }
}

/* ────────────────────────────────────────────────────────────────────────
   MARQUEE HERO
   ──────────────────────────────────────────────────────────────────────── */
.marquee {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 180px var(--gutter) 80px;
  position: relative;
}
.marquee__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 40px;
  opacity: 0; animation: fadeUp 900ms 220ms var(--ease-out) forwards;
}
.marquee__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 12px var(--color-accent);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.marquee__display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 11vw, 192px);
  letter-spacing: var(--tracking-display);
  line-height: 0.92;
  color: var(--color-ink);
  margin: 0;
  text-wrap: balance;
  display: flex; flex-wrap: wrap; gap: 0.18em;
}
.marquee__display .word {
  display: inline-flex; white-space: nowrap;
}
.marquee__display .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em) rotateX(-30deg);
  transform-origin: 50% 100%;
  animation: charIn 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--ci, 0) * 22ms + 400ms);
}
@keyframes charIn { to { opacity: 1; transform: none; } }
.marquee__display-accent .char {
  color: var(--color-accent);
  filter: drop-shadow(0 0 24px oklch(72% 0.170 200 / 0.45));
}

.marquee__footer {
  display: flex; justify-content: space-between;
  margin-top: clamp(40px, 6vw, 80px);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  opacity: 0; animation: fadeUp 900ms 1800ms var(--ease-out) forwards;
}
.marquee__footer em { font-style: italic; font-family: var(--font-serif); text-transform: none; letter-spacing: 0; color: var(--color-accent); font-size: 13px; }
.marquee__pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
  margin-right: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__display .char { opacity: 1; transform: none; animation: none; }
  .marquee__eyebrow, .marquee__footer { opacity: 1; animation: none; }
}

/* Thick rule between hero and below */
.rule-thick {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--color-rule) 20%, var(--color-rule) 80%, transparent 100%);
  margin-top: -1px;
}

/* ────────────────────────────────────────────────────────────────────────
   EDGE MARQUEE - scrolling text band right under hero
   ──────────────────────────────────────────────────────────────────────── */
.edge-marquee {
  overflow: hidden;
  padding: 18px 0;
  background:
    linear-gradient(90deg, var(--color-paper) 0%, transparent 8%, transparent 92%, var(--color-paper) 100%),
    rgba(8, 18, 26, 0.4);
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.edge-marquee__track {
  display: inline-flex; gap: 36px;
  white-space: nowrap;
  animation: edgeScroll 60s linear infinite;
  width: max-content;
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.edge-marquee__track span {
  flex-shrink: 0;
}
.edge-marquee__track > span:nth-child(odd) {
  color: var(--color-ink-2);
}
@keyframes edgeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .edge-marquee__track { animation: none; } }

/* ────────────────────────────────────────────────────────────────────────
   CONTAINER + REVEAL
   ──────────────────────────────────────────────────────────────────────── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.below { padding: clamp(80px, 12vw, 140px) 0; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

.section-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

/* ────────────────────────────────────────────────────────────────────────
   INTRO / POSITIONING
   ──────────────────────────────────────────────────────────────────────── */
.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

.intro-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  letter-spacing: var(--tracking-tight);
  line-height: 1.16;
  color: var(--color-ink);
  margin: 0;
}
.intro-h em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-accent);
}

.intro-side p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-ink-2);
  margin: 0 0 18px;
}
.intro-side code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1.5px 7px;
  border-radius: 4px;
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  color: var(--color-accent);
}
.intro-side a { color: var(--color-accent); border-bottom: 1px solid var(--color-rule); }
.intro-side a:hover { color: var(--color-ink); border-bottom-color: var(--color-accent); }

/* ────────────────────────────────────────────────────────────────────────
   PORTFOLIO - workbench grid with depth
   ──────────────────────────────────────────────────────────────────────── */
.portfolio-head { margin-bottom: clamp(40px, 6vw, 80px); }
.portfolio-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 88px);
  letter-spacing: var(--tracking-display);
  line-height: 0.96;
  color: var(--color-ink);
  margin: 0 0 16px;
}
.portfolio-h em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-accent);
}
.portfolio-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 56ch;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  perspective: 1200px;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .portfolio-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--color-paper-2) 0%, var(--color-paper) 100%);
  border: 1px solid var(--color-rule);
  text-decoration: none;
  color: var(--color-ink);
  overflow: hidden;
  transform-style: preserve-3d;
  transition:
    transform 360ms var(--ease-out),
    border-color 300ms var(--ease-out),
    box-shadow 360ms var(--ease-out);
  will-change: transform;
  min-height: 260px;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, oklch(var(--card-hue-l, 72%) 0.13 var(--card-hue, 200) / 0.6) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
  z-index: 2;
}
.card:hover { transform: translate3d(0, -4px, 0); border-color: oklch(60% 0.10 var(--card-hue, 200) / 0.7); }
.card:hover::before { opacity: 1; }
.card:hover { box-shadow:
  0 30px 80px -30px oklch(40% 0.15 var(--card-hue, 200) / 0.6),
  0 0 0 1px oklch(60% 0.10 var(--card-hue, 200) / 0.25);
}

/* Cursor-light radial that follows pointer inside the card */
.card__glow {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    oklch(72% 0.18 var(--card-hue, 200) / 0.18) 0%,
    transparent 50%);
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
}
.card:hover .card__glow { opacity: 1; }

.card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.card__mark {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: grid; place-items: center;
  overflow: hidden;
  transition: transform 320ms var(--ease-out);
}
.card__mark svg { width: 100%; height: 100%; }
.card:hover .card__mark { transform: scale(1.06); }

.card__phase {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule);
  color: var(--color-muted);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.card__phase .phase-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.phase--live    { color: oklch(72% 0.15 145); border-color: oklch(50% 0.15 145 / 0.6); }
.phase--live .phase-dot { box-shadow: 0 0 8px currentColor; animation: pulse 2s ease-in-out infinite; }
.phase--preview { color: var(--color-accent); border-color: oklch(50% 0.15 200 / 0.6); }
.phase--coming  { color: oklch(72% 0.16 30);  border-color: oklch(50% 0.16 30 / 0.6); }
.phase--future  { color: var(--color-muted);  border-color: var(--color-rule-2); }

.card__body { flex: 1; }
.card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--color-ink);
  margin: 0 0 12px;
}
.card__name em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  color: oklch(72% 0.15 var(--card-hue, 200));
}
.card__blurb {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--color-muted);
  margin: 0;
}
.card__blurb code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--color-paper);
  color: var(--color-ink);
}
.card__blurb i {
  font-style: italic;
  color: var(--color-ink-2);
}

.card__meta {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--color-rule);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}
.card__dom { color: var(--color-ink-2); }
.card__arrow { color: var(--color-accent); transition: transform 240ms var(--ease-out); }
.card:hover .card__arrow { transform: translateX(4px); }

/* ────────────────────────────────────────────────────────────────────────
   NOW SHIPPING - clean log
   ──────────────────────────────────────────────────────────────────────── */
.now-head { margin-bottom: 56px; }
.now-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--color-ink);
  margin: 0 0 16px;
}
.now-h em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--color-accent); }
.now-sub { color: var(--color-muted); font-size: 17px; margin: 0; }

.now-log { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--color-rule); }
.now-log__item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 28px; align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-rule);
  position: relative;
  transition: padding 240ms var(--ease-out);
}
.now-log__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, oklch(72% 0.15 200 / 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
  pointer-events: none;
}
.now-log__item:hover::before { opacity: 1; }
.now-log__when {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.now-log__what {
  font-size: 16px;
  color: var(--color-ink-2);
  line-height: 1.55;
}
.now-log__what b { color: var(--color-ink); font-weight: 600; }
.now-log__tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-rule);
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}
.now-log__tag-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.now-log__item[data-tag="shipping"] .now-log__tag { color: var(--color-accent); border-color: oklch(50% 0.15 200 / 0.5); }
.now-log__item[data-tag="shipping"] .now-log__tag-dot { box-shadow: 0 0 8px currentColor; animation: pulse 2s ease-in-out infinite; }
.now-log__item[data-tag="shipped"]  .now-log__tag { color: oklch(72% 0.15 145); border-color: oklch(50% 0.15 145 / 0.5); }
.now-log__item[data-tag="building"] .now-log__tag { color: oklch(72% 0.16 30); border-color: oklch(50% 0.16 30 / 0.5); }
.now-log__item[data-tag="queued"]   .now-log__tag { color: var(--color-muted); }

@media (max-width: 600px) {
  .now-log__item { grid-template-columns: 1fr auto; gap: 6px 12px; align-items: start; padding: 16px 0; }
  .now-log__when { grid-column: 1 / -1; }
}

/* ────────────────────────────────────────────────────────────────────────
   CONTACT + SIGNUP
   ──────────────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-h {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 76px);
  letter-spacing: var(--tracking-display);
  line-height: 1;
  color: var(--color-ink);
  margin: 0 0 20px;
}
.contact-h em { font-style: italic; font-family: var(--font-serif); font-weight: 400; color: var(--color-accent); }
.contact-sub {
  font-size: 18px;
  color: var(--color-ink-2);
  line-height: 1.55;
  margin: 0 0 40px;
  max-width: 48ch;
}
.contact-sub strong { color: var(--color-accent); font-weight: 500; }

.signup__row {
  display: flex; gap: 8px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
  max-width: 480px;
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.signup__row:focus-within { border-color: var(--color-accent); box-shadow: 0 0 0 4px oklch(72% 0.17 200 / 0.18); }
.signup__input {
  flex: 1; min-width: 0;
  padding: 12px 18px;
  background: transparent; border: none;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 15.5px;
}
.signup__input::placeholder { color: var(--color-muted); }
.signup__input:focus { outline: none; }
.signup__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-paper);
  border: none;
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  transition: background 240ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 240ms var(--ease-spring);
}
.signup__btn:hover { box-shadow: 0 0 24px -4px var(--color-accent); transform: translateY(-1px); }
.signup__btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.signup__msg {
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  margin: 18px 0 0;
  min-height: 16px;
  color: var(--color-accent);
}
.signup__fineprint {
  font-size: 13px;
  color: var(--color-muted);
  margin: 18px 0 0;
  max-width: 56ch;
  line-height: 1.55;
}
.signup__fineprint a { color: var(--color-accent); border-bottom: 1px solid var(--color-rule); }
.signup__fineprint a:hover { color: var(--color-ink); }
.signup__fineprint strong { color: var(--color-ink-2); font-weight: 500; }

/* Right column - contact rows */
.contact-row {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 16px; align-items: baseline;
  padding: 18px 22px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  margin-bottom: 10px;
  color: var(--color-ink);
  text-decoration: none;
  transition: border-color 240ms var(--ease-out), background 240ms var(--ease-out);
}
.contact-row:hover { border-color: var(--color-accent); background: linear-gradient(135deg, var(--color-paper-2), oklch(20% 0.10 200 / 0.4)); color: var(--color-ink); }
.contact-row__lbl { font-family: var(--font-label); font-size: 10.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); }
.contact-row__val { font-size: 16px; color: var(--color-ink); }
.contact-row__val-meta { font-family: var(--font-label); font-size: 10.5px; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-accent); }
.contact-row__arrow { color: var(--color-muted); }
.contact-row:hover .contact-row__arrow { color: var(--color-accent); }
.contact-row--meta:hover { background: var(--color-paper-2); border-color: var(--color-rule); cursor: default; }

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

/* ────────────────────────────────────────────────────────────────────────
   FOOTER - Ft5 Statement
   ──────────────────────────────────────────────────────────────────────── */
.footer {
  padding: clamp(80px, 12vw, 140px) 0 60px;
  border-top: 1px solid var(--color-rule);
  background: linear-gradient(180deg, transparent 0%, oklch(8% 0.02 200) 100%);
}
.footer-statement { margin-bottom: 80px; max-width: 64rem; }
.footer-statement__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: var(--tracking-tight);
  line-height: 1.16;
  color: var(--color-ink);
  margin: 0;
  text-wrap: balance;
}

.footer-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding-top: 40px;
  border-top: 1px solid var(--color-rule);
}
@media (max-width: 720px) { .footer-meta { grid-template-columns: 1fr; gap: 24px; align-items: start; } }
.footer-meta__wm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1;
}
.wm-bit { color: var(--color-accent); }
.wm-vibe { color: var(--color-accent-3); }
.wm-labs { color: var(--color-muted); }

.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a {
  font-family: var(--font-label);
  font-size: 11.5px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.footer-links a:hover { color: var(--color-accent); }

.footer-copy {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--color-rule-2);
  grid-column: 1 / -1;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-rule);
}

/* ────────────────────────────────────────────────────────────────────────
   PRODUCT MARK ANIMATIONS - inherited from each product's own site,
   tuned to feel at-home on the dark canvas
   ──────────────────────────────────────────────────────────────────────── */
.bvl-anim-chevron { transform-origin: 50% 50%; transform-box: fill-box; animation: bvlChevronLaunch 3.6s var(--ease-out) infinite; }
@keyframes bvlChevronLaunch {
  0%, 45% { transform: translateY(0); opacity: 1; }
  50%     { transform: translateY(2px); opacity: 1; }
  88%     { transform: translateY(-44px); opacity: 0; }
  89%     { transform: translateY(8px); opacity: 0; }
  100%    { transform: translateY(0); opacity: 1; }
}
.bvl-anim-cross { transform-origin: center; transform-box: fill-box; animation: bvlSafePulse 2.6s var(--ease-out) infinite; }
@keyframes bvlSafePulse {
  0%, 100% { opacity: 0.9; transform: scale(0.96); filter: drop-shadow(0 0 0 transparent); }
  50%      { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 6px rgba(24,230,155,0.85)); }
}
.bvl-anim-play { transform-origin: 30% 50%; transform-box: fill-box; animation: bvlPlayPulse 2.6s var(--ease-out) infinite; }
@keyframes bvlPlayPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 6px rgba(255,69,32,0.6)); }
}
.bvl-anim-bar-1, .bvl-anim-bar-2, .bvl-anim-bar-3 { transform-origin: center; transform-box: fill-box; animation: bvlBarWave 1.4s var(--ease-out) infinite; }
.bvl-anim-bar-1 { animation-delay: 0s; }
.bvl-anim-bar-2 { animation-delay: 0.18s; }
.bvl-anim-bar-3 { animation-delay: 0.36s; }
@keyframes bvlBarWave { 0%, 100% { transform: scaleY(0.4); opacity: 0.55; } 50% { transform: scaleY(1); opacity: 1; } }
.bvl-anim-blink { animation: bvlCodeBlink 1.6s steps(2, end) infinite; }
@keyframes bvlCodeBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.45; } }
.bvl-anim-bob { transform-origin: 50px 60px; transform-box: fill-box; animation: bvlBob 3.2s var(--ease-out) infinite; }
@keyframes bvlBob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-3px) rotate(3deg); } }
.bvl-anim-wave { stroke-dasharray: 30 14; stroke-dashoffset: 0; animation: bvlWaveFlow 2.4s linear infinite; }
@keyframes bvlWaveFlow { to { stroke-dashoffset: -44; } }
.bvl-anim-archive { transform-origin: center; transform-box: fill-box; animation: bvlArchiveBob 3.4s var(--ease-out) infinite; }
@keyframes bvlArchiveBob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-1.5px) scale(1.04); } }
.bvl-anim-search { transform-origin: 42px 42px; transform-box: fill-box; animation: bvlSearchSweep 4s var(--ease-out) infinite; }
@keyframes bvlSearchSweep { 0%, 100% { transform: rotate(-8deg) translate(0, 0); } 50% { transform: rotate(10deg) translate(2px, 1px); } }
.bvl-anim-check { stroke-dasharray: 60; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  .bvl-anim-chevron, .bvl-anim-cross, .bvl-anim-play, .bvl-anim-blink,
  .bvl-anim-bob, .bvl-anim-wave, .bvl-anim-archive, .bvl-anim-search,
  .bvl-anim-bar-1, .bvl-anim-bar-2, .bvl-anim-bar-3 { animation: none !important; }
  .bvl-anim-bar-1, .bvl-anim-bar-2, .bvl-anim-bar-3 { opacity: 1; transform: none; }
}

/* ────────────────────────────────────────────────────────────────────────
   MOBILE
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .marquee { padding-top: 132px; padding-bottom: 56px; min-height: 88vh; }
  .marquee__display { font-size: clamp(40px, 14vw, 110px); }
}
@media (max-width: 480px) {
  :root { --gutter: 18px; }
  .alt-banner { font-size: 9.5px; }
  .card { padding: 22px; min-height: 0; }
  .nav { padding: 5px 5px 5px 12px; gap: 6px; }
}

/* Touch-target hygiene */
@media (pointer: coarse), (hover: none) {
  .card, .contact-row, .nav-cta, .signup__btn { touch-action: manipulation; }
}

/* ============================================================
   3D HERO WORDMARK - BitVibe Labs above the marquee display
   Same interaction model as canonical:
   - pointer (mouse) → tilt + glow follows
   - touch          → drag finger to drive tilt
   - DeviceOrientation gyro → tilt without touching (iOS 13+ asks once)
   Adds Liquid-Glass refraction on the wordmark surface.
   ============================================================ */
.hero-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 152px);
  letter-spacing: -0.028em;
  line-height: 0.86;
  text-wrap: balance;
  margin: 0 0 clamp(40px, 6vw, 80px);
  position: relative;
  perspective: 1400px;
  transform-style: preserve-3d;
  touch-action: none;
  cursor: none;
  will-change: transform;
  user-select: none;
  --depth-scale: 0;
  --gx: 50%;
  --gy: 60%;
  /* Liquid-Glass sheen layer on top of the type */
  isolation: isolate;
}
.hero-wordmark .wm-3d {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 700ms var(--ease-out);
  will-change: transform;
}
.hero-wordmark .word {
  display: inline-block;
  white-space: nowrap;
  transform-style: preserve-3d;
}
.hero-wordmark .word.bit  { color: var(--color-accent); }
.hero-wordmark .word.vibe { color: oklch(68% 0.18 35); }
.hero-wordmark .word.labs { color: var(--color-muted); }

.hero-wordmark .ch {
  display: inline-block;
  /* Two stacked Z translates: base depth (bell curve across the word) +
     proximity-z (boost when cursor is near this specific char). */
  transform:
    translateZ(calc(var(--depth, 0) * 1.6px * var(--depth-scale, 0)))
    translateZ(var(--proximity-z, 0px));
  transition:
    transform 280ms var(--ease-out),
    text-shadow 300ms var(--ease-out);
  will-change: transform;
}
.hero-wordmark.engaged .ch {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 22px oklch(72% 0.17 200 / 0.55);
}
/* ============================================================
   VIEWPORT SPOTLIGHT - replaces the old `.hero-wordmark::before`
   which was clipped to the wordmark's bounding box (that's the
   visible "row rectangle" the user reported).

   The spotlight is a fixed-position element at z:11 (ABOVE content
   at z:10) so `mix-blend-mode: screen` actually blends with the
   text/cards/marquee - not just the canvas. JS writes --mx/--my
   on :root from rAF-throttled mousemove (cheap integer-px updates).

   GOTCHA: mix-blend-mode is silently disabled by any ancestor with
   `isolation: isolate` or a `filter:`. The spotlight is body-level,
   so today's `.glass`/.nav `backdrop-filter` doesn't break it. If a
   future change wraps content in a `filter:` container, the screen
   blend will stop reaching that subtree.
   ============================================================ */
.cursor-spotlight {
  position: fixed; inset: 0;
  z-index: 11;
  pointer-events: none;
  /* 2026-05-24 red-flip: cyan radial → scarlet radial */
  background: radial-gradient(
    900px circle at var(--mx, 50%) var(--my, 50%),
    oklch(67% 0.22 28 / 0.16) 0%,
    oklch(58% 0.18 12 / 0.06) 35%,
    transparent 65%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 380ms var(--ease-out);
}
body.spotlight-on .cursor-spotlight { opacity: 1; }

@media (pointer: coarse), (hover: none),
       (prefers-reduced-motion: reduce) {
  .cursor-spotlight { display: none !important; }
}

@media (max-width: 720px) {
  .hero-wordmark { font-size: clamp(56px, 16vw, 132px); margin-bottom: 32px; cursor: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wordmark .ch { transform: none !important; transition: none; text-shadow: none; }
  .hero-wordmark .wm-3d { transform: none !important; transition: none; }
}

/* ============================================================
   iOS 26 LIQUID GLASS - applied to nav, banner, cards, contact rows,
   signup row. Translucent material + backdrop blur + edge specular +
   inset shadow for depth. Stacks above the Aurora canvas.
   ============================================================ */

/* Generic glass utility (used as base layer where mixed in) */
.glass {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 60%,
    rgba(31, 184, 255, 0.04) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 24px 60px -24px rgba(0, 0, 0, 0.6);
}

/* Nav pill - full Liquid-Glass refraction */
.nav {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(31, 184, 255, 0.04) 100%);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 16px 48px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(31, 184, 255, 0.04);
}
.nav-pill__link:hover {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

/* Top alt banner - thinner glass strip */
.alt-banner {
  background: linear-gradient(180deg,
    rgba(8, 18, 26, 0.72) 0%,
    rgba(8, 18, 26, 0.55) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20);
}

/* Cards - Liquid-Glass tier with refraction + dual highlight */
.card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.015) 50%,
    rgba(31, 184, 255, 0.025) 100%);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 30px 60px -30px rgba(0, 0, 0, 0.5);
}
.card:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.025) 50%,
    oklch(60% 0.12 var(--card-hue, 200) / 0.10) 100%);
  border-color: oklch(60% 0.14 var(--card-hue, 200) / 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 36px 80px -24px oklch(40% 0.18 var(--card-hue, 200) / 0.5),
    0 0 0 1px oklch(60% 0.12 var(--card-hue, 200) / 0.20);
}

/* Phase pills - small glass pellets */
.card__phase {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 100%);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

/* Contact rows - light glass cards */
.contact-row {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.015) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}
.contact-row:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(31, 184, 255, 0.05) 100%);
  border-color: rgba(31, 184, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16),
    0 12px 32px -12px oklch(50% 0.15 200 / 0.4);
}

/* Signup row - glass pill */
.signup__row {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 12px 32px -12px rgba(0, 0, 0, 0.5);
}
.signup__row:focus-within {
  border-color: var(--color-accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 0 0 4px oklch(72% 0.17 200 / 0.20),
    0 0 32px -4px oklch(72% 0.17 200 / 0.40);
}

/* CTA button on glass - keep solid accent but add specular */
.nav-cta, .signup__btn {
  position: relative;
  overflow: hidden;
}
.nav-cta::after, .signup__btn::after {
  content: "";
  position: absolute;
  inset: 0 0 50% 0;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

/* When body has cursor-hover class, slightly slow the card tilt so the
   ring + tilt feel synchronized */
body.cursor-hover .card { transition-duration: 480ms; }

/* ============================================================
   PORTFOLIO CARD STAGGER REVEAL - one-by-one as user scrolls
   Cards start translated down with rotateY tilt, then settle into
   place when IntersectionObserver fires .in. Per-card --rd delay
   is set inline by JS so columns cascade 0 / 110 / 220 ms.
   ============================================================ */
.reveal-card {
  opacity: 0;
  transform: translate3d(0, 32px, -60px) rotateX(8deg);
  transform-origin: 50% 100%;
  transition:
    opacity   780ms var(--ease-out),
    transform 980ms cubic-bezier(0.16, 0.84, 0.32, 1);
  transition-delay: var(--rd, 0ms);
}
.reveal-card.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-card { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   GLASS AMP - make the card glassmorphism more visible.
   Stronger saturated tint, brighter top edge, deeper inset shadow.
   ============================================================ */
.card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.025) 50%,
    oklch(45% 0.10 var(--card-hue, 200) / 0.06) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.card:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    oklch(60% 0.15 var(--card-hue, 200) / 0.14) 100%);
  border-color: oklch(60% 0.16 var(--card-hue, 200) / 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 48px 100px -28px oklch(40% 0.18 var(--card-hue, 200) / 0.6),
    0 0 0 1px oklch(60% 0.14 var(--card-hue, 200) / 0.28);
}

/* Top-edge specular highlight on cards - sells the glass material */
.card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 50%;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0) 60%);
  pointer-events: none;
  z-index: 1;
}

/* portfolio grid needs preserve-3d so card tilt has actual depth */
.portfolio-grid { transform-style: preserve-3d; }
.card { transform-style: preserve-3d; }
.card > * { position: relative; z-index: 2; }

/* ============================================================
   FOCUS-VISIBLE RINGS - keyboard-only accessibility
   Tab-cycle through the page leaves a visible cyan ring on every
   interactive surface. Ring uses the same Liquid-Glass language -
   accent outline + soft glow - so it reads as native to the design,
   not a default-browser intrusion.
   ============================================================ */
:focus-visible { outline: none; }

.card:focus-visible,
.nav-pill__link:focus-visible,
.nav-brand:focus-visible,
.nav-cta:focus-visible,
.contact-row:focus-visible,
.signup__btn:focus-visible,
.footer-links a:focus-visible {
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 0 3px var(--color-paper),
    0 0 0 5px var(--color-accent),
    0 0 24px -2px var(--color-accent);
  border-color: var(--color-accent);
  position: relative;
  z-index: 11;
}
.alt-banner__text a:focus-visible,
.signup__fineprint a:focus-visible,
.intro-side a:focus-visible,
.now-log__item a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.signup__input:focus-visible {
  outline: none; /* the wrapping .signup__row already shows focus state via :focus-within */
}

/* ============================================================
   LOADING STATE on the signup submit - spinner inside the button
   when JS sets [data-state="loading"] on it. Disabled attribute
   alone reads as 'broken' to users; spinner says 'working'.
   ============================================================ */
.signup__btn[data-state="loading"] {
  cursor: progress;
  position: relative;
}
.signup__btn[data-state="loading"] > span,
.signup__btn[data-state="loading"] > svg {
  opacity: 0;
  transition: opacity 160ms var(--ease-out);
}
.signup__btn[data-state="loading"]::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(11, 12, 16, 0.25);
  border-top-color: var(--color-paper);
  animation: signupSpin 720ms linear infinite;
}
@keyframes signupSpin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .signup__btn[data-state="loading"]::before { animation: none; border-top-color: var(--color-paper); }
}

/* ============================================================
   CONTRAST FIX - bump --color-rule-2 so the hint label + footer
   muted text pass WCAG AA contrast (≥4.5:1) on the Aurora canvas.
   Was oklch(38% 0.024 200) ≈ 2.5:1 - borderline for non-text UI.
   ============================================================ */
:root, [data-theme="aurora"] {
  --color-rule-2: oklch(50% 0.022 200); /* upgraded from 38% - now ~3.8:1 for UI, fine */
}

/* ============================================================
   CURSOR FORCE - beat UA stylesheet's <a href>:pointer default
   so hovering cards/links never shows the OS hand cursor.
   Targeted !important is safe here because the entire visible
   cursor is the glass ring + dot we render in JS.
   ============================================================ */
.card, .card *,
.nav-pill__link, .nav-cta, .nav-brand,
.contact-row, .contact-row *,
.signup__btn, .signup__input,
.footer-links a, .alt-banner a,
.intro-side a, .now-log__item a, .signup__fineprint a,
a[href], button {
  cursor: none !important;
}
@media (pointer: coarse), (hover: none) {
  .card, .card *, .nav-pill__link, .nav-cta, .nav-brand,
  .contact-row, .contact-row *, .signup__btn, .signup__input,
  .footer-links a, .alt-banner a, .intro-side a,
  .now-log__item a, .signup__fineprint a, a[href], button {
    cursor: auto !important;  /* mobile uses native cursor */
  }
}

/* ============================================================
   iOS TOUCH-TARGET HYGIENE - every interactive surface ships
   ≥ 44×44 px tap region, touch-action: manipulation to skip
   the 300ms tap delay, and a transparent tap highlight so iOS
   doesn't flash its default grey overlay on tap.
   ============================================================ */
.nav-pill__link,
.nav-cta,
.nav-brand,
.alt-banner a,
.contact-row,
.signup__btn,
.footer-links a,
.card {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-pill__link {
  /* From 8px×14px (~27×50) → 12px×16px with min-height (40×52) */
  padding: 12px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta {
  min-height: 44px;
  padding: 11px 18px;
  display: inline-flex; align-items: center; gap: 8px;
}
.alt-banner a {
  padding: 2px 4px;
  display: inline-block;
}
.footer-links a {
  padding: 6px 0;
  display: inline-block;
}

/* ============================================================
   NAV / ALT-BANNER STACKING FIX
   The alt-banner (z:200) sits at top:0 and extends ~30px. The
   nav (z:100) was at top:28-44px - overlap meant the top edge
   of the nav-pill links was occluded by the higher-z banner,
   causing clicks to land on the banner instead of the nav.
   Fix: push nav clear of banner with a generous margin.
   Also bumps the nav's z above the banner so it wins on overlap.
   ============================================================ */
.alt-banner { z-index: 90; }   /* was 200 - drop below nav */
.nav { top: 52px; z-index: 200; }  /* clear of the ~30px banner + 22px breathing room */

@media (max-width: 720px) {
  .alt-banner { padding: 5px 8px; font-size: 9.5px; }
  .nav { top: 38px; }
}

/* ============================================================
   NAV LINKS - bigger desktop click targets so we don't need
   pixel-perfect aim. 11px font + 12px padding gave ~82×44 px;
   bumping to 13px font + 14px×18px padding yields ~110×46 px.
   ============================================================ */
.nav-pill { gap: 2px; }
.nav-pill__link {
  padding: 14px 18px;
  min-height: 46px;
  min-width: 88px;
  justify-content: center;
  font-size: 12px;
  border-radius: var(--radius-pill);
}
.nav-pill__link:hover {
  background: rgba(255, 255, 255, 0.10);
  color: var(--color-ink);
}

/* ============================================================
   HAMBURGER BUTTON - visible only on mobile/narrow widths
   ============================================================ */
.nav-menu-btn {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  cursor: none;
  position: relative;
  flex-shrink: 0;
  align-items: center; justify-content: center;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.nav-menu-btn:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.28); }
.nav-menu-btn__lines {
  position: relative;
  width: 18px; height: 12px;
  display: inline-block;
}
.nav-menu-btn__lines > span {
  position: absolute; left: 0; right: 0; height: 2px;
  background: var(--color-ink);
  border-radius: 1px;
  transition: transform 240ms var(--ease-out), opacity 200ms var(--ease-out), top 240ms var(--ease-out);
}
.nav-menu-btn__lines > span:nth-child(1) { top: 0; }
.nav-menu-btn__lines > span:nth-child(2) { top: 5px; }
.nav-menu-btn__lines > span:nth-child(3) { top: 10px; }
.nav-menu-btn[aria-expanded="true"] .nav-menu-btn__lines > span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-menu-btn[aria-expanded="true"] .nav-menu-btn__lines > span:nth-child(2) { opacity: 0; }
.nav-menu-btn[aria-expanded="true"] .nav-menu-btn__lines > span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .nav-menu-btn { display: inline-flex; }
  .nav-pill { display: none; }
  .nav-cta { display: none; }   /* dedicated CTA inside the drawer instead */
  .nav { padding: 6px 8px 6px 16px; gap: 8px; }
}

/* ============================================================
   NAV DRAWER - mobile menu panel (glass) under the nav
   ============================================================ */
.nav-drawer {
  position: fixed;
  top: 92px; left: 20px; right: 20px;
  z-index: 199;
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(31, 184, 255, 0.06) 100%);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 28px 64px -16px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  transition: opacity 280ms var(--ease-out), transform 280ms var(--ease-out);
}
.nav-drawer[data-open="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.nav-drawer[hidden] { display: none; }

.nav-drawer__link {
  display: flex; align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 200ms var(--ease-out);
}
.nav-drawer__link:hover { background: rgba(255, 255, 255, 0.06); }
.nav-drawer__link:active { background: rgba(255, 255, 255, 0.10); }
.nav-drawer__link--quiet {
  font-size: 13px;
  font-family: var(--font-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
  padding-top: 16px;
}

@media (min-width: 721px) {
  .nav-menu-btn, .nav-drawer { display: none !important; }
}
@media (max-width: 720px) {
  .nav-drawer__link { cursor: auto; }
}

/* ============================================================
   WORDMARK ONE-LINE ON MOBILE + scroll-driven 3D (mobile)
   - Force a single line via white-space: nowrap on the .wm-3d
     span and a font-size cap that comfortably fits at 320px.
   - Strip the touch interaction visual cue (.engaged is now set
     persistently by the scroll-tilt init on mobile).
   ============================================================ */
@media (max-width: 720px) {
  .hero-wordmark {
    /* Cap so "BitVibe Labs" fits on one line at 320px wide
       (largest constraint: ~11 char count × font-size ≈ viewport width). */
    font-size: clamp(40px, 10vw, 76px);
    letter-spacing: -0.022em;
    margin-bottom: 32px;
    cursor: auto;
    touch-action: pan-y; /* don't intercept vertical scroll on the wordmark */
  }
  .hero-wordmark .wm-3d {
    display: inline-block;
    white-space: nowrap;
    transition: transform 220ms var(--ease-out);
  }
  .hero-wordmark .ch {
    /* Faster char transitions on mobile so scroll-driven Z is responsive */
    transition: transform 180ms var(--ease-out);
  }
}
@media (max-width: 400px) {
  .hero-wordmark { font-size: clamp(34px, 11vw, 56px); }
}

/* ============================================================
   2026-05-24 - minimal nav override
   Brand wordmark, CTA, hamburger button, and mobile drawer were
   removed per user direction. The top nav now shows only the
   three section links (Portfolio / Now shipping / Contact).
   These rules force the pill visible at every viewport and center
   it within the nav row.
   ============================================================ */
.nav-brand, .nav-cta, .nav-menu-btn, .nav-drawer { display: none !important; }
.nav.nav--minimal {
  justify-content: center;
  gap: 0;
  padding: 6px 10px;
}
.nav.nav--minimal .nav-pill { display: flex !important; }
@media (max-width: 720px) {
  .nav.nav--minimal { top: 22px; padding: 4px 8px; }
  .nav.nav--minimal .nav-pill { gap: 0; }
  .nav.nav--minimal .nav-pill__link { font-size: 11px; padding: 8px 10px; }
}
@media (max-width: 400px) {
  .nav.nav--minimal .nav-pill__link { font-size: 10.5px; padding: 7px 8px; }
}

/* ============================================================
   2026-05-24 - BitVibe Labs trademark signature colors.
   Every visible "BitVibe Labs" mention (hero, footer, signup
   fineprint) renders as the locked tri-color wordmark:
     Bit  = #1FB8FF (cyan)
     Vibe = #FF4520 (scarlet)
     Labs = #B0A29A (warm taupe)
   The hero keeps its 3D character lift + cursor tilt motion;
   only the per-word colors change.
   ============================================================ */
.hero-wordmark .word.bit  { color: var(--bit); }
.hero-wordmark .word.vibe { color: var(--vibe); }
.hero-wordmark .word.labs { color: var(--labs); }
/* 2026-05-24 italic across every trademark mention. */
.hero-wordmark .word { font-style: italic; }

/* Inline wordmark used in body copy (signup fineprint, footer copy, etc.). */
.bvl-mark { white-space: nowrap; font-style: italic; font-weight: 600; letter-spacing: -0.01em; }
