/* ==========================================================================
   STRAIGHT FLUSH PLUMBING & LEAK DETECTION — Design System
   Signature: "The Tell" — an acoustic sonar sweep across a house cross-section
   that reveals a hidden leak, echoing the brand's diagnose-first philosophy
   and its playing-card identity (every card face-up before the bet is made).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  /* ---- Color tokens ---- */
  --ink:        #0E1B2E;   /* primary dark — hero, footer, deep panels */
  --ink-2:      #16283F;   /* elevated dark panel */
  --ink-3:      #223A56;   /* dark hairlines / borders on ink */
  --foam:       #F7F5F0;   /* primary light background */
  --sand:       #ECE4D3;   /* warm secondary background band */
  --paper:      #FFFFFF;   /* card surfaces */
  --straight:   #A5333B;   /* card-red — primary accent / CTA */
  --straight-d: #832A30;   /* card-red hover */
  --flush:      #1D4C87;   /* card-blue — secondary accent, links */
  --teal:       #2C7A72;   /* detection/water accent — success, diagrams */
  --ink-text:   #1B2534;   /* body text on light */
  --muted:      #5B6B82;   /* secondary text on light */
  --muted-on-ink: #93A3BC; /* secondary text on dark */
  --line:       #DCD4C0;   /* hairline on light */
  --line-ink:   #2A3F5C;   /* hairline on dark */

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 20px 50px -20px rgba(14,27,46,0.35);
  --shadow-sm: 0 8px 24px -12px rgba(14,27,46,0.25);

  --wrap: 1180px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--foam);
  color:var(--ink-text);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-wrap:anywhere;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; overflow-wrap:anywhere; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:'Fraunces',Georgia,serif; margin:0; font-weight:600; line-height:1.08; letter-spacing:-0.01em; }
p{ margin:0; }
.mono{ font-family:'IBM Plex Mono',monospace; letter-spacing:0.02em; }

:focus-visible{ outline:3px solid var(--teal); outline-offset:3px; border-radius:4px; }

.wrap{ max-width:var(--wrap); margin:0 auto; padding:0 28px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; scroll-behavior:auto !important; }
}

/* ---------------------------------- NAV ---------------------------------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(14,27,46,0.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line-ink);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:14px 28px; max-width:var(--wrap); margin:0 auto; }
.nav-brand{ display:flex; align-items:center; gap:10px; }
.nav-brand img{ height:40px; width:auto; border-radius:6px; background:#fff; padding:3px 6px; }
.nav-brand-text{ color:var(--foam); font-family:'Fraunces',serif; font-size:1.05rem; font-weight:600; line-height:1.15; }
.nav-brand-text span{ display:block; font-family:'IBM Plex Mono',monospace; font-size:0.62rem; letter-spacing:0.14em; color:var(--muted-on-ink); font-weight:400; text-transform:uppercase; margin-top:2px;}
.nav-links{ display:flex; gap:28px; align-items:center; }
.nav-links a{ color:var(--muted-on-ink); font-size:0.92rem; font-weight:500; transition:color .18s; }
.nav-links a:hover{ color:var(--foam); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-phone{ color:var(--foam); font-weight:600; font-size:0.95rem; }
.nav-phone strong{ color:var(--straight); }
.nav-toggle{ display:none; background:none; border:0; color:var(--foam); font-size:1.6rem; cursor:pointer; }

@media (max-width: 880px){
  .nav-phone{ display:none; }
  .nav-cta{ gap:8px; }
  .nav-cta .btn-sm{ padding:9px 14px; font-size:0.82rem; }
  .nav-links{
    position:absolute; top:100%; left:0; right:0; flex-direction:column; align-items:flex-start;
    background:var(--ink); padding:10px 28px 22px; gap:16px; border-bottom:1px solid var(--line-ink);
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-toggle{ display:block; }
}

/* --------------------------------- BUTTONS -------------------------------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:999px; font-weight:600; font-size:0.95rem;
  border:1px solid transparent; cursor:pointer; transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{ background:var(--straight); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--straight-d); }
.btn-ghost{ background:transparent; color:var(--foam); border-color:var(--line-ink); }
.btn-ghost:hover{ border-color:var(--foam); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-outline:hover{ background:var(--ink); color:#fff; }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:0.85rem; }

/* --------------------------------- SECTIONS ------------------------------- */
section{ padding:96px 0; }
@media (max-width:720px){ section{ padding:64px 0; } .btn{ white-space:normal; text-align:center; max-width:100%; } }
.section-sand{ background:var(--sand); }
.section-ink{ background:var(--ink); color:var(--foam); }
.section-ink h2, .section-ink h3{ color:var(--foam); }
.section-ink .muted{ color:var(--muted-on-ink); }
.muted{ color:var(--muted); }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:0.72rem; letter-spacing:0.16em; text-transform:uppercase;
  color:var(--straight); font-weight:500; margin-bottom:18px;
}
.eyebrow::before{ content:''; width:22px; height:1px; background:var(--straight); }
.section-ink .eyebrow{ color:#E3949A; }
.section-ink .eyebrow::before{ background:#E3949A; }

.section-head{ max-width:680px; margin-bottom:52px; }
.section-head h2{ font-size:clamp(1.8rem,3.2vw,2.6rem); margin-bottom:16px; }
.section-head p{ font-size:1.08rem; color:var(--muted); }
.section-ink .section-head p{ color:var(--muted-on-ink); }

/* ---------------------------------- HERO ---------------------------------- */
.hero{
  position:relative; background:var(--ink); color:var(--foam); overflow:hidden;
  padding:76px 0 0;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center; }
.hero-grid > *{ min-width:0; }
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } }
.hero-eyebrow{ display:flex; align-items:center; gap:10px; font-family:'IBM Plex Mono',monospace; font-size:0.74rem; letter-spacing:0.16em; text-transform:uppercase; color:#E3949A; margin-bottom:22px; }
.hero-eyebrow .dot{ width:8px; height:8px; border-radius:50%; background:var(--teal); box-shadow:0 0 0 4px rgba(44,122,114,0.25); animation:pulse 2.4s infinite; }
@keyframes pulse{ 0%,100%{ box-shadow:0 0 0 4px rgba(44,122,114,0.25);} 50%{ box-shadow:0 0 0 8px rgba(44,122,114,0.1);} }
.hero h1{ font-size:clamp(2.3rem,5vw,3.6rem); max-width:16ch; }
.hero h1 em{ font-style:normal; color:var(--straight); }
.hero-sub{ margin-top:22px; font-size:1.15rem; color:var(--muted-on-ink); max-width:46ch; }
.hero-ctas{ display:flex; gap:16px; margin-top:34px; flex-wrap:wrap; }
.hero-trust{ display:flex; gap:28px; margin-top:52px; flex-wrap:wrap; }
.hero-trust-item{ }
.hero-trust-item strong{ display:block; font-family:'Fraunces',serif; font-size:1.5rem; color:#fff; }
.hero-trust-item span{ font-size:0.8rem; color:var(--muted-on-ink); }

/* ---- Signature element: The Tell (sonar sweep house diagram) ---- */
.tell{ position:relative; aspect-ratio:1/1.05; max-width:480px; margin:0 auto; }
.tell svg{ width:100%; height:100%; overflow:visible; }
.tell-ring{ fill:none; stroke:var(--teal); stroke-width:1.4; opacity:0; transform-origin:center; }
.tell-ring.animate{ animation:sweep 3.6s ease-out infinite; }
.tell-ring.r2{ animation-delay:0.5s; }
.tell-ring.r3{ animation-delay:1s; }
@keyframes sweep{
  0%{ opacity:0.85; transform:scale(0.15); }
  75%{ opacity:0; }
  100%{ opacity:0; transform:scale(1.05); }
}
.tell-leak{ fill:var(--straight); opacity:0; }
.tell-leak.reveal{ animation:reveal-leak 3.6s ease-out infinite; }
@keyframes reveal-leak{
  0%,55%{ opacity:0; r:3; }
  70%{ opacity:1; r:7; }
  85%,100%{ opacity:1; r:4.5; }
}
.tell-house{ stroke:#3A5476; stroke-width:1.2; fill:none; }
.tell-device{ fill:var(--foam); }
.tell-caption{ margin-top:18px; text-align:center; font-family:'IBM Plex Mono',monospace; font-size:0.78rem; color:var(--muted-on-ink); letter-spacing:0.04em; }

/* --------------------------------- CHECKLIST ------------------------------ */
.checklist-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.checklist-grid > *{ min-width:0; }
@media (max-width:880px){ .checklist-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .checklist-grid{ grid-template-columns:1fr; } }
.check-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px 22px 22px 20px; display:flex; gap:14px; align-items:flex-start;
}
.check-card .mark{ flex:none; width:26px; height:26px; border-radius:50%; background:var(--sand); color:var(--straight); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.9rem; }
.check-card p{ font-size:0.98rem; min-width:0; }
.check-card strong{ display:block; margin-bottom:3px; font-family:'Fraunces',serif; font-weight:600; font-size:1.02rem; }

/* ----------------------------------- CARDS -------------------------------- */
.card-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.card-grid > *{ min-width:0; }
@media (max-width:980px){ .card-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .card-grid{ grid-template-columns:1fr; } }
.card-grid-2{ grid-template-columns:repeat(2,1fr) !important; }
@media (max-width:560px){ .card-grid-2{ grid-template-columns:1fr !important; } }
.card-grid-3{ grid-template-columns:repeat(3,1fr) !important; }
@media (max-width:880px){ .card-grid-3{ grid-template-columns:repeat(2,1fr) !important; } }
@media (max-width:560px){ .card-grid-3{ grid-template-columns:1fr !important; } }
.service-card{
  background:var(--paper); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:30px 26px; transition:transform .2s ease, box-shadow .2s ease; position:relative; overflow:hidden;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow); }
.service-card .icon{ width:46px; height:46px; border-radius:12px; background:var(--ink); color:var(--foam); display:flex; align-items:center; justify-content:center; margin-bottom:20px; }
.service-card h3{ font-size:1.15rem; margin-bottom:10px; }
.service-card p{ color:var(--muted); font-size:0.94rem; margin-bottom:16px; }
.service-card a{ font-family:'IBM Plex Mono',monospace; font-size:0.78rem; letter-spacing:0.04em; color:var(--flush); font-weight:500; }
.service-card a:hover{ color:var(--straight); }

/* --------------------------------- PROCESS -------------------------------- */
.process{ display:grid; grid-template-columns:repeat(5,1fr); gap:16px; counter-reset:step; }
.process > *{ min-width:0; }
@media (max-width:980px){ .process{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:560px){ .process{ grid-template-columns:1fr; } }
.process-3{ grid-template-columns:repeat(3,1fr); }
@media (max-width:880px){ .process-3{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .process-3{ grid-template-columns:1fr; } }
.process-step{ padding-top:20px; border-top:2px solid var(--line-ink); }
.process-step .num{ font-family:'IBM Plex Mono',monospace; font-size:0.85rem; color:var(--straight); display:block; margin-bottom:10px; }
.process-step h4{ color:var(--foam); font-size:1.02rem; margin-bottom:8px; }
.process-step p{ color:var(--muted-on-ink); font-size:0.9rem; }

/* --------------------------------- FOUNDER -------------------------------- */
.founder{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; align-items:center; }
.founder > *{ min-width:0; }
@media (max-width:880px){ .founder{ grid-template-columns:1fr; } }
.founder-photo{ position:relative; border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow); }
.founder-photo img{ width:100%; }
.founder-badge{
  position:absolute; bottom:18px; left:18px; background:rgba(14,27,46,0.88); backdrop-filter:blur(6px);
  color:#fff; padding:12px 18px; border-radius:12px; font-family:'IBM Plex Mono',monospace; font-size:0.72rem; letter-spacing:0.06em;
}
.founder-badge strong{ display:block; font-family:'Fraunces',serif; font-size:1rem; letter-spacing:0; margin-bottom:2px; }
.founder-quote{ font-family:'Fraunces',serif; font-size:1.5rem; font-weight:500; line-height:1.35; margin-bottom:24px; }
.founder-list{ display:flex; flex-direction:column; gap:14px; margin-top:28px; }
.founder-list li{ display:flex; gap:12px; align-items:flex-start; font-size:0.98rem; }
.founder-list li .tick{ flex:none; width:22px; height:22px; border-radius:50%; background:var(--teal); color:#fff; display:flex; align-items:center; justify-content:center; font-size:0.72rem; margin-top:2px; }

/* --------------------------------- TECH BAND ------------------------------ */
.tech-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line-ink); border:1px solid var(--line-ink); border-radius:var(--radius-lg); overflow:hidden; }
.tech-grid > *{ min-width:0; }
@media (max-width:880px){ .tech-grid{ grid-template-columns:1fr; } }
.tech-item{ background:var(--ink-2); padding:34px 30px; }
.tech-item .tag{ font-family:'IBM Plex Mono',monospace; font-size:0.7rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--teal); }
.tech-item h3{ color:#fff; font-size:1.2rem; margin:12px 0 10px; }
.tech-item p{ color:var(--muted-on-ink); font-size:0.92rem; }

/* -------------------------------- CITY CHIPS ------------------------------ */
.city-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.city-grid > *{ min-width:0; }
@media (max-width:880px){ .city-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .city-grid{ grid-template-columns:repeat(2,1fr); } }
.city-chip{
  background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:16px 18px;
  font-weight:600; font-size:0.94rem; display:flex; align-items:center; justify-content:space-between; transition:all .16s;
}
.city-chip:hover{ border-color:var(--straight); color:var(--straight); transform:translateY(-2px); }
.city-chip span{ font-family:'IBM Plex Mono',monospace; font-size:0.7rem; color:var(--muted); }
.city-chip:hover span{ color:var(--straight); }

/* ---------------------------------- REVIEWS -------------------------------- */
.review-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.review-grid > *{ min-width:0; }
@media (max-width:880px){ .review-grid{ grid-template-columns:1fr; } }
.review-card{ background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:26px; }
.review-card .stars{ color:var(--straight); letter-spacing:2px; margin-bottom:14px; font-size:0.9rem; }
.review-card p{ font-size:0.98rem; color:var(--ink-text); margin-bottom:16px; }
.review-card footer{ font-family:'IBM Plex Mono',monospace; font-size:0.76rem; color:var(--muted); }
.review-note{
  border:1px dashed var(--line); border-radius:var(--radius); padding:26px; display:flex; flex-direction:column;
  align-items:flex-start; justify-content:center; gap:12px; background:var(--sand);
}
.review-note p{ font-size:0.92rem; color:var(--muted); }

/* ----------------------------------- FAQ ----------------------------------- */
.faq{ max-width:820px; }
.faq-item{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:0; padding:22px 0; cursor:pointer;
  display:flex; justify-content:space-between; align-items:center; gap:20px;
  font-family:'Fraunces',serif; font-size:1.08rem; font-weight:600; color:var(--ink-text);
}
.faq-q .plus{ flex:none; width:26px; height:26px; border-radius:50%; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:1rem; transition:transform .2s; color:var(--straight); }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .28s ease; }
.faq-a p{ padding-bottom:22px; color:var(--muted); font-size:0.98rem; max-width:70ch; }

/* --------------------------------- CTA BAND -------------------------------- */
.cta-band{ background:linear-gradient(135deg,var(--straight),#7E2933); color:#fff; border-radius:var(--radius-lg); padding:56px; display:flex; justify-content:space-between; align-items:center; gap:32px; flex-wrap:wrap; }
.cta-band h2{ color:#fff; font-size:clamp(1.5rem,2.6vw,2.1rem); max-width:16ch; }
.cta-band p{ color:rgba(255,255,255,0.85); margin-top:10px; }
.cta-band .btn-primary{ background:#fff; color:var(--straight); }
.cta-band .btn-primary:hover{ background:#f2e9ea; }

/* --------------------------------- QR BLOCK -------------------------------- */
.qr-block{ display:flex; align-items:center; gap:22px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.qr-block img{ width:96px; height:96px; border-radius:8px; flex:none; }
.qr-block > div{ min-width:0; }
.qr-block strong{ display:block; font-family:'Fraunces',serif; font-size:1.05rem; margin-bottom:4px; }
.qr-block p{ font-size:0.88rem; color:var(--muted); }

/* ---------------------------------- FOOTER --------------------------------- */
footer.site-footer{ background:var(--ink); color:var(--muted-on-ink); padding:64px 0 28px; border-top:1px solid var(--line-ink); }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
@media (max-width:880px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand img{ height:44px; background:#fff; border-radius:6px; padding:4px 8px; margin-bottom:14px; }
.footer-brand p{ font-size:0.9rem; max-width:32ch; }
.footer-col h4{ color:#fff; font-size:0.82rem; text-transform:uppercase; letter-spacing:0.08em; font-family:'IBM Plex Mono',monospace; font-weight:500; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:0.92rem; transition:color .15s; }
.footer-col a:hover{ color:#fff; }
.footer-bottom{ display:flex; justify-content:space-between; padding-top:24px; border-top:1px solid var(--line-ink); font-size:0.82rem; flex-wrap:wrap; gap:12px; }

/* --------------------------------- UTILITIES ------------------------------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:translateY(0); }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.two-col > *{ min-width:0; }
@media (max-width:880px){ .two-col{ grid-template-columns:1fr; } }
.tag-line{ display:inline-flex; align-items:center; gap:8px; padding:6px 14px; border-radius:999px; background:var(--sand); font-family:'IBM Plex Mono',monospace; font-size:0.72rem; letter-spacing:0.06em; color:var(--ink-text); }
.breadcrumbs{ font-family:'IBM Plex Mono',monospace; font-size:0.78rem; color:var(--muted-on-ink); display:flex; gap:8px; align-items:center; margin-bottom:20px; }
.breadcrumbs a{ color:var(--muted-on-ink); } .breadcrumbs a:hover{ color:#fff; }

/* ==========================================================================
   THE X-RAY DESCENT — cinematic scroll-driven intro (homepage only)
   Tile floor → X-ray pipe network → leak reveal → the "winning hand" seals
   it → pull back to logo + CTA. Scroll position drives a GSAP timeline;
   position:sticky keeps the stage pinned while the timeline scrubs.
   ========================================================================== */
.xray-experience{ position:relative; height:520vh; background:var(--ink); }
@media (max-width:880px){ .xray-experience{ height:380vh; } }

.xray-sticky{ position:sticky; top:0; height:100vh; overflow:hidden; }
.xray-stage{ position:relative; width:100%; height:100%; }

.xray-layer{
  position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; padding:0 24px; will-change:opacity, transform;
}

/* ---- Layer 1: tile floor / hero surface ---- */
.xray-tile{
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255,255,255,0.10), transparent 60%),
    repeating-linear-gradient(0deg, #1c2c42 0 2px, #16283f 2px 118px),
    repeating-linear-gradient(90deg, #1c2c42 0 2px, #16283f 2px 118px),
    linear-gradient(160deg, #223a56, #0e1b2e 70%);
}
.xray-droplet{
  width:26px; height:34px; border-radius:50% 50% 50% 0; transform:rotate(45deg);
  background:radial-gradient(circle at 35% 30%, #bfe3ff, var(--teal) 60%, #164944 100%);
  box-shadow:0 0 40px 10px rgba(44,122,114,0.55), 0 0 90px 30px rgba(44,122,114,0.25);
  margin-bottom:28px; animation:droplet-bob 3s ease-in-out infinite;
}
@keyframes droplet-bob{ 0%,100%{ transform:rotate(45deg) translateY(0); } 50%{ transform:rotate(45deg) translateY(-10px); } }
.xray-tile-caption{ color:var(--muted-on-ink); font-size:0.76rem; letter-spacing:0.16em; text-transform:uppercase; }
.xray-tile-caption::after{ content:''; display:block; width:1px; height:34px; background:var(--muted-on-ink); opacity:0.5; margin:14px auto 0; animation:scroll-hint 1.8s ease-in-out infinite; }
@keyframes scroll-hint{ 0%,100%{ opacity:0.15; transform:scaleY(0.6); } 50%{ opacity:0.7; transform:scaleY(1); } }

/* ---- Layer 2: X-ray pipe network ---- */
.xray-pipes svg{ width:min(1100px,92vw); height:auto; overflow:visible; }
.xray-pipe-line{ fill:none; stroke:#3A5476; stroke-width:2.2; filter:drop-shadow(0 0 6px rgba(58,84,118,0.6)); }
.xray-house-outline{ fill:none; stroke:#2A3F5C; stroke-width:1.2; opacity:0.6; }
.xray-leak-dot{ fill:var(--straight); filter:drop-shadow(0 0 16px rgba(165,51,59,0.9)); }
.xray-scan-caption{ position:absolute; bottom:8%; left:0; right:0; text-align:center; color:var(--muted-on-ink); font-family:'IBM Plex Mono',monospace; font-size:0.76rem; letter-spacing:0.1em; text-transform:uppercase; }

/* ---- Layer 3: the winning hand (card seal) ---- */
.xray-card svg{ width:170px; height:auto; filter:drop-shadow(0 20px 40px rgba(0,0,0,0.5)); }

/* ---- Layer 4: reveal ---- */
.xray-reveal .xray-logo{ height:56px; background:#fff; border-radius:10px; padding:8px 14px; margin-bottom:26px; box-shadow:0 10px 30px rgba(0,0,0,0.35); }
.xray-reveal h1{ font-size:clamp(2rem,4.6vw,3.4rem); max-width:18ch; color:#fff; }
.xray-reveal h1 em{ font-style:normal; color:var(--straight); display:block; }
.xray-reveal p{ margin-top:20px; color:var(--muted-on-ink); font-size:1.05rem; max-width:44ch; }
.xray-cta{ margin-top:32px; box-shadow:0 0 0 0 rgba(165,51,59,0.6); animation:cta-pulse 2.4s ease-in-out infinite; }
@keyframes cta-pulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(165,51,59,0.45);} 50%{ box-shadow:0 0 0 16px rgba(165,51,59,0);} }

.xray-progress{ position:absolute; left:0; right:0; bottom:0; height:3px; background:rgba(255,255,255,0.08); z-index:5; }
.xray-progress-bar{ height:100%; width:0%; background:var(--straight); }

@media (prefers-reduced-motion: reduce){
  .xray-experience{ height:auto; }
  .xray-sticky{ position:relative; height:auto; padding:90px 0; }
  .xray-layer{ position:relative; inset:auto; display:none; }
  .xray-layer.xray-reveal{ display:flex; }
}
