/* =====================================================================
   APEX PROPERTY MAINTENANCE — shared stylesheet
   ---------------------------------------------------------------------
   1.  Design tokens (colours, fonts, spacing)  <-- tweak the brand here
   2.  Base / reset
   3.  Layout helpers
   4.  Typography
   5.  Buttons
   6.  Header + navigation
   7.  Home hero (transformation reveal)
   8.  Inner page hero
   9.  Sections & components (cards, trust strip, process, etc.)
   10. Before / after slider
   11. Reviews
   12. Service area
   13. Forms (quote page)
   14. Footer + mobile action bar
   15. Motion (scroll reveals, page transitions)
   16. Reduced motion
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. DESIGN TOKENS
   Purples and silvers are sampled from the Apex logo.
   --------------------------------------------------------------------- */
:root {
  /* Backgrounds (near-black with a whisper of purple) */
  --bg:            #07060b;
  --bg-raised:     #0d0b14;
  --surface:       #121019;
  --surface-2:     #191622;

  /* Brand purple (logo) */
  --purple-200:    #d4c2ff;
  --purple-300:    #b794ff;
  --purple-400:    #9a68ff;
  --purple-500:    #7c3aed;   /* main brand purple */
  --purple-600:    #6526d6;
  --purple-700:    #4a1a9e;

  /* Brand silver (logo lettering) */
  --silver-100:    #f4f5f8;
  --silver-200:    #dcdfe6;
  --silver-300:    #c2c6d0;
  --silver-400:    #a3a8b6;

  /* Text */
  --text:          #eceef3;
  --text-muted:    #a9acba;
  --text-dim:      #868a9b;

  /* Lines & effects */
  --line:          rgba(220, 223, 230, 0.09);
  --line-strong:   rgba(220, 223, 230, 0.18);
  --glow:          rgba(124, 58, 237, 0.45);
  --glow-soft:     rgba(124, 58, 237, 0.18);
  --metal: linear-gradient(135deg, #ffffff 0%, #c9ccd5 38%, #8f94a3 52%, #e9ebf0 70%, #b5b9c4 100%);
  --brand-line: linear-gradient(90deg, transparent, rgba(220,223,230,.35) 28%, var(--purple-400) 50%, rgba(220,223,230,.35) 72%, transparent);
  --error:         #ff7a95;

  /* Fonts */
  --font-display: "Michroma", "Eurostile", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Type scale (fluid: phone -> desktop) */
  --fs-hero:  clamp(2rem, 1rem + 3.7vw, 4.25rem);
  --fs-h1:    clamp(1.85rem, 1.1rem + 2.9vw, 3.4rem);
  --fs-h2:    clamp(1.5rem, 1.05rem + 1.8vw, 2.6rem);
  --fs-h3:    clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  --fs-lead:  clamp(1.06rem, 1rem + 0.35vw, 1.25rem);
  --fs-body:  1.0625rem;
  --fs-small: 0.9rem;
  --fs-tiny:  0.75rem;

  /* Spacing */
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  /* ONE vertical rhythm: the gap between any two sections (64px phone -> 128px desktop) */
  --section-y: clamp(64px, 9vw, 128px);
  --container: 1240px;
  --radius:    20px;
  --radius-sm: 12px;
  --header-h:  76px;

  /* Motion */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io:   cubic-bezier(0.77, 0, 0.18, 1);
  --fast:      200ms;
  --med:       450ms;
}

/* ---------------------------------------------------------------------
   2. BASE
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--purple-500); color: #fff; }

:focus-visible {
  outline: 2px solid var(--purple-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  padding: .75rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--purple-500); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

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


/* Icons (from assets/icons.svg) */
.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------------------------
   3. LAYOUT HELPERS
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 880px; }
/* Sections: consecutive sections share one gap (no double padding) */
.section { padding-block: var(--section-y); position: relative; }
.section + .section,
.section + .section[hidden] + .section { padding-top: 0; }
/* Dividers sit in the middle of the gap */
.section:has(+ .divider-wrap) { padding-bottom: calc(var(--section-y) / 2); }
.divider-wrap + .section { padding-top: calc(var(--section-y) / 2); }
/* "Raised" sections get a soft glow instead of a hard-edged colour band */
.section--raised { isolation: isolate; }
.section--raised::before {
  content: ""; position: absolute; z-index: -1; inset: -12% 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 50%, rgba(124, 58, 237, .07), transparent 70%),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,.012) 30%, rgba(255,255,255,.012) 70%, transparent 100%);
}
.stack > * + * { margin-top: 1.1rem; }

.split {
  display: grid; gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

/* Silver/purple divider taken from the logo's line work */
.divider { position: relative; height: 1px; background: var(--brand-line); border: 0; margin: 0; }

/* ---------------------------------------------------------------------
   4. TYPOGRAPHY
   --------------------------------------------------------------------- */
.display, h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}
/* Very soft shadow only where headings sit on photos (legibility) */
.hero h1, .page-hero h1, .cta-banner h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero .accent, .page-hero .accent { text-shadow: none; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 {
  font-family: var(--font-body);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
}
p { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.6; max-width: 60ch; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-small); }

/* Metallic silver text, like the APEX lettering */
.metal {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* Purple accent word */
.accent {
  background: linear-gradient(120deg, var(--purple-200), var(--purple-400) 55%, var(--purple-500));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--fs-tiny); font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--purple-300);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-400));
}
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.section-head .lead { margin-top: 1.25rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 700px; }

.text-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 700; color: var(--silver-100);
  min-height: 44px;
  background: linear-gradient(var(--purple-400), var(--purple-400)) left calc(100% - 9px) / 0 1px no-repeat;
  transition: background-size var(--med) var(--ease-out), color var(--fast);
}
.text-link .icon { transition: transform var(--med) var(--ease-out); color: var(--purple-300); }
.text-link:hover { background-size: 100% 1px; color: #fff; }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------------------------------------------------------------------
   5. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  --btn-shadow: 0 10px 30px -12px rgba(124, 58, 237, .7);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 54px; padding: .8rem 1.6rem;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 1rem; letter-spacing: .01em; line-height: 1.2;
  white-space: nowrap; cursor: pointer;
  transition: transform var(--med) var(--ease-out), box-shadow var(--med) var(--ease-out),
              background-color var(--fast), border-color var(--fast), color var(--fast);
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #9a5cff 0%, var(--purple-500) 48%, var(--purple-600) 100%);
  box-shadow: var(--btn-shadow), inset 0 1px 0 rgba(255,255,255,.28);
}
/* light sweep across primary buttons on hover */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -10px rgba(124, 58, 237, .85), 0 0 0 1px rgba(183,148,255,.35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  color: var(--silver-100);
  background: rgba(255,255,255,.025);
  border-color: rgba(220, 223, 230, .38);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--silver-200);
  background: rgba(255,255,255,.07);
  box-shadow: 0 12px 34px -14px rgba(220,223,230,.35), 0 0 24px -6px var(--glow-soft);
}
.btn:active { transform: translateY(0) scale(.985); transition-duration: 80ms; }
.btn--sm { min-height: 44px; padding: .55rem 1.1rem; font-size: .92rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------------------------------------------------------------------
   6. HEADER + NAVIGATION
   --------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background-color var(--med), border-color var(--med), transform var(--med) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(7, 6, 11, .78);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; position: relative; z-index: 2; min-height: 44px; }
.brand img { height: 36px; width: auto; }
.brand__name {
  display: block; font-family: var(--font-display); font-size: .86rem; letter-spacing: .1em;
  line-height: 1.2; color: #fff;
}
.brand__name span { display: block; margin-top: .2rem; font-family: var(--font-body); font-size: .6rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--purple-300); }
@media (max-width: 359px) { .brand__name span { letter-spacing: .14em; } }

.nav { display: none; }
.nav__list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem;
  font-size: .95rem; font-weight: 600; color: var(--text-muted);
  transition: color var(--fast);
}
.nav__link::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: 8px; height: 1px;
  background: var(--purple-400); transform: scaleX(0); transform-origin: left;
  transition: transform var(--med) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--silver-100); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; align-items: center; gap: 1rem; }
.header-cta__call { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .93rem; color: var(--text-muted); min-height: 44px; transition: color var(--fast); }
.header-cta__call:hover { color: #fff; }
.header-cta__call .icon { color: var(--purple-300); }

.nav__link, .header-cta__call { white-space: nowrap; }
@media (min-width: 1060px) {
  .nav, .header-cta { display: flex; }
  .site-header .menu-toggle { display: none; }
}
/* medium laptops: keep the header on one line */
@media (min-width: 1060px) and (max-width: 1279px) {
  .header-cta__call { display: none; }
  .nav__link { padding: 0 .7rem; }
  .nav__link::after { left: .7rem; right: .7rem; }
}

/* Hamburger */
.menu-toggle {
  position: relative; z-index: 2;
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-strong);
}
.menu-toggle__bars { position: relative; width: 20px; height: 12px; }
.menu-toggle__bars::before, .menu-toggle__bars::after, .menu-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--silver-100);
  border-radius: 2px; transition: transform var(--med) var(--ease-out), opacity var(--fast);
}
.menu-toggle__bars::before { top: 0; }
.menu-toggle__bars span { top: 5.25px; }
.menu-toggle__bars::after { bottom: 0; }
.menu-open .menu-toggle__bars::before { transform: translateY(5.25px) rotate(45deg); }
.menu-open .menu-toggle__bars::after { transform: translateY(-5.25px) rotate(-45deg); }
.menu-open .menu-toggle__bars span { opacity: 0; }

/* Full-screen mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(124,58,237,.22), transparent 60%),
    rgba(7, 6, 11, .97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--med) var(--ease-out), visibility 0s linear var(--med);
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transition: opacity var(--med) var(--ease-out); }
.menu-open { overflow: hidden; }
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; font-family: var(--font-display); font-size: clamp(1.25rem, 5.5vw, 1.7rem);
  letter-spacing: -.03em; color: var(--silver-100);
  opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color var(--fast);
  transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.mobile-menu__list a .icon { color: var(--purple-300); width: 1.1rem; }
.mobile-menu__list a[aria-current="page"] { color: var(--purple-300); }
.menu-open .mobile-menu__list a { opacity: 1; transform: none; }
.mobile-menu__foot { margin-top: auto; padding-top: 2rem; display: grid; gap: .75rem; }
.mobile-menu__foot p { color: var(--text-dim); font-size: var(--fs-small); text-align: center; margin-top: .5rem; }

/* ---------------------------------------------------------------------
   7. HOME HERO — transformation reveal
   Sequence (see main.js): before-1 -> purple light-line wipe reveals
   after-1 -> crossfade to hero.jpg with a slow Ken Burns zoom.
   --------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* exactly one screen tall (never shorter than the content on tiny/landscape screens) */
  height: 100vh; height: 100svh; min-height: 560px;
  display: flex; align-items: center;
  background: var(--bg);
}
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 55%;
}
/* hero.jpg: keep the red maple (right side) in view on every screen */
.hero__main {
  object-position: 80% 50%;
  transform-origin: 72% 40%;
  animation: hero-fade .8s ease both, kenburns 32s ease-in-out infinite alternate;
}
/* desktop: favour the maple + sky, not the footpath at the bottom of the photo */
@media (min-width: 700px) { .hero__main { object-position: 70% 36%; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes kenburns {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.16) translate3d(-1.8%, -1.2%, 0); }
}

/* Desktop reveal sequence. main.js adds .is-sequenced only when it is
   actually running the wipe, so if JS is slow or fails the final photo shows. */
.hero.is-sequenced .hero__main { opacity: 0; animation: kenburns 32s ease-in-out infinite alternate; transition: opacity 1.6s ease; }
.hero.is-sequenced.is-final .hero__main { opacity: 1; }
.hero.is-sequenced .hero__after { clip-path: inset(0 100% 0 0); }
.hero__before, .hero__after { object-position: 50% 45%; }
.hero.is-revealing .hero__after { animation: wipe 1.8s var(--ease-io) forwards; }
.hero.is-final .hero__after { clip-path: inset(0 0 0 0); }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }

/* The vertical purple light-line */
.hero__wipe { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0; }
.hero__wipe::before, .hero__wipe::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; }
.hero__wipe::before {
  width: 2px; margin-left: -1px;
  background: linear-gradient(180deg, transparent 0%, var(--purple-300) 18%, #fff 50%, var(--purple-300) 82%, transparent 100%);
  box-shadow: 0 0 12px 2px rgba(183, 148, 255, .9), 0 0 42px 10px rgba(124, 58, 237, .55);
}
.hero__wipe::after {
  width: 220px; margin-left: -200px;
  background: linear-gradient(90deg, transparent, rgba(124, 58, 237, .28));
}
.hero.is-revealing .hero__wipe { animation: wipe-line 1.8s var(--ease-io) forwards; }
@keyframes wipe-line {
  0%   { transform: translateX(0); opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Dark gradient: heavier on the left where the words sit */
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,6,11,.7) 0%, rgba(7,6,11,.48) 20%, rgba(7,6,11,.62) 40%, rgba(7,6,11,.86) 68%, var(--bg) 100%);
}
@media (max-width: 520px) {
  .hero .btn-row .btn { flex: 1 1 100%; }
}
@media (min-width: 900px) {
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7,6,11,.6) 0%, rgba(7,6,11,0) 20%),
      linear-gradient(90deg, rgba(7,6,11,.94) 0%, rgba(7,6,11,.82) 30%, rgba(7,6,11,.35) 58%, rgba(7,6,11,.05) 80%),
      linear-gradient(0deg, var(--bg) 0%, rgba(7,6,11,0) 26%);
  }
}

/* Animated film grain in the hero */
.hero__grain {
  position: absolute; inset: -60%; z-index: 0; pointer-events: none; opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-4%, 3%, 0); }
  40%  { transform: translate3d(3%, -5%, 0); }
  60%  { transform: translate3d(-6%, -2%, 0); }
  80%  { transform: translate3d(5%, 4%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* Soft purple glow that follows the cursor (desktop only) */
.hero__glow {
  position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; margin: -360px 0 0 -360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 82, 255, .2) 0%, rgba(124, 58, 237, .08) 35%, transparent 65%);
  transform: translate3d(var(--gx, 30vw), var(--gy, 50vh), 0);
  opacity: 0; transition: opacity 1s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .hero.has-pointer .hero__glow { opacity: 1; }
}

.hero__content {
  position: relative; z-index: 1; width: 100%;
  /* centred in the space below the header */
  padding-top: var(--header-h);
  padding-bottom: 2.5rem;
}
.hero__copy { max-width: 720px; }
.hero__title {
  /* capped by screen height too, so short laptops (1366x768) fit everything */
  font-size: min(var(--fs-hero), 9.5vh);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 1.4rem;
}
.hero__sub { font-size: var(--fs-lead); color: var(--silver-200); max-width: 33rem; margin-bottom: 2rem; }
/* ---- PHONES ONLY (under 768px): show more of hero.jpg ----
   A 4:3 photo "covering" a tall phone screen only shows ~40% of it.
   Instead, the sharp photo is shown wider than the screen (not full height),
   anchored to the top and fading out at the bottom, over a blurred,
   darkened copy of itself that fills the rest. Result: house + maple in view,
   no bars, and the text sits on the darkest part at the bottom. */
@media (max-width: 767px) {
  .hero {
    --hero-w: 1.38;  /* how much wider than the screen the photo is (bigger = more zoomed in) */
    --hero-x: .85;   /* horizontal framing: 0 = left edge of photo, 1 = right edge */
    min-height: 520px;
    align-items: flex-end;
  }
  .hero__media::before { /* blurred fill behind everything */
    content: ""; position: absolute; inset: -30px;
    background: url("../img/hero-720.webp") 72% 30% / cover no-repeat;
    filter: blur(22px) brightness(.5) saturate(1.15);
  }
  .hero .hero__main {
    inset: 0 auto auto 0;
    width: calc(var(--hero-w) * 100%); max-width: none;
    /* natural 4:3 height, but on tall phones at least 60% of the hero (no empty band) */
    height: max(calc(var(--hero-w) * 75vw), 60%);
    object-fit: cover; object-position: 70% 50%;
    left: calc((1 - var(--hero-w)) * 100% * var(--hero-x));
    -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
    transform-origin: 70% 40%;
    animation: hero-fade .8s ease both, kenburns-soft 30s ease-in-out infinite alternate;
  }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(7,6,11,.55) 0%, rgba(7,6,11,.08) 16%, rgba(7,6,11,.12) 34%, rgba(7,6,11,.72) 56%, rgba(7,6,11,.92) 76%, var(--bg) 100%);
  }
  .hero__content { padding-bottom: calc(1.75rem + env(safe-area-inset-bottom)); }
  .hero__title { font-size: clamp(1.75rem, 1.1rem + 3.2vw, 2.15rem); margin-bottom: 1rem; }
  .hero__sub { font-size: 1.02rem; margin-bottom: 1.5rem; }
  .hero .eyebrow { margin-bottom: .9rem; }
  .hero .btn-row { gap: .65rem; }
}
@keyframes kenburns-soft { from { transform: scale(1); } to { transform: scale(1.035); } }
@media (max-width: 767px) and (max-height: 700px) {
  /* short phones (iPhone SE): tighten so both buttons fit */
  .hero__sub { font-size: .97rem; line-height: 1.55; margin-bottom: 1.25rem; }
  .hero .btn { min-height: 50px; }
}

@media (max-height: 700px) and (min-width: 700px) {
  .hero .eyebrow { margin-bottom: .9rem; }
  .hero__title { margin-bottom: 1rem; }
  .hero__sub { margin-bottom: 1.5rem; }
}

/* Text is visible from the very first frame: words only drift up into
   place (no fade from invisible), staggered word by word. */
.hero-word { display: inline-block; animation: word-rise 1s var(--ease-out) both; animation-delay: calc(var(--w, 0) * 70ms); }
.hero__copy > :not(h1) { animation: word-rise 1s var(--ease-out) both; }
.hero__copy > .hero__sub { animation-delay: .35s; }
.hero__copy > .btn-row { animation-delay: .5s; }
@keyframes word-rise { from { transform: translate3d(0, .35em, 0); } to { transform: none; } }

/* Scroll indicator */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.75rem; z-index: 2; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .65rem;
  font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--text-muted);
}
.scroll-cue__line { position: relative; width: 1px; height: 46px; background: rgba(220,223,230,.18); overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: linear-gradient(180deg, transparent, var(--purple-300));
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue { to { top: 100%; } }
@media (min-width: 700px) and (min-height: 620px) { .scroll-cue { display: flex; } }

/* ---------------------------------------------------------------------
   8. INNER PAGE HERO
   --------------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 56vh; min-height: 56svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 3.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-hero__img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 40s ease-in-out infinite alternate;
  /* fade the photo out at the bottom so no hard edge/1px seam can show */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 98%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0 0 -2px; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,6,11,.75) 0%, rgba(7,6,11,.55) 40%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,6,11,.85), rgba(7,6,11,.2));
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 60%; height: 90%;
  background: radial-gradient(closest-side, rgba(124,58,237,.22), transparent);
  pointer-events: none;
}
.page-hero + .section { padding-top: calc(var(--section-y) / 2); }

/* ---- PHONES ONLY (under 768px): photo-led inner heroes ----
   Instead of a dark, tightly cropped photo behind all the text, the whole
   photo sits uncropped across the top (4:3, full width), fading into the
   page, with the heading below it overlapping the faded part. */
@media (max-width: 767px) {
  .page-hero:not(.page-hero--plain) {
    min-height: 0;
    /* push the text down so the top ~3/4 of the photo stays clear */
    padding-top: calc(var(--header-h) + 34vw);
  }
  .page-hero__img {
    inset: 0 0 auto 0; height: auto; aspect-ratio: 4 / 3;
    transform-origin: 60% 40%;
    animation: kenburns-soft 30s ease-in-out infinite alternate;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .page-hero:not(.page-hero--plain)::before {
    background:
      linear-gradient(180deg, rgba(7,6,11,.72) 0, rgba(7,6,11,.42) var(--header-h), rgba(7,6,11,.05) calc(var(--header-h) + 10vw), rgba(7,6,11,.05) calc(var(--header-h) + 16vw), rgba(7,6,11,.6) calc(var(--header-h) + 40vw), rgba(7,6,11,.88) calc(var(--header-h) + 62vw), var(--bg) 100%);
  }
  .page-hero::after { display: none; }
  .page-hero:not(.page-hero--plain) h1 { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 1.4rem; color: var(--silver-200); }
.page-hero--plain { min-height: auto; padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)); }
.page-hero--plain::before { background: radial-gradient(90% 70% at 85% 0%, rgba(124,58,237,.16), transparent 60%); }

/* ---------------------------------------------------------------------
   9. SECTIONS & COMPONENTS
   --------------------------------------------------------------------- */

/* Trust strip */
.trust {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
}
.trust__list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  list-style: none; margin: 0; padding: 0;
}
.trust__item {
  display: flex; align-items: center; gap: .8rem;
  padding: 1.35rem .5rem; font-weight: 600; font-size: .95rem; color: var(--silver-100);
}
.trust__item .icon { color: var(--purple-300); width: 1.35rem; height: 1.35rem; }
@media (min-width: 900px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__item { justify-content: center; padding-block: 1.75rem; position: relative; }
  .trust__item + .trust__item::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--line-strong); }
}

/* Intro / our story: two overlapping job photos */
.intro p + p { margin-top: 1.1rem; }
.duo {
  position: relative; width: 100%; max-width: 540px; margin-inline: auto;
  padding: 0 14% 16% 0;
}
.duo::before { /* soft purple light behind the photos */
  content: ""; position: absolute; inset: 10% 0 0 10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(124,58,237,.22), transparent);
  filter: blur(20px);
}
.duo__frame {
  position: relative; overflow: hidden; border-radius: 22px;
  padding: 1px; /* thin purple -> silver border */
  background: linear-gradient(140deg, rgba(183,148,255,.75), rgba(220,223,230,.2) 45%, rgba(124,58,237,.5));
  box-shadow: 0 40px 80px -36px rgba(0,0,0,.9), 0 0 50px -30px var(--glow);
}
.duo__frame > div { overflow: hidden; border-radius: 21px; height: 100%; background: var(--surface); }
.duo__frame img { width: 100%; height: 100%; object-fit: cover; }
.duo__main { aspect-ratio: 4 / 5; }
.duo__main img { height: 114%; will-change: transform; }
/* Landscape version (Home "Who we are"): 4:3 frame = same shape as the
   photo, so the whole image shows uncropped. The small photo hangs off
   the bottom-right corner, clear of the red maple. */
.duo--landscape { max-width: 640px; padding: 0 8% 17% 0; }
.duo--landscape .duo__main { aspect-ratio: 4 / 3; }
.duo--landscape .duo__main img { height: 100%; object-position: 50% 50%; }
.duo--landscape .duo__sub { width: 38%; aspect-ratio: 4 / 3; }
@media (max-width: 899px) {
  /* phones/tablets: big photo spans the full content width */
  .duo--landscape { max-width: none; padding: 0 0 18% 0; }
  .duo--landscape .duo__sub { width: 44%; }
}
.duo__sub {
  position: absolute; right: 0; bottom: 0; width: 50%; aspect-ratio: 1;
  border-radius: 18px;
  box-shadow: 0 0 0 6px var(--bg), 0 30px 60px -24px rgba(0,0,0,.9), 0 0 40px -18px var(--glow);
}
.duo__sub > div { border-radius: 17px; }
.duo .duo__tag { position: absolute; left: 1rem; top: 1rem; bottom: auto; z-index: 2; }

/* Generic card */
.card {
  position: relative; isolation: isolate;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
/* gradient border that fades in on hover */
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: linear-gradient(150deg, rgba(183,148,255,.9), rgba(124,58,237,.25) 40%, rgba(220,223,230,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease-out);
}
@media (hover: hover) {
  .card--hover:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 30px 60px -30px rgba(124,58,237,.55), 0 0 40px -18px rgba(124,58,237,.5);
  }
  .card--hover:hover::before { opacity: 1; }
}

/* Metallic icon tile with silver sheen sweep */
.icon-tile {
  position: relative; overflow: hidden;
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; flex: none;
  color: var(--silver-100);
  background:
    linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.02) 45%, rgba(124,58,237,.18)),
    var(--surface-2);
  border: 1px solid rgba(220,223,230,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 10px 24px -14px rgba(124,58,237,.8);
}
.icon-tile .icon { width: 26px; height: 26px; stroke-width: 1.5; position: relative; z-index: 1; }
.icon-tile::after {
  content: ""; position: absolute; inset: -40%; z-index: 2;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
}
.card--hover:hover .icon-tile::after,
.card--hover:focus-within .icon-tile::after { transform: translateX(100%); transition: transform 1s var(--ease-out); }

/* Service cards */
.svc { display: flex; flex-direction: column; height: 100%; }
.svc h3 { margin-top: 1.5rem; }
.svc__desc { margin-top: .6rem; color: var(--text-muted); }
.svc__list { list-style: none; padding: 0; margin: 1.35rem 0 1.75rem; display: grid; gap: .55rem; }
.svc__list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; color: var(--silver-200); }
.svc__list .icon { color: var(--purple-300); width: 1.05rem; height: 1.05rem; margin-top: .28rem; }
.svc__cta { margin-top: auto; }
.svc__cta .btn { width: 100%; }

/* Swipeable row on phones, grid on desktop */
.svc-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 360px);
  gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: .5rem var(--gutter) 1.5rem; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.svc-row::-webkit-scrollbar { display: none; }
.svc-row > * { scroll-snap-align: start; }
.swipe-hint { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-small); color: var(--text-dim); margin-top: .25rem; }
.swipe-hint .icon { color: var(--purple-300); }
.swipe-progress { flex: 1; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; max-width: 140px; margin-left: auto; }
.swipe-progress span { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, var(--purple-500), var(--purple-300)); border-radius: 2px; transform-origin: left; }
@media (min-width: 900px) {
  .svc-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 1.25rem; }
  .swipe-hint { display: none; }
}

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* Premium service tier */
.tier-label {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .4rem .85rem; border-radius: 999px; margin-bottom: 1.25rem;
  font-size: var(--fs-tiny); font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--silver-200);
}
.tier-label--premium { border-color: rgba(183,148,255,.45); color: var(--purple-200); background: rgba(124,58,237,.1); box-shadow: 0 0 24px -8px var(--glow); }
.card--premium { background: linear-gradient(180deg, rgba(124,58,237,.1), rgba(255,255,255,.012) 55%); border-color: rgba(183,148,255,.18); }
.badge-premium {
  position: absolute; top: clamp(1.6rem, 3vw, 2.25rem); right: clamp(1.6rem, 3vw, 2.25rem);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .32rem .7rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--purple-200); background: rgba(124,58,237,.16); border: 1px solid rgba(183,148,255,.4);
}
.badge-premium .icon { width: .85rem; height: .85rem; }
.card--cta {
  display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(120% 90% at 100% 0%, rgba(124,58,237,.2), transparent 60%), var(--surface);
  border: 1px dashed rgba(183,148,255,.3);
}
.card--premium .icon-tile { background: linear-gradient(145deg, rgba(183,148,255,.4), rgba(124,58,237,.15) 50%, rgba(255,255,255,.06)), var(--surface-2); border-color: rgba(183,148,255,.3); }

/* Callout panel ("Not sure what you need?", pricing note) */
.panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 4rem);
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(220,223,230,.06), transparent 60%),
    var(--surface);
  border: 1px solid rgba(183,148,255,.18);
}
.panel::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--brand-line);
}
.panel__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .panel__grid { grid-template-columns: 1.4fr auto; gap: 4rem; } }
.panel__phone { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1rem; color: var(--text-muted); font-size: var(--fs-small); }
.panel__phone a { color: var(--silver-100); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.facts a { display: inline-flex; align-items: center; min-height: 44px; }

/* Photo frame with parallax image */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 60px -30px var(--glow);
  background: var(--surface);
}
.photo img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.photo--tall { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 4 / 3; }
.photo__tag {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
  padding: .45rem .8rem; border-radius: 999px; font-size: var(--fs-tiny); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(7,6,11,.65); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
}

/* Process steps */
.process { position: relative; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.process__track { display: none; }
@media (min-width: 900px) {
  .process__track {
    display: block; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: var(--line);
  }
  .process__track span { display: block; height: 100%; background: linear-gradient(90deg, var(--purple-400), rgba(220,223,230,.4) 60%, transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease-out) .3s; }
  .process.is-in .process__track span { transform: scaleX(1); }
  .step { padding-top: 2.75rem; }
  .step::before {
    content: ""; position: absolute; left: 0; top: -5px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--purple-400); box-shadow: 0 0 0 4px rgba(124,58,237,.18), 0 0 18px var(--purple-500);
  }
}
.step { position: relative; }
.step__num {
  font-family: var(--font-display); font-size: clamp(3.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(220,223,230,.4);
  margin-bottom: 1.5rem; position: relative; display: inline-block;
}
.step h3 { font-size: 1.25rem; }
.step p { color: var(--text-muted); margin-top: .5rem; }

/* Promise list */
.promise { list-style: none; padding: 0; margin: 0; }
.promise li {
  display: flex; gap: 1.1rem; align-items: center;
  padding: 1.35rem 0; border-bottom: 1px solid var(--line);
  font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); font-weight: 600; color: var(--silver-100);
}
.promise li:first-child { border-top: 1px solid var(--line); }
.promise__check {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, rgba(183,148,255,.45), rgba(124,58,237,.18));
  border: 1px solid rgba(183,148,255,.35); color: #fff;
  box-shadow: 0 0 22px -6px var(--glow);
}
.promise__check .icon { width: 18px; height: 18px; stroke-width: 2.2; }

/* Who we work with */
.audience { text-align: left; }
.audience h3 { margin-top: 1.25rem; }
.audience p { color: var(--text-muted); margin-top: .45rem; font-size: .97rem; }

/* Value pill (about) */
.value h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.value p { margin-top: .5rem; color: var(--text-muted); }

/* Detail list (about / contact facts) */
.facts { list-style: none; padding: 0; margin: 0; display: grid; }
.facts li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .icon { color: var(--purple-300); margin-top: .2rem; }
.facts dt, .facts .facts__label { font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: .18em; font-weight: 700; color: var(--text-dim); }
.facts a, .facts strong { color: var(--silver-100); font-weight: 600; word-break: break-word; }
.facts a:hover { color: var(--purple-200); }

/* Mode cards (one-off vs regular) */
.mode h3 { font-size: 1.3rem; margin-top: 1.25rem; }
.mode p { margin-top: .6rem; color: var(--text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; list-style: none; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--silver-200);
  background: rgba(255,255,255,.035); border: 1px solid var(--line-strong);
}

/* Final CTA banner */
.cta-banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(3rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 5rem);
  border: 1px solid rgba(183,148,255,.2);
  min-height: 440px; display: flex; align-items: center;
}
.cta-banner__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 125%; object-fit: cover; will-change: transform; }
.cta-banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(124,58,237,.45), transparent 60%),
    linear-gradient(90deg, rgba(7,6,11,.95) 0%, rgba(7,6,11,.78) 50%, rgba(7,6,11,.45) 100%);
}
.cta-banner h2 { max-width: 15ch; }
.cta-banner .lead { margin-top: 1.25rem; margin-bottom: 2.25rem; color: var(--silver-200); }

/* ---------------------------------------------------------------------
   10. BEFORE / AFTER SLIDER
   Markup: see the copy-paste block at the top of our-work.html
   --------------------------------------------------------------------- */
.ba-grid { display: grid; gap: clamp(1.25rem, 3vw, 2rem); }
@media (min-width: 900px) {
  .ba-grid--home { grid-template-columns: repeat(3, 1fr); }
  .ba-grid--home > :first-child { grid-column: 1 / -1; }
  .ba-grid--home > :first-child .ba { aspect-ratio: 16 / 8; }
  .ba-grid--work { grid-template-columns: repeat(2, 1fr); }
  .ba-grid--work .ba-card--wide { grid-column: 1 / -1; }
  .ba-grid--work .ba-card--wide .ba { aspect-ratio: 16 / 8; }
}
.ba-card figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: 1rem; }
.ba-card__title { font-weight: 700; color: var(--silver-100); }
.ba-card__note { color: var(--text-muted); font-size: var(--fs-small); width: 100%; }
.ba-card__type {
  font-size: var(--fs-tiny); font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-muted);
}
.ba-card__type--commercial { color: var(--purple-200); border-color: rgba(183,148,255,.45); background: rgba(124,58,237,.12); }

.ba {
  --pos: 50%;
  position: relative; overflow: hidden; isolation: isolate;
  aspect-ratio: 4 / 3; border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -45px rgba(0,0,0,.9);
  cursor: ew-resize; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.ba--portrait { aspect-ratio: 4 / 5; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba__before { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3; width: 0; pointer-events: none;
}
.ba__handle::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px;
  background: linear-gradient(180deg, rgba(183,148,255,.2), var(--purple-200) 30%, #fff 50%, var(--purple-200) 70%, rgba(183,148,255,.2));
  box-shadow: 0 0 14px 2px rgba(124,58,237,.75);
}
.ba__knob {
  position: absolute; top: 50%; left: 0; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #a978ff, var(--purple-500) 55%, var(--purple-700));
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 0 0 6px rgba(124,58,237,.22), 0 0 30px 4px rgba(124,58,237,.65), inset 0 1px 0 rgba(255,255,255,.4);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.ba__knob .icon { width: 22px; height: 22px; stroke-width: 2; }
.ba.is-dragging .ba__knob, .ba:hover .ba__knob { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(124,58,237,.25), 0 0 44px 8px rgba(124,58,237,.75), inset 0 1px 0 rgba(255,255,255,.4); }
.ba__range:focus-visible ~ .ba__handle .ba__knob { outline: 2px solid #fff; outline-offset: 4px; }
.ba__label {
  position: absolute; top: 1rem; z-index: 4; pointer-events: none;
  padding: .4rem .8rem; border-radius: 999px;
  font-size: var(--fs-tiny); font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  background: rgba(7,6,11,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  transition: opacity .3s ease;
}
.ba__label--before { left: 1rem; opacity: var(--before-o, 1); }
.ba__label--after  { right: 1rem; opacity: var(--after-o, 1); color: var(--purple-200); border-color: rgba(183,148,255,.35); }
.ba__range {
  /* Real range input = keyboard + screen reader support; visually hidden */
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 5;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   11. REVIEWS (auto-hidden until real reviews are added)
   --------------------------------------------------------------------- */
.reviews[hidden] { display: none !important; }
.review { display: flex; flex-direction: column; height: 100%; }
.review__mark { width: 34px; height: 34px; color: var(--purple-400); opacity: .9; }
.review__text { margin: 1.25rem 0 1.75rem; font-size: 1.08rem; line-height: 1.7; color: var(--silver-100); }
.review__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.review__name { font-weight: 700; color: var(--silver-100); }
.review__where { display: block; font-size: var(--fs-small); color: var(--text-muted); }

/* ---------------------------------------------------------------------
   12. SERVICE AREA
   --------------------------------------------------------------------- */
.area-map { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1; }
.area-map svg { width: 100%; height: 100%; overflow: visible; }
.area-map .ring { fill: none; stroke: rgba(220,223,230,.14); stroke-dasharray: 2 6; }
.area-map .ring--outer { stroke: rgba(183,148,255,.5); stroke-dasharray: none; }
.area-map .zone { fill: url(#zoneGrad); }
.area-map .ring-label { fill: var(--text-dim); font: 600 11px var(--font-body); letter-spacing: .14em; }
.area-map .dot { fill: var(--purple-300); }
.area-map .dot--main { fill: #fff; }
.area-map .place { fill: var(--silver-100); font: 700 14px var(--font-body); letter-spacing: .02em; }
.area-map .place--sub { fill: var(--text-muted); font-weight: 600; font-size: 12px; }
.area-map .pulse { fill: none; stroke: var(--purple-400); transform-origin: center; transform-box: fill-box; animation: pulse 3.2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.sweep { transform-origin: 260px 260px; animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  /* keep the radar labels readable when the map scales down */
  .area-map { max-width: 400px; }
  .area-map .place { font-size: 19px; }
  .area-map .place--sub { font-size: 16px; }
  .area-map .ring-label { font-size: 14px; }
}
.hours { display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem; padding: 1.25rem 1.4rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.hours .icon { color: var(--purple-300); margin-top: .2rem; }
.hours strong { display: block; color: var(--silver-100); }
.hours span { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------------------------------------------------------------------
   13. FORMS (quote page)
   --------------------------------------------------------------------- */
.quote-layout { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 1000px) { .quote-layout { grid-template-columns: 1.55fr 1fr; } .quote-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.form-card { padding: clamp(1.5rem, 4vw, 3rem); }
.form-grid { display: grid; gap: 1.4rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.form-section + .form-section { margin-top: 2.25rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.form-section__title { font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; color: var(--purple-200); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .75rem; }
.form-section__title span { color: var(--text-dim); }

.field { display: grid; gap: .5rem; }
.field label, .field legend, .field__label { font-weight: 700; font-size: .95rem; color: var(--silver-100); padding: 0; }
.field .opt { font-weight: 500; color: var(--text-dim); font-size: .85rem; }
.field fieldset, fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: .85rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.03); color: var(--text);
  font-size: 1rem; /* 16px+ stops iOS zoom */
  transition: border-color var(--fast), box-shadow var(--fast), background-color var(--fast);
}
.input::placeholder, .textarea::placeholder { color: #80849a; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b794ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px;
}
.select option { background: var(--surface); color: var(--text); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(220,223,230,.3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--purple-400); background: rgba(124,58,237,.06);
  box-shadow: 0 0 0 4px rgba(124,58,237,.2);
}
.field.is-invalid .input, .field.is-invalid .select, .field.is-invalid .textarea { border-color: var(--error); }
.field__error { display: none; color: var(--error); font-size: .88rem; font-weight: 600; }
.field.is-invalid .field__error { display: block; }
.field__hint { color: var(--text-dim); font-size: .86rem; }

/* Checkbox / radio "chips" */
.options { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option span {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .6rem 1rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.025);
  font-size: .94rem; font-weight: 600; color: var(--silver-200); cursor: pointer;
  transition: border-color var(--fast), background-color var(--fast), color var(--fast), box-shadow var(--fast);
}
.option span::before {
  content: ""; width: 16px; height: 16px; border-radius: 5px; flex: none;
  border: 1.5px solid rgba(220,223,230,.45); transition: inherit;
  background: center / 12px no-repeat;
}
.option input[type="radio"] + span::before { border-radius: 50%; }
.option:hover span { border-color: rgba(220,223,230,.35); }
.option input:checked + span {
  border-color: var(--purple-400); background: rgba(124,58,237,.16); color: #fff;
  box-shadow: 0 0 20px -8px var(--glow);
}
.option input:checked + span::before {
  border-color: var(--purple-300); background-color: var(--purple-500);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.option input:focus-visible + span { outline: 2px solid var(--purple-300); outline-offset: 2px; }
@media (max-width: 480px) {
  .form-card { padding: 1.35rem 1.1rem; }
  .options { gap: .5rem; }
  .option span { padding: .55rem .8rem; font-size: .9rem; gap: .45rem; }
}

/* File upload */
.upload {
  position: relative; display: flex; align-items: center; gap: 1rem;
  padding: 1.15rem 1.25rem; border-radius: var(--radius-sm);
  border: 1px dashed rgba(220,223,230,.28); background: rgba(255,255,255,.02);
  transition: border-color var(--fast), background-color var(--fast);
  cursor: pointer;
}
.upload:hover, .upload:focus-within { border-color: var(--purple-400); background: rgba(124,58,237,.06); }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload__text strong { display: block; color: var(--silver-100); font-size: .97rem; }
.upload__text span { font-size: .86rem; color: var(--text-dim); }

.form-submit { margin-top: 2.25rem; }
.form-submit .btn { width: 100%; min-height: 60px; font-size: 1.05rem; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-top: 1.25rem; list-style: none; padding: 0; }
.badges li { display: inline-flex; align-items: center; gap: .45rem; font-size: .84rem; font-weight: 600; color: var(--text-muted); }
.badges .icon { color: var(--purple-300); width: 1rem; height: 1rem; }
.form-note { margin-top: 1rem; font-size: .84rem; color: var(--text-dim); text-align: center; }
.hidden-field { display: none; }

.contact-card + .contact-card { margin-top: 1rem; }
.contact-card { display: flex; gap: 1.1rem; align-items: center; }
.contact-card__label { font-size: var(--fs-tiny); letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--text-dim); }
.contact-card__value { display: flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.12rem; color: var(--silver-100); word-break: break-word; }
.contact-card a.contact-card__value:hover { color: var(--purple-200); }

/* ---------------------------------------------------------------------
   14. FOOTER + MOBILE ACTION BAR
   --------------------------------------------------------------------- */
.site-footer { position: relative; padding-top: clamp(4rem, 8vw, 6.5rem); background: linear-gradient(180deg, var(--bg), #040307); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--brand-line); }
.footer-grid { display: grid; gap: 2.75rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .footer-grid { grid-template-columns: 1.4fr .8fr 1fr 1.25fr; gap: 3rem; } }
.footer-brand__logo { height: 159px; } /* fixed so the footer never jumps while the logo loads */
.footer-brand img { width: 170px; height: 159px; }
.footer-brand__line { margin-top: 1.5rem; font-family: var(--font-display); font-size: .9rem; letter-spacing: -.01em; line-height: 1.6; color: var(--silver-200); }
.footer-brand__tag { margin-top: .5rem; font-size: var(--fs-tiny); letter-spacing: .2em; text-transform: uppercase; color: var(--text-dim); }
.footer-col h2 { font-family: var(--font-body); font-size: var(--fs-tiny); font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--purple-300); margin-bottom: 1.25rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; }
.footer-col a { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; color: var(--text-muted); transition: color var(--fast); }
.footer-col a:hover { color: #fff; }
.footer-col .icon { color: var(--purple-300); width: 1.05rem; }
.footer-col p { color: var(--text-muted); font-size: .95rem; }
.footer-bottom {
  margin-top: clamp(3rem, 6vw, 5rem); padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between;
  font-size: .85rem; color: var(--text-dim);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-bottom strong { color: var(--text-muted); font-weight: 600; }

/* Social links (footer, About details card, Get a Quote page).
   The icons are inline SVGs (not from icons.svg) so they always show,
   even if a phone has an old copy of the icon file cached. */
.social-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; position: relative; z-index: 2; }
.social-links .social-link {
  position: relative; z-index: 2; pointer-events: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-height: 44px; padding: 0; flex: none;
  border-radius: 12px;
  color: #d6d6e0; /* light silver: clearly visible on the dark background */
  background-color: rgba(255,255,255,.05);
  border: 1px solid rgba(214,214,224,.28);
  transition: color var(--fast), border-color var(--fast), box-shadow var(--med) var(--ease-out), transform var(--med) var(--ease-out), background-color var(--fast);
  -webkit-tap-highlight-color: rgba(124,58,237,.25);
}
.social-links .social-link svg { display: block; width: 22px; height: 22px; flex: none; }
.social-links .social-link:hover, .social-links .social-link:focus-visible {
  color: #fff; border-color: rgba(183,148,255,.7);
  background-color: rgba(124,58,237,.16);
  box-shadow: 0 0 0 1px rgba(183,148,255,.25), 0 10px 26px -10px rgba(124,58,237,.8), 0 0 22px -6px var(--glow);
  transform: translateY(-2px);
}
.social-links .social-link:active { transform: translateY(0) scale(.96); }
/* "Follow our work" block on the quote page */
.follow { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.follow__text { color: var(--text-muted); font-size: .95rem; }
.follow .social-links { margin-top: .85rem; }
.follow .text-link { margin-top: .5rem; }
.follow .text-link svg.g { display: block; width: 18px; height: 18px; color: #d6d6e0; }

/* Sticky "Text us / Get a quote" bar on phones */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(7,6,11,.82); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .5s var(--ease-out);
}
.action-bar .btn { min-height: 50px; padding-inline: .75rem; }
.action-bar.is-visible { transform: none; }
.menu-open .action-bar { transform: translateY(110%); }
@media (max-width: 899px) { body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (min-width: 900px) { .action-bar { display: none; } }

/* ---------------------------------------------------------------------
   15. MOTION — scroll reveals + page transitions
   --------------------------------------------------------------------- */
/* Elements are only hidden once main.js has started watching them
   (.reveal-on), so content can never get stuck invisible. */
.reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translate3d(0, 24px, 0); }
.reveal-on [data-reveal="fade"]:not(.is-in) { transform: none; }
.reveal-on [data-reveal="scale"]:not(.is-in) { transform: scale(.97); }
.reveal-on [data-reveal] {
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* Fade between pages */
body { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body.is-leaving { opacity: 0; transition: opacity .22s ease; }

/* ---------------------------------------------------------------------
   16. REDUCED MOTION — everything still works, just without movement
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .hero__main, .page-hero__img { animation: none !important; transform: scale(1.04); }
  .hero__grain, .hero-word, .hero__copy > * { animation: none !important; }
  .card--hover:hover, .btn:hover { transform: none; }
  .photo img, .cta-banner__img { transform: none !important; }
  body.is-leaving { transition: none; }
}
