/* =========================================
   ASTERIZER - Main Stylesheet
   Theme: Light Grey (Yamaha R1 style) + Royal White
   ========================================= */

/* === CSS Variables === */
:root {
  --bg-primary: #3a3a38;
  --bg-secondary: #323230;
  --bg-tertiary: #2a2a28;
  --bg-card: #42423f;
  --bg-card-hover: #4a4a46;
  --bg-dark: #1c1c1a;

  --text-primary: #f0f0ee;
  --text-secondary: #c6c6c0;
  --text-muted: #95958f;
  --text-dark: #e0e0da;

  --accent-primary: #cfd0c9;
  --accent-rgb: 199, 200, 193;
  --accent-gradient: linear-gradient(135deg, #f0f0ee 0%, #c9cac3 50%, #95958f 100%);
  --accent-glow: rgba(199, 200, 193, 0.3);

  --white: #ffffff;
  --royal-white: #f1f1ec;
  --pure-white: #fafaf6;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.25);
  --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(199, 200, 193, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;

  --container-max: 1200px;
  --section-padding: 100px;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === Single-page view swap === */
#spa-view.spa-anim {
  animation: spa-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes spa-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#spa-view.spa-loading { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) {
  #spa-view.spa-anim { animation: none; }
}

/* === No text selection / no element dragging (site-wide) ===
   Mirrors the "locked" feel of a polished product site. Form fields stay
   editable so anything typeable still works. */
html {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}
img, a, svg, picture, video {
  -webkit-user-drag: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  font-size: 16px;
  /* prevent iOS text inflation on orientation change; kill the grey tap-flash */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Snappier taps (no 300ms delay) on interactive controls across platforms */
a, button, .btn, .hamburger, [role="button"], input, select, textarea {
  touch-action: manipulation;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* === Container === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* === Section === */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-primary);
  background: rgba(232, 232, 227, 0.1);
  border: 1px solid rgba(232, 232, 227, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Title highlighter marker === */
.hero-title .gradient-text,
.page-title .gradient-text {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hero-title .gradient-text::after,
.page-title .gradient-text::after {
  content: "";
  position: absolute;
  left: -0.1em;
  right: -0.1em;
  bottom: 0.05em;
  height: 0.34em;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0) 0%, rgba(var(--accent-rgb), 0.4) 45%, rgba(var(--accent-rgb), 0.12) 100%);
  border-radius: 0.25em;
  transform: scaleX(0);
  transform-origin: left center;
  z-index: -1;
  animation: highlight-sweep 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes highlight-sweep {
  to { transform: scaleX(1); }
}

/* === Emphasize the "AI" hiding inside ASTERIZER (the A and the I) === */
.brand-ai .ai-em {
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 0 18px rgba(var(--accent-rgb), 0.7);
  animation: aiEmPulse 3s ease-in-out infinite;
}
@keyframes aiEmPulse {
  0%, 100% { text-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45); }
  50%      { text-shadow: 0 0 24px rgba(var(--accent-rgb), 0.9); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-ai .ai-em { animation: none !important; }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  opacity: 0;
  transition: var(--transition-base);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-dark);
  box-shadow: var(--shadow-md), 0 0 20px rgba(232, 232, 227, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(232, 232, 227, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid rgba(244, 244, 239, 0.3);
}

.btn-ghost:hover {
  background: rgba(244, 244, 239, 0.05);
  border-color: rgba(244, 244, 239, 0.5);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.btn-nav {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
  min-height: 72px;
  padding: 8px 26px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  /* a solid, squared-off "box" CTA that visually balances the logo on the left */
  border-radius: 12px;
  /* Windows-Aero "glass" surface: glossy top half, faint dark bottom,
     bright inner rim - sits on top of the platinum accent gradient. */
  background: 
    linear-gradient(180deg, 
      rgba(255, 255, 255, 0.5) 0%, 
      rgba(255, 255, 255, 0.12) 47%, 
      rgba(255, 255, 255, 0) 50%, 
      rgba(0, 0, 0, 0.05) 100%),
    var(--accent-gradient);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(232, 232, 227, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
  isolation: isolate;
}
/* glass sheen that sweeps across like an Aero highlight (and speeds up on hover) */
.btn-nav::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 65%;
  height: 100%;
  background: linear-gradient(100deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0) 28%, 
    rgba(255, 255, 255, 0.75) 50%, 
    rgba(255, 255, 255, 0) 72%, 
    transparent 100%);
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 2;
  animation: navSheen 4.6s ease-in-out infinite;
}
@keyframes navSheen {
  0%   { left: -140%; }
  16%  { left: 140%; }
  100% { left: 140%; }
}
.btn-nav:hover {
  transform: translateY(-2px) scale(1.02);
}
.btn-nav:hover::after {
  animation-duration: 1.1s;
}
/* two-line CTA content: a small eyebrow over the main label */
.btn-nav-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--bg-dark);
  opacity: 0.66;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.btn-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
  position: relative;
  z-index: 1;
}
.btn-nav-label i { font-size: 0.82rem; transition: transform var(--transition-base); }
.btn-nav:hover .btn-nav-label i { transform: translateX(3px); }
.btn-nav-sub {
  font-size: 0.62rem;
  letter-spacing: 0.3px;
  font-weight: 600;
  font-style: italic;
  color: var(--bg-dark);
  opacity: 0.62;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* === Navigation - stacked centered wordmark over a centered menu,
   collapsing on scroll to a compact left-logo bar that inverts to white. === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0 16px;
  transition: padding var(--transition-slow), background var(--transition-slow),
              box-shadow var(--transition-slow), border-color var(--transition-slow),
              left var(--transition-slow), right var(--transition-slow),
              top var(--transition-slow), border-radius var(--transition-slow);
  background: transparent;
  border: 1px solid transparent;
}

/* ===== Clear water glass: highly transparent, barely-there blur,
   a clean rim highlight. No heavy frost, no warping. ===== */
.navbar.scrolled {
  left: clamp(10px, 2.4vw, 26px);
  right: clamp(10px, 2.4vw, 26px);
  top: 10px;
  padding: 12px 0;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 10px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 1px rgba(255, 255, 255, 0.35);
}
/* thin glassy sheen along the top edge (clean, not frosted) */
.navbar.scrolled::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 22%);
}

.nav-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
  /* stacked: brand row centered, menu row centered below; the CTA spans BOTH
     rows on the right so it stands as a tall button aligned to the wordmark. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: 
    ". brand actions"
    ". menu actions";
  align-items: center;
  row-gap: 12px;
  transition: row-gap var(--transition-base);
}

/* brand (the floating sci-fi wordmark) */
.nav-logo {
  grid-area: brand;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-spring), justify-self 0s;
  transform-origin: center top;
}
.nav-actions { grid-area: actions; }
.nav-menu { grid-area: menu; justify-self: center; }

.logo-icon {
  font-size: 1.5rem;
  color: var(--accent-primary);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 4px rgba(232, 232, 227, 0.3)); }
  50% { opacity: 0.8; filter: drop-shadow(0 0 8px rgba(232, 232, 227, 0.5)); }
}

/* big floating sci-fi wordmark */
.logo-text {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-indent: 0.42em;        /* compensate trailing letter-spacing -> stays centered */
  padding-left: 2px;
  color: var(--text-primary);
  background: linear-gradient(180deg, #ffffff 0%, var(--text-secondary) 60%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 26px rgba(232, 232, 227, 0.28);
  transition: font-size var(--transition-base), letter-spacing var(--transition-base), color var(--transition-base);
  position: relative;
}
/* sci-fi scan sweep across the wordmark */
.logo-text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 220% 100%;
  background-repeat: no-repeat;
  animation: logoScan 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes logoScan {
  0%, 100% { background-position: 140% 0; }
  50%      { background-position: -40% 0; }
}

/* The "A" and "I" inside ASTERIZER - the hidden "AI" - glow with a continuous
   shimmer so the brand quietly reads as an AI company. */
.logo-ai {
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(var(--accent-rgb), 0.85), 0 0 5px rgba(255, 255, 255, 0.7);
  animation: logoAiShimmer 2.4s ease-in-out infinite;
}
.nav-mark-word .logo-ai { -webkit-text-fill-color: #ffffff; }

@keyframes logoAiShimmer {
  0%, 100% { text-shadow: 0 0 7px rgba(var(--accent-rgb), 0.5), 0 0 2px rgba(255, 255, 255, 0.55); }
  50%      { text-shadow: 0 0 22px rgba(var(--accent-rgb), 1), 0 0 9px #ffffff; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-ai { animation: none !important; }
}

.logo-img {
  height: 0; width: 0;        /* nav image not used (corner fold carries the mark) */
  display: none;
}

/* hide the old nav img sizing rules' effect; corner fold handles the logo */
.footer-logo .logo-img {
  display: block;
  height: 44px; width: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* CTA cloned into the slide-in menu by main.js - hidden on desktop, shown on mobile */
.nav-cta-item { display: none; }

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(244, 244, 239, 0.08);
}

.nav-actions {
  display: flex;
  align-items: stretch;
  gap: 16px;
  /* spans the brand + menu rows on the right, so the CTA rises to the
     wordmark's height and reads as a tall, deliberate button */
  grid-area: actions;
  justify-self: end;
  align-self: stretch;
  z-index: 3;
}

/* ---- SCROLLED: stays a centered glass bar (no layout/colour shift) ---- */
.navbar.scrolled .hamburger span { background: var(--text-primary); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  min-height: 100svh; /* small-viewport unit: never cut off behind mobile URL bars */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 200px;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 232, 227, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(148, 148, 142, 0.1) 0%, transparent 70%);
  bottom: -50px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(214, 214, 207, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -20px) scale(1.05); }
  50% { transform: translate(-20px, 30px) scale(0.95); }
  75% { transform: translate(20px, 20px) scale(1.02); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(232, 232, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 232, 227, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 232, 227, 0.1);
  border: 1px solid rgba(232, 232, 227, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.7; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
/* keep the hero CTAs tidy - not full-width slabs */
.hero-cta .btn-lg {
  padding: 13px 26px;
  font-size: 0.98rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(244, 244, 239, 0.15);
}

/* advisor name can link out to their site */
.testimonial-author h4 a {
  color: inherit;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
  transition: color var(--transition-base), border-color var(--transition-base);
}
.testimonial-author h4 a:hover { color: var(--accent-primary); border-color: var(--accent-primary); }

.hero-ai-viz {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 3;             /* sit above the orbs/grid so nothing clips it */
}
.hero-net {
  width: 100%;
  max-width: 720px;
  height: auto;
  display: block;
  overflow: visible;
}
/* attention arcs */
.tf-arc { stroke: var(--accent-primary); stroke-width: 1.2; fill: none; opacity: 0; stroke-linecap: round; transition: opacity 0.3s ease; }
.tf-arc.cap { stroke: #6fe0a8; }
/* travelling "calculation" signal pulses along each attention arc */
.tf-pulse { stroke: var(--accent-primary); stroke-width: 2.6; fill: none; opacity: 0; stroke-linecap: round; filter: drop-shadow(0 0 5px var(--accent-primary)); }
.tf-pulse.cap { stroke: #8affc6; filter: drop-shadow(0 0 6px rgba(111, 224, 168, 0.8)); }
/* token chips - materialise out of nowhere, one by one */
.tf-tok {
  opacity: 0;
  transform: scale(0.45);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tf-tok.in { opacity: 1; transform: scale(1); }
.tf-box { fill: var(--bg-dark); stroke: rgba(var(--accent-rgb), 0.35); stroke-width: 1.2; transition: stroke 0.3s ease, fill 0.3s ease; }
.tf-txt { fill: var(--text-secondary); font-family: var(--font-display); font-size: 12px; font-weight: 600; transition: fill 0.3s ease; }
.tf-tok.on .tf-box { stroke: rgba(var(--accent-rgb), 0.85); fill: rgba(var(--accent-rgb), 0.08); }
.tf-tok.on .tf-txt { fill: var(--text-primary); }
.tf-tok.q .tf-box { stroke: #ffffff; fill: rgba(var(--accent-rgb), 0.16); filter: drop-shadow(0 0 8px var(--accent-glow)); }
.tf-tok.on .tf-txt { fill: var(--text-primary); }
.tf-tok.q .tf-box { stroke: #ffffff; fill: rgba(var(--accent-rgb), 0.16); filter: drop-shadow(0 0 8px var(--accent-glow)); }
/* capability tokens (listens / remembers / helps) - highlighted green */
.tf-tok.cap .tf-box { stroke: rgba(111, 224, 168, 0.4); }
.tf-tok.cap.on .tf-box { stroke: #6fe0a8; fill: rgba(111, 224, 168, 0.12); filter: drop-shadow(0 0 7px rgba(111, 224, 168, 0.45)); }
.tf-tok.cap.on .tf-txt { fill: #d6ffe9; }
/* brand tokens (ASTERIZER / AI / companion) - accent tint when active */
.tf-tok.brand.on .tf-txt { fill: var(--accent-primary); }
/* in-animation section headings */
.tf-zone-label {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  fill: var(--text-muted);
  text-transform: uppercase;
}
.tf-zone-label.pred { fill: #6fe0a8; }
/* predicted token - appears from nothing and GROWS in at the very end */
.tf-pred {
  opacity: 0;
  transform: scale(0.3);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tf-pred.show { opacity: 1; transform: scale(1.06); }
.tf-pred-box { fill: rgba(111, 224, 168, 0.12); stroke: #6fe0a8; stroke-width: 1.4; filter: drop-shadow(0 0 10px rgba(111,224,168,0.4)); }
.tf-pred-txt { fill: #d6ffe9; font-family: var(--font-display); font-size: 13px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) {
  .tf-tok { transition: none !important; opacity: 1; transform: none; }
  .tf-pred { transition: none !important; opacity: 1; transform: none; }
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

.hero-scroll-indicator i {
  font-size: 0.85rem;
  color: var(--text-muted);
  animation: scroll-bob 2s ease-in-out infinite;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(3px); opacity: 0.3; }
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; height: 40px; }
  50% { opacity: 0.5; height: 25px; }
}

/* === Page Hero === */
.page-hero {
  padding: 200px 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* === Services Grid === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card:hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(232, 232, 227, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(232, 232, 227, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: var(--transition-base);
}

.service-card:hover .service-icon {
  background: rgba(232, 232, 227, 0.15);
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.card-link:hover {
  gap: 10px;
}

.card-link i {
  font-size: 0.8rem;
  transition: var(--transition-base);
}

/* === Compact "What's Built" cards - small, whole-card clickable, tidy grid === */
.services-grid-compact {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.services-grid-compact .service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}
.services-grid-compact .service-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 2px;
  font-size: 1.2rem;
}
.services-grid-compact .service-card h3 {
  font-size: 1.04rem;
  margin: 0;
}
.services-grid-compact .card-link {
  margin-top: auto;
  font-size: 0.85rem;
}
.services-grid-compact .service-card:hover .card-link { gap: 10px; }

/* small role meta line on the careers page */
.role-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.role-meta i { color: var(--accent-primary); font-size: 0.72rem; }

/* === About Preview === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content .section-tag {
  display: inline-block;
  margin-bottom: 12px;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  color: var(--accent-primary);
  font-size: 1.2rem;
  margin-top: 2px;
}

.about-feature h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-visual {
  position: relative;
  height: 440px;
}

.about-card-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-visual-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.08);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  width: 232px;
  transition: var(--transition-slow);
  box-shadow: var(--shadow-md);
}

.about-visual-card:hover {
  transform: scale(1.05) !important;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-1 {
  top: 0;
  right: 0;
  animation: float-card 6s ease-in-out infinite;
}

.card-2 {
  top: 150px;
  right: 40px;
  animation: float-card 6s ease-in-out infinite;
}

.card-3 {
  top: 300px;
  right: 80px;
  animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.visual-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.visual-stat i {
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.visual-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.visual-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* === Portfolio Preview (homepage "What We're Building") - always-visible cards === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  perspective: 1400px;
}

.portfolio-item {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.08);
  cursor: pointer;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4), 0 0 28px rgba(var(--accent-rgb), 0.16);
  border-color: rgba(var(--accent-rgb), 0.38);
}

/* icon banner on top - always visible */
.pf-prev-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(232, 232, 227, 0.55);
  background: 
    radial-gradient(circle at 50% 38%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid rgba(244, 244, 239, 0.06);
  transition: transform 0.4s var(--transition-spring), color 0.3s ease;
}
.portfolio-item:hover .pf-prev-icon {
  transform: scale(1.08);
  color: var(--accent-primary);
}

.portfolio-large {
  grid-column: span 2;
  grid-row: span 2;
}

.portfolio-overlay {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px;
  background: none;
  opacity: 1;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

/* "View Product" link, pinned to the bottom so cards line up */
.pf-prev-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: gap 0.25s ease;
}
.portfolio-item:hover .pf-prev-link { gap: 12px; }
.pf-prev-link i { font-size: 0.75rem; }

.portfolio-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.portfolio-overlay p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.section-cta {
  text-align: center;
}

/* === Testimonials === */
.testimonials-slider {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 280px;
}

.testimonial-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-xl);
  padding: 40px;
  opacity: 0;
  transform: translateX(40px);
  transition: var(--transition-slow);
  pointer-events: none;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-stars {
  margin-bottom: 20px;
  color: #f0c040;
  font-size: 0.9rem;
  display: flex;
  gap: 4px;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg-dark);
}

.testimonial-author h4 {
  font-size: 1rem;
  font-weight: 600;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.test-nav-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(244, 244, 239, 0.2);
  cursor: pointer;
  transition: var(--transition-base);
}

.test-nav-btn.active {
  background: var(--accent-primary);
  width: 28px;
  border-radius: var(--radius-full);
}

/* === CTA Section === */
.cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(232, 232, 227, 0.1);
  border-radius: var(--radius-xl);
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(232, 232, 227, 0.05) 0%, transparent 50%);
  animation: rotate-cta 20s linear infinite;
}

@keyframes rotate-cta {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* === Footer === */
.footer {
  background: var(--bg-tertiary);
  border-top: 1px solid rgba(244, 244, 239, 0.05);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* footer wordmark is now standalone (logo image removed) - size it sensibly
   instead of inheriting the giant 2.4rem nav wordmark. */
.footer-logo .logo-text {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  padding-left: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(244, 244, 239, 0.05);
  border: 1px solid rgba(244, 244, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.social-link:hover {
  background: rgba(232, 232, 227, 0.15);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(244, 244, 239, 0.05);
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* === About Page Specific === */
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-content h2 {
  text-align: left;
}

.story-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition-base);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border-color: rgba(232, 232, 227, 0.15);
}

.stat-big-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.value-icon {
  width: 64px;
  height: 64px;
  background: rgba(232, 232, 227, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--accent-primary);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  transition: var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

.team-avatar {
  margin-bottom: 20px;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.team-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.85rem;
  color: var(--accent-primary);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.team-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(244, 244, 239, 0.05);
  border: 1px solid rgba(244, 244, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.team-social a:hover {
  background: rgba(232, 232, 227, 0.15);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Single shared "follow the team" link group above the discipline cards */
.team-connect {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgba(244, 244, 239, 0.12);
  border-radius: var(--radius-full);
  background: rgba(244, 244, 239, 0.03);
}
.team-connect-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}
.team-connect-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(244, 244, 239, 0.05);
  border: 1px solid rgba(244, 244, 239, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
}
.team-connect-link:hover {
  background: rgba(232, 232, 227, 0.15);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), rgba(232, 232, 227, 0.1));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-marker {
  position: absolute;
  left: -34px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 4px var(--bg-primary), 0 0 6px rgba(232, 232, 227, 0.3);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-base);
}

.timeline-content:hover {
  border-color: rgba(232, 232, 227, 0.15);
  box-shadow: var(--shadow-sm);
}

.timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(232, 232, 227, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* === Services Page Specific === */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  perspective: 1200px;
}

.service-detail-card {
  position: relative;
  isolation: isolate;
  background: 
    radial-gradient(120% 80% at 50% -10%, rgba(var(--accent-rgb), 0.10), transparent 60%),
    linear-gradient(180deg, var(--bg-card), var(--bg-tertiary));
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}
/* holographic tech-grid backdrop */
.service-detail-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(var(--accent-rgb), 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000, transparent 72%);
  opacity: 0.45;
  transition: opacity 0.4s ease;
}
.service-detail-card:hover::before { opacity: 1; }
/* scan beam that sweeps the top edge on hover */
.service-detail-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary) 50%, transparent);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.service-detail-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--accent-rgb), 0.14);
}
.service-detail-card:hover::after {
  opacity: 0.95;
  animation: svc-scan 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes svc-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* reactor-style glowing icon with a ring that ignites on hover */
.service-detail-icon {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: radial-gradient(circle at 50% 40%, rgba(var(--accent-rgb), 0.22), rgba(var(--accent-rgb), 0.05));
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--accent-primary);
  box-shadow: inset 0 0 14px rgba(var(--accent-rgb), 0.18);
  transition: transform 0.4s var(--transition-spring), box-shadow 0.4s ease;
}
.service-detail-icon::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(var(--accent-rgb), 0.7) 86%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}
.service-detail-card:hover .service-detail-icon {
  transform: scale(1.06);
  box-shadow: inset 0 0 14px rgba(var(--accent-rgb), 0.25), 0 0 22px rgba(var(--accent-rgb), 0.3);
}
.service-detail-card:hover .service-detail-icon::before {
  opacity: 1;
  animation: svc-ring 3s linear infinite;
}
@keyframes svc-ring { to { transform: rotate(360deg); } }

.service-detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.service-detail-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-features {
  flex: 1;
  margin-bottom: 24px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(244, 244, 239, 0.04);
}

.service-features li:last-child {
  border-bottom: none;
}

.service-features li i {
  color: var(--accent-primary);
  font-size: 0.8rem;
}

.service-detail-footer {
  margin-top: auto;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.process-step {
  text-align: center;
  padding: 32px;
  position: relative;
}

.process-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  margin-bottom: 16px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: rgba(232, 232, 227, 0.3);
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: var(--bg-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244, 244, 239, 0.06);
}

.pricing-header h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-currency {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-features {
  flex: 1;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-features li i {
  color: var(--accent-primary);
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* === Portfolio Page Specific === */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Locked / not-yet-released use cases */
.portfolio-full-content.is-locked .portfolio-full-image { position: relative; }
.portfolio-full-content.is-locked .portfolio-full-image::after {
  content: "\f023";                 /* lock */
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; top: 12px; right: 12px;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; color: var(--text-secondary);
  background: rgba(20, 20, 18, 0.6);
  border: 1px solid rgba(244, 244, 239, 0.16);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btn.pf-locked {
  background: rgba(244, 244, 239, 0.07);
  color: var(--text-muted);
  border: 1px solid rgba(244, 244, 239, 0.16);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}
.btn.pf-locked i { font-size: 0.72rem; margin-right: 3px; }

.filter-btn {
  padding: 8px 20px;
  border: 1px solid rgba(244, 244, 239, 0.1);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
  background: rgba(232, 232, 227, 0.1);
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.portfolio-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  perspective: 1400px;
}

.portfolio-full-item {
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

.portfolio-full-item.hidden {
  display: none;
}

.portfolio-full-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

/* CSS fallback lift (JS adds pointer-tracking 3D tilt on top, desktop only) */
@media (hover: hover) {
  .portfolio-full-content:hover {
    transform: translateY(-8px) scale(1.015);
  }
}
.portfolio-full-content:hover {
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45), 0 0 32px rgba(var(--accent-rgb), 0.18);
  border-color: rgba(var(--accent-rgb), 0.4);
}

/* icon banner at the top - always visible */
.portfolio-full-image {
  height: 148px;
  flex-shrink: 0;
}

.portfolio-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: 
    radial-gradient(circle at 50% 38%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
  border-bottom: 1px solid rgba(244, 244, 239, 0.06);
  font-size: 2.6rem;
  color: rgba(232, 232, 227, 0.55);
  transition: transform 0.4s var(--transition-spring), color 0.3s ease;
}
.portfolio-full-content:hover .portfolio-placeholder {
  transform: scale(1.08);
  color: var(--accent-primary);
}

/* card body - now part of the normal flow, fully visible (no hover-reveal) */
.portfolio-full-overlay {
  position: static;
  inset: auto;
  background: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 26px;
  opacity: 1;
}

.portfolio-full-content:hover .portfolio-full-overlay {
  opacity: 1;
}

.portfolio-category-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-full-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.portfolio-full-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.portfolio-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.portfolio-tech span {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: rgba(232, 232, 227, 0.1);
  border: 1px solid rgba(232, 232, 227, 0.2);
  border-radius: var(--radius-full);
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  transition: transform 0.25s ease;
}
.portfolio-tech span i { font-size: 0.72rem; }
.portfolio-tech span:hover { transform: translateY(-2px); }

/* keep "View Details" pinned to the bottom so cards line up neatly */
.portfolio-full-overlay .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* === Contact Page Specific === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.contact-form-wrapper h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form-wrapper > p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* === Live notice toast (contact form isn't connected yet) === */
.contact-form-wrapper { position: relative; }

/* ===== Locked contact form: disabled fields + a notice that follows the cursor ===== */
.form-shell { position: relative; }
.contact-form input:disabled,
.contact-form select:disabled,
.contact-form textarea:disabled,
.contact-form button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.form-lock {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: not-allowed;
  border-radius: var(--radius-lg);
  background: transparent;
}
.form-cursor-modal {
  position: fixed;
  left: 0; top: 0;
  z-index: 4000;
  max-width: 260px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(28, 28, 26, 0.95);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 26px rgba(var(--accent-rgb), 0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-cursor-modal.show { opacity: 1; transform: translateY(0) scale(1); }
.form-cursor-modal.bump { transform: translateY(0) scale(1.05); }
.form-cursor-modal[hidden] { display: none; }
.fcm-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-primary);
}
.fcm-body { display: flex; flex-direction: column; gap: 2px; line-height: 1.4; }
.fcm-body strong { font-size: 0.85rem; color: var(--text-primary); }
.fcm-body span { font-size: 0.76rem; color: var(--text-muted); }
.fcm-body a { color: var(--accent-primary); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .form-cursor-modal { transition: opacity 0.15s ease; transform: none; }
  .form-cursor-modal.show, .form-cursor-modal.bump { transform: none; }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid rgba(244, 244, 239, 0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: var(--transition-base);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(232, 232, 227, 0.1);
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239898a8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* iOS auto-zooms any focused field whose text is < 16px. Force 16px on
   touch widths so tapping a field never zooms/janks the layout. */
@media (max-width: 768px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

.form-success {
  text-align: center;
  padding: 48px;
}

.success-icon {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
}

/* Contact Info */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-info-card > p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 232, 227, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact-detail-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail-item p,
.contact-detail-item a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-detail-item a:hover {
  color: var(--accent-primary);
}

.contact-social h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.social-links-row {
  display: flex;
  gap: 12px;
}

.social-link-lg {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(244, 244, 239, 0.05);
  border: 1px solid rgba(244, 244, 239, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.social-link-lg svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: currentColor;
}
.social-link-hf {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 210, 30, 0.45);
  color: inherit;
}
.social-link-hf:hover {
  background: rgba(255, 210, 30, 0.1);
  border-color: rgba(255, 210, 30, 0.58);
}
.social-link-hf .hf-mark {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: none;
}

.social-link-lg:hover {
  transform: translateY(-3px);
}

/* Real brand colours shown by default; hover shifts to a lighter outlined state. */
.social-link-lg[aria-label*="LinkedIn"] {
  background: #0a66c2;
  border-color: #0a66c2;
  color: #fff;
}
.social-link-lg[aria-label*="LinkedIn"]:hover {
  background: rgba(10, 102, 194, 0.08);
  border-color: rgba(10, 102, 194, 0.45);
  color: #0a66c2;
}

.social-link-lg[aria-label*="Twitter"],
.social-link-lg[aria-label*="X "] {
  background: #000;
  border-color: #000;
  color: #fff;
}
.social-link-lg[aria-label*="Twitter"]:hover,
.social-link-lg[aria-label*="X "]:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.32);
  color: #f3f3f3;
}

.social-link-lg[aria-label*="Facebook"] {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.social-link-lg[aria-label*="Facebook"]:hover {
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.48);
  color: #1877f2;
}

.social-link-lg[aria-label*="Instagram"] {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 65%, #285aeb 100%);
  border-color: rgba(214, 36, 159, 0.65);
  color: #fff;
}
.social-link-lg[aria-label*="Instagram"]:hover {
  background: rgba(214, 36, 159, 0.08);
  border-color: rgba(214, 36, 159, 0.45);
  color: #e1306c;
}

.social-link-lg[aria-label*="Hugging Face"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 210, 30, 0.45);
  color: #1a1a1a;
}
.social-link-lg[aria-label*="Hugging Face"]:hover {
  background: rgba(255, 210, 30, 0.1);
  border-color: rgba(255, 210, 30, 0.5);
  color: #ffd21e;
}

.map-placeholder {
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-xl);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(rgba(232, 232, 227, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 232, 227, 0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.map-overlay {
  text-align: center;
  position: relative;
  z-index: 2;
}

.map-overlay i {
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.map-overlay p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* FAQ */
.faq-grid {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(244, 244, 239, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: rgba(232, 232, 227, 0.15);
}

.faq-item.active {
  border-color: rgba(232, 232, 227, 0.2);
  background: var(--bg-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition-base);
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
}

.faq-question i {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: var(--transition-base);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Animations === */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate="fade-right"] {
  transform: translateX(-30px);
}

[data-animate="fade-left"] {
  transform: translateX(30px);
}

[data-animate].animated {
  opacity: 1;
  transform: translate(0, 0);
}

/* === Legal pages (Privacy / Terms) === */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(244, 244, 239, 0.08);
  border-radius: var(--radius-lg);
  padding: 48px;
}

.legal-updated {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.legal-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(244, 244, 239, 0.06);
}

.legal-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-content li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent-primary);
  font-weight: 600;
}

.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--text-primary); }
.legal-note {
  margin-top: 28px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.07);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.legal-note i { color: var(--accent-primary); margin-right: 6px; }
.legal-foot-links { margin-top: 30px; }
@media (max-width: 600px) {
  .legal-content { padding: 28px 22px; }
}

/* === Responsive === */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-visual {
    height: 440px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }

  .portfolio-large {
    grid-column: span 2;
  }
}

@media (max-width: 1100px) {
  /* Switch the navbar into the compact drawer layout on tablets before the
     desktop bar gets squeezed and distorted. Keep the rest of the page on its
     existing desktop/tablet rules. */
  .navbar {
    padding: 12px 0;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  .nav-container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: 58px;
    padding-left: calc(18px + env(safe-area-inset-left, 0px));
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
  }
  .nav-logo,
  .navbar.scrolled .nav-logo {
    grid-column: 2;
    justify-self: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    position: relative;
    z-index: 2;
  }
  .nav-actions {
    grid-column: 3;
    justify-self: end;
    position: static;
    transform: none;
    right: auto;
    top: auto;
    display: flex;
    align-items: center;
    width: 44px;
    min-width: 44px;
  }
  .nav-logo .logo-text {
    display: inline-block;
    font-size: clamp(0.98rem, 1.15vw, 1.08rem);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    padding-left: 0;
    white-space: nowrap;
    opacity: 1;
  }
  .nav-container.has-nav-mark .nav-logo .logo-text { display: inline-block; }
  .nav-mark {
    position: relative;
    grid-column: 1;
    justify-self: start;
    left: auto;
    top: auto;
    transform: none;
    gap: 10px;
  }
  .nav-mark-word {
    display: none;
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    opacity: 1;
  }
  body:not(.nav-open) .nav-mark-word { opacity: 1; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(78vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: rgba(26, 26, 24, 0.72);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(86px + env(safe-area-inset-top, 0px)) 24px calc(30px + env(safe-area-inset-bottom, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    gap: 4px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
    z-index: 1001;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .navbar.scrolled .nav-menu { background: rgba(26, 26, 24, 0.72); }
  body.nav-open .navbar.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-mark-word { transition: opacity var(--transition-base); }
  body.nav-open .nav-mark-word { opacity: 0; }
  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
  }
  .nav-item {
    width: 100%;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-menu.active .nav-item { opacity: 1; transform: translateX(0); }
  .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.06s; }
  .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.11s; }
  .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.16s; }
  .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.21s; }
  .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.26s; }
  .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.31s; }
  .nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.36s; }
  .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 14px;
    font-size: 1rem;
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
  }
  .nav-link.active { background: rgba(244, 244, 239, 0.10); }
  .hamburger {
    display: flex;
    position: relative;
    z-index: 1002;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 8, 7, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .nav-overlay.active { opacity: 1; visibility: visible; }
  .nav-actions .btn-nav { display: none; }
  .nav-cta-item { display: block; width: 100%; }
  .nav-menu .btn-nav {
    display: inline-flex;
    flex-direction: row;
    height: auto;
    min-height: 52px;
    gap: 8px;
    margin-top: 18px;
    width: 100%;
    padding: 14px 22px;
    justify-content: center;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.42s;
  }
  .nav-menu .btn-nav-eyebrow { display: none; }
  .nav-menu.active .btn-nav { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /* compact single-row bar on mobile: real logo lockup left, menu button right */
  .navbar { padding: 12px 0; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
  .nav-container {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
    min-height: 56px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-left: calc(18px + env(safe-area-inset-left, 0px));
    padding-right: calc(18px + env(safe-area-inset-right, 0px));
  }
  .nav-logo,
  .navbar.scrolled .nav-logo {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    position: relative;
    left: auto;
    transform: none;
    z-index: 2;
    pointer-events: auto;
  }
  /* on mobile the actions hold the hamburger and flow on the right (not pinned) */
  .nav-actions {
    grid-column: 3;
    justify-self: end;
    position: static;
    transform: none;
    right: auto;
    top: auto;
    display: flex;
    align-items: center;
    width: 44px;
    min-width: 44px;
  }
  /* On phones, use a single reliable title path: icon on the far left, glowing
     ASTERIZER text in the normal flow. This avoids the injected wordmark getting
     clipped or disappearing on narrow widths. */
  .nav-logo .logo-text {
    display: inline-block;
    font-size: 1.02rem;
    letter-spacing: 0.12em;
    text-indent: 0.12em;
    padding-left: 0;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
  .nav-container.has-nav-mark .nav-logo .logo-text { display: inline-block; }
  .nav-mark {
    position: relative;
    grid-column: 1;
    justify-self: start;
    left: auto;
    top: auto;
    transform: none;
    gap: 0;
    pointer-events: auto;
  }
  .nav-mark img {
    height: 28px !important;
    max-width: 28px;
  }
  .nav-mark-word { display: none !important; }
  /* the cloned CTA inside the slide-in menu stays a simple single-row button */
  .nav-menu .btn-nav { flex-direction: row; height: auto; min-height: 0; gap: 8px; padding: 14px 22px; }
  .nav-menu .btn-nav-eyebrow { display: none; }
  /* footer wordmark stays compact on phones (it is a separate .logo-text) */
  .footer-logo .logo-text { font-size: 1.4rem; letter-spacing: 0.12em; text-indent: 0.12em; }

  /* ----- Beautiful frosted-glass slide-in menu ----- */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100vh;
    height: 100dvh;
    background: rgba(26, 26, 24, 0.72);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: calc(86px + env(safe-area-inset-top, 0px)) 24px calc(30px + env(safe-area-inset-bottom, 0px));
    padding-right: calc(24px + env(safe-area-inset-right, 0px));
    gap: 4px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: none;
    z-index: 1001;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .navbar.scrolled .nav-menu { background: rgba(26, 26, 24, 0.72); }
  /* backdrop-filter on the scrolled capsule would trap this fixed menu inside
     the capsule's box; drop it while the menu is open so the menu stays
     anchored to the viewport (full height) on every browser. */
  body.nav-open .navbar.scrolled {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* while the drawer is open, keep only the logo MARK in the left gap
     (the wordmark would slide under the glass panel) */
  .nav-mark-word { transition: opacity var(--transition-base); }
  body.nav-open .nav-mark-word { opacity: 0; }

  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.4);
  }

  /* staggered reveal of the menu items */
  .nav-item {
    width: 100%;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav-menu.active .nav-item { opacity: 1; transform: translateX(0); }
  .nav-menu.active .nav-item:nth-child(1) { transition-delay: 0.06s; }
  .nav-menu.active .nav-item:nth-child(2) { transition-delay: 0.11s; }
  .nav-menu.active .nav-item:nth-child(3) { transition-delay: 0.16s; }
  .nav-menu.active .nav-item:nth-child(4) { transition-delay: 0.21s; }
  .nav-menu.active .nav-item:nth-child(5) { transition-delay: 0.26s; }
  .nav-menu.active .nav-item:nth-child(6) { transition-delay: 0.31s; }
  .nav-menu.active .nav-item:nth-child(7) { transition-delay: 0.36s; }

  .nav-link {
    display: flex;
    align-items: center;
    padding: 14px 14px;
    font-size: 1.05rem;
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
  }
  .nav-link.active { background: rgba(244, 244, 239, 0.10); }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 1002;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* dim tap-to-close backdrop (injected by main.js) */
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(8, 8, 7, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }
  .nav-overlay.active { opacity: 1; visibility: visible; }

  /* keep the top-bar CTA hidden, but a cloned CTA lives inside the menu */
  .nav-actions .btn-nav { display: none; }
  .nav-cta-item { display: block; width: 100%; }
  .nav-menu .btn-nav {
    display: inline-flex;
    margin-top: 18px;
    width: 100%;
    justify-content: center;
    min-height: 52px;
    opacity: 0;
    transform: translateX(26px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: 0.42s;
  }
  .nav-menu.active .btn-nav { opacity: 1; transform: translateX(0); }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-divider {
    display: none;
  }

  .footer-grid {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-large {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 48px 24px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .services-detail-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-masonry {
    grid-template-columns: 1fr;
  }

  .hero-scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .service-card,
  .value-card,
  .team-card {
    padding: 24px;
  }

  .testimonial-card {
    padding: 24px;
  }

  .testimonial-text {
    font-size: 1rem;
  }

  /* === Mobile rendering performance ===
     Large moving blurs repaint their whole region every frame; on phones/tablets
     that is the main scroll-jank source. Shrink + soften the orbs and hold them
     still so scrolling stays buttery on mid/low-power devices. */
  .hero-orb { filter: blur(46px); opacity: 0.3; animation: none; }
  .orb-1 { width: 300px; height: 300px; }
  .orb-2 { width: 260px; height: 260px; }
  .orb-3 { display: none; }
  .hero-grid { background-size: 46px 46px; }

  /* === Touch ergonomics: comfortable >=44px tap targets + tighter hero === */
  /* the bar is short on phones, so the hero can sit closer to the top */
  .hero { padding-top: calc(96px + env(safe-area-inset-top, 0px)); }
  .page-hero { padding-top: calc(120px + env(safe-area-inset-top, 0px)); }

  .social-link { width: 44px; height: 44px; font-size: 1rem; }
  .filter-btn { min-height: 44px; padding: 10px 18px; }
  .btn { min-height: 46px; }
  .faq-question { padding: 18px 20px; }

  /* keep the small visual dot, but expand its touch area to ~44px */
  .test-nav-btn {
    box-sizing: content-box;
    width: 10px;
    height: 10px;
    padding: 16px 10px;
    background-clip: content-box;
  }
  .test-nav-btn.active { width: 28px; }

  .footer-bottom-links { gap: 18px; }
}

/* === Small phones === */
@media (max-width: 380px) {
  :root { --section-padding: 52px; }
  .nav-container {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  .nav-logo,
  .navbar.scrolled .nav-logo { max-width: 100%; }
  .nav-logo .logo-text {
    font-size: 0.96rem;
    letter-spacing: 0.11em;
    text-indent: 0.11em;
  }
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.55rem; }
  .hero-subtitle, .page-subtitle { font-size: 1rem; }
  .btn { padding-left: 18px; padding-right: 18px; }
}

/* === Landscape phones (short height): never force a full-height hero === */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding-top: calc(84px + env(safe-area-inset-top, 0px));
    padding-bottom: 56px;
  }
  .hero-scroll-indicator { display: none; }
  .nav-menu { padding-top: 64px; }
}

/* === Large desktops: use a little more of the canvas === */
@media (min-width: 1440px) {
  :root { --container-max: 1320px; }
}
@media (min-width: 1920px) {
  :root { --container-max: 1480px; }
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-card-hover);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* === Selection === */
::selection {
  background: rgba(232, 232, 227, 0.3);
  color: var(--text-primary);
}

/* =========================================
   Motion enhancements (GSAP/Lenis layer)
   ========================================= */

/* Lenis smooth-scroll required styles.
   When Lenis is active it adds .lenis.lenis-smooth to <html>; the
   scroll-behavior:auto override below stops the browser's native
   smooth-scroll from fighting Lenis (the main source of scroll jank).
   Native smooth-scroll still applies as a fallback when Lenis is absent. */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
  background: transparent;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-glow);
}

/* Richer scroll-reveal: depth + fade (no blur - blur filters repaint on
   every frame and cause scroll jank when many elements reveal at once) */
[data-animate] {
  transform: translateY(30px) scale(0.99);
  will-change: opacity, transform;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-animate="fade-right"] {
  transform: translateX(-32px) scale(0.99);
}

[data-animate="fade-left"] {
  transform: translateX(32px) scale(0.99);
}

[data-animate].animated {
  transform: translate(0, 0) scale(1);
  will-change: auto;
}

/* Button sheen sweep on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover::after {
  left: 140%;
}

/* Card hover glow (additive - does not override existing hover lift) */
.service-card:hover,
.value-card:hover,
.pricing-card:hover,
.service-detail-card:hover,
.process-step:hover,
.portfolio-full-item:hover {
  box-shadow: var(--shadow-lg), 0 0 26px rgba(var(--accent-rgb), 0.10);
  border-color: rgba(var(--accent-rgb), 0.28);
}

/* Keyboard focus visibility */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-title .gradient-text::after,
  .page-title .gradient-text::after {
    animation: none !important;
    transform: scaleX(1) !important;
  }

  .scroll-progress,
  .btn::after {
    display: none !important;
  }
}

/* Navbar logo mark injected by animations.js */
.nav-mark {
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-mark img {
  display: block;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
  transition: height var(--transition-base), filter var(--transition-base), transform var(--transition-base);
}
.nav-mark:hover img {
  filter: drop-shadow(0 0 16px var(--accent-glow));
  transform: translateY(-1px);
}
/* Wordmark beside the mark - only used in the compact (mobile/tablet) lockup */
.nav-mark-word {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
  line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, var(--text-secondary) 68%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
/* Mobile / tablet: show the real logo mark paired with the wordmark */
@media (max-width: 768px) {
  .nav-mark { left: 18px; }
}
/* Very small phones: keep the title compact so it does not crowd the menu button */
@media (max-width: 380px) {
  .nav-mark { left: 14px; gap: 8px; }
  .nav-mark-word { font-size: 1rem; letter-spacing: 0.1em; text-indent: 0.1em; }
}

/* =========================================
   Animated nav items - CLI-typed "How AI Works" (width-locked so it
   never shifts the menu) + a larger robotic-arm icon for "Products".
   Markup injected by animations.js.
   ========================================= */
.nav-anim { display: inline-flex; align-items: center; gap: 8px; }
.nav-anim .nv-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---- "Products": a blue hint that it leads to the blue Products world;
   turns neutral grey once you're actually ON that page (isolated). ---- */
.nav-anim-prod {
  position: relative;
  border: 1px solid rgba(95, 208, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(95, 208, 255, 0.06), 0 0 14px rgba(95, 208, 255, 0.18);
}
.nav-anim-prod:not(.active) { animation: prodBorderPulse 3.2s ease-in-out infinite; }
@keyframes prodBorderPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(95, 208, 255, 0.05), 0 0 12px rgba(95, 208, 255, 0.14); }
  50%      { box-shadow: 0 0 0 1px rgba(95, 208, 255, 0.12), 0 0 20px rgba(95, 208, 255, 0.30); }
}
.nav-anim-prod:hover {
  border-color: rgba(95, 208, 255, 0.9);
  box-shadow: 0 0 20px rgba(95, 208, 255, 0.38);
}
.nav-anim-prod.active {
  border-color: rgba(244, 244, 239, 0.42);
  box-shadow: none;
  animation: none;
}
/* When you're ON the Products page, the link goes neutral grey (isolated) */
.nav-link.nav-anim-prod.active {
  border-color: rgba(244, 244, 239, 0.45) !important;
  box-shadow: none !important;
  animation: none !important;
}
.nav-link.nav-anim-prod.active .botsvg line { stroke: var(--accent-primary) !important; }
.nav-link.nav-anim-prod.active .bot-base { fill: var(--accent-primary) !important; }
.botsvg line { stroke: var(--accent-primary); }
.nav-anim-prod:not(.active) .botsvg line { stroke: #5fd0ff; }
.nav-anim-prod:not(.active) .bot-base { fill: #5fd0ff; }

/* ----- "How AI Works": same pill + size as Products, with a shiny animated frame. ----- */
.nav-anim-ai {
  position: relative;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 38%, rgba(0, 0, 0, 0.12) 100%),
    rgba(8, 8, 7, 0.9);
  border: 1px solid rgba(var(--accent-rgb), 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 8px 20px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.16);
}
.nav-anim-ai::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(120deg,
    rgba(255, 255, 255, 0.08) 12%,
    rgba(var(--accent-rgb), 0.32) 34%,
    rgba(255, 255, 255, 0.98) 50%,
    rgba(var(--accent-rgb), 0.38) 66%,
    rgba(255, 255, 255, 0.08) 88%);
  background-size: 240% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: aiFrameSheen 3.4s linear infinite;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.16));
}
@keyframes aiFrameSheen {
  0%   { background-position: 150% 0; }
  100% { background-position: -50% 0; }
}
.nav-link.nav-anim-ai,
.nav-link.nav-anim-ai.active {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.015) 38%, rgba(0, 0, 0, 0.12) 100%),
    rgba(8, 8, 7, 0.9);
  border-color: rgba(var(--accent-rgb), 0.42);
}
.nav-link.nav-anim-ai:hover,
.nav-link.nav-anim-ai.active:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.025) 36%, rgba(0, 0, 0, 0.16) 100%),
    rgba(5, 5, 4, 0.96);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.34),
    0 12px 24px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(var(--accent-rgb), 0.12);
}
.nav-anim-ai:hover::before {
  animation-duration: 1.1s;
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb), 0.22));
}

/* "How AI Works" -> terminal typing. A hidden ghost reserves the full
   width, the typed line is overlaid absolutely -> zero layout shift. */
.cli {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  line-height: 1;
}
.cli-prompt { color: var(--accent-primary); font-weight: 700; }
.cli-stage { position: relative; display: inline-block; }
.cli-ghost { visibility: hidden; white-space: nowrap; }
.cli-line {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.4s ease;
}
.cli-txt { color: var(--text-primary); }
.cli-cur {
  display: inline-block;
  width: 7px; height: 1.02em;
  margin-left: 2px;
  background: var(--accent-primary);
  box-shadow: 0 0 6px var(--accent-glow);
  animation: cliBlink 1s steps(2) infinite;
}
@keyframes cliBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* "Products" -> larger robotic arm that smoothly reaches + grips */
.bot { display: inline-flex; align-items: center; }
.botsvg { width: 30px; height: 26px; overflow: visible; }
.botsvg line { stroke: var(--accent-primary); stroke-width: 1.9; stroke-linecap: round; fill: none; }
.bot-base { fill: var(--accent-primary); }
.bot-arm {
  transform-box: view-box;
  transform-origin: 5.5px 21px;
  animation: botSwing 3.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
@keyframes botSwing {
  0%, 100% { transform: rotate(3deg); }
  50%      { transform: rotate(-23deg); }
}
.bot-hand {
  transform-box: view-box;
  transform-origin: 15px 12px;
  animation: botHand 3.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}
@keyframes botHand {
  0%, 100% { transform: rotate(6deg); }
  50%      { transform: rotate(28deg); }
}
.bot-claw-a, .bot-claw-b {
  transform-box: view-box;
  transform-origin: 23px 15px;
  animation: clawA 3.2s ease-in-out infinite;
}
.bot-claw-b { animation-name: clawB; }
@keyframes clawA {
  0%, 100% { transform: rotate(-15deg); }
  50%      { transform: rotate(2deg); }
}
@keyframes clawB {
  0%, 100% { transform: rotate(15deg); }
  50%      { transform: rotate(-2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-nav::after,
  .nav-anim-prod:not(.active),
  .nav-anim-ai::before,
  .cli-cur,
  .bot-arm, .bot-hand, .bot-claw-a, .bot-claw-b {
    animation: none !important;
  }
  .cli-line { transition: none !important; }
}
