/* =========================================================
   ZenQA — Miami Node
   Light & airy Sand base · South Beach synthwave sunset accents
   ========================================================= */

:root {
  /* Miami palette */
  --sunset-pink: #FF5E98;
  --beach-orange: #FF8A4C;
  --coral: #FF6B5C;
  --ocean-cyan: #2DD4DE;
  --teal: #1496A8;
  --sun-gold: #FFB84C;
  --night-navy: #0D1428;
  --sand: #FBF7EF;

  /* Derived surfaces */
  --sand-deep: #F3ECDF;
  --ink: #0D1428;
  --ink-soft: #4a5266;
  --ink-faint: #8a91a1;
  --line: rgba(13, 20, 40, 0.10);
  --card: #ffffff;

  /* Signature gradients */
  --sunset: linear-gradient(125deg, var(--sunset-pink) 0%, var(--beach-orange) 45%, var(--sun-gold) 78%);
  --sunset-ocean: linear-gradient(125deg, var(--sunset-pink) 0%, var(--beach-orange) 38%, var(--sun-gold) 62%, var(--ocean-cyan) 100%);
  --ocean: linear-gradient(125deg, var(--ocean-cyan), var(--teal));

  /* Type */
  --display: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;

  /* Rhythm */
  --header-h: 74px;
  --maxw: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-soft: 0 18px 50px -24px rgba(13, 20, 40, 0.28);
  --shadow-lift: 0 30px 70px -28px rgba(255, 94, 152, 0.45);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--teal);
}

.grad-text {
  background: var(--sunset-ocean);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* skip link */
.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--night-navy); color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 10000;
  transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85em 1.5em; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: var(--sunset);
  box-shadow: 0 12px 30px -10px rgba(255, 107, 92, 0.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(255, 107, 92, 0.75); }
.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); transform: translateY(-3px); }
.btn-light {
  color: var(--night-navy); background: var(--sand);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -12px rgba(0,0,0,0.4); }
.btn-arrow { transition: transform 0.25s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(251, 247, 239, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(251, 247, 239, 0.9); }

/* Header over the dark cinematic intro. The intro canvas sits BELOW the
   sticky header, so a transparent header would reveal the Sand body behind it.
   Instead we paint the header the exact navy of the canvas's top row (#090D1A),
   so it reads as a seamless continuation of the dark scene — no cream bar. */
.site-header.over-dark {
  background: #090d1a;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.site-header.over-dark .brand-name { color: #fff; }
.site-header.over-dark .brand-tag { color: rgba(255, 255, 255, 0.7); }
.site-header.over-dark .nav-links a { color: rgba(255, 255, 255, 0.82); }
.site-header.over-dark .nav-links a:hover { color: #fff; }
.site-header.over-dark .nav-toggle span { background: #fff; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; height: 74px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 38px; height: 38px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-name .qa { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag {
  display: block; font-family: var(--body); font-weight: 600;
  font-size: 0.5rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 1px;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--sunset); border-radius: 2px; transition: width 0.25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto; border-radius: 2px; transition: 0.3s; }

/* =========================================================
   Hero
   ========================================================= */
/* top padding clears the sticky header so the eyebrow isn't tucked under it */
.hero { position: relative; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; pointer-events: none; z-index: 0;
  filter: blur(70px); opacity: 0.5; border-radius: 50%;
}
.hero-glow.one { width: 520px; height: 520px; top: -160px; right: -120px;
  background: radial-gradient(circle, var(--sunset-pink), transparent 65%); }
.hero-glow.two { width: 460px; height: 460px; bottom: -200px; left: -140px;
  background: radial-gradient(circle, var(--ocean-cyan), transparent 65%); opacity: 0.35; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); margin: 18px 0 0; }
.hero h1 .grad-text { display: inline; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); margin-top: 22px; max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-faint); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255,107,92,0.15); }

/* synthwave sun visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.sun-stage {
  position: relative; width: min(420px, 80vw); aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(180deg, #fff 0%, var(--sand) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  display: grid; place-items: center; overflow: hidden;
}
.sun-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(45,212,222,0.08), transparent 40%),
    linear-gradient(0deg, rgba(20,150,168,0.12), transparent 55%);
}
.synthsun {
  position: relative; width: 58%; aspect-ratio: 1; border-radius: 50%;
  background: var(--sunset);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 9px, transparent 9px 13px);
  mask: repeating-linear-gradient(0deg, #000 0 9px, transparent 9px 13px);
  /* the mask stripes appear from ~55% down to give "rising sun" feel */
  animation: sunDrift 9s ease-in-out infinite alternate;
}
.synthsun.solid {
  position: absolute; -webkit-mask: none; mask: none;
  width: 58%; height: 29%; top: 21%; border-radius: 50% 50% 0 0;
  filter: saturate(1.1);
}
@keyframes sunDrift {
  from { transform: translateY(2px); filter: hue-rotate(0deg); }
  to   { transform: translateY(-6px); filter: hue-rotate(-8deg); }
}
.sun-grid {
  position: absolute; bottom: 0; left: 0; right: 0; height: 42%;
  background-image:
    linear-gradient(to right, rgba(20,150,168,0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20,150,168,0.30) 1px, transparent 1px);
  background-size: 38px 30px;
  transform: perspective(280px) rotateX(58deg); transform-origin: bottom;
  -webkit-mask: linear-gradient(to top, #000, transparent);
  mask: linear-gradient(to top, #000, transparent);
}
.sun-mark {
  position: absolute; top: 18px; left: 18px; width: 46px; height: 46px;
  background: #fff; border-radius: 13px; display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
}
.sun-mark svg { width: 30px; height: 30px; }
.sun-badge {
  position: absolute; bottom: 18px; right: 18px;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 8px 14px; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   Trust bar
   ========================================================= */
.trust { border-block: 1px solid var(--line); background: var(--sand-deep); }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  divide: var(--line);
}
.trust-item { padding: 30px 18px; text-align: center; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: none; }
.trust-num { font-family: var(--display); font-weight: 800; font-size: 2rem; }
.trust-label { font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.04em; }

/* =========================================================
   Section scaffolding
   ========================================================= */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-top: 14px; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }

/* =========================================================
   Services
   ========================================================= */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 32px;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s, border-color 0.35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: var(--sunset); transition: width 0.4s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255,94,152,0.14), rgba(45,212,222,0.14));
  color: var(--coral);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.22rem; }
.card p { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.card .tools { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
  padding: 4px 10px; border-radius: 999px; color: var(--teal);
  background: rgba(20,150,168,0.08); border: 1px solid rgba(20,150,168,0.18);
}

/* =========================================================
   What we test
   ========================================================= */
.test-strip { background: var(--night-navy); color: var(--sand); }
.test-strip .eyebrow { color: var(--sun-gold); }
.test-strip .section-head h2 { color: #fff; }
.test-strip .section-head p { color: rgba(251,247,239,0.66); }
.pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pill {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 22px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.pill:hover { transform: translateY(-4px); background: rgba(255,255,255,0.07); border-color: rgba(255,184,76,0.4); }
.pill-mark {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--sunset); color: #fff;
}
.pill-mark svg { width: 22px; height: 22px; }
.pill b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; }
.pill span { display: block; font-size: 0.8rem; color: rgba(251,247,239,0.6); }

/* =========================================================
   Process timeline
   ========================================================= */
.timeline { position: relative; display: grid; gap: 0; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 12px; bottom: 12px; width: 3px;
  background: var(--sunset-ocean); border-radius: 3px; opacity: 0.5;
}
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 18px 0; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800;
  color: #fff; background: var(--sunset); position: relative; z-index: 1;
  box-shadow: 0 10px 24px -10px rgba(255,107,92,0.6);
}
.step:nth-child(even) .step-num { background: var(--ocean); box-shadow: 0 10px 24px -10px rgba(20,150,168,0.6); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--ink-soft); margin-top: 6px; font-size: 0.97rem; }

/* =========================================================
   Work / case studies
   ========================================================= */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.case {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--card); padding: 32px;
  transition: transform 0.35s, box-shadow 0.35s;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.case-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.case-flag { font-size: 0.78rem; font-weight: 600; color: var(--teal); letter-spacing: 0.08em; text-transform: uppercase; }
.case h3 { font-size: 1.4rem; margin-top: 14px; }
.case p { color: var(--ink-soft); margin-top: 10px; font-size: 0.96rem; }
.case-metrics { display: flex; gap: 28px; margin-top: 22px; }
.case-metric .n { font-family: var(--display); font-weight: 800; font-size: 1.7rem; }
.case-metric .n.grad { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case-metric .l { font-size: 0.78rem; color: var(--ink-faint); }
.adapted-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  font-size: 0.82rem; color: var(--ink-faint);
  background: var(--sand-deep); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
}

/* =========================================================
   Testimonial
   ========================================================= */
.quote-wrap { max-width: 860px; margin-inline: auto; text-align: center; }
.stars { color: var(--sun-gold); font-size: 1.3rem; letter-spacing: 4px; }
.quote {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.32; margin: 22px 0 26px; letter-spacing: -0.01em;
}
.quote .grad-text { display: inline; }
.quote-by { font-size: 0.95rem; color: var(--ink-soft); }
.quote-by b { color: var(--ink); }
.placeholder-tag {
  display: inline-block; margin-top: 16px; font-size: 0.74rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint);
  border: 1px dashed var(--line); border-radius: 999px; padding: 5px 14px;
}

/* =========================================================
   Final CTA (dark)
   ========================================================= */
.cta { position: relative; background: var(--night-navy); color: var(--sand); overflow: hidden; }
.cta .cta-sun {
  position: absolute; width: 360px; height: 360px; right: -40px; top: -120px;
  background: var(--sunset);
  -webkit-mask: repeating-linear-gradient(0deg, #000 0 10px, transparent 10px 16px);
  mask: repeating-linear-gradient(0deg, #000 0 10px, transparent 10px 16px);
  border-radius: 50%; opacity: 0.4; filter: blur(0.4px);
}
.cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); color: #fff; }
.cta p { color: rgba(251,247,239,0.72); margin-top: 14px; font-size: 1.05rem; }
.cta .eyebrow { color: var(--sun-gold); }

/* form */
.form { display: grid; gap: 14px; background: rgba(255,255,255,0.05); padding: 26px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.04em; color: rgba(251,247,239,0.7); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font-family: var(--body); font-size: 0.95rem; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px; padding: 12px 14px; transition: border-color 0.2s, background 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(251,247,239,0.4); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sun-gold); background: rgba(255,255,255,0.1); }
.form .btn { justify-content: center; width: 100%; }
.form-note { font-size: 0.76rem; color: rgba(251,247,239,0.5); text-align: center; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--sand-deep); padding: 64px 0 32px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 280px; }
.footer-col h4 { font-family: var(--body); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.92rem; color: var(--ink-soft); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--coral); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-faint); flex-wrap: wrap;
}
.footer-bottom .label { letter-spacing: 0.22em; text-transform: uppercase; font-weight: 600; color: var(--teal); }

/* =========================================================
   Stub / subpage hero
   ========================================================= */
.page-hero { padding: calc(var(--header-h) + 36px) 0 48px; position: relative; overflow: hidden; }
.page-hero .hero-glow.one { width: 420px; height: 420px; top: -180px; right: -100px; }
.page-hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-top: 14px; }
.page-hero p { color: var(--ink-soft); font-size: 1.1rem; margin-top: 16px; max-width: 560px; }
.breadcrumb { font-size: 0.85rem; color: var(--ink-faint); }
.breadcrumb a:hover { color: var(--coral); }
.service-detail { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; padding: 36px 0; border-top: 1px solid var(--line); }
.service-detail:first-of-type { border-top: none; }
.service-detail h3 { font-size: 1.5rem; }
.service-detail .eyebrow { margin-bottom: 8px; display: block; }
.service-detail p { color: var(--ink-soft); margin-top: 12px; }
.service-detail ul { margin-top: 16px; list-style: none; display: grid; gap: 10px; }
.service-detail li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.service-detail li::before { content: "✓"; color: var(--coral); font-weight: 800; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info .info-block { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-info .info-block h4 { font-family: var(--body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.contact-info .info-block p { margin-top: 6px; font-size: 1.05rem; }
.contact-info .info-block a { color: var(--teal); font-weight: 600; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-soft); }
.contact-card .field label { color: var(--ink-soft); }
.contact-card .field input, .contact-card .field textarea { color: var(--ink); background: var(--sand); border-color: var(--line); }
.contact-card .field input::placeholder, .contact-card .field textarea::placeholder { color: var(--ink-faint); }
.contact-card .field input:focus, .contact-card .field textarea:focus { border-color: var(--coral); background: #fff; }

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

/* hero load-in (runs on load, not scroll) */
.hero-anim { opacity: 0; transform: translateY(22px); animation: heroIn 0.9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero-anim[data-d="1"] { animation-delay: 0.1s; }
.hero-anim[data-d="2"] { animation-delay: 0.22s; }
.hero-anim[data-d="3"] { animation-delay: 0.34s; }
.hero-anim[data-d="4"] { animation-delay: 0.46s; }
.hero-anim[data-d="5"] { animation-delay: 0.58s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; min-height: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pills { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .cta-inner, .contact-grid, .service-detail { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-right .btn { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
    position: absolute; top: 74px; left: 0; right: 0; padding: 20px 24px;
    background: var(--sand); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 8px 0; width: 100%; }
}
@media (max-width: 620px) {
  .cards, .pills, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: none; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: none; }
  .case-metrics { gap: 20px; }
  .form .row { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-anim { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Cinematic intro (chaos → clarity → Miami dawn)
   ========================================================= */
.intro {
  position: relative;
  width: 100%;
  height: 100vh;
  /* The header is position:fixed (out of flow), so the intro naturally starts
     at the very top and fills the viewport behind it — no negative margin, so
     the pin math stays clean (the negative-margin hack caused a white strip /
     jump on Safari). The header is painted the same navy, so it reads seamless. */
  background: radial-gradient(120% 90% at 50% 0%, #0c1322 0%, #0a0e1a 45%, #05070d 100%);
}
.intro__sticky {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.intro__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.intro__overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 6vw; pointer-events: none; z-index: 2;
}
.intro-stage {
  grid-area: 1 / 1; margin: 0; max-width: 19ch; text-align: center;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.06; font-size: clamp(2rem, 6vw, 4.6rem);
  opacity: 0; transform: translateY(18px) scale(0.99);
  will-change: opacity, transform; text-wrap: balance;
}
.intro-stage--1 { color: #ffe9ec; text-shadow: 0 0 38px rgba(255, 60, 80, 0.35); }
.intro-stage--2 { color: #fff2f0; text-shadow: 0 0 46px rgba(255, 90, 70, 0.45); }
.intro-stage--3 { color: #eafff8; text-shadow: 0 0 42px rgba(47, 224, 192, 0.45); }
.intro-stage--4 { color: #eafff9; text-shadow: 0 0 50px rgba(47, 224, 192, 0.5); }
/* final beat lands on the bright dawn — dark text with a warm glow */
.intro-stage--5 { color: var(--night-navy); text-shadow: 0 2px 40px rgba(255, 138, 76, 0.45); }
.intro-stage--5 .grad-text { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }

.intro__hint {
  position: absolute; left: 50%; bottom: clamp(18px, 4vh, 40px);
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(234, 242, 255, 0.6); pointer-events: none; transition: opacity 0.5s ease;
}
.intro__hint-arrow { font-size: 1rem; animation: introBob 1.8s ease-in-out infinite; }
@keyframes introBob {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* sentinel that flips the header from dark to light at the dawn handoff */
.bright-top { position: relative; height: 1px; width: 100%; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .intro, .intro__sticky { height: 100vh; height: 100svh; }
  .intro__hint, .intro__hint-arrow { display: none; animation: none; }
  .intro-stage--5 { opacity: 1; transform: none; }
}
