/* ==========================================================================
   PixelHub — Global Design System
   Phase 1: tokens, typography, navbar, footer, homepage
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg-0: #0B0B0D;      /* Obsidian — page background */
  --bg-1: #141418;      /* Graphite — alternate sections */
  --bg-2: #1C1C22;      /* Slate — elevated cards */
  --bg-3: #24242B;      /* Hover state surface */
  --line: #26262E;      /* Borders, dividers */

  /* Text */
  --text-1: #F7F7F5;    /* Primary */
  --text-2: #9A9AA3;    /* Secondary */
  --text-3: #5C5C65;    /* Tertiary / captions */

  /* Accent */
  --accent: #FF5A1F;        /* Ignition orange */
  --accent-deep: #C8410F;   /* Ember — hover */
  --accent-soft: rgba(255, 90, 31, 0.12);
  --accent-glow: rgba(255, 90, 31, 0.35);

  /* Semantic */
  --success: #1FAA6B;
  --warning: #F4B43A;

  /* Spacing scale (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 999px;

  /* Typography */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --navbar-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 520ms;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-elev: 0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 10px 40px rgba(255, 90, 31, 0.25);
}

/* --------------------------------------------------------------------------
   2. RESET + BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-1);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--navbar-h);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}

.display-xl {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
}

.display-lg {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.display-md {
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
  line-height: 1.55;
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   4. LAYOUT UTILITIES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section {
  padding: var(--s-10) 0;
}

.section-sm {
  padding: var(--s-8) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--s-8) 0; }
  .section-sm { padding: var(--s-7) 0; }
}

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }

.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--text-2);
  background: var(--bg-2);
}

.btn-lg { padding: 18px 28px; font-size: 16px; }

/* --------------------------------------------------------------------------
   6. NAVBAR — high-impact: accent bar, gradient CTA, scroll compression
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: rgba(11, 11, 13, 0.70);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(38, 38, 46, 0.6);
  z-index: 1000;
  transition: background var(--dur) var(--ease-out),
              height var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  animation: navIn 900ms var(--ease-out) both;
}

.navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 90, 31, 0) 15%,
    rgba(255, 90, 31, 0.7) 50%,
    rgba(255, 90, 31, 0) 85%,
    transparent 100%
  );
  opacity: 0.7;
  pointer-events: none;
}

.navbar.is-scrolled {
  height: 64px;
  background: rgba(11, 11, 13, 0.92);
  border-bottom-color: var(--line);
}

.navbar.is-scrolled .nav-logo img { height: 34px; }

@keyframes navIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.navbar-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-5);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.nav-right { justify-content: flex-end; }

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  padding: 6px 0;
  transition: color var(--dur) var(--ease-out);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: var(--accent);
  transition: width var(--dur) var(--ease-out);
}

.nav-link:hover { color: var(--text-1); }
.nav-link:hover::after { width: 100%; }

.nav-logo {
  display: inline-flex;
  align-items: center;
  position: relative;
  transition: transform var(--dur) var(--ease-out);
}

.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(255, 90, 31, 0));
  transition: height var(--dur) var(--ease-out),
              filter var(--dur) var(--ease-out);
}

.nav-logo:hover { transform: translateY(-1px); }
.nav-logo:hover img { filter: drop-shadow(0 0 14px rgba(255, 90, 31, 0.45)); }

.nav-utility {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.lang-switch {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lang-switch form { margin: 0; display: inline-flex; }

.lang-switch button {
  background: transparent;
  color: var(--text-2);
  border: none;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}

.lang-switch button:hover {
  color: var(--text-1);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch button.active {
  background: linear-gradient(135deg, #FF6A2F 0%, #FF5A1F 50%, #E6481A 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.4),
    0 6px 16px rgba(255, 90, 31, 0.35);
}
.lang-switch button.active:hover { transform: translateY(-1px); }

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  color: var(--text-2);
  border: 1px solid var(--line);
  background: var(--bg-1);
  position: relative;
  transition: all var(--dur) var(--ease-out);
}

.nav-icon-btn:hover {
  color: var(--text-1);
  border-color: var(--text-2);
}

.nav-icon-btn svg { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-0);
}

.nav-auth-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur) var(--ease-out);
}
.nav-auth-link:hover { color: var(--text-1); }

.nav-cta {
  position: relative;
  padding: 10px 20px;
  background: linear-gradient(135deg, #FF6A2F 0%, #FF5A1F 45%, #E6481A 100%);
  color: #fff;
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 6px 18px rgba(255, 90, 31, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.nav-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 900ms var(--ease-out);
  z-index: -1;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 90, 31, 0.45),
              inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nav-cta:hover::before { left: 150%; }

/* Cart icon pulse when items present */
.nav-icon-btn .cart-badge {
  animation: cartPulse 2.4s var(--ease-in-out) infinite;
}

@keyframes cartPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.55); }
  50% { box-shadow: 0 0 0 6px rgba(255, 90, 31, 0); }
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-1);
  padding: 8px;
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-0);
  padding: var(--s-6) var(--s-5);
  flex-direction: column;
  gap: var(--s-2);
  overflow-y: auto;
  z-index: 999;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  padding: var(--s-4) 0;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .mobile-cta {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  box-sizing: border-box;
  margin-top: var(--s-5);
  padding: 18px 22px !important;
  border: none !important;
  border-bottom: none;
  text-align: center !important;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #FF6A2F 0%, #FF5A1F 45%, #E6481A 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.4),
    0 14px 32px rgba(255, 90, 31, 0.35);
  position: sticky;
  bottom: var(--s-4);
  z-index: 10;
  text-decoration: none;
}
.mobile-menu .mobile-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.5),
    0 18px 40px rgba(255, 90, 31, 0.45);
}

/* Mobile language wrapper: clear label + pill toggle so users instantly
   know what EN/ES means. Stays at the top of the mobile menu drawer. */
.mobile-lang-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 var(--s-4);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}

.mobile-lang-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mobile-lang-label svg { color: var(--accent); flex-shrink: 0; }

.mobile-lang {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
  margin: 0;
}

.mobile-lang form { margin: 0; display: flex; }

.mobile-lang button {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent !important;
  background-color: transparent !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: var(--r-md);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.mobile-lang button .flag { font-size: 18px; line-height: 1; }

.mobile-lang button:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04) !important;
}

.mobile-lang button.active {
  background: linear-gradient(135deg, #FF6A2F 0%, #FF5A1F 50%, #E6481A 100%) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.45),
    0 10px 24px rgba(255, 90, 31, 0.4);
  transform: scale(1.02);
}

@media (max-width: 960px) {
  .navbar-inner { grid-template-columns: auto 1fr auto; }
  .nav-left, .nav-right { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav-logo { justify-self: center; }
}

/* --------------------------------------------------------------------------
   7. HERO — cinematic: Ken Burns bg, floating accents, word stagger,
                        underline draw, mouse parallax, scroll cue
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-parallax {
  position: absolute;
  inset: -4%;
  z-index: -3;
  transition: transform 280ms var(--ease-out);
  will-change: transform;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/background.jpg") center/cover no-repeat;
  transform: scale(1.14);
  opacity: 0;
  animation:
    heroImageIn 1600ms var(--ease-out) forwards 80ms,
    kenBurns 22s var(--ease-in-out) 1800ms infinite alternate;
}

/* Subtle grain overlay for cinematic feel */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.06;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.6) 1px, transparent 1px);
  background-size: 3px 3px;
  animation: grainShift 8s steps(6) infinite;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 80% at 0% 50%, rgba(11,11,13,0.95) 0%, rgba(11,11,13,0.7) 40%, transparent 75%),
    linear-gradient(180deg, rgba(11,11,13,0.3), rgba(11,11,13,0.88));
}

/* Floating accent orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  animation: orbIn 2000ms var(--ease-out) forwards 400ms,
             orbDrift 14s var(--ease-in-out) 2400ms infinite alternate;
}

.hero-orb.orb-1 {
  top: 8%;
  right: -6%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.55), transparent 65%);
}

.hero-orb.orb-2 {
  bottom: -10%;
  left: 30%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(255, 150, 60, 0.28), transparent 70%);
  animation-delay: 700ms, 3200ms;
}

.hero-orb.orb-3 {
  top: 40%;
  left: -8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(200, 65, 15, 0.35), transparent 65%);
  animation-delay: 1000ms, 4000ms;
}

.hero-content {
  max-width: 820px;
  padding: var(--s-9) var(--s-5);
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 700ms var(--ease-out) forwards 400ms;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero .eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.hero h1 {
  margin-top: var(--s-4);
}

/* Word-by-word reveal */
.hero h1 .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero h1 .word > span {
  display: inline-block;
  transform: translateY(110%);
  animation: wordRise 900ms var(--ease-out) forwards;
}

.hero h1 .word:nth-of-type(1) > span { animation-delay: 520ms; }
.hero h1 .word:nth-of-type(2) > span { animation-delay: 620ms; }
.hero h1 .word:nth-of-type(3) > span { animation-delay: 720ms; }
.hero h1 .word:nth-of-type(4) > span { animation-delay: 820ms; }
.hero h1 .word:nth-of-type(5) > span { animation-delay: 920ms; }
.hero h1 .word:nth-of-type(6) > span { animation-delay: 1020ms; }

.hero h1 .accent-line {
  display: block;
  color: var(--accent);
  position: relative;
  padding-bottom: 0.05em;
}

.hero h1 .accent-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(255,150,60,0.6), var(--accent));
  border-radius: 2px;
  animation: underlineDraw 1100ms var(--ease-out) forwards 1500ms;
  box-shadow: 0 0 18px rgba(255, 90, 31, 0.6);
}

.hero .lede {
  margin-top: var(--s-5);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 900ms var(--ease-out) forwards 1650ms;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 900ms var(--ease-out) forwards 1800ms;
}

.hero-meta {
  margin-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  opacity: 0;
  animation: fadeUp 900ms var(--ease-out) forwards 1950ms;
}

.hero-meta span + span::before {
  content: "·";
  margin: 0 var(--s-3);
  color: var(--line);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 900ms var(--ease-out) forwards 2200ms;
  pointer-events: none;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--accent));
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9));
  animation: scrollDrop 2s var(--ease-in-out) infinite;
}

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

@keyframes heroImageIn { to { opacity: 0.58; transform: scale(1.04); } }

@keyframes kenBurns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-2%, -1%, 0); }
}

@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2%, 1%); }
  40%  { transform: translate(1%, -2%); }
  60%  { transform: translate(-1%, 2%); }
  80%  { transform: translate(2%, 1%); }
  100% { transform: translate(0, 0); }
}

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

@keyframes orbDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4%, -3%, 0) scale(1.08); }
}

@keyframes wordRise {
  to { transform: translateY(0); }
}

@keyframes underlineDraw {
  to { width: 100%; }
}

@keyframes scrollDrop {
  0% { top: -40%; }
  100% { top: 100%; }
}

@media (max-width: 768px) {
  .hero-scroll { display: none; }
  .hero-orb.orb-1 { width: 260px; height: 260px; right: -20%; }
  .hero-orb.orb-2, .hero-orb.orb-3 { display: none; }
}

/* --------------------------------------------------------------------------
   8. TRUST STRIP — high-impact: gradient bg, glowing icon tiles,
      eyebrow labels, animated vertical dividers, stagger reveal
   -------------------------------------------------------------------------- */
.trust-strip {
  position: relative;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(255, 90, 31, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-7) var(--s-5);
  overflow: hidden;
  isolation: isolate;
}

/* Glowing top + bottom hairlines */
.trust-strip::before,
.trust-strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 90, 31, 0) 15%,
    rgba(255, 90, 31, 0.55) 50%,
    rgba(255, 90, 31, 0) 85%,
    transparent 100%
  );
  pointer-events: none;
}

.trust-strip::before { top: 0; }
.trust-strip::after { bottom: 0; }

.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Vertical divider lines between items */
.trust-inner > .trust-item + .trust-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
  transform-origin: top;
  transform: scaleY(0);
  animation: dividerGrow 700ms var(--ease-out) forwards;
}

.trust-inner > .trust-item:nth-child(2)::before { animation-delay: 120ms; }
.trust-inner > .trust-item:nth-child(3)::before { animation-delay: 240ms; }
.trust-inner > .trust-item:nth-child(4)::before { animation-delay: 360ms; }

.trust-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0 var(--s-5);
  opacity: 0;
  transform: translateY(14px);
  animation: trustIn 700ms var(--ease-out) forwards;
}

.trust-item:nth-child(1) { animation-delay: 80ms; }
.trust-item:nth-child(2) { animation-delay: 200ms; }
.trust-item:nth-child(3) { animation-delay: 320ms; }
.trust-item:nth-child(4) { animation-delay: 440ms; }

.trust-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(255, 120, 60, 0.35), transparent 70%),
    linear-gradient(135deg, rgba(255, 90, 31, 0.18), rgba(255, 90, 31, 0.05));
  border: 1px solid rgba(255, 90, 31, 0.25);
  color: var(--accent);
  box-shadow:
    0 0 24px rgba(255, 90, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
}

.trust-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  background: conic-gradient(from 180deg at 50% 50%,
    rgba(255, 90, 31, 0),
    rgba(255, 90, 31, 0.5),
    rgba(255, 90, 31, 0));
  filter: blur(6px);
  opacity: 0;
  z-index: -1;
  transition: opacity 500ms var(--ease-out);
  animation: iconHalo 4s linear infinite;
}

.trust-item:hover .trust-icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow:
    0 0 32px rgba(255, 90, 31, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.trust-item:hover .trust-icon::after { opacity: 0.9; }

.trust-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(255, 90, 31, 0.4));
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.trust-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.trust-title {
  color: var(--text-1);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

@keyframes dividerGrow {
  to { transform: scaleY(1); }
}

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

@media (max-width: 900px) {
  .trust-inner { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); }
  .trust-inner > .trust-item:nth-child(3)::before { display: none; }
}

@media (max-width: 560px) {
  .trust-inner { grid-template-columns: 1fr; row-gap: var(--s-4); }
  .trust-inner > .trust-item::before { display: none !important; }
  .trust-item { padding: 0; }
  .trust-icon { width: 48px; height: 48px; }
  .trust-icon svg { width: 20px; height: 20px; }
}

/* --------------------------------------------------------------------------
   9. SECTION HEADER
   -------------------------------------------------------------------------- */
.section-header {
  max-width: 720px;
  margin: 0 auto var(--s-8);
  text-align: center;
}

.section-header.left {
  margin-left: 0;
  text-align: left;
}

.section-header .eyebrow { margin-bottom: var(--s-3); }

.section-header h2 { margin-bottom: var(--s-4); }

/* --------------------------------------------------------------------------
   10. SERVICE GRID — premium cards with chip, ghost number,
                      corner brackets, CTA pill, 3D tilt
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  perspective: 1400px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  transform-style: preserve-3d;
  transition: transform 500ms var(--ease-out),
              border-color 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}

.service-card-media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-2);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) brightness(0.95);
  transition: transform 800ms var(--ease-out),
              filter 500ms var(--ease-out);
}

.service-card:hover .service-card-media img {
  transform: scale(1.07);
  filter: saturate(1.08) brightness(1.0);
}

/* Chip overlay on image — top-left */
.service-card-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  background: rgba(11, 11, 13, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  color: var(--text-1);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: chipPulse 2.4s var(--ease-in-out) infinite;
}

@keyframes chipPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 31, 0.6); }
  50% { box-shadow: 0 0 0 5px rgba(255, 90, 31, 0); }
}

/* Bottom gradient on image */
.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 11, 13, 0.85) 100%);
  opacity: 0.9;
  transition: opacity var(--dur) var(--ease-out);
  z-index: 1;
}

.service-card:hover .service-card-media::after { opacity: 1; }

/* Top growing line on hover — we already defined this via a separate rule below; keep */

.service-card-body {
  position: relative;
  padding: var(--s-5) var(--s-5) calc(var(--s-5) + 4px);
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Ghost number in the background of the body */
.service-card-num {
  position: absolute;
  top: -22px;
  right: -4px;
  font-family: var(--font-display);
  font-size: 140px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  user-select: none;
  transition: color 600ms var(--ease-out),
              -webkit-text-stroke-color 600ms var(--ease-out),
              transform 600ms var(--ease-out);
  z-index: 0;
}

.service-card:hover .service-card-num {
  -webkit-text-stroke-color: rgba(255, 90, 31, 0.25);
  transform: translate3d(-4px, -2px, 0);
}

.service-card-body > * { position: relative; z-index: 1; }

.service-card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-3);
  line-height: 1.15;
}

.service-card p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 var(--s-5);
}

/* CTA pill — always visible, fills with orange on hover */
.service-card-link {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 360ms var(--ease-out),
              border-color 360ms var(--ease-out),
              box-shadow 360ms var(--ease-out),
              transform 360ms var(--ease-out);
}

.service-card-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FF6A2F 0%, #FF5A1F 50%, #E6481A 100%);
  transform: translateX(-101%);
  transition: transform 420ms var(--ease-out);
  z-index: -1;
}

.service-card-link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur) var(--ease-out);
}

.service-card:hover .service-card-link {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.35);
  transform: translateX(3px);
}

.service-card:hover .service-card-link::before { transform: translateX(0); }
.service-card:hover .service-card-link svg { transform: translateX(4px); }

@media (hover: none) {
  .service-card-link { color: var(--accent); border-color: rgba(255, 90, 31, 0.25); }
}

@media (max-width: 960px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-num { font-size: 110px; }
}

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

/* --------------------------------------------------------------------------
   11. DESIGN PROMO — editorial: centered headline + 3 capability tiles
   -------------------------------------------------------------------------- */
.design-promo {
  position: relative;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 90, 31, 0.08), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}

.design-promo-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--s-9) var(--s-5);
}

/* Headline block — centered narrow column */
.design-promo-header {
  max-width: 760px;
  margin: 0 auto var(--s-8);
  text-align: center;
}

.design-promo-header .eyebrow {
  margin-bottom: var(--s-4);
  display: inline-block;
}

.design-promo-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin: 0 auto var(--s-5);
  max-width: 14ch;
}

.design-promo-header .lede {
  margin: 0 auto var(--s-6);
}

/* 3 capability tiles below */
.design-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-7);
  perspective: 1200px;
}

.design-tile {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-5);
  color: #fff;
  transition: transform 500ms var(--ease-out),
              border-color 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
}

.design-tile:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
}

.design-tile-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.design-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
  filter: saturate(0.92) brightness(0.92);
}

.design-tile:hover .design-tile-media img {
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1);
}

.design-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(11,11,13,0.15) 0%,
    rgba(11,11,13,0.55) 50%,
    rgba(11,11,13,0.95) 100%);
}

.design-tile-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.design-tile-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.design-tile h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 var(--s-2);
  color: #fff;
}

.design-tile p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  max-width: 36ch;
}

/* Footer CTA centered */
.design-promo-footer {
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .design-tiles { grid-template-columns: 1fr 1fr; }
  .design-tile { aspect-ratio: 3/4; }
}

@media (max-width: 600px) {
  .design-tiles { grid-template-columns: 1fr; }
  .design-tile { aspect-ratio: 4/3; min-height: 260px; }
}

/* --------------------------------------------------------------------------
   12. VALUE PROPS (Why PixelHub) — minimalist: 4 clean pillars with
                                     pulsing icon glow, no cards
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7);
  position: relative;
}

/* Subtle divider lines between items on desktop */
.why-grid::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 18%;
  left: 25%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.why-grid::after {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 18%;
  left: 75%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}

.why-divider-mid {
  position: absolute;
  top: 12%;
  bottom: 18%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
  pointer-events: none;
}

.why-item {
  position: relative;
  padding: 0 var(--s-4);
  text-align: center;
  transition: transform 500ms var(--ease-out);
}

.why-item:hover { transform: translateY(-4px); }

.why-icon {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto var(--s-5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  border-radius: 50%;
}

/* Pulsing glow behind icon — continuous, subtle */
.why-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.35), transparent 65%);
  filter: blur(12px);
  animation: whyPulse 3.4s var(--ease-in-out) infinite;
  z-index: -1;
}

.why-icon::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 31, 0.22);
  transition: border-color 500ms var(--ease-out),
              transform 500ms var(--ease-out);
}

.why-item:hover .why-icon::after {
  border-color: rgba(255, 90, 31, 0.5);
  transform: scale(1.1);
}

.why-icon svg {
  position: relative;
  width: 28px;
  height: 28px;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255, 90, 31, 0.5));
  transition: transform 500ms var(--ease-out);
}

.why-item:hover .why-icon svg {
  transform: scale(1.08) rotate(-5deg);
}

@keyframes whyPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.08); opacity: 0.95; }
}

/* Stagger the pulses across the 4 items so they don't sync */
.why-item:nth-child(1) .why-icon::before { animation-delay: 0s; }
.why-item:nth-child(2) .why-icon::before { animation-delay: 0.85s; }
.why-item:nth-child(3) .why-icon::before { animation-delay: 1.7s; }
.why-item:nth-child(4) .why-icon::before { animation-delay: 2.55s; }

.why-item h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: var(--s-3);
  color: var(--text-1);
  transition: color 400ms var(--ease-out);
}

.why-item:hover h3 { color: var(--accent); }

.why-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); row-gap: var(--s-8); }
  .why-grid::before, .why-grid::after, .why-divider-mid { display: none; }
}

@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* --------------------------------------------------------------------------
   13. PROCESS — sequential reveal, dot markers, animated connector,
                 big number stagger, hover glow
   -------------------------------------------------------------------------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  position: relative;
  padding-top: var(--s-5);
}

/* base line across all steps (at top) */
.process-list::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  z-index: 0;
}

.process-step {
  position: relative;
  padding: var(--s-6) var(--s-4) 0;
  transition: transform 500ms var(--ease-out);
}

/* Accent line per step (draws from 0 on reveal) */
.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(255, 150, 60, 0.6));
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.6);
  transition: width 700ms var(--ease-out);
  z-index: 2;
}

/* Dot marker at the start of each step on the line */
.process-step::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 90, 31, 0);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 500ms var(--ease-out),
              transform 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
  z-index: 3;
}

/* Hidden initial state for step content */
.process-step .num,
.process-step h3,
.process-step p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out),
              transform 600ms var(--ease-out);
}

/* When parent .process-list has .is-visible, stagger each step */
.process-list.is-visible .process-step::before { width: 60px; }
.process-list.is-visible .process-step::after {
  opacity: 1;
  transform: scale(1);
}
.process-list.is-visible .process-step .num,
.process-list.is-visible .process-step h3,
.process-list.is-visible .process-step p {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger per step */
.process-list.is-visible .process-step:nth-child(1)::before { transition-delay: 200ms; }
.process-list.is-visible .process-step:nth-child(2)::before { transition-delay: 480ms; }
.process-list.is-visible .process-step:nth-child(3)::before { transition-delay: 760ms; }
.process-list.is-visible .process-step:nth-child(4)::before { transition-delay: 1040ms; }

.process-list.is-visible .process-step:nth-child(1)::after { transition-delay: 260ms; }
.process-list.is-visible .process-step:nth-child(2)::after { transition-delay: 540ms; }
.process-list.is-visible .process-step:nth-child(3)::after { transition-delay: 820ms; }
.process-list.is-visible .process-step:nth-child(4)::after { transition-delay: 1100ms; }

.process-list.is-visible .process-step:nth-child(1) .num { transition-delay: 350ms; }
.process-list.is-visible .process-step:nth-child(1) h3  { transition-delay: 430ms; }
.process-list.is-visible .process-step:nth-child(1) p   { transition-delay: 510ms; }

.process-list.is-visible .process-step:nth-child(2) .num { transition-delay: 630ms; }
.process-list.is-visible .process-step:nth-child(2) h3  { transition-delay: 710ms; }
.process-list.is-visible .process-step:nth-child(2) p   { transition-delay: 790ms; }

.process-list.is-visible .process-step:nth-child(3) .num { transition-delay: 910ms; }
.process-list.is-visible .process-step:nth-child(3) h3  { transition-delay: 990ms; }
.process-list.is-visible .process-step:nth-child(3) p   { transition-delay: 1070ms; }

.process-list.is-visible .process-step:nth-child(4) .num { transition-delay: 1190ms; }
.process-list.is-visible .process-step:nth-child(4) h3  { transition-delay: 1270ms; }
.process-list.is-visible .process-step:nth-child(4) p   { transition-delay: 1350ms; }

/* Hover */
.process-step:hover { transform: translateY(-4px); }
.process-step:hover::after {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(255, 90, 31, 0.18),
              0 0 14px rgba(255, 90, 31, 0.6);
}
.process-step:hover::before { width: 100% !important; }

/* Typography */
.process-step .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: 0.12em;
  margin-bottom: var(--s-3);
  display: inline-block;
}

.process-step:hover .num { color: var(--accent); }

.process-step h3 {
  font-size: 22px;
  letter-spacing: -0.015em;
  margin-bottom: var(--s-3);
  transition: color var(--dur) var(--ease-out);
}

.process-step p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* Old horizontal fill line animation (top of section) — disable since we now draw per step */
.process-list::before { display: none; }

@media (max-width: 900px) {
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .process-list::after { display: none; }
}

@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   14. FINAL CTA
   -------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  padding: var(--s-10) var(--s-5);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 50%, var(--accent-soft) 0%, transparent 70%);
  animation: glowPulse 6s var(--ease-in-out) infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.9; }
}

.cta-final h2 {
  max-width: 16ch;
  margin: 0 auto var(--s-5);
}

.cta-final .lede {
  margin: 0 auto var(--s-7);
}

.cta-final .hero-buttons {
  justify-content: center;
  animation: none;
  opacity: 1;
  transform: none;
}

.cta-final .contact-line {
  margin-top: var(--s-6);
  color: var(--text-3);
  font-size: 14px;
}

.cta-final .contact-line a {
  color: var(--text-1);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease-out);
}

.cta-final .contact-line a:hover { border-color: var(--accent); }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: #070708;
  border-top: 1px solid var(--line);
  padding: var(--s-9) var(--s-5) var(--s-5);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-8);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--line);
}

.footer-brand img {
  height: 38px;
  width: auto;
  margin-bottom: var(--s-4);
}

.footer-brand p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  max-width: 34ch;
  margin: 0 0 var(--s-5);
}

.footer-social {
  display: flex;
  gap: var(--s-2);
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--line);
  color: var(--text-2);
  border-radius: var(--r-full);
  transition: all var(--dur) var(--ease-out);
}

.footer-social a:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: var(--s-4);
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.footer-col a,
.footer-col li {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.4;
  transition: color var(--dur) var(--ease-out);
}

.footer-col a:hover { color: var(--text-1); }

.footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-line svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-3);
  font-size: 13px;
  flex-wrap: wrap;
  gap: var(--s-3);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   SCROLL PROGRESS BAR
   -------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #FF8A3D, var(--accent));
  z-index: 2000;
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.6);
  transition: width 80ms linear;
}

/* --------------------------------------------------------------------------
   ENHANCED SERVICE CARDS — image overlay, shimmer on hover
   -------------------------------------------------------------------------- */
.service-card-media {
  position: relative;
}

.service-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11,11,13,0.6) 100%);
  opacity: 0.7;
  transition: opacity var(--dur) var(--ease-out);
}

.service-card:hover .service-card-media::after { opacity: 1; }


/* --------------------------------------------------------------------------
   SECTION HEADER ACCENT LINE (animated on reveal)
   -------------------------------------------------------------------------- */
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-header .eyebrow::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--accent);
  display: inline-block;
  transition: width 700ms var(--ease-out) 200ms;
}

.section-header.reveal.is-visible .eyebrow::before,
.reveal.is-visible .section-header .eyebrow::before {
  width: 28px;
}

/* If the eyebrow sits inside a .reveal itself */
.section-header.is-visible .eyebrow::before { width: 28px; }

/* --------------------------------------------------------------------------
   PROCESS — line fill animation on scroll
   -------------------------------------------------------------------------- */
.process-list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 1400ms var(--ease-out);
  z-index: 1;
  pointer-events: none;
}

.process-list.is-visible::before { width: 100%; }

/* --------------------------------------------------------------------------
   CTA FINAL — aurora blobs
   -------------------------------------------------------------------------- */
.cta-final::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(30% 40% at 20% 30%, rgba(255, 90, 31, 0.25), transparent 70%),
    radial-gradient(35% 45% at 80% 70%, rgba(255, 120, 50, 0.22), transparent 70%),
    radial-gradient(25% 35% at 50% 90%, rgba(200, 65, 15, 0.18), transparent 70%);
  filter: blur(20px);
  animation: auroraDrift 14s var(--ease-in-out) infinite alternate;
}

@keyframes auroraDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(3%, -2%, 0) scale(1.05); }
}

/* --------------------------------------------------------------------------
   BUTTON SHEEN — sweep on hover for primary CTA buttons
   -------------------------------------------------------------------------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.25);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left 900ms var(--ease-out);
  z-index: -1;
}

.btn-primary:hover::before { left: 150%; }

/* --------------------------------------------------------------------------
   TRUST STRIP — icon pop on view
   -------------------------------------------------------------------------- */
.trust-item svg {
  transition: transform 500ms var(--ease-out);
}

.trust-strip:hover .trust-item svg { transform: scale(1.12) rotate(-3deg); }

/* --------------------------------------------------------------------------
   WHY ITEMS — icon scale on hover
   -------------------------------------------------------------------------- */
.why-item { position: relative; overflow: hidden; }

.why-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,90,31,0.12), transparent 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.why-item:hover::before { opacity: 1; }

.why-icon {
  transition: transform var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}

.why-item:hover .why-icon {
  transform: scale(1.06) rotate(-2deg);
  background: rgba(255, 90, 31, 0.2);
}

/* --------------------------------------------------------------------------
   NETFLIX ROW — horizontal scrollable service carousel
   -------------------------------------------------------------------------- */
.netflix {
  position: relative;
  isolation: isolate;
  margin-left: calc(-1 * var(--s-5));
  margin-right: calc(-1 * var(--s-5));
}

.netflix-track {
  display: flex;
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 8px var(--s-5) 24px;
  -webkit-overflow-scrolling: touch;
}

.netflix-track::-webkit-scrollbar { display: none; }

/* Edge fade masks so cards dissolve at edges */
.netflix::before,
.netflix::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 3;
  pointer-events: none;
}

.netflix::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-0), transparent);
}

.netflix::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg-0), transparent);
}

/* Card — compact, 4 visible on desktop */
.nf-card {
  position: relative;
  flex: 0 0 calc((100% - (var(--s-5) * 2) - (var(--s-4) * 3.5)) / 4);
  min-width: 240px;
  aspect-ratio: 4/5;
  scroll-snap-align: start;
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-4);
  color: #fff;
  transition: transform 500ms var(--ease-out),
              border-color 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
}

.nf-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  z-index: 2;
}

.nf-card-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.nf-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.nf-card:hover .nf-card-media img { transform: scale(1.08); }

.nf-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg,
      rgba(11,11,13,0.15) 0%,
      rgba(11,11,13,0.45) 40%,
      rgba(11,11,13,0.95) 100%);
  transition: opacity var(--dur) var(--ease-out);
}

.nf-card-num {
  position: absolute;
  top: var(--s-3);
  left: var(--s-4);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

.nf-card-chip {
  position: absolute;
  top: var(--s-3);
  right: var(--s-3);
  z-index: 2;
  padding: 4px 9px 4px 8px;
  background: rgba(11,11,13,0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.nf-card-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.nf-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 var(--s-2);
  color: #fff;
}

.nf-card p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0 0 var(--s-3);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 400ms var(--ease-out),
              opacity 300ms var(--ease-out),
              margin 400ms var(--ease-out);
}

.nf-card:hover p {
  max-height: 80px;
  opacity: 1;
}

.nf-card-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  transition: all 400ms var(--ease-out);
}

.nf-card-cta svg { width: 12px; height: 12px; transition: transform var(--dur) var(--ease-out); }

.nf-card:hover .nf-card-cta {
  max-height: 40px;
  opacity: 1;
  padding-top: 8px;
  padding-bottom: 8px;
  border-width: 1px;
}

.nf-card:hover .nf-card-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.nf-card:hover .nf-card-cta:hover svg { transform: translateX(3px); }

/* Arrow navigation */
.netflix-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(11,11,13,0.85);
  border: 1px solid var(--line);
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 300ms var(--ease-out);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.netflix-nav svg { width: 18px; height: 18px; }

.netflix-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 12px 32px rgba(255, 90, 31, 0.4);
}

.netflix-nav.prev { left: 8px; }
.netflix-nav.next { right: 8px; }

.netflix-nav.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.85);
}

/* Progress indicator under track */
.netflix-progress {
  height: 2px;
  background: var(--line);
  border-radius: 2px;
  margin: 0 var(--s-5);
  overflow: hidden;
  position: relative;
}

.netflix-progress-bar {
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--accent), #FF8A3D);
  box-shadow: 0 0 12px rgba(255, 90, 31, 0.6);
  border-radius: 2px;
  transition: transform 280ms var(--ease-out);
  transform-origin: left;
}

@media (max-width: 1100px) {
  .nf-card { flex-basis: calc((100% - (var(--s-5) * 2) - (var(--s-4) * 2.5)) / 3); min-width: 220px; }
}

@media (max-width: 760px) {
  .nf-card { min-width: 220px; flex-basis: 75%; aspect-ratio: 4/5; }
  .netflix-nav { display: none; }
  /* Always-visible CTA on touch */
  .nf-card p, .nf-card-cta {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
  .nf-card-cta { padding: 8px 14px; border-width: 1px; }
}

/* --------------------------------------------------------------------------
   FEATURED BENTO — home services: asymmetric 3-card featured layout
   -------------------------------------------------------------------------- */
.featured-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--s-4);
  min-height: 640px;
}

.feat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  transition: transform 500ms var(--ease-out),
              border-color 500ms var(--ease-out),
              box-shadow 500ms var(--ease-out);
  color: var(--text-1);
}

.feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}

/* Hero spans 2 rows on the left */
.feat-card.is-hero {
  grid-row: 1 / span 2;
}

.feat-card-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.feat-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

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

/* Dark gradient so text is legible over any image */
.feat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,11,13,0.1) 0%, rgba(11,11,13,0.5) 45%, rgba(11,11,13,0.92) 100%);
  transition: opacity var(--dur) var(--ease-out);
}

/* Hero has stronger gradient for bigger text block */
.feat-card.is-hero::before {
  background:
    linear-gradient(180deg, rgba(11,11,13,0.15) 0%, rgba(11,11,13,0.55) 35%, rgba(11,11,13,0.95) 100%);
}

.feat-card-chip {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 2;
  padding: 7px 13px 7px 11px;
  background: rgba(11,11,13,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-1);
}

.feat-card-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.feat-card-num {
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
}

.feat-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 var(--s-2);
  color: #fff;
}

.feat-card.is-hero h3 {
  font-size: clamp(32px, 3.8vw, 54px);
}

.feat-card:not(.is-hero) h3 {
  font-size: clamp(22px, 1.8vw, 28px);
}

.feat-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 var(--s-4);
  max-width: 46ch;
}

.feat-card.is-hero p { font-size: 16px; max-width: 52ch; }

.feat-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-full);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 340ms var(--ease-out);
  align-self: flex-start;
}

.feat-card-cta svg { width: 13px; height: 13px; transition: transform 340ms var(--ease-out); }

.feat-card:hover .feat-card-cta {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.35);
}
.feat-card:hover .feat-card-cta svg { transform: translateX(3px); }

/* Subtle corner bracket on hero */
.feat-card.is-hero::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.3);
  z-index: 2;
  pointer-events: none;
}

.featured-bento-footer {
  margin-top: var(--s-7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s-4);
}

.featured-bento-footer .bento-divider {
  width: 60px;
  height: 1px;
  background: var(--line);
}

.featured-bento-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 340ms var(--ease-out);
}

.featured-bento-more svg { width: 14px; height: 14px; transition: transform 340ms var(--ease-out); }

.featured-bento-more:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,90,31,0.32);
}

.featured-bento-more:hover svg { transform: translateX(4px); }

.featured-bento-more .count {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  margin-right: 2px;
  transition: color var(--dur) var(--ease-out);
}

.featured-bento-more:hover .count { color: rgba(255,255,255,0.85); }

@media (max-width: 900px) {
  .featured-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    min-height: 0;
  }
  .feat-card.is-hero { grid-row: 1; min-height: 420px; }
  .feat-card:not(.is-hero) { min-height: 280px; }
}

/* --------------------------------------------------------------------------
   SERVICE ROWS — home services: alternating editorial rows
   -------------------------------------------------------------------------- */
.service-rows {
  display: flex;
  flex-direction: column;
  gap: var(--s-9);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  position: relative;
}

.service-row:nth-child(even) .service-row-media { order: 2; }

.service-row-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
  isolation: isolate;
}

.service-row-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out),
              filter 600ms var(--ease-out);
  filter: saturate(0.92) brightness(0.95);
}

.service-row:hover .service-row-media img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(1);
}

.service-row-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,13,0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Floating chip on image corner */
.service-row-tag {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  z-index: 2;
  padding: 7px 13px 7px 11px;
  background: rgba(11,11,13,0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-1);
}

.service-row-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.service-row-content {
  position: relative;
  padding: 0 var(--s-3);
}

.service-row-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-4);
}

.service-row-num::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

.service-row-content h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 var(--s-4);
  color: var(--text-1);
}

.service-row-content .lede {
  color: var(--text-2);
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  margin: 0 0 var(--s-5);
  max-width: 48ch;
}

.service-row-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-6);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-row-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
}

.service-row-features svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-row-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 600;
  transition: all 340ms var(--ease-out);
}

.service-row-cta svg { width: 14px; height: 14px; transition: transform 340ms var(--ease-out); }

.service-row-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255,90,31,0.32);
}

.service-row-cta:hover svg { transform: translateX(4px); }

/* Reveal on scroll */
.service-row .service-row-media,
.service-row .service-row-content {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out),
              transform 800ms var(--ease-out);
}

.service-row:nth-child(even) .service-row-media { transform: translateX(-24px); }
.service-row:nth-child(even) .service-row-content { transform: translateX(24px); }
.service-row:nth-child(odd) .service-row-media { transform: translateX(24px); }
.service-row:nth-child(odd) .service-row-content { transform: translateX(-24px); }

.service-row.is-visible .service-row-media,
.service-row.is-visible .service-row-content {
  opacity: 1;
  transform: translate(0);
}

.service-row.is-visible .service-row-content { transition-delay: 150ms; }

@media (max-width: 900px) {
  .service-rows { gap: var(--s-7); }
  .service-row { grid-template-columns: 1fr; gap: var(--s-5); }
  .service-row:nth-child(even) .service-row-media { order: 0; }
  .service-row-content { padding: 0; }
  .service-row:nth-child(odd) .service-row-media,
  .service-row:nth-child(odd) .service-row-content,
  .service-row:nth-child(even) .service-row-media,
  .service-row:nth-child(even) .service-row-content { transform: translateY(24px); }
  .service-row.is-visible .service-row-media,
  .service-row.is-visible .service-row-content { transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   SHOWCASE — home services section: list + big image swap
   -------------------------------------------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) 1.3fr;
  gap: var(--s-7);
  align-items: stretch;
  position: relative;
}

.showcase-list {
  display: flex;
  flex-direction: column;
  padding-right: var(--s-3);
}

.showcase-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: padding var(--dur) var(--ease-out);
  color: var(--text-2);
}

.showcase-item:last-child { border-bottom: 1px solid var(--line); }

.showcase-item-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  padding-top: 10px;
  flex-shrink: 0;
  width: 26px;
  transition: color var(--dur) var(--ease-out);
}

.showcase-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase-item-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text-2);
  transition: color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
  margin: 0;
}

.showcase-item-desc {
  font-size: 14px;
  color: var(--text-3);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 420ms var(--ease-out),
              opacity 300ms var(--ease-out);
  line-height: 1.55;
}

.showcase-item-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0;
  transform: translateX(-8px) scale(0.85);
  transition: all 360ms var(--ease-out);
}

.showcase-item-arrow svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

/* Line indicator that animates on active */
.showcase-item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.6);
  transition: width 500ms var(--ease-out);
  z-index: 1;
}

/* Active state — driven by JS adding .is-active */
.showcase-item.is-active::before { width: 100%; }

.showcase-item.is-active .showcase-item-num {
  color: var(--accent);
}

.showcase-item.is-active .showcase-item-title {
  color: var(--text-1);
  transform: translateX(6px);
}

.showcase-item.is-active .showcase-item-desc {
  max-height: 80px;
  opacity: 1;
  margin-top: 6px;
}

.showcase-item.is-active .showcase-item-arrow {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Non-active items get dimmed when one is active (but not on leave) */
.showcase-list:hover .showcase-item:not(.is-active) .showcase-item-title {
  color: var(--text-3);
}

/* Media column */
.showcase-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--line);
}

.showcase-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 600ms var(--ease-out),
              transform 1200ms var(--ease-out);
}

.showcase-media img.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Dark gradient overlay at bottom of media for label readability */
.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11,11,13,0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Floating label in media */
.showcase-media-label {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-5);
  right: var(--s-5);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  color: var(--text-1);
}

.showcase-media-label .label-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  transition: opacity 400ms var(--ease-out);
}

.showcase-media-label .label-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 4px;
}

.showcase-media-cta {
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}

.showcase-media-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.showcase-media-cta svg { width: 12px; height: 12px; }

/* Progress indicator row (small lines showing which is active) */
.showcase-progress {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  z-index: 2;
  display: flex;
  gap: 4px;
}

.showcase-progress span {
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  transition: background 400ms var(--ease-out);
}

.showcase-progress span.is-active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 90, 31, 0.7);
}

@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; gap: var(--s-5); }
  .showcase-media { aspect-ratio: 16/10; order: -1; }
  .showcase-item-title { font-size: 22px; }
  .showcase-media-label .label-title { font-size: 20px; }
}

@media (max-width: 560px) {
  .showcase-item-arrow { display: none; }
}

/* --------------------------------------------------------------------------
   PAGE HERO (non-home pages: services, design, shop, etc.)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: var(--s-10) var(--s-5) var(--s-9);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(255, 90, 31, 0.12), transparent 60%),
    var(--bg-0);
  border-bottom: 1px solid var(--line);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 90, 31, 0) 20%,
    rgba(255, 90, 31, 0.55) 50%,
    rgba(255, 90, 31, 0) 80%,
    transparent 100%);
}

.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: var(--s-4);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 auto var(--s-5);
  max-width: 18ch;
}

.page-hero h1 .accent { color: var(--accent); }

.page-hero .lede {
  margin: 0 auto var(--s-7);
}

.page-hero-buttons {
  display: inline-flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
}

.page-hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--s-8);
  margin-top: var(--s-8);
  flex-wrap: wrap;
}

.page-hero-stat {
  text-align: center;
}

.page-hero-stat .n {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.03em;
  line-height: 1;
  display: block;
}

.page-hero-stat .n .unit { color: var(--accent); }

.page-hero-stat .l {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --------------------------------------------------------------------------
   MATERIALS STRIP — continuous horizontal marquee with edge fades
   -------------------------------------------------------------------------- */
.materials-strip {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  /* Edge fade masks so content seamlessly appears/disappears at sides */
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%);
}

.materials-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  will-change: transform;
}

.materials-strip:hover .materials-track {
  animation-play-state: paused;
}

.materials-row {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding-right: var(--s-8);
  flex-shrink: 0;
}

.materials-label {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text-2);
  white-space: nowrap;
}

.material-badge {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-2);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  transition: color var(--dur) var(--ease-out);
}

.material-badge:hover { color: var(--text-1); }

/* Orange dot separator between items */
.material-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(255, 90, 31, 0.7);
  flex-shrink: 0;
  display: inline-block;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .materials-track { animation: none; justify-content: center; width: 100%; }
  .materials-row:nth-child(2) { display: none; }
}

@media (max-width: 768px) {
  .material-badge,
  .materials-label { font-size: 20px; }
  .materials-row { gap: var(--s-6); padding-right: var(--s-6); }
  .materials-track { animation-duration: 30s; }
}

/* --------------------------------------------------------------------------
   QUOTE SECTION (form + trust sidebar)
   -------------------------------------------------------------------------- */
.quote-section {
  padding: var(--s-9) var(--s-5);
  background: var(--bg-0);
}

.quote-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s-8);
  align-items: start;
}

.quote-trust h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: var(--s-5);
}

.quote-trust .lede {
  margin-bottom: var(--s-6);
}

.quote-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-7);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.quote-trust-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
}

.quote-trust-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.quote-trust-list strong {
  color: var(--text-1);
  font-weight: 600;
}

.quote-contact-row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}

.quote-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}

.quote-contact-chip:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.quote-contact-chip svg { width: 16px; height: 16px; color: var(--accent); }

/* Quote form card */
.quote-form-card {
  background: linear-gradient(180deg, var(--bg-1), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.quote-form-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 90, 31, 0.12), transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.quote-form-card h3 {
  font-size: 22px;
  margin-bottom: var(--s-2);
  letter-spacing: -0.015em;
}

.quote-form-card .eyebrow { margin-bottom: var(--s-3); display: inline-block; }

.quote-form-card .note {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: var(--s-5);
}

/* Form fields (global) */
.field {
  position: relative;
  margin-bottom: var(--s-4);
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: inherit;
  font-size: 14.5px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  box-sizing: border-box;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-3); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.15);
}

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

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3e%3cpath d='M1 1l5 5 5-5' stroke='%239A9AA3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-file {
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
  cursor: pointer;
  display: block;
  text-align: center;
  color: var(--text-2);
  font-size: 13px;
}

.field-file:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-1);
}

.field-file svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  vertical-align: middle;
  margin-right: 6px;
}

.field-file input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.field-grid > .field { margin-bottom: 0; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--s-3);
}

/* Success / messages */
.form-flash {
  background: rgba(31, 170, 107, 0.12);
  border: 1px solid rgba(31, 170, 107, 0.35);
  color: #5EDBA0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  margin-bottom: var(--s-5);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-flash svg { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 900px) {
  .quote-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .quote-form-card { padding: var(--s-5); }
  .field-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   FAQ — accordion
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding: var(--s-4) 0;
  transition: background var(--dur) var(--ease-out);
}

.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-3) var(--s-4) var(--s-3) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-1);
  position: relative;
  transition: color var(--dur) var(--ease-out);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--accent); }

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 400ms var(--ease-out),
              background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
  position: relative;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform var(--dur) var(--ease-out);
}

.faq-toggle::before { width: 10px; height: 1.5px; }
.faq-toggle::after  { width: 1.5px; height: 10px; }

.faq-item[open] .faq-toggle {
  background: var(--accent);
  border-color: var(--accent);
}

.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after { background: #fff; }

.faq-item[open] .faq-toggle::after { transform: rotate(90deg); }

.faq-answer {
  padding: 0 var(--s-4) var(--s-4) 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 70ch;
}

/* --------------------------------------------------------------------------
   16. SCROLL REVEAL
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out),
              transform 700ms var(--ease-out);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* ==========================================================================
   GLOBAL RESPONSIVE LAYER  —  added 2026-05
   Final pass to make every page work cleanly on tablets and phones without
   touching individual templates. Targets common patterns: section padding,
   page-hero grids, forms, footer columns, FAQ blocks, stat trios, the
   t-shirt customizer split layout, and the new landing-pages section.
   ========================================================================== */

/* ── Tablets and below (≤960px) ─────────────────────────────── */
@media (max-width: 960px) {
  /* Section padding: relax */
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }

  /* Display headings: keep them large but never overflow */
  .display-xl { font-size: clamp(40px, 8vw, 72px); line-height: 1.05; }
  .display-lg { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; }
  .display-md { font-size: clamp(26px, 5vw, 44px); line-height: 1.12; }

  /* Common 2-column layouts that should stack at this breakpoint */
  .quote-section .quote-inner,
  .lp-hero-grid,
  .design-promo-grid,
  .why-grid,
  .process-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Form grids: stack input pairs */
  .field-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Quote / form cards */
  .quote-form-card,
  .lp-form-card { padding: 28px !important; }

  /* Trust strip / stats trio: 3 across is ok at tablet, but tighten */
  .page-hero-stats { gap: 16px; }
}

/* ── Phones (≤640px) ─────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Container hugs edges with --gutter padding */
  .container { padding-left: var(--gutter); padding-right: var(--gutter); }

  /* Sections: tighter vertical rhythm */
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }

  /* Page hero — generic, centered on phones */
  .page-hero { padding: 80px var(--gutter) 56px !important; text-align: center; }
  .page-hero h1 { font-size: clamp(32px, 9vw, 48px); }
  .page-hero .lede { font-size: 15px; margin-left: auto; margin-right: auto; }
  .page-hero .eyebrow { display: inline-block; }

  /* Landing page hero copy: center on phones */
  .lp-hero-copy { text-align: center; }
  .lp-hero-copy .lede { margin-left: auto; margin-right: auto; }
  .lp-hero-copy .page-hero-buttons,
  .lp-hero-copy .hero-buttons { justify-content: center; }
  .lp-hero-copy .lp-powered-badge { justify-content: center; margin-left: auto; margin-right: auto; }

  /* Hero buttons — full-width stacked on phones */
  .page-hero-buttons,
  .hero-buttons,
  .lp-hero-copy .page-hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-hero-buttons .btn,
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 14px 20px; font-size: 15px; }

  /* Stat trios: keep 3 columns but smaller text, or stack to 1 if very narrow */
  .page-hero-stats { gap: 12px; }
  .page-hero-stat .n { font-size: 28px; }
  .page-hero-stat .l { font-size: 11px; letter-spacing: 0.08em; }

  /* Section header */
  .section-header { padding: 0 var(--gutter); }
  .section-header h2 { font-size: clamp(26px, 7vw, 40px); }
  .section-header .lede { font-size: 14px; }

  /* Forms: full-width on phones */
  .quote-form-card,
  .lp-form-card {
    padding: 24px var(--gutter) !important;
    border-radius: 12px;
  }
  .quote-form-card h3,
  .lp-form-card h3 { font-size: 22px; }
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="password"], select, textarea {
    font-size: 16px; /* prevents iOS zoom on focus */
  }

  /* FAQ list */
  .faq-item summary { font-size: 15px; padding: 16px 14px; }
  .faq-answer { font-size: 14px; padding: 0 14px 16px; }

  /* Footer columns: stack */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Cards — softer hover, more compact */
  .nf-card,
  .service-card,
  .design-tile { border-radius: 14px; }

  /* Service grid → 1 column */
  .services-grid { grid-template-columns: 1fr !important; gap: 16px; }

  /* Why-grid 4-up → 1 column */
  .why-grid > * { padding: 24px; }

  /* Pricing cards */
  .pricing-grid { grid-template-columns: 1fr !important; gap: 16px; }
}

/* ── Very small phones (≤380px) ──────────────────────────────── */
@media (max-width: 380px) {
  .display-lg { font-size: 30px; }
  .page-hero h1 { font-size: 30px; }
  .btn { padding: 12px 16px; font-size: 14px; }
  /* Stat trio: stack on tiny screens */
  .page-hero-stats { grid-template-columns: 1fr; }
}

/* ── Landing-pages page (Pixel Hub web design service) ────────── */
@media (max-width: 900px) {
  .lp-hero { padding: 80px 0 56px; }
  .lp-hero-copy h1 { font-size: clamp(34px, 7vw, 56px); }
  .lp-hero-visual { aspect-ratio: 16 / 10; }
  .lp-included { padding: 56px 0; }
  .lp-included-grid { gap: 16px; }
  .lp-feature { padding: 22px 18px; }
  .lp-form-section { padding: 56px 0; }
  .lp-form-card { margin-top: 28px; padding: 28px; }
}
@media (max-width: 560px) {
  .lp-powered-badge { font-size: 10px; padding: 6px 12px; }
  .lp-hero-visual { aspect-ratio: 4 / 3; border-radius: 12px; }
  .lp-feature h3 { font-size: 16px; }
  .lp-form-card { padding: 24px var(--gutter); }
}

/* ── T-shirt customizer (already has @media 1000px) ──────────── */
@media (max-width: 768px) {
  /* Make the 3D stage take a comfortable height on phones */
  .ts-stage {
    aspect-ratio: 1 / 1 !important;
    min-height: 380px;
  }
  /* Color swatches: slightly larger touch targets */
  .ts-colors { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)) !important; }
  /* Side-pick / size buttons full-width row */
  .ts-side-pick { flex-wrap: wrap; }
  /* Add Logo / Add Text row stacks */
  .ts-add-row { grid-template-columns: 1fr !important; }
  /* Element list cards */
  .ts-elem-card { padding: 10px 12px; }
}

/* ── Account dashboard ───────────────────────────────────────── */
@media (max-width: 768px) {
  .account-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .account-tabs::-webkit-scrollbar { display: none; }
}

/* ── Cart on phones ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .cart-item { padding: 14px; gap: 10px; }
  .cart-item-image { width: 70px; height: 70px; }
  .cart-summary { padding: 20px var(--gutter); }
}

/* ── Generic image safety: never let images blow out ─────────── */
img, video, svg { max-width: 100%; height: auto; }
table { width: 100%; }

/* ── Touch-device hover suppression: avoid sticky :hover states ── */
@media (hover: none) and (pointer: coarse) {
  .btn:hover, .nav-link:hover, a:hover { transform: none !important; }
}

/* ── Mobile floating "Get a Quote" CTA ──────────────────────────
   Hidden on desktop. On phones/tablets it sits at the bottom-right
   corner so users can request a quote from any page without opening
   the hamburger menu. */
.mobile-fab-cta {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 990;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FF6A2F 0%, #FF5A1F 45%, #E6481A 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.5),
    0 16px 40px rgba(255, 90, 31, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  animation: fabPulse 3s ease-in-out infinite;
}
.mobile-fab-cta svg { width: 20px; height: 20px; flex-shrink: 0; }
.mobile-fab-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.6),
    0 20px 50px rgba(255, 90, 31, 0.5),
    0 6px 16px rgba(0, 0, 0, 0.4);
}
@keyframes fabPulse {
  0%, 100% { box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.5),
    0 16px 40px rgba(255, 90, 31, 0.4),
    0 0 0 0 rgba(255, 90, 31, 0.4); }
  50% { box-shadow:
    0 0 0 1px rgba(255, 90, 31, 0.5),
    0 16px 40px rgba(255, 90, 31, 0.4),
    0 0 0 14px rgba(255, 90, 31, 0); }
}

/* Show only on tablets and below. Override [hidden] attribute too —
   the attribute keeps the element invisible if CSS hasn't loaded yet. */
@media (max-width: 960px) {
  .mobile-fab-cta,
  .mobile-fab-cta[hidden] { display: inline-flex !important; }
}
/* On very narrow phones, shrink to icon-only to save room */
@media (max-width: 380px) {
  .mobile-fab-cta { padding: 14px; }
  .mobile-fab-cta span { display: none; }
}
