/* K&A Roadside Assistance — night-garage palette pulled from the logo */
:root {
  --bg: #08090b;
  --charcoal: #111317;
  --steel: #1a1d23;
  --line: rgba(199, 206, 216, 0.12);
  --line-strong: rgba(199, 206, 216, 0.22);
  --silver: #c7ccd4;
  --silver-dim: #959ca7;
  --text: #eef1f5;
  --blue: #2491ff;
  --blue-hot: #5cb6ff;
  --blue-deep: #0b4fae;
  --display: "Anybody", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
::selection { background: var(--blue); color: var(--bg); }
:focus-visible { outline: 2px solid var(--blue-hot); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #2b3038 var(--bg); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2b3038; border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--blue-deep); }

h1, h2, h3 {
  font-family: var(--display);
  font-stretch: condensed;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 9vw, 6rem); }
h2 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); }
h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1; }
p { margin: 0; text-wrap: pretty; }
.blue { color: var(--blue); }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { position: relative; isolation: isolate; padding-block: clamp(5rem, 11vw, 9rem); }
/* shop-floor grid: square tiles in faint silver, strongest at the edges and nearly gone behind the content */
.svc-list { position: relative; isolation: isolate; }
.section::before, .svc-list::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(199, 206, 216, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 206, 216, 0.075) 1px, transparent 1px);
  background-size: 128px 128px; background-position: 50% 0;
  -webkit-mask: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0, 0, 0, 0.12) 35%, #000 100%);
          mask: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(0, 0, 0, 0.12) 35%, #000 100%);
}
/* the services list runs very tall, so it fades by column: clear behind the copy, visible at the sides */
.svc-list::before {
  -webkit-mask: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.12) 78%, #000);
          mask: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.12) 22%, rgba(0, 0, 0, 0.12) 78%, #000);
}
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--silver); max-width: 38ch; line-height: 1.55; }
.muted { color: var(--silver-dim); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--blue); color: var(--bg); padding: 0.75rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  --h: 3.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: var(--h); padding: 0 1.6rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 700 1.05rem/1 var(--body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-call { background: var(--blue); color: var(--bg); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.7); }
.btn-call:hover { background: var(--blue-hot); transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(0, 0, 0, 0.8); }
.btn-call:active { transform: translateY(0); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(8, 9, 11, 0.35); }
.btn-ghost:hover { border-color: var(--silver); background: rgba(199, 206, 216, 0.08); }
.btn-ghost svg { transition: transform .25s var(--ease); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-lg { --h: 4rem; font-size: 1.15rem; padding: 0 2rem; }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .page-inner .site-header {
  background: rgba(8, 9, 11, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-color: var(--line);
}
.header-row { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: none; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; gap: 0.25rem; }
.nav a {
  position: relative; padding: 0.55rem 0.85rem; text-decoration: none;
  font-weight: 600; font-size: 0.98rem; color: var(--silver);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.2rem; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-call { --h: 2.85rem; padding: 0 1.15rem; font-size: 0.98rem; }
.menu-toggle, .header-call-icon { display: none; }
.nav-ico, .nav-go { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  overflow: hidden; isolation: isolate;
  padding-block: calc(var(--header-h) + 3rem) clamp(5.5rem, 10vw, 7.5rem);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(0.85); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 78% 45%, rgba(36, 145, 255, 0.22), transparent 70%),
    linear-gradient(90deg, rgba(8, 9, 11, 0.95) 0%, rgba(8, 9, 11, 0.82) 45%, rgba(8, 9, 11, 0.6) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(8, 9, 11, 0) 12%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.hero-frame {
  position: relative; width: clamp(300px, 30vw, 440px); aspect-ratio: 4 / 5; margin-bottom: 0.5rem;
  border-radius: 22px; overflow: hidden; background: var(--steel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.hero-frame video { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); background: linear-gradient(0deg, rgba(8, 9, 11, 0.45), transparent 35%); }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 2.75rem 0 0; padding: 0; list-style: none;
  font-size: 0.95rem; color: var(--silver);
}
.hero-facts li { display: flex; align-items: center; gap: 0.5rem; }
.hero-facts svg { width: 1rem; height: 1rem; color: var(--blue); }

/* The road: a hairline with a headlight streak sweeping across it */
.road {
  position: absolute; left: 0; right: 0; bottom: 2.25rem; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--blue-hot), transparent) 0 0 / 30% 100% no-repeat, var(--line-strong);
  animation: drive 2.4s cubic-bezier(.65, 0, .35, 1) infinite;
  transition: opacity .8s var(--ease);
}
/* held back until the page has loaded and the headline has landed; main.js adds .hero-ready */
.js .hero:not(.hero-ready) .road { opacity: 0; animation-play-state: paused; }
@keyframes drive {
  from { background-position: -50% 0, 0 0; }
  to { background-position: 150% 0, 0 0; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) clamp(3.5rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(36, 145, 255, 0.16), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px;
  -webkit-mask: linear-gradient(180deg, #000 30%, transparent);
          mask: linear-gradient(180deg, #000 30%, transparent);
}
.page-hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); max-width: 14ch; }
.page-hero .lede { margin-top: 1.4rem; max-width: 46ch; }
.page-hero .hero-actions { margin-top: 2rem; }
/* contact is a two-action page, so it sits tighter under its heading */
.contact-hero { padding-bottom: clamp(2rem, 4vw, 3rem); }
.contact-section { padding-top: clamp(2.5rem, 5vw, 4rem); }

/* Section heads */
.head { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.head-split { grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem 4rem; }
.head p { color: var(--silver); max-width: 44ch; }

/* Service rail (home): swipeable cards */
.svc-rail { list-style: none; margin: 0; padding: 6px 0 1.25rem; display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 290px); gap: 1rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-color: var(--blue-deep) transparent; }
.svc-rail li { scroll-snap-align: start; }
.svc-card { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); overflow: hidden; background: var(--charcoal); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .4s var(--ease); }
.svc-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel); }
.svc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc-card-body { display: grid; gap: 0.5rem; padding: 1.2rem 1.25rem 1.4rem; }
.svc-card-name { font: 800 condensed 1.6rem/1 var(--display); text-transform: uppercase; color: var(--text); }
.svc-card-desc { font-size: 0.93rem; line-height: 1.5; color: var(--silver-dim); }
.svc-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.svc-card:hover img { transform: scale(1.05); }
.svc-rail-hint { margin-top: 0.5rem; font-size: 0.9rem; color: var(--silver-dim); }
.rail-nav { display: none; }
.rail-btn {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--charcoal); color: var(--text);
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.rail-btn svg { width: 1.15rem; height: 1.15rem; }
.rail-btn[data-dir="-1"] svg { transform: rotate(180deg); }
.rail-btn:hover { border-color: var(--silver); }
.rail-btn:active { background: var(--blue); border-color: var(--blue); color: var(--bg); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-count { min-width: 4.5ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--silver-dim); }
.rail-count span, .rail-count b { color: var(--text); font-weight: 600; }

@keyframes menu-in { from { opacity: 0; transform: translateY(10px); } }

/* Photo viewer */
.shot-open { position: absolute; inset: 0; z-index: 1; width: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: inherit; }
.shot-open:focus-visible { outline-offset: -3px; }
body.lb-open { overflow: hidden; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
.lightbox::backdrop { background: rgba(5, 6, 7, 0.94); }
.lightbox[open] { animation: menu-in .35s var(--ease) both; }
.lb-inner { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 1rem; padding: 1rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); }
.lb-top { display: flex; align-items: center; justify-content: space-between; }
.lb-figure { margin: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.85rem; justify-items: center; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); align-self: center; }
.lb-figure figcaption { font-weight: 600; color: var(--silver); text-align: center; }
.lb-nav { display: flex; justify-content: center; gap: 1rem; }

/* Shop photo mosaic */
.shop { background: var(--charcoal); border-block: 1px solid var(--line); }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 17vw, 230px); gap: 0.85rem; }
.shot { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--steel); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(0.85); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 0.95rem;
  background: linear-gradient(0deg, rgba(8, 9, 11, 0.9), transparent);
  font-size: 0.92rem; font-weight: 600; color: var(--text);
}
.shot:hover img { transform: scale(1.04); filter: saturate(1); }
.mosaic .shot:nth-child(1) { grid-column: span 5; grid-row: span 2; }
.mosaic .shot:nth-child(2) { grid-column: span 4; }
.mosaic .shot:nth-child(3) { grid-column: span 3; grid-row: span 2; }
.mosaic .shot:nth-child(4) { grid-column: span 4; }
.more-work, .view-services { margin-top: 2rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; position: relative; }
.steps li { position: relative; }
/* one dashed segment from each dot to the next; ::after is the blue line that drives along it */
.steps li:not(:last-child)::before, .steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.4rem; left: 3.3rem; right: -2rem; height: 2px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 14px, transparent 14px 26px);
}
.steps li:not(:last-child)::after {
  background: repeating-linear-gradient(90deg, var(--blue) 0 14px, transparent 14px 26px);
  transform-origin: 0 50%; transition: transform .6s cubic-bezier(.65, 0, .35, 1) var(--lit, 0s);
}
.step-dot {
  position: relative; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 2px solid var(--blue); color: var(--blue); margin-bottom: 1.5rem;
  transition: background-color .3s var(--ease) var(--lit, 0s), color .3s var(--ease) var(--lit, 0s);
}
.steps li > h3, .steps li > p { transition: opacity .5s var(--ease) var(--lit, 0s); }
.js .route li:not(:last-child)::after { transform: scaleX(0); }
.js .route li > h3, .js .route li > p { opacity: 0.4; }
.js .route.in li:not(:last-child)::after { transform: none; }
.js .route.in li > h3, .js .route.in li > p { opacity: 1; }
.js .route.in .step-dot { background: var(--blue); color: var(--bg); animation: dot-hit .5s var(--ease) var(--lit, 0s) both; }
@keyframes dot-hit { 45% { transform: scale(1.18); } }
.step-dot svg { width: 1.2rem; height: 1.2rem; }
.steps h3 { margin-bottom: 0.65rem; }
.steps p { color: var(--silver-dim); max-width: 32ch; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--steel); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.split-copy h2 { margin-bottom: 1.5rem; }
.split-copy p + p { margin-top: 1rem; }
.split-copy p { color: var(--silver); max-width: 52ch; }
.split-copy .btn { margin-top: 2rem; }

.checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.85rem; }
.checks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; color: var(--silver); }
.checks svg { width: 1.25rem; height: 1.25rem; color: var(--blue); margin-top: 0.2rem; }

/* CTA band */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--blue); color: var(--bg);
  padding-block: clamp(4.5rem, 9vw, 7rem);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background: repeating-linear-gradient(-55deg, var(--bg) 0 2px, transparent 2px 22px);
  -webkit-mask: linear-gradient(90deg, transparent 35%, #000);
          mask: linear-gradient(90deg, transparent 35%, #000);
}
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { max-width: 15ch; }
.cta p { margin-top: 1rem; font-size: 1.15rem; font-weight: 500; max-width: 40ch; color: #04203f; }
.cta-phone {
  display: inline-flex; align-items: center; gap: 1rem; text-decoration: none;
  font: 800 condensed clamp(2.4rem, 6vw, 4.5rem)/1 var(--display); letter-spacing: 0.01em;
  color: var(--bg); transition: gap .4s var(--ease);
}
.cta-phone span.icon {
  width: clamp(3.5rem, 6vw, 4.75rem); height: clamp(3.5rem, 6vw, 4.75rem); border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); color: var(--blue); flex: none;
  transition: transform .4s var(--ease);
}
.cta-phone span.icon svg { width: 45%; height: 45%; }
.cta-phone:hover { gap: 1.35rem; }
.cta-phone:hover span.icon { transform: rotate(-12deg); }

/* Services page */
.svc-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); border-bottom: 1px solid var(--line); }
.svc-detail:nth-of-type(even) .svc-media { order: 2; }
.svc-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 4; background: var(--steel); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-detail h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); margin-bottom: 1.1rem; }
.svc-detail > div > p { color: var(--silver); max-width: 50ch; }
.svc-detail h3 { font: 700 0.95rem/1.4 var(--body); text-transform: none; color: var(--text); margin-top: 1.75rem; }
.svc-detail .checks { margin-top: 0.85rem; }

.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.25rem; }
.jump a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0.5rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--silver);
  transition: border-color .2s, color .2s, background-color .2s;
}
.jump a:hover { border-color: var(--blue); color: var(--text); background: rgba(36, 145, 255, 0.1); }

/* Reasons (why us) */
.reasons-section { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.reasons { list-style: none; margin: 0; padding: 0; }
.reasons li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 1rem clamp(2rem, 6vw, 6rem);
  padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line);
}
.reason-head { display: flex; align-items: center; gap: 1rem; }
.reason-ico {
  flex: none; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
  background: var(--steel); border: 1px solid var(--line); color: var(--blue);
}
.reason-ico svg { width: 1.3rem; height: 1.3rem; }
.reasons h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; }
.reasons p { color: var(--silver); max-width: 48ch; align-self: center; }

/* Gallery (about) */
.gallery { columns: 3 260px; column-gap: 0.85rem; }
.gallery .shot { break-inside: avoid; margin-bottom: 0.85rem; }
.gallery .shot img { height: auto; }
/* a landscape photo keeps the same tall frame as its neighbours so the grid ends evenly */
.gallery .shot-tall img { aspect-ratio: 9 / 16; object-fit: cover; object-position: 55% 50%; }
.gallery .shot figcaption { background: linear-gradient(0deg, rgba(8, 9, 11, 0.55), transparent); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }

/* About: veteran discount strip */
.vet-section { padding-block: clamp(2.5rem, 5vw, 4rem); }
.vet-strip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; gap: 1.5rem clamp(2.5rem, 6vw, 5.5rem); padding: clamp(2rem, 4.5vw, 3.25rem) clamp(1.75rem, 4.5vw, 3.5rem); border-radius: calc(var(--radius) + 8px); border: 1px solid rgba(36, 145, 255, 0.4); background: linear-gradient(120deg, #15233a 0%, var(--charcoal) 62%); }
.vet-tag { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-hot); }
.vet-tag svg { width: 1.1rem; height: 1.1rem; }
.vet-head h2 { margin-top: 0.75rem; font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.vet-strip p { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; color: var(--silver); max-width: 42ch; text-wrap: pretty; padding-left: clamp(0rem, 3vw, 2.5rem); border-left: 1px solid var(--line-strong); }
@media (max-width: 860px) { .vet-strip { grid-template-columns: 1fr; } .vet-strip p { padding-left: 0; border-left: 0; } }

/* Contact: call or text, with an example message */
.text-us { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.text-us h2 { font-size: clamp(2.2rem, 4.5vw, 3.25rem); }
.text-us .lead { color: var(--silver); margin: 1.25rem 0 2rem; max-width: 40ch; }
.text-us .acts { display: flex; flex-wrap: wrap; gap: .75rem; }
.text-us .phone { border-radius: 32px; padding: 1.25rem 1.1rem 1.4rem; background: var(--charcoal); border: 1px solid var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.text-us .phone-top { display: grid; justify-items: center; gap: .35rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.text-us .avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--bg); font: 800 condensed 1rem/1 var(--display); }
.text-us .phone-top small { color: var(--silver-dim); font-variant-numeric: tabular-nums; }
.text-us .bubble { margin: 1.25rem 0 0 auto; max-width: 88%; padding: .9rem 1rem; border-radius: 18px 18px 4px 18px; background: var(--blue); color: var(--bg); font-size: .95rem; line-height: 1.45; font-weight: 500; }
.text-us .bubble i { font-style: normal; opacity: .65; }
.text-us .hint { margin-top: .6rem; text-align: right; font-size: .8rem; color: var(--silver-dim); }
.text-us .delivered { margin-top: .4rem; text-align: right; font-size: .78rem; color: var(--silver-dim); transition: opacity .4s var(--ease); }
.text-us .compose { display: flex; align-items: flex-end; gap: .6rem; margin-top: 1.1rem; padding: .55rem .55rem .55rem 1rem; border: 1px solid var(--line-strong); border-radius: 20px; }
.text-us .compose-text { flex: 1; min-height: 1.45em; font-size: .92rem; line-height: 1.45; color: var(--text); white-space: pre-wrap; }
.text-us .compose-text:empty::before { content: "Text message"; color: var(--silver-dim); }
.text-us .compose-send { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--steel); color: var(--silver-dim); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.text-us .compose-send svg { width: 1rem; height: 1rem; transform: rotate(-90deg); }
.text-us .has-text .compose-send { background: var(--blue); color: var(--bg); }
.text-us .compose-send.press { transform: scale(0.82); }
/* typing sequence: main.js adds .is-typing, types into the compose box, then sends */
.text-us .bubble { transform-origin: 100% 100%; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.phone.is-typing .bubble { opacity: 0; transform: translateY(1.25rem) scale(0.9); }
.phone.is-typing .delivered, .phone.is-sending .delivered { opacity: 0; }
.phone.is-typing .compose-text:not(:empty)::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--blue-hot); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@media (max-width: 1020px) { .text-us { grid-template-columns: 1fr; } .text-us .phone { max-width: 420px; } }
@media (max-width: 720px) { .text-us .acts .btn { flex: 1 1 100%; } }

/* Footer */
.site-footer { background: #050607; border-top: 1px solid var(--line); padding-block: 4.5rem 2.5rem; font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.foot-grid img { height: 64px; width: auto; }
.foot-grid p { color: var(--silver-dim); margin-top: 1.25rem; max-width: 34ch; }
.foot-grid .foot-label { font: 700 0.85rem/1 var(--body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--silver-dim); margin: 0 0 0.5rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--silver); transition: color .2s; }
.foot-grid li.muted { margin-top: 0.25rem; }
.foot-grid a:hover { color: var(--blue-hot); }
.foot-grid .foot-phone { font: 600 1.3rem/1 var(--body); font-variant-numeric: tabular-nums; color: var(--text); }
.foot-grid .foot-phone:hover { color: var(--blue-hot); }
.foot-grid .foot-email { overflow-wrap: anywhere; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--silver-dim); font-size: 0.88rem; }


/* Reveal: content is visible by default; JS opts in */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.hero .rise { animation: rise 1.1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(8px); } }

/* Hero entrance: the photo settles and the headline lifts like a bay door */
.hero-media img { animation: settle 2s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); opacity: 0.4; } }
.hero h1.rise { animation-name: door; animation-duration: 1s; }
@keyframes door { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(-0.3em -0.3em -0.3em -0.3em); } }

/* Section headings wipe up once; photos open from a cropped frame while the picture settles */
.js .rv-wipe { clip-path: inset(-0.3em -0.3em -0.3em -0.3em); transition: clip-path .9s var(--ease), transform .9s var(--ease); }
.js .rv-wipe:not(.in) { clip-path: inset(0 0 100% 0); transform: translateY(0.3em); }
.js .rv-mask { clip-path: inset(0 round var(--radius)); transition: clip-path 1.1s var(--ease); }
.js .rv-mask:not(.in) { clip-path: inset(9% 7% 9% 7% round var(--radius)); }
.js .rv-mask img { transition: transform 1.4s var(--ease), filter .6s; }
.js .rv-mask:not(.in) img { transform: scale(1.14); }

/* Feedback: buttons press in, phone icons give a short ring */
.btn:active { transform: scale(0.97); }
.btn-call:hover > svg { animation: ring .55s ease-in-out; }
.cta-phone.in span.icon svg { animation: ring .7s ease-in-out .7s; }
@keyframes ring { 20%, 60% { transform: rotate(-14deg); } 40%, 80% { transform: rotate(12deg); } }
.reasons li.in .reason-ico { animation: dot-hit .5s var(--ease) .25s both; }

/* Responsive */
@media (max-width: 1020px) {
  .nav, .header-call { display: none; }
  .header-call-icon, .menu-toggle {
    display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
    border: 1px solid var(--line-strong); background: rgba(8, 9, 11, 0.5); color: var(--text); cursor: pointer;
  }
  .header-call-icon { margin-left: auto; background: var(--blue); border-color: var(--blue); color: var(--bg); }
  .header-call-icon svg, .menu-toggle svg { width: 1.2rem; height: 1.2rem; }
  .header-row { gap: 0.6rem; }
  .menu-toggle .i-close, .menu-toggle[aria-expanded="true"] .i-menu { display: none; }
  .menu-toggle[aria-expanded="true"] .i-close { display: block; }
  .menu-toggle[aria-expanded="true"] { border-color: var(--silver); }
  .nav.open {
    display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 0; margin: 0; z-index: 49;
    background:
      radial-gradient(80% 50% at 100% 100%, rgba(36, 145, 255, 0.14), transparent 70%),
      var(--bg);
    padding: 1rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom)); gap: 0; overflow-y: auto;
    animation: menu-in .4s var(--ease) both;
  }
  .nav.open .nav-link {
    display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem;
    min-height: 4.5rem; padding: 0.6rem 0.25rem; border-bottom: 1px solid var(--line);
    font: 800 condensed 1.85rem/1 var(--display); text-transform: uppercase; color: var(--text);
    animation: menu-in .45s var(--ease) both;
  }
  .nav.open .nav-link:nth-child(2) { animation-delay: .03s; }
  .nav.open .nav-link:nth-child(3) { animation-delay: .06s; }
  .nav.open .nav-link:nth-child(4) { animation-delay: .09s; }
  .nav.open .nav-link:nth-child(5) { animation-delay: .12s; }
  .nav.open .nav-link::after { display: none; }
  .nav.open .nav-ico {
    display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 12px;
    background: var(--steel); border: 1px solid var(--line); color: var(--silver);
    transition: background-color .2s, color .2s, border-color .2s;
  }
  .nav.open .nav-ico svg { width: 1.3rem; height: 1.3rem; }
  .nav.open .nav-go { display: block; width: 1.15rem; height: 1.15rem; color: var(--silver-dim); transition: transform .3s var(--ease), color .2s; }
  .nav.open .nav-link:active { background: rgba(36, 145, 255, 0.08); }
  .nav.open .nav-link:hover .nav-go { transform: translateX(3px); color: var(--text); }
  .nav.open .nav-link[aria-current="page"] { color: var(--blue-hot); }
  .nav.open .nav-link[aria-current="page"] .nav-ico { background: var(--blue); border-color: var(--blue); color: var(--bg); }
  .nav.open .nav-link[aria-current="page"] .nav-go { color: var(--blue-hot); }
    body.menu-open { overflow: hidden; }
  /* backdrop-filter makes the header the containing block for the fixed menu, so drop it while open */
  .menu-open .site-header { background: var(--bg); border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open 
  .head-split, .split, .svc-detail, .reasons li { grid-template-columns: 1fr; }
  .svc-detail:nth-of-type(even) .svc-media { order: 0; }
  .split-media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; gap: 2rem; }
  .steps li:not(:last-child)::before, .steps li:not(:last-child)::after { top: 3.3rem; bottom: -1.5rem; left: 1.35rem; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 10px, transparent 10px 20px); }
  .steps li:not(:last-child)::after { background: repeating-linear-gradient(180deg, var(--blue) 0 10px, transparent 10px 20px); transform-origin: 50% 0; }
  .js .route li:not(:last-child)::after { transform: scaleY(0); }
  .js .route.in li:not(:last-child)::after { transform: none; }
  .steps li { padding-left: 4.25rem; }
  .step-dot { position: absolute; left: 0; top: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .brand img { height: 36px; }
  .hero { min-height: 92svh; }
  .svc-rail { padding-bottom: 0; scrollbar-width: none; }
  .svc-rail::-webkit-scrollbar { display: none; }
  .svc-rail-hint { display: none; }
  .rail-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 1.5rem; }
  .hero::before { background: linear-gradient(0deg, var(--bg) 10%, rgba(8, 9, 11, 0.8) 55%, rgba(8, 9, 11, 0.55) 100%); }
  .hero-grid { display: block; }
  /* portrait clip fills a phone screen, so it becomes the background here */
  /* phones get the still engine-bay photo instead of the video */
  .hero-frame { display: none; }
  .hero-media img { object-position: 68% 50%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .page-hero .hero-actions .btn { flex: 1 1 100%; }
  .road { bottom: 1.5rem; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 0.6rem; }
  .mosaic .shot:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .mosaic .shot:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  /* phones show three photos and send people to the full gallery */
  .mosaic .shot:nth-child(4) { display: none; }
  .more-work { display: flex; width: 100%; margin-top: 1.25rem; }
  .honest .split-copy { text-align: center; }
  .honest .split-copy p { margin-inline: auto; }
  /* phones already have the rail arrows, so the services button is desktop-only */
  .view-services { display: none; }
  .shot figcaption { font-size: 0.82rem; padding: 2rem 0.8rem 0.7rem; }
  .cta-phone { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .rv-wipe, .js .rv-mask, .js .rv-wipe:not(.in), .js .rv-mask:not(.in) { clip-path: none; transform: none; }
  .js .rv-mask:not(.in) img { transform: none; }
  .steps li, .steps li::after, .steps li > *, .step-dot, .reveal { transition-delay: 0s !important; }
}
