/* ==========================================================================
   HBP Painting & Decorating — landing page
   ========================================================================== */

:root {
  --ink: #141414;
  --ink-2: #2a2a2a;
  --paper: #f3f1ec;
  --stone: #e7e3dc;
  --white: #ffffff;
  --muted: #6e6a64;
  --line: rgba(20, 20, 20, 0.14);
  --line-inv: rgba(255, 255, 255, 0.22);
  --cyan: #00c8ec;
  --cyan-deep: #00a9cc;

  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1560px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--cyan); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); 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; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; }
.eyebrow--inv { color: rgba(255,255,255,0.75); }

.h-xl {
  font-size: clamp(44px, 8.4vw, 150px);
  line-height: 0.92; letter-spacing: -0.045em; font-weight: 500; margin: 0;
}
.h-lg {
  font-size: clamp(36px, 5.6vw, 92px);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 500; margin: 0;
}
.h-md {
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; margin: 0;
}
.lead {
  font-size: clamp(22px, 2.5vw, 38px);
  line-height: 1.18; letter-spacing: -0.02em; font-weight: 400; margin: 0;
}
.body-lg { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; color: var(--ink-2); }
.muted { color: var(--muted); }
.accent { color: var(--cyan-deep); }

/* split-text helpers */
.split-line, .split-line-block { display: block; }
/* generous padding so descenders, accents and overhanging glyphs are never clipped by the mask */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.08em 0.08em 0.2em 0.02em; margin: -0.08em -0.08em -0.2em -0.02em; }
.word > span { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 26px 0 28px; border-radius: 100px;
  background: var(--bg); color: var(--fg);
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--cyan); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover, .btn:focus-visible { color: var(--ink); }
.btn .btn-label { position: relative; display: inline-block; }
.btn .arrow { width: 16px; height: 16px; flex: none; transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--cyan { --bg: var(--cyan); --fg: var(--ink); }
.btn--cyan::before { background: var(--white); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--ghost-inv { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.btn--sm { height: 44px; padding: 0 18px 0 20px; font-size: 14px; gap: 10px; }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.link-line {
  position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
}
.link-line::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform-origin: right; transform: scaleX(1); transition: transform .6s var(--ease);
}
.link-line:hover::after { transform-origin: left; animation: line 0.8s var(--ease); }
@keyframes line { 0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; } 46% { transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; } }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--paper); color: var(--ink);
  display: grid; place-items: center;
  pointer-events: all;
}
.preloader__inner { display: grid; justify-items: center; gap: 34px; padding: 0 var(--gutter); text-align: center; }
.preloader__logo { width: clamp(120px, 14vw, 180px); position: relative; }
.preloader__logo img { width: 100%; height: auto; clip-path: inset(100% 0 0 0); }
.preloader__tagline {
  font-size: clamp(15px, 1.4vw, 19px); letter-spacing: -0.01em; font-weight: 500; line-height: 1.3;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .32em; max-width: 520px;
}
.preloader__tagline .word > span { transform: translateY(110%); }
.preloader__meta {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(20px, 4vh, 40px);
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.preloader__count { font-size: clamp(48px, 8vw, 120px); letter-spacing: -0.05em; line-height: .8; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; text-transform: none; }
.preloader__bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  color: var(--white);
  transition: color .5s var(--ease), background-color .5s var(--ease), transform .6s var(--ease), box-shadow .5s;
}
.header__bar { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.header__logo { display: block; width: 108px; position: relative; }
.header__logo img { width: 100%; height: auto; transition: opacity .4s; }
.header__logo .logo-dark { position: absolute; inset: 0; opacity: 0; }
.header__nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); font-size: 14px; font-weight: 500; }
.header__nav a:not(.btn) { opacity: .9; }
.header__nav a:not(.btn):hover { opacity: 1; }
.header .btn { --bg: var(--white); --fg: var(--ink); }
.header.is-solid { background: rgba(243, 241, 236, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header.is-solid .logo-light { opacity: 0; }
.header.is-solid .logo-dark { opacity: 1; }
.header.is-solid .btn { --bg: var(--ink); --fg: var(--paper); }
.header.is-hidden { transform: translateY(-100%); }
.header--dark { color: var(--ink); }
.header--dark .logo-light { opacity: 0; }
.header--dark .logo-dark { opacity: 1; }
.header--dark .btn { --bg: var(--ink); --fg: var(--paper); }

.menu-toggle { display: none; width: 44px; height: 44px; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), opacity .3s; }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 110px var(--gutter) 36px;
  clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .header { color: var(--paper); background: transparent; box-shadow: none; backdrop-filter: none; }
.menu-open .header .logo-light { opacity: 1; }
.menu-open .header .logo-dark { opacity: 0; }
.mobile-menu nav { display: grid; gap: 4px; }
.mobile-menu nav a { font-size: clamp(40px, 11vw, 64px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 500; }
.mobile-menu__foot { margin-top: 40px; display: grid; gap: 6px; font-size: 15px; color: rgba(243,241,236,.7); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 620px; color: var(--white); overflow: hidden; background: #1b1a18; }
.hero__media { position: absolute; inset: 0; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.18) 28%, rgba(10,10,10,.22) 60%, rgba(10,10,10,.72) 100%);
}
.hero__center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 100px var(--gutter) 160px;
}
.hero__logo { width: clamp(200px, 30vw, 440px); }
.hero__logo img { width: 100%; height: auto; }
.hero__bottom {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(24px, 4.5vh, 48px);
}
.hero__bottom .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.hero__title { font-size: clamp(38px, 5.6vw, 96px); line-height: .95; letter-spacing: -0.045em; font-weight: 500; margin: 0; max-width: 11ch; }
.hero__title .word > span { transform: translateY(110%); }
.hero__side { display: grid; justify-items: end; gap: 22px; text-align: right; }
.hero__side p { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.82); }
.hero__ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.hero [data-hero-fade] { opacity: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(96px, 13vw, 200px) 0; position: relative; }
.section--tight { padding: clamp(72px, 9vw, 140px) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--stone { background: var(--stone); }
.section-head { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: start; margin-bottom: clamp(48px, 7vw, 100px); }
.section-head .h-lg { max-width: 14ch; }

/* reveal images */
.reveal { position: relative; overflow: hidden; background: var(--stone); }
.reveal img { width: 100%; height: 100%; object-fit: cover; }
.js .reveal { clip-path: inset(100% 0 0 0); }
.parallax img { transform: scale(1.18); will-change: transform; }

.js [data-fade] { opacity: 0; transform: translateY(28px); }

/* ---------- About ---------- */
.about__head { display: flex; justify-content: flex-start; margin-bottom: clamp(40px, 6vw, 90px); }
.about__pair { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 32px); }
.about__pair figure { margin: 0; }
.about__img-a { width: min(34vw, 520px); aspect-ratio: 4 / 5; }
.about__img-b { width: min(24vw, 370px); aspect-ratio: 3 / 4; margin-bottom: clamp(40px, 8vw, 140px); }
.about__text { display: grid; justify-items: center; text-align: center; gap: clamp(36px, 4vw, 56px); margin-top: clamp(64px, 9vw, 140px); }
.about__statement { font-size: clamp(28px, 3.8vw, 60px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 500; margin: 0; max-width: 22ch; }
.about__statement .w { opacity: .14; }
.about__copy { max-width: 620px; display: grid; gap: 20px; justify-items: center; }
.about__copy p { margin: 0; }
.about__copy .btn { margin-top: 12px; }

/* ---------- Projects ---------- */
.projects__grid {
  display: grid; gap: clamp(12px, 1.4vw, 20px);
  grid-template-columns: repeat(12, 1fr);
}
.pcard { position: relative; display: block; color: var(--white); overflow: hidden; border-radius: var(--radius); }
.pcard .reveal { height: 100%; }
.pcard .reveal img { transition: transform 1.2s var(--ease); }
.pcard:hover .reveal img { transform: scale(1.04); }
.pcard__meta {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; padding: clamp(18px, 2vw, 30px);
}
.pcard__num { font-size: 12px; letter-spacing: .14em; font-weight: 500; opacity: .85; display: block; margin-bottom: 8px; }
.pcard__title { font-size: clamp(28px, 3vw, 48px); letter-spacing: -0.04em; line-height: 1; font-weight: 500; margin: 0; }
.pcard__go {
  width: 52px; height: 52px; border-radius: 50%; background: var(--white); color: var(--ink);
  display: grid; place-items: center; flex: none; transform: scale(.85); transition: transform .5s var(--ease), background .4s;
}
.pcard:hover .pcard__go { transform: scale(1); background: var(--cyan); }
.pcard__go svg { width: 18px; height: 18px; }
.pcard--interior { grid-column: span 7; aspect-ratio: 7 / 6; }
.pcard--exterior { grid-column: span 5; aspect-ratio: 5 / 6; }
.pcard--commercial { grid-column: span 4; aspect-ratio: 4 / 5; }
.pcard--residential { grid-column: span 4; aspect-ratio: 4 / 5; }
.pcard--repainting { grid-column: span 4; aspect-ratio: 4 / 5; }
.projects__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(40px, 5vw, 72px); flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.band { position: relative; height: clamp(520px, 86vh, 900px); overflow: hidden; color: var(--white); display: grid; align-items: end; }
.band__media { position: absolute; inset: 0; }
.band__media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.band__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.62)); }
.band__content { position: relative; padding-bottom: clamp(40px, 7vw, 100px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; }
.band__content p { margin: 0 0 22px; color: rgba(255,255,255,.85); max-width: 420px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 120px); }
.features__aside { position: sticky; top: 120px; align-self: start; display: grid; gap: 28px; }
.features__aside p { margin: 0; max-width: 420px; color: rgba(243,241,236,.7); }
.features__aside .btn { justify-self: start; }
.flist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-inv); }
.fitem { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-inv); }
.fitem__n { font-size: 13px; letter-spacing: .1em; color: var(--cyan); font-weight: 500; padding-top: 8px; }
.fitem h3 { font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -0.03em; line-height: 1.08; font-weight: 500; margin: 0 0 10px; }
.fitem p { margin: 0; color: rgba(243,241,236,.68); max-width: 560px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 48px; animation: marquee 38s linear infinite; padding-left: 48px; }
.marquee__track span { font-size: clamp(22px, 2.4vw, 36px); letter-spacing: -0.03em; font-weight: 500; display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */
.reviews { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; }
.reviews__nav { display: flex; gap: 10px; margin-top: 32px; }
.reviews__nav button { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background .4s, color .4s; }
.reviews__nav button:hover { background: var(--ink); color: var(--paper); }
.reviews__nav svg { width: 18px; height: 18px; }
.reviews__stage { position: relative; display: grid; }
.review { grid-area: 1 / 1; margin: 0; display: grid; align-content: start; gap: 26px; opacity: 0; visibility: hidden; }
.review.is-active { opacity: 1; visibility: visible; }
.review__title { margin: 0; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--cyan-deep); }
.review blockquote { margin: 0; font-size: clamp(22px, 2.3vw, 36px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 500; text-wrap: pretty; }
.review blockquote::before { content: "“"; color: var(--cyan-deep); }
.review blockquote::after { content: "”"; color: var(--cyan-deep); }
.review figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 15px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 420px; }
.review figcaption strong { font-weight: 500; }
.review figcaption span { color: var(--muted); }
.review__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--stone); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.placeholder-tag { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border: 1px dashed var(--muted); color: var(--muted); border-radius: 4px; margin-bottom: 12px; }
.reviews__count { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 18px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: clamp(40px, 6vw, 120px); }
.contact__aside { display: grid; gap: 28px; align-content: start; }
.contact__aside p { margin: 0; max-width: 420px; }
.contact__direct { display: grid; gap: 4px; padding-top: 28px; border-top: 1px solid var(--line); }
.contact__direct a { font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.03em; font-weight: 500; width: fit-content; }
.contact__direct small { font-size: 13px; color: var(--muted); letter-spacing: .02em; }

.form { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-width: 0; gap: 28px 24px; }
.field { display: grid; gap: 8px; position: relative; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: .01em; padding: 0; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 12px;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.field--chips::after { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; cursor: pointer; transition: background .3s, box-shadow .3s, color .3s;
  user-select: none;
}
.chip span:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--paper); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.form__note { font-size: 13px; color: var(--muted); max-width: 320px; margin: 0; }
.form__status { grid-column: 1 / -1; font-size: 15px; margin: 0; min-height: 1.5em; }
.form__status.is-ok { color: #0a7d5a; }
.form__status.is-err { color: #b3261e; }
.field .err { font-size: 12px; color: #b3261e; display: none; }
.field.has-err .err { display: block; }
.field.has-err input, .field.has-err textarea { border-color: #b3261e; }
.hp { position: absolute; left: -9999px; }

/* ---------- Instagram ---------- */
.insta { padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.insta__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.insta__handle { font-size: clamp(40px, 7.6vw, 132px); letter-spacing: -0.05em; line-height: .9; font-weight: 500; margin: 0; }
.insta__handle span { color: var(--cyan-deep); }
.insta__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(8px, 1vw, 14px); padding: 0 var(--gutter); }
.insta__item { position: relative; aspect-ratio: 4 / 5; overflow: hidden; display: block; border-radius: var(--radius); background: var(--stone); }
.insta__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.insta__item:hover img { transform: scale(1.05); }
.insta__item::after { content: ""; position: absolute; inset: 0; background: rgba(0,200,236,.0); transition: background .5s; }
.insta__item:hover::after { background: rgba(0,200,236,.18); }
.insta__item:nth-child(even) { transform: translateY(clamp(16px, 3vw, 48px)); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 130px) 0 28px; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: clamp(56px, 7vw, 100px); }
.footer__cta h2 { margin: 0 0 28px; }
.footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,241,236,.5); font-weight: 500; margin: 0 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer ul a { opacity: .85; transition: opacity .3s, color .3s; }
.footer ul a:hover { opacity: 1; color: var(--cyan); }
.footer__name { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
/* both accreditation logos sit in identical white tiles */
.badge-logo { width: 150px; height: 104px; max-width: calc(50% - 5px); background: #fff; border-radius: 6px; padding: 12px; object-fit: contain; box-sizing: border-box; }
.badge {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-inv); border-radius: 6px; font-size: 13px; line-height: 1.3;
}
.badge strong { display: block; font-size: 14px; font-weight: 600; }
.badge__mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--paper); color: var(--ink); font-weight: 700; font-size: 11px; letter-spacing: .02em; }
.badge__mark--cyan { background: var(--cyan); }
.footer__logo { width: 100%; padding-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line-inv); }
.footer__logo img { width: clamp(150px, 16vw, 230px); height: auto; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; font-size: 13px; color: rgba(243,241,236,.55); }

/* ---------- Floating CTA (mobile) ---------- */
.float-cta {
  position: fixed; z-index: 80; right: 16px; bottom: 16px; left: 16px;
  display: none; justify-content: center;
  transform: translateY(140%); transition: transform .6s var(--ease);
}
.float-cta .btn { width: 100%; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.float-cta.is-visible { transform: translateY(0); }

/* ---------- Gallery page ---------- */
.gpage-head { padding: clamp(150px, 18vw, 240px) 0 clamp(40px, 5vw, 72px); }
.gpage-head__row { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: end; }
.gpage-head p { margin: 0; color: var(--ink-2); max-width: 420px; }
.filters {
  position: sticky; top: 84px; z-index: 40; background: rgba(243,241,236,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.filters .wrap { display: flex; gap: 6px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.filters .wrap::-webkit-scrollbar { display: none; }
.filter { flex: none; height: 38px; padding: 0 16px; border-radius: 100px; font-size: 14px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.filter sup { font-size: 10px; margin-left: 4px; opacity: .6; }
.filter:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.filter.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
.filters__count { margin-left: auto; font-size: 13px; color: var(--muted); flex: none; padding-left: 16px; }

.gallery { padding: clamp(28px, 3vw, 48px) 0 clamp(80px, 10vw, 160px); }
.gallery__grid { columns: 3; column-gap: clamp(10px, 1.2vw, 18px); }
.gitem { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 18px); display: block; width: 100%; position: relative; overflow: hidden; cursor: zoom-in; background: var(--stone); border-radius: var(--radius); }
.gitem img { width: 100%; height: auto; transition: transform 1.1s var(--ease), opacity .8s; opacity: 0; }
.gitem img.is-loaded { opacity: 1; }
.gitem:hover img { transform: scale(1.03); }
.gitem__cat { position: absolute; left: 12px; bottom: 12px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; background: rgba(243,241,236,.92); color: var(--ink); padding: 6px 10px; border-radius: 100px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s var(--ease); }
.gitem:hover .gitem__cat, .gitem:focus-visible .gitem__cat { opacity: 1; transform: none; }
.gitem.is-hidden { display: none; }
.gitem:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(14,14,14,.97); color: var(--paper); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__top, .lightbox__bottom { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); font-size: 14px; }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 clamp(16px, 7vw, 120px); min-height: 0; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.lightbox__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); transition: background .3s, color .3s; }
.lightbox__btn:hover { background: var(--paper); color: var(--ink); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: var(--gutter); }
.lightbox__next { right: var(--gutter); }
.lightbox__cat { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: rgba(243,241,236,.6); }

.gcta { border-top: 1px solid var(--line); padding: clamp(72px, 9vw, 140px) 0; }
.gcta .wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: end; }
.gcta .wrap > div { display: grid; gap: 20px; justify-items: start; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .header__nav a:not(.btn) { display: none; }
  .menu-toggle { display: block; }
  .header__bar { height: 72px; }
  .header__logo { width: 92px; }
  .hero__bottom .wrap { grid-template-columns: 1fr; }
  .hero__side { justify-items: start; text-align: left; }
  .hero__ctas { justify-content: flex-start; }
  .hero__center { padding-bottom: 300px; align-items: center; }
  .section-head, .reviews, .contact, .features, .band__content, .gpage-head__row, .gcta .wrap { grid-template-columns: 1fr; }
  .features__aside { position: static; }
  .about__img-a { width: 56vw; }
  .about__img-b { width: 36vw; margin-bottom: 18vw; }
  .pcard--interior, .pcard--exterior { grid-column: span 12; aspect-ratio: 4 / 3.4; }
  .pcard--commercial, .pcard--residential, .pcard--repainting { grid-column: span 6; aspect-ratio: 4 / 5; }
  .pcard--repainting { grid-column: span 12; aspect-ratio: 4 / 3; }
  .insta__row { grid-template-columns: repeat(3, 1fr); }
  .gallery__grid { columns: 2; }
  .float-cta { display: flex; }
  .section { padding: 64px 0; }
  .section--tight { padding: 56px 0; }
  .section-head { margin-bottom: 36px; gap: 20px; }
  .about__head { margin-bottom: 28px; }
  .about__text { margin-top: 48px; gap: 28px; }
  .reviews, .contact, .features { gap: 28px; }
  .reviews__nav { margin-top: 20px; }
  .insta { padding: 48px 0 40px; }
  .insta__head { margin-bottom: 24px; }
  .footer { padding-top: 56px; }
  .footer__top { padding-bottom: 40px; gap: 32px; }
  .projects__foot { margin-top: 32px; }
  .filters { top: 72px; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0,1fr); }
  .footer__top { grid-template-columns: 1fr; }
  .pcard--commercial, .pcard--residential { grid-column: span 12; aspect-ratio: 4 / 3.4; }
  .pcard__go { width: 44px; height: 44px; }
  .hero__ctas .btn { height: 50px; }
  .filters__count { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { clip-path: none; }
  .js [data-fade] { opacity: 1; transform: none; }
  .parallax img { transform: none; }
  .about__statement .w { opacity: 1; }
}
