/* ===== Apple stage-flow design system (ported from nspirephotocheck.com) =====
   Presentation only: same words, same pages, re-dressed in the product
   sites' system — full-screen alternating stages on the homepage,
   alternating light bands inside, flat hairline cards, big type,
   the two-way ghost reveal, and the two-line drifting mobile menu.
   styles.css is untouched; brand colors come from its variables. */
:root{
  --a-ink:#1d1d1f; --a-gray:#6e6e73; --a-faint:#f5f5f7; --a-hair:#e3e3e6;
  --brand:var(--pine); --brand2:var(--pine2); --accent:var(--terra);
  --stage-dark:#17231b;
}
/* No sideways pan (2026-11-07): the page must never scroll or
   drift horizontally. overflow-x:clip on the root elements stops
   any horizontal scrollable overflow WITHOUT creating a scroll
   container (so the sticky mobile menu keeps working), and
   -webkit-text-size-adjust stops iOS from inflating text past
   the widths the header fit was computed at. */
html{-webkit-text-size-adjust:100%;overflow-x:clip}
body{overflow-x:clip}
body{background:#fff;color:var(--a-ink)}
/* Header is plain static (the product pattern): it scrolls away;
   only the mobile menu rows pin to the top. */
header.main{position:static}
h2{font-size:clamp(1.9rem,4.2vw,2.9rem);line-height:1.12;letter-spacing:-.022em;font-weight:800;color:var(--brand);text-align:center;margin-bottom:14px}
.lede{font-size:1.18rem;line-height:1.55;color:var(--a-gray);max-width:760px;margin:0 auto 40px;text-align:center}
.two h2{text-align:left}
.two .lede{margin-left:0;text-align:left}
section{padding:100px 0}
section.band-white{background:#fff}
section.band-faint{background:var(--a-faint)}
/* Cards, steps, stats, lists — flat, hairline, generous */
.card,ol.steps li{background:#fff;border:1px solid var(--a-hair);border-radius:20px;box-shadow:none;padding:30px}
.card p,ol.steps p{color:var(--a-gray)}
.card h3,ol.steps h3{color:var(--brand)}
.stats div{background:#fff;border:1px solid var(--a-hair);border-radius:20px;box-shadow:none;padding:28px 14px}
.stats b{font-size:clamp(2.2rem,4.4vw,3.2rem);letter-spacing:-.02em}
.tag{background:var(--a-faint);border:1px solid var(--a-hair)}
.checklist li{border:1px solid var(--a-hair);border-radius:16px;box-shadow:none}
details{border:1px solid var(--a-hair);border-radius:18px;box-shadow:none;padding:20px 24px}
summary{color:var(--a-ink);font-size:1.05rem}
details p{color:var(--a-gray)}
.clients div{border:1px solid var(--a-hair);border-radius:16px}
.brand-tile{border:1px solid var(--a-hair);border-radius:16px}
input,select,textarea{border:1px solid var(--a-hair);border-radius:12px}
/* Buttons — gold/brand pills, like the product sites */
.btn{border-radius:999px;padding:14px 28px;font-size:1.02rem}
.btn.dark{background:var(--brand);color:#fff}
header.main .btn.small{padding:9px 18px;font-size:.92rem;border-radius:999px}
/* Closing band — the dark stage color */
.cta-band{background:var(--stage-dark);padding:100px 0}
.cta-band h2{color:#fff}
.cta-band p{color:#a1a1a6;font-size:1.18rem}
/* Stages — one idea per screen, dramatic dark/light alternation */
.stage{min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:96px 0}
.stage .wrap{width:100%}
.stage-white{background:#fff;color:var(--a-ink)}
.stage-faint{background:var(--a-faint);color:var(--a-ink)}
.stage-black{background:var(--stage-dark);color:#fff}
.stage-black h2,.stage-black h3{color:#fff}
.stage-black .lede{color:#a1a1a6}
.stage-black .card,.stage-black ol.steps li{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.16)}
.stage-black .card h3,.stage-black ol.steps h3{color:#fff}
.stage-black .card p,.stage-black ol.steps p{color:#a1a1a6}
.stage-black .form-note{color:#a1a1a6}
.stage-black .btn.dark{background:#fff;color:var(--a-ink)}
.stage-black .stats div{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.16)}
.stage-black .stats b{color:#fff}
.stage-black .stats span{color:#a1a1a6}
/* Hero — a full-screen dark stage over the site's own photo */
.hero.stage{min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:96px 0}
.hero.stage h1{font-size:clamp(2.4rem,5.6vw,3.9rem);line-height:1.06;letter-spacing:-.026em;max-width:880px}
.hero.stage p{font-size:1.25rem;line-height:1.55}
/* Detail bands on the homepage keep the stage rhythm without
   forcing every block to a full screen */
.detail{padding:100px 0}
.detail-white{background:#fff}
.detail-faint{background:var(--a-faint)}
@media (max-width:860px){
  section,.detail{padding:64px 0}
  .stage,.hero.stage{padding:64px 0}
  .cta-band{padding:64px 0}
  .lede{font-size:1.08rem}
}
/* Reveal-on-scroll — GHOST effect (Apple behavior): every content
   block is a target and targets start transparent and melt to
   solid SLOWLY (1s cubic-bezier(.17,0,.55,1) with a 30px rise and
   1.5px blur; images also settle from scale 1.05) only when they
   actually enter the viewport, in BOTH scroll directions. The
   hidden state exists only when JS is active. There is NO global
   force-reveal — the script rescues only elements already inside
   the viewport. The no-IntersectionObserver path reveals
   everything, and with reduced-motion preferences nothing is
   ever hidden. The header is never a reveal target. */
@media (prefers-reduced-motion: no-preference){
  .js .reveal{opacity:0;transform:translateY(30px);filter:blur(1.5px);transition:opacity 1s cubic-bezier(.17,0,.55,1),transform 1s cubic-bezier(.17,0,.55,1),filter 1s cubic-bezier(.17,0,.55,1)}
  .js .reveal img{transform:scale(1.05);transition:transform 1s cubic-bezier(.17,0,.55,1)}
  .js .reveal.in{opacity:1;transform:none;filter:none}
  .js .reveal.in img{transform:none}
}
/* Compact mobile header: logo + wordmark and the gold pill share
   one row; the nav links run in two drifting rows beneath.
   Desktop is unchanged. */
@media (max-width:860px){
  .topbar{font-size:.8rem;padding:6px 0}
  .topbar .wrap{flex-direction:column;flex-wrap:nowrap;gap:2px;align-items:center;text-align:center}
  .topbar .wrap span:first-child{white-space:nowrap;font-size:clamp(11px,3.1vw,.8rem)}
  .topbar .wrap span:last-child{white-space:nowrap}
  header.main .wrap{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:center;column-gap:8px;text-align:left;padding-top:10px;padding-bottom:8px}
  body>nav{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:16px;padding-bottom:2px;scrollbar-width:none;justify-content:flex-start}
  body>nav::-webkit-scrollbar{display:none}
  body>nav a{white-space:nowrap;flex:0 0 auto;font-size:.88rem}
  header.main .logo{order:1;flex:0 1 auto;min-width:0}
  header.main .logo b{white-space:nowrap;font-size:clamp(.78rem,3.9vw,1rem)}
  header.main .btn.small{order:2;position:static;flex:0 0 auto;margin:0 0 0 auto;font-size:.8rem;padding:6px 12px;white-space:nowrap}
  body>nav{position:sticky;top:0;z-index:1000;background:var(--brand);box-shadow:0 2px 10px rgba(0,0,0,.25);padding:9px 20px 8px}
  .desk-only{display:none !important}
}
/* Small-phone header fit (2026-11-07): on narrow phones the wordmark
   and the gold pill scale down so the FULL lockup + the FULL pill
   always share the one row with margin to spare. Applies at 560px
   and below only; larger screens are unchanged. */
@media (max-width:560px){
  header.main .wrap{padding-left:12px;padding-right:12px;column-gap:6px}
  header.main .logo b{font-size:.8rem}
  header.main .btn.small{font-size:.72rem;padding:5px 10px}
  /* Topbar fit: both topbar lines stay on ONE line, centered; the
     tagline and the contact line scale down (worst-case bold metrics
     fit inside 360px) instead of clipping at the edges. */
  .topbar .wrap{padding-left:10px;padding-right:10px}
  .topbar .wrap span:first-child{font-size:clamp(8.6px,2.5vw,11px);letter-spacing:-.02em}
  .topbar .wrap span:last-child{font-size:12.5px}
}
/* Header fix: the nav lives outside the header (a direct child of
   body, right after it) so the two marquee rows can pin to the top
   of the screen on mobile while the rest of the header scrolls
   away. On desktop the nav is pulled back up over the header row
   and the pill keeps its place at the right, as before. */
@media (min-width:861px){
  header.main .wrap{justify-content:flex-start;flex-wrap:nowrap;padding-top:12px;padding-bottom:12px}
  header.main .logo b{font-size:1.3rem}
  header.main .btn.small{margin-left:auto}
  body>nav{position:relative;z-index:5;height:48px;margin:-48px auto 0;max-width:1140px;padding:0 196px 0 20px;justify-content:flex-end;pointer-events:none;background:transparent}
  body>nav a{pointer-events:auto}
  .mq-only{display:none !important}
}
/* Nav marquee plumbing — the wrapper spans vanish everywhere
   (display:contents) and the duplicate link sets stay hidden, so
   the desktop header renders exactly as before; the mobile
   blocks below turn the wrappers into two real rows. */
.nav-track,.nav-set{display:contents}
.nav-set.dup{display:none}
/* Mobile nav rows with reduced motion: no animation — the two
   half-menu rows sit static, each scrollable by hand like the
   old single strip. */
@media (max-width:860px) and (prefers-reduced-motion: reduce){
  body>nav{flex-direction:column;overflow:visible;gap:6px}
  body>nav .nav-track{display:flex;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;gap:16px;scrollbar-width:none;padding-bottom:2px}
  body>nav .nav-track::-webkit-scrollbar{display:none}
}
/* Mobile nav marquee (motion-capable only): the links split
   across TWO rows drifting slowly in OPPOSITE directions — the
   top row right to left, the bottom row left to right — so the
   whole menu stays on screen as it moves. Each track holds
   identical copies of its half-set and loops by half its width
   (a whole number of sets, so the loop is seamless); --mqd is
   scaled per row so both rows travel at the same speed. The
   animation pauses on touch, hover, and keyboard focus so links
   stay tappable; the pause script holds it for 5s after a touch. */
@media (max-width:860px) and (prefers-reduced-motion: no-preference){
  body>nav{flex-direction:column;overflow:hidden;gap:6px}
  .nav-track{display:flex;width:max-content;align-self:flex-start}
  .nav-row1{animation:nav-marquee var(--mqd,19s) linear infinite}
  .nav-row2{animation:nav-marquee-rev var(--mqd,19s) linear infinite}
  .nav-set{display:flex;align-items:center;gap:16px;padding-right:16px}
  .nav-set.dup{display:flex}
  body>nav:hover .nav-track,
  body>nav:focus-within .nav-track,
  body>nav.mq-paused .nav-track{animation-play-state:paused}
  @keyframes nav-marquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
  @keyframes nav-marquee-rev{from{transform:translateX(-50%)}to{transform:translateX(0)}}
}
/* Half-height pinned header (2026-11-07, phones ≤560px): the owner
   asked for the pinned block at HALF the slimmed height, so on top
   of the earlier pass this block now also cuts font sizes across
   all five rows (top strip, contact line, wordmark row and the two
   drifting menu rows). Every element and every word stays, each
   line stays on ONE line — the top strip keeps the fluid clamp so
   it scales to fit 360px — and the marquee animation, directions,
   speeds, touch-pause and the overflow-x:clip lock above are all
   untouched. Desktop is unchanged. */
@media (max-width:560px){
  .topbar{padding:1px 0}
  .topbar .wrap{padding-top:0;padding-bottom:0;gap:0}
  .topbar .wrap span{line-height:1.1}
  .topbar .wrap span:first-child{font-size:clamp(6.4px,1.8vw,9px)}
  .topbar .wrap span:last-child{font-size:8px}
  header.main .wrap{padding-top:2px;padding-bottom:1px}
  /* Longer wordmark ("All Building Services LLC", owner-directed
     2026-11-08): fluid size so the full name fits on the left of
     the one-line row at 360px while the pill stays pinned right. */
  header.main .logo b{font-size:clamp(.64rem,3vw,.74rem);line-height:1.05;letter-spacing:0}
  header.main .btn.small{font-size:.62rem;padding:2px 9px;line-height:1.15}
  body>nav{padding-top:2px;padding-bottom:1px;gap:2px}
  body>nav a{font-size:.66rem;padding-top:1px;padding-bottom:1px;line-height:1.08}
}
