/* Agile Roofing Canberra: "Ridge & Rib". Tokens documented in DESIGN.md */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/opt-publicsans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --red: #C00020;
  --red-deep: #9E001A;
  --ink: #1B1D20;
  --muted: #5B626A;
  --bg: #F2F3F1;
  --sky: #E2EBF1;
  --white: #FFFFFF;
  --rule: #D5D9DC;
  --sheet: #E7E9E6;

  --f-display: "Archivo", "Arial Narrow", sans-serif;
  --f-body: "Public Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --pad: clamp(56px, 8vw, 116px);
  --head-h: 72px;

  --cut: 14px;
  --cut-card: 28px;
  --cut-lg: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: 24px; touch-action: manipulation; -webkit-tap-highlight-color: rgba(192, 0, 32, .15); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6; font-weight: 400;
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { overflow-x: clip; display: block; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
html { scrollbar-color: #9aa1a8 var(--bg); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10001; background: var(--ink); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.ic { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* Type */
.h2 {
  font-family: var(--f-display); font-stretch: 116%; font-weight: 820; text-transform: uppercase;
  font-size: clamp(32px, 4.4vw, 64px); line-height: .94; letter-spacing: -.012em; text-wrap: balance;
}
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head p { margin: 0; color: var(--muted); font-size: 18px; max-width: 56ch; }

/* Buttons: pitch-cut, colour swap only on hover */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border: 0; background: none; cursor: pointer;
  font-family: var(--f-display); font-stretch: 104%; font-weight: 660; font-size: 16px; line-height: 1.1; letter-spacing: .005em;
  color: var(--btn-fg); text-decoration: none; white-space: nowrap; transition: color .22s ease;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -2; background: var(--btn-bg);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transition: background-color .22s ease;
}
.btn:active::before { filter: brightness(.92); }
.btn--primary:hover { --btn-bg: var(--red); }
.btn--line { --btn-bg: var(--ink); --btn-fg: var(--ink); --btn-fill: var(--bg); }
.btn--line::after {
  content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--btn-fill);
  clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, 0 100%);
  transition: background-color .22s ease;
}
.btn--line:hover { --btn-bg: var(--red); --btn-fill: var(--red); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--light:hover { --btn-bg: var(--red); --btn-fg: #fff; }
.btn--line-light { --btn-bg: #fff; --btn-fg: #fff; --btn-fill: transparent; }
.btn--line-light::after { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% 100%, 0 100%); transition: background-color .22s ease; }
.btn--line-light:hover::after { background: var(--red); }
.btn--line-light:hover { --btn-bg: var(--red); }
.btn--block { width: 100%; }

/* Utility strip (desktop) */
.utility { background: var(--ink); color: #DADDE0; font-size: 13.5px; }
.utility__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 38px; }
.utility p, .utility a { margin: 0; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.utility a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.utility .ic { width: 15px; height: 15px; color: #fff; }

/* Header: desktop scrolls away; mobile is fixed (see media query) */
.site-header { position: relative; z-index: 9999; background: var(--bg); }
.site-header__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 92px; gap: 24px; }
.brand { display: inline-flex; justify-self: start; }
.brand img { height: 64px; width: auto; }
.brand .logo-white { display: none; }
.nav { display: flex; gap: clamp(20px, 2.4vw, 40px); }
.nav a {
  font-family: var(--f-display); font-stretch: 108%; font-weight: 640; font-size: 16px; text-decoration: none;
  padding: 8px 0; background: linear-gradient(var(--red), var(--red)) left bottom / 0 2px no-repeat;
  transition: color .22s ease, background-size .3s var(--ease-out);
}
.nav a:hover { color: var(--red); background-size: 100% 2px; }
.site-header__cta { justify-self: end; display: flex; align-items: center; gap: 22px; }
.head-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--f-display); font-stretch: 106%; font-weight: 700; font-size: 16px; transition: color .22s ease; }
.head-phone:hover { color: var(--red); }
.head-phone .ic { color: var(--red); }
.m-call, .m-toggle { display: none; }
@media (min-width: 900px) {
  .utility { background: var(--red); color: #fff; }
  .utility .ic, .utility a:hover { color: #fff; }
  .site-header__in { min-height: 104px; }
  .nav { grid-column: 1; grid-row: 1; justify-self: start; gap: clamp(18px, 2vw, 32px); }
  .brand { grid-column: 2; grid-row: 1; justify-self: center; }
  .brand img { height: 78px; }
  .site-header__cta { grid-column: 3; grid-row: 1; }
}

/* Mobile menu */
.m-menu { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh;
  overflow: hidden; background: var(--ink); color: #fff; }
.hero__copy { position: relative; z-index: 3; text-align: center; padding-block: 200px 64px; }
.hero__title {
  font-family: "Anton", var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(52px, 8vw, 130px); line-height: .94; letter-spacing: 0;
}
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .ln > span { display: block; }
.hero__aside { display: grid; gap: 22px; justify-items: center; max-width: 640px; margin: clamp(18px, 2vw, 28px) auto 0; }
.hero__sub { margin: 0 auto; font-size: clamp(17px, 1.35vw, 20px); color: #E6E9EC; max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero .btn--primary { --btn-bg: #fff; --btn-fg: var(--ink); }
.hero .btn--primary:hover { --btn-bg: var(--red); --btn-fg: #fff; }
.hero .btn--line { --btn-bg: #fff; --btn-fg: #fff; }
.hero .btn--line::after { background: #24272B; }
.hero .btn--line:hover { --btn-bg: var(--red); }
.hero .btn--line:hover::after { background: var(--red); }

/* Background: three roof photos, crossfading with a slow zoom in / zoom out */
.slides { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--ink); }
.slides::after { content: ""; position: absolute; inset: 0; z-index: 2; background: rgba(20,21,24,.56); pointer-events: none; }
.slide { position: absolute; inset: -6% 0; opacity: 0; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
/* Progress: one segment per photo */
.hero__progress { display: flex; gap: 8px; justify-content: center; margin-top: clamp(26px, 3vw, 40px); }
.hero__progress span { position: relative; width: 56px; height: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero__progress i { position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__progress span.is-done i { transform: scaleX(1); }

/* Desktop: utility strip + header float transparent over the photos */
@media (min-width: 900px) {
  .utility { position: absolute; top: 0; left: 0; right: 0; z-index: 10000; background: transparent; border-bottom: 1px solid rgba(255,255,255,.22); }
  .site-header { position: absolute; top: 38px; left: 0; right: 0; background: transparent; color: #fff; }
  .brand .logo-ink { display: none; }
  .brand .logo-white { display: block; }
  .nav a, .head-phone, .nav a:hover, .head-phone:hover, .head-phone .ic { color: #fff; }
  .site-header .btn--primary { --btn-bg: #fff; --btn-fg: var(--ink); }
  .site-header .btn--primary:hover { --btn-bg: var(--red); --btn-fg: #fff; }
}

/* ---------- MARQUEE ---------- */
.marquee { position: relative; z-index: 2; background: var(--red); color: #fff; overflow: hidden; padding-block: clamp(16px, 2vw, 26px); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; flex: none; }
.marquee__group li {
  display: flex; align-items: center; white-space: nowrap;
  font-family: var(--f-display); font-stretch: 118%; font-weight: 800; text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 40px); line-height: 1; letter-spacing: -.005em;
}
.marquee__group li::after {
  content: ""; width: .82em; height: .72em; margin-inline: .8em; background: #fff;
  -webkit-mask: url("../img/mark.svg") center / contain no-repeat; mask: url("../img/mark.svg") center / contain no-repeat;
}
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- ABOUT ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__copy .h2 { margin-bottom: 26px; }
.about__team { color: var(--muted); }
.about__team strong { color: var(--ink); font-weight: 650; }
.spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 34px 0 0; }
.spec div { padding: 18px 0; border-top: 2px solid var(--ink); }
.spec dt { font-family: var(--f-display); font-stretch: 114%; font-weight: 800; font-size: clamp(26px, 2.4vw, 36px); line-height: 1; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.spec dd { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.ic--star { color: var(--red); width: .8em; height: .8em; }

.about__media { position: relative; padding: 0 0 clamp(40px, 6vw, 80px) clamp(0px, 3vw, 40px); }
.about__media::before {
  /* a red roofline offset behind the photo, like the mark's second peak */
  content: ""; position: absolute; top: -18px; right: -18px; width: 62%; aspect-ratio: 1.6; background: var(--red);
  clip-path: polygon(0 40%, 50% 0, 100% 40%, 100% 100%, 0 100%);
}
.gable { position: relative; overflow: hidden; clip-path: polygon(0 22%, 50% 0, 100% 22%, 100% 100%, 0 100%); aspect-ratio: 1 / 1.08; }
.gable img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
.about__detail {
  position: absolute; left: 0; bottom: 0; width: clamp(130px, 38%, 260px); padding: 8px; background: #fff; z-index: 2;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  box-shadow: 0 30px 50px -30px rgba(27,29,32,.45);
}
.about__detail img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* ---------- SERVICES (bento) ---------- */
.services { background: var(--white); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.tile {
  position: relative; display: flex; flex-direction: column; background: var(--bg);
  clip-path: polygon(0 0, calc(100% - var(--cut-card)) 0, 100% var(--cut-card), 100% 100%, 0 100%);
}
.tile::before { content: ""; position: absolute; left: 0; top: 0; height: 5px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; z-index: 2; transition: transform .7s var(--ease-out); }
.tile.is-in::before { transform: scaleX(1); }
.tile__media { overflow: hidden; aspect-ratio: 4 / 3; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.tile:hover .tile__media img { transform: scale(1.045); }
.tile__body { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; }
.tile h3 { font-family: var(--f-display); font-stretch: 110%; font-weight: 760; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.1; text-transform: uppercase; transition: color .22s ease; }
.tile:hover h3 { color: var(--red); }
.tile p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--lg .tile__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
.tile--lg .tile__body { padding: 26px 28px 30px; }
.tile--lg h3 { font-size: clamp(24px, 2.2vw, 32px); }
.tile--lg p { font-size: 16.5px; max-width: 52ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tags li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; background: var(--white); border: 1px solid var(--rule); }
.tile--cta {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3vw, 40px);
  background: var(--red); color: #fff; text-decoration: none; transition: background-color .22s ease;
}
.tile--cta::before { display: none; }
.tile--cta:hover { background: var(--ink); }
.tile--cta__mark svg { width: clamp(52px, 5vw, 76px); height: clamp(46px, 4.4vw, 66px); fill: #fff; display: block; }
.tile--cta__text { display: grid; gap: 6px; flex: 1; }
.tile--cta__text strong { font-family: var(--f-display); font-stretch: 116%; font-weight: 820; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 38px); line-height: 1; }
.tile--cta__text span { opacity: .92; max-width: 62ch; }
.tile--cta__go { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-stretch: 104%; font-weight: 680; white-space: nowrap; }
.tile--cta__go .ic { width: 20px; height: 20px; }

/* ---------- RESULTS ---------- */
.results__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.results__compare .h2 { margin-bottom: clamp(22px, 2.6vw, 36px); }
.wipe { position: relative; background: #fff; padding: 10px; box-shadow: 0 34px 60px -40px rgba(27,29,32,.45); clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%); }
.wipe img { width: 100%; aspect-ratio: 783 / 296; object-fit: cover; }
.wipe__after { position: absolute; inset: 10px; width: calc(100% - 20px) !important; clip-path: inset(0 0 0 100%); }
.wipe__seam { position: absolute; top: 10px; bottom: 10px; left: 100%; width: 4px; margin-left: -2px; background: var(--red); }
.wipe__cap { position: relative; margin: 16px 0 0; height: 1.6em; font-family: var(--f-display); font-stretch: 106%; font-weight: 640; }
.wipe__cap span { position: absolute; left: 0; transition: opacity .3s ease; }
.wipe__cap .is-after { opacity: 0; color: var(--red); }
.results.is-after .wipe__cap .is-before { opacity: 0; }
.results.is-after .wipe__cap .is-after { opacity: 1; }

.plate {
  position: relative; padding: clamp(26px, 3vw, 40px); background-color: var(--sheet);
  background-image: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.75) 38px 40px, rgba(27,29,32,.07) 40px 43px);
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%);
}
.plate__title { font-family: var(--f-display); font-stretch: 112%; font-weight: 780; text-transform: uppercase; font-size: 20px; margin-bottom: 18px; }
.plate__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; padding: 18px 20px; background: #fff; }
.plate__row + .plate__row { margin-top: 10px; }
.plate__row p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.plate__row p strong { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }
.plate__num { font-family: var(--f-display) !important; font-stretch: 112%; font-weight: 860; font-size: clamp(40px, 3.8vw, 58px) !important; line-height: .9 !important; color: var(--ink) !important; white-space: nowrap; }
.plate__num span { color: var(--red); font-size: .5em; margin-inline: .08em; }

/* ---------- PROCESS (pinned horizontal) ---------- */
.process { position: relative; z-index: 1; background: var(--ink); color: #fff; }
.process__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; padding-top: clamp(28px, 6svh, 64px); }
.process__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 16px 40px; align-items: end; flex: none; }
.process__head p { margin: 0; color: #B9BEC4; }
.process__head .h2 { font-size: clamp(28px, min(4.4vw, 7.6svh), 64px); }
.process__viewport { flex: 1; min-height: 0; display: flex; align-items: safe center; padding-block: 16px clamp(20px, 5svh, 48px); }
.process__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.step { flex: none; width: clamp(260px, 50svh, 470px); background: #26292D; display: flex; flex-direction: column;
  clip-path: polygon(0 0, calc(100% - var(--cut-card)) 0, 100% var(--cut-card), 100% 100%, 0 100%); }
.step__media { height: clamp(96px, 27svh, 320px); overflow: hidden; }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__body { padding: clamp(16px, 2.4svh, 24px) 22px clamp(18px, 2.8svh, 26px); display: grid; gap: 6px; }
.step__n { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; color: var(--red); font-size: 15px; letter-spacing: .02em; }
.step h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 780; text-transform: uppercase; font-size: clamp(17px, 2.5svh, 24px); line-height: 1.05; }
.step p { margin: 0; color: #C3C8CD; font-size: clamp(13.5px, 1.9svh, 16px); line-height: 1.45; }

/* ---------- LEAKS (brand band) ---------- */
.leaks { color: #fff; background: linear-gradient(115deg, #141518 0%, #1B1D20 32%, #6E0614 72%, var(--red) 100%); }
.leaks__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.leaks .h2 { margin-bottom: 22px; }
.leaks__copy > p { color: #D9DCDF; max-width: 58ch; }
.signs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; margin: 26px 0 32px; }
.signs li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.signs li::before { content: ""; flex: none; width: 14px; height: 12px; background: var(--red); transform: translateY(1px);
  -webkit-mask: url("../img/mark.svg") center / contain no-repeat; mask: url("../img/mark.svg") center / contain no-repeat; }
.leaks__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.leaks__diagram svg { width: 100%; height: auto; overflow: visible; }
.dg-roof, .dg-wall, .dg-ceiling { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 4; stroke-linejoin: miter; }
.dg-ceiling { stroke-width: 3; stroke-dasharray: 2 0; }
.dg-wall { stroke: rgba(255,255,255,.45); stroke-width: 3; }
.dg-flue { fill: rgba(255,255,255,.12); stroke: rgba(255,255,255,.9); stroke-width: 3; }
.dg-water { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 10 9; stroke-linecap: round; }
.dg-stain { fill: rgba(255,255,255,.28); }
.dg-label { fill: #fff; font-family: var(--f-display); font-stretch: 108%; font-weight: 700; font-size: 17px; }

/* ---------- REVIEWS ---------- */
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(26px, 3vw, 40px); }
.stars { display: flex; gap: 4px; margin: 0; color: var(--red); }
.stars .ic { width: 30px; height: 30px; }
.reviews__photo { position: relative; overflow: hidden; aspect-ratio: 16 / 6.6; border: 10px solid #fff; box-shadow: 0 34px 60px -40px rgba(27,29,32,.45); }
.reviews__photo img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; }
.quotes { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: calc(-1 * clamp(80px, 11vw, 170px)); padding-inline: clamp(0px, 3vw, 48px); }
.quote {
  margin: 0; padding: clamp(22px, 2.4vw, 32px); background: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  clip-path: polygon(0 0, calc(100% - var(--cut-card)) 0, 100% var(--cut-card), 100% 100%, 0 100%);
  box-shadow: 0 30px 50px -30px rgba(27,29,32,.35);
}
.quote:nth-child(1) { transform: rotate(-1.6deg); }
.quote:nth-child(2) { transform: translateY(26px) rotate(1.1deg); }
.quote:nth-child(3) { transform: rotate(-.8deg); }
.quote p { margin: 0; font-size: 17px; line-height: 1.55; }
.quote footer { display: grid; gap: 2px; padding-top: 14px; border-top: 2px solid var(--red); font-size: 14.5px; }
.quote footer strong { font-family: var(--f-display); font-stretch: 106%; font-weight: 720; font-size: 16px; }
.quote footer span { color: var(--muted); }

/* ---------- VISIT ---------- */
.visit { background: var(--white); }
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.visit .h2 { margin-bottom: 26px; }
.hours { display: flex; gap: 16px; align-items: center; padding: 20px 22px; background: var(--bg); margin-bottom: 22px; }
.hours .ic { width: 34px; height: 34px; color: var(--red); }
.hours p { margin: 0; display: grid; }
.hours strong { font-family: var(--f-display); font-stretch: 110%; font-weight: 760; font-size: 20px; text-transform: uppercase; }
.visit__copy > p { color: var(--muted); }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 28px; }
.areas li { padding: 7px 13px; border: 1px solid var(--rule); font-size: 14.5px; font-weight: 600; }
.visit__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.visit .btn--line { --btn-fill: var(--white); }
.map { position: relative; aspect-ratio: 4 / 3.2; min-height: 360px; background: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--cut-lg)) 0, 100% var(--cut-lg), 100% 100%, 0 100%); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.map.is-active iframe { pointer-events: auto; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 88px); align-items: start; }
.faq__head p { color: var(--muted); margin-top: 18px; }
.faq__head .h2 { font-size: clamp(30px, 3.3vw, 52px); }
.qa { border-bottom: 1px solid var(--rule); }
.qa:first-child { border-top: 2px solid var(--ink); }
.qa h3 { margin: 0; }
.qa button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; text-align: left;
  padding: 22px 0; background: none; border: 0; cursor: pointer;
  font-family: var(--f-display); font-stretch: 106%; font-weight: 680; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.3;
  transition: color .22s ease;
}
.qa button:hover { color: var(--red); }
.qa button .ic { width: 20px; height: 20px; color: var(--red); transition: transform .52s var(--ease-out); }
.qa button[aria-expanded="true"] .ic { transform: rotate(45deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .52s var(--ease-out); }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 48px 24px 0; color: #3E444A; opacity: 0; transform: translateY(-6px); transition: opacity .4s ease, transform .52s var(--ease-out); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa.is-open .qa__a p { opacity: 1; transform: none; }

/* ---------- FOOTER ---------- */
.footer { background: var(--ink); color: #fff; padding-top: clamp(48px, 6vw, 84px); overflow: hidden; }
.footer__cta { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; padding-bottom: clamp(28px, 3.4vw, 48px); border-bottom: 1px solid rgba(255,255,255,.16); }
.footer__title { font-family: var(--f-display); font-stretch: 118%; font-weight: 840; text-transform: uppercase; font-size: clamp(32px, 4vw, 60px); line-height: .92; letter-spacing: -.012em; }
.footer__lines { display: grid; gap: 8px; justify-items: start; }
.footer__phone { font-family: var(--f-display); font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 3.4vw, 50px); line-height: 1; text-decoration: none; transition: color .22s ease; }
.footer__mail { color: #C9CDD1; text-decoration: none; font-size: 17px; transition: color .22s ease; overflow-wrap: anywhere; }
.footer__phone:hover, .footer__mail:hover { color: var(--red); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: clamp(28px, 3vw, 44px); }
.fcol h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 780; font-size: clamp(21px, 1.7vw, 25px); color: var(--red); text-transform: uppercase; margin-bottom: 16px; }
.fcol li { font-size: 15px; color: #C9CDD1; margin-bottom: 8px; overflow-wrap: anywhere; }
.fcol a { text-decoration: none; transition: color .22s ease; }
.fcol a:hover { color: var(--red); }
.socials a { display: inline-flex; align-items: center; gap: 10px; }
.socials .ic { width: 18px; height: 18px; }
.footer__base { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: clamp(32px, 4vw, 52px) 0 28px; border-top: 1px solid rgba(255,255,255,.16); text-align: center; }
.footer__logo { height: clamp(150px, 18vw, 270px); width: auto; }
.footer__legal { margin: 0; font-size: 14px; color: #A9AFB5; }
.footer__legal a { color: var(--red); font-weight: 650; text-decoration: none; }
.footer__legal a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Reveal (JS adds .js) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }

/* ================= MOBILE (< 900px) ================= */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .utility { display: none; }
  .site-header {
    position: fixed; top: 0; left: 0; right: 0; height: var(--head-h);
    transform: translate3d(0, 0, 0); will-change: transform; opacity: 1;
    transition: transform .6s var(--ease-io), opacity .6s var(--ease-io);
    box-shadow: 0 1px 0 rgba(27,29,32,.08);
  }
  .site-header.is-hidden { transform: translate3d(0, calc(-100% - 24px), 0); opacity: 0; pointer-events: none; }
  .site-header__in { grid-template-columns: 1fr auto auto; min-height: var(--head-h); gap: 10px; }
  .brand img { height: 56px; }
  .nav, .site-header__cta { display: none; }
  .m-call, .m-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; color: var(--ink); text-decoration: none; }
  .m-call { background: var(--red); color: #fff; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); }
  .m-call .ic { width: 22px; height: 22px; }
  .m-toggle { position: relative; }
  .m-toggle span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--ink); transition: transform .6s var(--ease-io); }
  .m-toggle span:nth-child(1) { transform: translateY(-5px); }
  .m-toggle span:nth-child(2) { transform: translateY(5px); }
  .menu-open .m-toggle span:nth-child(1) { transform: rotate(45deg); }
  .menu-open .m-toggle span:nth-child(2) { transform: rotate(-45deg); }

  .m-menu {
    display: flex; flex-direction: column; justify-content: space-between; position: fixed; z-index: 9998;
    top: var(--head-h); left: 0; right: 0; bottom: 0; background: var(--bg); padding: 28px var(--gutter) 28px;
    clip-path: inset(0 0 100% 0); visibility: hidden; overscroll-behavior: contain; overflow-y: auto;
    transition: clip-path .6s var(--ease-io), visibility 0s linear .6s;
  }
  .menu-open .m-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-io), visibility 0s; }
  .m-menu__nav { display: grid; }
  .m-menu__nav a {
    font-family: var(--f-display); font-stretch: 118%; font-weight: 820; text-transform: uppercase; font-size: clamp(34px, 10vw, 52px); line-height: 1.12;
    text-decoration: none; padding: 4px 0; opacity: 0; transform: translateY(24px);
    transition: opacity .6s var(--ease-io), transform .6s var(--ease-io), color .22s ease;
  }
  .m-menu__nav a:hover { color: var(--red); }
  .menu-open .m-menu__nav a { opacity: 1; transform: none; }
  .m-menu__nav a:nth-child(2) { transition-delay: .04s; } .m-menu__nav a:nth-child(3) { transition-delay: .08s; }
  .m-menu__nav a:nth-child(4) { transition-delay: .12s; } .m-menu__nav a:nth-child(5) { transition-delay: .16s; }
  .m-menu__nav a:nth-child(6) { transition-delay: .2s; }
  .m-menu__foot { display: grid; gap: 14px; }
  .m-menu__foot p { margin: 0; color: var(--muted); font-size: 15px; }
  html.is-locked, html.is-locked body { overflow: hidden; }

  .h2, .lead, .sec-head, .sec-head p, .hero__sub, .footer__title, .leaks__copy > p { max-width: none; text-wrap: pretty; }
  .hero { justify-content: flex-end; background: var(--ink); }
  .hero__copy { text-align: left; padding-block: calc(var(--head-h) + 24px) 36px; }
  .hero__copy::before { content: ""; display: block; width: 64px; height: 5px; background: var(--red); margin-bottom: 20px; }
  .hero__title { font-size: clamp(50px, 15vw, 84px); }
  .hero__aside { justify-items: start; max-width: none; margin-left: 0; }
  .hero__sub { margin-left: 0; }
  .hero__ctas { justify-content: flex-start; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__progress { justify-content: flex-start; margin-top: 22px; }
  .slides::after { background: linear-gradient(0deg, rgba(20,21,24,.9) 0%, rgba(20,21,24,.55) 55%, rgba(20,21,24,.38) 100%); }
  /* header: transparent with the white logo while the page sits at the very top */
  body { padding-top: 0; }
  .site-header { transition: transform .6s var(--ease-io), opacity .6s var(--ease-io), background-color .35s ease, box-shadow .35s ease; }
  .at-top:not(.menu-open) .site-header { background: transparent; box-shadow: none; }
  .at-top:not(.menu-open) .brand .logo-ink { display: none; }
  .at-top:not(.menu-open) .brand .logo-white { display: block; }
  .at-top:not(.menu-open) .m-toggle span { background: #fff; }

  .about__grid, .results__grid, .leaks__grid, .visit__grid, .faq__grid, .footer__cta { grid-template-columns: minmax(0, 1fr); }
  .about__media { padding: 0 0 48px 0; margin-top: 8px; }
  .about__media::before { right: -8px; top: -12px; }
  .about__detail { width: 40%; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--lg, .tile--cta { grid-column: auto; grid-row: auto; }
  .tile--lg .tile__media { aspect-ratio: 4 / 3; flex: none; min-height: 0; }
  .tile--cta { flex-direction: column; align-items: flex-start; }

  .plate__row { grid-template-columns: minmax(0, 1fr); }

  .process__pin { padding-block: 24px; justify-content: center; }
  .process__head { grid-template-columns: minmax(0, 1fr); padding-bottom: 50px; gap: 12px; }
  .process__viewport { flex: none; align-items: flex-start; padding-block: 0; }
  .step { width: min(80vw, 340px); }
  .step__media { height: clamp(120px, 30svh, 380px); }

  .signs { grid-template-columns: minmax(0, 1fr); }
  .leaks__diagram { order: 2; }

  .reviews__photo { aspect-ratio: 4 / 3; }
  .quotes { grid-template-columns: minmax(0, 1fr); margin-top: -56px; padding-inline: 12px; }
  .quote:nth-child(n) { transform: none; }

  .map { min-height: 320px; aspect-ratio: 4 / 4; }
  .faq__head p { margin-top: 12px; }
  .qa__a p { padding-right: 8px; }

  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .footer__logo { height: clamp(120px, 34vw, 170px); }
}
@media (max-width: 420px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
}

/* Reduced motion: everything static */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .wipe__after { clip-path: inset(0 0 0 50%); }
  .wipe__seam { left: 50%; }
  * { scroll-behavior: auto !important; }
}

/* Intro initial states (only while JS runs the intro; reduced motion skips them) */
html.js:not(.intro-done) .hero__title .ln > span { transform: translateY(108%); }
html.js:not(.intro-done) .hero__aside, html.js:not(.intro-done) .hero__progress { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js:not(.intro-done) .hero__title .ln > span { transform: none; }
  html.js:not(.intro-done) .hero__aside, html.js:not(.intro-done) .hero__progress { opacity: 1; }
}

/* Process without a pin (reduced motion): swipeable row */
.process.no-pin .process__pin { height: auto; padding-bottom: var(--pad); }
.process.no-pin .process__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-top: 24px; }
.process.no-pin .step { scroll-snap-align: start; }

/* Leak diagram: water flows along the path once in view */
#leakSvg.is-on .dg-water { animation: leakflow 1.4s linear infinite; }
@keyframes leakflow { to { stroke-dashoffset: -38; } }
#leakSvg .dg-stain { transform-box: fill-box; transform-origin: center; transform: scale(.4); opacity: 0; transition: transform 1.4s var(--ease-out) .6s, opacity 1s ease .6s; }
#leakSvg.is-on .dg-stain { transform: none; opacity: 1; }

@media (max-width: 899px) { html { scroll-padding-top: var(--head-h); } }

/* ---------- Footer: big logo on the left, columns beside it (desktop) ---------- */
@media (min-width: 900px) {
  .footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); grid-template-areas: "cta cta" "logo cols" "legal legal"; column-gap: clamp(32px, 5vw, 80px); }
  .footer__cta { grid-area: cta; }
  .footer__base { display: contents; }
  .footer__logo { grid-area: logo; align-self: center; justify-self: start; height: clamp(170px, 19vw, 280px); margin-block: clamp(28px, 3vw, 44px); }
  .footer__cols { grid-area: cols; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; }
  .footer__legal { grid-area: legal; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.16); text-align: left; }
}

/* ---------- Heading font: Anton (nav and buttons stay Archivo) ---------- */
@font-face { font-family: "Anton"; src: url("../fonts/opt-anton.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:is(.h2, .footer__title, .marquee__group li, .tile h3, .tile--cta__text strong, .step h3, .spec dt, .plate__num, .plate__title, .fcol h3, .hours strong, .m-menu__nav a) {
  font-family: "Anton", var(--f-display); font-weight: 400; letter-spacing: 0; }
:is(.h2, .footer__title) { font-size: clamp(38px, 5.2vw, 78px); line-height: .96; }
.faq__head .h2 { font-size: clamp(38px, 4.2vw, 64px); }
.process__head .h2 { font-size: clamp(30px, min(5.4vw, 9svh), 76px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
