/* ============================================================
   AB Restoration — styles
   Black-first palette with the logo's blues, reds, and oranges
   ============================================================ */
:root {
  --black: #000000;      /* main color */
  --panel: #141518;      /* raised surfaces on black */
  --panel-2: #1C1E22;
  --white: #FFFFFF;
  --red: #E3241B;        /* calls to action */
  --red-hover: #C41C14;
  --orange: #FF6A13;     /* highlights */
  --amber: #FFA51F;      /* stars, small accents */
  --blue: #1E5EFF;       /* logo blue */
  --sky: #5AB0FF;        /* light blue: links and map on black */
  --navy: #0A2A6E;       /* deep blue */

  --on-black: #FFFFFF;
  --on-black-muted: #A9AFBA;
  --on-black-line: rgba(255,255,255,.12);
  --ink: #0F1115;        /* text on white */
  --ink-muted: #545B67;
  --line: #E1E4EA;
  --mist: #F3F5F8;

  --brand-gradient: linear-gradient(90deg, var(--blue) 0%, var(--sky) 22%, var(--blue) 40%, var(--orange) 62%, var(--red) 100%);

  /* Saira: squared, technical letterforms close to the logo's lettering */
  --font: "Saira", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: "wdth" 125;
  --semi: "wdth" 112;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 120px);
  --radius: 6px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--on-black);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--black); padding: 10px 14px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 2px solid transparent;
  font: 700 16px/1 var(--font); font-variation-settings: var(--semi);
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-call { background: var(--red); color: var(--white); font-variant-numeric: tabular-nums; }
.btn-call:hover { background: var(--red-hover); }
.btn-outline { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-lg { min-height: 56px; padding: 16px 26px; font-size: 17px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--on-black-muted); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); border-bottom-color: var(--orange); }
.header-call { min-height: 44px; padding: 10px 16px; }
.nav-toggle { display: none; }
.brand-rule { height: 3px; background: var(--brand-gradient); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--black);
  min-height: min(90vh, 860px); display: flex; align-items: center;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 70%;
  z-index: -2; opacity: .9;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 50%, rgba(0,0,0,.45) 80%, #000 100%),
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 45%, rgba(0,0,0,.05) 85%);
}
.hero-inner { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(64px, 9vw, 110px); }

.live {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--on-black-muted); margin-bottom: 26px;
  font-variant-numeric: tabular-nums;
}
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #2BD46A; flex: none; }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #2BD46A;
  animation: ping 2s ease-out infinite;
}
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

.hero h1 {
  font-size: clamp(36px, 5.2vw, 72px);
  font-weight: 800; font-style: italic; font-variation-settings: var(--wide);
  letter-spacing: -.01em; line-height: 1; text-transform: uppercase;
  max-width: 16ch;
}
.hero-sub { margin-top: 24px; max-width: 52ch; font-size: clamp(17px, 1.6vw, 20px); color: #D7DBE2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.trust {
  list-style: none; padding: 0; margin: 52px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.trust li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 12px; border-radius: 999px;
  background: rgba(20,21,24,.75); border: 1px solid var(--on-black-line);
  font-size: 15px; font-weight: 600;
  backdrop-filter: blur(6px);
}
.trust svg { width: 20px; height: 20px; flex: none; }
.trust li:nth-child(1) svg { fill: var(--sky); }
.trust li:nth-child(2) svg { fill: var(--amber); }
.trust li:nth-child(3) svg { fill: #2BD46A; }
.trust li:nth-child(4) svg { fill: var(--orange); }

/* ---------- Generic section ---------- */
.section { padding: var(--section-y) 0; }
.section h2 {
  font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; font-style: italic; font-variation-settings: var(--wide);
  letter-spacing: -.01em; text-transform: uppercase; line-height: 1.02;
}
.section-head { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 20px 48px; align-items: end; margin-bottom: 52px; }
.section-head p { font-size: 18px; color: var(--on-black-muted); }

/* ---------- Services (black) ---------- */
.services { background: var(--black); border-top: 1px solid var(--on-black-line); }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.service { grid-column: span 2; display: flex; flex-direction: column; }
.service-wide { grid-column: span 3; }
.service { background: var(--panel); border-radius: 10px; overflow: hidden; border-top: 4px solid var(--c, var(--blue)); }
.service img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--panel-2); }
.service-body { padding: 26px 28px 30px; }
.service h3 { font-size: 26px; font-weight: 800; font-variation-settings: var(--semi); }
.service p { margin-top: 10px; color: var(--on-black-muted); max-width: 52ch; }
.tags { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 5px 11px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--on-black-line); color: #D7DBE2; }

/* ---------- Real jobs: before / after ---------- */
.work { background: var(--panel); }
.work-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.work h2 { font-size: clamp(36px, 5vw, 62px); max-width: 12ch; }
.work-copy > p { margin-top: 20px; color: #C9CED6; max-width: 50ch; }
.case { margin-top: 28px; padding: 20px 22px; border-left: 4px solid var(--orange); background: rgba(255,255,255,.04); border-radius: 0 var(--radius) var(--radius) 0; }
.case h3 { font-size: 18px; font-weight: 700; font-variation-settings: var(--semi); }
.case p { margin-top: 8px; font-size: 16px; color: var(--on-black-muted); }

.compare {
  --pos: 50%;
  position: relative; margin: 0; border-radius: 12px; overflow: hidden;
  aspect-ratio: 3 / 4; max-height: 760px; justify-self: center; width: 100%; max-width: 570px;
  background: var(--panel-2); user-select: none; touch-action: pan-y;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06);
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before-clip { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--blue), var(--orange) 60%, var(--red));
  pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); box-shadow: 0 4px 18px rgba(0,0,0,.5);
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 7px solid transparent; transform: translateY(-50%);
}
.compare-handle span::before { left: 9px; border-right-color: var(--blue); }
.compare-handle span::after { right: 9px; border-left-color: var(--red); }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--sky); outline-offset: 4px; }
.compare-tag {
  position: absolute; top: 16px; padding: 6px 12px; border-radius: 4px;
  font-size: 14px; font-weight: 700; color: var(--white); pointer-events: none;
}
.tag-before { left: 16px; background: var(--red); }
.tag-after { right: 16px; background: var(--blue); }
.compare figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px;
  font-size: 13px; color: #E2E5EA; text-align: center; pointer-events: none;
  background: linear-gradient(0deg, rgba(0,0,0,.7), transparent);
}

.more-jobs-title { margin: clamp(56px, 7vw, 88px) 0 24px; font-size: 22px; font-weight: 800; font-style: italic; font-variation-settings: var(--semi); text-transform: uppercase; }
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pair { background: var(--black); border-radius: 10px; padding: 12px 12px 22px; border: 1px solid var(--on-black-line); }
.pair-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pair-shots figure { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: 6px; overflow: hidden; background: var(--panel-2); }
.pair-shots img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pair-shots .badge { position: absolute; top: 8px; left: 8px; font-size: 12px; padding: 4px 8px; }
.pair h4 { margin: 18px 8px 0; font-size: 18px; font-weight: 700; font-variation-settings: var(--semi); }
.pair p { margin: 6px 8px 0; font-size: 15px; color: var(--on-black-muted); }
.badge { display: inline-block; padding: 6px 12px; border-radius: 4px; font-size: 14px; font-weight: 700; color: var(--white); }
.badge-before { background: var(--red); }
.badge-after { background: var(--blue); }

/* ---------- Industry standards ---------- */
.standards { background: var(--black); }
.standard-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.standard { background: var(--panel); border-radius: 10px; overflow: hidden; }
.standard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.standard-body { padding: 24px 26px 28px; }
.standard h3 { font-size: 22px; font-weight: 800; font-style: italic; font-variation-settings: var(--semi); text-transform: uppercase; }
.standard p { margin-top: 10px; color: var(--on-black-muted); font-size: 16px; }

/* ---------- Process (white for contrast) ---------- */
.process { background: var(--white); color: var(--ink); }
.process .section-head p { color: var(--ink-muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 74px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 800; font-variation-settings: var(--wide);
  background: var(--black); color: var(--white);
}
.steps li::after { content: ""; position: absolute; top: 23px; left: 56px; right: -20px; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:nth-child(1)::before { background: var(--red); }
.steps li:nth-child(2)::before { background: var(--orange); }
.steps li:nth-child(3)::before { background: var(--blue); }
.steps li:nth-child(4)::before { background: var(--navy); }
.steps li:nth-child(5)::before { background: var(--black); }
.steps h3 { font-size: 20px; font-weight: 800; font-variation-settings: var(--semi); }
.steps p { margin-top: 10px; color: var(--ink-muted); font-size: 16px; }

/* ---------- Credentials + reviews ---------- */
.reviews { background: var(--black); }
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--on-black-line); border: 1px solid var(--on-black-line); border-radius: 10px; overflow: hidden; margin-bottom: clamp(64px, 8vw, 96px); }
.cred { display: flex; gap: 16px; align-items: flex-start; padding: 28px; background: var(--black); }
.cred svg { width: 34px; height: 34px; flex: none; }
.cred:nth-child(1) svg { fill: var(--sky); }
.cred:nth-child(2) svg { fill: var(--amber); }
.cred:nth-child(3) svg { fill: var(--orange); }
.cred h3 { font-size: 20px; font-weight: 800; font-variation-settings: var(--semi); }
.cred p { margin-top: 6px; color: var(--on-black-muted); font-size: 15px; }

.reviews-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 36px; }
.google { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--on-black-muted); font-weight: 600; }
.g-logo { width: 22px; height: 22px; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { position: relative; margin: 0; padding: 28px; background: var(--panel); border-radius: 10px; display: flex; flex-direction: column; }
.stars { color: var(--amber); font-size: 20px; letter-spacing: 3px; }
.review blockquote { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: #E4E7EC; flex: 1; }
.review figcaption { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--on-black-line); display: flex; flex-direction: column; font-size: 15px; }
.review figcaption span { color: var(--on-black-muted); }
/* sample placeholder markers: remove the class + tag once real reviews are in */
.review.sample { outline: 1px dashed rgba(255,165,31,.5); outline-offset: -1px; }
.sample-tag { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; color: var(--amber); background: rgba(255,165,31,.12); padding: 3px 8px; border-radius: 4px; }

/* ---------- Service area ---------- */
.area { background: var(--panel); }
.area-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.area-copy p { margin-top: 20px; color: #C9CED6; max-width: 48ch; }
.towns { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.towns li { font-size: 14px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--on-black-line); color: #C9CED6; }

.radius { margin: 0; }
.radius svg { width: 100%; height: auto; display: block; overflow: visible; }
.radius figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: #868D99; }
.ring { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.5; stroke-dasharray: 4 6; }
.ring-outer { stroke: var(--blue); stroke-width: 3; stroke-dasharray: none; }
.ring-label { fill: #868D99; font: 600 12px var(--font); }
.ring-label-outer { fill: var(--sky); }
.river { fill: none; stroke: rgba(90,176,255,.35); stroke-width: 5; stroke-linecap: round; }
.town circle { fill: #D7DBE2; }
.town text { fill: #C9CED6; font: 500 12.5px var(--font); }
.home circle { fill: var(--red); }
.home .home-halo { fill: rgba(255,106,19,.3); }
.home text { fill: var(--white); font: 700 14px var(--font); }

/* ---------- Contact (white) ---------- */
.contact { background: var(--mist); color: var(--ink); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-copy > p { margin-top: 20px; color: var(--ink-muted); max-width: 42ch; font-size: 18px; }
.phone-big {
  display: inline-block; margin-top: 28px;
  font-size: clamp(34px, 4.2vw, 54px); font-weight: 800; font-variation-settings: var(--semi);
  letter-spacing: -.02em; color: var(--red); text-decoration: none; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.phone-big:hover { color: var(--red-hover); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 16px; }
.contact-list li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.contact-list span { color: var(--ink-muted); font-weight: 600; }
.contact-list a { color: var(--navy); font-weight: 600; word-break: break-word; }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: clamp(22px, 4vw, 40px); }
.form h3 { font-size: 24px; font-weight: 800; font-variation-settings: var(--semi); margin-bottom: 22px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.field label, .field legend { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-muted); }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; font: 400 16px/1.4 var(--font); color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #C4CAD4; border-radius: var(--radius); background: var(--white);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,94,255,.2); }
.field [aria-invalid="true"] { border-color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #C4CAD4; font-size: 15px; transition: background-color .15s, border-color .15s, color .15s; }
.chips input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.form .btn-block { margin-top: 8px; }
.form-status { margin-top: 14px; font-size: 15px; min-height: 1.4em; }
.form-status.is-error { color: var(--red); }
.form-status.is-ok { color: #157A3C; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--on-black-muted); padding: 64px 0 28px; border-top: 3px solid transparent; border-image: var(--brand-gradient) 1; }
.footer-inner { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 40px; }
.footer-brand img { height: 56px; width: auto; }
.slogan { margin-top: 16px; font-style: italic; font-weight: 800; font-variation-settings: var(--wide); color: var(--white); font-size: 20px; }
.footer-creds { margin-top: 6px; font-size: 15px; }
.footer-col h4 { font-size: 15px; color: var(--white); margin-bottom: 12px; font-weight: 700; }
.footer-col a { display: block; text-decoration: none; padding: 3px 0; font-size: 15px; word-break: break-word; }
.footer-col a:hover { color: var(--white); }
.footer-col .footer-phone { font-size: 22px; font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.footer-col p { margin-top: 8px; font-size: 15px; }
.footer-base { margin-top: 48px; font-size: 14px; color: #6F7682; }
.footer-base p { padding-top: 20px; border-top: 1px solid var(--on-black-line); }

.callbar { display: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 44px; }
  .steps li:nth-child(3)::after { display: none; }
  .review-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 920px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto;
    background: none; border: 0; cursor: pointer; color: var(--white);
  }
  .bars, .bars::before, .bars::after { display: block; width: 24px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -7px; }
  .bars::after { top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--black); border-bottom: 3px solid var(--orange);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--on-black-line); }
  .header-call { display: none; }

  .section-head { grid-template-columns: 1fr; margin-bottom: 40px; }
  .area-inner, .contact-inner { grid-template-columns: 1fr; gap: 44px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service, .service-wide { grid-column: span 1; }
  .service:last-child { grid-column: 1 / -1; }
  .work-feature { grid-template-columns: 1fr; gap: 40px; }
  .pairs { grid-template-columns: 1fr 1fr; }
  .standard-grid { grid-template-columns: 1fr 1fr; }
  .standard:last-child { grid-column: 1 / -1; }
  .standard:last-child img { aspect-ratio: 16 / 7; }
  .creds { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .callbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 58px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--red); color: var(--white); text-decoration: none;
    font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums;
    box-shadow: 0 -4px 20px rgba(0,0,0,.4);
  }
  .callbar svg { width: 20px; height: 20px; fill: currentColor; }
  body { padding-bottom: 58px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: 0; }
  .hero-actions .btn { width: 100%; }
  .trust { margin-top: 36px; }
  .trust li { font-size: 14px; }
  .service-grid { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .pairs, .standard-grid { grid-template-columns: 1fr; }
  .standard:last-child { grid-column: auto; }
  .standard:last-child img { aspect-ratio: 4 / 3; }
  .service-body { padding: 22px 20px 24px; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { padding: 0 0 32px 68px; min-height: 48px; }
  .steps li::after, .steps li:nth-child(3)::after { display: block; top: 56px; bottom: 6px; left: 23px; right: auto; width: 2px; height: auto; }
  .steps li:last-child::after { display: none; }
  .steps li:last-child { padding-bottom: 0; }
  .review-grid { grid-template-columns: 1fr; }
  .reviews-actions { width: 100%; }
  .reviews-actions .btn { flex: 1 1 auto; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   Hero layout with the stacked logo
   ============================================================ */
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-logo { position: relative; justify-self: end; width: min(100%, 470px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-logo img { position: relative; width: 100%; height: auto; filter: drop-shadow(0 0 40px rgba(30,94,255,.35)) drop-shadow(0 0 60px rgba(255,106,19,.25)); }
.hero-logo-ring {
  position: absolute; inset: 6%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(30,94,255,.9) 75%, rgba(255,106,19,.9) 88%, transparent 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
  opacity: .7;
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(90,176,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90,176,255,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
          mask: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
}

/* ============================================================
   Service area radar
   ============================================================ */
.radius { position: relative; }
.radar-sweep {
  position: absolute; left: 10%; top: 0; width: 80%; aspect-ratio: 1; margin-top: 10%;
  border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(90,176,255,0) 0deg, rgba(90,176,255,0) 300deg, rgba(90,176,255,.28) 358deg, rgba(90,176,255,.0) 360deg);
}
.pulse-ring { fill: none; stroke: var(--sky); stroke-width: 2; opacity: 0; transform-origin: 0 0; transform-box: view-box; }

/* ============================================================
   Motion
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  /* page-load sequence */
  .hero-photo { animation: heroZoom 22s var(--ease) both; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: .1s; }
  .hero-copy > :nth-child(2) { animation-delay: .2s; }
  .hero-copy > :nth-child(3) { animation-delay: .35s; }
  .hero-copy > :nth-child(4) { animation-delay: .5s; }
  .hero-copy > :nth-child(5) { animation-delay: .65s; }
  .hero-logo img { animation: logoIn 1.4s var(--ease) .3s both, float 7s ease-in-out 1.7s infinite; }
  .hero-logo-ring { animation: spin 9s linear infinite, fadeIn 1.2s ease .8s both; }
  .hero-grid-lines { animation: gridPan 30s linear infinite; }
  .brand-rule { background-size: 200% 100%; animation: shimmer 8s linear infinite; }

  /* scroll reveals (added by script.js) */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .reveal.is-in { opacity: 1; transform: none; }

  /* service cards */
  .service { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
  .service img { transition: transform .8s var(--ease); }
  .service:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px var(--c), 0 0 0 1px rgba(255,255,255,.06); }
  .service:hover img { transform: scale(1.05); }
  .service { will-change: transform; }

  /* button shine */
  .btn-call { position: relative; overflow: hidden; }
  .btn-call::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg); transition: left .6s var(--ease);
  }
  .btn-call:hover::after { left: 120%; }

  /* process line fills in */
  .steps li::after { transform-origin: left center; transform: scaleX(0); transition: transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + .3s); background: linear-gradient(90deg, var(--orange), var(--blue)); }
  .steps li.is-in::after { transform: scaleX(1); }
  .steps li::before { transition: transform .5s var(--ease); transform: scale(.4); transition-delay: var(--d, 0s); }
  .steps li.is-in::before { transform: scale(1); }

  /* radar */
  .radar-sweep { animation: spin 5s linear infinite; }
  .pulse-ring { animation: pulseOut 4s ease-out infinite; }
  .pulse-ring-2 { animation-delay: 2s; }

  /* job photos and standards */
  .pair-shots img, .standard img { transition: transform .7s var(--ease); }
  .pair:hover .pair-shots img, .standard:hover img { transform: scale(1.05); }
  .pair, .standard { transition: transform .35s var(--ease); }
  .pair:hover, .standard:hover { transform: translateY(-4px); }

  /* review cards */
  .review { transition: transform .35s var(--ease), border-color .35s; }
  .review:hover { transform: translateY(-4px); }

  /* while revealing, cards use the reveal timing (script removes .reveal afterwards) */
  .service.reveal, .review.reveal, .pair.reveal, .standard.reveal { transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
  .steps li::after { transform-origin: top center; transform: scaleY(0); }
  .steps li.is-in::after { transform: scaleY(1); }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes logoIn { from { opacity: 0; transform: scale(.85); filter: blur(10px) drop-shadow(0 0 0 transparent); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes gridPan { to { background-position: 64px 64px; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pulseOut { 0% { transform: scale(.05); opacity: .8; } 100% { transform: scale(1); opacity: 0; } }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 8px; }
  .hero-logo { order: -1; justify-self: start; width: 200px; }
  .hero-logo-ring { inset: 4%; }
}
@media (max-width: 640px) {
  .hero-logo { width: 160px; margin-left: -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse::after { animation: none; }
  * { transition: none !important; }
}
