/* =========================================================
   B-Wrapped — styles
   Tokens → base → layout → components → sections → motion
   ========================================================= */

/* Self-hosted fonts (SIL Open Font License), Latin subset only */
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/saira-condensed-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Saira Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("assets/fonts/saira-condensed-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* color */
  --navy-950: #050B18;
  --navy-900: #0A1530;
  --navy-850: #0D1B3D;
  --navy-800: #11234F;
  --navy-700: #1A3270;
  --blue-500: #EDEBF7; /* secondary accent: off-white */
  --blue-300: #AAB7D4;
  --yellow: #FFB81B; /* PANTONE 1235 C */
  --yellow-600: #E5A20F;
  --text: #EEF2FA;
  --muted: #AAB7D4;
  --line: rgba(143, 177, 255, .16);
  --danger: #FF8A8A;
  --success: #6EE7A8;

  /* type */
  --font-display: "Saira Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* spacing (8pt) */
  --s1: 4px; --s2: 8px; --s3: 16px; --s4: 24px; --s5: 32px; --s6: 48px; --s7: 64px; --s8: 96px;
  --radius: 4px;
  --skew: -8deg;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --dur-fast: 160ms;
  --dur-med: 320ms;
  --dur-slow: 700ms;

  /* z */
  --z-header: 40;
  --z-bar: 50;
  --z-dialog: 100;

  --header-h: 72px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--yellow); text-underline-offset: 3px; }
button { font: inherit; color: inherit; touch-action: manipulation; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.02; margin: 0 0 var(--s3); letter-spacing: .005em; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 700; }
p { margin: 0 0 var(--s3); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: var(--s3); top: -100px; z-index: 999; background: var(--yellow); color: var(--navy-950); padding: var(--s2) var(--s3); font-weight: 600; }
.skip-link:focus { top: var(--s3); }

.container { width: min(1200px, 100% - 2 * var(--s4)); margin-inline: auto; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-lede { color: var(--muted); font-size: 1.125rem; max-width: 62ch; }
.kicker { font-family: var(--font-display); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); font-size: .95rem; margin-bottom: var(--s2); }
.hl { color: var(--yellow); }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--text);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-med), color var(--dur-med), border-color var(--dur-med), box-shadow var(--dur-med);
}
.btn:active { transform: scale(.97); }
.btn-primary { --bg: var(--yellow); --fg: var(--navy-950); box-shadow: 0 8px 30px -8px rgba(255, 184, 27, .55); }
.btn-primary::after { /* shine sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease-out); }
.btn-primary:hover { box-shadow: 0 10px 36px -6px rgba(255, 184, 27, .75); }
.btn-primary .i { transition: transform var(--dur-med) var(--ease-out); }
.btn-primary:hover .i { transform: translateX(4px); }
.btn-ghost { border-color: rgba(238, 242, 250, .35); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.25rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--header-h);
  transition: background-color var(--dur-med), box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out);
}
/* blur lives on a pseudo-element so it doesn't trap the fixed mobile menu */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity var(--dur-med); background: rgba(5, 11, 24, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand-logo { height: 44px; width: auto; display: block; }
@media (max-width: 420px) { .brand-logo { height: 38px; } }

.nav-toggle { display: none; }
.nav-menu { display: flex; align-items: center; gap: var(--s4); list-style: none; margin: 0; padding: 0; }
.nav-menu a:not(.btn) {
  position: relative; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 10px 0; display: inline-block;
}
.nav-menu a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur-med) var(--ease-out);
}
.nav-menu a:not(.btn):hover::after, .nav-menu a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-phone a { color: var(--yellow) !important; }
/* narrow desktop widths: keep all seven menu items on one line ("Instant Estimate" shortens to "Estimate") */
@media (min-width: 900px) and (max-width: 1019px) {
  .nav-menu { gap: 14px; }
  .nav-est-long { display: none; }
}

@media (max-width: 899px) {
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; position: relative; z-index: 2;
  }
  .burger, .burger::before, .burger::after { display: block; width: 26px; height: 2px; background: var(--text); transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast); }
  .burger { position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -8px; } .burger::after { top: 8px; }
  .nav-toggle[aria-expanded="true"] .burger { background: transparent; }
  .nav-toggle[aria-expanded="true"] .burger::before { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .burger::after { transform: translateY(-8px) rotate(-45deg); }

  .nav-menu {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: var(--s4);
    background: linear-gradient(160deg, var(--navy-850), var(--navy-950));
    clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
    visibility: hidden;
    transition: clip-path 500ms var(--ease-out), visibility 0s 500ms;
  }
  .nav-menu.is-open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); visibility: visible; transition: clip-path 500ms var(--ease-out); }
  .nav-menu a:not(.btn) { font-family: var(--font-display); font-size: 2.25rem; font-weight: 800; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; padding: calc(var(--header-h) + 32px) 0 96px; overflow: hidden;
  background: radial-gradient(120% 80% at 80% 20%, var(--navy-700) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-stripes {
  position: absolute; right: -10%; top: -20%; width: 55%; height: 140%;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 22px, transparent 22px 40px, var(--blue-500) 40px 52px, transparent 52px 120px);
  transform: skewX(-22deg); opacity: .08;
}

.hero-inner { position: relative; display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 1000px) { .hero-inner { grid-template-columns: 1.05fr 1fr; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--blue-300); margin-bottom: var(--s4); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255,184,27,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,184,27,0); } 100% { box-shadow: 0 0 0 0 rgba(255,184,27,0); } }

.hero-title { font-size: clamp(3.25rem, 10vw, 7.25rem); font-weight: 800; line-height: .9; margin-bottom: var(--s4); }
.hero-title .line { display: block; overflow: hidden; padding: 0 .08em .04em 0; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); animation: rise 900ms var(--ease-out) forwards; }
.hero-title .line:nth-child(2) > span { animation-delay: 120ms; }
.hero-title .line:nth-child(3) > span { animation-delay: 240ms; }
.hero-title .accent { color: var(--yellow); }
@keyframes rise { to { transform: translateY(0); } }

.hero-lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 52ch; animation: fade-up 800ms 450ms var(--ease-out) both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s3); margin: var(--s5) 0; animation: fade-up 800ms 560ms var(--ease-out) both; }
.hero-tags { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; padding: 0; margin: 0; animation: fade-up 800ms 680ms var(--ease-out) both; }
.hero-tags li { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; margin: 0; }
.hero-frame {
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8);
  animation: wipe-in 1100ms 200ms var(--ease-out) both;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: settle 1600ms 200ms var(--ease-out) forwards; }
@keyframes wipe-in { from { clip-path: polygon(8% 0, 8% 0, 0 100%, 0 100%); } to { clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); } }
@keyframes settle { to { transform: scale(1); } }
.squeegee {
  position: absolute; top: -10%; bottom: -10%; width: 10px; left: 0;
  background: var(--yellow); box-shadow: 0 0 30px 6px rgba(255,184,27,.6);
  transform: translateX(-20px) skewX(-8deg);
  animation: squeegee 1100ms 200ms var(--ease-out) both;
}
@keyframes squeegee { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.hero-visual::before { /* yellow offset frame */
  content: ""; position: absolute; inset: 18px -14px -18px 14px; border: 2px solid var(--yellow);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); opacity: .5; z-index: -1;
  animation: fade-up 900ms 800ms var(--ease-out) both;
}
.hero-badge {
  position: absolute; left: 4%; bottom: -22px; display: grid; gap: 2px;
  background: var(--navy-950); border-left: 4px solid var(--yellow); padding: 12px 18px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.7);
  animation: fade-up 800ms 1000ms var(--ease-out) both;
}
.hero-badge strong { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; }
.hero-badge span { color: var(--muted); font-size: .9rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.scroll-cue .wheel { width: 24px; height: 38px; border: 2px solid var(--muted); border-radius: 14px; position: relative; }
.scroll-cue .wheel::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; background: var(--yellow); border-radius: 2px; animation: scroll-dot 1.8s var(--ease-out) infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-height: 700px), (max-width: 999px) { .scroll-cue { display: none; } }

/* ---------- services ---------- */
.services { background: var(--navy-900); }
.service-grid { display: grid; gap: var(--s4); }
@media (min-width: 700px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(6, 1fr); }
  .service-card, .service-card:first-child { grid-column: span 2; } /* six cards: two even rows of three */
}
.service-card {
  position: relative; padding: var(--s5); background: linear-gradient(170deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med), box-shadow var(--dur-med);
}
.service-card::before { /* racing stripe on hover */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; z-index: 2;
  background: linear-gradient(90deg, var(--yellow) 0 60%, var(--blue-500) 60% 75%, transparent 75%);
  transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(255,184,27,.4); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.service-card:hover::before, .service-card:focus-within::before { transform: scaleX(1); }
.service-media {
  position: relative; margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-950);
}
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--navy-850) 0%, transparent 55%); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-media.is-film {
  display: grid; place-items: center;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%) 0 0 / 250% 100% no-repeat,
    radial-gradient(120% 90% at 30% 20%, var(--navy-700), var(--navy-950));
  animation: film-sheen 4s var(--ease-out) infinite;
}
.service-media.is-film span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; text-transform: uppercase; text-align: center; color: rgba(238,242,250,.85); letter-spacing: .04em; }
@keyframes film-sheen { 0% { background-position: 150% 0, 0 0; } 60%, 100% { background-position: -100% 0, 0 0; } }
.service-icon { position: relative; z-index: 1; margin-top: -32px; width: 64px; height: 64px; display: grid; place-items: center; background: var(--navy-950); border: 1px solid rgba(255,184,27,.35); border-radius: 6px; margin-bottom: var(--s4); transform: skewX(var(--skew)); }
.service-icon svg { width: 40px; height: 40px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: skewX(8deg); }
.service-icon .fill { fill: var(--yellow); stroke: none; }
.service-card p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(-45deg); }
.card-link { margin-top: auto; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; display: inline-flex; gap: 8px; min-height: 44px; align-items: center; }
.card-link span { transition: transform var(--dur-med) var(--ease-out); }
.card-link:hover span { transform: translateX(6px); }

/* ---------- certifications ---------- */
.certs { background: var(--navy-950); border-block: 1px solid var(--line); padding: clamp(48px, 7vw, 80px) 0; position: relative; overflow: hidden; }
.certs::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 40px, rgba(255,184,27,.025) 40px 42px); pointer-events: none; }
.certs-inner { position: relative; display: grid; gap: var(--s5); align-items: center; }
.certs-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); margin: 0; }
.cert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cert-list > li { flex: 0 1 calc((100% - 12px) / 2); }
@media (min-width: 600px) { .cert-list > li { flex-basis: calc((100% - 24px) / 3); } }
@media (min-width: 900px) { .cert-list { display: grid; grid-template-columns: repeat(6, 1fr); } }
.cert {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; text-align: center;
  min-height: 132px; padding: 20px 12px; background: linear-gradient(170deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line); border-radius: 6px;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.cert:hover { transform: translateY(-4px); border-color: rgba(255,184,27,.45); }
/* official logos in true brand colors on a white plate */
.cert-logo-wrap {
  display: grid; place-items: center; width: 100%; height: 74px; padding: 10px 12px;
  background: #fff; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.cert-logo {
  max-height: 44px; max-width: 70%; width: auto; height: auto; object-fit: contain;
  transition: transform var(--dur-med) var(--ease-out);
}
.cert-logo-wide { max-height: 40px; max-width: 92%; }
.cert:hover .cert-logo { transform: scale(1.05); }
.cert-sub strong { color: var(--yellow); font-weight: 700; margin-right: 2px; }
.cert-shield { width: 28px; height: 28px; fill: none; stroke: var(--yellow); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cert-name { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.05; text-transform: uppercase; color: var(--text); }
.cert-sub { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- render to road ---------- */
.render { background: var(--navy-950); }
.r2r-grid { display: grid; gap: var(--s4); margin-bottom: var(--s8); }
@media (min-width: 900px) { .r2r-grid { grid-template-columns: 1fr 1fr; } }
.r2r { margin: 0; background: var(--navy-850); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.r2r-media { position: relative; aspect-ratio: 4 / 3; background: #0b1226; overflow: hidden; }
.r2r-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.r2r-media img.contain { object-fit: contain; background: #f3f4f6; }
/* the install photo is "applied" over the proof with a squeegee wipe */
.r2r-install { z-index: 1; clip-path: inset(0 0 0 0); transition: clip-path 820ms var(--ease-out); }
.r2r[data-state="design"] .r2r-install { clip-path: inset(0 100% 0 0); }
.r2r-media::after {
  content: ""; position: absolute; top: -4%; bottom: -4%; left: 100%; width: 5px; margin-left: -3px; z-index: 2;
  background: var(--yellow); box-shadow: 0 0 22px 2px rgba(255,184,27,.65);
  opacity: 0; transition: left 820ms var(--ease-out), opacity 160ms;
}
.r2r[data-state="design"] .r2r-media::after { left: 0; }
.r2r.is-wiping .r2r-media::after { opacity: 1; }
.r2r-design { transition: transform 1200ms var(--ease-out); }
.r2r[data-state="design"] .r2r-design { transform: scale(1.015); }
.r2r figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); }
.r2r figcaption strong { display: block; font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; }
.r2r figcaption span { color: var(--muted); font-size: .9rem; }
.toggle { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--navy-950); border-radius: 999px; padding: 4px; border: 1px solid var(--line); isolation: isolate; }
.toggle::before { /* sliding pill */
  content: ""; position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--yellow); border-radius: 999px; box-shadow: 0 4px 14px -4px rgba(255,184,27,.6);
  transition: transform 520ms cubic-bezier(.34, 1.36, .5, 1);
}
.r2r[data-state="install"] .toggle::before { transform: translateX(100%); }
.toggle button { min-height: 40px; min-width: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); transition: color 300ms var(--ease-out); }
.toggle button:hover { color: var(--text); }
.toggle button[aria-pressed="true"] { color: var(--navy-950); }

/* before / after slider */
.ba-block { display: grid; gap: var(--s5); align-items: center; margin-bottom: var(--s8); }
@media (min-width: 1000px) { .ba-block { grid-template-columns: .7fr 1.3fr; } }
.ba-copy h3 { font-size: clamp(2rem, 4vw, 2.75rem); }
.ba-copy p { color: var(--muted); font-size: 1.1rem; }
.ba { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--navy-950); user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--yellow);
  box-shadow: 0 0 20px rgba(255,184,27,.6); pointer-events: none;
}
.ba-handle svg {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; padding: 12px; transform: translate(-50%, -50%);
  background: var(--yellow); border-radius: 50%; fill: none; stroke: var(--navy-950); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.ba-tag { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(5,11,24,.8); font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba-tag-before { left: 16px; opacity: var(--tag-before, 1); transition: opacity 180ms; }
.ba-tag-after { right: 16px; color: var(--yellow); opacity: var(--tag-after, 1); transition: opacity 180ms; }
.ba-handle svg { transition: transform 260ms cubic-bezier(.34, 1.36, .5, 1), box-shadow 260ms; }
.ba:hover .ba-handle svg { box-shadow: 0 8px 24px rgba(0,0,0,.5), 0 0 0 6px rgba(255,184,27,.18); }
.ba.is-grabbing .ba-handle svg { transform: translate(-50%, -50%) scale(1.12); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 3px; }

.gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.gallery-head h3 { font-size: 2rem; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-weight: 600; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); transition: all var(--dur-med); }
.filter:hover { color: var(--text); border-color: var(--muted); }
.filter.is-active { background: var(--text); color: var(--navy-950); border-color: var(--text); }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); grid-auto-flow: dense; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); } .g-wide { grid-column: span 2; } }
.g-item { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.g-item.is-hidden { display: none; }
.gallery:not(.is-expanded) .g-item.g-more.in-all { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: var(--s5); }
.gallery-more .more-count { color: var(--yellow); }
.g-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: var(--navy-850); aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .gallery { grid-auto-rows: clamp(220px, 21vw, 290px); }
  .g-btn { aspect-ratio: auto; }
  .g-btn img { position: absolute; inset: 0; }
}
.g-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease-out), filter 400ms; }
.g-btn:hover img, .g-btn:focus-visible img { transform: scale(1.04); filter: brightness(1.06); }
/* vinyl-peel corner: the top-right corner lifts like film being pulled back */
.g-btn::after {
  content: ""; position: absolute; top: 0; right: 0; z-index: 2; width: 44px; height: 44px; pointer-events: none;
  background: linear-gradient(225deg, var(--navy-900) 0 50%, #e9ecf2 50%, #c3c9d4 72%, #f7f8fb 100%);
  box-shadow: -4px 4px 10px rgba(0,0,0,.35);
  border-bottom-left-radius: 3px;
  transform: scale(0); transform-origin: 100% 0;
  transition: transform 460ms cubic-bezier(.34, 1.36, .5, 1);
}
.g-btn:hover::after, .g-btn:focus-visible::after { transform: scale(1); }
.g-cap { transition: transform 480ms var(--ease-out); }
.g-btn:hover .g-cap, .g-btn:focus-visible .g-cap { transform: translateY(-4px); }
.g-cap strong { position: relative; justify-self: start; }
.g-cap strong::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ease-out) 80ms;
}
.g-btn:hover .g-cap strong::after, .g-btn:focus-visible .g-cap strong::after { transform: scaleX(1); }
.g-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; text-align: left;
  background: linear-gradient(to top, rgba(5,11,24,.92), transparent);
  display: grid; gap: 0;
}
.g-cap strong { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; color: var(--text); }
.g-cap span { color: var(--yellow); font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(3,6,14,.94); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 300ms var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(.97); } }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 4px; }
.lightbox figcaption { text-align: center; padding-top: 12px; color: var(--muted); }
.lb-close, .lb-nav { position: fixed; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; transition: background-color var(--dur-med); }
.lb-close:hover, .lb-nav:hover { background: var(--yellow); color: var(--navy-950); }
.lb-close svg, .lb-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; } }

/* ---------- process ---------- */
.process { background: var(--navy-900); }
.track { position: relative; }
.track-line { position: absolute; left: 23px; top: 0; bottom: 0; width: 4px; background: rgba(255,255,255,.08); border-radius: 2px; }
.track-fill { position: absolute; inset: 0; background: var(--yellow); transform-origin: top; transform: scaleY(var(--progress, 0)); border-radius: 2px; }
.track-car .hub { fill: var(--navy-950); }
.track-car .wheel { stroke: var(--navy-950); stroke-width: 1.4; }
.track-car { position: absolute; left: 50%; top: 0; width: 80px; height: 20px; fill: var(--yellow); transform: translate(-50%, calc(var(--progress, 0) * var(--track-len, 0px))) rotate(90deg); filter: drop-shadow(0 0 8px rgba(255,184,27,.7)); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); }
.step { position: relative; padding-left: 80px; }
.step-num { position: absolute; left: 0; top: -4px; width: 50px; height: 50px; display: grid; place-items: center; background: var(--navy-950); border: 2px solid var(--yellow); border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--yellow); z-index: 1;
  transition: background-color 380ms var(--ease-out), color 380ms var(--ease-out), box-shadow 600ms var(--ease-out), transform 420ms cubic-bezier(.34, 1.36, .5, 1); }
.step.is-passed .step-num { background: var(--yellow); color: var(--navy-950); box-shadow: 0 0 0 7px rgba(255,184,27,.14); transform: scale(1.06); }
.step h3 { transition: color 380ms var(--ease-out); }
.step.is-passed h3 { color: var(--yellow); }
.step p { color: var(--muted); max-width: 46ch; }
@media (min-width: 1000px) {
  .track-line { left: 0; right: 0; top: 24px; bottom: auto; width: auto; height: 4px; }
  .track-fill { transform-origin: left; transform: scaleX(var(--progress, 0)); }
  .track-car { left: 0; top: 50%; transform: translate(calc(var(--progress, 0) * var(--track-len, 0px) - 50%), -50%); }
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
  .step { padding-left: 0; padding-top: 80px; }
  .step-num { top: 0; }
}

/* ---------- faq ---------- */
.faq { background: var(--navy-900); }
.faq-inner { display: grid; gap: var(--s5); }
@media (min-width: 1000px) { .faq-inner { grid-template-columns: .8fr 1.2fr; } }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--navy-850); border: 1px solid var(--line); border-radius: 6px; transition: border-color var(--dur-med); }
.faq details[open] { border-color: rgba(255,184,27,.45); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative; font-weight: 600; font-size: 1.1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur-med) var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); margin: 0; }
.faq details { position: relative; }
.faq details::before { /* yellow rule draws down the open answer */
  content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 2px; background: var(--yellow);
  transform: scaleY(0); transform-origin: top; transition: transform 480ms var(--ease-out);
}
.faq details[open]::before { transform: scaleY(1); }
.faq summary { transition: color 240ms var(--ease-out); }
.faq summary:hover { color: var(--yellow); }

/* ---------- quote ---------- */
.quote { background: radial-gradient(90% 70% at 0% 100%, var(--navy-700), var(--navy-950) 70%); overflow: hidden; }
.quote::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 40px, rgba(255,184,27,.03) 40px 42px); pointer-events: none; }
.quote-inner { position: relative; display: grid; gap: var(--s6); }
@media (min-width: 1000px) { .quote-inner { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.quote-info > p { color: var(--muted); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: var(--s5) 0 0; display: grid; gap: var(--s4); }
.contact-list li { display: flex; gap: var(--s3); }
.contact-list .i { width: 44px; height: 44px; padding: 11px; background: rgba(255,184,27,.12); color: var(--yellow); border-radius: 6px; transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out), transform 360ms cubic-bezier(.34, 1.36, .5, 1); }
.contact-list li:hover .i { background: var(--yellow); color: var(--navy-950); transform: rotate(-6deg); }
.contact-list .small-link span { display: inline-block; transition: transform 300ms var(--ease-out); }
.contact-list .small-link:hover span { transform: translate(3px, -3px); }
.contact-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-list a { font-weight: 600; font-size: 1.15rem; }
.contact-list .small-link { font-size: .95rem; display: inline-block; margin-top: 4px; }

.quote-form { position: relative; background: rgba(13, 27, 61, .85); border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.quote-form::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 4px; background: linear-gradient(90deg, var(--yellow) 0 50%, var(--blue-500) 50% 70%, transparent 70%); }
.field-row { display: grid; gap: 0 var(--s3); }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: var(--s3); }
.field label { display: block; font-weight: 600; margin-bottom: 6px; transition: color 240ms var(--ease-out); }
.field:focus-within label { color: var(--yellow); }
.field.is-valid input, .field.is-valid select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB81B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.req { color: var(--yellow); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--navy-950); border: 1.5px solid rgba(143,177,255,.28); border-radius: var(--radius);
  transition: border-color var(--dur-med), box-shadow var(--dur-med);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--yellow) 50%), linear-gradient(135deg, var(--yellow) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #7D8AA8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,184,27,.25); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.err { font-size: .9rem; color: var(--danger); margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.form-summary { background: rgba(255,138,138,.1); border: 1px solid var(--danger); border-radius: var(--radius); padding: 12px 16px; margin-bottom: var(--s3); color: var(--text); }
.form-summary ul { margin: 6px 0 0; padding-left: 20px; }
.form-summary a { color: var(--danger); }
.form-note { font-size: .9rem; color: var(--muted); text-align: center; margin: var(--s3) 0 0; }
.hp { position: absolute; left: -9999px; }

.spinner { display: none; width: 22px; height: 22px; border: 3px solid rgba(5,11,24,.25); border-top-color: var(--navy-950); border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn-label::after { content: "…"; }

.form-success { text-align: center; padding: var(--s5) 0; }
.form-success svg { width: 80px; height: 80px; margin: 0 auto var(--s3); fill: none; stroke: var(--yellow); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.form-success circle { stroke-dasharray: 132; stroke-dashoffset: 132; animation: draw 700ms var(--ease-out) forwards; }
.form-success path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 500ms 500ms var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 2.25rem; }
.form-success p { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); padding-bottom: 96px; }
.checker { height: 24px; background: conic-gradient(var(--text) 25%, var(--navy-950) 0 50%, var(--text) 0 75%, var(--navy-950) 0) 0 0 / 24px 24px; opacity: .9; }
.footer-inner { display: grid; gap: var(--s5); padding: var(--s7) 0 var(--s5); }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand p { color: var(--muted); max-width: 32ch; }
.footer-h { font-size: 1.1rem; letter-spacing: .14em; color: var(--yellow); font-style: normal; margin-bottom: var(--s2); }
.site-footer p, .site-footer address { color: var(--muted); margin: 0 0 6px; }
.site-footer a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 420ms var(--ease-out);
}
.site-footer a:hover, .site-footer a:focus-visible { background-size: 100% 1px; }
.back-top span { display: inline-block; transition: transform 340ms cubic-bezier(.34, 1.36, .5, 1); }
.back-top:hover span { transform: translateY(-4px); }
/* estimator button at the bottom of the page */
.footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s4); margin-top: var(--s5); margin-bottom: var(--s5); padding-top: var(--s5); border-top: 1px solid var(--line); }
.footer-cta-text { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 1.9rem); text-transform: uppercase; line-height: 1.1; }
.footer-cta-text span { display: block; margin-top: 6px; font-family: var(--font-body); font-weight: 400; font-size: 1rem; text-transform: none; color: var(--muted); }
@media (max-width: 599px) { .footer-cta .btn { width: 100%; justify-content: center; } }
/* footer links draw an underline with their background; a button keeps its own fill */
.site-footer a.btn, .site-footer a.btn:hover, .site-footer a.btn:focus-visible { background: var(--bg); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); font-size: .9rem; }
@media (min-width: 900px) { .site-footer { padding-bottom: var(--s4); } }

/* ---------- mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar);
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5,11,24,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 400ms var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.menu-open .mobile-bar { transform: translateY(110%); }
.mobile-bar a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text); border: 1px solid var(--line); }
.mobile-bar .mb-primary { background: var(--yellow); color: var(--navy-950); border-color: var(--yellow); }
@media (min-width: 900px) { .mobile-bar { display: none; } }

/* ---------- touch: designed press feedback (replaces the generic gray tap flash) ---------- */
@media (hover: none) {
  a, button, summary, .g-btn, .swatch-card { -webkit-tap-highlight-color: transparent; }
  /* phones keep :hover "stuck" after a tap, so undo hover-only looks; :active below gives the real feedback */
  .faq summary:hover { color: inherit; }
  .g-btn:hover img { transform: none; filter: none; }
  .g-btn:hover::after { transform: scale(0); }
  .g-btn:hover .g-cap { transform: none; }
  .g-btn:hover .g-cap strong::after { transform: scaleX(0); }
  .contact-list li:hover .i { background: rgba(255,184,27,.12); color: var(--yellow); transform: none; }
  .toggle button:not([aria-pressed="true"]):hover { color: var(--muted); }
  .filter:not(.is-active):hover { color: var(--muted); border-color: var(--line); }
  .cert:hover { transform: none; border-color: var(--line); }
  .cert:hover .cert-logo { transform: none; }
  .site-footer a:hover { background-size: 0 1px; }
  .btn-ghost:hover { border-color: rgba(238, 242, 250, .35); color: var(--text); }
  .btn:active { transform: scale(.96); }
  .g-btn:active img { transform: scale(1.03); filter: brightness(1.08); transition-duration: 140ms; }
  .g-btn:active::after { transform: scale(1); transition-duration: 220ms; }
  .g-btn:active .g-cap strong::after { transform: scaleX(1); transition-delay: 0ms; transition-duration: 220ms; }
  .service-card { transition: transform 160ms var(--ease-out); }
  .service-card:active { transform: scale(.985); }
  .card-link:active span { transform: translateX(6px); }
  .cert:active { transform: scale(.97); transition-duration: 120ms; }
  .filter:active, .toggle button:active { transform: scale(.94); }
  .filter, .toggle button { transition: transform 140ms var(--ease-out), color 300ms, background-color 300ms; }
  .faq summary:active { background: rgba(255,184,27,.07); }
  .contact-list li:active .i { background: var(--yellow); color: var(--navy-950); transform: rotate(-6deg); }
  .mobile-bar a { transition: transform 120ms var(--ease-out), background-color 200ms; }
  .mobile-bar a:active { transform: scale(.95); }
  .mobile-bar a:not(.mb-primary):active { background: rgba(255,184,27,.12); }
  .nav-menu a:active { color: var(--yellow); }
}

/* ---------- phone-first layouts (designed, not shrunk) ---------- */
.swipe-hint { display: none; }
@media (max-width: 699px) {
  /* hero: photo right under the headline, secondary tags dropped */
  .hero { min-height: auto; padding: calc(var(--header-h) + 20px) 0 56px; }
  .hero-inner { gap: var(--s4); }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; margin-bottom: 0; }
  .hero-title { order: 2; font-size: clamp(2.6rem, 13vw, 3.4rem); margin-bottom: 0; }
  .hero-visual { order: 3; margin-bottom: 18px; }
  .hero-lede { order: 4; margin: 0; }
  .hero-ctas { order: 5; margin: 0; display: grid; grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .hero-tags { display: none; }
  .hero-badge { bottom: -18px; padding: 8px 14px; }

  /* services: swipeable row with a peek of the next card */
  .swipe-hint { display: block; margin: -12px 0 12px; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .swipe-hint span { color: var(--yellow); }
  .service-grid {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--s4)); padding: 4px var(--s4) 16px; scrollbar-width: none;
  }
  .service-grid::-webkit-scrollbar { display: none; }
  .service-grid .service-card { flex: 0 0 84%; scroll-snap-align: start; padding: var(--s4); }
  .service-grid .service-media { margin: calc(-1 * var(--s4)) calc(-1 * var(--s4)) 0; }
  .service-card:hover { transform: none; }

  /* gallery: two-up grid instead of one long column */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .g-wide { grid-column: span 2; }
  .g-btn { aspect-ratio: 1 / 1; }
  .g-wide .g-btn { aspect-ratio: 16 / 10; }
  .g-cap { padding: 28px 10px 8px; }
  .g-cap strong { font-size: .95rem; line-height: 1.1; }
  .g-cap span { font-size: .75rem; }

  /* 44px tap targets for inline text links */
  .contact-list a, .contact-list .small-link, .form-note a, .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }
  .contact-list .small-link { margin-top: 0; }
  .site-footer p { margin-bottom: 0; }

  /* certifications: compact two-up so the band isn't a full screen */
  .cert-list { gap: 8px; }
  .cert { min-height: 0; padding: 10px 10px 12px; gap: 6px; }
  .cert-logo-wrap { height: 58px; padding: 8px 10px; }
  .cert-logo { max-height: 36px; }
  .cert-logo-wide { max-height: 32px; }
  .certs { padding: 48px 0; }
  .certs-head h2 { font-size: 1.6rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; }

  /* section rhythm: tighter on phones */
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 24px; }
  .r2r-grid, .ba-block { margin-bottom: 56px; }
}

/* ---------- scroll reveal ---------- */
/* Scroll reveals removed on purpose: content is simply there. Motion is reserved for the hero wipe, the before/after peek and the process track. */

/* pause offscreen loops */
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .squeegee { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
