/* ============================================
   BliBling Agency — Design System
   ============================================ */

:root {
  --blue-dark: #060f1f;
  --blue-mid: #0a1830;
  --blue-surface: #0f2242;
  --purple-dark: #08061a;
  --purple-mid: #0d0a22;
  --purple-surface: #14102e;
  --blue-accent: #4d7cff;
  --blue-glow: #6b94ff;
  --purple-accent: #8b6aff;
  --purple-glow: #a88bff;
  --cyan-accent: #4ecdc4;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.9);
  --white-muted: rgba(255, 255, 255, 0.65);
  --white-faint: rgba(255, 255, 255, 0.3);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);

  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --header-height: 72px;
  --section-padding: clamp(64px, 8vw, 100px);
  --page-gutter: clamp(2rem, 5vw, 4.5rem);
  --container-max: 1180px;
}

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

html {
  scroll-behavior: auto;
}

html.lenis, html.lenis body {
  height: auto;
}

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: var(--white-soft);
  background: var(--blue-dark);
  overflow-x: hidden;
  cursor: none;
}

.logo-rounded {
  border-radius: 12px;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: none;
}

ul[role="list"] {
  list-style: none;
}

strong {
  font-weight: 600;
  color: var(--white);
}

h1, h2, h3, h4, h5, h6, p, li, label, blockquote, cite, .section-text, .hero-lead, .hero-tagline, .btn, .detail-value {
  overflow: visible;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  padding-bottom: 0.2em;
  -webkit-font-smoothing: antialiased;
}

p, .section-text, .founder-text p, .step-content p, .service-card-body > p, .niche-panel p, .ai-feature p {
  line-height: 1.6;
}

/* Solid accent text (wedding site approach — no background-clip, descenders stay intact) */
.section-title em {
  font-style: normal;
  color: var(--purple-glow);
}

.title-accent {
  color: var(--blue-glow);
}

.ai-feature-number {
  color: var(--purple-accent);
}

.container {
  width: 100%;
  max-width: calc(var(--container-max) + var(--page-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

/* ============================================
   Custom Cursor
   ============================================ */

.cursor {
  /* Wrapper is just a flag container; dots are position:fixed themselves */
  position: fixed;
  inset: 0;
  z-index: 10060;
  pointer-events: none;
  opacity: 0;
}

/* Hidden until first pointer move */
.cursor.cursor--live {
  opacity: 1;
}

.cursor.cursor--boot {
  opacity: 0;
}

body.lightbox-open .cursor-dot {
  background: var(--blue-accent);
}

body.lightbox-open .cursor-ring {
  border-color: var(--blue-accent);
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  /* Centering only — position is driven via left/top in JS (no transform lag) */
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 16, 36, 0.45);
  /* Only size transitions — never position */
  transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo);
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(8, 16, 36, 0.25);
  transition: width 0.4s var(--ease-out-expo), height 0.4s var(--ease-out-expo), opacity 0.3s;
}

/* Full mode: slightly richer ring after upgrade */
.cursor.cursor--full .cursor-ring {
  border-width: 1.5px;
  box-shadow:
    0 0 0 1px rgba(8, 16, 36, 0.25),
    0 0 20px rgba(107, 148, 255, 0.15);
}

.cursor.is-hovering .cursor-dot {
  width: 0;
  height: 0;
}

.cursor.is-hovering .cursor-ring {
  width: 60px;
  height: 60px;
}

@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
  button { cursor: pointer; }
}

/* ============================================
   Page Loader
   ============================================ */

.section--blue {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(77, 124, 255, 0.08) 0%, transparent 55%),
    linear-gradient(165deg, var(--blue-dark) 0%, var(--blue-mid) 55%, #0c1e3f 100%);
}

.section--purple {
  background:
    radial-gradient(ellipse 70% 55% at 90% 10%, rgba(139, 106, 255, 0.1) 0%, transparent 50%),
    linear-gradient(165deg, var(--purple-dark) 0%, var(--purple-mid) 55%, #140f32 100%);
}

.section--purple .founder-accent-card,
.section--purple .ai-feature,
.section--purple .contact-form,
.section--purple .lightbox-panel {
  background: var(--purple-surface);
}

.section--purple .step-marker {
  background: var(--purple-mid);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-dark);
  transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-logo {
  margin-inline: auto;
  opacity: 0;
  animation: loaderFadeIn 1s var(--ease-out-expo) 0.2s forwards;
}

.loader-line {
  width: 120px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 2px;
}

.loader-line span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-accent), var(--purple-accent));
  transform: scaleX(0);
  transform-origin: left;
  animation: loaderProgress 1.8s var(--ease-in-out) 0.5s forwards;
}

.loader-text {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white-muted);
  opacity: 0;
  animation: loaderFadeIn 0.8s var(--ease-out-expo) 1s forwards;
}

@keyframes loaderFadeIn {
  to { opacity: 1; }
}

@keyframes loaderProgress {
  to { transform: scaleX(1); }
}

/* ============================================
   Particle Canvas
   ============================================ */

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

main,
.marquee-section,
.site-footer {
  position: relative;
}

.service-card,
.demo-card,
.hero-gallery,
.hero-gallery-main,
.hero-gallery-thumb,
.site-photo,
.img-placeholder,
.ai-visual-card,
.ai-feature,
.founder-img-wrap,
.founder-accent-card,
.founder-floating-badge,
.contact-form,
.niches-stage,
.craft-pillar,
.niche-mobile-card,
.service-card-visual,
.lightbox-panel {
  position: relative;
  z-index: 2;
}

/* ============================================
   Image Placeholders
   ============================================ */

.site-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.founder-photo {
  object-position: center top;
}

.img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    160deg,
    hsl(var(--hue, 230), 45%, 35%) 0%,
    hsl(var(--hue, 230), 40%, 22%) 50%,
    hsl(calc(var(--hue, 230) + 40), 35%, 18%) 100%
  );
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 60%
  );
  animation: shimmer 2.2s ease-in-out infinite;
}

.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.04;
}

/* Real photos: niches-style animated frame while loading */
.media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    hsl(var(--hue, 230), 45%, 35%) 0%,
    hsl(var(--hue, 230), 40%, 22%) 50%,
    hsl(calc(var(--hue, 230) + 40), 35%, 18%) 100%
  );
  /* Promote layer so shimmer keeps running even under main-thread load */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* GPU sheen: animate transform (compositor), not background-position */
.media-frame__sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  overflow: hidden;
}

.media-frame__sheen::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.14) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.media-frame.is-loading .media-frame__sheen {
  opacity: 1;
}

.media-frame.is-loading .media-frame__sheen::before {
  animation: media-sheen-sweep 1.5s ease-in-out infinite;
}

.media-frame .site-photo {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
  color: transparent;
  font-size: 0;
}

.media-frame.is-loaded .site-photo {
  opacity: 1;
  color: inherit;
  font-size: inherit;
}

.media-frame.is-error {
  background: linear-gradient(160deg, #1a2744 0%, #121a2e 100%);
}

.media-frame.is-error .media-frame__sheen {
  opacity: 0;
}

@keyframes shimmer {
  0%, 100% { transform: translate3d(-100%, 0, 0); }
  50% { transform: translate3d(100%, 0, 0); }
}

@keyframes media-sheen-sweep {
  0% { transform: translate3d(0%, 0, 0); }
  100% { transform: translate3d(350%, 0, 0); }
}

/* Force animation timeline to start after splash (Safari/live quirk) */
html.boot-anim-live .media-frame.is-loading .media-frame__sheen::before,
html.boot-anim-live .img-placeholder::before {
  animation-play-state: running;
}

/* ============================================
   Header
   ============================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: background 0.5s, backdrop-filter 0.5s, transform 0.5s var(--ease-out-expo);
}

.site-header.is-scrolled {
  background: rgba(6, 15, 31, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding-inline: var(--page-gutter);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-logo:hover .logo-img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-accent), var(--purple-accent));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  border-radius: 100px;
  transition: background 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), box-shadow 0.35s, color 0.35s;
}

.nav-cta:hover {
  background: linear-gradient(135deg, #7aa3ff, #c4a8ff);
  color: #0a1020;
  box-shadow: 0 12px 40px rgba(122, 163, 255, 0.45);
  transform: translateY(-2px) scale(1.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 32px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--white);
  transition: transform 0.4s var(--ease-out-expo), opacity 0.3s;
}

.nav-toggle.is-active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.is-active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--blue-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(30px);
}

.mobile-menu a:hover {
  color: var(--purple-glow);
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: visible;
  line-height: 1.5;
  padding-block: 1.05rem;
}

.btn span {
  line-height: 1.5;
  padding-bottom: 0.08em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  transition: background 0.35s var(--ease-out-expo), transform 0.35s var(--ease-out-expo), box-shadow 0.35s, color 0.35s;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #7aa3ff, #c4a8ff);
  color: #0a1020;
  box-shadow: 0 14px 48px rgba(122, 163, 255, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px) scale(1.03);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid var(--border-hover);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.35s var(--ease-out-expo);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-dark);
  border-color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(255, 255, 255, 0.15);
}

.btn-outline {
  color: var(--white);
  border: 1px solid var(--border-hover);
  background: transparent;
  transition: all 0.35s var(--ease-out-expo);
}

.btn-outline:hover {
  border-color: var(--purple-glow);
  background: var(--purple-accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(139, 106, 255, 0.35);
}

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

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 0.85rem;
}

/* ============================================
   Section Utilities
   ============================================ */

.section {
  padding-block: var(--section-padding);
  position: relative;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 0.2em;
  letter-spacing: -0.02em;
  color: var(--white);
  overflow: visible;
}

.section-text {
  color: var(--white-muted);
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 42ch;
  margin-top: 1rem;
  line-height: 1.6;
}

.section-text--wide {
  max-width: 65ch;
}

.section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--compact {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

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

.section-header--center .section-text {
  margin-inline: auto;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-height) + 2rem) 5rem;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 50%, rgba(77, 124, 255, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 40%, rgba(139, 106, 255, 0.14) 0%, transparent 50%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  animation: glowPulse 8s ease-in-out infinite;
}

.hero-glow--1 {
  width: 280px;
  height: 280px;
  background: rgba(77, 124, 255, 0.2);
  top: 15%;
  left: 5%;
}

.hero-glow--2 {
  width: 220px;
  height: 220px;
  background: rgba(139, 106, 255, 0.15);
  bottom: 15%;
  right: 15%;
  animation-delay: -4s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.38fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  align-items: center;
  width: 100%;
}

.hero-copy {
  max-width: 470px;
  overflow: visible;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white-muted);
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
}

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

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  overflow: visible;
}

.hero-title-line {
  display: block;
  line-height: 1.25;
  padding-bottom: 0.22em;
  overflow: visible;
}

.hero-tagline,
.hero-lead,
.section-text,
p,
.footer-tagline {
  line-height: 1.65;
  padding-bottom: 0.12em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  font-style: italic;
  color: var(--white-muted);
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white-muted);
  margin-bottom: 0.75rem;
  line-height: 1.65;
  padding-bottom: 0.12em;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.72fr 1fr;
  gap: 0.85rem;
  height: clamp(380px, 56vh, 530px);
  min-height: clamp(380px, 56vh, 530px);
  max-height: clamp(380px, 56vh, 530px);
  overflow: hidden;
  align-items: stretch;
}

.hero-gallery-main {
  height: 100%;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  animation: floatY 5s ease-in-out infinite;
  animation-play-state: paused;
}

.hero-gallery-thumb:first-child {
  animation: floatY 5s ease-in-out infinite 0.6s;
  animation-play-state: paused;
}

.hero-gallery-thumb:last-child {
  animation: floatY 5s ease-in-out infinite 1.2s;
  animation-play-state: paused;
}

body.is-ready .hero-gallery-main,
body.is-ready .hero-gallery-thumb:first-child,
body.is-ready .hero-gallery-thumb:last-child {
  animation-play-state: running;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-gallery-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-gallery-thumb {
  flex: 1 1 0;
  min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.hero-gallery-thumb--chat,
.service-card-visual--chat {
  padding: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
}

.hero-gallery-thumb--chat .ai-visual-card--embed {
  flex: 1;
  min-height: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 3.75rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--white-faint);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
}

.scroll-line {
  width: 1px;
  height: 36px;
  background: var(--border);
  overflow: hidden;
}

.scroll-line span {
  display: block;
  width: 100%;
  height: 50%;
  background: linear-gradient(to bottom, var(--blue-accent), var(--purple-accent));
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-block: calc(var(--header-height) + 2rem) 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: none;
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-gallery {
    height: clamp(320px, 48vh, 400px);
    min-height: clamp(320px, 48vh, 400px);
    max-height: clamp(320px, 48vh, 400px);
    max-width: 560px;
    margin-inline: auto;
  }

  .hero-scroll {
    display: none;
  }
}

/* ============================================
   Marquee
   ============================================ */

.marquee-section {
  padding: 0.85rem 0;
  overflow: hidden;
  max-width: 100vw;
  border-block: 1px solid var(--border);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(0.8rem, 1.35vw, 1rem);
  font-weight: 600;
  color: var(--white-muted);
  flex-shrink: 0;
  line-height: 1.5;
  padding-bottom: 0.1em;
}

.marquee-dot {
  color: var(--purple-accent) !important;
  font-size: 0.5rem !important;
  line-height: 1;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================
   Services
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
  cursor: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.service-card-visual {
  height: clamp(280px, 30vw, 360px);
  min-height: clamp(280px, 30vw, 360px);
  max-height: clamp(280px, 30vw, 360px);
  overflow: hidden;
  flex-shrink: 0;
}

.service-card-body {
  padding: 1.5rem;
}

.service-number {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.08em;
  margin-bottom: 0.5rem;
}

.service-card-body > p {
  color: var(--white-muted);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.service-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-features li {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white-muted);
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 100px;
}

.service-hover-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 100%, rgba(77, 124, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Design Craft
   ============================================ */

.craft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.craft-content .section-text + .section-text {
  margin-top: 1rem;
}

.craft-cta {
  margin-top: 1.75rem;
}

.craft-pillars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.craft-pillar {
  padding: 1.5rem 1.75rem;
  background: var(--purple-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
}

.craft-pillar:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.craft-pillar-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--purple-glow);
  display: block;
  margin-bottom: 0.5rem;
}

.craft-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.craft-pillar p {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white-muted);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .craft-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Niches — Scroll Pin
   ============================================ */

.niches-intro {
  padding-top: var(--section-padding);
  padding-bottom: 0.75rem;
}

.niches-intro .section-header {
  margin-bottom: 0;
}

.niches-scrub-track {
  height: 520vh;
  position: relative;
}

.niches-scrub-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: 1.25rem;
}

.niches-scrub-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  max-height: calc(100dvh - 2.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  /* Keep the industry card fully visible when content is taller */
  -webkit-overflow-scrolling: touch;
}

.niches-stage {
  position: relative;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: visible;
  /* Height follows the active niche copy + screenshot column */
  height: auto;
}

.niches-stage-glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(139, 106, 255, 0.2) 0%, transparent 65%);
  pointer-events: none;
}

.niches-pin-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr 1.25fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  /* Stretch so text column can size the row; visual stays centered via self */
  align-items: center;
  min-height: 0;
}

.niches-pin-layout .niches-content {
  align-self: center;
}

.niches-pin-layout .niches-visual {
  align-self: center;
}

.niches-pin-layout .niches-nav {
  align-self: center;
}

.niches-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.niches-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 12px;
  text-align: left;
  color: var(--white-muted);
  transition: all 0.4s var(--ease-out-expo);
  cursor: none;
  position: relative;
}

.niches-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(to bottom, var(--blue-accent), var(--purple-accent));
  border-radius: 2px;
  transition: transform 0.4s var(--ease-out-expo);
}

.niches-nav-item .nav-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.45;
  min-width: 1.25rem;
}

.niches-nav-item .nav-label {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.5;
  padding-bottom: 0.08em;
}

.niches-nav-item.is-active {
  background: rgba(139, 106, 255, 0.18);
  border-color: rgba(139, 106, 255, 0.35);
  color: var(--white);
  transform: translateX(4px);
}

.niches-nav-item.is-active::before {
  transform: translateY(-50%) scaleY(1);
}

.niches-nav-item.is-active .nav-num {
  opacity: 1;
  color: var(--purple-glow);
}

.niches-content {
  position: relative;
  min-height: 0;
  padding-inline: 0.5rem;
  /* Height is driven by the active panel (no fixed min-height) */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.niche-panel {
  /* Inactive: out of flow, fully hidden */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo),
    visibility 0.45s;
  pointer-events: none;
}

.niche-panel.is-active {
  /* Active: in flow — sets niches-content / stage height dynamically */
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.niche-panel.is-active .btn-niche-cta,
.niche-panel.is-active .btn-niche-demo {
  animation: ctaPop 0.5s var(--ease-out-expo) 0.15s both;
}

.niche-panel.is-active .btn-niche-demo {
  animation-delay: 0.28s;
}

@keyframes ctaPop {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.niche-panel .niche-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-glow);
  margin-bottom: 0.75rem;
}

.niche-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.1em;
  margin-bottom: 1rem;
  overflow: visible;
}

.niche-panel p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white-muted);
  line-height: 1.6;
  max-width: 34ch;
  margin-bottom: 1.25rem;
}

.niche-panel-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.5rem;
  /* Keep CTAs inside the card — never clip at the bottom */
  padding-bottom: 0.15rem;
}

.niches-content .niche-panel {
  /* Ensure full copy + both buttons are measured for height */
  height: auto;
  width: 100%;
}

.btn-niche-cta {
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem;
}

.btn-niche-demo {
  padding: 0.85rem 1.5rem;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Inactive stacked niche panels must never intercept clicks */
.niche-panel:not(.is-active) {
  visibility: hidden;
}

.niche-panel.is-active {
  visibility: visible;
}

/* Single MacBook-style 16:10 screen (matches shot design 1280×800) */
.niches-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  background: #0a0a0c;
}

/* All previews stacked in the same 16:10 frame — only one visible */
.niche-preview {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  /* CSS transition only when not overridden by GSAP clear */
  transition: opacity 0.45s var(--ease-out-expo), visibility 0.45s;
}

.niche-preview.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
  pointer-events: auto;
}

.niche-preview-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: #0a0a0c;
}

/* Subtle MacBook-like outer chrome on the shared frame */
.niches-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 5;
}

.niche-preview-thumbs {
  display: none !important;
}

.niche-preview-thumb {
  display: none !important;
}

.niches-progress {
  margin-top: 2rem;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.niches-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-accent), var(--purple-accent));
  border-radius: 2px;
  transition: width 0.15s linear;
}

.niches-outro {
  padding-top: 2.5rem;
  padding-bottom: var(--section-padding);
}

.niches-universal-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.5rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.niches-universal-bar p {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--white-soft);
  line-height: 1.5;
}

.services-cta,
.demos-cta,
.process-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.demos-cta {
  margin-top: 2rem;
  padding-bottom: 0.5rem;
}

.niches-mobile {
  display: none;
  padding-block: var(--section-padding);
}

.niches-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.niche-mobile-card {
  background: var(--purple-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.niche-mobile-visual {
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}

.niche-mobile-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1rem 0.25rem;
}

.niche-mobile-card p {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white-muted);
  padding: 0 1rem 1rem;
}

.niches-mobile-note {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white-muted);
}

@media (max-width: 1100px) {
  .niches-pin-layout {
    grid-template-columns: 170px 1fr 1.1fr;
  }
}

@media (max-width: 900px) {
  .niches-intro,
  .niches-outro,
  .niches-scrub-track {
    display: none;
  }

  .niches-mobile {
    display: block;
    padding-block: var(--section-padding);
  }
}

@media (max-width: 640px) {
  .niches-mobile-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Demos
   ============================================ */

.demos {
  padding-bottom: var(--section-padding);
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.demo-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: none;
  /* MacBook screen ratio — same as niches shots (16:10) */
  aspect-ratio: 16 / 10;
  width: 100%;
  transition: transform 0.5s var(--ease-out-expo), border-color 0.4s;
}

.demo-card:hover {
  transform: scale(1.02) translateY(-4px);
  border-color: var(--blue-accent);
  box-shadow: 0 20px 50px rgba(77, 124, 255, 0.2);
}

.demo-card--tall,
.demo-card--wide {
  grid-row: auto;
  grid-column: auto;
}

.demo-img {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    hsl(var(--hue, 230), 45%, 35%) 0%,
    hsl(var(--hue, 230), 40%, 22%) 50%,
    hsl(calc(var(--hue, 230) + 40), 35%, 18%) 100%
  );
  transition: transform 0.8s var(--ease-out-expo);
}

.demo-img--photo {
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

.demo-img--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(12, 16, 32, 0.08) 0%,
    rgba(12, 16, 32, 0.28) 100%
  );
  pointer-events: none;
}

.demo-card:hover .demo-img {
  transform: scale(1.05);
}

.demo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(6, 10, 20, 0.9) 0%, rgba(6, 10, 20, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
}

.demo-card:hover .demo-overlay {
  opacity: 1;
}

.demo-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.5rem;
}

.demo-overlay h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.08em;
}

.demo-overlay p {
  font-size: 0.85rem;
  color: var(--white-muted);
}

.demo-status {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  background: rgba(78, 205, 196, 0.15);
  color: var(--cyan-accent);
  border: 1px solid rgba(78, 205, 196, 0.3);
  border-radius: 100px;
}

.demo-status--soon {
  background: rgba(124, 92, 252, 0.15);
  color: var(--purple-glow);
  border-color: rgba(124, 92, 252, 0.3);
}

@media (max-width: 1024px) {
  .demos-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .demo-card--tall,
  .demo-card--wide {
    grid-row: auto;
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .demos-grid {
    grid-template-columns: 1fr;
  }

  .demo-card {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
}

/* ============================================
   Founder
   ============================================ */

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.founder-visual {
  position: relative;
  height: 550px;
}

.founder-img-wrap {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.founder-accent-card {
  position: absolute;
  bottom: 10%;
  right: -5%;
  z-index: 2;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.accent-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 0.25rem;
}

.accent-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.founder-floating-badge {
  position: absolute;
  top: 10%;
  left: -8%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 4.5rem;
  box-shadow: 0 16px 40px rgba(59, 108, 255, 0.3);
}

.badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

.founder-floating-badge > span:last-child {
  display: flex;
  align-items: center;
  line-height: 1.4;
}

.founder-text {
  margin-top: 2.5rem;
  padding-top: 0.75rem;
}

.founder-text p {
  color: var(--white-muted);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.founder-text em {
  color: var(--white);
  font-style: italic;
}

.founder-quote {
  margin-top: 2.5rem;
  padding: 2rem;
  border-left: 2px solid var(--purple-accent);
  background: rgba(124, 92, 252, 0.05);
  border-radius: 0 12px 12px 0;
}

.founder-quote p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.6;
  color: var(--white-soft);
  margin-bottom: 1rem;
}

.founder-quote cite {
  font-size: 0.85rem;
  color: var(--white-muted);
  font-style: normal;
}

.founder-content .btn-primary {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .founder-visual {
    height: 400px;
    max-width: 500px;
    margin-inline: auto;
  }

  .founder-floating-badge {
    left: 0;
  }

  .founder-accent-card {
    right: 0;
  }
}

/* ============================================
   AI Section
   ============================================ */

.ai-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}

#ai .ai-visual {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

#ai .ai-visual-card,
#ai .ai-chat-demo {
  position: relative;
  z-index: 2;
}

.ai-visual-card {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(12, 30, 63, 0.95) 0%, rgba(26, 53, 104, 0.85) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ai-visual-card--embed {
  aspect-ratio: auto;
  height: 100%;
  border-radius: inherit;
  box-shadow: none;
}

.service-card-visual--chat .ai-visual-card--embed {
  flex: 1;
  min-height: 0;
  border-radius: 0;
  border: none;
}

.ai-chat-demo--compact .ai-chat-header {
  padding: 0.5rem 0.65rem;
}

.ai-chat-demo--compact .ai-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.ai-chat-demo--compact .ai-chat-name {
  font-size: 0.7rem;
}

.ai-chat-demo--compact .ai-chat-status {
  font-size: 0.58rem;
}

.ai-chat-demo--compact .ai-chat-messages {
  padding: 0.55rem 0.65rem;
  gap: 0.45rem;
}

.ai-chat-demo--compact .ai-chat-message {
  font-size: 0.65rem;
  padding: 0.45rem 0.6rem;
}

.ai-chat-demo--compact .ai-chat-input {
  padding: 0.45rem 0.6rem;
}

.ai-chat-demo--compact .ai-chat-input input {
  font-size: 0.65rem;
  padding: 0.4rem 0.55rem;
}

.ai-chat-demo--compact .ai-chat-input button {
  width: 28px;
  height: 28px;
}

.ai-chat-demo--compact .ai-chat-handoff p {
  font-size: 0.75rem;
  padding: 0.75rem 1rem;
}

.ai-chat-demo {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  position: relative;
}

.ai-chat-demo.is-handoff .ai-chat-messages,
.ai-chat-demo.is-handoff .ai-chat-typing,
.ai-chat-demo.is-handoff .ai-chat-input {
  opacity: 0.35;
  pointer-events: none;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.ai-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.ai-chat-header-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.ai-chat-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  color: var(--white-muted);
  letter-spacing: 0.04em;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-accent);
  animation: dotPulse 2s ease-in-out infinite;
}

.ai-chat-messages {
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  max-height: 100%;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.ai-chat-message {
  max-width: 88%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(10px);
  animation: chatMessageIn 0.45s var(--ease-out-expo) forwards;
}

.ai-chat-message--bot {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white-soft);
  border-bottom-left-radius: 4px;
}

.ai-chat-message--user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  border-bottom-right-radius: 4px;
}

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

.ai-chat-typing {
  padding: 0 1rem 0.5rem;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out-expo);
}

.ai-chat-typing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ai-chat-typing-bubble {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.typing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--white-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-chat-input {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.ai-chat-input input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(12, 30, 63, 0.6);
  color: var(--white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.ai-chat-input input::placeholder {
  color: var(--white-faint);
}

.ai-chat-input input:focus {
  border-color: var(--purple-accent);
  box-shadow: 0 0 0 2px rgba(139, 106, 255, 0.2);
}

.ai-chat-input button {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.ai-chat-input button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(77, 124, 255, 0.35);
}

.ai-chat-handoff {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 30, 63, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.ai-chat-handoff.is-visible {
  opacity: 1;
  visibility: visible;
}

.ai-chat-handoff p {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  padding: 1rem 1.5rem;
  background: rgba(139, 106, 255, 0.15);
  border: 1px solid rgba(139, 106, 255, 0.3);
  border-radius: 12px;
  animation: handoffPulse 2s ease-in-out infinite;
}

@keyframes handoffPulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.ai-feature {
  padding: 2rem;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: transform 0.4s var(--ease-out-expo), border-color 0.4s;
}

.ai-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 252, 0.3);
}

.ai-feature-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1.2;
  padding-bottom: 0.1em;
  opacity: 0.5;
  margin-bottom: 1rem;
  overflow: visible;
}

.ai-feature h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.08em;
  margin-bottom: 0.75rem;
}

.ai-feature p {
  font-size: 1rem;
  font-weight: 500;
  color: var(--white-muted);
  line-height: 1.5;
}

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

@media (max-width: 900px) {
  .ai-header {
    grid-template-columns: 1fr;
  }

  .ai-features {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Process — Scroll Pin
   ============================================ */

.process-scrub-track {
  height: 360vh;
  position: relative;
  padding-top: var(--section-padding);
}

.process-scrub-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: flex-start;
  padding-top: calc(var(--header-height) + 0.75rem);
  padding-bottom: 1.25rem;
}

.process-scrub-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.6rem, 2.8vw, 2.15rem);
}

.process-header {
  margin-bottom: 0;
}

.process-timeline {
  position: relative;
  max-width: 700px;
  margin-inline: auto;
}

.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--border);
}

.timeline-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--progress, 0%);
  background: linear-gradient(to bottom, var(--blue-accent), var(--purple-accent));
  transition: height 0.1s linear;
}

.process-step {
  display: flex;
  gap: 2rem;
  padding-bottom: 3rem;
  opacity: 0.4;
  transition: opacity 0.5s;
}

.process-scrub-track .process-step {
  opacity: 0;
  transform: translateX(-30px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  padding-bottom: 0;
  transition:
    opacity 0.55s var(--ease-out-expo),
    transform 0.55s var(--ease-out-expo),
    max-height 0.55s var(--ease-out-expo);
}

.process-scrub-track .process-step.is-revealed {
  opacity: 0.4;
  transform: translateX(0);
  max-height: none;
  overflow: visible;
  pointer-events: auto;
  padding-bottom: 3rem;
}

.process-scrub-track .process-step.is-revealed.is-active {
  opacity: 1;
}

.process-step.is-active {
  opacity: 1;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-scrub-track .process-step.is-revealed:last-child {
  padding-bottom: 0;
}

.process-outro {
  padding-top: 0.5rem;
  padding-bottom: var(--section-padding);
}

.process-outro .process-cta {
  margin-top: 0.5rem;
}

.process-mobile {
  display: none;
  padding-block: var(--section-padding);
}

.process-timeline--mobile .process-step {
  opacity: 0.4;
  transform: none;
  max-height: none;
  overflow: visible;
  pointer-events: auto;
  padding-bottom: 3rem;
}

.process-timeline--mobile .process-step.is-active {
  opacity: 1;
}

@media (max-width: 900px) {
  .process-outro,
  .process-scrub-track {
    display: none;
  }

  .process-mobile {
    display: block;
  }
}

.step-marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--blue-mid);
  position: relative;
  z-index: 1;
  transition: border-color 0.4s, background 0.4s, color 0.4s;
}

.process-step.is-active .step-marker {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-accent), var(--purple-accent));
  color: var(--white);
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  padding-bottom: 0.12em;
  margin-bottom: 0.75rem;
  overflow: visible;
}

.step-content p {
  color: var(--white-muted);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
}

/* ============================================
   Contact
   ============================================ */

.contact {
  position: relative;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(59, 108, 255, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(124, 92, 252, 0.08) 0%, transparent 50%);
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.contact-details {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: transform 0.3s var(--ease-out-expo);
}

a.contact-detail:hover {
  transform: translateX(8px);
}

.detail-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue-accent);
}

.detail-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.contact-form {
  background: var(--blue-surface);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--blue-dark);
  color: var(--white);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-accent);
  box-shadow: 0 0 0 3px rgba(59, 108, 255, 0.15);
}

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

.form-success {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--cyan-accent);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s var(--ease-out-expo);
}

.form-success.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.form-error {
  text-align: center;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: #ff8f8f;
  line-height: 1.45;
}

.form-error[hidden] {
  display: none !important;
}

/* Honeypot: invisible to humans, still in the DOM for bots */
.form-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--white-muted);
  display: block;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--blue-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: 0.75rem;
  color: var(--white-faint);
}

.footer-location {
  color: var(--white-muted);
}

@media (max-width: 640px) {
  .footer-top {
    flex-direction: column;
    text-align: center;
  }

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

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

/* ============================================
   Demo Lightbox
   ============================================ */

.demo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.demo-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 20, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: 90vh;
  overflow: hidden;
  border-radius: 16px;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}

.lightbox-visual {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    hsl(var(--lb-hue, 230), 45%, 35%) 0%,
    hsl(var(--lb-hue, 230), 40%, 22%) 100%
  );
}

.lightbox-visual--photo {
  background-size: cover !important;
  background-position: top center !important;
  background-repeat: no-repeat !important;
}

/* Lightbox mini-UI screenshot layout */
.lightbox-visual--snippet {
  background: #0a1220;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
}

.lightbox-snippet {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 0.55rem;
  height: 100%;
  min-height: 400px;
  pointer-events: none;
  user-select: none;
}

.lightbox-snippet > .site-mini--lightbox {
  position: relative;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-snippet-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  min-height: 108px;
  max-height: 128px;
}

.lightbox-snippet-thumbs .site-mini {
  position: relative;
  height: 100%;
  min-height: 100px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Larger type/spacing inside lightbox hero */
.site-mini--lightbox .sm-nav {
  padding: 0.7rem 1rem;
  font-size: 0.58rem;
}

.site-mini--lightbox .sm-logo {
  font-size: 0.72rem;
}

.site-mini--lightbox .sm-links {
  display: block;
  font-size: 0.52rem;
}

.site-mini--lightbox .sm-cta {
  font-size: 0.52rem;
  padding: 0.35rem 0.7rem;
}

.site-mini--lightbox .sm-hero {
  padding: 1.1rem 1.15rem 1.25rem;
  gap: 0.5rem;
}

.site-mini--lightbox h4 {
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
}

.site-mini--lightbox p {
  font-size: 0.62rem;
  max-width: 34ch;
  line-height: 1.45;
}

.site-mini--lightbox .sm-btn {
  font-size: 0.52rem;
  padding: 0.4rem 0.75rem;
}

.site-mini--lightbox .sm-stats {
  font-size: 0.5rem;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.site-mini--lightbox .sm-stats b {
  font-size: 0.78rem;
}

.site-mini--lightbox .sm-badge {
  font-size: 0.48rem;
}

.site-mini--lightbox .sm-tooth {
  max-width: 110px;
  width: 34%;
}

.site-mini--lightbox .sm-vitals {
  max-width: 150px;
  width: 40%;
  padding: 0.65rem 0.7rem;
  font-size: 0.48rem;
}

.site-mini--lightbox .sm-vital-row b {
  font-size: 0.72rem;
}

.site-mini--lightbox .sm-ecg {
  height: 20px;
}

.site-mini--lightbox .sm-swatches i {
  width: 0.95rem;
  height: 0.95rem;
}

.lightbox-content {
  padding: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lightbox-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue-accent);
  margin-bottom: 1rem;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.1em;
  margin-bottom: 0.5rem;
  overflow: visible;
}

.lightbox-niche {
  font-size: 0.9rem;
  color: var(--white-muted);
  margin-bottom: 1.5rem;
}

.lightbox-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--white-muted);
  margin-bottom: 2rem;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-surface);
  border: 1px solid var(--border);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s var(--ease-out-expo);
}

.lightbox-close:hover {
  background: var(--blue-accent);
  transform: rotate(90deg);
}

.lightbox-demo-link {
  margin-bottom: 1.5rem;
  width: fit-content;
}

.lightbox-nav {
  display: flex;
  gap: 0.75rem;
}

.lightbox-nav-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color 0.3s, background 0.3s;
}

.lightbox-nav-btn:hover {
  border-color: var(--purple-accent);
  background: var(--purple-accent);
}

@media (max-width: 768px) {
  .lightbox-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .lightbox-visual {
    min-height: 240px;
  }

  .lightbox-snippet {
    min-height: 280px;
  }

  .lightbox-snippet-thumbs {
    min-height: 88px;
    max-height: 100px;
  }

  .site-mini--lightbox h4 {
    font-size: 1.05rem;
  }

  .site-mini--lightbox .sm-hero-visual,
  .site-mini--lightbox .sm-vitals {
    display: none;
  }

  .site-mini--lightbox .sm-hero--split {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Reveal Animation Base States
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  overflow: visible;
}

[data-reveal]:is(h1, h2, h3, h4, p, .section-title, .hero-title, .hero-tagline, .hero-lead, .section-eyebrow, .section-text, blockquote, .founder-text, .hero-badge) {
  transform: none;
}

[data-split] .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
}

[data-service-card] {
  opacity: 0;
  transform: translateY(60px);
}

[data-demo-card] {
  opacity: 0;
  transform: scale(0.92);
}

[data-ai-feature] {
  opacity: 0;
  transform: translateY(30px);
}

.process-mobile [data-process-step-mobile] {
  opacity: 0;
  transform: translateX(-30px);
}

/* ============================================
   Cookie notice — ultra-minimal bottom bar
   ============================================ */

.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-notice__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  width: 100%;
  padding: 0.7rem var(--page-gutter);
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 15, 31, 0.96);
  font-family: var(--font-body);
}

.cookie-notice__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--white-muted);
  text-align: center;
}

.cookie-notice__text a {
  color: var(--blue-glow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-notice__text a:hover {
  color: var(--white);
}

/* Keep site cursor:none so the custom cursor (above this bar) stays visible */
.cookie-notice,
.cookie-notice * {
  cursor: none;
}

.cookie-notice__btn {
  appearance: none;
  flex-shrink: 0;
  border: none;
  border-radius: 4px;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white);
  background: var(--blue-accent);
  cursor: none;
  transition: background 0.2s ease;
}

.cookie-notice__btn:hover {
  background: var(--blue-glow);
}

.cookie-notice__btn:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .cookie-notice__inner {
    padding-bottom: max(4.75rem, calc(env(safe-area-inset-bottom) + 4rem));
  }
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer-legal a,
.footer-legal button {
  font-size: 0.75rem;
  color: var(--white-faint);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.25s;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: var(--blue-glow);
}

@media (max-width: 640px) {
  .footer-legal {
    justify-content: center;
  }
}

/* ============================================
   Scroll Progress Bar (top of page)
   ============================================ */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001;
  pointer-events: none;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue-accent), var(--purple-accent), var(--cyan-accent));
  box-shadow: 0 0 12px rgba(77, 124, 255, 0.55);
  transition: width 0.05s linear;
}

/* ============================================
   Site Mini — static “screenshot” UI snippets
   (uninteractable miniature versions of demos)
   ============================================ */

.site-mini {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.site-mini * {
  pointer-events: none;
}

.niche-preview-main,
.niche-preview-thumb,
.niche-mobile-visual {
  position: relative;
  min-height: 0;
}

.niche-preview-main .site-mini,
.niche-preview-thumb .site-mini,
.niche-mobile-visual .site-mini {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.demo-img--mini {
  background: transparent !important;
  display: block;
  overflow: hidden;
}

.demo-img--mini .site-mini {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Shared chrome ── */
.sm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  flex-shrink: 0;
  font-size: 0.48rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 2;
}

.sm-logo {
  font-weight: 700;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
}

.sm-logo span {
  font-weight: 500;
  opacity: 0.75;
}

.sm-logo--mark span {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.15rem;
}

.sm-links {
  opacity: 0.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: center;
  font-size: 0.42rem;
}

.sm-cta {
  font-size: 0.42rem;
  font-weight: 600;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.sm-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.75rem 0.85rem 0.9rem;
  gap: 0.35rem;
  min-height: 0;
  position: relative;
  z-index: 1;
}

.sm-hero--split {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.sm-hero-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sm-badge {
  font-size: 0.4rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}

.sm-badge--dot {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.sm-badge--dot::before {
  content: '';
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
  box-shadow: 0 0 6px currentColor;
}

.site-mini h4 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(0.72rem, 1.6vw, 1.05rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  color: inherit;
}

.site-mini h4 em {
  font-style: italic;
  font-weight: 400;
}

.site-mini h5 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0.2rem 0 0.35rem;
  color: inherit;
}

.site-mini h5 em {
  font-style: italic;
}

.site-mini p {
  font-size: 0.48rem;
  line-height: 1.4;
  opacity: 0.72;
  margin: 0;
  max-width: 22ch;
  font-weight: 400;
}

.sm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.sm-btn {
  font-size: 0.42rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.sm-btn--ghost {
  background: transparent !important;
  box-shadow: inset 0 0 0 1px currentColor;
  opacity: 0.75;
}

.sm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
  font-size: 0.4rem;
  opacity: 0.8;
}

.sm-stats b {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  color: inherit;
  opacity: 1;
}

.sm-section-label {
  font-size: 0.38rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  font-weight: 600;
}

.sm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.35rem;
}

.sm-pills span {
  font-size: 0.38rem;
  padding: 0.18rem 0.4rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.7;
}

.site-mini--about,
.site-mini--services {
  padding: 0.65rem 0.7rem;
  justify-content: center;
}

/* ── Wedding (Isabella) ── */
.site-mini--wedding {
  background:
    linear-gradient(160deg, rgba(44, 44, 44, 0.55) 0%, rgba(44, 44, 44, 0.75) 100%),
    linear-gradient(135deg, #3a2f2a 0%, #1a1512 50%, #2c2420 100%);
  color: #FAF7F2;
}

.site-mini--wedding.site-mini--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232, 196, 196, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(201, 169, 98, 0.12), transparent 50%);
  pointer-events: none;
}

.site-mini--wedding .sm-nav {
  background: rgba(250, 247, 242, 0.06);
  border-bottom-color: rgba(250, 247, 242, 0.1);
  color: #FAF7F2;
}

.site-mini--wedding .sm-logo {
  font-family: Georgia, serif;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.site-mini--wedding .sm-cta {
  background: #C9A962;
  color: #2C2C2C;
}

.site-mini--wedding .sm-btn {
  background: #C9A962;
  color: #2C2C2C;
}

.site-mini--wedding h4 em,
.site-mini--wedding h5 em {
  color: #E8D5A8;
}

.site-mini--wedding.site-mini--about,
.site-mini--wedding.site-mini--services {
  background: linear-gradient(165deg, #FAF7F2 0%, #F5F0E8 100%);
  color: #2C2C2C;
}

.site-mini--wedding.site-mini--about .sm-section-label,
.site-mini--wedding.site-mini--services .sm-section-label {
  color: #C9A962;
  opacity: 1;
}

.site-mini--wedding.site-mini--about h5 em,
.site-mini--wedding.site-mini--services h5 em {
  color: #8B9A7D;
}

.site-mini--wedding .sm-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.42rem;
  margin-top: 0.35rem;
  opacity: 0.85;
}

.site-mini--wedding .sm-bar {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #C9A962, rgba(201, 169, 98, 0.2));
  max-width: 55%;
}

.site-mini--wedding .sm-bar--mid {
  max-width: 40%;
  opacity: 0.7;
}

/* ── Dental (Lumina) ── */
.site-mini--dental {
  background:
    radial-gradient(ellipse 70% 50% at 80% 30%, rgba(126, 221, 211, 0.25), transparent 55%),
    linear-gradient(165deg, #F4FBFA 0%, #EAF7F5 45%, #d8f0ed 100%);
  color: #071A22;
}

.site-mini--dental .sm-nav {
  background: rgba(255, 255, 255, 0.7);
  border-bottom-color: rgba(7, 26, 34, 0.08);
  color: #071A22;
}

.site-mini--dental .sm-logo {
  font-family: Georgia, serif;
  color: #0B2B33;
}

.site-mini--dental .sm-logo span {
  color: #2BB3A8;
  opacity: 1;
  font-style: italic;
}

.site-mini--dental .sm-cta {
  background: #0E8F8A;
  color: #fff;
}

.site-mini--dental .sm-btn {
  background: #0E8F8A;
  color: #fff;
}

.site-mini--dental .sm-badge {
  color: #0E8F8A;
  opacity: 1;
}

.site-mini--dental h4 em,
.site-mini--dental h5 em {
  color: #2BB3A8;
  font-family: Georgia, serif;
}

.site-mini--dental.site-mini--about,
.site-mini--dental.site-mini--services {
  background: linear-gradient(160deg, #0B2B33 0%, #071A22 100%);
  color: #EAF7F5;
}

.site-mini--dental.site-mini--about .sm-section-label,
.site-mini--dental.site-mini--services .sm-section-label {
  color: #7EDDD3;
  opacity: 1;
}

.site-mini--dental .sm-float-cards {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.site-mini--dental .sm-float {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(126, 221, 211, 0.25);
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  font-size: 0.38rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-mini--dental .sm-float b {
  font-size: 0.5rem;
  color: #7EDDD3;
}

.sm-tooth {
  width: 38%;
  max-width: 72px;
  aspect-ratio: 1;
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.sm-tooth-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(43, 179, 168, 0.35);
  box-shadow: 0 0 20px rgba(126, 221, 211, 0.35);
}

.sm-tooth-core {
  width: 42%;
  height: 52%;
  border-radius: 40% 40% 48% 48%;
  background: linear-gradient(160deg, #F7FFFE 0%, #D8F5F2 50%, #7EDDD3 100%);
  box-shadow: 0 4px 16px rgba(43, 179, 168, 0.4);
}

/* ── Healthcare (Halcyon) ── */
.site-mini--health {
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(216, 240, 74, 0.12), transparent 50%),
    linear-gradient(165deg, #F4F0E8 0%, #EBE5D9 100%);
  color: #14120F;
}

.site-mini--health .sm-nav {
  background: rgba(252, 250, 246, 0.85);
  border-bottom-color: rgba(20, 18, 15, 0.1);
}

.site-mini--health .sm-logo {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 0.6rem;
}

.site-mini--health .sm-cta {
  background: #14120F;
  color: #F4F0E8;
}

.site-mini--health .sm-btn {
  background: #14120F;
  color: #F4F0E8;
}

.site-mini--health .sm-badge {
  color: #1F6B4A;
  opacity: 1;
}

.site-mini--health h4 em,
.site-mini--health h5 em {
  color: #1F6B4A;
}

.sm-vitals {
  width: 42%;
  max-width: 110px;
  flex-shrink: 0;
  background: #14120F;
  color: #F4F0E8;
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  font-size: 0.38rem;
  box-shadow: 0 8px 24px rgba(20, 18, 15, 0.25);
}

.sm-vitals-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.7;
  margin-bottom: 0.3rem;
  font-size: 0.34rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sm-live {
  color: #D8F04A;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.sm-live::before {
  content: '';
  width: 0.28rem;
  height: 0.28rem;
  border-radius: 50%;
  background: #D8F04A;
  box-shadow: 0 0 4px #D8F04A;
}

.sm-vital-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.25rem;
  align-items: baseline;
  padding: 0.12rem 0;
  border-top: 1px solid rgba(244, 240, 232, 0.1);
}

.sm-vital-row b {
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

.sm-vital-row em {
  font-style: normal;
  opacity: 0.5;
  font-size: 0.32rem;
}

.sm-ecg {
  margin-top: 0.3rem;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(90deg,
      transparent 0%, transparent 8%,
      #D8F04A 8%, #D8F04A 10%,
      transparent 10%, transparent 18%,
      #D8F04A 18%, #D8F04A 19%,
      transparent 19%, transparent 28%,
      #2F8F64 28%, #2F8F64 32%,
      transparent 32%, transparent 45%,
      #D8F04A 45%, #D8F04A 47%,
      transparent 47%, transparent 55%,
      #D8F04A 55%, #D8F04A 56%,
      transparent 56%, transparent 70%,
      #2F8F64 70%, #2F8F64 74%,
      transparent 74%);
  opacity: 0.85;
  background-size: 100% 100%;
  background-color: rgba(216, 240, 74, 0.06);
}

.site-mini--health.site-mini--about,
.site-mini--health.site-mini--services {
  background: linear-gradient(160deg, #14120F 0%, #1a1814 100%);
  color: #F4F0E8;
}

.site-mini--health.site-mini--about .sm-section-label,
.site-mini--health.site-mini--services .sm-section-label {
  color: #D8F04A;
  opacity: 1;
}

.site-mini--health.site-mini--about h5 em {
  color: #D8F04A;
}

.sm-care-num {
  margin-top: 0.4rem;
  font-size: 0.42rem;
  opacity: 0.75;
  font-family: ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.sm-pills--signal span {
  border-color: rgba(216, 240, 74, 0.4);
  color: #D8F04A;
  opacity: 1;
}

/* ── Plastering (CALX) ── */
.site-mini--plaster {
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(196, 92, 62, 0.2), transparent 55%),
    linear-gradient(165deg, #F5F0E8 0%, #E8DFD0 40%, #D4C4A8 100%);
  color: #1C1917;
}

.site-mini--plaster .sm-nav {
  background: rgba(255, 255, 255, 0.55);
  border-bottom-color: rgba(28, 25, 23, 0.08);
}

.site-mini--plaster .sm-logo {
  font-family: Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.site-mini--plaster .sm-logo span {
  font-style: italic;
  font-weight: 400;
  color: #C45C3E;
  opacity: 1;
}

.site-mini--plaster .sm-cta {
  background: #C45C3E;
  color: #fff;
}

.site-mini--plaster .sm-btn {
  background: #C45C3E;
  color: #fff;
}

.site-mini--plaster .sm-badge {
  color: #C45C3E;
  opacity: 1;
}

.site-mini--plaster h4 em,
.site-mini--plaster h5 em {
  color: #C45C3E;
}

.sm-swatches {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.sm-swatches i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: block;
}

.site-mini--plaster.site-mini--about,
.site-mini--plaster.site-mini--services {
  background: linear-gradient(160deg, #2A2420 0%, #1C1917 100%);
  color: #F5F0E8;
}

.site-mini--plaster.site-mini--about .sm-section-label,
.site-mini--plaster.site-mini--services .sm-section-label {
  color: #D4A054;
  opacity: 1;
}

.site-mini--plaster.site-mini--about h5 em {
  color: #E07A5A;
}

.sm-finish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
  margin-top: 0.4rem;
}

.sm-finish-grid span {
  font-size: 0.38rem;
  font-weight: 600;
  padding: 0.4rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 3px 0 0 var(--c);
  color: #F5F0E8;
  text-align: center;
}

/* ── Compact (mobile niche cards) ── */
.site-mini--compact .sm-links,
.site-mini--compact .sm-stats,
.site-mini--compact .sm-hero p,
.site-mini--compact .sm-hero-visual,
.site-mini--compact .sm-vitals,
.site-mini--compact .sm-swatches {
  display: none;
}

.site-mini--compact .sm-hero {
  padding: 0.45rem 0.6rem 0.55rem;
}

.site-mini--compact .sm-hero--split {
  flex-direction: column;
  align-items: flex-start;
}

.site-mini--compact h4 {
  font-size: 0.7rem;
}

.site-mini--compact .sm-nav {
  padding: 0.35rem 0.5rem;
}

.niche-mobile-visual {
  overflow: hidden;
}

/* ── Demo card sizing tweaks ── */
.site-mini--demo .sm-stats {
  display: none;
}

.demo-card--wide .site-mini--demo .sm-hero {
  max-width: 70%;
}

.demo-card:hover .demo-img--mini .site-mini {
  transform: none;
}

/* Thumb frames: hide noisy chrome */
.niche-preview-thumb .sm-nav {
  display: none;
}

.niche-preview-thumb .site-mini h5 {
  font-size: 0.65rem;
}

.niche-preview-main .sm-links {
  display: none;
}

@media (min-width: 1100px) {
  .niche-preview-main .sm-links {
    display: block;
  }
}
