/* =========================================================================
   Hapex AI — shared global styles
   Multi-page relaunch · 2026-04
   ========================================================================= */

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

:root {
  --cream:      #FDFBF7;
  --white:      #FFFFFF;
  --ink:        #240F0E;
  --ink-soft:   rgba(36, 15, 14, 0.72);
  --ink-dim:    rgba(36, 15, 14, 0.5);
  --fire:       #f74c30;
  --fire-soft:  rgba(247, 76, 48, 0.12);
  --fire-glow:  rgba(247, 76, 48, 0.45);
  --terracotta: #E27B5B;
  --blush:      #F2D5C4;
  --crimson:    #A12233;
  --line:       rgba(36, 15, 14, 0.08);
  --line-warm:  rgba(242, 213, 196, 0.6);

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

  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 28px;

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(2.6rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
p  { font-size: 1.02rem; color: var(--ink-soft); }

::selection { background: var(--fire); color: var(--white); }

/* ================================================================
   NAV — sticky, glass on scroll
================================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 22px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease),
              backdrop-filter 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.nav.scrolled {
  padding: 12px 48px;
  background: rgba(253, 251, 247, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 2px 24px rgba(36, 15, 14, 0.06);
  border-bottom: 1px solid var(--line);
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.nav-logo img {
  height: 54px; width: auto;
  transition: height 0.25s var(--ease), filter 0.3s var(--ease);
  filter: drop-shadow(0 2px 10px rgba(247, 76, 48, 0.2));
}
.nav.scrolled .nav-logo img { height: 40px; }
.nav-logo:hover img { filter: drop-shadow(0 2px 18px var(--fire-glow)); }

.nav-links {
  display: flex; gap: clamp(14px, 2vw, 32px); list-style: none;
  margin: 0 auto;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a {
  position: relative;
  font-size: clamp(0.68rem, 0.85vw, 0.82rem); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 2px;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--fire);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--fire); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  white-space: nowrap; flex-shrink: 0;
  background: var(--fire); color: var(--white);
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 0 22px var(--fire-glow);
  animation: ctaPulse 3.4s ease-in-out infinite;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-cta:hover { transform: translateY(-2px); background: #ff6140; box-shadow: 0 0 34px var(--fire-glow); }
@keyframes ctaPulse {
  0%,100% { box-shadow: 0 0 22px var(--fire-glow); }
  50%     { box-shadow: 0 0 34px var(--fire-glow), 0 0 60px rgba(247,76,48,0.2); }
}

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: rgba(253, 251, 247, 0.98);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 96px 48px 48px;
  flex-direction: column; gap: 28px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.mobile-menu a:hover { color: var(--fire); }

@media (max-width: 1080px) {
  .nav { padding: 16px 24px; }
  .nav.scrolled { padding: 10px 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.3s var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--fire); color: var(--white);
  box-shadow: 0 0 24px var(--fire-glow);
  animation: ctaPulse 3s ease-in-out infinite;
}
.btn-primary:hover { transform: translateY(-3px); background: #ff6140; box-shadow: 0 0 40px var(--fire-glow); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-3px); }
.btn-secondary {
  background: var(--terracotta); color: var(--white);
}
.btn-secondary:hover { transform: translateY(-3px); background: #d16d4d; box-shadow: 0 0 28px rgba(226,123,91,0.4); }

/* ripple on click */
.btn::after {
  content: ''; position: absolute;
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  transform: scale(0); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s;
}
.btn.rippling::after { transform: scale(180); opacity: 0; transition-duration: 0.8s; }

/* ================================================================
   SECTIONS + CONTAINERS
================================================================ */
section { padding: 110px 48px; position: relative; }
.container { max-width: 1260px; margin: 0 auto; }
.container-sm { max-width: 860px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.section-eyebrow::before {
  content: ''; width: 28px; height: 1.5px;
  background: var(--fire);
}

@media (max-width: 680px) {
  section { padding: 80px 24px; }
}

/* ================================================================
   HERO
================================================================ */
.hero {
  min-height: 100vh;
  padding: 140px 48px 80px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(247,76,48,0.13) 0%, transparent 48%),
    radial-gradient(ellipse at 85% 75%, rgba(226,123,91,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 55% 110%, rgba(242,213,196,0.55) 0%, transparent 50%);
  animation: gradientDrift 22s ease-in-out infinite;
}
@keyframes gradientDrift {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-2%, 1.5%) scale(1.04); }
  66% { transform: translate(1.5%, -2%) scale(1.02); }
}
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 26px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.15s forwards;
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.35s forwards;
}
.hero-title .fire { color: var(--fire); }
.hero-title .cursor {
  display: inline-block; width: 4px; height: 0.85em;
  background: var(--fire); vertical-align: -0.08em;
  margin-left: 6px;
  animation: caret 0.9s step-end infinite;
}
@keyframes caret { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 44px;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.6s forwards;
}
.hero-cta-row {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s var(--ease) 0.85s forwards;
}

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim);
  opacity: 0; animation: fadeUp 1s var(--ease) 1.4s forwards;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--fire), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }

/* ================================================================
   REVEAL animations — IntersectionObserver toggles `.in`
================================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-left  { opacity: 0; transform: translateX(-32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-left.in  { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(32px);  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-right.in { opacity: 1; transform: translateX(0); }

.reveal-scale { opacity: 0; transform: scale(0.96); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal-scale.in { opacity: 1; transform: scale(1); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

/* ================================================================
   CARDS
================================================================ */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  will-change: transform;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(247,76,48,0.1), transparent 50%);
  opacity: 0; transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 76, 48, 0.35);
  box-shadow: 0 30px 60px -20px rgba(36, 15, 14, 0.15), 0 0 40px var(--fire-soft);
}
.card:hover::before { opacity: 1; }

/* pricing card variants */
.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.pricing-card.featured {
  border-color: var(--fire);
  box-shadow: 0 0 0 4px rgba(247, 76, 48, 0.08), 0 30px 60px -20px rgba(247, 76, 48, 0.25);
}
.pricing-card.featured::after {
  content: 'MOST POPULAR';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--fire); color: var(--white);
  padding: 6px 18px; border-radius: 999px;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  box-shadow: 0 6px 18px var(--fire-glow);
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -20px rgba(36, 15, 14, 0.18), 0 0 50px var(--fire-soft); }
.pricing-tier { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fire); margin-bottom: 10px; }
.pricing-name { font-size: 1.9rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.pricing-desc { color: var(--ink-soft); margin-bottom: 28px; }
.pricing-price { font-size: 3.6rem; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; margin-bottom: 4px; }
.pricing-price .unit { font-size: 1rem; font-weight: 500; color: var(--ink-dim); margin-left: 6px; }
.pricing-turn { font-size: 0.8rem; color: var(--ink-dim); margin-bottom: 32px; }
.pricing-list { list-style: none; margin-bottom: 32px; }
.pricing-list li { padding: 10px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 0.95rem; }
.pricing-list li::before { content: '✓'; color: var(--fire); font-weight: 700; flex: 0 0 auto; }
.pricing-list li:last-child { border-bottom: none; }

/* ================================================================
   STATS COUNTER
================================================================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px; }
.stat {
  text-align: center;
  padding: 28px 12px;
}
.stat-num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700; color: var(--fire);
  font-family: var(--font-display);
  letter-spacing: -0.03em; line-height: 1;
}
.stat-lbl { margin-top: 8px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }

/* ================================================================
   FOOTER
================================================================ */
.footer {
  background: var(--ink); color: var(--blush);
  padding: 80px 48px 40px;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--fire), transparent);
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; max-width: 1260px; margin: 0 auto; }
.footer-brand img { height: 50px; margin-bottom: 18px; filter: drop-shadow(0 0 20px var(--fire-glow)); }
.footer-brand p { color: rgba(242, 213, 196, 0.7); font-size: 0.95rem; max-width: 380px; }
.footer-col h4 { color: var(--white); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(242, 213, 196, 0.7); font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--fire); }
.footer-bottom {
  max-width: 1260px; margin: 56px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(242, 213, 196, 0.12);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.82rem; color: rgba(242, 213, 196, 0.5);
}
@media (max-width: 900px) {
  .footer { padding: 60px 24px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FEATURE GRIDS
================================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.feature-card {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(247, 76, 48, 0.3);
  box-shadow: 0 20px 40px -15px rgba(36, 15, 14, 0.12);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--fire-soft); color: var(--fire);
  display: grid; place-items: center;
  margin-bottom: 22px;
  transition: transform 0.35s var(--ease), background 0.35s;
}
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.08); background: var(--fire); color: var(--white); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.96rem; }

/* ================================================================
   Pill / chip
================================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--fire-soft); color: var(--fire);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}

/* ================================================================
   Chat demo widget (ai-agents page + homepage sample)
================================================================ */
.chat-demo {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 500px; margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(36, 15, 14, 0.18);
}
.chat-demo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.chat-demo-dot { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.chat-demo-title { font-weight: 700; font-size: 0.95rem; }
.chat-demo-sub { font-size: 0.72rem; color: var(--ink-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.chat-row { display: flex; margin: 12px 0; }
.chat-row.user { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.45;
  animation: bubbleIn 0.45s var(--ease) backwards;
}
.chat-row.user .chat-bubble { background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.chat-row.ai .chat-bubble { background: var(--blush); color: var(--ink); border-bottom-left-radius: 4px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.chat-typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-dim); animation: chatDot 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatDot { 0%,80%,100% { transform: scale(0.8); opacity: 0.4; } 40% { transform: scale(1.2); opacity: 1; } }

/* ================================================================
   Timeline (process page)
================================================================ */
.timeline { position: relative; padding-left: 48px; max-width: 820px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 16px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--fire), var(--terracotta), var(--blush));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 56px 24px; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -40px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--fire);
  box-shadow: 0 0 0 4px rgba(247, 76, 48, 0.15), 0 0 16px var(--fire-glow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.timeline-item:hover::before { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(247, 76, 48, 0.22), 0 0 24px var(--fire-glow); }
.timeline-step { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fire); margin-bottom: 6px; }
.timeline-title { font-size: 1.4rem; margin-bottom: 8px; }
.timeline-body { color: var(--ink-soft); }

/* ================================================================
   Work cards
================================================================ */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.work-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--blush);
  cursor: pointer;
  transition: transform 0.4s var(--ease);
}
.work-card:hover { transform: translateY(-6px); }
.work-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.7s var(--ease);
}
.work-card:hover .work-card-bg { transform: scale(1.06); }
.work-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(36, 15, 14, 0.92) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  color: var(--cream);
}
.work-card-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fire); margin-bottom: 6px; }
.work-card-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.work-card-meta { font-size: 0.88rem; color: rgba(242, 213, 196, 0.85); margin-top: 4px; }
.work-card-link {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--fire);
  display: grid; place-items: center;
  opacity: 0; transform: translate(8px, -8px) rotate(-25deg);
  transition: all 0.35s var(--ease);
  box-shadow: 0 8px 20px rgba(36, 15, 14, 0.25);
}
.work-card:hover .work-card-link { opacity: 1; transform: translate(0, 0) rotate(0); }

/* ================================================================
   Comparison table (websites page)
================================================================ */
.compare {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.compare-row:last-child { border-bottom: none; }
.compare-head { background: var(--blush); }
.compare-cell { padding: 22px 24px; display: flex; align-items: center; }
.compare-cell.feature { font-weight: 600; }
.compare-cell.tier { justify-content: center; font-size: 0.95rem; }
.compare-cell.tier.yes::before { content: '✓'; color: var(--fire); font-weight: 700; margin-right: 8px; }
.compare-cell.tier.no { color: var(--ink-dim); }
.compare-head .compare-cell { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }

/* ================================================================
   Forms (contact page)
================================================================ */
.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
}
.form label { display: block; margin-bottom: 18px; }
.form label span { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 1rem; color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--fire);
  box-shadow: 0 0 0 4px var(--fire-soft);
}
.form textarea { resize: vertical; min-height: 140px; }

/* ================================================================
   AI agent live widget (home + ai-agents preview)
================================================================ */
.live-agent {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #fdf6ef 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 40px 80px -24px rgba(36, 15, 14, 0.2);
}
.live-agent::before {
  content: ''; position: absolute; inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--fire), var(--terracotta), var(--blush));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.7;
  pointer-events: none;
  animation: borderSweep 6s linear infinite;
}
@keyframes borderSweep { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(30deg); } }

/* ================================================================
   Phone frames (socials page)
================================================================ */
.phone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; perspective: 1200px; }
.phone {
  position: relative;
  aspect-ratio: 9/19;
  background: var(--ink);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 40px 80px -24px rgba(36, 15, 14, 0.35);
  transition: transform 0.5s var(--ease);
  transform-style: preserve-3d;
}
.phone:hover { transform: rotateY(-8deg) rotateX(6deg) translateY(-6px); }
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover; background-position: center;
}

/* ================================================================
   Utility
================================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; gap: 40px; } }
.text-center { text-align: center; }
.muted { color: var(--ink-soft); }
.fire { color: var(--fire); }
.mt-8 { margin-top: 2rem; } .mt-16 { margin-top: 4rem; }
.mb-8 { margin-bottom: 2rem; } .mb-16 { margin-bottom: 4rem; }

/* ================================================================
   Page transitions (client-side nav)
================================================================ */
body { transition: opacity 0.3s var(--ease); }
body.page-leaving { opacity: 0; transform: translateY(-8px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }

/* ================================================================
   HERO ORBS — premium frosted glass constellation
   (Websites · AI · Socials connected by glowing energy lines,
    whole thing rotates 40s; labels counter-rotate to stay upright)
================================================================ */
.hero-orbs {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1;
  margin: 72px auto 0;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 1.1s forwards;
}
.orbs-spinner {
  position: absolute; inset: 0;
  animation: orbsSpin 40s linear infinite;
  transform-origin: center;
}
@keyframes orbsSpin { to { transform: rotate(360deg); } }

.hero-orbs-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.orb-line {
  fill: none;
  stroke: url(#orb-line-gradient);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.55;
  transition: opacity 0.6s var(--ease), stroke-width 0.6s var(--ease);
  filter: drop-shadow(0 0 6px rgba(247, 76, 48, 0.4));
}
.hero-orbs:hover .orb-line { opacity: 0.95; stroke-width: 2.6; }
.orb-line.flow {
  stroke-dasharray: 140;
  stroke-dashoffset: 0;
  animation: orbFlow 6s linear infinite;
}
@keyframes orbFlow { to { stroke-dashoffset: -280; } }

.orb {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  transition: filter 0.5s var(--ease);
}
.orb.web  { top: 0;   left: 50%; margin-left: -100px; }
.orb.ai   { bottom: 4%; left: 2%; }
.orb.socs { bottom: 4%; right: 2%; }

.orb-rot {
  width: 100%; height: 100%;
  animation: orbsCounterSpin 40s linear infinite;
  transform-origin: center;
}
@keyframes orbsCounterSpin { to { transform: rotate(-360deg); } }

.orb-glow {
  position: absolute; inset: -45px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--orb-color), transparent 65%);
  opacity: 0.55;
  animation: orbGlowPulse 5.5s ease-in-out infinite;
  z-index: -1;
}
.orb.ai   .orb-glow { animation-delay: 1.8s; }
.orb.socs .orb-glow { animation-delay: 3.6s; }
@keyframes orbGlowPulse {
  0%,100% { opacity: 0.45; transform: scale(1); }
  50%     { opacity: 0.85; transform: scale(1.14); }
}

.orb-bg {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.85) 0%, rgba(253, 251, 247, 0.55) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1.5px solid rgba(255,255,255,0.95);
  display: grid; place-items: center;
  box-shadow:
    0 24px 50px -12px rgba(36, 15, 14, 0.18),
    inset 0 2px 3px rgba(255,255,255,0.9),
    inset 0 -6px 14px rgba(247, 76, 48, 0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  cursor: pointer;
}
.orb .label {
  font-family: 'Playfair Display', 'Space Grotesk', serif;
  font-weight: 500;
  font-size: 1.45rem;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1;
}
.orb .dot {
  position: absolute; top: 22px; right: 22px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orb-color);
  box-shadow: 0 0 14px var(--orb-color);
  opacity: 0.85;
  animation: orbDotPulse 2.2s ease-in-out infinite;
}
@keyframes orbDotPulse { 0%,100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.35); opacity: 1; } }

.orb.web  { --orb-color: rgba(247, 76, 48, 0.55); }
.orb.ai   { --orb-color: rgba(226, 123, 91, 0.55); }
.orb.socs { --orb-color: rgba(161, 34, 51, 0.5);  }

.orb:hover .orb-bg {
  transform: scale(1.06);
  box-shadow:
    0 36px 70px -12px rgba(36, 15, 14, 0.22),
    0 0 60px var(--orb-color),
    inset 0 2px 3px rgba(255,255,255,1),
    inset 0 -6px 18px rgba(247, 76, 48, 0.12);
}
.orb:hover .orb-glow { opacity: 1; transform: scale(1.3); }
.hero-orbs:has(.orb:hover) .orb-line { opacity: 1; stroke-width: 3; }

@media (max-width: 640px) {
  .hero-orbs { max-width: 380px; margin-top: 48px; }
  .orb { width: 128px; height: 128px; }
  .orb.web  { margin-left: -64px; }
  .orb .label { font-size: 1.05rem; }
  .orb .dot { top: 14px; right: 14px; width: 8px; height: 8px; }
  .orb-glow { inset: -30px; }
}

/* ================================================================
   Trust strip (replaces fake testimonials)
================================================================ */
.trust-strip {
  max-width: 980px; margin: 0 auto;
  padding: 44px 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px -24px rgba(36, 15, 14, 0.12);
  text-align: center;
}
.trust-strip h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.trust-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.trust-item {
  padding: 18px 12px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--line);
}
.trust-item .t-lbl {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fire);
  margin-bottom: 6px;
}
.trust-item .t-val {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 600;
  color: var(--ink);
}
@media (max-width: 720px) { .trust-row { grid-template-columns: 1fr 1fr; } }

/* ================================================================
   Urgency note
================================================================ */
.urgency-note {
  display: inline-block;
  margin-top: 22px;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--terracotta);
  letter-spacing: 0.01em;
}
.urgency-note::before {
  content: '●';
  display: inline-block;
  font-size: 0.6rem;
  color: var(--terracotta);
  margin-right: 8px;
  transform: translateY(-2px);
  animation: urgencyBlink 2.4s ease-in-out infinite;
}
@keyframes urgencyBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ================================================================
   Compact pricing comparison (home page)
================================================================ */
.mini-compare {
  max-width: 720px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.mini-compare-row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.mini-compare-row:last-child { border-bottom: none; }
.mini-compare-row.head {
  background: var(--blush);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
}
.mini-compare-cell { padding: 14px 18px; display: flex; align-items: center; font-size: 0.92rem; color: var(--ink-soft); }
.mini-compare-cell.feat { font-weight: 600; color: var(--ink); }
.mini-compare-cell.val  { justify-content: center; }
.mini-compare-cell.val.y::before  { content: '✓'; color: var(--fire); font-weight: 700; margin-right: 6px; }
.mini-compare-cell.val.n          { color: var(--ink-dim); }

@media (max-width: 560px) {
  .mini-compare-cell { padding: 10px 12px; font-size: 0.82rem; }
  .mini-compare-row.head { font-size: 0.64rem; }
}

/* ================================================================
   Three-tier socials pricing
================================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.tier-grid .pricing-card { padding: 36px 32px; }
.tier-grid .pricing-card.featured { padding: 48px 32px; }
.tier-grid .pricing-price { font-size: 2.6rem; }
.tier-grid .pricing-card.featured .pricing-price { font-size: 3rem; }
@media (max-width: 940px) {
  .tier-grid { grid-template-columns: 1fr; gap: 20px; }
  .tier-grid .pricing-card.featured { transform: none; }
}

/* ================================================================
   Domains page — hero visual (URL being caught)
================================================================ */
.domains-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 56px auto 0;
  aspect-ratio: 2.4/1;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease) 1s forwards;
}
.domains-radar {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.radar-ring {
  position: absolute;
  border: 1.5px solid var(--fire);
  border-radius: 50%;
  opacity: 0;
  animation: radarPing 3.2s ease-out infinite;
}
.radar-ring.r1 { width: 110px; height: 110px; animation-delay: 0s; }
.radar-ring.r2 { width: 110px; height: 110px; animation-delay: 1s; }
.radar-ring.r3 { width: 110px; height: 110px; animation-delay: 2s; }
@keyframes radarPing {
  0%   { opacity: 0.85; transform: scale(0.4); border-color: var(--fire); }
  80%  { opacity: 0;    transform: scale(3.4); border-color: var(--terracotta); }
  100% { opacity: 0;    transform: scale(3.4); }
}
.radar-core {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fire), var(--crimson));
  display: grid; place-items: center;
  color: var(--white);
  box-shadow: 0 0 40px var(--fire-glow), inset 0 2px 6px rgba(255,255,255,0.3);
  animation: radarPulse 2.2s ease-in-out infinite;
  z-index: 2;
}
.radar-core svg { width: 36px; height: 36px; }
@keyframes radarPulse { 0%,100% { box-shadow: 0 0 40px var(--fire-glow); } 50% { box-shadow: 0 0 60px var(--fire-glow), 0 0 100px rgba(247, 76, 48, 0.3); } }

.domain-float {
  position: absolute;
  top: 50%;
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  font-size: 0.92rem;
  padding: 10px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgba(36, 15, 14, 0.18);
  color: var(--ink);
  white-space: nowrap;
  transform: translateY(-50%);
  animation: domainDrift 9s ease-in-out infinite;
}
.domain-float::before {
  content: ''; position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 10px var(--terracotta);
}
.domain-float { padding-left: 34px; }
.domain-float.f1 { left: 4%;   animation-delay: 0s; }
.domain-float.f2 { right: 4%;  animation-delay: 2s; }
.domain-float.f3 { left: 12%;  top: 20%; animation-delay: 4s; transform: none; }
.domain-float.f4 { right: 10%; top: 78%; animation-delay: 1s; transform: none; }
@keyframes domainDrift {
  0%,100% { transform: translateY(-50%) translateX(0); opacity: 1; }
  45%     { transform: translateY(-50%) translateX(-14px); opacity: 0.5; }
  50%     { transform: translateY(-50%) translateX(-14px); opacity: 0; }
  55%     { transform: translateY(-50%) translateX(14px);  opacity: 0; }
  65%     { transform: translateY(-50%) translateX(0);     opacity: 1; }
}
.domain-float.f3, .domain-float.f4 {
  animation-name: domainDriftVert;
}
@keyframes domainDriftVert {
  0%,100% { opacity: 1; }
  45%     { opacity: 0.4; }
  50%     { opacity: 0; }
  55%     { opacity: 0; }
  65%     { opacity: 1; }
}

@media (max-width: 560px) {
  .domains-visual { aspect-ratio: 1.8/1; }
  .domain-float { font-size: 0.78rem; padding: 8px 14px 8px 28px; }
  .radar-core { width: 72px; height: 72px; }
  .radar-core svg { width: 28px; height: 28px; }
}

/* ================================================================
   FEATHERED IMAGES — utility for blending brand art into the cream bg
   Every brand illustration uses a radial mask so edges fade out.
   No rectangles, no borders, images float in the design.
================================================================ */
.feathered-image {
  /* Aggressive multi-stop feather — solid core to soft edge to fully transparent
     at 90%. The tiny blur softens any lingering hard pixels so the art
     genuinely sinks into the cream background rather than sitting on top of it. */
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, rgba(0, 0, 0, 0.8) 55%, transparent 90%);
          mask-image: radial-gradient(ellipse at center, black 30%, rgba(0, 0, 0, 0.8) 55%, transparent 90%);
  filter: blur(0.5px);
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}
/* For anything still reading as boxy, add .blend to multiply against the cream bg */
.feathered-image.blend { mix-blend-mode: multiply; }
.feathered-image.soft {
  -webkit-mask-image: radial-gradient(ellipse at center, black 22%, rgba(0, 0, 0, 0.75) 48%, transparent 85%);
          mask-image: radial-gradient(ellipse at center, black 22%, rgba(0, 0, 0, 0.75) 48%, transparent 85%);
}
.feathered-image.tall {
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at center, black 28%, rgba(0, 0, 0, 0.8) 55%, transparent 92%);
          mask-image: radial-gradient(ellipse 70% 80% at center, black 28%, rgba(0, 0, 0, 0.8) 55%, transparent 92%);
}
.feathered-float {
  animation: featherFloat 6s ease-in-out infinite;
}
@keyframes featherFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-14px); }
}
.feathered-tilt {
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.feathered-tilt:hover {
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg) scale(1.02);
  filter: drop-shadow(0 18px 40px rgba(247, 76, 48, 0.15))
          drop-shadow(0 6px 16px rgba(36, 15, 14, 0.1));
}

/* Experimental nav link — emerald dot pulse */
.nav-links a.nav-exp,
.mobile-menu a.nav-exp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-exp::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  animation: emeraldPulse 1.8s ease-in-out infinite;
}
@keyframes emeraldPulse {
  0%,100% { transform: scale(1);   opacity: 0.85; }
  50%     { transform: scale(1.4); opacity: 1;    }
}

/* Hero visuals that sit next to text on interior pages */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease) 1s forwards;
}
.hero-visual.xl  { max-width: 800px; }
.hero-visual.md  { max-width: 600px; }

.hero-visual .feathered-image { width: 100%; }

/* Two-column hero layout with text + image */
.hero-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
}
.hero-split .hero-text { text-align: left; }
.hero-split .hero-text .hero-cta-row { justify-content: flex-start; }
@media (max-width: 980px) {
  .hero-split { grid-template-columns: 1fr; gap: 36px; }
  .hero-split .hero-text { text-align: center; }
  .hero-split .hero-text .hero-cta-row { justify-content: center; }
}

/* Problem section — "drowning" — two column */
.problem-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
}
.problem-grid .text { text-align: left; }
@media (max-width: 880px) {
  .problem-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .problem-grid .text { text-align: center; }
}

/* Trust strip backgrounded with Indy skyline */
.trust-strip.with-skyline {
  position: relative;
  overflow: hidden;
  background: var(--white);
}
.trust-strip.with-skyline::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/assets/images/indy-skyline-pattern.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.trust-strip.with-skyline > * { position: relative; z-index: 1; }

/* Work placeholder card image */
.work-placeholder-visual {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 12px;
}

/* ================================================================
   Mobile polish — make sure everything stacks at 375px
================================================================ */
@media (max-width: 760px) {
  .compare-grid {
    grid-template-columns: 1fr !important;
  }
  .pricing-card.featured {
    transform: none;
    margin-top: 8px;
  }
  .phone-frame { max-width: 300px; }
  .hero { padding: 120px 24px 60px; min-height: auto; }
  .hero-content { padding: 0; }
  h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
}

/* ================================================================
   Full Grip featured pricing — elevated + pulsing border
================================================================ */
.pricing-card.featured {
  padding: 56px 44px;
  transform: translateY(-12px);
  animation: featuredPulse 3.2s ease-in-out infinite;
}
.pricing-card.featured .pricing-price { font-size: 4rem; }
.pricing-card.featured:hover { transform: translateY(-18px); }
@keyframes featuredPulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(247, 76, 48, 0.08), 0 30px 60px -20px rgba(247, 76, 48, 0.28), 0 0 28px rgba(247, 76, 48, 0.28); }
  50%     { box-shadow: 0 0 0 6px rgba(247, 76, 48, 0.14), 0 40px 70px -20px rgba(247, 76, 48, 0.4),  0 0 48px rgba(247, 76, 48, 0.45); }
}
@media (max-width: 760px) {
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-6px); }
}

/* ================================================================
   Distinct service cards (home page "Three things done right")
================================================================ */
.service-card {
  position: relative;
  display: block;
  padding: 40px 32px 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent, var(--fire));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent, var(--fire));
  box-shadow: 0 36px 70px -24px rgba(36,15,14,0.18), 0 0 40px var(--accent-glow, var(--fire-soft));
}
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.service-card p { margin-bottom: 20px; }
.service-card .service-cta { color: var(--accent, var(--fire)); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.25s var(--ease); }
.service-card:hover .service-cta { gap: 14px; }

.service-card.web   { --accent: var(--fire);       --accent-glow: var(--fire-soft); }
.service-card.ai    { --accent: var(--terracotta); --accent-glow: rgba(226,123,91,0.18); }
.service-card.socs  { --accent: var(--crimson);    --accent-glow: rgba(161,34,51,0.18); }

.service-visual {
  position: relative;
  height: 200px;
  margin: -10px -32px 24px;
  border-radius: 0;
  background: linear-gradient(135deg, var(--cream), var(--blush));
  overflow: hidden;
  display: grid; place-items: center;
}

/* Websites mini browser */
.sv-browser {
  width: 76%; aspect-ratio: 1.8/1;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 14px 30px -10px rgba(36,15,14,0.18);
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease);
}
.service-card.web:hover .sv-browser { transform: translateY(-6px) rotate(-1deg); }
.sv-browser-bar { height: 16px; background: var(--blush); display: flex; align-items: center; padding: 0 8px; gap: 4px; border-bottom: 1px solid var(--line); }
.sv-browser-bar span { width: 6px; height: 6px; border-radius: 50%; background: var(--fire); }
.sv-browser-bar span:nth-child(2) { background: var(--terracotta); }
.sv-browser-bar span:nth-child(3) { background: var(--crimson); }
.sv-browser-body { padding: 12px 10px; }
.sv-bar { height: 8px; background: var(--blush); border-radius: 4px; margin-bottom: 6px; width: 100%; }
.sv-bar.short { width: 60%; }
.sv-bar.pill  { height: 14px; width: 40%; background: var(--fire); border-radius: 999px; margin-top: 10px; animation: svPill 2.4s ease-in-out infinite; }
@keyframes svPill { 0%,100% { box-shadow: 0 0 0 rgba(247,76,48,0); } 50% { box-shadow: 0 0 18px var(--fire-glow); } }

/* AI chat bubble */
.sv-ai { display: flex; flex-direction: column; gap: 8px; width: 78%; }
.sv-ai .bub { padding: 10px 14px; border-radius: 14px; font-size: 0.78rem; font-family: var(--font-display); box-shadow: 0 6px 18px rgba(36,15,14,0.06); }
.sv-ai .bub.user { align-self: flex-end; background: var(--ink); color: var(--cream); border-bottom-right-radius: 4px; }
.sv-ai .bub.bot  { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; animation: svBotPulse 2.6s ease-in-out infinite; }
@keyframes svBotPulse { 0%,100% { box-shadow: 0 0 0 rgba(226,123,91,0); transform: translateX(0); } 50% { box-shadow: 0 0 22px rgba(226,123,91,0.35); transform: translateX(3px); } }

/* Socials mini feed */
.sv-feed { width: 76%; height: 140px; background: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: 0 12px 28px -10px rgba(36,15,14,0.15); }
.sv-feed-track {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px;
  animation: svFeedScroll 6s linear infinite;
}
@keyframes svFeedScroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.sv-post { display: flex; gap: 8px; padding: 8px; border-radius: 8px; background: var(--cream); flex-shrink: 0; }
.sv-post .av { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--crimson), var(--fire)); flex: 0 0 22px; }
.sv-post .lines { flex: 1 1 auto; }
.sv-post .lines span { display: block; height: 4px; background: var(--blush); border-radius: 3px; margin-bottom: 3px; }
.sv-post .lines span:first-child { width: 50%; height: 5px; background: var(--ink); }
.sv-post .lines span:nth-child(2) { width: 80%; }

/* ================================================================
   Phone frame — for the live AI demo on home
================================================================ */
.phone-frame {
  position: relative;
  width: 100%; max-width: 340px;
  aspect-ratio: 9/19;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 60px 100px -40px rgba(36, 15, 14, 0.4),
    0 0 0 2px rgba(36, 15, 14, 0.08),
    0 0 80px rgba(247, 76, 48, 0.15);
  transform: rotate(-2deg);
  transition: transform 0.6s var(--ease);
}
.phone-frame:hover { transform: rotate(0deg) translateY(-6px); }
.phone-frame::before {
  content: ''; position: absolute; top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 22px;
  background: var(--ink); border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-screen-inner {
  position: relative;
  width: 100%; height: 100%;
  background: var(--cream);
  border-radius: 32px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-topbar {
  flex: 0 0 auto;
  padding: 36px 18px 14px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.phone-topbar .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--fire), var(--terracotta)); display: grid; place-items: center; color: var(--white); font-weight: 700; font-size: 0.85rem; }
.phone-topbar .info { flex: 1; }
.phone-topbar .t-name { font-weight: 700; font-size: 0.88rem; }
.phone-topbar .t-sub { font-size: 0.68rem; color: var(--ink-dim); letter-spacing: 0.05em; display: flex; align-items: center; gap: 6px; }
.phone-topbar .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
.phone-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 14px 24px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, var(--cream), var(--white));
}
.phone-body::-webkit-scrollbar { display: none; }
.phone-body .chat-row { display: flex; }
.phone-body .chat-row.user { justify-content: flex-end; }
.phone-body .chat-bubble {
  max-width: 80%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  animation: bubbleIn 0.42s var(--ease);
}
.phone-body .chat-row.user .chat-bubble { background: var(--fire); color: var(--white); border-bottom-right-radius: 4px; }
.phone-body .chat-row.ai .chat-bubble  { background: var(--white); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: 0 4px 10px rgba(36,15,14,0.04); }
.phone-bottom {
  flex: 0 0 auto;
  padding: 10px 14px 18px;
  background: var(--white);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
}
.phone-bottom .fake-input { flex: 1; padding: 10px 14px; background: var(--cream); border-radius: 999px; font-size: 0.76rem; color: var(--ink-dim); }
.phone-bottom .send {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--fire); color: var(--white);
  display: grid; place-items: center;
  font-size: 0.8rem;
}

/* ================================================================
   Testimonials
================================================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.testimonial {
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  position: relative;
}
.testimonial:hover {
  transform: translateY(-8px);
  border-color: rgba(247, 76, 48, 0.3);
  box-shadow: 0 30px 56px -20px rgba(36,15,14,0.18), 0 0 36px var(--fire-soft);
}
.testimonial::before {
  content: '“'; position: absolute;
  top: -10px; left: 18px;
  font-family: 'Space Grotesk', serif;
  font-size: 5rem; color: var(--fire);
  line-height: 1;
  opacity: 0.25;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.testimonial:hover::before { opacity: 0.9; transform: translateY(-4px); }
.testimonial p.quote {
  font-size: 1rem; color: var(--ink); margin-bottom: 22px; line-height: 1.55;
  position: relative; z-index: 1;
}
.testimonial-who { display: flex; align-items: center; gap: 12px; }
.testimonial-av {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--white); font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--fire), var(--terracotta));
}
.testimonial-who .name { font-weight: 700; font-size: 0.95rem; }
.testimonial-who .biz { font-size: 0.8rem; color: var(--ink-dim); letter-spacing: 0.04em; }

/* ================================================================
   Page progress bar
================================================================ */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg,
    var(--prism-1) 0%,
    var(--prism-2) 25%,
    var(--prism-3) 50%,
    var(--prism-4) 75%,
    var(--prism-5) 100%);
  background-size: 300% 100%;
  animation: progressShift 8s linear infinite;
  width: 0; z-index: 200;
  box-shadow: 0 0 16px rgba(247, 76, 48, 0.45), 0 0 32px rgba(126, 88, 255, 0.25);
  transition: width 0.1s linear;
}
@keyframes progressShift {
  0%   { background-position: 0% 0%; }
  100% { background-position: 300% 0%; }
}

/* =================================================================
   ───────────────────────────────────────────────────────────────
   v2 DESIGN SYSTEM · Antigravity-style overlay
   Prism aurora · glass panels · camera-lock · magnetic UI
   Sits on top of the existing cream/fire base.
   ───────────────────────────────────────────────────────────────
================================================================= */

:root {
  /* Soft prism palette — desaturated so it lives politely on cream */
  --prism-1: #ff7a59;   /* fire-leaning */
  --prism-2: #ffb86b;   /* amber */
  --prism-3: #6dd3c7;   /* mint cyan */
  --prism-4: #7e8cff;   /* periwinkle */
  --prism-5: #c884ff;   /* lilac */
  --prism-6: #ff7ac8;   /* rose */

  --glass-bg:     rgba(253, 251, 247, 0.55);
  --glass-stroke: rgba(36, 15, 14, 0.06);
  --glass-edge:   linear-gradient(135deg,
                    rgba(247, 76, 48, 0.35) 0%,
                    rgba(126, 140, 255, 0.0) 30%,
                    rgba(200, 132, 255, 0.0) 60%,
                    rgba(109, 211, 199, 0.35) 100%);

  --display-1: clamp(3.4rem, 9vw, 8rem);
  --display-2: clamp(2.6rem, 6vw, 5.2rem);
}

/* ----------------------------------------------------------------
   AURORA BACKGROUND · drifting prism blobs behind the cream
---------------------------------------------------------------- */
.aurora-bg {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--cream);
}
.aurora-bg::before,
.aurora-bg::after {
  content: '';
  position: absolute;
  width: 70vmax; height: 70vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  mix-blend-mode: multiply;
  will-change: transform;
}
.aurora-bg::before {
  top: -20vmax; left: -20vmax;
  background: radial-gradient(circle at 30% 30%,
              var(--prism-1) 0%,
              var(--prism-2) 25%,
              transparent 60%);
  animation: auroraDrift1 28s ease-in-out infinite alternate;
}
.aurora-bg::after {
  bottom: -25vmax; right: -25vmax;
  background: radial-gradient(circle at 70% 70%,
              var(--prism-4) 0%,
              var(--prism-5) 30%,
              transparent 60%);
  animation: auroraDrift2 36s ease-in-out infinite alternate;
}
.aurora-bg .aurora-blob {
  position: absolute;
  width: 50vmax; height: 50vmax;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  background: radial-gradient(circle, var(--prism-3) 0%, var(--prism-6) 50%, transparent 70%);
  animation: auroraDrift3 44s ease-in-out infinite alternate;
  mix-blend-mode: multiply;
  will-change: transform;
}
@keyframes auroraDrift1 {
  0%   { transform: translate(0, 0)   scale(1); }
  100% { transform: translate(30vw, 20vh) scale(1.2); }
}
@keyframes auroraDrift2 {
  0%   { transform: translate(0, 0)    scale(1); }
  100% { transform: translate(-25vw, -18vh) scale(1.15); }
}
@keyframes auroraDrift3 {
  0%   { transform: translate(-50%, -50%)        scale(1); }
  100% { transform: translate(-30%, -65%) scale(1.25); }
}

/* Cursor-tracked spotlight (set by JS via --cx/--cy) */
.cursor-aura {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(420px circle at var(--cx, 50%) var(--cy, 30%),
      rgba(247, 76, 48, 0.10) 0%,
      rgba(126, 140, 255, 0.05) 35%,
      transparent 65%);
  transition: background 0.18s linear;
  mix-blend-mode: multiply;
}

/* ----------------------------------------------------------------
   PRISM TEXT — for accent words
---------------------------------------------------------------- */
.prism-text,
.fire.prism {
  background: linear-gradient(95deg,
    var(--prism-1) 0%,
    var(--prism-2) 22%,
    var(--prism-3) 44%,
    var(--prism-4) 66%,
    var(--prism-5) 88%,
    var(--prism-6) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: prismFlow 9s ease-in-out infinite;
  display: inline-block;
}
@keyframes prismFlow {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Prism hairline divider */
.prism-rule {
  height: 1px; width: 100%;
  background: linear-gradient(90deg,
    transparent, var(--prism-1), var(--prism-3), var(--prism-4), var(--prism-6), transparent);
  background-size: 200% 100%;
  animation: prismFlow 11s ease-in-out infinite;
  border: 0;
}

/* ----------------------------------------------------------------
   GLASS PANEL — frosted, with prism hairline edge
---------------------------------------------------------------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-stroke);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 30px 60px -30px rgba(36, 15, 14, 0.20),
    0 8px 32px -16px rgba(36, 15, 14, 0.10);
  overflow: hidden;
  isolation: isolate;
}
.glass::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--glass-edge);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.4s var(--ease);
}
.glass:hover::before { opacity: 1; }
.glass::after {
  content: '';
  position: absolute;
  width: 220px; height: 220px;
  top: var(--my, 50%); left: var(--mx, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(247, 76, 48, 0.18), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}
.glass:hover::after { opacity: 1; }

/* ----------------------------------------------------------------
   HERO v2 — Antigravity-style display type
---------------------------------------------------------------- */
.hero.hero-v2 {
  min-height: 100vh;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.hero-v2 .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 120px;
}
.hero-v2 .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-stroke);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  margin-bottom: 32px;
}
.hero-v2 .hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--prism-1);
  box-shadow: 0 0 10px var(--prism-1);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { box-shadow: 0 0 6px var(--prism-1); transform: scale(1); }
  50%     { box-shadow: 0 0 16px var(--prism-1), 0 0 24px var(--prism-3); transform: scale(1.15); }
}

.display-1 {
  font-family: var(--font-display);
  font-size: var(--display-1);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.display-1 .line {
  display: block;
  overflow: hidden;
}
.display-1 .line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease-out);
}
.in .display-1 .line > span,
.display-1.in .line > span {
  transform: translateY(0);
}
.display-1 .line:nth-child(2) > span { transition-delay: 0.12s; }
.display-1 .line:nth-child(3) > span { transition-delay: 0.24s; }

.display-2 {
  font-family: var(--font-display);
  font-size: var(--display-2);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero-v2 .hero-sub {
  max-width: 640px;
  margin: 32px auto 40px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ----------------------------------------------------------------
   MAGNETIC + PRISM BUTTONS
---------------------------------------------------------------- */
.btn-magnetic {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink) 0%, #3a1a18 100%);
  box-shadow:
    0 8px 24px -8px rgba(36, 15, 14, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  border: none;
}
.btn-magnetic::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    var(--prism-1) 0%,
    var(--prism-2) 25%,
    var(--prism-3) 50%,
    var(--prism-4) 75%,
    var(--prism-5) 100%);
  background-size: 220% 220%;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  z-index: -1;
  animation: prismFlow 6s ease-in-out infinite;
}
.btn-magnetic:hover {
  box-shadow:
    0 14px 36px -10px rgba(247, 76, 48, 0.5),
    0 0 32px rgba(126, 140, 255, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.btn-magnetic:hover::before { opacity: 1; }
.btn-magnetic .arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn-magnetic:hover .arrow { transform: translateX(4px); }

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-stroke);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-glass:hover {
  transform: translateY(-2px);
  background: var(--white);
  border-color: rgba(247, 76, 48, 0.35);
}

/* Wrapper to allow magnetic transform without affecting layout */
.magnet {
  display: inline-block;
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

/* ----------------------------------------------------------------
   MARQUEE STRIP — capability tags scrolling
---------------------------------------------------------------- */
.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--cream);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marqueeSlide 38s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.marquee-item .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--prism-1), var(--prism-4));
  box-shadow: 0 0 12px rgba(247, 76, 48, 0.4);
}
@keyframes marqueeSlide {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   CAMERA LOCK · scrollytelling
   .camera-lock         — outer wrapper, taller than viewport
   .camera-lock-stage   — sticky inner stage at viewport height
   .camera-lock-step    — animated children driven by --t (0..1)
---------------------------------------------------------------- */
.camera-lock {
  position: relative;
  width: 100%;
  /* height set inline per-section, e.g. 320vh */
}
.camera-lock-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-lock-track { position: relative; width: 100%; height: 100%; }
.camera-lock-step {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 32px;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
  pointer-events: none;
}
.camera-lock-step.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.camera-lock-step .step-label {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--prism-4);
  font-weight: 700;
  margin-bottom: 18px;
}
.camera-lock-step .step-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}
.camera-lock-step .step-body {
  max-width: 640px;
  margin: 22px auto 0;
  text-align: center;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
}
.camera-lock-progress {
  position: absolute;
  top: 50%; right: 32px;
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  gap: 14px;
  z-index: 4;
}
.camera-lock-progress span {
  width: 6px; height: 26px;
  border-radius: 4px;
  background: rgba(36, 15, 14, 0.12);
  transition: background 0.35s var(--ease), height 0.35s var(--ease);
}
.camera-lock-progress span.active {
  background: linear-gradient(180deg, var(--prism-1), var(--prism-4));
  height: 40px;
}
@media (max-width: 720px) {
  .camera-lock-progress { right: 14px; gap: 8px; }
  .camera-lock-progress span { width: 4px; height: 18px; }
}

/* ----------------------------------------------------------------
   SERVICE CARD v2 — glass with prism edge on hover
---------------------------------------------------------------- */
.service-card.v2 {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-stroke);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.service-card.v2::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg,
    var(--card-accent-1, var(--prism-1)) 0%,
    transparent 35%, transparent 65%,
    var(--card-accent-2, var(--prism-4)) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.service-card.v2:hover { transform: translateY(-10px); box-shadow: 0 40px 80px -30px rgba(36,15,14,0.25); }
.service-card.v2:hover::before { opacity: 1; }
.service-card.v2.workflow { --card-accent-1: var(--prism-1); --card-accent-2: var(--prism-2); }
.service-card.v2.agent    { --card-accent-1: var(--prism-3); --card-accent-2: var(--prism-4); }
.service-card.v2.legacy   { --card-accent-1: var(--prism-5); --card-accent-2: var(--prism-6); }

/* Service-card legacy theme aliases (for old .web/.ai/.socs theming) */
.service-card.workflow { --accent: var(--prism-1); --accent-glow: rgba(255, 122, 89, 0.18); }
.service-card.agent    { --accent: var(--prism-4); --accent-glow: rgba(126, 140, 255, 0.20); }
.service-card.legacy   { --accent: var(--prism-5); --accent-glow: rgba(200, 132, 255, 0.20); }

/* Terminal visual for Workflows */
.sv-terminal {
  width: 84%;
  background: #0e0a14;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 14px 32px -10px rgba(36,15,14,0.25);
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  color: #d8e3ff;
  transition: transform 0.4s var(--ease);
}
.service-card:hover .sv-terminal { transform: translateY(-6px) rotate(-1deg); }
.sv-terminal-bar {
  display: flex; gap: 6px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
}
.sv-terminal-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.sv-terminal-bar span:nth-child(1) { background: var(--prism-1); }
.sv-terminal-bar span:nth-child(2) { background: var(--prism-2); }
.sv-terminal-bar span:nth-child(3) { background: var(--prism-3); }
.sv-terminal-body { padding: 10px 14px 14px; font-size: 0.74rem; line-height: 1.7; }
.sv-line { white-space: nowrap; }
.sv-line.out { color: var(--prism-3); padding-left: 14px; }
.sv-prompt { color: var(--prism-1); font-weight: 600; margin-right: 6px; }
.sv-cursor {
  display: inline-block;
  width: 8px; height: 1em;
  background: var(--prism-3);
  vertical-align: middle;
  animation: caret 1.05s steps(2) infinite;
}
@keyframes caret { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }

/* Bridge visual for Legacy Integration */
.sv-bridge {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 90%;
}
.sv-node {
  width: 76px; padding: 14px 8px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px -8px rgba(36,15,14,0.18);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  color: var(--ink);
  font-family: var(--font-display);
  transition: transform 0.4s var(--ease);
}
.service-card:hover .sv-node.old { transform: translateX(-4px) rotate(-2deg); }
.service-card:hover .sv-node.new { transform: translateX(4px) rotate(2deg); }
.sv-node.old { background: linear-gradient(135deg, #f5efe6, #e8dccd); color: #6b4a3c; }
.sv-node.new { background: linear-gradient(135deg, var(--prism-4), var(--prism-5)); color: var(--white); }
.sv-pipe {
  flex: 1; height: 4px;
  background: linear-gradient(90deg, var(--prism-1), var(--prism-3), var(--prism-4));
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.sv-pulse {
  position: absolute;
  width: 30%; height: 100%;
  top: 0; left: -30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
  animation: pulseSlide 1.6s linear infinite;
}
@keyframes pulseSlide {
  0%   { left: -30%; }
  100% { left: 130%; }
}

/* ----------------------------------------------------------------
   3D TILT for cards (real perspective)
---------------------------------------------------------------- */
.tilt-3d {
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease);
  will-change: transform;
}
.tilt-3d > * { transform: translateZ(20px); }

/* ----------------------------------------------------------------
   STAGGERED REVEAL for word-by-word
---------------------------------------------------------------- */
.split-text .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}
.split-text .word > span {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 0.9s var(--ease-out);
}
.split-text.in .word > span,
.in .split-text .word > span {
  transform: translateY(0);
}
.split-text .word:nth-child(n) > span {
  transition-delay: calc(var(--i, 0) * 60ms);
}

/* ----------------------------------------------------------------
   STAT BLOCKS v2 — big prism numbers
---------------------------------------------------------------- */
.stat.v2 .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--prism-1), var(--prism-4));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  line-height: 1;
}

/* ----------------------------------------------------------------
   FOOTER — keep simple, but add prism rule on top
---------------------------------------------------------------- */
.footer {
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--prism-1), var(--prism-3), var(--prism-4), var(--prism-6), transparent);
  background-size: 200% 100%;
  animation: prismFlow 12s ease-in-out infinite;
}

/* ----------------------------------------------------------------
   PAGE TRANSITION OVERLAY — soft fade
---------------------------------------------------------------- */
body.page-leaving { animation: pageOut 0.25s var(--ease) forwards; }
@keyframes pageOut {
  to { opacity: 0; transform: translateY(8px); }
}
body.page-entering { animation: pageIn 0.5s var(--ease) backwards; }
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
}

/* ----------------------------------------------------------------
   REDUCED MOTION — collapse animations
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .aurora-bg::before,
  .aurora-bg::after,
  .aurora-bg .aurora-blob,
  .marquee-track,
  .prism-text, .fire.prism,
  .scroll-progress,
  .footer::before,
  .prism-rule {
    animation: none !important;
  }
  .display-1 .line > span,
  .split-text .word > span {
    transform: none !important;
  }
}

/* ----------------------------------------------------------------
   NAV ACCENT — thin prism underline on scroll
---------------------------------------------------------------- */
.nav.scrolled::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--prism-1), var(--prism-4), var(--prism-6), transparent);
  background-size: 200% 100%;
  animation: prismFlow 10s ease-in-out infinite;
  opacity: 0.55;
}

/* =================================================================
   ───────────────────────────────────────────────────────────────
   v3 — WARM DARK THEME · perf pass · stronger cursor follower
   Pulls the rainbow back to fire / orange / amber / peach.
   Inverts the base from cream to a warm charcoal so the site
   feels like the inside of a foundry, not a gallery.
   ───────────────────────────────────────────────────────────────
================================================================= */

:root {
  /* Override base tokens: warm dark */
  --cream:      #14090a;
  --white:      #1d1213;
  --blush:      #2a1614;

  --ink:        #f5ece2;
  --ink-soft:   rgba(245, 236, 226, 0.72);
  --ink-dim:    rgba(245, 236, 226, 0.44);
  --line:       rgba(255, 255, 255, 0.07);
  --line-warm:  rgba(255, 138, 61, 0.18);

  /* Tightened warm prism */
  --prism-1:    #f74c30;
  --prism-2:    #ff7a59;
  --prism-3:    #ffb86b;
  --prism-4:    #ff8a3d;
  --prism-5:    #f7c560;
  --prism-6:    #ffe1c2;

  --glass-bg:     rgba(255, 250, 245, 0.04);
  --glass-stroke: rgba(255, 255, 255, 0.08);
  --glass-edge:   linear-gradient(135deg,
                    rgba(247, 76, 48, 0.5) 0%,
                    rgba(255, 138, 61, 0.0) 35%,
                    rgba(255, 184, 107, 0.0) 65%,
                    rgba(247, 197, 96, 0.4) 100%);
}

::selection { background: var(--prism-1); color: #14090a; }

body {
  background: var(--cream);
  color: var(--ink);
  background-image:
    radial-gradient(900px 700px at 18% 12%, rgba(247, 76, 48, 0.16), transparent 65%),
    radial-gradient(900px 800px at 82% 78%, rgba(255, 138, 61, 0.13), transparent 65%);
  background-attachment: fixed;
}

/* Film-grain overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 4;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- NAV ---------- */
.nav.scrolled {
  background: rgba(15, 8, 8, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 138, 61, 0.06) inset, 0 8px 30px rgba(0, 0, 0, 0.35);
}
.nav-cta { color: #14090a; }
.nav-cta:hover { color: #14090a; }

/* ---------- AURORA — single static layer (perf) ---------- */
.aurora-bg { background: transparent; }
.aurora-bg::before, .aurora-bg::after { display: none; }
.aurora-bg .aurora-blob {
  width: 70vmax; height: 70vmax;
  background: radial-gradient(circle, rgba(247, 76, 48, 0.22) 0%, rgba(255, 138, 61, 0.10) 35%, transparent 70%);
  filter: blur(80px);
  opacity: 0.7;
  mix-blend-mode: screen;
  animation: auroraDriftWarm 32s ease-in-out infinite alternate;
}
@keyframes auroraDriftWarm {
  0%   { transform: translate(-50%, -55%) scale(1); }
  100% { transform: translate(-30%, -40%) scale(1.18); }
}

/* ---------- CURSOR FOLLOWER (dual-layer) ---------- */
.cursor-aura { display: none; }

.cursor-orb,
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 6;
  will-change: transform;
  contain: layout paint;
}
.cursor-orb {
  width: 320px; height: 320px;
  margin: -160px 0 0 -160px;
  background:
    radial-gradient(circle,
      rgba(247, 76, 48, 0.28) 0%,
      rgba(255, 138, 61, 0.18) 24%,
      rgba(255, 184, 107, 0.08) 48%,
      transparent 68%);
  border-radius: 50%;
  filter: blur(2px);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.cursor-dot {
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  background: var(--prism-1);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--prism-1), 0 0 32px rgba(247, 76, 48, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease);
}
body.cursor-active .cursor-orb,
body.cursor-active .cursor-dot { opacity: 1; }
body.cursor-hot .cursor-dot {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  background: rgba(247, 76, 48, 0.18);
  box-shadow: 0 0 0 1px rgba(247, 76, 48, 0.45) inset, 0 0 24px rgba(247, 76, 48, 0.4);
}
@media (pointer: coarse) {
  .cursor-orb, .cursor-dot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cursor-orb, .cursor-dot { display: none; }
}

/* ---------- GLASS — dark variant, lighter blur ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-color: var(--glass-stroke);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 30px 60px -28px rgba(0, 0, 0, 0.55),
    0 8px 32px -16px rgba(247, 76, 48, 0.10);
}
.glass::after { background: radial-gradient(circle, rgba(247, 76, 48, 0.30), transparent 70%); }

/* ---------- SERVICE CARD v2 — dark ---------- */
.service-card.v2 {
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-color: var(--glass-stroke);
}
.service-card.v2:hover {
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.7), 0 0 32px rgba(247, 76, 48, 0.18);
}
.service-card.v2.workflow { --card-accent-1: var(--prism-1); --card-accent-2: var(--prism-3); }
.service-card.v2.agent    { --card-accent-1: var(--prism-2); --card-accent-2: var(--prism-5); }
.service-card.v2.legacy   { --card-accent-1: var(--prism-4); --card-accent-2: var(--prism-6); }

.sv-node.old { background: linear-gradient(135deg, #2a1f1c, #3a2a25); color: #d6c2ad; }
.sv-node.new { background: linear-gradient(135deg, var(--prism-1), var(--prism-4)); color: #14090a; }

/* ---------- HERO eyebrow on dark ---------- */
.hero-v2 .hero-eyebrow {
  background: rgba(255, 250, 245, 0.04);
  border-color: var(--glass-stroke);
  color: var(--ink-soft);
}

/* ---------- BUTTONS ---------- */
.btn-magnetic {
  background: linear-gradient(135deg, #1d1213 0%, #2a1614 100%);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 138, 61, 0.18) inset,
    0 12px 32px -10px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 138, 61, 0.18);
}
.btn-magnetic::before {
  background: linear-gradient(135deg,
    var(--prism-1) 0%, var(--prism-4) 50%, var(--prism-3) 100%);
  background-size: 220% 220%;
}
.btn-magnetic:hover {
  color: #14090a;
  box-shadow:
    0 14px 36px -10px rgba(247, 76, 48, 0.55),
    0 0 32px rgba(255, 138, 61, 0.4),
    0 0 0 1px rgba(255, 184, 107, 0.45);
}
.btn-magnetic::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
}
.btn-magnetic:hover::after { left: 130%; }

.btn-glass {
  background: rgba(255, 250, 245, 0.04);
  border-color: var(--glass-stroke);
  color: var(--ink);
}
.btn-glass:hover {
  background: rgba(255, 138, 61, 0.10);
  border-color: rgba(247, 76, 48, 0.45);
  color: var(--ink);
}

/* ---------- MARQUEE ---------- */
.marquee {
  background: rgba(255, 255, 255, 0.02);
  border-top-color: var(--line);
  border-bottom-color: var(--line);
}
.marquee-item { color: var(--ink); }

/* ---------- STATS v2 ---------- */
.stat.v2 .stat-num {
  background: linear-gradient(135deg, var(--prism-1), var(--prism-3));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- CARDS · feature/pricing/testimonial ---------- */
.card, .feature-card, .pricing-card, .testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.card:hover, .feature-card:hover, .pricing-card:hover, .testimonial:hover {
  border-color: rgba(247, 76, 48, 0.4);
  box-shadow:
    0 30px 60px -28px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(247, 76, 48, 0.14);
}
.pricing-list li::before { color: var(--prism-1); }

/* ---------- FORM — dark inputs ---------- */
.form input, .form select, .form textarea {
  background: rgba(255, 250, 245, 0.04);
  border: 1px solid var(--line);
  color: var(--ink);
}
.form input::placeholder, .form textarea::placeholder { color: var(--ink-dim); }
.form input:focus, .form select:focus, .form textarea:focus {
  border-color: rgba(247, 76, 48, 0.55);
  box-shadow: 0 0 0 4px rgba(247, 76, 48, 0.10);
  outline: none;
}
.form label span { color: var(--ink-soft); }

/* ---------- CTA PANEL · replaces inline ink/cream sections ---------- */
.cta-panel {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 140px 32px;
  background:
    radial-gradient(circle at 22% 28%, rgba(247, 76, 48, 0.22), transparent 50%),
    radial-gradient(circle at 78% 72%, rgba(255, 138, 61, 0.18), transparent 55%),
    linear-gradient(180deg, #0e0606 0%, #1a0e0d 100%);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-panel h2 { color: var(--ink); }
.cta-panel .section-eyebrow { color: var(--prism-3); }

/* ---------- PHONE FRAME / LIVE AGENT — dark ---------- */
.phone-frame { background: rgba(20, 9, 10, 0.6); border-color: var(--glass-stroke); }
.phone-screen-inner { background: var(--white); }
.phone-topbar { background: rgba(20, 9, 10, 0.65); }
.phone-bottom { background: rgba(20, 9, 10, 0.4); border-top-color: var(--line); }
.fake-input {
  background: rgba(255, 250, 245, 0.04);
  color: var(--ink-dim);
  border-color: var(--line);
}
.send {
  background: var(--prism-1);
  color: #14090a;
}
.t-name { color: var(--ink); }
.t-sub  { color: var(--ink-soft); }
.phone-body .chat-row.ai .chat-bubble {
  background: rgba(255, 250, 245, 0.06);
  color: var(--ink);
  border-color: var(--line);
}
.phone-body .chat-row.user .chat-bubble {
  background: linear-gradient(135deg, var(--prism-1), var(--prism-4));
  color: #14090a;
}
.live-agent { background: rgba(20, 9, 10, 0.5); border-color: var(--glass-stroke); }
.chat-demo-head { background: rgba(20, 9, 10, 0.65); border-bottom-color: var(--line); }
.chat-demo-title { color: var(--ink); }
.chat-demo-sub   { color: var(--ink-soft); }
.chat-demo-body .chat-row.ai .chat-bubble {
  background: rgba(255, 250, 245, 0.06);
  color: var(--ink);
  border-color: var(--line);
}

/* ---------- WORK CARD on dark ---------- */
.work-card { border: 1px solid var(--line); }
.work-card-overlay {
  background: linear-gradient(180deg, transparent 30%, rgba(10, 5, 5, 0.85) 100%);
}
.work-card-tag { color: var(--prism-3); }
.work-card-title { color: #fff; }
.work-card-meta  { color: rgba(255, 255, 255, 0.7); }

/* ---------- FOOTER · darker bottom ---------- */
.footer { background: #0a0606; border-top: 1px solid var(--line); }
.footer h4 { color: var(--ink); }
.footer a, .footer p, .footer-bottom span { color: var(--ink-soft); }
.footer a:hover { color: var(--prism-1); }

/* ---------- HERO grid texture · dim on dark ---------- */
.hero-grid {
  background-image:
    linear-gradient(rgba(247, 76, 48, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 76, 48, 0.06) 1px, transparent 1px);
}

/* ---------- SECTION REVEAL · slightly stronger feel ---------- */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal.in, .reveal-left.in, .reveal-right.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
}

/* ---------- PROGRESS BAR · warm only ---------- */
.scroll-progress {
  background: linear-gradient(90deg, var(--prism-1), var(--prism-3), var(--prism-5));
  background-size: 200% 100%;
  box-shadow: 0 0 12px rgba(247, 76, 48, 0.55);
}

/* Footer prism rule · warm */
.footer::before {
  background: linear-gradient(90deg,
    transparent, var(--prism-1), var(--prism-4), var(--prism-3), transparent);
  background-size: 200% 100%;
}

/* ---------- MODELS GRID ---------- */
.models-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .models-grid { grid-template-columns: repeat(2, 1fr); }
}
.model-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--glass-bg);
  border: 1px solid var(--glass-stroke);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  overflow: hidden;
}
.model-card:hover {
  transform: translateY(-4px);
  border-color: rgba(247, 76, 48, 0.4);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 24px rgba(247,76,48,0.15);
}
.model-card .model-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 250, 245, 0.06);
  flex-shrink: 0;
}
.model-card .model-icon img,
.model-card .model-icon svg {
  width: 28px; height: 28px;
  object-fit: contain;
}
.model-card .model-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.model-card .model-vendor {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-weight: 600;
}
.model-card .model-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.model-card.placeholder .model-icon {
  background: linear-gradient(135deg, rgba(247,76,48,0.18), rgba(255,138,61,0.10));
  color: var(--prism-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.model-card .model-demo {
  width: 100%;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.model-card .demo-q,
.model-card .demo-a {
  font-size: 0.78rem;
  line-height: 1.45;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', 'SFMono-Regular', monospace;
  position: relative;
}
.model-card .demo-q {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--prism-1), var(--prism-4));
  color: #14090a;
  font-weight: 500;
  max-width: 88%;
  border-bottom-right-radius: 3px;
}
.model-card .demo-a {
  align-self: flex-start;
  background: rgba(255, 250, 245, 0.05);
  color: var(--ink);
  border: 1px solid var(--line);
  max-width: 92%;
  border-bottom-left-radius: 3px;
}
.model-card .demo-a::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--prism-3);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--prism-3);
}

/* ---------- PERF — disable expensive blurs on small screens ---------- */
@media (max-width: 720px) {
  .glass, .service-card.v2, .model-card { backdrop-filter: blur(8px) saturate(130%); -webkit-backdrop-filter: blur(8px) saturate(130%); }
  .nav.scrolled { backdrop-filter: blur(10px) saturate(130%); -webkit-backdrop-filter: blur(10px) saturate(130%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none !important; }
  .aurora-bg .aurora-blob { animation: none !important; }
  body::after { display: none; }
}

/* =================================================================
   v3.1 — Hero typography fix
   The .display-1 .line wrappers use overflow:hidden for the slide-up
   reveal. Combined with the original line-height of 0.96 that clipped
   descenders ('p', 'g', 'y') and made big headlines bleed at the
   bottom on tall pages. Also clamp scales were aggressive on wide
   viewports. Fix both: looser line-height, descender padding with
   compensating negative margin so visual spacing stays tight, and a
   smaller max font-size so headlines don't fight short windows.
================================================================= */

:root {
  --display-1: clamp(2.6rem, 7.2vw, 6.4rem);
  --display-2: clamp(2rem, 5.4vw, 4.4rem);
}

.display-1 {
  line-height: 1.06;
  padding-bottom: 0.05em;        /* outer breathing room */
}
.display-1 .line {
  display: block;
  overflow: hidden;
  padding-top: 0.06em;
  padding-bottom: 0.20em;        /* room for descenders */
  margin-top: -0.06em;
  margin-bottom: -0.18em;        /* keep visual spacing tight */
}
.display-1 .line > span {
  display: inline-block;
  transform: translateY(120%);
  transition: transform 1.1s var(--ease-out);
}
.in .display-1 .line > span,
.display-1.in .line > span {
  transform: translateY(0);
}

.display-2 {
  line-height: 1.06;
  padding-bottom: 0.04em;
}

/* Hero spacing scales with viewport — was a fixed 120px which cramped short windows */
.hero.hero-v2 { min-height: 100svh; }
.hero-v2 .hero-content {
  padding-top: clamp(96px, 13vh, 140px);
  padding-bottom: clamp(40px, 6vh, 80px);
}

/* On small/short screens, scale even tighter and let the hero grow with content */
@media (max-width: 720px) {
  :root {
    --display-1: clamp(2.2rem, 9vw, 4.4rem);
    --display-2: clamp(1.8rem, 7vw, 3.2rem);
  }
  .hero.hero-v2 { min-height: auto; padding: 0 24px; }
  .hero-v2 .hero-content {
    padding-top: clamp(110px, 18vh, 160px);
    padding-bottom: 60px;
  }
  .hero-v2 .hero-eyebrow { font-size: 0.72rem; padding: 6px 14px; }
  .hero-v2 .hero-sub { font-size: 1rem; margin: 24px auto 28px; }
}
@media (max-height: 720px) and (min-width: 721px) {
  :root {
    --display-1: clamp(2.4rem, 5.5vw, 4.6rem);
  }
  .hero-v2 .hero-content {
    padding-top: clamp(88px, 11vh, 120px);
  }
}

/* Hero tagline — sits between the display-1 hook and the sub copy.
   Half-step smaller than display-2, italic-ish weight, drawn from the
   ink-soft palette so it reads as a follow-up line not a competing H2. */
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 18px auto 0;
  max-width: 760px;
}
.hero-tagline .prism-text { font-weight: 700; }
@media (max-width: 720px) {
  .hero-tagline { font-size: clamp(1.2rem, 5vw, 1.8rem); margin-top: 14px; }
}
