/* ==========================================================================
   Cullis Roofing — main stylesheet
   Plain CSS, no build step. Sections follow the order of the homepage.
   Motion: elements that animate in carry [data-reveal]; JS adds .is-in.
   Everything respects prefers-reduced-motion (see bottom of file).
   ========================================================================== */

:root {
  --white: #ffffff;
  --ink: #111111;          /* headings / foreground   */
  --text: #333333;
  --muted: #555555;
  --soft: #888888;
  --line: #e8e8e8;
  --surface: #fafafa;
  --surface-2: #f7f7f7;
  /* Cullis green palette — sampled from the Cullis Roofing logo (roof #014A3D, wordmark #01241D).
     Contrast on white: --brand 10.3:1, --brand-2 5.3:1, --brand-deep 16.5:1; --brand-on-dark 8.7:1 on #121212. */
  --brand: #014a3d;        /* logo roof green (CTA, accents)      */
  --brand-2: #127a62;      /* mid green (numbers, rules, chips)   */
  --brand-hover: #01362d;
  --brand-deep: #01241d;   /* logo wordmark green                 */
  --brand-on-dark: #5cc3a4;/* accents/hover on dark backgrounds   */
  --brand-tint: #e6f2ee;   /* pale green fills                    */
  --primary: #014a3d;      /* offer/join buttons                  */
  --primary-hover: #01362d;
  --rating: #f59f0a;
  --star: #fbbc05;
  --nav-bg: #1a1a1a;
  --footer-bg: #121212;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
  --font-ui: 'Inter', system-ui, sans-serif;

  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  --header-h: 80px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.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;
}
.display { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--brand);
  text-transform: uppercase;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px)  { .container { padding: 0 2.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 4rem; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; border-radius: 4px;
  transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}
.btn--brand { background: var(--brand); color: #fff; font-size: 16px; padding: 18px 48px; }
.btn--brand:hover { background: var(--brand-hover); transform: scale(1.02); }
.btn--outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); font-size: 14px; padding: 12px 34px; }
.btn--outline:hover { background: var(--brand-tint); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }

/* ---------- Custom cursor (desktop / fine pointers only) ---------- */
.custom-cursor {
  position: fixed; top: 0; left: 0; width: 64px; height: 64px;
  border: 2px solid #111; background: #fff; border-radius: 9999px;
  pointer-events: none; z-index: 9999; mix-blend-mode: difference;
  will-change: transform, opacity; opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}
.custom-cursor--on-brand { background: #fff; border-color: #fff; mix-blend-mode: normal; }
body.has-custom-cursor, body.has-custom-cursor * { cursor: none !important; }
@media (pointer: coarse) { .custom-cursor { display: none; } }

/* ==========================================================================
   Header + menu overlay
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--nav-bg);
  transition: box-shadow .5s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-header__logo img { height: 52px; width: auto; display: block; }
@media (min-width: 768px) { .site-header__logo img { height: 60px; } }
.site-header__logo, .menu-toggle { transition: opacity .3s ease, color .15s ease; }
body.menu-open .site-header__logo, body.menu-open .menu-toggle { opacity: 0; pointer-events: none; }
.menu-toggle { display: flex; align-items: center; gap: 12px; color: #fff; }
.menu-toggle:hover { color: var(--brand-on-dark); }
.menu-toggle__label { display: none; font-family: var(--font-display); letter-spacing: .3em; font-size: 14px; }
@media (min-width: 768px) { .menu-toggle__label { display: inline; } }
.menu-toggle svg { width: 28px; height: 28px; }

.menu-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(40px); backdrop-filter: blur(40px);
  opacity: 0; visibility: hidden;
  transition: opacity .4s ease, visibility 0s linear .4s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.menu-overlay__top { display: flex; justify-content: flex-end; align-items: center; height: var(--header-h); }
.menu-overlay__close { color: #111; }
.menu-overlay__close:hover { color: var(--brand); }
.menu-overlay__close svg { width: 32px; height: 32px; }
.menu-overlay nav {
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
  height: calc(100vh - var(--header-h)); margin-top: calc(var(--header-h) * -1);
}
@media (min-width: 768px) { .menu-overlay nav { gap: 32px; } }
.menu-overlay nav a {
  width: fit-content; font-family: var(--font-display); font-weight: 800; color: #111;
  font-size: 60px; line-height: 1;
  opacity: 0; transform: translateX(-30px);
  transition: color .15s ease;
}
@media (min-width: 768px) { .menu-overlay nav a { font-size: 96px; } }
.menu-overlay nav a:hover { color: var(--brand); }
/* staggered slide-in: delay .1s + i * .08s, .5s easeOut (matches original) */
.menu-overlay.is-open nav a {
  opacity: 1; transform: none;
  transition: opacity .5s ease-out, transform .5s ease-out, color .15s ease;
  transition-delay: calc(.1s + var(--i) * .08s), calc(.1s + var(--i) * .08s), 0s;
}
.menu-overlay__tagline {
  margin-top: 40px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(17,17,17,.6); opacity: 0;
}
.menu-overlay.is-open .menu-overlay__tagline { opacity: 1; transition: opacity .3s ease .5s; }
.menu-overlay nav .menu-overlay__tagline a { font: inherit; font-size: inherit; line-height: inherit; color: inherit; opacity: 1; transform: none; display: inline; text-decoration: underline; text-underline-offset: 3px; }
.menu-overlay nav .menu-overlay__tagline a:hover { color: var(--brand); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; padding: 0 24px; background: #fff;
}
.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero__bg svg, .hero__bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg canvas { filter: blur(.5px); }
.hero__content {
  position: relative; z-index: 10; width: 100%; max-width: 1100px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__logo { width: 280px; margin-bottom: 40px; }
.hero__logo img { width: 100%; height: auto; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: 96px; letter-spacing: -3px; text-transform: uppercase; line-height: 1;
}
.hero__sub {
  font-family: var(--font-body); font-weight: 300; color: var(--muted);
  font-size: 18px; line-height: 1.6; margin-top: 20px; max-width: 640px;
}
.hero__sub .word { display: inline-block; margin-right: .28em; }
.hero__sub .word--proud {
  font-weight: 500;
  background-image: linear-gradient(90deg, #555 0%, var(--brand-2) 25%, var(--brand-2) 50%, var(--brand-2) 75%, #555 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__sub.is-shimmering .word--proud { animation: proud-shimmer 4.5s ease-in-out infinite; }
@keyframes proud-shimmer {
  0%   { background-position: 300% 0; }
  50%  { background-position: -150% 0; }
  100% { background-position: -150% 0; }
}
.trust-strip {
  margin-top: 40px; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 100px; padding: 14px 28px;
  display: inline-flex; align-items: center; gap: 20px;
}
.trust-strip__section { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip__divider { width: 1px; height: 20px; background: #e0e0e0; }
.trust-strip__stars { display: flex; gap: 2px; }
.trust-strip__stars svg { width: 14px; height: 14px; }
.trust-strip__score { font-size: 13px; font-weight: 600; color: var(--ink); }
.trust-strip__label { font-size: 12px; font-weight: 300; color: var(--soft); }
.trust-strip__areas { font-size: 12px; color: var(--muted); letter-spacing: .5px; }
a.trust-strip__areas:hover { color: var(--brand); }
.trust-strip__label { color: var(--muted); }
.trust-strip__warranty b { font-weight: 600; color: var(--ink); }
.about__warranty { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 500; color: var(--ink); }
.about__warranty svg { flex: none; }
a.trust-strip__google { border-radius: 100px; transition: opacity .2s; }
a.trust-strip__google:hover .trust-strip__label { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.trust-strip__google .stars svg { width: 14px; height: 14px; }
.hero__cta { margin-top: 32px; }
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: #aaa;
  transition: opacity .4s ease;
}
.hero__scroll-line { display: block; width: 2px; height: 32px; background: var(--brand); transform-origin: top; }
.hero__scroll-chevron { width: 16px; height: 16px; animation: scroll-bob 2s ease-in-out infinite; }
@keyframes scroll-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
.hero__scroll-label { font-family: var(--font-body); font-size: 11px; letter-spacing: 4px; font-weight: 700; color: var(--ink); }
.hero__scroll.is-hidden { opacity: 0 !important; pointer-events: none; }

/* Hero intro timeline (page load). Matches original delays/durations. */
.js .hero__logo  { opacity: 0; transform: translateY(12px); }
.js .hero__title { clip-path: inset(0 100% 0 0); }
.js .hero__sub .word { opacity: 0; transform: translateY(6px); }
.js .trust-strip, .js .hero__cta { opacity: 0; transform: translateY(8px); }
.js .hero__scroll { opacity: 0; }
.js .hero__scroll-line { transform: scaleY(0); }
.hero.is-loaded .hero__logo  { opacity: 1; transform: none; transition: opacity 1.1s var(--ease-out-expo), transform 1.1s var(--ease-out-expo); }
.hero.is-loaded .hero__title { clip-path: inset(0 0 0 0); transition: clip-path .6s ease-out 1.5s; }
.hero.is-loaded .hero__sub .word {
  opacity: 1; transform: none;
  transition: opacity .35s ease-out, transform .35s ease-out;
  transition-delay: calc(1.8s + var(--i) * .06s);
}
.hero.is-loaded .trust-strip { opacity: 1; transform: none; transition: opacity .5s ease-out 2.1s, transform .5s ease-out 2.1s; }
.hero.is-loaded .hero__cta   { opacity: 1; transform: none; transition: opacity .4s ease-out 2.3s, transform .4s ease-out 2.3s, background-color .2s ease; }
.hero.is-loaded .hero__cta:hover { transform: scale(1.02); transition-delay: 0s; }
.hero.is-loaded .hero__scroll { opacity: 1; transition: opacity .4s ease 2.6s; }
.hero.is-loaded .hero__scroll-line { transform: scaleY(1); transition: transform .5s ease-out 2.6s; }

@media (max-width: 767px) {
  .hero__logo { width: 60vw; max-width: 260px; margin-bottom: 28px; }
  .hero__title { font-size: 52px; letter-spacing: -2px; }
  .hero__sub { font-size: 12.5px; letter-spacing: -.1px; white-space: nowrap; max-width: 100%; }
  .hero__sub .word { margin-right: .22em; }
  .trust-strip { flex-direction: column; gap: 10px; border-radius: 16px; padding: 12px 20px; }
  .trust-strip__divider { display: none; }
  .hero__cta { width: 100%; max-width: 320px; }
}

/* ==========================================================================
   Roof build sections (pinned, scroll-scrubbed 3D scenes)
   Section height = 100vh + 3000px scroll distance; the stage sticks.
   ========================================================================== */
.build { position: relative; height: calc(100vh + 3000px); background: #fff; }
.build__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
}
@media (min-width: 768px) { .build__stage { flex-direction: row; } }
.build__canvas { position: relative; width: 100%; height: 45vh; padding-top: 20px; }
@media (min-width: 768px) { .build__canvas { width: 62%; height: 100%; padding-top: 0; } }
.build__canvas canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.build__copy {
  position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center;
  padding: 32px 24px 32px 32px;
}
@media (min-width: 768px) { .build__copy { width: 38%; } .build__copy-inner { padding: 0 56px 0 48px; } }
.build--flat .build__stage { flex-direction: column; }
/* pitched section: text on the left, model on the right (desktop) */
@media (min-width: 768px) { .build--pitched .build__copy { order: -1; } .build--pitched .build__copy-inner { padding: 0 24px 0 56px; } }
@media (min-width: 768px) { .build--flat .build__stage { flex-direction: row; } }

.build__num {
  font-family: var(--font-display); font-weight: 800; color: var(--brand-2);
  font-size: clamp(64px, 7vw, 96px); line-height: 1; margin-bottom: 8px;
}
.build__title {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(44px, 5.5vw, 72px); text-transform: uppercase; letter-spacing: -2px;
  line-height: .9; margin-bottom: 24px;
}
.build__body { font-size: 16px; line-height: 1.8; color: var(--text); max-width: 300px; }
.build__chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.build__chips span {
  display: inline-block; padding: 8px 16px; border-radius: 9999px;
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; background: #efefef; color: #888;
}
.build__chips span.is-active { background: var(--brand-2); color: #fff; font-weight: 800; }

/* step text swap: old text exits up (-8px), new text enters from +16px (.5s) */
.build__step { transition: opacity .5s ease-out, transform .5s ease-out; }
.build__step.is-leaving { opacity: 0; transform: translateY(-8px); transition-duration: .25s; }
.build__step.is-entering { opacity: 0; transform: translateY(16px); transition: none; }

/* step counter "01 / 08" with rolling digits + progress rule */
.build__counter { position: absolute; bottom: 48px; left: 56px; z-index: 5; pointer-events: none; display: none; }
@media (min-width: 768px) { .build__counter { display: block; } }
.build__counter-row { display: flex; align-items: baseline; font-family: var(--font-display); line-height: 1; }
.build__counter-roll { position: relative; height: 64px; width: 76px; overflow: hidden; display: inline-block; }
.build__counter-roll span {
  position: absolute; inset: 0; font-size: 64px; font-weight: 800; color: #111; letter-spacing: -2px;
  transition: transform .3s ease-out, opacity .3s ease-out;
}
.build__counter-roll span.is-below { transform: translateY(100%); opacity: 0; transition: none; }
.build__counter-roll span.is-above { transform: translateY(-100%); opacity: 0; }
.build__counter-total { font-size: 28px; font-weight: 300; color: #ccc; }
.build__counter-total i { font-style: normal; margin: 0 6px; }
.build__counter-bar { margin-top: 16px; width: 120px; height: 1px; background: var(--line); position: relative; }
.build__counter-bar i { position: absolute; left: 0; top: 0; height: 1px; background: var(--brand); width: 0; transition: width .4s ease-out; }
.build--flat .build__counter { left: auto; right: 0; position: relative; bottom: auto; margin-top: 48px; }
@media (min-width: 768px) { .build--flat .build__counter { position: absolute; left: calc(62% + 32px); bottom: 48px; margin: 0; } }

/* Static fallback image for no-WebGL / reduced motion */
.build__fallback { display: none; }
.no-webgl .build { height: auto; }
.no-webgl .build__stage { position: relative; height: auto; }
.no-webgl .build__canvas { display: none; }
.no-webgl .build__counter { display: none; }

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 100px 80px; background: #fff; }
.about__inner { max-width: 1200px; margin: 0 auto; position: relative; }
.about__heading {
  display: block; width: max-content; max-width: 140%;
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  letter-spacing: -3px; line-height: .85; font-size: 110px; text-transform: uppercase;
  position: relative; z-index: 5;
}
.about__text { position: relative; z-index: 4; width: 58%; }
.about__photo-col {
  position: absolute; right: 0; top: -20px; width: 42%; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end;
}
.about__photo-wrap { isolation: isolate; margin-top: -60px; width: 100%; display: flex; justify-content: flex-end; }
.about__photo { width: 100%; max-width: 460px; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-card); }
.about__name { margin-top: 16px; text-align: right; }
.about__name-rule { width: 40px; height: 2px; background: var(--brand-2); margin: 0 0 10px auto; }
.about__name-title { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); text-transform: uppercase; letter-spacing: .08em; }
.about__name-sub { font-weight: 300; font-size: 12px; color: var(--soft); margin-top: 2px; }
.about__quote-row { display: flex; gap: 20px; margin-top: 48px; }
.about__quote-bar { display: block; width: 3px; height: 60px; background: var(--brand-2); transform-origin: top; flex-shrink: 0; margin-top: 6px; }
.about__role { font-size: 11px; letter-spacing: 3px; color: var(--brand-2); text-transform: uppercase; margin-bottom: 18px; font-weight: 500; }
.about__quote { font-size: 19px; font-weight: 300; color: var(--ink); line-height: 1.85; }
.about__p1 { font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.8; margin-top: 24px; }
.about__rule { height: 1px; background: var(--line); transform-origin: left; margin: 32px 0; }
.about__p2 { font-size: 15px; font-weight: 300; color: var(--muted); line-height: 1.8; }
.about__stats {
  border-top: 1px solid var(--line); padding: 40px 0; margin-top: 64px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.about__stat-value { font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 56px; line-height: 1; }
.about__stat-value .star { color: var(--brand-2); }
.about__stat-label { font-weight: 400; color: var(--soft); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; margin-top: 10px; }
.about__mobile-hero { display: none; }

@media (max-width: 767px) {
  .about { padding: 24px 0 60px; }
  .about__inner { padding: 0 24px; }
  .about__heading { font-size: 72px; letter-spacing: -2px; }
  .about__text { width: 100%; }
  .about__photo-col, .about__text > h2 { display: none; }
  .about__mobile-hero {
    display: flex; align-items: flex-end; width: 100%; min-height: 60vw;
    position: relative; overflow: hidden; padding-top: 24px; margin: 0 0 32px;
  }
  .about__mobile-left { width: 50%; display: flex; flex-direction: column; justify-content: center; padding-left: 24px; }
  .about__mobile-left span {
    font-family: var(--font-display); font-weight: 800; color: var(--ink); font-size: 48px; line-height: .88;
    text-transform: uppercase; letter-spacing: -1px; -webkit-text-stroke: 3px #fff; paint-order: stroke fill;
  }
  .about__mobile-right { width: 50%; display: flex; align-items: flex-end; justify-content: flex-end; }
  .about__mobile-right img { height: 65vw; width: auto; object-fit: contain; object-position: bottom right; mix-blend-mode: multiply; }
  .about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 28px 0; margin-top: 40px; }
  .about__stat { padding: 0 8px; border-left: 1px solid var(--line); }
  .about__stat:first-child { border-left: 0; padding-left: 0; }
  .about__stat-value { font-size: 40px; }
  .about__stat-label { font-size: 10px; letter-spacing: 1.5px; }
}

/* ==========================================================================
   The Work (project cards) + More Work (3D fan)
   ========================================================================== */
.work { background: #fff; padding: 120px 80px; }
.work__wrap { max-width: 1200px; margin: 0 auto; }
.work__title {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 96px; letter-spacing: -3px; color: var(--ink); margin-bottom: 8px; line-height: .95;
}
.work__intro { font-size: 16px; font-weight: 300; color: var(--muted); margin-bottom: 64px; }
.work__grid { display: grid; gap: 40px; }
.work__row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.work__row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.work__row-3 .project-card__area { font-size: 26px; }

.project-card { cursor: pointer; outline-offset: 4px; }
.project-card__media {
  position: relative; width: 100%; overflow: hidden; border-radius: 4px; background: #f4f4f4;
  box-shadow: var(--shadow-card); aspect-ratio: var(--ratio, 4 / 5);
}
.project-card--feature .project-card__media { max-height: 520px; }
.project-card__reveal { position: absolute; inset: 0; }
.project-card__parallax { position: absolute; inset: -6% 0; will-change: transform; }
.project-card__zoom { position: absolute; inset: 0; transform: scale(1); transition: transform .6s var(--ease-out-expo); }
.project-card:hover .project-card__zoom { transform: scale(1.04); }
.project-card__zoom img, .project-card__zoom video { width: 100%; height: 100%; object-fit: cover; }
/* clip-path "wipe up" reveal + 1.15 -> 1 settle (0.9s, staggered by index) */
.js .project-card__reveal { clip-path: inset(100% 0 0 0); }
.js .project-card__zoom { transform: scale(1.15); }
.project-card.is-in .project-card__reveal { clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease-out-expo) var(--d, 0s); }
.project-card.is-in .project-card__zoom { transform: scale(1); transition: transform .9s var(--ease-out-expo) var(--d, 0s); }
.project-card.is-in:hover .project-card__zoom { transform: scale(1.04); transition: transform .6s var(--ease-out-expo); }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 65% 0 0); transition: clip-path .6s var(--ease-out-expo); }
.ba__line { position: absolute; top: 0; bottom: 0; left: 35%; width: 2px; background: var(--brand); transition: left .6s var(--ease-out-expo); }
.project-card:hover .ba__before { clip-path: inset(0 45% 0 0); }
.project-card:hover .ba__line { left: 55%; }
.project-card__badge {
  position: absolute; top: 16px; left: 16px; background: rgba(17,17,17,.6); color: #fff;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px;
  padding: 4px 10px; border-radius: 4px; z-index: 2;
}
.project-card__caption {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px;
}
.project-card__area {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 40px;
  line-height: 1; letter-spacing: -1.5px; color: var(--ink); transition: transform .4s var(--ease-out-expo);
}
.project-card:hover .project-card__area { transform: translateX(6px); }
.project-card__line { font-weight: 300; font-size: 14px; color: var(--muted); margin-top: 6px; }
.project-card__link { position: relative; font-size: 13px; color: var(--brand); white-space: nowrap; padding-bottom: 2px; }
.project-card__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--brand);
  transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.project-card:hover .project-card__link::after { transform: scaleX(1); transform-origin: left; }

.more-work { max-width: 1200px; margin: 120px auto 0; border-top: 1px solid var(--line); padding-top: 72px; }
.more-work__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 48px; letter-spacing: -1.5px; color: var(--ink); line-height: 1; margin-bottom: 8px; }
.more-work__intro { font-size: 16px; font-weight: 300; color: var(--muted); margin-bottom: 48px; }
.fan { --fan-step: 214px; max-width: 1200px; margin: 0 auto; perspective: 1200px; width: 100%; height: 442px; position: relative; }
.fan__card {
  position: absolute; top: 34px; left: 0; width: 256px; height: 340px; border-radius: 4px; overflow: hidden;
  cursor: pointer; transform-style: preserve-3d; box-shadow: var(--shadow-card);
  border: 2px solid transparent; z-index: calc(8 - var(--i));
  filter: brightness(calc(1 - var(--i) * .06));
  transform: translateX(calc(var(--i) * var(--fan-step) + 200px)) translateZ(calc(var(--i) * -30px)) rotateY(-12deg);
  opacity: 0;
  transition: transform .5s ease-out, filter .35s, opacity .5s ease-out;
}
.fan.is-in .fan__card {
  opacity: 1; transition-delay: calc(var(--i) * .06s);
  transform: translateX(calc(var(--i) * var(--fan-step))) translateZ(calc(var(--i) * -30px)) rotateY(-12deg);
}
.fan.is-in .fan__card:hover, .fan.is-in .fan__card:focus-visible {
  z-index: 100; filter: brightness(1); border-color: var(--primary); transition-delay: 0s;
  transform: translateX(calc(var(--i) * var(--fan-step))) translateZ(120px) rotateY(0deg) scale(1.05);
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1), filter .35s, opacity .5s ease-out;
}
.fan__card picture, .strip__card picture { display: block; width: 100%; height: 100%; }
.fan__card img { width: 100%; height: 100%; object-fit: cover; }
.fan__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%); transition: background .35s; pointer-events: none; }
.fan__card:hover .fan__shade { background: linear-gradient(to top, rgba(0,0,0,0) 0%, transparent 60%); }
.fan__label { position: absolute; left: 16px; right: 16px; bottom: 16px; color: #fff; pointer-events: none; transition: transform .3s; }
.fan__card:hover .fan__label { transform: translateY(-8px); }
.fan__card:not(:first-child) .fan__label { left: max(16px, calc(256px - var(--fan-step) + 14px)); }
.fan__label b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 18px; text-transform: uppercase; line-height: 1.1; letter-spacing: .02em; }
.fan__label small { display: block; font-size: 11px; font-weight: 300; color: rgba(255,255,255,.7); margin-top: 2px; }
.strip { display: none; }

@media (max-width: 768px) {
  .work { padding: 60px 0; }
  .work__wrap, .more-work { padding: 0 24px; }
  .work__title { font-size: 56px; }
  .work__grid, .work__row-2, .work__row-3 { gap: 48px; grid-template-columns: 1fr; }
  .project-card__media { aspect-ratio: var(--ratio-m, 4 / 5); }
  .project-card__area { font-size: 32px; }
  .project-card:hover .project-card__area { transform: none; }
  .js .project-card__reveal { clip-path: none; opacity: 0; }
  .js .project-card__zoom { transform: none; }
  .project-card.is-in .project-card__reveal { opacity: 1; transition: opacity .4s var(--ease-out-expo) var(--d, 0s); }
  .more-work { margin-top: 72px; padding-top: 48px; }
  .more-work__title { font-size: 34px; }
  .fan { display: none; }
  .strip {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 0 24px; -webkit-overflow-scrolling: touch;
  }
  .strip::-webkit-scrollbar { display: none; }
  .strip__card { flex: 0 0 75vw; height: 260px; scroll-snap-align: start; position: relative; border-radius: 4px; overflow: hidden; }
  .strip__card img { width: 100%; height: 100%; object-fit: cover; }
  .strip__card:first-child { animation: work-card-nudge 1.2s ease-in-out .6s 1; }
}
@keyframes work-card-nudge { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(-24px); } 70% { transform: translateX(0); } }

/* ---------- Shared: gold rating stars (Google's star colour) ---------- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars svg { width: 14px; height: 14px; }

/* ==========================================================================
   Services — compact flat list (as published on cullisroofing.com).
   Items blur in one after another when the section scrolls into view
   (same effect the accreditation logos had: blur(12px) + scale(.92), .05s stagger).
   ========================================================================== */
.certs { background: #fff; padding: 64px 80px 100px; border-top: 1px solid rgba(232,232,232,.4); }
.services__head { max-width: 1200px; margin: 0 auto 28px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.services__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 40px; line-height: .9; color: var(--ink); margin-top: 16px; }
@media (min-width: 768px) { .services__title { font-size: 56px; } }
.services__key { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brand-2); }
.services__list {
  list-style: none; margin: 0 auto; padding: 0; max-width: 1200px;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, auto); grid-auto-flow: column; column-gap: 48px;
  border-top: 1px solid var(--line);
}
.svc {
  display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 58px;
  transition: opacity .6s ease-out, filter .6s ease-out, transform .6s ease-out; transition-delay: calc(var(--i) * .05s);
}
.svc__num { font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .05em; color: var(--brand-2); width: 22px; flex-shrink: 0; }
.svc__name { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 19px; line-height: 1.05; color: var(--ink); }
.svc__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.svc__cert { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--brand); background: var(--brand-tint); border-radius: 100px; padding: 3px 9px 3px 5px; }
.svc__cert svg { width: 13px; height: 13px; }
/* Manufacturer logos ("Certified installer") — official artwork in true brand colours on light cards,
   sized for equal visual weight (the solid VELUX block is kept a little smaller than the ClassicBond mark). */
.cert-logos { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
@media (min-width: 768px) { .cert-logos { align-items: flex-end; } }
.cert-logos__label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--brand-2); }
.cert-logos__row { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.cert-logo {
  display: grid; place-items: center; height: 84px; min-width: 156px; padding: 8px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 6px;
  transition: opacity .6s ease-out, filter .6s ease-out, transform .6s ease-out; transition-delay: calc(var(--i) * .12s);
}
.cert-logo img { width: auto; display: block; object-fit: contain; }
.cert-logo--classicbond img { height: 64px; }
.cert-logo--velux img { height: 30px; }
.cert-logo--gse img { height: 60px; }
@media (max-width: 420px) { .cert-logos__row { gap: 8px; width: 100%; } .cert-logo { min-width: 0; flex: 1; height: 64px; padding: 6px 8px; } .cert-logo img { max-width: 100%; } .cert-logo--classicbond img { height: 46px; } .cert-logo--velux img { height: 21px; } .cert-logo--gse img { height: 46px; } }
.js .certs__row > * { opacity: 0; filter: blur(12px); transform: scale(.92); }
.certs.is-in .certs__row > * { opacity: 1; filter: blur(0); transform: scale(1); }
@media (max-width: 1100px) { .services__list { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, auto); } }
@media (max-width: 768px) {
  .certs { padding: 56px 1.5rem 64px; }
  .services__list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .svc { min-height: 0; padding: 12px 0; }
  .svc__name { font-size: 18px; }
}

/* ==========================================================================
   Google reviews — flat horizontal carousel + call/email CTA
   Track is a CSS scroll-snap scroller (native swipe on touch); main.js adds
   arrows, dots, mouse drag, keyboard and a gentle autoplay (off under
   prefers-reduced-motion, paused on hover/focus/offscreen).
   ========================================================================== */
.reviews { background: #fff; padding-top: 112px; border-top: 1px solid rgba(232,232,232,.4); overflow: hidden; }
@media (min-width: 768px) { .reviews { padding-top: 140px; } }
.reviews__head { display: flex; flex-direction: column; gap: 32px; margin-bottom: 48px; }
@media (min-width: 768px) { .reviews__head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.reviews__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 48px; line-height: .9; color: var(--ink); margin-top: 24px; }
@media (min-width: 768px) { .reviews__title { font-size: 72px; } }
.reviews__badge {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--surface);
  border: 1px solid rgba(230,230,230,.9); border-left: 4px solid var(--brand); border-radius: 2px; align-self: flex-start;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.reviews__badge:hover, .reviews__badge:focus-visible { border-color: var(--brand); box-shadow: 0 10px 30px -12px rgba(1,74,61,.35); }
.reviews__badge > svg { width: 28px; height: 28px; flex-shrink: 0; }
.reviews__badge-body { display: flex; flex-direction: column; gap: 6px; }
.rating { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rating__score { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; color: var(--ink); }
.rating__count { font-family: var(--font-display); font-weight: 800; font-size: 18px; line-height: 1; text-transform: uppercase; color: var(--ink); }
.reviews__badge .stars svg { width: 16px; height: 16px; }
.reviews__badge-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.rv { position: relative; }
.rv__track {
  position: relative; list-style: none; margin: 0; padding: 8px 4px 28px; scroll-padding: 0 4px; display: flex; gap: 24px; align-items: stretch;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rv__track::-webkit-scrollbar { display: none; }
.rv__track:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }
.rv__track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.rv__slide { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; display: flex; }
@media (max-width: 1100px) { .rv__slide { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 767px) {
  .rv__track { gap: 14px; margin: 0 -1.5rem; padding: 8px 1.5rem 24px; scroll-padding: 0 1.5rem; }
  .rv__slide { flex-basis: calc((100% - 14px) / 1.15); }  /* ~1.15 cards visible */
}
/* cards slide in from the right, staggered, when the carousel scrolls into view */
.js .rv__slide { opacity: 0; transform: translateX(48px); transition: opacity .7s ease-out, transform .7s var(--ease-out-expo); transition-delay: calc(var(--i) * .1s); }
.js .rv.is-in .rv__slide { opacity: 1; transform: none; }

.rv-card {
  position: relative; width: 100%; display: flex; flex-direction: column; background: #fff; color: var(--text);
  border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: 6px; padding: 26px 26px 22px;
  box-shadow: 0 14px 40px -18px rgba(17,17,17,.22), 0 2px 6px rgba(17,17,17,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
@media (hover: hover) { .rv-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -18px rgba(1,74,61,.35), 0 2px 6px rgba(17,17,17,.05); } }
.rv-card__top { display: flex; align-items: center; justify-content: space-between; }
.rv-card__top .stars svg { width: 18px; height: 18px; }
.rv-card__g { display: inline-flex; }
.rv-card__quote { width: 30px; height: 22px; fill: var(--brand-tint); margin-top: 18px; }
.rv-card__text { margin: 12px 0 0; font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--text); }
.rv-card__text p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; overflow: hidden; }
.rv-card.is-expanded .rv-card__text p { display: block; -webkit-line-clamp: unset; overflow: visible; }
.rv-card__more { align-self: flex-start; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.rv-card__more:hover { color: var(--brand-hover); }
.rv-card__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 12px; }
.rv-card__avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.rv-card__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.05; color: var(--ink); letter-spacing: .01em; }
.rv-card__src { display: block; font-size: 12px; color: var(--soft); margin-top: 3px; }

.rv__controls { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.rv--static .rv__controls { display: none; }
.rv__btn, .rv__play {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; flex-shrink: 0;
  transition: background-color .2s, color .2s, border-color .2s, opacity .2s;
}
.rv__btn svg, .rv__play svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rv__btn:hover:not(:disabled), .rv__play:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.rv__btn:disabled { opacity: .3; cursor: default; }
.rv__btn:focus-visible, .rv__play:focus-visible, .rv__dot:focus-visible, .rv-card__more:focus-visible, .reviews__badge:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.rv__play { width: 40px; height: 40px; border-color: var(--line); color: var(--muted); margin-left: auto; }
.rv__play svg { width: 16px; height: 16px; }
.rv__play .rv__icon-play { display: none; fill: currentColor; stroke: none; }
.rv__play.is-paused .rv__icon-play { display: block; }
.rv__play.is-paused .rv__icon-pause { display: none; }
.rv__dots { display: flex; align-items: center; gap: 8px; }
.rv__dot { width: 8px; height: 8px; border-radius: 100px; background: #d4d4d4; transition: width .35s var(--ease-out-expo), background-color .25s; padding: 0; }
.rv__dot:hover { background: var(--brand-2); }
.rv__dot[aria-current="true"] { width: 30px; background: var(--brand); }
@media (max-width: 767px) { .rv__btn { width: 42px; height: 42px; } }
.ask { max-width: 900px; margin: 32px auto 0; text-align: center; padding-bottom: 80px; }
.ask__title {
  display: block; font-family: var(--font-display); font-weight: 800; color: var(--ink); text-transform: uppercase;
  letter-spacing: -2px; line-height: .9; font-size: 40px;
  clip-path: inset(0 100% 0 0); transition: clip-path .6s ease-out;
}
@media (min-width: 768px) { .ask__title { font-size: 56px; } }
.ask__sub { display: block; font-size: 18px; font-weight: 300; color: var(--muted); line-height: 1.6; margin-top: 12px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease-out .3s, transform .5s ease-out .3s; }
.ask__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; opacity: 0; transform: translateY(8px); transition: opacity .5s ease-out .4s, transform .5s ease-out .4s; }
.ask__btn { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; padding: 14px 32px; }
.ask.is-in .ask__title { clip-path: inset(0 0 0 0); }
.ask.is-in .ask__sub, .ask.is-in .ask__actions { opacity: 1; transform: none; }
.ask.is-in .ask__btn:hover { transform: scale(1.02); }
.ask__btn svg { width: 18px; height: 18px; }

/* ==========================================================================
   Contact / enquiry form
   ========================================================================== */
.contact { background: #fff; border-top: 1px solid rgba(232,232,232,.4); padding: 80px 0; }
@media (min-width: 768px) { .contact { padding: 112px 0; } }
.contact__head { max-width: 768px; margin: 0 auto 48px; text-align: center; }
@media (min-width: 768px) { .contact__head { margin-bottom: 64px; } }
.contact__head .eyebrow { margin-bottom: 24px; }
.contact__title { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; color: var(--ink); line-height: .9; margin-bottom: 24px; font-size: 48px; text-wrap: balance; }
@media (min-width: 768px) { .contact__title { font-size: 60px; } }
@media (min-width: 1024px) { .contact__title { font-size: 72px; } }
.contact__lead { font-weight: 300; font-size: 18px; color: var(--muted); max-width: 576px; margin: 0 auto; line-height: 1.625; }
@media (min-width: 768px) { .contact__lead { font-size: 20px; } }
.contact__body { max-width: 672px; margin: 0 auto; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field input {
  width: 100%; background: transparent; border: 1px solid rgba(230,230,230,.9); outline: none;
  padding: 16px; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  transition: border-color .15s ease;
}
.field input::placeholder { color: rgba(85,85,85,.6); }
.field input:focus { border-color: var(--brand); }
.field__error { display: block; min-height: 0; font-size: 12px; color: #e11d1d; margin-top: 6px; }
.field.has-error input { border-color: #e11d1d; }
.form__submit {
  width: 100%; margin-top: 16px; background: var(--brand); color: #fff; padding: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .2s ease, opacity .2s ease;
}
.form__submit:hover { background: var(--brand-hover); }
.form__submit:disabled { opacity: .6; cursor: wait; }
.form__note { font-size: 12px; color: var(--soft); text-align: center; }
.form__alert { display: none; padding: 14px 16px; border: 1px solid #f3c2c2; background: #fff5f5; color: #a11; font-size: 14px; }
.form__alert.is-visible { display: block; }
.contact-step { transition: opacity .4s ease, transform .4s ease; }
.contact-step.is-leaving { opacity: 0; transform: translateY(-16px); }
.contact-step.is-entering { opacity: 0; transform: translateY(16px); transition: none; }
.booking { position: relative; width: 100%; height: min(85vh, 800px); min-height: 600px; border-radius: 8px; overflow: hidden; }
.booking__loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: var(--surface); z-index: 1; font-size: 14px; color: var(--muted); }
.booking__spinner { width: 40px; height: 40px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
.booking iframe { position: relative; z-index: 2; width: 100%; height: 100%; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--footer-bg); padding: 48px 0; color: #fff; }
.site-footer__inner { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 32px; }
@media (min-width: 768px) { .site-footer__inner { flex-direction: row; align-items: center; } }
.site-footer__logo img { height: 64px; width: auto; display: block; }
@media (min-width: 768px) { .site-footer__logo img { height: 76px; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
@media (min-width: 768px) { .site-footer nav { gap: 32px; } }
.site-footer nav a { font-family: var(--font-display); letter-spacing: .2em; font-size: 12px; color: rgba(255,255,255,.7); transition: color .15s; }
.site-footer nav a:hover { color: #fff; }
.site-footer__meta { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 768px) { .site-footer__meta { align-items: flex-end; } }
.site-footer__meta p { font-size: 12px; color: rgba(255,255,255,.7); }
.site-footer__certs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.site-footer__certs > span:first-child { font-family: var(--font-display); letter-spacing: .2em; font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-right: 4px; }
.site-footer__certs .cert-logo { height: 40px; min-width: 0; padding: 5px 10px; border: 0; border-radius: 4px; transition: none; }
.site-footer__certs .cert-logo--classicbond img { height: 34px; }
.site-footer__certs .cert-logo--velux img { height: 16px; }
.site-footer__certs .cert-logo--gse img { height: 32px; }
.site-footer__meta a:hover { color: var(--brand-on-dark); }

/* ==========================================================================
   Generic scroll reveals ([data-reveal] + .is-in)
   Defaults: fade + rise 20px, 0.6s, ease-out-expo. Per-element delay via --d.
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(var(--ry, 20px)); }
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="scale-y"] { opacity: 1; transform: scaleY(0); }
.js [data-reveal="scale-x"] { opacity: 1; transform: scaleX(0); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 100% 0 0); }
.js [data-reveal].is-in {
  opacity: 1; transform: none; clip-path: inset(0 0 0 0);
  transition: opacity var(--dur, .6s) var(--ease, var(--ease-out-expo)) var(--d, 0s),
              transform var(--dur, .6s) var(--ease, var(--ease-out-expo)) var(--d, 0s),
              clip-path var(--dur, .6s) var(--ease, ease-out) var(--d, 0s);
}

/* ==========================================================================
   Project overlay + lightbox
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: #fff; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility 0s linear .4s;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .4s ease; }
.overlay__bar { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.overlay__bar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.overlay__bar button { font-family: var(--font-display); letter-spacing: .15em; text-transform: uppercase; font-size: 13px; color: var(--ink); }
.overlay__bar button:hover { color: var(--brand); }
.overlay__content { max-width: 1200px; margin: 0 auto; padding: 48px 24px 96px; }
.overlay__hero { border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-card); max-height: 70vh; }
.overlay__hero img { width: 100%; height: 100%; max-height: 70vh; object-fit: cover; }
.overlay__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin: 40px 0; }
.overlay__meta h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(48px, 7vw, 96px); letter-spacing: -3px; line-height: .9; }
.overlay__meta p { color: var(--muted); font-weight: 300; }
.overlay__para { max-width: 520px; font-size: 18px; font-weight: 300; line-height: 1.7; color: var(--text); }
.overlay__gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.overlay__gallery figure { margin: 0; border-radius: 4px; overflow: hidden; background: #f4f4f4; aspect-ratio: 4 / 5; position: relative; cursor: zoom-in; }
.overlay__gallery figure.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 640px) { .overlay__gallery figure.wide { grid-column: auto; } }
.overlay__gallery img, .overlay__gallery video { width: 100%; height: 100%; object-fit: cover; }
.overlay__gallery figcaption { position: absolute; left: 12px; bottom: 12px; color: #fff; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; background: rgba(17,17,17,.6); padding: 4px 10px; border-radius: 4px; }
.overlay__cta { margin-top: 64px; display: flex; gap: 16px; flex-wrap: wrap; }
.overlay__ba { position: relative; aspect-ratio: 4 / 5; max-width: 560px; border-radius: 4px; overflow: hidden; margin-bottom: 40px; touch-action: none; user-select: none; cursor: ew-resize; }
.overlay__ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay__ba .ba__before { transition: none; }
.overlay__ba .ba__line { transition: none; }

.lightbox {
  position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.92); display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.lightbox img { max-width: 92vw; max-height: 78vh; object-fit: contain; border-radius: 4px; }
.lightbox.is-open img { animation: lightbox-zoom .3s ease; }
@keyframes lightbox-zoom { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
.lightbox__title { margin-top: 24px; text-align: center; font-family: var(--font-display); font-size: 28px; text-transform: uppercase; letter-spacing: .02em; }
.lightbox__sub { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.75); margin-top: 4px; text-align: center; }
.lightbox__btn { position: absolute; top: 50%; transform: translateY(-50%); font-size: 48px; line-height: 1; padding: 16px; color: #fff; opacity: .8; }
.lightbox__btn:hover { opacity: 1; }
.lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
.lightbox__close { position: absolute; top: 16px; right: 20px; font-size: 32px; color: #fff; }

/* ==========================================================================
   Reduced motion: show final states, no transforms / loops.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero__logo, .js .hero__sub .word, .js .trust-strip, .js .hero__cta,
  .js .certs__row > *, .js .project-card__reveal, .js .project-card__zoom, .ask__sub, .ask__actions, .js .rv__slide {
    opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important;
  }
  .js .hero__title, .ask__title { clip-path: none !important; }
  .js .hero__scroll { opacity: 1; }
  .js .hero__scroll-line { transform: none; }
  .fan__card { opacity: 1; transform: translateX(calc(var(--i) * 102px)) translateZ(calc(var(--i) * -30px)) rotateY(-12deg); }
  .project-card__parallax { transform: none !important; }
  .custom-cursor { display: none; }
  .rv__track { scroll-behavior: auto; }
  .rv-card:hover { transform: none; }
}

/* Keep hero content clear of the fixed header (esp. on short/mobile screens) */
.hero { padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; min-height: 100vh; min-height: 100svh; }
@media (max-width: 767px) { .hero { padding-top: calc(var(--header-h) + 20px); padding-bottom: 72px; } }
