/* ============================================================
   TF Fitting & Installation — Design System
   ============================================================ */

:root {
  /* Colour palette */
  --black: #0a0a0b;
  --charcoal-950: #101012;
  --charcoal-900: #17171a;
  --charcoal-800: #202024;
  --charcoal-700: #2b2b30;
  --charcoal-600: #3a3a40;
  --line: #2c2c31;

  --white: #f7f5f1;
  --off-white: #eae7e0;
  --grey-300: #b9b6b0;
  --grey-400: #8f8c87;
  --grey-500: #6b6864;

  --orange-500: #ff7a1f;
  --orange-600: #e8650e;
  --orange-400: #ff9852;
  --orange-glow: rgba(255, 122, 31, 0.18);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 7rem;

  --radius: 2px;
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----------------------------- Reset ----------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
img, picture { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--white);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 600; }

p { color: var(--grey-300); }
p.lead { font-size: 1.15rem; color: var(--off-white); line-height: 1.65; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-4); }
}

section { position: relative; }
.section { padding: var(--space-6) 0; }
.section-tight { padding: var(--space-5) 0; }

@media (max-width: 720px) {
  .section { padding: var(--space-5) 0; }
}

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange-500);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--orange-500);
}

.section-head { max-width: 640px; margin-bottom: var(--space-5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: var(--space-2); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.9em;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-500);
  color: #14100b;
}
.btn-primary:hover {
  background: var(--orange-400);
  box-shadow: 0 8px 30px -6px var(--orange-glow);
  transform: translateY(-2px);
}
.btn-outline {
  border-color: rgba(247, 245, 241, 0.35);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--orange-500);
  color: var(--orange-400);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-sm { padding: 0.7em 1.4em; font-size: 0.8rem; }

/* ----------------------------- Header ----------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: var(--space-3) 0;
  transition: background 0.4s ease, padding 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 11, 0.92);
  backdrop-filter: blur(10px);
  padding: var(--space-2) 0;
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img { height: 60px; width: auto; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-4);
}
.main-nav a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--grey-300);
  position: relative;
  padding: 0.3em 0;
  transition: color 0.25s ease;
}
.main-nav a:not(.btn):hover { color: var(--white); }
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  height: 1px;
  width: 0;
  background: var(--orange-500);
  transition: width 0.3s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--white); }

.header-cta { display: flex; align-items: center; gap: var(--space-2); }
.header-cta .btn { padding: 0.8em 1.5em; font-size: 0.8rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 210;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--charcoal-950);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-5);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.35s ease;
    pointer-events: none;
  }
  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul { flex-direction: column; align-items: center; gap: var(--space-4); }
  .main-nav ul a { font-size: 1.4rem; font-family: var(--font-display); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* Mobile sticky quote bar */
.mobile-quote-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 190;
  padding: var(--space-2) var(--space-3);
  background: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
@media (max-width: 880px) {
  .mobile-quote-bar { display: block; }
  body { padding-bottom: 78px; }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,9,0.55) 0%, rgba(8,8,9,0.35) 30%, rgba(8,8,9,0.75) 78%, var(--black) 100%),
    linear-gradient(90deg, rgba(8,8,9,0.55) 0%, rgba(8,8,9,0.05) 45%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-content .eyebrow { color: var(--orange-400); }
.hero-content h1 { color: var(--white); text-wrap: balance; }
.hero-content h1 em {
  font-style: italic;
  color: var(--orange-400);
}
.hero-content p.lead {
  margin-top: var(--space-3);
  max-width: 560px;
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
/* The sticky mobile quote bar already offers this action, so drop the
   duplicate button from the hero itself on small screens. */
@media (max-width: 880px) {
  .hero-actions a[href="contact.html"] { display: none; }
}
.hero-scroll {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--grey-300);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--orange-500), transparent);
}
@media (max-width: 720px) { .hero-scroll { display: none; } }

/* ----------------------------- Services ----------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--charcoal-950);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-3);
  isolation: isolate;
}
.service-card .thumb {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.service-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s ease;
  filter: grayscale(15%) brightness(0.72);
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10,10,11,0.05) 0%, rgba(10,10,11,0.55) 55%, rgba(10,10,11,0.94) 100%);
}
.service-card:hover .thumb img {
  transform: scale(1.07);
  filter: grayscale(0%) brightness(0.85);
}
.service-card .num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--orange-400);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}
.service-card h3 { color: var(--white); margin-bottom: 0.5em; }
.service-card p { font-size: 0.9rem; color: var(--grey-300); }
.service-card .tag-line {
  width: 32px; height: 2px; background: var(--orange-500);
  margin-bottom: var(--space-2);
  transform-origin: left;
  transition: width 0.4s var(--ease);
}
.service-card:hover .tag-line { width: 56px; }

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 300px; }
}

/* ----------------------------- Split / feature sections ----------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}
.split-media .frame {
  position: absolute;
  top: 18px; left: 18px;
  right: -18px; bottom: -18px;
  border: 1px solid var(--orange-500);
  z-index: -1;
  display: none;
}
@media (min-width: 641px) { .split-media .frame { display: block; } }

.split-body p { margin-top: var(--space-2); }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: var(--space-4); }
  .split.reverse .split-media { order: 0; }
  .split-media img { aspect-ratio: 16/10; }
}

/* ----------------------------- Reviews ----------------------------- */
.reviews-section { background: var(--charcoal-950); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stars { color: var(--orange-500); font-size: 1.1rem; letter-spacing: 0.15em; line-height: 1; }
.reviews-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8em;
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.reviews-summary-text { font-size: 0.92rem; color: var(--grey-300); }
.reviews-summary-text a { color: var(--orange-400); border-bottom: 1px solid var(--orange-500); padding-bottom: 1px; }
.reviews-summary-text a:hover { color: var(--orange-300, var(--orange-400)); }

.reviews-slider { position: relative; }
.reviews-slider .container { position: relative; }
.reviews-track {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 var(--space-2);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-track::-webkit-scrollbar { display: none; }

/* Exactly 3 cards visible per "page" on desktop, 2 on tablet, 1 on mobile —
   nav buttons and swipe both move a full page at a time. */
.review-card {
  flex: 0 0 calc((100% - 2 * var(--space-3)) / 3);
  scroll-snap-align: start;
  background: var(--black);
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange-500);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
}
.review-card .stars { margin-bottom: var(--space-2); font-size: 0.95rem; }
.review-card .review-text {
  color: var(--off-white);
  font-size: 0.92rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-3);
}
.review-card .review-project {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-400);
  margin-bottom: 0.5em;
}
.review-card .review-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--grey-400);
  border-top: 1px solid var(--line);
  padding-top: var(--space-2);
}
.review-card .review-name { color: var(--white); font-weight: 600; }
.review-card .review-date { margin-left: auto; }

.reviews-nav {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--charcoal-900);
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 1.3rem;
  border-radius: 50%;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.reviews-nav:hover { border-color: var(--orange-500); color: var(--orange-400); }
/* Positive inset (never negative): the container only gets side margin once
   it hits its max-width (~1288px+ viewport); below that it fills the full
   viewport with no margin, so a negative offset here pushed the button (and
   the whole page) past the viewport edge. Sitting just inside the edge is
   safe at every width, at the cost of a slight overlap onto the end card. */
.reviews-prev { left: 8px; }
.reviews-next { right: 8px; }

@media (min-width: 900px) {
  .reviews-nav { display: flex; }
}

/* 3 cards per view (desktop) is the default above; step down as space shrinks. */
@media (max-width: 900px) {
  .review-card { flex: 0 0 calc((100% - 1 * var(--space-3)) / 2); }
}
@media (max-width: 640px) {
  .review-card { flex: 0 0 88%; }
}

/* ----------------------------- Mission / quote ----------------------------- */
.mission {
  background: var(--charcoal-950);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.mission blockquote {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.35;
  color: var(--white);
}
.mission blockquote em { color: var(--orange-400); font-style: italic; }
.mission cite {
  display: block;
  margin-top: var(--space-4);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-400);
}

/* ----------------------------- Service area ----------------------------- */
.area-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
  align-items: center;
}
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7em;
  margin-top: var(--space-3);
}
.area-pill {
  padding: 0.55em 1.1em;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--grey-300);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.area-pill.primary { border-color: var(--orange-500); color: var(--orange-400); }
.area-panel {
  border: 1px solid var(--line);
  padding: var(--space-4);
  background: var(--charcoal-950);
}
.area-panel h3 { margin-bottom: var(--space-2); }
.area-panel .radius-viz {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 260px;
  margin: var(--space-3) auto 0;
  border-radius: 50%;
  border: 1px dashed var(--charcoal-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.radius-viz::before, .radius-viz::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px dashed var(--charcoal-600);
}
.radius-viz::before { inset: 18%; }
.radius-viz::after { inset: 36%; }
.radius-viz .center {
  width: 12px; height: 12px;
  background: var(--orange-500);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--orange-glow);
  position: relative;
  z-index: 1;
}
.radius-viz .center::after {
  content: "Taunton";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .area-wrap { grid-template-columns: 1fr; }
}

/* ----------------------------- Gallery preview (home) ----------------------------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 6px;
}
.preview-grid a {
  position: relative;
  overflow: hidden;
  display: block;
}
.preview-grid img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.preview-grid a:hover img { transform: scale(1.08); }
.preview-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.55));
  opacity: 0;
  transition: opacity 0.35s ease;
}
.preview-grid a:hover::after { opacity: 1; }
.preview-grid .p1 { grid-column: span 2; grid-row: span 2; }
.preview-grid .p2 { grid-column: span 2; grid-row: span 1; }
.preview-grid .p3 { grid-column: span 2; grid-row: span 1; }
.preview-grid .p4 { grid-column: span 2; grid-row: span 1; }
.preview-grid .p5 { grid-column: span 2; grid-row: span 2; }
.preview-grid .p6 { grid-column: span 2; grid-row: span 1; }

@media (max-width: 900px) {
  .preview-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 110px; }
  .preview-grid .p1 { grid-column: span 2; grid-row: span 2; }
  .preview-grid .p2, .preview-grid .p3, .preview-grid .p4, .preview-grid .p6 { grid-column: span 2; grid-row: span 1; }
  .preview-grid .p5 { grid-column: span 4; grid-row: span 1; }
}
@media (max-width: 560px) {
  .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid > * { grid-column: span 1 !important; grid-row: span 1 !important; }
  .preview-grid { grid-auto-rows: 140px; }
}

.section-foot-link {
  display: flex;
  justify-content: center;
  margin-top: var(--space-5);
}

/* ----------------------------- Final CTA banner ----------------------------- */
.cta-banner {
  position: relative;
  padding: var(--space-6) 0;
  text-align: center;
  overflow: hidden;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { max-width: 720px; margin: 0 auto var(--space-3); }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.cta-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 50% 100%, var(--orange-glow), transparent 70%);
}
.contact-quick {
  margin-top: var(--space-4);
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--grey-300);
}
.contact-quick a { color: var(--white); border-bottom: 1px solid var(--orange-500); padding-bottom: 2px; }

/* ----------------------------- Footer ----------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-6) 0 var(--space-4);
  background: var(--charcoal-950);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}
.footer-brand .brand { margin-bottom: var(--space-3); }
.footer-brand p { font-size: 0.9rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: var(--space-3);
  font-weight: 600;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 0.7em; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--grey-300);
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--orange-400); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--grey-500);
}
.footer-bottom a { color: var(--grey-500); border-bottom: 1px solid transparent; }
.footer-bottom a:hover { color: var(--orange-400); border-bottom-color: var(--orange-500); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ----------------------------- Page hero (interior pages) ----------------------------- */
.page-hero {
  position: relative;
  padding: 168px 0 var(--space-5);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-media {
  position: absolute; inset: 0;
  z-index: 0;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,8,9,0.65), rgba(8,8,9,0.88) 80%, var(--black));
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow { color: var(--orange-400); }
.breadcrumb {
  font-size: 0.8rem;
  color: var(--grey-400);
  margin-bottom: var(--space-2);
}
.breadcrumb a { color: var(--grey-300); }
.breadcrumb a:hover { color: var(--orange-400); }

/* ----------------------------- Gallery page ----------------------------- */
.filter-bar {
  position: sticky;
  top: 76px;
  z-index: 50;
  background: rgba(10,10,11,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: var(--space-2) 0;
}
.filter-list {
  display: flex;
  gap: 0.6em;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.55em 1.1em;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--grey-300);
  transition: all 0.25s ease;
}
.filter-btn:hover { border-color: var(--orange-500); color: var(--white); }
.filter-btn.is-active {
  background: var(--orange-500);
  border-color: var(--orange-500);
  color: #14100b;
  font-weight: 600;
}

.masonry {
  columns: 4 280px;
  column-gap: 14px;
  padding: var(--space-5) 0;
}
.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--charcoal-900);
}
.masonry-item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.masonry-item:hover img { transform: scale(1.045); }
.masonry-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--space-2) var(--space-2) 0.9em;
  background: linear-gradient(180deg, transparent, rgba(6,6,7,0.92) 75%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.masonry-item:hover .cap { opacity: 1; transform: translateY(0); }
.masonry-item .cap .cat {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-400);
  display: block;
  margin-bottom: 0.3em;
}
.masonry-item .cap .desc { font-size: 0.82rem; color: var(--white); }
.masonry-item.is-hidden { display: none; }

@media (max-width: 640px) {
  .masonry { columns: 2 160px; column-gap: 8px; }
  .masonry-item { margin-bottom: 8px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 6, 7, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}
.lightbox.is-open { display: flex; }
.lightbox-inner {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.lightbox-cap {
  margin-top: var(--space-3);
  text-align: center;
  color: var(--grey-300);
  font-size: 0.9rem;
}
.lightbox-cap .cat { color: var(--orange-400); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; display: block; margin-bottom: 0.4em; }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: fixed;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--white);
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { border-color: var(--orange-500); color: var(--orange-400); }
.lightbox-close { top: var(--space-3); right: var(--space-3); }
.lightbox-prev { left: var(--space-3); top: 50%; transform: translateY(-50%); }
.lightbox-next { right: var(--space-3); top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 38px; height: 38px; }
}

/* ----------------------------- Contact page ----------------------------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-6);
  align-items: start;
}
.contact-info-card {
  border: 1px solid var(--line);
  padding: var(--space-4);
  background: var(--charcoal-950);
}
.contact-info-card h2 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.contact-method {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  border-top: 1px solid var(--line);
}
.contact-method:first-of-type { border-top: none; }
.contact-method .k {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-400);
  width: 90px;
  flex-shrink: 0;
  padding-top: 0.2em;
}
.contact-method a, .contact-method span.v { color: var(--white); font-size: 0.95rem; }
.contact-method a:hover { color: var(--orange-400); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 0.5em; margin-bottom: var(--space-3); }
.field label {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-400);
}
.field label .req { color: var(--orange-500); }
.field input, .field select, .field textarea {
  background: var(--charcoal-900);
  border: 1px solid var(--line);
  color: var(--white);
  padding: 0.85em 1em;
  /* 1rem (16px), not smaller: iOS Safari auto-zooms the page in when a
     focused field's font-size is below 16px. */
  font-size: 1rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  background: var(--charcoal-800);
}
.field input::placeholder, .field textarea::placeholder { color: var(--grey-500); }
.form-note { font-size: 0.8rem; color: var(--grey-500); margin-top: var(--space-2); }
.form-success {
  display: none;
  border: 1px solid var(--orange-500);
  padding: var(--space-3);
  text-align: center;
  margin-bottom: var(--space-3);
}
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--orange-400); margin-bottom: 0.4em; }
.form-error {
  display: none;
  border: 1px solid #d64545;
  padding: var(--space-3);
  text-align: center;
  margin-bottom: var(--space-3);
  color: #ff9a9a;
  font-size: 0.92rem;
}
.form-error.is-visible { display: block; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.enquiry-form .cf-turnstile { margin-bottom: var(--space-3); }
.enquiry-form button[type="submit"][disabled] { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 900px) {
  .contact-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* Map */
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-top: 2px solid var(--orange-500);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--charcoal-950);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: invert(92%) hue-rotate(180deg) brightness(0.95) contrast(0.88);
}
@media (max-width: 720px) {
  .map-frame { aspect-ratio: 4 / 5; }
}

/* ----------------------------- Reveal-on-scroll -----------------------------
   Progressive enhancement only: content is fully visible by default so it
   never depends on JavaScript running. The "js" class (set by an inline
   script in <head>) opts elements into the hidden-until-visible animation. */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

/* ----------------------------- Misc ----------------------------- */
.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}
::selection { background: var(--orange-500); color: #14100b; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange-500);
  color: #14100b;
  padding: 1em;
  z-index: 999;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }
