/* ─────────────────────────────────────────────────────────────
   ATWOOD OPERATIONS — main.css
   Refined brutalism: black base, hard 1px borders, mono titles,
   single industrial accent (#FFB800), serif italic accents,
   3D entry motion, cursor-following yellow glow.

   ─── TABLE OF CONTENTS ────────────────────────────────────────
   01. Design tokens (:root variables)            line 18
   02. Reset + base typography                    line 50
   03. Brand / hero logo animations               line 80
   04. Layout (.main-content, .sr-only)           line 121
   05. Navbar                                     line 124
   06. Shared column / rules / section labels     line 167
   07. Hero (background, content, metrics)        line 198
   08. 02 — Specialization (W portal grid)        line 377
   09. 03 — Flow / Execution timeline             line 562
   10. 04 — Results / Case files marquee          line 643
   11. 05 — Direct contact form                   line 783
   12. Footer                                     line 990
   13. Floating WhatsApp CTA                      line 1101
   14. Cursor-following glow utilities            line 1159
   15. Motion fallback (data-motion attrs)        line 1190
   16. Responsive (@media)                        line 1200
   ───────────────────────────────────────────────────────────── */

:root {
  /* Surfaces */
  --bg:        #000;
  --bg-1:      #030303;
  --bg-2:      #060606;
  --line:      #1a1a1a;
  --line-2:    #111;
  --line-soft: #0e0e0e;

  /* Type */
  --fg:        #f0f0f0;
  --fg-1:      #e8e8e8;
  --fg-2:      #d1d5db;
  --fg-mute:   #9ca3af;
  --fg-dim:    #6b7280;

  /* Accents */
  --accent:        #FFB800;  /* industrial yellow */
  --accent-ink:    #000;
  --accent-shadow: rgba(255, 184, 0, 0.22);
  --accent-glow:   rgba(255, 184, 0, 0.14);
  --ok:            #22c55e;  /* operational green — status only */
  --ok-glow:       rgba(34, 197, 94, 0.5);

  /* Type stacks */
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "EB Garamond", "Times New Roman", serif;

  /* Layout */
  --col-max: 900px;
  --col-max-wide: 1200px;
  --col-pad: 28px;
}

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

html, body {
  background-color: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scanline texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(255,255,255,0.012) 2px, rgba(255,255,255,0.012) 4px
  );
  pointer-events: none;
  z-index: 0;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ───────── BRAND / HERO LOGO ANIMATIONS ───────── */
.nav-w-icon {
  display: flex; align-items: center; justify-content: center;
  width: 25px; height: 25px; flex-shrink: 0;
}
.nav-w-icon svg { width: 100%; height: 100%; fill: #fff; }

.hero-logo-wrapper svg {
  height: 55px; width: auto; opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.07));
  transition: opacity 0.3s ease;
}
.hero-logo-wrapper svg:hover { opacity: 1; }

.hero-logo-wrapper {
  display: block; margin: 0 0 40px; position: relative; opacity: 0;
  animation: systemBoot 0.01s 0.3s forwards, mechanicalReveal 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}
.hero-logo-wrapper svg {
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.85)) drop-shadow(0 0 12px rgba(255,255,255,0.07));
}
.hero-logo-wrapper::after {
  content: ''; position: absolute;
  top: -10px; left: 0; bottom: -10px; width: 2px;
  background: #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
  opacity: 0;
  animation: scanlinePass 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes systemBoot { to { opacity: 1; clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%); } }
@keyframes mechanicalReveal {
  from { clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%); }
  to   { clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); }
}
@keyframes scanlinePass {
  0%   { left: 0; opacity: 1; }
  90%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ───────── LAYOUT ───────── */
.main-content { position: relative; z-index: 1; padding-top: 56px; }

/* ───────── NAVBAR ───────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(0,0,0,0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 var(--col-pad); height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.logotype { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-1);
}
.nav-right { display: flex; align-items: center; gap: 20px; }
.status-pill { display: flex; align-items: center; gap: 7px; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 6px var(--ok-glow);
  flex-shrink: 0;
}
.status-lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-mute);
}
.nav-vline { width: 1px; height: 16px; background: var(--line); }
.btn-nav {
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-2);
  border: 1px solid #333; padding: 7px 18px;
  background-color: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.btn-nav:hover { border-color: var(--accent); background-color: #0c0c0c; color: var(--accent); }

/* ───────── SHARED COLUMN / RULES / SECTION LABELS ───────── */
.page-col { max-width: var(--col-max); margin: 0 auto; padding: 0 var(--col-pad); }
.page-col--engine-head { padding-top: 88px; padding-bottom: 44px; }

.section-rule {
  max-width: var(--col-max-wide); margin: 0 auto;
  padding: 0 var(--col-pad);
  border: none;
  border-top: 1px solid var(--line-soft);
  box-sizing: content-box;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--fg-mute);
  margin-bottom: 44px;
  display: flex; align-items: center; gap: 14px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: #333; }

/* Reusable serif italic accent — keep line-height inherited so long
   descenders (p/y/g in Cormorant) don't crash into siblings. */
.spec-em, .hero-em, .case-quote em, .results-h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.005em;
}

/* ───────── HERO ───────── */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Background layer stack — fixed pixel layout, lives behind .hero-wrap.
   Layer order: image → vignette → faint grid → vertical fade-to-black. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../../public/assets/img/hero-house.jpg');
  background-size: cover;
  background-position: center 35%;
  background-repeat: no-repeat;
  /* Heavy dim + slight cool/yellow tint pull so the image reads as backdrop, not content. */
  filter: brightness(0.42) contrast(1.05) saturate(0.7) sepia(0.18) hue-rotate(-8deg);
  opacity: 0.55;
  transform: scale(1.04);
}

/* Radial vignette pulls the focus toward the headline area, kills the corners. */
.hero-bg-vignette {
  position: absolute; inset: 0;
  background-image: radial-gradient(
    ellipse 80% 70% at 40% 40%,
    rgba(0,0,0,0.25) 0%,
    rgba(0,0,0,0.65) 55%,
    rgba(0,0,0,0.92) 100%
  );
}

/* Faint accent grid — keeps the brutalist system language on top of the photo. */
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right,  rgba(255,184,0,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,184,0,0.045) 1px, transparent 1px);
  background-size: 80px 80px;
  mix-blend-mode: screen;
  opacity: 0.7;
}

/* Vertical fade — top still shows the photo, bottom hard black so the next
   section starts on pure black with zero seam. Matches the reference. */
.hero-bg-fade {
  position: absolute; inset: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(0,0,0,0)   0%,
    rgba(0,0,0,0.1) 30%,
    rgba(0,0,0,0.55) 65%,
    rgba(0,0,0,0.92) 88%,
    #000           100%
  );
}

.hero-wrap {
  position: relative;
  min-height: 92vh; display: flex; flex-direction: column;
  justify-content: center; padding: 112px var(--col-pad) 96px;
  max-width: var(--col-max); margin: 0 auto;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 32px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent); display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-shadow);
}

.hero-h1 {
  font-family: var(--font-mono);
  font-size: clamp(34px, 5.6vw, 68px); font-weight: 500;
  line-height: 1.05; letter-spacing: -0.025em; color: var(--fg);
  margin-bottom: 32px;
}
.hero-em {
  font-size: 1.06em;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.55vw, 17.5px); line-height: 1.7;
  color: var(--fg-2); max-width: 600px; margin-bottom: 40px;
}
.hero-sub strong { color: #fff; font-weight: 500; }

.hero-cta-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 44px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px 26px; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease,
              background-color .15s, color .15s, border-color .15s;
}
.btn-primary {
  color: var(--accent-ink);
  background-color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-primary:hover {
  background-color: #fff; border-color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--accent);
}
.btn-secondary {
  color: var(--fg);
  background-color: transparent;
  border: 1px solid #333;
}
.btn-secondary .btn-wa-icon { display: inline-flex; color: var(--accent); }
.btn-secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: transparent;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--accent);
}

.hero-stamps {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 56px;
}
.hero-stamp {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
}
.hero-stamp-key {
  padding: 6px 10px;
  background-color: var(--line);
  color: var(--accent);
  font-weight: 700;
}
.hero-stamp-val {
  padding: 6px 12px;
  color: var(--fg-1);
}

.hero-metrics {
  display: flex; gap: 40px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 36px; border-top: 1px solid var(--line-2);
}
.metric { display: flex; flex-direction: column; gap: 4px; }
.metric-val {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--fg-1);
}
.metric--accent .metric-val { color: var(--accent); }
.metric-lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--fg-mute);
}

/* ───────── 02 — SPECIALIZATION (W PORTAL) ───────── */
.spec-section {
  padding: 96px var(--col-pad) 104px;
  max-width: var(--col-max-wide);
  margin: 0 auto;
}

.spec-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

/* LEFT column — copy + stats */
.spec-text { max-width: 540px; }

.spec-h2 {
  font-family: var(--font-mono);
  font-size: clamp(30px, 4.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 26px;
}
.spec-h2 .spec-em {
  font-size: 1.06em;
}
.spec-lede {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 20px;
}
.spec-lede strong {
  color: #fff;
  font-weight: 500;
}
.spec-callout {
  padding: 14px 0 14px 16px;
  margin-bottom: 36px;
  border-left: 2px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  letter-spacing: 0.005em;
  color: var(--fg);
}
.spec-callout-cta {
  display: inline-block;
  margin-top: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  padding-bottom: 1px;
  transition: color .15s ease, border-color .15s ease;
}
.spec-callout-cta:hover,
.spec-callout-cta:focus-visible {
  color: #fff;
  border-bottom-color: #fff;
}

.spec-stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
}
.spec-stat {
  background-color: var(--bg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.spec-stat-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}
.spec-stat-val .suffix {
  font-size: 16px;
  color: var(--fg-mute);
  font-weight: 500;
}
.spec-stat-lbl {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  line-height: 1.4;
}

/* RIGHT column — W Mark portal */
.spec-portal {
  position: relative;
  background-color: #050505;
  border: 1px solid var(--line-2);
  padding: 38px 36px 32px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  transition: border-color .3s ease, background-color .3s ease;
}
.spec-portal:hover { border-color: var(--accent); }

/* Giant W logo plate */
.spec-portal-mark {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}
.spec-w-logo {
  width: 78%;
  max-width: 360px;
  height: auto;
  display: block;
  fill: var(--fg);
  opacity: 0.92;
  transition: fill .35s ease, opacity .35s ease,
              transform .5s cubic-bezier(0.16, 1, 0.3, 1),
              filter .35s ease;
  filter: drop-shadow(0 0 0 rgba(255, 184, 0, 0));
}
.spec-portal:hover .spec-w-logo {
  fill: var(--accent);
  opacity: 1;
  transform: scale(1.04);
  filter:
    drop-shadow(0 0 18px rgba(255, 184, 0, 0.55))
    drop-shadow(0 0 38px rgba(255, 184, 0, 0.25));
}
.spec-portal-corner {
  position: absolute;
  width: 22px; height: 22px;
  pointer-events: none;
}
.spec-portal-corner--tl { top: -1px; left: -1px;  border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.spec-portal-corner--tr { top: -1px; right: -1px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.spec-portal-corner--bl { bottom: -1px; left: -1px;  border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.spec-portal-corner--br { bottom: -1px; right: -1px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

.spec-portal-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}
.spec-portal-head-key strong {
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
}
.spec-portal-head-val { color: var(--accent); }

.spec-portal-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.spec-portal-tag {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.spec-portal-bullet {
  width: 7px; height: 7px;
  background-color: var(--accent);
  display: inline-block;
}

/* ───────── 03 — FLOW / EXECUTION ───────── */
.flow-section-outer {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--col-pad) 104px;
}
.flow-box {
  border: 1px solid var(--line-2);
  background-color: var(--bg-1);
  padding: 52px 44px 40px;
  position: relative;
  overflow: hidden;
}
.flow-box::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 36px; height: 36px;
  border-top: 1px solid var(--accent); border-left: 1px solid var(--accent);
}
.flow-box::after {
  content: ''; position: absolute; bottom: 0; right: 0;
  width: 36px; height: 36px;
  border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent);
}

.flow-track { display: flex; align-items: center; margin-bottom: 48px; }
.flow-node { flex: 1; }
.flow-node-box {
  border: 1px solid #1c1c1c;
  background-color: var(--bg);
  padding: 22px 18px;
  transition: border-color .2s;
}
.flow-node-box:hover { border-color: #2a2a2a; }
.flow-node-box.active {
  border-color: var(--accent);
  background-color: #0c0900;
  box-shadow: inset 0 0 0 1px rgba(255,184,0,0.08);
}

.flow-time {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 10px;
}
.flow-node-box.active .flow-time { color: var(--accent); }
.flow-title {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em;
  color: var(--fg-2); line-height: 1.35;
}
.flow-node-box.active .flow-title { color: #fff; }
.flow-sub {
  font-family: var(--font-mono);
  font-size: 10.5px; color: var(--fg-mute); margin-top: 6px; letter-spacing: 0.04em;
}

.flow-conn { width: 56px; flex-shrink: 0; position: relative; display: flex; align-items: center; }
.conn-line { width: 100%; height: 1px; background: #1e1e1e; }
.conn-arr {
  font-size: 14px; color: var(--fg-dim);
  position: absolute; right: -2px; top: 50%; transform: translateY(-55%);
}
.conn-delta {
  position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-mute); white-space: nowrap;
}

.flow-tagline {
  border-top: 1px solid var(--line-soft); padding-top: 26px;
  font-size: 13.5px; line-height: 1.65; color: var(--fg-mute);
  display: flex; align-items: flex-start; gap: 13px;
}
.flow-tagline::before {
  content: '//';
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent); font-weight: 700;
  flex-shrink: 0; margin-top: 2px;
}

/* ───────── 04 — RESULTS / CASE FILES CAROUSEL ───────── */
.results-section { padding: 88px var(--col-pad) 48px; max-width: var(--col-max); margin: 0 auto; }
.results-h2 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 600;
  letter-spacing: -0.025em; color: var(--fg);
  margin-bottom: 18px; line-height: 1.15;
}
.results-h2 em {
  font-size: 1.06em;
}
.results-intro {
  font-family: var(--font-body);
  font-size: 14.5px; line-height: 1.7; color: var(--fg-2);
  max-width: 560px; margin-bottom: 0;
}

/* Carousel container — full bleed, fade edges */
.results-marquee {
  overflow: hidden;
  position: relative;
  padding: 32px 0 56px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 80px, black calc(100% - 80px), transparent 100%);
}
.results-track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.results-marquee:hover .results-track,
.results-marquee:focus-within .results-track {
  animation-play-state: paused;
}
/* Seamless loop: each card carries its own right-margin (instead of `gap`),
   so the duplicated set tiles perfectly at -50%. */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.case-card {
  background-color: var(--bg);
  border: 1px solid var(--line-2);
  padding: 30px 28px 26px;
  display: flex; flex-direction: column;
  flex: 0 0 360px;
  width: 360px;
  min-height: 360px;
  margin-right: 24px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}
.case-card:hover { border-color: var(--accent); }

.case-watermark {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: right 20px bottom 20px;
  background-size: 150px auto;
  opacity: 0.07;
  pointer-events: none;
  filter: grayscale(1) contrast(1.1);
  z-index: 0;
}
.case-card > *:not(.case-watermark) { position: relative; z-index: 1; }

.case-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
}
/* For PNGs with white/light backgrounds: lighten them onto the dark card. */
.case-logo--blend,
.case-watermark--blend {
  mix-blend-mode: screen;
}
.case-footer-text { display: flex; flex-direction: column; min-width: 0; }

.case-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 20px;
  gap: 12px;
}
.case-file {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.case-vertical {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-mute);
}

.case-quote {
  font-family: var(--font-body);
  font-size: 14px; line-height: 1.6; color: var(--fg-2);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.case-footer { margin-top: auto; padding-top: 16px; }
.case-name {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: var(--fg-1); text-transform: uppercase;
}
.case-role {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.08em;
  color: var(--fg-mute); text-transform: uppercase;
  margin-top: 4px;
}

.case-metric {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 4px;
}
.case-metric-val {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--accent);
}
.case-metric-lbl {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--fg-mute);
}

.results-footnote {
  margin: 0 auto;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--fg-mute); line-height: 1.7;
  padding: 24px 0 80px; border-top: 1px solid var(--line-soft);
  display: flex; gap: 13px;
}
.results-footnote::before {
  content: '*';
  color: var(--accent); font-weight: 700;
  flex-shrink: 0;
}

/* ───────── 05 — DIRECT CONTACT FORM ───────── */
.contact-section {
  max-width: var(--col-max-wide);
  margin: 0 auto;
  padding: 88px var(--col-pad) 104px;
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}
.contact-text {
  position: sticky;
  top: 88px;
  align-self: start;
}
.contact-h2 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--fg);
  margin-bottom: 28px;
}
.contact-h2 .spec-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}
.contact-lede {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg-2);
  max-width: 460px;
  margin-bottom: 28px;
}
.contact-callout {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.65;
  color: var(--fg-mute);
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 16px;
  margin-bottom: 36px;
}
.contact-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
  max-width: 360px;
}
.contact-meta-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background-color: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-meta-key { color: var(--fg-dim); }
.contact-meta-val { color: var(--fg-1); }

/* Form container */
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  padding: 36px 32px 32px;
  background-color: var(--bg-1);
  border: 1px solid var(--line-2);
  transition: border-color .25s ease;
}
.contact-form:hover { border-color: var(--line); }

/* Honeypot — hidden from real users, visible to bots */
.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-field--full { grid-column: 1 / -1; }

.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  gap: 6px;
}
.contact-req {
  color: var(--accent);
  font-weight: 600;
}

.contact-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  color: var(--fg);
  background-color: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 0;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease;
  -webkit-appearance: none;
  appearance: none;
}
.contact-input::placeholder {
  color: var(--fg-dim);
  opacity: 1;
}
.contact-input:hover {
  border-color: var(--fg-mute);
}
.contact-input:focus {
  border-color: var(--accent);
  background-color: var(--bg-2);
  box-shadow: 0 0 0 1px var(--accent), 0 0 18px var(--accent-glow);
}
.contact-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #7f1d1d;
}

/* Select with custom chevron */
.contact-select-wrap {
  position: relative;
  display: block;
}
.contact-select {
  padding-right: 36px;
  cursor: pointer;
}
.contact-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-mute);
  transition: color .18s ease;
}
.contact-select-wrap:hover .contact-select-arrow,
.contact-select:focus + .contact-select-arrow {
  color: var(--accent);
}
.contact-select option {
  background-color: var(--bg);
  color: var(--fg);
}

/* Textarea */
.contact-textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}

/* Submit + disclaimer span full width */
.contact-submit {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
}
.contact-disclaimer {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  line-height: 1.55;
  margin-top: -4px;
}

/* ───────── LEGAL PAGES (terms.html) ───────── */
.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px var(--col-pad) 88px;
}
.legal-head {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 36px;
  margin-bottom: 48px;
}
.legal-head .section-label { margin-bottom: 28px; }
.legal-h1 {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--fg);
  margin-bottom: 24px;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legal-meta-key { color: var(--fg-dim); }
.legal-meta-val { color: var(--fg-1); }
.legal-meta-sep { color: var(--line); margin: 0 4px; }

.legal-section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-h2 {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.legal-h2-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
  flex-shrink: 0;
}

.legal-section p {
  font-size: 15px;
  line-height: 1.78;
  color: var(--fg-2);
  margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section p strong {
  color: var(--fg);
  font-weight: 600;
}

.legal-list {
  list-style: none;
  margin: 8px 0 14px;
  padding: 0;
}
.legal-list li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg-2);
  padding: 8px 0 8px 22px;
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}
.legal-list li:last-child { border-bottom: none; }
.legal-list li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--accent);
  font-weight: 700;
}

.legal-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .18s ease, color .18s ease;
}
.legal-link:hover {
  color: #fff;
  border-bottom-color: var(--accent);
}

.legal-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 8px !important;
}
.legal-contact-key {
  text-transform: uppercase;
  color: var(--fg-dim);
  min-width: 80px;
}

.legal-foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}
.legal-foot-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--fg-dim);
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 16px;
  margin-bottom: 20px !important;
}

.legal-page-footer {
  border-top: 1px solid var(--line-soft);
  padding: 28px var(--col-pad);
  max-width: var(--col-max-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ───────── FOOTER ───────── */
footer {
  border-top: 1px solid var(--line-soft); padding: 96px var(--col-pad) 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; z-index: 1;
}
.footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--fg-mute); margin-bottom: 28px;
}
.footer-h2 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.6vw, 48px); font-weight: 500;
  letter-spacing: -0.03em; color: var(--fg); line-height: 1.2;
  margin-bottom: 48px; max-width: 780px;
}
.footer-h2 em.spec-em {
  font-size: 1.0em;
}

.footer-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 64px;
}
.btn-footer {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-ink);
  background-color: var(--accent); border: 1px solid var(--accent);
  padding: 15px 30px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease,
              background-color .15s, color .15s, border-color .15s;
}
.btn-footer:hover {
  background-color: #fff; border-color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--accent);
}
.btn-footer--wa {
  background-color: transparent; color: var(--fg);
  border-color: #333;
}
.btn-footer--wa .btn-wa-icon {
  display: inline-flex; color: var(--accent);
}
.btn-footer--wa:hover {
  background-color: transparent; color: var(--accent);
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--accent);
}

/* Socials row */
.footer-socials-row {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-bottom: 64px; padding-top: 36px;
  border-top: 1px solid var(--line-soft);
  width: 100%; max-width: var(--col-max);
}
.footer-socials-label {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--fg-mute);
}
.footer-socials-handle {
  color: var(--accent); font-weight: 600;
  margin-left: 6px;
}
.footer-socials {
  list-style: none;
  display: flex; gap: 1px;
  background-color: var(--line);
  border: 1px solid var(--line);
}
.footer-social {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--bg);
  color: var(--fg-mute);
  text-decoration: none;
  transition: color .15s, background-color .15s, transform .15s;
}
.footer-social:hover {
  color: var(--accent);
  background-color: var(--bg-2);
  transform: translateY(-1px);
}
.footer-social svg { display: block; }

.footer-legal {
  width: 100%;
  max-width: var(--col-max);
  display: flex;
  justify-content: center;
  padding-bottom: 18px;
}
.footer-legal-link {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--line);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.footer-legal-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background-color: var(--bg-2);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft); padding-top: 28px; width: 100%;
  max-width: var(--col-max); display: flex; align-items: center; justify-content: space-between;
}

.contact-disclaimer-link {
  color: var(--fg-mute);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color .18s ease, text-decoration-color .18s ease;
}
.contact-disclaimer-link:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-mute);
}
.footer-mark { display: flex; align-items: center; gap: 7px; }
.footer-mark-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 10px; height: 10px;
}
.footer-mark-grid span { display: block; background: #555; }
.footer-mark-grid span:nth-child(1) { background: var(--accent); }
.footer-mark-text {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-mute);
}

/* ───────── FLOATING WHATSAPP CTA ───────── */
.fab-whatsapp {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background-color: var(--accent);
  color: var(--accent-ink);
  border: 1px solid #000;
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 0 rgba(0,0,0,0.6), 4px 4px 0 1px var(--accent);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color .15s, color .15s;
}
.fab-whatsapp.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fab-whatsapp:hover { background-color: #fff; }
.fab-whatsapp:focus-visible { outline-color: #fff; outline-width: 2px; }
.fab-whatsapp-icon { display: inline-flex; }
.fab-whatsapp-icon svg { display: block; }

/* ─────────────────────────────────────────────────────────────
   MOTION — 3D ENTRY ANIMATIONS
   ───────────────────────────────────────────────────────────── */
[data-motion] {
  opacity: 0;
  transform: perspective(900px) rotateX(-10deg) translateY(28px) translateZ(-30px);
  transform-origin: center 75%;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
  backface-visibility: hidden;
}
[data-motion="reveal-block"] {
  transform: perspective(1100px) rotateY(-10deg) translateX(-12px) translateY(20px) translateZ(-40px);
}
[data-motion].is-inview,
.motion-ready [data-motion] {
  opacity: 1;
  transform: perspective(900px) rotateX(0) rotateY(0) translate3d(0, 0, 0);
}
html.no-js [data-motion] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-motion] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .results-track { animation: none; }
}

/* ─────────────────────────────────────────────────────────────
   CURSOR GLOW — yellow radial-gradient follows the pointer
   Applied via .glow-target class. The element's --gx/--gy
   variables are updated by main.js on pointermove.
   ───────────────────────────────────────────────────────────── */
.glow-target {
  background-image: radial-gradient(
    180px circle at var(--gx, -200px) var(--gy, -200px),
    var(--accent-glow),
    rgba(255, 184, 0, 0.04) 35%,
    transparent 70%
  );
  background-repeat: no-repeat;
  transition: background-image .25s ease;
}

/* Button & FAB glow variant — subtler, brighter */
.btn-primary.glow-target,
.btn-secondary.glow-target,
.btn-nav.glow-target,
.btn-footer.glow-target,
.fab-whatsapp.glow-target,
.footer-social.glow-target {
  background-image: radial-gradient(
    100px circle at var(--gx, -200px) var(--gy, -200px),
    rgba(255, 255, 255, 0.22),
    transparent 70%
  );
}
/* For ghost / dark buttons keep the yellow tint instead */
.btn-secondary.glow-target,
.btn-footer--wa.glow-target,
.btn-nav.glow-target,
.footer-social.glow-target {
  background-image: radial-gradient(
    120px circle at var(--gx, -200px) var(--gy, -200px),
    rgba(255, 184, 0, 0.18),
    transparent 70%
  );
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1080px) {
  .spec-grid { grid-template-columns: 1fr; gap: 48px; }
  .spec-text { max-width: none; }
  .spec-portal { min-height: 480px; }

  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-text { position: static; }
}

@media (max-width: 900px) {
  .spec-stats { grid-template-columns: 1fr 1fr; }
  .case-card { flex-basis: 320px; width: 320px; }
}

@media (max-width: 640px) {
  .spec-section { padding: 64px 22px 80px; }
  .spec-portal { padding: 28px 22px 26px; min-height: 0; }
  .spec-portal-mark { min-height: 220px; }
  .spec-w-logo { width: 60%; }
  .spec-portal-foot { flex-direction: column; gap: 8px; align-items: flex-start; }
  .spec-portal-head { flex-direction: column; gap: 6px; align-items: flex-start; }
  .spec-stats { grid-template-columns: 1fr 1fr; }
  .spec-stat-val { font-size: 20px; }

  .flow-track { flex-direction: column; }
  .flow-conn {
    width: auto; height: 40px;
    flex-direction: column; justify-content: center;
  }
  .conn-line { width: 1px; height: 100%; }
  .conn-arr { right: auto; bottom: -6px; top: auto; transform: rotate(90deg); left: 50%; }
  .conn-delta { top: auto; left: auto; transform: none; position: static; font-size: 8.5px; }

  .results-section { padding: 64px 22px 36px; }
  .case-card { flex-basis: 280px; width: 280px; padding: 24px 22px 22px; }
  .case-metric-val { font-size: 22px; }

  .hero-metrics { gap: 24px; }
  .hero-cta-row { width: 100%; }
  .btn-primary, .btn-secondary { justify-content: center; flex: 1 1 auto; }

  .legal-doc { padding: 64px 22px 64px; }
  .legal-section { padding: 28px 0; }
  .legal-h2 { font-size: 14px; gap: 10px; }
  .legal-contact { flex-direction: column; align-items: flex-start; gap: 4px; }
  .legal-contact-key { min-width: 0; }
  .legal-page-footer { flex-direction: column; gap: 12px; text-align: center; }

  .contact-section { padding: 64px 22px 80px; }
  .contact-form { grid-template-columns: 1fr; padding: 28px 22px 24px; gap: 16px; }
  .contact-callout { font-size: 11px; }
  .contact-meta { max-width: none; }

  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-cta-row { flex-direction: column; width: 100%; align-items: stretch; }
  .btn-footer { justify-content: center; }
  .hero-logo-wrapper svg { height: 56px; }
  .hero-logo-wrapper { margin-bottom: 36px; }

  .fab-whatsapp {
    right: 14px; bottom: 14px;
    padding: 12px 14px;
    font-size: 10.5px;
  }
  .fab-whatsapp-label { display: none; }
  .fab-whatsapp { gap: 0; }
}
