/* ============================================================
   BrightBuild Studio — shared stylesheet
   Design system: deep-space glass, cyan→mint brand gradient,
   restrained rose/amber accents, Space Grotesk display type.
   ============================================================ */

:root {
  --bg: #04060b;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.22);
  --text: #f4f8ff;
  --muted: #97a3ba;
  --cyan: #4be7ff;
  --mint: #54f7b5;
  --rose: #ff4f9a;
  --amber: #ffd166;
  --grad-brand: linear-gradient(120deg, var(--cyan), var(--mint));
  --shadow: 0 30px 90px rgba(1, 4, 12, 0.55);
  --shadow-soft: 0 14px 44px rgba(1, 4, 12, 0.35);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
/* Faint blueprint grid behind everything, fading out down the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; text-decoration: none; }
p { color: var(--muted); line-height: 1.75; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(75, 231, 255, 0.28); color: white; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 38rem;
  height: 38rem;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(75,231,255,.11), rgba(255,79,154,.05) 42%, transparent 68%);
  filter: blur(14px);
  opacity: .85;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  max-width: calc(var(--max) + 40px);
  margin: 14px auto 0;
  padding: 9px 10px 9px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(4, 6, 11, .66);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.06);
}
.brand {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}
.brand span {
  background: linear-gradient(120deg, var(--cyan), var(--mint) 55%, var(--amber));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brandPan 9s ease-in-out infinite alternate;
}
@keyframes brandPan { to { background-position: 100% 0; } }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a {
  padding: 9px 13px;
  color: #c9d4e6;
  font-size: .95rem;
  font-weight: 550;
  border-radius: var(--radius-pill);
  transition: background .25s, color .25s;
}
.site-nav a:hover { background: rgba(255,255,255,.07); color: white; }
.site-nav a[aria-current="page"] { color: white; background: rgba(255,255,255,.06); }
.nav-cta {
  margin-left: 10px;
  background: var(--grad-brand);
  color: #031015 !important;
  font-weight: 800;
  box-shadow: 0 6px 24px rgba(75,231,255,.28);
}
.nav-cta:hover { background: var(--grad-brand); filter: brightness(1.08); }
.nav-toggle { display: none; background: transparent; border: 0; width: 42px; height: 42px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 7px; background: white; border-radius: 2px; transition: transform .3s var(--ease-out); }

/* ---------- Layout primitives ---------- */
.section, .hero, .page-hero, .contact-layout, .cta-band {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.section { padding: 104px 20px; }
.section-heading { max-width: 780px; margin-bottom: 48px; }
.section-heading p { font-size: 1.08rem; }
.center { margin-top: 40px; text-align: center; }

.section-noise::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.eyebrow {
  margin: 0 0 18px;
  color: var(--mint);
  font-weight: 750;
  text-transform: uppercase;
  font-size: .74rem;
  letter-spacing: .22em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--mint), transparent);
}
h1, h2, h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 6.6vw, 5.7rem); max-width: 920px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); letter-spacing: -0.025em; line-height: 1.06; }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
/* Cards on inner pages use h2 headings — scale them down to card size. */
.service-card h2, .portfolio-card h2, .price-card h2 { font-size: 1.4rem; letter-spacing: -0.015em; }
.process-step h2 { font-size: 1.55rem; }
.hero-sub, .page-hero p, .contact-copy p { font-size: 1.13rem; max-width: 640px; }

/* ---------- Buttons ---------- */
.hero-actions, .form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-weight: 750;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease-out), border-color .25s, background .25s, box-shadow .25s;
  cursor: pointer;
}
.btn-primary {
  background: var(--grad-brand);
  color: #021014;
  border: 0;
  font-weight: 800;
  box-shadow: 0 10px 34px rgba(75,231,255,.26), inset 0 1px 0 rgba(255,255,255,.4);
}
/* Sheen that sweeps across the primary button on hover. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-secondary {
  background: rgba(255,255,255,.05);
  color: white;
  backdrop-filter: blur(8px);
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-bright); }
.btn-primary:hover { box-shadow: 0 16px 44px rgba(75,231,255,.36), inset 0 1px 0 rgba(255,255,255,.4); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 48px;
  padding: 92px 20px 72px;
}

/* Multi-layer aurora: three drifting blurred fields on separate
   timings so the color wash never sits still. Shared by all pages. */
.aurora {
  position: absolute;
  inset: -140px -80px auto;
  height: 620px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 18% 22%, rgba(75, 231, 255, .30), transparent),
    radial-gradient(ellipse 40% 38% at 80% 16%, rgba(255, 79, 154, .17), transparent);
  filter: blur(24px);
  animation: auroraA 18s ease-in-out infinite alternate;
}
.aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 42% 44% at 55% 30%, rgba(84, 247, 181, .16), transparent),
    radial-gradient(ellipse 30% 30% at 30% 60%, rgba(255, 209, 102, .10), transparent);
  animation: auroraB 24s ease-in-out infinite alternate;
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 70% 55%, rgba(75, 231, 255, .12), transparent);
  animation: auroraC 30s ease-in-out infinite alternate;
}
@keyframes auroraA { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@keyframes auroraB { from { transform: translate3d(-30px, 10px, 0); } to { transform: translate3d(50px, -24px, 0) scale(1.12); } }
@keyframes auroraC { from { transform: translate3d(20px, -12px, 0) scale(1.05); } to { transform: translate3d(-46px, 26px, 0); } }

/* Headline: staggered word-by-word entrance with a blur settle.
   Sized to set as three balanced lines within the hero column. */
.hero-title { max-width: 12ch; font-size: clamp(2.7rem, 5.1vw, 4.7rem); }
.hero-title .w {
  display: inline-block;
  animation: heroWord .9s var(--ease-out) both;
  animation-delay: calc(.15s + var(--i) * .11s);
}
@keyframes heroWord {
  from { opacity: 0; transform: translateY(.5em) scale(.97); filter: blur(12px); }
}
/* Key phrase gets the brand gradient with a slow shimmer pan. */
.hero-title .shimmer {
  background: linear-gradient(110deg, var(--cyan) 10%, var(--mint) 35%, #eafffb 50%, var(--mint) 65%, var(--cyan) 90%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation:
    heroWord .9s var(--ease-out) both,
    shimmerPan 8s ease-in-out 1.4s infinite;
  animation-delay: calc(.15s + var(--i) * .11s), 1.4s;
}
@keyframes shimmerPan {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}
/* Staggered rise for the rest of the hero copy (rides the .reveal system). */
.hero-copy .eyebrow.reveal { transition-delay: .05s; }
.hero-copy .hero-sub.reveal { transition-delay: .55s; }
.hero-copy .hero-actions.reveal { transition-delay: .7s; }
.hero-copy .hero-proof.reveal { transition-delay: .85s; }

.hero-proof { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.hero-proof span, .contact-points span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-pill);
  color: #d5dfef;
  font-size: .88rem;
}

/* ---------- Hero stage: living mockup ---------- */
.hero-stage {
  min-height: 560px;
  position: relative;
  perspective: 1200px;
  transition-delay: .35s; /* stagger within the .reveal system */
}
/* Rotating light beam behind the mockup. */
.hero-beam {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 720px;
  aspect-ratio: 1;
  margin: -360px 0 0 -360px;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(
    from 20deg,
    transparent 0 18%,
    rgba(75,231,255,.16) 26%,
    rgba(84,247,181,.10) 33%,
    transparent 44%,
    transparent 60%,
    rgba(255,79,154,.09) 70%,
    transparent 82%
  );
  filter: blur(36px);
  animation: beamSpin 26s linear infinite;
}
@keyframes beamSpin { to { transform: rotate(1turn); } }

/* Scene wrapper takes JS parallax via the `translate` property;
   the float wrapper owns the idle bob; the mockup owns the 3D pose. */
.mockup-scene {
  position: absolute;
  inset: 40px 0 auto auto;
  width: min(100%, 520px);
  z-index: 1;
}
.mockup-float { animation: mockFloat 9s ease-in-out infinite; }
@keyframes mockFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.mockup, .metric-card, .service-card, .portfolio-card, .price-card, .review-card, .stat-card, .before-after, .quote-form, .process-step, .faq-item {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.028) 55%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.07);
}
.mockup-main {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  /* --ry / --rx are steered by the pointer-parallax script. */
  transform: rotateY(calc(-9deg + var(--ry, 0deg))) rotateX(calc(6.5deg + var(--rx, 0deg)));
  will-change: transform;
}
/* Light sweep that periodically crosses the mockup glass. */
.mockup-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.10) 50%, transparent 58%);
  transform: translateX(-110%);
  animation: glassSweep 6.5s ease-in-out 2.4s infinite;
}
@keyframes glassSweep {
  0% { transform: translateX(-110%); }
  38%, 100% { transform: translateX(110%); }
}
.browser-bar {
  height: 42px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rose); flex: none; }
.browser-bar i:nth-child(2) { background: var(--amber); }
.browser-bar i:nth-child(3) { background: var(--mint); }
/* Address pill with a looping typing animation + blinking caret. */
.browser-url {
  margin-left: 10px;
  flex: 1;
  max-width: 240px;
  height: 24px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.06);
  font-size: .72rem;
  color: #b8c6dc;
  letter-spacing: .02em;
  overflow: hidden;
}
.url-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: 16ch;
  border-right: 1px solid var(--cyan);
  animation: urlType 5.2s steps(16) 1s infinite, caretBlink .8s step-end infinite;
}
@keyframes urlType {
  0% { width: 0; }
  38%, 100% { width: 16ch; }
}
@keyframes caretBlink { 50% { border-color: transparent; } }

.mockup-grid { padding: 18px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.preview-nav, .preview-hero, .preview-panel, .preview-line {
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
/* Skeleton blocks assemble in sequence — the site "building itself". */
.mockup-grid > * { animation: blockIn .8s var(--ease-out) both; }
.mockup-grid > :nth-child(1) { animation-delay: .55s; }
.mockup-grid > :nth-child(2) { animation-delay: .75s; }
.mockup-grid > :nth-child(3) { animation-delay: .9s; }
.mockup-grid > :nth-child(4) { animation-delay: 1.05s; }
.mockup-grid > :nth-child(5) { animation-delay: 1.2s; }
@keyframes blockIn {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
}
.preview-nav { grid-column: 1 / -1; height: 28px; }
.preview-hero {
  height: 176px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(75,231,255,.72), rgba(255,79,154,.48));
}
/* Two headline bars inside the preview that keep "typing" themselves. */
.preview-hero::before, .preview-hero::after {
  content: "";
  position: absolute;
  left: 16px;
  height: 11px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.92);
  --w: 62%;
  animation: typeBar 4.6s var(--ease-out) 1.3s infinite;
}
.preview-hero::after {
  top: 42px;
  --w: 40%;
  background: rgba(255,255,255,.55);
  animation-delay: 1.7s;
}
.preview-hero::before { top: 22px; }
@keyframes typeBar {
  0% { width: 0; opacity: .4; }
  40%, 88% { width: var(--w); opacity: 1; }
  100% { width: var(--w); opacity: 1; }
}
.preview-panel { height: 176px; background: rgba(84,247,181,.16); }
.preview-panel.alt { grid-column: span 1; height: 92px; background: rgba(255,209,102,.16); }
.preview-line { height: 92px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.16) 0 8px, transparent 8px 20px); }

/* Status pill anchored to the mockup: the promise, restated. */
.build-pill {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(84,247,181,.34);
  background: rgba(4, 10, 12, .78);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  font-weight: 650;
  color: #c9f8e4;
  animation: blockIn .8s var(--ease-out) 1.5s both;
}
.build-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(84,247,181,.5);
  animation: pulseDot 2.2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(84,247,181,.5); }
  70% { box-shadow: 0 0 0 9px rgba(84,247,181,0); }
  100% { box-shadow: 0 0 0 0 rgba(84,247,181,0); }
}

/* Floating chips: organic drift on independent timings. */
.floating-chip, .metric-card {
  position: absolute;
  padding: 12px 16px;
  border: 1px solid var(--line-bright);
  background: rgba(10, 14, 22, .62);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  font-weight: 650;
  font-size: .92rem;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}
.floating-chip { animation: chipDrift 8s ease-in-out infinite alternate; }
.chip-one { left: -8px; top: 74px; animation-duration: 8.5s; }
.chip-two { right: 10px; bottom: 96px; animation-duration: 10s; animation-delay: -3s; }
.chip-three { left: 42px; bottom: 36px; animation-duration: 9s; animation-delay: -5.5s; }
@keyframes chipDrift {
  0% { transform: translate3d(0, 0, 0) rotate(-1.2deg); }
  45% { transform: translate3d(7px, -13px, 0) rotate(.8deg); }
  100% { transform: translate3d(-5px, -22px, 0) rotate(-.4deg); }
}
.metric-card {
  left: 4px;
  top: 250px;
  width: 168px;
  padding: 18px;
  border-radius: var(--radius-lg);
  animation: metricFloat 11s ease-in-out infinite;
}
@keyframes metricFloat {
  0%, 100% { transform: translateY(0) rotate(-.5deg); }
  50% { transform: translateY(-18px) rotate(.6deg); }
}
.metric-card strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 4rem;
  line-height: .85;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-card span { color: var(--muted); font-size: .88rem; font-weight: 500; }

/* Legacy float keyframe kept for any other consumers. */
@keyframes float { to { transform: translateY(-16px); } }

/* ---------- Trust strip ---------- */
.trust-strip {
  max-width: var(--max);
  margin: -8px auto 24px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.trust-strip span {
  text-align: center;
  padding: 14px 10px;
  color: #7c8aa3;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .3s;
}
.trust-strip span:hover { color: #cfdaeb; }

/* ---------- Grids & cards ---------- */
.stats-grid, .review-grid, .service-grid, .portfolio-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.review-grid, .pricing-grid { grid-template-columns: repeat(3, 1fr); margin-top: 18px; }
.service-grid.large, .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.service-grid { grid-template-columns: repeat(4, 1fr); }
/* Sibling stagger when a card grid reveals into view. */
.stats-grid > .reveal:nth-child(2), .service-grid > .reveal:nth-child(2), .review-grid > .reveal:nth-child(2), .portfolio-grid > .reveal:nth-child(2), .pricing-grid > .reveal:nth-child(2) { transition-delay: .08s; }
.stats-grid > .reveal:nth-child(3), .service-grid > .reveal:nth-child(3), .review-grid > .reveal:nth-child(3), .portfolio-grid > .reveal:nth-child(3), .pricing-grid > .reveal:nth-child(3) { transition-delay: .16s; }
.stats-grid > .reveal:nth-child(4), .service-grid > .reveal:nth-child(4), .portfolio-grid > .reveal:nth-child(4) { transition-delay: .24s; }
.service-grid > .reveal:nth-child(5), .portfolio-grid > .reveal:nth-child(5) { transition-delay: .1s; }
.service-grid > .reveal:nth-child(6), .portfolio-grid > .reveal:nth-child(6) { transition-delay: .18s; }
.service-grid > .reveal:nth-child(7) { transition-delay: .12s; }
.service-grid > .reveal:nth-child(8) { transition-delay: .2s; }

.stat-card, .review-card, .service-card, .portfolio-card, .price-card {
  padding: 26px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.stat-card:hover, .review-card:hover, .service-card:hover, .portfolio-card:hover, .price-card:hover {
  border-color: var(--line-bright);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.1), 0 0 44px rgba(75,231,255,.06);
}
.stat-card strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 3.4rem;
  letter-spacing: -0.03em;
  display: block;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card span { color: var(--muted); }
.review-card span { color: var(--amber); letter-spacing: .18em; font-size: .82rem; }
.review-card p { color: #cdd8e9; font-size: 1.02rem; }
.review-card strong { color: var(--muted); font-weight: 600; font-size: .88rem; }
.legacy-reviews { display: none; }
.review-rail {
  margin-top: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 360px);
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: 4px 4px 18px;
  scrollbar-color: rgba(84,247,181,.75) rgba(255,255,255,.08);
}
.review-rail .review-card {
  scroll-snap-align: start;
  min-height: 220px;
}
.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #061015;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  font-weight: 800;
  font-size: .92rem;
  margin-bottom: 26px;
  box-shadow: 0 8px 22px rgba(84,247,181,.24);
}
.service-card::before, .portfolio-card::before, .price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 200px at 20% -10%, rgba(75,231,255,.13), transparent 70%),
    radial-gradient(360px 220px at 100% 110%, rgba(255,79,154,.08), transparent 70%);
  opacity: 0;
  transition: opacity .35s;
}
.service-card:hover::before, .portfolio-card:hover::before, .price-card:hover::before { opacity: 1; }
.service-card > *, .portfolio-card > *, .price-card > * { position: relative; }

.split-section { display: grid; grid-template-columns: .85fr 1fr; gap: 44px; align-items: center; }
.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
  background:
    radial-gradient(320px 180px at 82% 16%, rgba(84,247,181,.22), transparent 72%),
    radial-gradient(280px 160px at 18% 80%, rgba(75,231,255,.12), transparent 72%),
    rgba(255,255,255,.035);
}
.compare-card {
  min-height: 380px;
  padding: 32px;
  display: grid;
  gap: 13px;
  align-content: start;
  position: relative;
}
.compare-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07);
  pointer-events: none;
}
.before-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 50%),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(255,255,255,.035) 34px 35px);
}
.after-card {
  background:
    linear-gradient(150deg, rgba(84,247,181,.18), rgba(75,231,255,.07)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(84,247,181,.035) 38px 39px);
}
.before-after b {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  z-index: 1;
}
.before-card b { color: var(--muted); }
.after-card b { color: var(--mint); }
.score {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 800 2.4rem "Space Grotesk", Inter, sans-serif;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.2);
  color: #dbe8f6;
  box-shadow: inset 0 0 28px rgba(255,255,255,.06);
  z-index: 1;
}
.after-card .score {
  color: #031015;
  background: var(--grad-brand);
  box-shadow: 0 18px 44px rgba(84,247,181,.22);
}
.compare-card p {
  margin: 0 0 8px;
  font-size: .96rem;
  z-index: 1;
}
.compare-card > span:not(.score) {
  color: var(--muted);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .95rem;
  background: rgba(0,0,0,.16);
  z-index: 1;
}
.after-card > span:not(.score) {
  color: #dbe8f6;
  border-color: rgba(84,247,181,.24);
  background: rgba(84,247,181,.055);
}
.compare-arrow {
  width: 58px;
  display: grid;
  place-items: center;
  font: 800 1.6rem "Space Grotesk", Inter, sans-serif;
  color: #061015;
  background: var(--grad-brand);
  box-shadow: 0 0 36px rgba(84,247,181,.22);
  z-index: 2;
}

/* ---------- Portfolio ---------- */
.mini-site {
  height: 230px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
  overflow: hidden;
  position: relative;
  background: #10151f;
}
.portfolio-shot {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  object-position: top left;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
  background: #10151f;
  box-shadow: 0 18px 42px rgba(0,0,0,.3);
  transition: transform .45s var(--ease-out), filter .45s ease;
}
.portfolio-card:hover .portfolio-shot {
  transform: scale(1.03) translateY(-3px);
  filter: saturate(1.1) contrast(1.04);
}
.mini-site span { position: absolute; display: block; border-radius: 7px; }
.mini-nav { inset: 13px 14px auto; height: 24px; background: rgba(255,255,255,.2); }
.mini-title { left: 18px; top: 56px; width: 46%; height: 60px; background: repeating-linear-gradient(0deg, rgba(255,255,255,.88) 0 11px, transparent 11px 19px); }
.mini-cta { left: 18px; top: 134px; width: 92px; height: 30px; background: var(--mint); box-shadow: 0 10px 26px rgba(84,247,181,.24); }
.mini-visual { right: 18px; top: 54px; width: 36%; height: 104px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.16); }
.mini-strip { left: 18px; right: 18px; bottom: 18px; height: 34px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 42px, transparent 42px 52px); }
.mini-site::before, .mini-site::after { content: ""; position: absolute; pointer-events: none; }
.mini-site::before { inset: auto -18px -38px auto; width: 128px; height: 128px; border-radius: 50%; filter: blur(3px); opacity: .72; }
.mini-site::after { inset: 48px auto auto 18px; width: 34px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.55); box-shadow: 46px 0 rgba(255,255,255,.35), 92px 0 rgba(255,255,255,.28); }
.plumbing { background: linear-gradient(135deg, #061a2b, #0b67a3 52%, #23c7ff); }
.plumbing::before { background: #4be7ff; }
.plumbing .mini-visual { border-radius: 50% 50% 8px 8px; background: radial-gradient(circle at 50% 28%, #e8fbff 0 18px, transparent 19px), linear-gradient(180deg, #0bd0ff, #075a92); }
.restaurant { background: linear-gradient(135deg, #1b0710, #9b1f59 48%, #ffd166); }
.restaurant::before { background: #ff4f9a; }
.restaurant .mini-title { width: 38%; height: 76px; background: repeating-linear-gradient(0deg, rgba(255,246,232,.92) 0 10px, transparent 10px 18px); }
.restaurant .mini-visual { background: radial-gradient(circle at 45% 42%, #ffd166 0 34px, transparent 35px), linear-gradient(135deg, #5f102f, #ff8abf); }
.gym { background: linear-gradient(135deg, #07100c, #098e64 54%, #54f7b5); }
.gym::before { background: #54f7b5; }
.gym .mini-visual { clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%); background: repeating-linear-gradient(90deg, #ecfff7 0 12px, #1dbe8b 12px 22px); }
.construction { background: linear-gradient(135deg, #111111, #524219 52%, #ffd166); }
.construction::before { background: #ffd166; }
.construction .mini-visual { background: linear-gradient(45deg, transparent 0 44%, #ffd166 44% 56%, transparent 56%), repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 12px, transparent 12px 22px); }
.ecommerce { background: linear-gradient(135deg, #08091d, #5744d8 52%, #54f7b5); }
.ecommerce::before { background: #7b61ff; }
.ecommerce .mini-visual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.2) 0 38px, transparent 38px 48px); }
.ecommerce .mini-strip { height: 42px; background: linear-gradient(90deg, #fff 0 32%, rgba(255,255,255,.34) 32%); }
.clinic { background: linear-gradient(135deg, #eafcff, #42d6eb 48%, #0c3550); }
.clinic::before { background: #4be7ff; }
.clinic .mini-title { background: repeating-linear-gradient(0deg, rgba(6,28,45,.72) 0 11px, transparent 11px 19px); }
.clinic .mini-cta { background: #0c3550; }
.clinic .mini-visual { border-radius: 50%; background: linear-gradient(90deg, transparent 42%, white 42% 58%, transparent 58%), linear-gradient(0deg, transparent 42%, white 42% 58%, transparent 58%), #54f7b5; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.filter, .text-button {
  border: 1px solid var(--line);
  color: #d5dfef;
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: background .25s, color .25s, border-color .25s;
}
.filter:hover { border-color: var(--line-bright); color: white; }
.filter.active { background: var(--text); color: #05070c; border-color: var(--text); }
.text-button { color: var(--mint); font-weight: 750; border-color: rgba(84,247,181,.24); background: rgba(84,247,181,.06); }
.text-button:hover { background: rgba(84,247,181,.14); }

/* ---------- Page hero ---------- */
.page-hero {
  min-height: 52vh;
  padding: 140px 20px 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ---------- Pricing ---------- */
.pricing-grid { align-items: stretch; }
.price-card { min-height: 480px; display: flex; flex-direction: column; padding: 30px; }
.price-card.featured {
  border-color: rgba(84,247,181,.4);
  transform: translateY(-14px);
  background: linear-gradient(165deg, rgba(84,247,181,.1), rgba(255,255,255,.03) 45%);
  box-shadow: var(--shadow), 0 0 60px rgba(84,247,181,.09), inset 0 1px 0 rgba(255,255,255,.12);
}
.package-price {
  margin: 18px 0 14px;
  font: 700 2.1rem "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.price-card ul { padding-left: 18px; color: #d3deee; line-height: 2.05; margin: 20px 0 30px; }
.price-card ul li::marker { color: var(--mint); }
.price-card .btn { margin-top: auto; }
.pricing-note { text-align: center; margin-top: 34px; color: var(--mint); font-weight: 750; }

/* ---------- Process ---------- */
.timeline { display: grid; gap: 16px; }
.process-step { padding: 30px; display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; transition: border-color .3s; }
.process-step:hover { border-color: var(--line-bright); }
.process-step span {
  font: 700 2.1rem "Space Grotesk", Inter, sans-serif;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process-step p { grid-column: 2; margin: -8px 0 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; }
.faq-item { padding: 0 24px; margin-bottom: 12px; transition: border-color .3s; }
.faq-item:hover, .faq-item[open] { border-color: var(--line-bright); }
.faq-item summary { cursor: pointer; padding: 21px 0; font-weight: 750; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq-item summary::marker { color: var(--mint); }
.faq-item p { margin-top: 0; padding-bottom: 8px; }

/* ---------- Contact / quote form ---------- */
.contact-layout {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: .78fr 1fr;
  gap: 44px;
  align-items: center;
  padding: 96px 20px;
}
.contact-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.quote-form { padding: 30px; border-radius: var(--radius-lg); }
.form-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 26px; }
.form-progress span { height: 6px; border-radius: var(--radius-pill); background: rgba(255,255,255,.1); transition: background .4s; }
.form-progress span.active { background: var(--grad-brand); }
.form-step { display: none; border: 0; padding: 0; margin: 0; }
.form-step.active { display: grid; gap: 15px; animation: stepIn .4s var(--ease-out) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }
legend { font: 700 1.5rem "Space Grotesk", Inter, sans-serif; letter-spacing: -0.02em; margin-bottom: 16px; }
label { display: grid; gap: 8px; color: #dfe8f7; font-weight: 600; font-size: .96rem; }
.hidden-field { display: none; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0,0,0,.24);
  color: white;
  min-height: 50px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
textarea { min-height: 128px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(75,231,255,.13); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--rose); }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice-grid label { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; grid-template-columns: auto 1fr; align-items: center; background: rgba(255,255,255,.04); cursor: pointer; transition: border-color .25s, background .25s; }
.choice-grid label:hover { border-color: var(--line-bright); background: rgba(255,255,255,.07); }
.choice-grid input { width: auto; min-height: auto; accent-color: var(--mint); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.submit-btn { display: none; }
.quote-form.on-final .submit-btn { display: inline-flex; }
.quote-form.on-final [data-next] { display: none; }
.success-message { color: var(--mint); font-weight: 700; min-height: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 40px auto 100px;
  padding: 72px 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(560px 260px at 50% -30%, rgba(75,231,255,.2), transparent 70%),
    linear-gradient(135deg, rgba(84,247,181,.07), rgba(255,79,154,.07)),
    rgba(255,255,255,.028);
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
}
/* Slow ambient glow inside the band. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(75,231,255,.08) 82%, transparent 94%);
  animation: beamSpin 22s linear infinite;
}
.cta-band > * { position: relative; }
.cta-band p { margin: 18px auto 28px; max-width: 560px; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 44px 20px 56px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.site-footer p { font-size: .95rem; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); align-items: center; }
.site-footer nav a { transition: color .25s; }
.site-footer nav a:hover { color: white; }

/* ---------- Reveal system (driven by IntersectionObserver) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.text-reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.text-reveal.visible { opacity: 1; transform: translateY(0); }
.tilt-card { transform-style: preserve-3d; transition: transform .25s var(--ease-out), border-color .25s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 930px) {
  .site-header { margin: 8px; top: 8px; border-radius: var(--radius); }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    display: grid;
    padding: 10px;
    background: rgba(4, 6, 11, .96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transform-origin: top;
    transform: scaleY(.9);
    opacity: 0;
    pointer-events: none;
    transition: .25s var(--ease-out);
  }
  .site-nav.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .site-nav a { border-radius: 10px; }
  .nav-cta { margin-left: 0; text-align: center; justify-content: center; display: flex; }
  .hero, .contact-layout, .split-section { grid-template-columns: 1fr; }
  .hero { padding-top: 76px; gap: 20px; }
  .hero-stage { min-height: 460px; }
  .mockup-scene { position: relative; inset: auto; margin: 0 auto; }
  .hero-beam { width: 520px; margin: -260px 0 0 -260px; opacity: .7; }
  .section { padding: 78px 20px; }
  .stats-grid, .service-grid, .service-grid.large, .portfolio-grid, .pricing-grid, .review-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
  .price-card.featured { transform: none; }
}
@media (max-width: 620px) {
  h1 { font-size: clamp(2.4rem, 12.5vw, 3.9rem); }
  .section, .page-hero, .contact-layout { padding-left: 14px; padding-right: 14px; }
  .stats-grid, .service-grid, .service-grid.large, .portfolio-grid, .pricing-grid, .review-grid, .before-after, .choice-grid, .two-col { grid-template-columns: 1fr; }
  .compare-card { min-height: 300px; }
  .compare-arrow { width: auto; height: 54px; }
  .hero-stage { min-height: 380px; }
  .mockup-main { min-height: 320px; transform: none; }
  .mockup-float { animation-duration: 12s; }
  .floating-chip, .metric-card { display: none; }
  /* Trim the heavier hero effects on small screens for performance. */
  .hero-beam, .mockup-main::after { display: none; }
  .aurora::after { display: none; }
  .trust-strip { grid-template-columns: 1fr; padding: 0 14px; gap: 2px; }
  .process-step { grid-template-columns: 1fr; }
  .process-step p { grid-column: 1; margin: 0; }
  .site-footer { flex-direction: column; }
  .cursor-glow { display: none; }
  .cta-band { padding: 52px 20px; }
}

/* ---------- Reduced motion: everything settles to its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  /* Elements whose resting CSS is "hidden" must be forced visible. */
  .reveal, .text-reveal { opacity: 1; transform: none; }
  .hero-title .w { opacity: 1; transform: none; filter: none; }
  .mockup-grid > *, .build-pill { opacity: 1; transform: none; }
  .url-text { width: 16ch; border-right-color: transparent; }
  .mockup-main::after, .cta-band::before { display: none; }
  .cursor-glow { display: none; }
}

/* ============================================================
   HOMEPAGE ART DIRECTION V2
   ============================================================ */
.hero-v2 {
  min-height: calc(100svh - 28px);
  max-width: 1440px;
  grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
  gap: 2vw;
  padding: 8vh 38px 5vh;
  isolation: isolate;
}
.hero-v2::before {
  content: "";
  position: absolute;
  inset: 3% 0 1%;
  z-index: -2;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.045) 50%, transparent 50.1%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 25%;
}
.hero-v2 .hero-copy { position: relative; z-index: 4; padding-left: clamp(0px, 3vw, 42px); }
.hero-v2 .hero-title {
  font-size: clamp(3.8rem, 6.4vw, 7.5rem);
  line-height: .82;
  letter-spacing: 0;
  margin-left: -.06em;
  max-width: 900px;
}
.hero-v2 .hero-title .w { display: block; white-space: nowrap; }
.hero-v2 .hero-title .shimmer {
  color: var(--mint);
  -webkit-text-fill-color: transparent;
  background: linear-gradient(100deg, var(--mint), var(--cyan) 46%, #fff 52%, var(--mint) 58%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-v2 .hero-sub { max-width: 580px; margin-top: 34px; color: #b7c0cf; }
.hero-v2 .hero-actions .btn span { margin-left: 14px; font-size: 1.2em; }
.hero-v2 .hero-proof { display: flex; gap: 28px; margin-top: 48px; }
.hero-v2 .hero-proof span {
  border: 0;
  border-left: 1px solid rgba(255,255,255,.18);
  padding: 2px 0 2px 13px;
  color: #8995a9;
  border-radius: 0;
  background: none;
  font-size: .76rem;
  text-transform: uppercase;
}
.hero-v2 .hero-proof b { color: var(--mint); margin-right: 8px; }

.hero-gallery { min-height: 710px; perspective: 1400px; overflow: visible; }
.hero-project {
  position: absolute;
  margin: 0;
  overflow: hidden;
  background: #0b0f16;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 50px 120px rgba(0,0,0,.66);
  transition: filter .5s ease, border-color .5s ease;
}
.hero-project img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-project-main {
  width: 82%;
  aspect-ratio: 1.9;
  top: 24%;
  left: 9%;
  z-index: 3;
  transform: rotateY(-8deg) rotateX(3deg);
  animation: heroFloat 7s ease-in-out infinite;
}
.hero-project-main figcaption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  padding: 50px 18px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  font-size: .72rem;
  text-transform: uppercase;
}
.hero-project-main figcaption span { color: var(--mint); }
.hero-project-left {
  width: 46%;
  aspect-ratio: 1.75;
  top: 8%;
  left: -3%;
  z-index: 1;
  transform: rotate(-8deg) rotateY(12deg);
  filter: saturate(.7) brightness(.75);
  animation: heroFloat 8s ease-in-out -2s infinite reverse;
}
.hero-project-right {
  width: 48%;
  aspect-ratio: 1.75;
  right: -2%;
  bottom: 8%;
  z-index: 4;
  transform: rotate(7deg) rotateY(-10deg);
  animation: heroFloat 9s ease-in-out -4s infinite;
}
.hero-project:hover { filter: none; border-color: rgba(84,247,181,.6); }
.hero-orbit {
  position: absolute;
  right: 3%;
  top: 4%;
  width: 116px;
  height: 116px;
  border: 1px solid rgba(84,247,181,.35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--mint);
  font-size: .59rem;
  text-align: center;
  animation: orbitSpin 16s linear infinite;
}
.hero-orbit::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 22px var(--mint); }
.scroll-cue {
  position: absolute;
  left: 4%;
  bottom: 3%;
  color: #748197;
  text-transform: uppercase;
  font-size: .61rem;
  letter-spacing: .12em;
}
.scroll-cue i { display: inline-block; width: 44px; height: 1px; margin: 0 0 3px 10px; background: var(--mint); transform-origin: left; animation: cuePulse 2s ease-in-out infinite; }
@keyframes heroFloat { 50% { transform: translateY(-13px) rotateY(-5deg) rotateX(2deg); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes cuePulse { 50% { transform: scaleX(.35); opacity: .45; } }

.kinetic-strip {
  width: 100%;
  overflow: hidden;
  border-block: 1px solid rgba(255,255,255,.1);
  background: var(--mint);
  color: #03110d;
  transform: rotate(-1.2deg) scale(1.02);
  margin: 14px 0 80px;
}
.kinetic-strip > div {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 26px;
  padding: 15px 0;
  animation: tickerMove 24s linear infinite;
}
.kinetic-strip span { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.05rem; text-transform: uppercase; }
.kinetic-strip i { width: 7px; height: 7px; background: #03110d; transform: rotate(45deg); }
@keyframes tickerMove { to { transform: translateX(-50%); } }

.work-story { max-width: 1440px; margin: 0 auto; padding: 120px 38px 80px; position: relative; }
.work-story-head { padding: 0 clamp(0px, 5vw, 72px) 90px; }
.work-story-head h2 { font-size: clamp(3.2rem, 7vw, 7.5rem); line-height: .9; letter-spacing: 0; }
.work-sticky { display: grid; grid-template-columns: 1.55fr .75fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.work-visuals {
  position: sticky;
  top: 120px;
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0c1017;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 120px rgba(0,0,0,.5);
}
.work-visuals::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 4;
  border: 1px solid rgba(255,255,255,.16);
  pointer-events: none;
}
.work-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.12); transition: opacity .8s ease, transform 1.2s var(--ease-out); }
.work-frame.active { opacity: 1; transform: scale(1); }
.work-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #080c12;
}
.work-chapters { padding-bottom: 12vh; }
.work-chapter {
  min-height: 66vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: .25;
  transition: opacity .45s ease;
}
.work-chapter.active { opacity: 1; }
.work-chapter > span { color: var(--mint); text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; }
.work-chapter h3 { font-size: clamp(2.4rem, 4vw, 4.8rem); margin: 18px 0; line-height: .94; letter-spacing: 0; }
.work-chapter p { max-width: 390px; font-size: 1.05rem; }
.work-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.16);
  padding: 24px 0;
  margin-top: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3vw, 3rem);
}
.work-link span { color: var(--mint); }

@media (max-width: 1050px) {
  .hero-v2 { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-v2 .hero-title { font-size: clamp(4rem, 12vw, 7rem); }
  .hero-gallery { min-height: 610px; }
}
@media (max-width: 700px) {
  .hero-v2 { padding: 90px 20px 35px; min-height: auto; gap: 40px; }
  .hero-v2::before { inset: 2% 10px; }
  .hero-v2 .hero-copy { padding: 0; }
  .hero-v2 .hero-title { font-size: clamp(3.3rem, 17vw, 5rem); line-height: .86; }
  .hero-v2 .hero-title .w { white-space: normal; }
  .hero-v2 .hero-sub { margin-top: 24px; font-size: 1rem; }
  .hero-v2 .hero-proof { flex-direction: column; gap: 12px; margin-top: 34px; }
  .hero-gallery { min-height: 430px; width: 100%; }
  .hero-project-main { width: 92%; left: 4%; top: 25%; transform: rotate(-2deg); }
  .hero-project-left { width: 52%; top: 7%; left: 0; }
  .hero-project-right { width: 55%; right: 0; bottom: 8%; }
  .hero-orbit { width: 80px; height: 80px; right: 0; }
  .scroll-cue { display: none; }
  .kinetic-strip { margin-bottom: 42px; }
  .work-story { padding: 80px 20px 40px; }
  .work-story-head { padding: 0 0 56px; }
  .work-story-head h2 { font-size: clamp(3rem, 15vw, 5rem); }
  .work-sticky { display: block; }
  .work-visuals { top: 84px; height: auto; min-height: 0; aspect-ratio: 16 / 9; z-index: 2; }
  .work-chapter { min-height: 58vh; padding-top: 24vh; text-shadow: 0 2px 14px #04060b; }
  .work-chapter h3 { font-size: 2.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-project, .hero-orbit, .scroll-cue i, .kinetic-strip > div { animation: none !important; }
  .work-frame { transition: none; }
}

/* ---------- Scroll-built hero construction sequence ---------- */
.hero-v2 {
  --s1: 0; --s2: 0; --s3: 0; --s4: 0; --s5: 0; --s6: 0; --s7: 0; --s8: 0; --s9: 0;
  min-height: 330vh;
  align-items: start;
}
.hero-v2 .hero-copy { position: sticky; top: 24vh; padding-top: 0; }
.hero-v2 .hero-gallery { position: sticky; top: 72px; height: calc(100vh - 84px); min-height: 640px; }
.build-site {
  position: absolute;
  inset: 0;
  z-index: 8;
  perspective: 1200px;
  opacity: calc(1 - var(--s9));
  transition: opacity .15s linear;
}
.build-browser {
  position: absolute;
  width: 88%;
  aspect-ratio: 1.55;
  left: 6%;
  top: 22%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 6px;
  background: #111820;
  box-shadow: 0 45px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(84,247,181,.08);
  opacity: var(--s1);
  transform: translateX(calc((1 - var(--s1)) * 110px)) rotateY(calc((1 - var(--s1)) * -18deg));
  transform-origin: right;
}
.build-browser-top {
  height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #080c12;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.build-browser-top i { width: 7px; height: 7px; border-radius: 50%; background: #44505d; }
.build-browser-top b { margin-left: 12px; color: #647286; font-size: .6rem; font-weight: 500; }
.build-canvas { position: absolute; inset: 36px 0 0; overflow: hidden; background: #d6dbe0; }
.wire-grid {
  position: absolute;
  inset: 0;
  opacity: .42;
  background:
    linear-gradient(#73808c 1px, transparent 1px),
    linear-gradient(90deg, #73808c 1px, transparent 1px);
  background-size: 38px 38px;
}
.build-nav {
  position: absolute;
  left: 5%; right: 5%; top: 6%;
  height: 9%;
  display: flex;
  align-items: center;
  gap: 6%;
  padding: 0 4%;
  background: #101820;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  opacity: var(--s2);
  transform: translateY(calc((1 - var(--s2)) * -80px)) rotate(calc((1 - var(--s2)) * -4deg));
}
.build-nav span { width: 30%; height: 23%; background: var(--mint); }
.build-nav i { width: 12%; height: 10%; background: #b6c0ca; }
.build-hero-image {
  position: absolute;
  width: 45%;
  height: 49%;
  right: 5%;
  top: 20%;
  overflow: hidden;
  border: 2px dashed #62717f;
  opacity: var(--s3);
  transform: translateY(calc((1 - var(--s3)) * -330px)) rotate(calc((1 - var(--s3)) * 8deg));
}
.build-hero-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.paint-pass {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(5,16,28,.94), rgba(13,86,126,.72) 58%, rgba(84,247,181,.18));
  clip-path: inset(0 calc((1 - var(--s4)) * 100%) 0 0);
  mix-blend-mode: color;
}
.build-copy { position: absolute; left: 7%; top: 27%; width: 38%; z-index: 4; opacity: var(--s4); }
.build-copy b { display: block; height: 14px; margin-bottom: 15px; background: #162837; }
.build-copy b:first-child { height: 38px; width: 90%; background: #07131e; }
.build-copy b:last-child { width: 66%; }
.build-cards { position: absolute; left: 6%; right: 6%; bottom: 7%; display: grid; grid-template-columns: repeat(3,1fr); gap: 4%; z-index: 5; }
.build-cards i {
  height: 70px;
  border: 1px solid rgba(255,255,255,.5);
  background: #132b3a;
  box-shadow: 0 10px 22px rgba(0,0,0,.2);
  opacity: var(--s5);
}
.build-cards i:nth-child(1) { transform: translateX(calc((1 - var(--s5)) * -320px)); }
.build-cards i:nth-child(2) { transform: translateY(calc((1 - var(--s5)) * 170px)); }
.build-cards i:nth-child(3) { transform: translateX(calc((1 - var(--s5)) * 320px)); }
.build-cta {
  position: absolute;
  z-index: 6;
  left: 7%;
  top: 58%;
  padding: 12px 20px;
  background: #65717c;
  color: #1c242b;
  border-radius: 3px;
  font-size: .65rem;
  font-weight: 900;
  opacity: var(--s6);
  box-shadow: 0 0 calc(var(--s7) * 35px) rgba(84,247,181,.95);
  filter: brightness(calc(.55 + var(--s7) * .7));
}
.build-cta span { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--mint); }
.finish-glow {
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  opacity: var(--s8);
  box-shadow: inset 0 0 80px rgba(84,247,181,.34), 0 0 90px rgba(75,231,255,.25);
}
.build-crane { position: absolute; z-index: 12; left: 1%; top: 2%; width: 80%; height: 42%; opacity: var(--s3); }
.crane-mast { position: absolute; left: 12%; top: 0; width: 6px; height: 100%; background: repeating-linear-gradient(#ffd166 0 8px,#332b12 8px 14px); }
.crane-arm { position: absolute; left: 12%; top: 0; width: 74%; height: 5px; background: #ffd166; transform-origin: left; transform: scaleX(var(--s3)); }
.crane-cable { position: absolute; left: 79%; top: 4px; width: 1px; height: calc(48% - var(--s3) * 18%); background: #bfc8ce; }
.crane-hook { position: absolute; left: calc(79% - 4px); top: calc(48% - var(--s3) * 18%); width: 9px; height: 12px; border: 2px solid #ffd166; border-top: 0; border-radius: 0 0 8px 8px; }
.worker {
  position: absolute;
  z-index: 20;
  width: 30px;
  height: 58px;
  opacity: 0;
}
.worker i { position: absolute; top: 0; left: 8px; width: 15px; height: 15px; border-radius: 50%; background: #d79a72; }
.worker i::before { content: ""; position: absolute; left: -3px; top: -3px; width: 21px; height: 7px; border-radius: 8px 8px 2px 2px; background: #ffd166; }
.worker b { position: absolute; top: 15px; left: 6px; width: 19px; height: 24px; border-radius: 3px; background: #f18f3b; }
.worker span, .worker em { position: absolute; top: 38px; width: 5px; height: 20px; background: #33485c; }
.worker span { left: 7px; transform: rotate(8deg); }
.worker em { right: 7px; transform: rotate(-8deg); }
.worker-hammer { left: 15%; top: 28%; opacity: var(--s2); transform: translateX(calc((1 - var(--s2)) * -180px)); }
.worker-hammer::after { content: "🔨"; position: absolute; right: -17px; top: 12px; transform-origin: bottom left; animation: hammerTap .55s ease-in-out infinite alternate; }
.worker-painter { right: 2%; top: 47%; opacity: var(--s4); transform: translateX(calc((1 - var(--s4)) * 140px)); }
.worker-painter::after { content: "▰"; position: absolute; left: -18px; top: 10px; color: #20a9e0; transform: rotate(-25deg); }
.worker-carry { left: 9%; bottom: 4%; opacity: var(--s5); transform: translateX(calc((1 - var(--s5)) * -160px)); }
.worker-carry::after { content: "▣"; position: absolute; left: 25px; top: 13px; color: var(--mint); font-size: 24px; }
.worker-electric { left: 36%; top: 59%; opacity: var(--s6); }
.worker-electric::after { content: "⚡"; position: absolute; left: 24px; top: 5px; color: #ffd166; font-size: 20px; opacity: var(--s7); }
@keyframes hammerTap { to { transform: rotate(-28deg); } }
.build-sparks { position: absolute; left: 40%; top: 58%; z-index: 22; opacity: var(--s7); }
.build-sparks i { position: absolute; width: 4px; height: 12px; background: #ffd166; box-shadow: 0 0 12px #ffd166; }
.build-sparks i:nth-child(1) { transform: rotate(35deg) translateY(-20px); }
.build-sparks i:nth-child(2) { transform: rotate(90deg) translateY(-24px); }
.build-sparks i:nth-child(3) { transform: rotate(145deg) translateY(-18px); }
.build-flag {
  position: absolute;
  z-index: 24;
  right: 8%;
  top: 12%;
  width: 130px;
  padding: 9px 10px;
  background: var(--mint);
  color: #03110d;
  font: 800 .62rem "Space Grotesk", sans-serif;
  letter-spacing: .08em;
  opacity: var(--s8);
  transform: translateY(calc((1 - var(--s8)) * 80px)) rotate(-3deg);
}
.build-flag::before { content: ""; position: absolute; right: -4px; top: -55px; width: 3px; height: 100px; background: #d8e0e7; }
.build-caption { position: absolute; left: 8%; bottom: 3%; z-index: 30; display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.build-caption span { color: var(--mint); font-size: .66rem; }
.build-caption b { font: 600 .7rem "Space Grotesk",sans-serif; letter-spacing: .08em; color: #dce5ef; }
.hero-v2 .hero-project { opacity: var(--s9); transform-origin: center; }
.hero-v2 .hero-project-main { transform: scale(calc(.76 + var(--s9) * .24)) rotateY(calc((1 - var(--s9)) * -8deg)); }
.hero-v2 .hero-project-left { transform: translateX(calc((1 - var(--s9)) * -100px)) rotate(-8deg); }
.hero-v2 .hero-project-right { transform: translateX(calc((1 - var(--s9)) * 100px)) rotate(7deg); }
.hero-v2 .hero-orbit { opacity: var(--s9); }

@media (max-width: 1050px) {
  .hero-v2 { min-height: 390vh; }
  .hero-v2 .hero-copy { top: 110px; z-index: 1; opacity: calc(1 - var(--s3)); pointer-events: none; }
  .hero-v2 .hero-gallery { top: 72px; z-index: 3; }
}
@media (max-width: 700px) {
  .hero-v2 { min-height: 420vh; display: block; padding-top: 100px; }
  .hero-v2 .hero-copy { position: sticky; top: 100px; height: calc(100vh - 110px); }
  .hero-v2 .hero-gallery { position: sticky; top: 76px; height: calc(100vh - 86px); min-height: 520px; margin-top: -75vh; }
  .build-browser { width: 98%; left: 1%; top: 27%; }
  .build-browser-top { height: 27px; }
  .build-canvas { inset: 27px 0 0; }
  .build-crane { width: 90%; top: 13%; }
  .worker { transform: scale(.8); }
  .worker-hammer { left: 6%; top: 29%; }
  .worker-painter { right: -2%; top: 47%; }
  .build-flag { right: 2%; top: 20%; }
  .build-caption { bottom: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2 { min-height: auto; }
  .hero-v2 .hero-copy, .hero-v2 .hero-gallery { position: relative; top: auto; height: auto; }
  .build-site { display: none; }
  .hero-v2 .hero-project, .hero-v2 .hero-orbit { opacity: 1; }
}
