/* TONED: midnight navy, electric cyan, clean type */
:root {
  --bg: #0A1428;
  --bg-deep: #050B18;
  --panel: #111F3D;
  --panel-2: #0E1A33;
  --line: rgba(143, 163, 191, 0.16);
  --line-strong: rgba(143, 163, 191, 0.3);
  --text: #F2F6FC;
  --muted: #8FA3BF;
  --accent: #3DD6F5;
  --blue: #2F6BFF;
  --grad: linear-gradient(100deg, #3DD6F5 0%, #2F6BFF 100%);
  --radius: 18px;
  --wrap: 1180px;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  /* Lens position and size, driven by machine.js */
  --lx: -500px;
  --ly: -500px;
  --lr: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Machine + skin layers ---------- */
#machine { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; filter: blur(var(--lens-blur)); }
#skin {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(47, 107, 255, .18), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(61, 214, 245, .07), transparent 60%),
    var(--bg);
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), transparent 0, transparent 62%, #000 100%);
          mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), transparent 0, transparent 62%, #000 100%);
}
.nav, main, .footer { position: relative; z-index: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: var(--grad); color: #04101F; font: 600 .975rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 30px -10px rgba(61, 214, 245, .55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -12px rgba(61, 214, 245, .75); }
.btn--ghost { background: rgba(17, 31, 61, .6); color: var(--text); border-color: var(--line-strong); box-shadow: none; backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--sm { padding: .65em 1.15em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 10; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(10, 20, 40, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.brand__mark { width: 34px; height: 34px; color: var(--text); }
.brand:hover .brand__mark > circle:first-child { animation: spin 3s linear infinite; transform-origin: 24px 24px; }
.brand__word { font: 800 1.3rem/1 var(--font-head); letter-spacing: .14em; }
.nav__links { display: flex; align-items: center; gap: 1.75rem; }
.nav__links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s; }
.nav__toggle span + span { margin-top: 7px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - 72px); display: flex; flex-direction: column; justify-content: center; padding: 48px 0 40px; }
.eyebrow { display: inline-block; font: 600 .78rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.1rem; }
.hero__title { font-size: clamp(3.2rem, 11vw, 7.5rem); font-weight: 800; letter-spacing: -0.045em; line-height: .98; margin-bottom: .3em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.hero__stats div { background: rgba(10, 20, 40, .92); padding: 20px 22px; }
.hero__stats strong { display: block; font: 800 1.6rem/1.1 var(--font-head); }
.hero__stats span { font-size: .85rem; color: var(--muted); }

/* ---------- Homepage intro: entering the site through a laptop ----------
   The real hero sits on the laptop's screen, laid out at exactly the size of
   the browser window. main.js scrolls the laptop from the right-hand side up to
   scale 1, at which point the screen IS the window and you're "inside". */
.intro-stage {
  --sw: 100vw; --sh: 100vh;                       /* screen size = window size (set exactly by main.js) */
  --lw: calc(var(--sw) / .96);                    /* lid width: screen plus a 2% bezel each side */
  --lh: calc(var(--sh) + var(--lw) * .054);       /* lid height: screen plus top and bottom bezel */
  --lt: calc(var(--lw) * .008);
  --bd: calc(var(--lw) * .62);
  --bt: calc(var(--lw) * .02);
  --b: calc(var(--lw) * .02);
  --tx: 0px; --ty: 0px; --s: 1; --rx: 0deg; --ry: 0deg; --tilt: 0deg; --p: 1; --screen-o: 1;
  position: relative; height: 250vh; margin-top: -72px;  /* start under the sticky nav */
}
.intro-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 2000px; perspective-origin: 50% 50%; }
.intro-stage .laptop {
  position: absolute; left: calc(var(--b) * -1); top: calc(var(--b) * -1);
  width: var(--lw); height: var(--lh); will-change: auto;
  transform-origin: calc(var(--b) + var(--sw) / 2) calc(var(--b) + var(--sh) / 2);
  transform: translate(var(--tx), var(--ty)) scale(var(--s)) rotateX(var(--rx)) rotateY(var(--ry));
}
.intro-stage .intro-screen { position: relative; background: transparent; border-radius: calc(4px * (1 - var(--p))); }
.intro-screen::before {
  content: ""; position: absolute; inset: 0; opacity: var(--screen-o);
  background: radial-gradient(1000px 600px at 85% -10%, rgba(47, 107, 255, .18), transparent 60%), radial-gradient(800px 500px at -10% 30%, rgba(61, 214, 245, .07), transparent 60%), var(--bg);
}
.intro-screen > .hero { position: relative; height: 100%; min-height: 0; padding: 72px 0 0; }
.intro-stage .lid__front { background: none; }
/* the bezel fades out with the screen background once you're inside, so the page behind takes over */
.intro-stage .lid__front::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #161B26, #0B0F17); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); opacity: var(--screen-o); }
.intro-stage .laptop__screen { position: relative; z-index: 1; }
.intro-copy {
  position: absolute; z-index: 2; top: 50%; left: max(16px, calc((100% - var(--wrap)) / 2)); width: min(38%, 440px);
  transform: translateY(-50%); opacity: calc(1 - var(--p) * 3); pointer-events: none;
}
.intro-copy__title { font: 800 clamp(3rem, 7vw, 6rem)/.98 var(--font-head); letter-spacing: -0.045em; margin: 0 0 .4em; }
.intro-copy__cue { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .9rem; letter-spacing: .04em; }
.intro-copy__mouse { position: relative; width: 22px; height: 34px; border: 2px solid var(--line-strong); border-radius: 12px; flex: none; }
.intro-copy__mouse i { position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: scrollCue 1.6s ease-in-out infinite; }
@keyframes scrollCue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.stats-strip { position: relative; padding: 0 0 clamp(24px, 4vw, 48px); }
.stats-strip .hero__stats { margin-top: 0; }

/* Phones and reduced motion: just the hero, no laptop */
.intro-stage.is-flat { height: auto; margin-top: 0; }
.is-flat .intro-sticky { position: static; height: auto; overflow: visible; perspective: none; }
.is-flat .intro-copy { display: none; }
.intro-stage.is-flat .laptop { position: static; width: auto; height: auto; transform: none; }
.intro-stage.is-flat .laptop__screen { border-radius: 0; overflow: visible; }
.intro-stage.is-flat .intro-screen::before, .intro-stage.is-flat .lid__front::before { display: none; }
.is-flat .intro-screen > .hero { height: auto; min-height: calc(100svh - 72px); padding: 48px 0 40px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
section[id] { scroll-margin-top: 64px; }
.section--tight { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: linear-gradient(180deg, rgba(17, 31, 61, 0) 0%, rgba(17, 31, 61, .35) 20%, rgba(17, 31, 61, .35) 80%, rgba(17, 31, 61, 0) 100%); }
.section__head { max-width: 680px; margin-bottom: 48px; }
.note { margin-top: 28px; color: var(--muted); font-size: .95rem; }
.note a { color: var(--accent); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line); border-radius: 24px; padding: 32px;
  transition: transform .3s ease, border-color .3s ease;
}
.service:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.service--featured { border-color: rgba(61, 214, 245, .35); box-shadow: 0 30px 80px -40px rgba(61, 214, 245, .35); }
.service__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.service__tag { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .45em .9em; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }
.service__icon { width: 44px; height: 44px; color: var(--text); }
.service h3 { font-size: 1.6rem; }
.ticks { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: rgba(61, 214, 245, .14); }
.ticks li::after { content: ""; position: absolute; left: 5px; top: calc(.45em + 4px); width: 6px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.service__foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-bottom: 20px; }
.price { font: 800 2.2rem/1 var(--font-head); margin: 0; }
.price small { font: 500 .85rem var(--font-body); color: var(--muted); margin-right: 4px; }
.service__foot p { margin: 0; }

/* ---------- Before/after compare ---------- */
.compare { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-strong); aspect-ratio: 16 / 9; background: #fff; user-select: none; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.mock { position: absolute; inset: 0; display: flex; flex-direction: column; }
.mock--after { clip-path: inset(0 0 0 var(--pos)); }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #E8EBF0; font: 500 12px var(--font-body); color: #667; flex: none; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: #C8CDD6; }
.mock__bar span { margin-left: 10px; background: #fff; padding: 3px 12px; border-radius: 6px; }
.mock--after .mock__bar { background: #0D1830; color: #8FA3BF; }
.mock--after .mock__bar i { background: #22345A; }
.mock--after .mock__bar span { background: #14244A; }
/* the "before" site */
.old { flex: 1; background: #FFFFE0; color: #000; font-family: "Times New Roman", serif; overflow: hidden; }
.old__head { background: #0000AA; color: #FF0; font: bold clamp(16px, 2.6vw, 30px) "Comic Sans MS", cursive; text-align: center; padding: 2.2% 0; }
.old__nav { text-align: center; padding: 6px; background: #C0C0C0; font-size: clamp(10px, 1.3vw, 15px); color: #00E; }
.old__body { padding: 2% 4%; font-size: clamp(10px, 1.4vw, 16px); }
.old__marquee { color: red; font-weight: bold; text-align: center; margin-bottom: 1%; animation: blink 1.2s steps(2) infinite; }
.old__img { border: 2px dashed #999; color: #999; padding: 4% ; text-align: center; margin: 2% 0; width: 50%; }
.old__small { font-size: 80%; color: #666; }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--accent); transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 20px rgba(61, 214, 245, .8); }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--bg); border: 2px solid var(--accent); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.compare__handle span::before { left: 10px; transform: translateY(-50%) rotate(-45deg); }
.compare__handle span::after { right: 10px; transform: translateY(-50%) rotate(135deg); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare__label { position: absolute; bottom: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: .4em .8em; border-radius: 999px; background: rgba(5, 11, 24, .75); color: var(--text); pointer-events: none; }
.compare__label--l { left: 14px; }
.compare__label--r { right: 14px; }

/* ---------- "After" mock: a realistic local plumber's website ----------
   Sized in container units so it scales like a screenshot. Below 800px of
   container width it switches to the plumber's own mobile layout. */
.compare { container-type: inline-size; }
.pl {
  --pl-navy: #0B2545; --pl-blue: #0B4A8B; --pl-sky: #1A73E8; --pl-orange: #FF7A1A; --pl-ink: #4A5B70; --pl-line: #E2E9F1;
  flex: 1; overflow: hidden; background: #fff; color: var(--pl-navy);
  font-family: "Inter", system-ui, sans-serif; display: flex; flex-direction: column;
}
.pl b { font-weight: 700; }
.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding: .7cqw 3.2cqw; background: var(--pl-navy); color: #CFE0F3; font-size: 1.02cqw; }
.pl-top__phone { display: inline-flex; align-items: center; gap: .5cqw; color: #fff; font-weight: 600; }
.pl-top__phone svg { width: 1.1cqw; height: 1.1cqw; color: var(--pl-orange); }
.pl-nav { display: flex; align-items: center; gap: 2.6cqw; padding: 1.25cqw 3.2cqw; border-bottom: 1px solid var(--pl-line); }
.pl-logo { display: inline-flex; align-items: center; gap: .8cqw; margin-right: auto; }
.pl-logo svg { width: 3.1cqw; height: 3.1cqw; }
.pl-logo span { display: grid; line-height: 1.05; }
.pl-logo b { font: 800 1.75cqw/1 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.02em; color: var(--pl-navy); }
.pl-logo small { font-size: .82cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--pl-blue); font-weight: 600; margin-top: .25cqw; }
.pl-links { display: flex; gap: 2.2cqw; font-size: 1.15cqw; font-weight: 500; color: var(--pl-ink); }
.pl-btn { display: inline-flex; align-items: center; justify-content: center; border-radius: .7cqw; font-weight: 600; font-size: 1.15cqw; padding: .95cqw 1.6cqw; white-space: nowrap; }
.pl-btn--orange { background: var(--pl-orange); color: #fff; box-shadow: 0 .5cqw 1.4cqw -0.5cqw rgba(255, 122, 26, .7); }
.pl-btn--ghost { border: 1.5px solid #C5D3E3; color: var(--pl-navy); background: #fff; }
.pl-burger { display: none; }

.pl-hero {
  position: relative; isolation: isolate; /* water sits behind the copy */
  display: grid; grid-template-columns: 1fr 1.08fr; gap: 3cqw; align-items: center;
  padding: 2.6cqw 3.2cqw 2.4cqw;
  background: radial-gradient(60cqw 30cqw at 85% 0%, #E4F1FF 0%, transparent 70%), linear-gradient(180deg, #F5F9FD 0%, #fff 100%);
}
.pl-visual { position: relative; border-radius: 1.6cqw; overflow: hidden; background: linear-gradient(160deg, #EAF4FF, #D7E8F8); box-shadow: 0 1.5cqw 3cqw -1.5cqw rgba(11, 37, 69, .35); }
.pl-boiler { width: 100%; height: auto; display: block; }
.pl-badge { position: absolute; display: flex; align-items: center; gap: .7cqw; background: #fff; border-radius: 1cqw; padding: .8cqw 1.1cqw; box-shadow: 0 1cqw 2cqw -1cqw rgba(11, 37, 69, .45); font-size: .95cqw; color: var(--pl-ink); }
.pl-badge b { display: block; color: var(--pl-navy); font-size: 1.05cqw; }
.pl-badge small { display: block; }
.pl-badge--eta { left: 1.4cqw; bottom: 1.4cqw; }
.pl-badge__icon { display: grid; place-items: center; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: #2BB673; color: #fff; font-weight: 700; font-size: 1.1cqw; }
.pl-badge--safe { right: 1.4cqw; top: 1.4cqw; display: grid; gap: 0; background: #FFD400; color: #1A1A1A; text-align: center; padding: .7cqw 1cqw; }
.pl-badge--safe b { color: #1A1A1A; font-size: 1.1cqw; }
.pl-badge--safe small { font-size: .75cqw; }

.pl-eyebrow { display: inline-flex; align-items: center; gap: .7cqw; margin: 0 0 1.2cqw; padding: .45cqw 1cqw; border-radius: 99px; background: #E8F7EF; color: #17804F; font-size: 1cqw; font-weight: 600; }
.pl-live { width: .75cqw; height: .75cqw; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 0 rgba(43, 182, 115, .6); animation: plLive 1.8s infinite; }
.pl-title { margin: 0 0 1.3cqw; font: 800 4.5cqw/1.02 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing: -.035em; color: var(--pl-navy); }
.pl-blue { color: var(--pl-sky); }
.pl-sub { margin: 0 0 1.8cqw; font-size: 1.35cqw; line-height: 1.55; color: var(--pl-ink); max-width: 34em; }
.pl-ctas { display: flex; gap: 1cqw; margin-bottom: 1.6cqw; }
.pl-rating { display: flex; align-items: center; gap: .6cqw; font-size: 1.05cqw; color: var(--pl-ink); }
.pl-rating b { color: var(--pl-navy); }
.pl-g { display: grid; place-items: center; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #fff; border: 1px solid var(--pl-line); font-weight: 800; color: #4285F4; font-size: 1.05cqw; }
.pl-stars { color: #FBBC04; letter-spacing: .1em; }

.pl-trust { display: flex; justify-content: space-between; padding: 1.2cqw 3.2cqw; background: var(--pl-blue); color: #fff; font-size: 1.1cqw; font-weight: 600; }
.pl-trust span { display: inline-flex; align-items: center; gap: .6cqw; }
.pl-trust i { display: grid; place-items: center; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: rgba(255, 255, 255, .18); font-style: normal; font-size: .9cqw; }
.pl-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; padding: 2cqw 3.2cqw; background: #F5F9FD; }
.pl-card { display: grid; gap: .3cqw; padding: 1.4cqw; border-radius: 1.1cqw; background: #fff; border: 1px solid var(--pl-line); box-shadow: 0 .6cqw 1.6cqw -1cqw rgba(11, 37, 69, .3); }
.pl-card b { font-size: 1.2cqw; color: var(--pl-navy); }
.pl-card small { font-size: .95cqw; color: var(--pl-ink); }
.pl-ic { display: grid; place-items: center; width: 3cqw; height: 3cqw; border-radius: .8cqw; background: #E6F0FB; color: var(--pl-blue); margin-bottom: .5cqw; }
.pl-ic svg { width: 1.8cqw; height: 1.8cqw; }

/* ---------- The leak ----------
   Springs from the question mark in "trouble?" and falls behind the copy.
   Sized in em so it scales with the headline in both layouts. */
.pl-q { position: relative; }
.pl-leak { position: absolute; left: 62%; top: 78%; width: 0; height: 0; z-index: -1; pointer-events: none; }
.pl-leak i { position: absolute; display: block; }
.pl-burst { left: -.09em; top: -.06em; width: .18em; height: .12em; border-radius: 50%; background: radial-gradient(circle, rgba(120, 200, 255, .9), rgba(30, 136, 229, 0) 70%); animation: plBurst .5s ease-in-out infinite alternate; }
.pl-stream {
  left: -.03em; top: 0; width: .06em; height: 3.2em; border-radius: .05em;
  background: linear-gradient(180deg, rgba(64, 170, 245, .95) 0%, rgba(64, 170, 245, .75) 70%, rgba(64, 170, 245, .35) 100%);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 .35em, rgba(0, 0, 0, .55) .35em .5em);
          mask-image: repeating-linear-gradient(180deg, #000 0 .35em, rgba(0, 0, 0, .55) .35em .5em);
  -webkit-mask-size: 100% 1em; mask-size: 100% 1em;
  animation: plFlow .45s linear infinite, plWobble 1.3s ease-in-out infinite;
  transform-origin: top center;
}
.pl-drop {
  left: -.05em; top: 0; width: .1em; height: .14em;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 35%, #CFEBFF 0 18%, #3EA6F2 45%, #1D7FD1 100%);
  animation: plFall 1.1s cubic-bezier(.45, 0, 1, 1) infinite; opacity: 0;
}
.pl-drop:nth-of-type(4) { animation-delay: .27s; left: -.02em; }
.pl-drop:nth-of-type(5) { animation-delay: .55s; left: -.08em; }
.pl-drop:nth-of-type(6) { animation-delay: .82s; left: -.04em; }
.pl-spray { left: 0; top: -.02em; width: .06em; height: .06em; border-radius: 50%; background: #5DB8F5; opacity: 0; animation: plSprayR .9s ease-out infinite; }
.pl-spray:nth-of-type(8) { animation: plSprayL 1.1s ease-out .3s infinite; }
.pl-spray:nth-of-type(9) { animation: plSprayR2 1s ease-out .6s infinite; }
.pl-splash { left: -.55em; top: 3.15em; width: 1.1em; height: .16em; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(64, 170, 245, .55) 0%, rgba(64, 170, 245, .2) 55%, transparent 72%); }
.pl-ripple { left: -.35em; top: 3.17em; width: .7em; height: .12em; border-radius: 50%; border: .015em solid rgba(64, 170, 245, .7); opacity: 0; animation: plRipple 1.2s ease-out infinite; }
.pl-ripple:nth-of-type(12) { animation-delay: .6s; }

@keyframes plFlow { to { -webkit-mask-position: 0 1em; mask-position: 0 1em; } }
@keyframes plWobble { 0%, 100% { transform: skewX(0deg); } 50% { transform: skewX(-2.5deg); } }
@keyframes plFall { 0% { transform: translateY(0) scale(.6); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(3.1em) scale(1); opacity: 0; } }
@keyframes plBurst { from { transform: scale(.8); opacity: .6; } to { transform: scale(1.25); opacity: 1; } }
@keyframes plSprayR { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 45% { transform: translate(.22em, -.1em); } 100% { transform: translate(.36em, .55em); opacity: 0; } }
@keyframes plSprayL { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 45% { transform: translate(-.18em, -.08em); } 100% { transform: translate(-.3em, .6em); opacity: 0; } }
@keyframes plSprayR2 { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 1; } 40% { transform: translate(.12em, -.16em); } 100% { transform: translate(.2em, .5em); opacity: 0; } }
@keyframes plRipple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes plLive { 70% { box-shadow: 0 0 0 .6cqw rgba(43, 182, 115, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 182, 115, 0); } }

/* The plumber's own phone layout, used when the comparison is narrow */
@container (max-width: 800px) {
  .pl-top { justify-content: center; padding: 1.6cqw 4cqw; font-size: clamp(10px, 2.9cqw, 13px); }
  .pl-top__phone svg { width: 1.1em; height: 1.1em; }
  .pl-top__mid, .pl-top__right, .pl-links, .pl-nav__cta { display: none; }
  .pl-nav { padding: 3cqw 4.5cqw; }
  .pl-logo svg { width: clamp(26px, 8cqw, 36px); height: clamp(26px, 8cqw, 36px); }
  .pl-logo b { font-size: clamp(15px, 4.6cqw, 21px); }
  .pl-logo small { font-size: clamp(7px, 2.1cqw, 9.5px); }
  .pl-burger { display: grid; gap: 4px; width: 26px; }
  .pl-burger i { display: block; height: 2.5px; border-radius: 2px; background: var(--pl-navy); }
  .pl-hero { grid-template-columns: 1fr; gap: 5cqw; padding: 6cqw 4.5cqw 5cqw; }
  .pl-copy { order: -1; }
  .pl-eyebrow { font-size: clamp(9.5px, 2.8cqw, 13px); padding: .4em .9em; gap: .5em; margin-bottom: 3.5cqw; }
  .pl-live { width: .6em; height: .6em; }
  .pl-title { font-size: clamp(30px, 10.5cqw, 52px); margin-bottom: 3cqw; }
  .pl-sub { font-size: clamp(12px, 3.6cqw, 16px); margin-bottom: 4cqw; }
  .pl-ctas { flex-direction: column; gap: 2.4cqw; margin-bottom: 4cqw; }
  .pl-btn { font-size: clamp(12px, 3.7cqw, 16px); padding: .85em 1.2em; border-radius: 10px; }
  .pl-rating { font-size: clamp(11px, 3.2cqw, 14px); gap: .45em; }
  .pl-g { width: 1.6em; height: 1.6em; font-size: 1em; }
  .pl-visual { border-radius: 14px; }
  .pl-badge { font-size: clamp(9px, 2.7cqw, 12px); padding: .7em .9em; border-radius: 10px; gap: .6em; }
  .pl-badge b { font-size: 1.1em; }
  .pl-badge small { font-size: .9em; }
  .pl-badge__icon { width: 2em; height: 2em; font-size: 1em; }
  .pl-badge--eta { left: 3cqw; bottom: 3cqw; }
  .pl-badge--safe { right: 3cqw; top: 3cqw; }
  .pl-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5cqw; padding: 4cqw 4.5cqw; font-size: clamp(10px, 3cqw, 13px); }
  .pl-trust i { width: 1.5em; height: 1.5em; font-size: .8em; }
  .pl-services { grid-template-columns: 1fr 1fr; gap: 3cqw; padding: 4.5cqw; }
  .pl-card { padding: 3.5cqw; border-radius: 12px; }
  .pl-card b { font-size: clamp(11px, 3.3cqw, 15px); }
  .pl-card small { font-size: clamp(10px, 2.8cqw, 13px); }
  .pl-ic { width: 2.6em; height: 2.6em; font-size: clamp(11px, 3.3cqw, 15px); border-radius: 8px; }
  .pl-ic svg { width: 1.5em; height: 1.5em; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-leak i, .pl-live { animation: none !important; }
  .pl-drop, .pl-spray, .pl-ripple { display: none !important; }
}

/* ---------- 3D laptop (Work page) ----------
   Pure CSS 3D so the before/after slider on the screen stays a real, draggable
   page element. main.js drives the scroll animation through the custom
   properties on .laptop-stage. */
.laptop-stage {
  --lw: min(1180px, 94vw, calc((100vh - 110px) / 0.64));  /* lid width at full zoom */
  --lh: calc(var(--lw) * 0.64);
  --lt: calc(var(--lw) * 0.012);   /* lid thickness */
  --bd: calc(var(--lw) * 0.66);    /* base depth */
  --bt: calc(var(--lw) * 0.024);   /* base thickness */
  --s: .5; --rx: -18deg; --ry: 180deg; --tilt: 14deg; --ty: 0px; --f: 0;
  position: relative; height: 340vh;
}
.laptop-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.laptop-head { position: absolute; z-index: 3; left: 0; right: 0; top: 76px; text-align: center; padding: 0 16px; opacity: calc(1 - var(--f) * 1.6); pointer-events: none; }
.laptop-head h2 { margin-bottom: .3em; }
.laptop-head p { max-width: 560px; margin: 0 auto; }
.laptop-scene { position: relative; flex: 1; margin-top: 72px; display: grid; place-items: center; perspective: 2000px; perspective-origin: 50% 40%; }
.laptop {
  position: relative; width: var(--lw); height: var(--lh); transform-style: preserve-3d;
  transform: translateY(var(--ty)) scale(var(--s)) rotateX(var(--rx)) rotateY(var(--ry));
  will-change: transform;
}
.laptop__lid { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 100%; transform: rotateX(var(--tilt)); }
.lid__face { position: absolute; inset: 0; border-radius: calc(var(--lw) * .018) calc(var(--lw) * .018) calc(var(--lw) * .006) calc(var(--lw) * .006); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.lid__front {
  transform: translateZ(calc(var(--lt) / 2));
  background: linear-gradient(180deg, #161B26, #0B0F17);
  padding: calc(var(--lw) * .02) calc(var(--lw) * .02) calc(var(--lw) * .034);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.lid__cam { position: absolute; top: calc(var(--lw) * .008); left: 50%; width: calc(var(--lw) * .006); height: calc(var(--lw) * .006); border-radius: 50%; background: #1E2633; box-shadow: inset 0 0 0 1px #2A3445; transform: translateX(-50%); }
.laptop__screen { width: 100%; height: 100%; overflow: hidden; border-radius: 4px; background: #000; }
.laptop__screen .compare { aspect-ratio: auto; height: 100%; border: 0; border-radius: 0; box-shadow: none; }
.laptop-stage:not(.is-open) .laptop__screen .compare { pointer-events: none; }
.lid__back {
  transform: rotateY(180deg) translateZ(calc(var(--lt) / 2));
  background: radial-gradient(60% 60% at 50% 45%, #2A3550 0%, #1A2235 60%, #121826 100%);
  box-shadow: inset 0 0 0 1px rgba(143, 163, 191, .25);
  display: grid; place-items: center; color: var(--text);
}
.lid__back svg { width: 16%; filter: drop-shadow(0 0 calc(var(--lw) * .02) rgba(61, 214, 245, .55)); }
.lid__edge { position: absolute; background: linear-gradient(90deg, #3A4559, #556178 50%, #3A4559); }
.lid__edge--top { left: 0; top: 0; width: 100%; height: var(--lt); transform: translateY(-50%) rotateX(90deg); }
.lid__edge--left, .lid__edge--right { top: 0; width: var(--lt); height: 100%; background: linear-gradient(180deg, #4A5569, #2E3747); }
.lid__edge--left { left: 0; transform: translateX(-50%) rotateY(-90deg); }
.lid__edge--right { left: 100%; transform: translateX(-50%) rotateY(90deg); }
.laptop__base { position: absolute; left: 0; top: 100%; width: 100%; height: 0; transform-style: preserve-3d; transform: translateZ(calc(var(--lt) * -0.6)); }
.base__top {
  position: absolute; left: 0; top: 0; width: 100%; height: var(--bd); transform-origin: 50% 0; transform: rotateX(90deg);
  background: linear-gradient(180deg, #3B465A 0%, #2C3546 100%); border-radius: 0 0 calc(var(--lw) * .02) calc(var(--lw) * .02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.base__keys { position: absolute; inset: 0; width: 100%; height: 100%; }
.base__keyset rect { fill: #121722; stroke: rgba(255, 255, 255, .06); stroke-width: 1.5; }
.base__pad { fill: #333D50; stroke: rgba(255, 255, 255, .1); stroke-width: 2; }
.base__front { position: absolute; left: 0; top: 0; width: 100%; height: var(--bt); transform: translateZ(var(--bd)); background: linear-gradient(180deg, #4E5970, #2A3242); border-radius: 0 0 calc(var(--lw) * .02) calc(var(--lw) * .02); }
.base__front span { position: absolute; left: 50%; top: 0; width: 14%; height: 40%; transform: translateX(-50%); background: rgba(0, 0, 0, .35); border-radius: 0 0 8px 8px; }
.base__side { position: absolute; top: 0; width: var(--bd); height: var(--bt); transform-origin: 0 0; transform: rotateY(-90deg); background: #2A3242; }
.base__side--l { left: 0; }
.base__side--r { left: 100%; }
.laptop__shadow {
  position: absolute; left: 50%; bottom: 9%; width: calc(var(--lw) * var(--s) * 1.15); height: calc(var(--lw) * var(--s) * .16);
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); opacity: calc(1 - var(--f));
}
.laptop-hint { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.laptop-hint__open { display: none; color: var(--accent); }
.laptop-stage.is-open .laptop-hint__closed { display: none; }
.laptop-stage.is-open .laptop-hint__open { display: inline; }

/* Phones and reduced motion: a flat, regular before/after instead of the 3D scene */
.laptop-stage.is-flat { height: auto; padding: clamp(48px, 8vw, 96px) 0 0; }
.is-flat .laptop-sticky { position: static; height: auto; overflow: visible; }
.is-flat .laptop-head { position: static; opacity: 1; text-align: left; padding: 0; width: min(100% - 32px, var(--wrap)); margin: 0 auto 32px; }
.is-flat .laptop-head p { margin: 0; }
.is-flat .laptop-scene { display: block; place-items: normal; margin: 0 auto; width: min(100% - 32px, var(--wrap)); perspective: none; }
.is-flat .laptop, .is-flat .laptop__lid, .is-flat .lid__front { position: static; width: auto; height: auto; transform: none; padding: 0; background: none; box-shadow: none; }
.is-flat .lid__back, .is-flat .lid__edge, .is-flat .laptop__base, .is-flat .laptop__shadow, .is-flat .lid__cam, .is-flat .laptop-hint { display: none; }
.is-flat .laptop__screen { height: auto; background: none; border-radius: 20px; }
.is-flat .laptop__screen .compare { aspect-ratio: 4 / 3.4; height: auto; border: 1px solid var(--line-strong); border-radius: 20px; pointer-events: auto; }
@media (max-width: 560px) { .is-flat .laptop__screen .compare { aspect-ratio: 3 / 3.6; } }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: rgba(14, 26, 51, .92); border: 1px solid var(--line); }
.step__n { display: inline-block; font: 700 .85rem var(--font-head); color: var(--accent); margin-bottom: 18px; padding: .3em .7em; border: 1px solid rgba(61, 214, 245, .35); border-radius: 8px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__item { padding: 26px 24px; border-top: 2px solid var(--accent); background: rgba(14, 26, 51, .92); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Mascot: a little engineer tinkering inside the "Performance" card ---------- */
.why__item--mascot { position: relative; padding-bottom: 104px; overflow: hidden; }
.mascot { position: absolute; right: 10px; bottom: 6px; width: 132px; height: auto; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mascot__solid { fill: var(--panel-2); }
.mascot__ground { stroke: var(--line-strong); stroke-dasharray: 2 4; }
.mascot__wire { stroke: var(--blue); }
.mascot__hat { stroke-width: 2.2; }
.mascot__tool { stroke: var(--muted); }
.mascot__handle { stroke-width: 3.4; }
.mascot__led { fill: var(--accent); stroke: none; animation: mascotLed 1.4s steps(2) infinite; }
.mascot__arm { transform-box: view-box; transform-origin: 50px 56px; animation: mascotTinker .9s ease-in-out infinite; }
.mascot__sparks { stroke: #FFD166; opacity: 0; animation: mascotSpark .9s ease-in-out infinite; }
@keyframes mascotTinker { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } }
@keyframes mascotSpark { 0%, 40%, 100% { opacity: 0; } 50%, 60% { opacity: 1; } }
@keyframes mascotLed { 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) { .mascot__arm, .mascot__sparks, .mascot__led { animation: none; } }

/* ---------- Areas ---------- */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: .6em 1.1em; border-radius: 999px; background: rgba(17, 31, 61, .95); border: 1px solid var(--line-strong); font-weight: 500; font-size: .95rem; }

/* ---------- 3D Thames Valley map (homepage Areas) ----------
   A tilted plane with only the river, the towns as big blue dots, and labels
   counter-rotated so they stand upright facing you. */
@property --map-tilt { syntax: '<angle>'; inherits: true; initial-value: 54deg; }
@property --map-rot { syntax: '<angle>'; inherits: true; initial-value: -14deg; }
.areas--map { grid-template-columns: .9fr 1.1fr; }
.areas--map .chips { margin-top: 24px; }
.chips--sm { gap: 8px; }
.chips--sm li { font-size: .82rem; padding: .45em .9em; }
.map3d {
  --map-tilt: 12deg; --map-rot: 0deg;
  position: relative; aspect-ratio: 1 / .8; perspective: 1400px; perspective-origin: 50% 10%;
  transition: --map-tilt 1.8s cubic-bezier(.2, .7, .2, 1) .1s, --map-rot 1.8s cubic-bezier(.2, .7, .2, 1) .1s;
}
.map3d.is-in { --map-tilt: 54deg; --map-rot: -14deg; animation: mapSway 14s ease-in-out 2s infinite; }
.map3d__plane {
  position: absolute; left: 50%; top: 52%; width: 94%; aspect-ratio: 1; transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(var(--map-tilt)) rotateZ(var(--map-rot));
}
.map3d__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map3d__river-glow { fill: none; stroke: rgba(61, 214, 245, .28); stroke-width: 40; stroke-linecap: round; filter: blur(12px); }
.map3d__river { fill: none; stroke: url(#riverGrad); stroke-width: 15; stroke-linecap: round; }
.map3d__river-flow { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 46; animation: riverFlow 3.2s linear infinite; }
.map3d__dot {
  position: absolute; left: var(--x); top: var(--y); width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #8FE7FF 0%, #3D8BFF 55%, #2F6BFF 100%);
  box-shadow: 0 0 0 5px rgba(47, 107, 255, .22), 0 0 26px rgba(61, 214, 245, .55);
  transform: translateZ(3px) scale(0); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i) * 70ms + .9s);
}
.map3d.is-in .map3d__dot { transform: translateZ(3px) scale(1); }
.map3d__dot::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(61, 214, 245, .6); animation: dotPulse 2.6s ease-out calc(var(--i) * 200ms) infinite; }
.map3d__dot--page { background: radial-gradient(circle at 35% 35%, #C9F6FF 0%, #3DD6F5 50%, #2F6BFF 100%); }
.map3d__label, .map3d__river-label {
  position: absolute; left: var(--x); top: var(--y); transform-origin: 0 0; white-space: nowrap;
  transform: rotateZ(calc(var(--map-rot) * -1)) rotateX(calc(var(--map-tilt) * -1)) translate(-50%, calc(-100% - 20px)) translateZ(1px);
}
.map3d__label {
  font: 600 13px/1 var(--font-body); color: var(--text); padding: 6px 10px; border-radius: 999px;
  background: rgba(10, 20, 40, .88); border: 1px solid var(--line-strong);
  opacity: 0; transition: opacity .5s ease calc(var(--i) * 70ms + 1.2s);
}
.map3d.is-in .map3d__label { opacity: 1; }
.map3d__label a { color: var(--accent); text-decoration: none; }
.map3d__label:has(a) { border-color: rgba(61, 214, 245, .5); }
.map3d__label--e { transform: rotateZ(calc(var(--map-rot) * -1)) rotateX(calc(var(--map-tilt) * -1)) translate(20px, -50%) translateZ(1px); }
.map3d__label--w { transform: rotateZ(calc(var(--map-rot) * -1)) rotateX(calc(var(--map-tilt) * -1)) translate(calc(-100% - 20px), -50%) translateZ(1px); }
.map3d__label--s { transform: rotateZ(calc(var(--map-rot) * -1)) rotateX(calc(var(--map-tilt) * -1)) translate(-50%, 20px) translateZ(1px); }
.map3d__river-label { font: italic 600 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: rgba(61, 214, 245, .85); transform: rotateZ(calc(var(--map-rot) * -1)) rotateX(calc(var(--map-tilt) * -1)) translate(-50%, -50%) translateZ(1px); }
@keyframes riverFlow { to { stroke-dashoffset: -54; } }
@keyframes dotPulse { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes mapSway { 0%, 100% { --map-rot: -14deg; } 50% { --map-rot: -8deg; } }
@media (max-width: 960px) { .areas--map { grid-template-columns: 1fr; gap: 0; } .areas--map .map3d { margin-top: -13%; } }
@media (max-width: 560px) {
  .map3d { aspect-ratio: 1 / 1.05; perspective: 1000px; }
  .map3d.is-in { --map-tilt: 40deg; }
  .map3d__label--minor { display: none; }
  .map3d__plane { width: 100%; }
  .map3d__label { font-size: 10.5px; padding: 4px 7px; }
  .map3d__dot { width: 20px; height: 20px; margin: -10px 0 0 -10px; }
  .map3d__river-label { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .map3d { --map-tilt: 54deg; --map-rot: -14deg; transition: none; animation: none !important; }
  .map3d__dot { transition: none; transform: translateZ(3px) scale(1); }
  .map3d__label { transition: none; opacity: 1; }
  .map3d__river-flow, .map3d__dot::after { animation: none; }
}

.area-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mini--link { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
.mini--link:hover { border-color: rgba(61, 214, 245, .5); transform: translateY(-3px); }
.mini--link h3 { color: var(--text); }
.areas-page__map { padding-top: 0; }
.areas-page__map .map3d { max-width: 940px; margin: -9% auto 0; }
@media (max-width: 700px) { .area-cards { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
details { background: rgba(14, 26, 51, .95); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; transition: border-color .2s; }
details[open] { border-color: var(--line-strong); }
summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.4rem; transition: transform .2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact__list li { display: grid; gap: 2px; }
.contact__list span { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.form { display: grid; gap: 16px; padding: 32px; border-radius: 24px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .875rem; font-weight: 500; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem var(--font-body); color: var(--text);
  background: rgba(5, 11, 24, .6); border: 1px solid var(--line-strong); border-radius: 10px; padding: .8em .9em;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 214, 245, .15); }
.form .is-invalid { border-color: #FF6B6B; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { margin: 0; font-size: .9rem; min-height: 1.4em; color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; background: rgba(5, 11, 24, .85); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* ---------- Homepage services intro ---------- */
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.services-intro .btn { margin-top: 12px; }
.services-intro__list { display: grid; gap: 18px; }
.mini { display: flex; gap: 20px; align-items: flex-start; padding: 26px; border-radius: 20px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); }
.mini__icon { width: 44px; height: 44px; flex: none; color: var(--text); }
.mini h3 { margin-bottom: .35em; }
.mini p { margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.steps--three { grid-template-columns: repeat(3, 1fr); }
.faq__list--page { max-width: 820px; }

/* ---------- Services page ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav__links a[aria-current="page"] { color: var(--text); }
.page-hero { padding: clamp(56px, 10vw, 120px) 0 clamp(24px, 4vw, 48px); }
.page-hero__title { font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: .35em; }
.lead { font-size: 1.15rem; color: var(--text); opacity: .9; }
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.detail__label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 28px 0 10px; font-family: var(--font-body); font-weight: 600; }
.ticks--cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.price-card { position: sticky; top: 96px; padding: 32px; border-radius: 24px; background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); }
.price-card--featured { border-color: rgba(61, 214, 245, .35); box-shadow: 0 30px 80px -40px rgba(61, 214, 245, .35); }
.price-card__name { font: 700 1.1rem var(--font-head); margin-bottom: 14px; }
.price-card .price { font-size: 3rem; margin-bottom: 6px; }
.price-card__facts { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; }
.price-card__facts li { display: grid; gap: 2px; font-size: .95rem; }
.price-card__facts span { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.service__more { margin-top: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: rgba(14, 26, 51, .95); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: 16px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare-table thead th { font: 700 1rem var(--font-head); color: var(--text); background: rgba(17, 31, 61, .35); }
.compare-table tbody th { font-weight: 500; color: var(--muted); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(28px, 5vw, 56px); border-radius: 28px; border: 1px solid rgba(61, 214, 245, .3); background: radial-gradient(600px 300px at 100% 0%, rgba(47, 107, 255, .25), transparent 70%), linear-gradient(180deg, var(--panel), var(--panel-2)); }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; }
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; gap: 32px; }
  .price-card { position: static; }
}
@media (max-width: 560px) {
  .ticks--cols { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: stretch; text-align: left; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .mini { padding: 20px; gap: 16px; }
  .price-card { padding: 24px; }
}

/* Grey supporting text brightens to white on hover */
.muted, .hero__lead, .note, details p, .hero__stats span { transition: color .25s ease; }
.muted:hover, .hero__lead:hover, .note:hover, details p:hover, .hero__stats div:hover span { color: var(--text); }

/* ---------- Footer ---------- */
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 28px; }
.footer__about p { margin-top: 14px; max-width: 34ch; }
.footer__col { display: grid; align-content: start; gap: 10px; }
.footer__col h2 { font: 600 .78rem/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 4px 0 6px; }
.footer__col a { color: var(--muted); text-decoration: none; font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { border-top: 1px solid var(--line); padding-top: 22px; }
.chips a { color: inherit; text-decoration: none; }
.chips li:has(a) { border-color: rgba(61, 214, 245, .45); transition: border-color .2s, color .2s; }
.chips li:has(a):hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }

/* ---------- Depth layers ----------
   The page is built as three layers the cog lens can sit behind:
   - Bottom: the page background. The lens shows clearly (25% blur, --lens-blur).
   - Middle: text boxes are frosted glass. The lens is still visible through them,
     but softer (glass adds --glass-blur on top, roughly 50% overall).
   - Top: solid 3D pieces (map, laptop, before/after). The lens hides completely
     (see MEDIA in machine.js).
   Glass edges are physical, so the change in blur happens exactly where a box
   begins, with no flicker or jump. */
:root {
  --lens-blur: 2.8px;
  --glass-blur: 4.8px;
  --glass-top: rgba(17, 31, 61, .45);
  --glass-bottom: rgba(14, 26, 51, .45);
}
.service, .mini, .step, .why__item, .price-card, .form, details, .table-wrap, .hero__stats, .chips li {
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(115%);
          backdrop-filter: blur(var(--glass-blur)) saturate(115%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045);
}
.service--featured, .price-card--featured { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 30px 80px -40px rgba(61, 214, 245, .35); }
.cta-band {
  background: radial-gradient(600px 300px at 100% 0%, rgba(47, 107, 255, .22), transparent 70%), linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(115%);
          backdrop-filter: blur(var(--glass-blur)) saturate(115%);
}
.hero__stats { gap: 0; }
.hero__stats div { background: none; box-shadow: inset -1px 0 0 var(--line), inset 0 -1px 0 var(--line); }
.btn--ghost { background: var(--glass-top); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
/* The hero animates in on load without waiting for scroll */
.js .hero .reveal { opacity: 1; transform: none; transition: none; animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero .reveal:nth-child(2) { animation-delay: .08s; }
.js .hero .reveal:nth-child(3) { animation-delay: .16s; }
.js .hero .reveal:nth-child(4) { animation-delay: .24s; }
.js .hero .reveal:nth-child(5) { animation-delay: .32s; }
.js .hero__stats.reveal { animation-delay: .4s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 214, 245, .6); } 70% { box-shadow: 0 0 0 10px rgba(61, 214, 245, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 214, 245, 0); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .steps, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .faq, .contact, .areas, .services-intro { grid-template-columns: 1fr; gap: 32px; }
  .steps--three { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: rgba(10, 20, 40, .97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s ease;
  }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__links .btn { margin-top: 16px; }
  .services { grid-template-columns: 1fr; }
  .compare { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 560px) {
  .steps, .why__grid, .form__row { grid-template-columns: 1fr; }
  .service, .form { padding: 24px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stats { margin-top: 170px; }
  .hero__stats div { padding: 16px; }
  .hero__stats strong { font-size: 1.3rem; }
  .compare { aspect-ratio: 3 / 3.6; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .old__marquee { animation: none; }
}
