/* =========================================================
   ROLFE & SONS — styles
   Inter 100% — single sans-serif, weights 400/500/600/800
   GSAP animations + Lenis smooth scroll + Three.js hero scene
   ========================================================= */

:root {
  /* Brand palette — refined naming + tokens introduced in pass 3 */
  /* Single dark — unified across hero, scrolled header, footer, Reading FC */
  --rolfe-navy:    #0F293C;
  --hero-top:      #0F293C;
  --hero-bottom:   #0F293C;
  --teal-500:      #3FB4B8;     /* primary teal */
  --teal-300:      rgba(63, 180, 184, 0.35);
  --teal-100:      rgba(63, 180, 184, 0.12);

  --navy-900:      #0F293C;
  --navy-800:      #0F293C;
  --navy-700:      #1A3A4A;     /* ground plane / panel surfaces */

  --stone-50:      #F5F1EC;     /* warm off-white background */
  --stone-100:     #EDE7DF;     /* slightly darker stone (form card border tone) */
  --stone-200:     #D9D3CB;     /* hairline borders */

  --charcoal-900:  #1A2530;     /* body */
  --charcoal-600:  #6B7785;     /* supporting text */
  --charcoal-400:  #9AA3AC;     /* placeholders */

  --error-500:     #C5302A;

  /* Backwards-compat aliases (older code paths still reference these) */
  --navy:          var(--navy-800);
  --near-black:    var(--hero-bottom);
  --teal:          var(--teal-500);
  --teal-soft:     var(--teal-300);
  --off-white:     var(--stone-50);
  --white:         #FFFFFF;
  --warm-grey:     var(--charcoal-600);
  --charcoal:      var(--charcoal-900);
  --line:          rgba(15, 42, 61, .1);
  --line-light:    rgba(255, 255, 255, .12);

  /* Layout */
  --container:     1240px;
  --gutter:        24px;
  --section-pad:   140px;
  --gap:           48px;
  --header-h:      80px;

  /* Type scale */
  --hero-fs:       96px;        /* restored — large confident hero */
  --h2-fs:         44px;        /* used for most section headings */
  --stat-fs:       140px;       /* facts & figures numerals */
  --stat-h2-fs:    64px;        /* facts heading is larger than other h2 */
  --service-num-fs:140px;       /* service section anchor numerals */
  --body-fs:       18px;

  /* The smoothest UI easing curve — used everywhere */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fast:     cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  font-size: var(--body-fs);
  line-height: 1.6;
  color: var(--charcoal-900);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

img, svg { display: block; max-width: 100%; }
a { color: var(--navy-800); text-decoration: none; transition: color 200ms var(--ease); }
a:hover { color: var(--teal-500); }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }

/* All headings — Inter 800. Tightened line-height. */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  margin: 0 0 .4em;
}
.display-h2 {
  font-size: var(--h2-fs);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 22ch;
}
p { margin: 0 0 1em; max-width: 65ch; line-height: 1.6; }

::selection { background: var(--teal-500); color: var(--white); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-800); color: var(--white); padding: 12px 16px;
  z-index: 10000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Focus rings */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
}
.section-head {
  margin-bottom: 80px;
  max-width: 800px;
}
.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--center .display-h2,
.section-head--center .lede {
  margin-left: auto;
  margin-right: auto;
}
.section-head .lede {
  font-size: 20px;
  color: var(--charcoal-600);
  margin: 16px 0 0;
  max-width: 56ch;
}

.kicker {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--charcoal-600);
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: currentColor;
}
.kicker--teal { color: var(--teal-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 18px 36px;
  border-radius: 4px;
  white-space: nowrap;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
  position: relative;
  overflow: hidden;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy-800);
  transform: translate3d(-101%, 0, 0);
  transition: transform 250ms var(--ease);
  z-index: -1;
}
.btn-primary { background: var(--teal-500); color: var(--white); font-size: 18px; }
.btn-primary:hover { color: var(--white); }
.btn-primary:hover::before { transform: translate3d(0, 0, 0); }

.btn-secondary {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
  font-size: 18px;
}
.btn-secondary:hover { color: var(--white); }
.btn-secondary:hover::before { transform: translate3d(0, 0, 0); }

.btn-on-dark {
  color: var(--white);
  border-color: rgba(255, 255, 255, .6);
}
.btn-on-dark::before { background: var(--white); }
.btn-on-dark:hover { color: var(--navy-800); border-color: var(--white); }
.btn-on-dark:hover::before { transform: translate3d(0, 0, 0); }

.btn-block { width: 100%; padding: 20px; }

/* CTA pulse — quiet teal halo every 4s */
.btn-pulse { isolation: isolate; }
.btn-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 1.5px solid var(--teal-500);
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  animation: btn-pulse 4s var(--ease) infinite;
}
@keyframes btn-pulse {
  0%   { transform: scale3d(1, 1, 1);    opacity: .55; }
  60%  { transform: scale3d(1.18, 1.18, 1); opacity: 0; }
  100% { transform: scale3d(1.18, 1.18, 1); opacity: 0; }
}

/* ---------- Site photos: unified cohesion filter ---------- */
.site-photo {
  filter: saturate(0.92) contrast(1.06) brightness(1.02);
}

/* GPU acceleration for animated elements */
.service-row,
.process-step,
.testimonial,
.testimonial-card,
.gallery-tile,
.gallery-item,
.fact,
.stat-item,
.section-reveal,
[data-animate],
.fade-up,
.reveal {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.intro-img,
.featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-img { border-radius: 4px; }
.intro-media { aspect-ratio: 4/5; overflow: hidden; border-radius: 4px; }

/* =============================================================
   1. STICKY HEADER — transparent at top, solid Rolfe Navy on scroll
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.site-header.scrolled,
.site-header[data-state="solid"] {
  background: var(--rolfe-navy);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  height: var(--header-h);
}
.logo-link { display: inline-flex; align-items: center; flex-shrink: 0; }
/* Logo base — single dark asset, recoloured via CSS filter for each context */
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: filter 0.3s ease;
}
.logo { height: 44px; width: auto; } /* legacy alias kept for backwards compat */

/* Header logo — invert to white over the dark hero (transparent state) */
.site-header:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }
/* Header logo — still white when header solidifies on scroll */
.site-header.scrolled .logo-img { filter: brightness(0) invert(1); }

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
  position: relative;
  padding: 8px 0;
  letter-spacing: .01em;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--teal-500);
  transition: width 250ms var(--ease);
}
.primary-nav a:hover::after { width: 100%; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--white);
}
.phone-link:hover { color: var(--teal-500); }
.cta-quote { padding: 12px 22px; font-size: 14px; }

.hamburger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 250ms var(--ease), opacity 250ms var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translate3d(0, 7px, 0) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translate3d(0, -7px, 0) rotate(-45deg); }

.mobile-drawer {
  background: var(--rolfe-navy);
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0 32px;
}
.mobile-drawer ul { list-style: none; padding: 0; margin: 0 0 20px; }
.mobile-drawer li { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mobile-drawer a { font-size: 18px; font-weight: 500; color: var(--white); }

/* =============================================================
   2. HERO — split layout, navy gradient, isometric 3D scene
   ============================================================= */
.hero {
  position: relative;
  height: 90vh;
  min-height: 700px;
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  color: var(--white);
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-grid {
  position: relative;
  width: 100%;
  /* Slight upward bias from centre */
  margin-top: -3vh;
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--teal-500);
  margin: 0 0 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-kicker::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--teal-500);
  flex-shrink: 0;
}

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: var(--hero-fs);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 0 0 28px;
  max-width: 1020px;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .75);
  max-width: 600px;
  margin: 0 0 36px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-ctas .btn-primary { background: var(--teal-500); padding: 18px 36px; font-size: 18px; }
.hero-ctas .btn-on-dark { padding: 18px 36px; font-size: 18px; }

.hero-trust {
  font-size: 14px;
  color: rgba(255, 255, 255, .55);
  margin: 0;
  letter-spacing: .01em;
}

[data-splitting] .word { overflow: hidden; }
[data-splitting] .word .char,
[data-splitting] .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* 3D scene container — absolute right side, vertically centred */
.hero-3d {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translate3d(0, -50%, 0);
  width: 600px;
  height: 600px;
  pointer-events: none;
  z-index: 1;
}
.hero-3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--white) 0%, transparent 100%);
  transform-origin: top;
  animation: scroll-line-draw 1.5s var(--ease) infinite;
}
@keyframes scroll-line-draw {
  0%   { transform: scale3d(1, 0, 1); opacity: 1; }
  60%  { transform: scale3d(1, 1, 1); opacity: 1; }
  80%, 100% { transform: scale3d(1, 1, 1); opacity: 0; }
}

/* =============================================================
   3. MARQUEE (top services strip)
   ============================================================= */
.marquee {
  background: var(--stone-50);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 28px 0;
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: .04em;
  color: var(--navy-800);
  padding-right: 8px;
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* =============================================================
   4. INTRO / ABOUT
   ============================================================= */
.intro { background: var(--stone-50); }
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-copy p { font-size: var(--body-fs); color: var(--charcoal-900); }
.intro-copy p + p { margin-top: 1.2em; }

/* =============================================================
   5. SERVICES — numbered rows + hover thumbs
   ============================================================= */
.services {
  background: var(--stone-50);
  position: relative;
  padding-top: 60px;
}
.services-marquee {
  overflow: hidden;
  margin-bottom: 80px;
  padding: 20px 0;
  pointer-events: none;
}
.services-marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}
.services-marquee span {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 180px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(15, 42, 61, .06);
  padding-right: 60px;
  flex-shrink: 0;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 220px 1fr 240px;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 350ms var(--ease);
  position: relative;
}
.service-row:hover { transform: translate3d(8px, 0, 0); }

.service-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: var(--service-num-fs);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--teal-300);
  transition: color 350ms var(--ease);
  font-variant-numeric: tabular-nums;
}
.service-row:hover .service-num { color: var(--teal-500); }

.service-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--navy-800);
}
.service-body p {
  font-size: 17px;
  color: var(--charcoal-900);
  max-width: 480px;
  margin: 0;
  line-height: 1.6;
}

.service-thumb {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(15, 42, 61, .15);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(40px, 0, 0);
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease),
    visibility 0s 400ms;
  justify-self: end;
}
.service-row:hover .service-thumb {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 400ms var(--ease),
    transform 400ms var(--ease),
    visibility 0s;
}

/* =============================================================
   6. FACTS & FIGURES (Inter 800)
   ============================================================= */
.facts { background: var(--stone-50); border-top: 1px solid var(--line); }
.facts .section-head { margin-bottom: 100px; }
.facts .display-h2 {
  font-size: var(--stat-h2-fs);
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 26ch;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: center;
}
.fact { padding: 24px 0; }
.fact-num,
.stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: var(--stat-fs);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy-800);
  margin: 0 0 24px;
  font-variant-numeric: tabular-nums;
}
.stat-value, .stat-suffix { display: inline-block; }
.stat-suffix { transition: opacity 0.4s ease; }
.fact-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--charcoal-600);
  margin: 0;
  max-width: 24ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* =============================================================
   7. FEATURED PROJECT — single column, no big photo, 4-photo grid
   ============================================================= */
.featured {
  position: relative;
  color: var(--white);
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
}
.featured-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(63, 180, 184, .12) 0%, transparent 50%);
  pointer-events: none;
}
.featured-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.featured-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 12px;
}
.featured-sub {
  font-size: 22px;
  color: rgba(255, 255, 255, .7);
  margin: 0 0 40px;
  max-width: none;
}
.featured-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 48px;
  padding: 0;
  flex-wrap: wrap;
}
.featured-meta > div {
  padding: 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}
.featured-meta > div:first-child { padding-left: 0; }
.featured-meta > div:last-child { border-right: 0; padding-right: 0; }
.featured-meta dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin: 0 0 6px;
}
.featured-meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
}
.featured-body {
  font-size: 17px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.7;
  margin: 0 auto 40px;
  max-width: 720px;
}
.featured-cta { margin-top: 0; }

/* Reading FC compact 2×2 grid */
.fc-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: 64px auto 0;
  border-radius: 8px;
  overflow: hidden;
}
.fc-image-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 4px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateZ(0);
}
.fc-image-grid img:hover { transform: scale3d(1.04, 1.04, 1); }

/* =============================================================
   8. PROCESS — with hover lift + number transition
   ============================================================= */
.process { background: var(--white); }
.process-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.process-step {
  padding: 32px 24px 32px 24px;
  border-radius: 6px;
  cursor: default;
  position: relative;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform;
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.process-step:hover {
  transform: translate3d(0, -6px, 0);
  box-shadow: 0 12px 32px rgba(15, 41, 60, 0.12);
}
.process-num,
.process-step .step-number {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(63, 180, 184, .25);
  margin-bottom: 18px;
  font-variant-numeric: tabular-nums;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.process-step:hover .process-num,
.process-step:hover .step-number {
  color: #0F293C;
  opacity: 1;
}
.process-step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.2;
  position: relative;
  display: inline-block;
}
.process-step h3::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--teal-500);
  transition: width 250ms var(--ease);
}
.process-step:hover h3::after { width: 100%; }
.process-step p {
  font-size: 16px;
  color: var(--charcoal-900);
  margin: 0;
  line-height: 1.55;
  max-width: 36ch;
}

/* =============================================================
   9. WORK GALLERY — hover captions
   ============================================================= */
.work { background: var(--stone-50); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--navy-800);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease);
}
.gallery-tile:hover img { transform: scale3d(1.04, 1.04, 1); }
.gallery-tile figcaption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px 22px 22px;
  color: var(--white);
  background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 32, .92) 100%);
  transform: translate3d(0, 100%, 0);
  transition: transform 400ms var(--ease);
  pointer-events: none;
  z-index: 2;
  gap: 4px;
}
.gallery-tile:hover figcaption { transform: translate3d(0, 0, 0); }
.gc-title {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.gc-detail {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.4;
}

/* =============================================================
   10. TESTIMONIALS — infinite marquee with edge fades
   ============================================================= */
.testimonials {
  background: var(--stone-50);
  position: relative;
  overflow: hidden;
}
.testimonials .container { margin-bottom: 64px; }

.testimonials-marquee {
  position: relative;
  overflow: hidden;
  padding: 8px 0 16px;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
}

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testimonialScroll 60s linear infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}
@keyframes testimonialScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.testimonials-marquee:hover .testimonials-track,
.testimonials[data-marquee]:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonial {
  width: 420px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: 8px;
  padding: 32px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(12, 53, 69, .04);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease);
  display: flex;
  flex-direction: column;
}
.testimonial:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 16px 40px rgba(12, 53, 69, .08);
  border-color: rgba(15, 42, 61, .18);
}
.g-mark { display: inline-flex; margin-bottom: 24px; }
.testimonial blockquote {
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  color: var(--charcoal-900);
  flex: 1;
  font-weight: 400;
}
.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--stone-200);
  padding-top: 20px;
  font-size: 14px;
}
.cite-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.cite-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal-500);
  position: relative;
  padding-left: 14px;
}
.cite-tag::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translate3d(0, -50%, 0);
  width: 4px; height: 4px;
  background: var(--teal-500);
  border-radius: 50%;
}

/* =============================================================
   11. CONTACT — branded form, native to the brand
   ============================================================= */
.contact { background: var(--stone-50); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-copy h2 { max-width: 14ch; }
.contact-sub {
  font-size: 17px;
  color: var(--charcoal-900);
  max-width: 48ch;
  margin: 24px 0 48px;
}
.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 28px;
}
.contact-details li { display: grid; gap: 6px; }
.cd-label {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal-500);
  font-weight: 600;
}
.cd-value {
  font-size: 20px;
  color: var(--navy-800);
  font-weight: 500;
}
.cd-phone { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }

.contact-form-wrap {
  background: var(--white);
  border-radius: 8px;
  padding: 48px;
  border: 1px solid var(--stone-200);
  box-shadow: 0 4px 24px rgba(12, 53, 69, .06);
}

/* Honeypot — invisible to humans */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.field label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal-600);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 16px 18px;
  border: 1.5px solid var(--stone-200);
  border-radius: 6px;
  background: var(--stone-50);
  color: var(--charcoal-900);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--charcoal-400); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(63, 180, 184, .12);
}
.field textarea { resize: vertical; min-height: 140px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Custom select chevron — teal */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233FB4B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

#enquiry-form button[type="submit"] {
  min-width: 240px;
  width: 100%;
  margin-top: 8px;
}
.btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.is-sending .btn-spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
  margin: 14px 0 0;
  padding: 14px 16px;
  background: #fdf1f1;
  border: 1px solid #f1c5c5;
  color: var(--error-500);
  border-radius: 6px;
  font-size: 14px;
}
.form-success {
  text-align: center;
  padding: 48px 24px;
}
.form-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(63, 180, 184, .12);
  border-radius: 50%;
  margin-bottom: 20px;
}
.form-success-icon svg { color: var(--teal-500); }
.success-headline {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy-800);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.form-success p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--charcoal-600);
  max-width: 36ch;
  margin: 0 auto;
}

/* =============================================================
   12. FOOTER
   ============================================================= */
.site-footer {
  background: var(--hero-bottom);
  color: rgba(255, 255, 255, .7);
  padding: 100px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 64px;
  padding-bottom: 80px;
}
.footer-logo {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 24px;
}
.site-footer .logo-img {
  filter: brightness(0) invert(1);
  height: 52px;
  width: auto;
}
.footer-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  margin: 0 0 28px;
  max-width: 36ch;
  line-height: 1.5;
}
.footer-meta { font-size: 13px; color: rgba(255, 255, 255, .4); margin: 0; }

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-col a { color: rgba(255, 255, 255, .7); font-size: 15px; }
.footer-col a:hover { color: var(--teal-500); }
.footer-col li { font-size: 15px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 24px 0;
}
.footer-bottom p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  letter-spacing: .04em;
  text-align: center;
}

/* =============================================================
   Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track, .services-marquee-track, .testimonials-track,
  .hero-scroll-line, .btn-pulse::after { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  :root {
    --section-pad: 100px;
    --hero-fs: 64px;
    --h2-fs: 38px;
    --stat-fs: 110px;
    --stat-h2-fs: 52px;
    --service-num-fs: 110px;
  }
  .hero { height: 80vh; min-height: 640px; }
  .hero-grid { margin-top: 0; }
  .hero-text { max-width: none; padding-right: 0; }
  .hero-3d {
    position: relative;
    top: auto; right: auto;
    transform: none;
    width: 100%;
    height: 400px;
    max-width: 400px;
    margin: 32px auto 0;
  }

  .intro-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }

  .facts-grid { grid-template-columns: repeat(3, 1fr); gap: 48px 24px; }
  .testimonials-grid,
  .gallery-grid,
  .process-grid { grid-template-columns: repeat(2, 1fr); }

  .service-row { grid-template-columns: 140px 1fr 200px; gap: 40px; padding: 44px 0; }
  .service-thumb { width: 200px; height: 130px; }
  .service-num { font-size: var(--service-num-fs); }
  .service-body h3 { font-size: 28px; }

  .services-marquee span { font-size: 140px; }
  .featured-headline { font-size: 48px; }

  /* Tablet keeps 2×2 grid same shape */
  .featured-meta { flex-direction: column; gap: 14px; }
  .featured-meta > div { padding: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 12px; text-align: center; }
  .featured-meta > div:last-child { border-bottom: 0; padding-bottom: 0; }

  .testimonial { width: 380px; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
    --hero-fs: 44px;
    --h2-fs: 32px;
    --stat-fs: 96px;
    --stat-h2-fs: 44px;
    --service-num-fs: 72px;
    --header-h: 64px;
    --gutter: 20px;
  }
  body { font-size: 16px; }

  .primary-nav { display: none; }
  .cta-quote, .phone-text { display: none; }
  .hamburger { display: flex; }
  .header-actions { gap: 8px; }
  .phone-link {
    width: 44px; height: 44px;
    align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
  }
  .phone-link svg { width: 20px; height: 20px; }
  .logo, .logo-img { height: 36px; }
  .site-footer .logo-img { height: 44px; }

  .hero {
    height: 75vh;
    min-height: 500px;
    padding: calc(var(--header-h) + 32px) 0 56px;
  }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-headline { font-size: var(--hero-fs); letter-spacing: -0.022em; }
  .hero-sub { font-size: 18px; margin-bottom: 28px; }
  .hero-ctas { gap: 12px; }
  .hero-ctas .btn { flex: 1; padding: 16px 20px; font-size: 15px; }
  /* Mobile: don't render the 3D scene at all */
  .hero-3d { display: none; }
  .hero-scroll { display: none; }

  .marquee-item { font-size: 17px; }
  .services-marquee span { font-size: 90px; padding-right: 32px; }

  .display-h2 { font-size: var(--h2-fs) !important; line-height: 1.1; }
  .facts .display-h2 { font-size: var(--stat-h2-fs) !important; }

  .service-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 36px 0;
  }
  .service-thumb { display: none; }
  .service-num { font-size: var(--service-num-fs); }
  .service-body h3 { font-size: 24px; }
  .service-body p { font-size: 16px; }

  .facts-grid { grid-template-columns: 1fr; gap: 56px; }
  .fact-label { font-size: 11px; }

  .featured { padding: 60px 0; }
  .featured-content { padding: 0 4px; }
  .featured-headline { font-size: 36px; }
  .featured-sub { font-size: 18px; margin-bottom: 28px; }
  .featured-meta { gap: 12px; padding: 18px 0; margin-bottom: 32px; }
  .featured-body { font-size: 16px; }
  /* Mobile: keep 2×2 grid, smaller, with square crop per spec */
  .fc-image-grid {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    gap: 8px;
    margin-top: 40px;
  }
  .fc-image-grid img { aspect-ratio: 1/1; }

  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-num { font-size: 56px; }

  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .gallery-tile figcaption {
    transform: none;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 22, 32, .82) 70%);
    padding: 16px;
  }

  .testimonials-track { animation-duration: 50s; }
  .testimonial { width: 320px; padding: 28px; }

  .contact-grid { gap: 48px; }
  .contact-form-wrap { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .cd-phone { font-size: 24px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 56px;
  }

  .section-head { margin-bottom: 56px; }

  h1 { font-size: var(--hero-fs) !important; }
  h2 { font-size: var(--h2-fs) !important; }
}

/* Small phones — Reading FC drops to single col with landscape crop */
@media (max-width: 480px) {
  .fc-image-grid { grid-template-columns: 1fr; }
  .fc-image-grid img { aspect-ratio: 16/9; }
}
@media (max-width: 380px) {
  :root { --hero-fs: 36px; --h2-fs: 26px; --stat-h2-fs: 36px; --stat-fs: 80px; }
  .featured-headline { font-size: 30px; }
}

