/* ==========================================================================
   KD Roofing Limited
   Slate, shingle grey and the KD logo's red. Mobile-first, breakpoints at
   480 / 768 / 1024.
   ========================================================================== */

:root {
  /* Colors */
  --ink: #1a1e22;
  --ink-deep: #121518;
  --ink-soft: #262b31;
  --red-light: #d23c27;
  --red: #c4301c;
  --red-dark: #9a2312;
  --ember: #ff9478;
  --cream: #fff0d8;
  --paper: #fbf9f5;
  --shingle: #f1eee8;
  --stone: #e2ddd4;
  --white: #ffffff;
  --star: #b97c10;
  --star-light: #f0b54a;
  --text: #1e2226;
  --text-muted: #53595f;
  --text-on-dark: #f3f1ec;
  --text-on-dark-muted: #c2c4c4;
  --line: #d6d0c5;
  --line-dark: rgba(255, 255, 255, 0.16);
  --input-border: #a8a296;
  --success: #2c6e41;
  --error: #b3261e;

  /* RGB channels for overlays */
  --ink-rgb: 26, 30, 34;
  --red-rgb: 196, 48, 28;
  --ember-rgb: 255, 148, 120;

  /* Typography */
  --font-heading: 'Zilla Slab', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-body: 1.0938rem;
  --fs-small: 0.95rem;
  --fs-h1: clamp(2.4rem, 1.6rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.2vw, 3rem);
  --fs-h3: 1.4rem;
  --fs-lead: clamp(1.12rem, 1.02rem + 0.4vw, 1.3rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --section-pad: clamp(4rem, 3rem + 4vw, 6.5rem);
  --container-max: 1180px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --nav-height: 76px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-photo: 0 18px 40px rgba(var(--ink-rgb), 0.22);
  --shadow-nav: 0 2px 18px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 16px rgba(var(--ink-rgb), 0.06), 0 1px 3px rgba(var(--ink-rgb), 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --shadow-card-hover: 0 28px 56px rgba(var(--ink-rgb), 0.14), 0 10px 20px rgba(var(--ink-rgb), 0.08);
  --shadow-btn: 0 4px 15px rgba(var(--red-rgb), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-hover: 0 12px 30px rgba(var(--red-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  --shadow-btn-pressed: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  --focus-ring: 0 0 0 3px rgba(var(--red-rgb), 0.3);

  /* Motion */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

a {
  color: var(--red-dark);
  transition: color var(--transition-fast);
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.proof :focus-visible,
.cta :focus-visible,
.hero :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--ember);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: 400;
  padding: var(--space-sm) var(--space-md);
  color: var(--white);
  background: var(--ink-deep);
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-light) 0%, var(--red) 50%, var(--red-dark) 100%);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  color: var(--white);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-3px);
}

.btn-primary:active {
  box-shadow: var(--shadow-btn-pressed);
  transform: translateY(0);
}

.btn-lg {
  min-height: 56px;
  padding: 0.9rem 1.9rem;
  font-size: 1.15rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.75;
}

.text-link {
  display: inline-block;
  padding-block: 0.6rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.text-link:hover {
  color: var(--red-dark);
}

.text-link--light {
  color: var(--white);
  text-decoration-color: var(--ember);
}

.text-link--light:hover {
  color: var(--ember);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.72), rgba(var(--ink-rgb), 0));
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.scrolled,
.site-header.menu-open {
  background: var(--ink);
  box-shadow: var(--shadow-nav);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
}

.logo {
  display: block;
  padding-block: 0.4rem;
}

.logo-img {
  width: auto;
  height: 64px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--white);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Solid panel on mobile, never see-through */
.nav-menu {
  position: absolute;
  inset: 100% 0 auto 0;
  display: none;
  padding: var(--space-md) var(--gutter) var(--space-lg);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.nav-menu.open {
  display: block;
}

.nav-links a {
  display: block;
  position: relative;
  padding-block: 0.75rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 0;
  height: 2px;
  background: var(--ember);
  transition: width var(--transition-base);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--white);
}

.btn-nav {
  width: 100%;
  margin-top: var(--space-sm);
  border-radius: var(--radius-full);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: 0;
    background: none;
    border: 0;
  }

  .nav-links {
    display: flex;
    gap: var(--space-lg);
  }

  .nav-links a::after {
    bottom: 6px;
  }

  .btn-nav {
    width: auto;
    margin: 0;
    padding: 0.7rem 1.6rem;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100svh, 860px);
  padding-block: calc(var(--nav-height) + var(--space-2xl)) var(--space-3xl);
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--ink);
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg picture,
.cta-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 40%;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.78) 0%, rgba(var(--ink-rgb), 0.82) 100%);
}

.hero .container {
  position: relative;
}

.hero-content {
  max-width: 720px;
}

.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.05;
  color: var(--white);
}

.hero-kicker {
  display: block;
  margin-bottom: var(--space-md);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--ember);
}

.hero-line {
  display: block;
}

.highlight {
  color: var(--ember);
}

.hero-text {
  max-width: 34em;
  margin-top: var(--space-lg);
  font-size: var(--fs-lead);
  color: var(--text-on-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

.hero-quote {
  max-width: 500px;
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-lg);
  background: rgba(var(--ink-rgb), 0.55);
  border-left: 3px solid var(--ember);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-quote p {
  margin-top: var(--space-xs);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero-quote figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.stars {
  display: inline-flex;
  gap: 2px;
}

.stars svg {
  width: 16px;
  height: 16px;
  fill: var(--star);
}

.hero-quote .stars svg,
.proof .stars svg {
  fill: var(--star-light);
}

@media (min-width: 768px) {
  .hero-bg img {
    object-position: 8% 40%;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.94) 0%, rgba(var(--ink-rgb), 0.86) 42%, rgba(var(--ink-rgb), 0.3) 68%, rgba(var(--ink-rgb), 0.08) 100%);
  }
}

/* ==========================================================================
   Marquee and service area strip
   ========================================================================== */

.marquee {
  overflow: hidden;
  padding-block: 0.85rem;
  background: var(--ink-deep);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text-on-dark);
}

.marquee-item::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.5rem;
  background: var(--ember);
  border-radius: 50%;
}

.area-strip {
  padding-block: var(--space-md);
  color: var(--white);
  background: var(--red);
}

.area-strip-inner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.area-strip p {
  font-weight: 600;
}

.area-hours {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .area-strip-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-xl);
  }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-layout {
  display: grid;
  gap: var(--space-2xl);
}

.services-intro p {
  margin-block: var(--space-md) var(--space-sm);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.service {
  display: grid;
  gap: var(--space-sm);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 1px solid var(--line);
}

.service h3 {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.service-icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--red);
}

.service-body p {
  color: var(--text-muted);
}

.service-body .service-note {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--red-dark);
}

@media (min-width: 768px) {
  .service {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .services-layout {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: var(--space-3xl);
    align-items: start;
  }

  .services-intro {
    position: sticky;
    top: calc(var(--nav-height) + var(--space-xl));
  }
}

/* ==========================================================================
   Job photos
   ========================================================================== */

.work {
  background: var(--shingle);
  content-visibility: auto;
  contain-intrinsic-size: auto 1800px;
}

.work-head {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}

.work-head p {
  max-width: 34em;
  color: var(--text-muted);
}

.work-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.work-photo figcaption {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-muted);
}

.work-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--stone);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.work-zoom picture {
  display: block;
  width: 100%;
  height: 100%;
}

.work-zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-tag {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 0.2rem 0.7rem;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-sm);
}

.work-tag--after {
  background: var(--red);
}

.work-zoom-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(var(--ink-rgb), 0);
  opacity: 0;
  transition: opacity var(--transition-base), background var(--transition-base);
}

.work-zoom-icon svg {
  width: 44px;
  height: 44px;
  transform: scale(0.8);
  transition: transform var(--transition-base);
}

.work-zoom:hover .work-zoom-icon,
.work-zoom:focus-visible .work-zoom-icon {
  background: rgba(var(--ink-rgb), 0.38);
  opacity: 1;
}

.work-zoom:hover .work-zoom-icon svg,
.work-zoom:focus-visible .work-zoom-icon svg {
  transform: scale(1);
}

.work-grid--fleet .work-zoom {
  aspect-ratio: 4 / 3;
}

.work-grid--fleet .work-zoom img {
  object-position: 50% 100%;
}

.booths {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.booths-intro p {
  max-width: 28em;
  margin-top: var(--space-xs);
  color: var(--text-muted);
}

.booths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

.booths-grid .work-zoom {
  aspect-ratio: 16 / 10;
}

@media (min-width: 768px) {
  .work-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: end;
    gap: var(--space-xl);
  }

  .work-grid--lead {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }

  /* Same height as the 16:9 photo in the wider column */
  .work-grid--lead .work-photo:last-child .work-zoom {
    aspect-ratio: 32 / 27;
  }

  .work-grid--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-grid--fleet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .booths {
    grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
    align-items: start;
  }

  .booths-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Proof band
   ========================================================================== */

.proof {
  color: var(--text-on-dark);
  background: var(--ink);
}

.proof-top {
  display: grid;
  gap: var(--space-xl);
}

.proof-title {
  font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem);
  color: var(--white);
}

.proof-title span {
  display: block;
}

.proof-accent {
  color: var(--ember);
}

.proof-quote {
  padding-left: var(--space-lg);
  border-left: 3px solid var(--ember);
}

.proof-quote p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
}

.proof-quote figcaption {
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
}

.facts {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--line-dark);
}

.fact dt {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.counter {
  display: inline-block;
  font-size: 1.5em;
  line-height: 1;
  color: var(--ember);
}

.fact dd {
  margin: 0.2rem 0 0;
  color: var(--text-on-dark-muted);
}

@media (min-width: 768px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .proof-top {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-3xl);
    align-items: end;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  gap: var(--space-2xl);
}

.about-photos {
  position: relative;
  padding-bottom: 4.5rem;
}

.about-photo-main {
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-photo);
}

.about-photo-main img {
  width: 100%;
}

.about-photo-accent {
  position: absolute;
  right: var(--space-md);
  bottom: 0;
  width: 44%;
  overflow: hidden;
  background: var(--white);
  border: 5px solid var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-photo);
}

.about-copy p {
  margin-top: var(--space-md);
  color: var(--text-muted);
}

.about-copy .about-lead {
  font-size: var(--fs-lead);
  color: var(--text);
}

.about-copy .about-note {
  font-size: var(--fs-small);
}

.about-copy .btn {
  margin-top: var(--space-lg);
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: var(--space-3xl);
    align-items: center;
  }
}

/* ==========================================================================
   Reviews
   ========================================================================== */

.reviews {
  background: var(--shingle);
  content-visibility: auto;
  contain-intrinsic-size: auto 1100px;
}

.reviews-head {
  display: grid;
  gap: var(--space-xs);
  margin-bottom: var(--space-xl);
}

.reviews-head p {
  color: var(--text-muted);
}

.review-featured {
  max-width: 900px;
  padding-block: var(--space-lg) var(--space-2xl);
}

.review-featured p {
  margin-top: var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.15rem);
  font-weight: 500;
  line-height: 1.25;
}

.review-featured figcaption {
  margin-top: var(--space-md);
  font-weight: 600;
  color: var(--text-muted);
}

.review-list {
  display: grid;
  gap: 0 var(--space-2xl);
  border-top: 1px solid var(--line);
}

.review {
  padding: var(--space-lg) var(--space-sm);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.review blockquote {
  margin-top: var(--space-xs);
}

.review-source {
  margin-top: var(--space-xs);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .review-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta {
  position: relative;
  padding-block: var(--section-pad);
  overflow: hidden;
  color: var(--text-on-dark);
  background: var(--ink-deep);
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--ink-rgb), 0.92) 0%, rgba(var(--ink-rgb), 0.78) 55%, rgba(var(--ink-rgb), 0.5) 100%);
}

.cta-inner {
  position: relative;
}

.cta h2 {
  max-width: 17em;
  color: var(--white);
}

.cta h2 span {
  display: block;
}

.cta-accent {
  color: var(--ember);
}

.cta p {
  max-width: 34em;
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-xl);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: var(--space-2xl);
}

.contact-info > p {
  margin-top: var(--space-md);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.contact-list {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--line);
}

.contact-item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: var(--space-md);
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}

.contact-item dt {
  font-weight: 700;
}

.contact-item dd {
  margin: 0;
  color: var(--text-muted);
}

.contact-item a {
  display: inline-block;
  min-height: 28px;
  font-weight: 600;
}

.form-panel {
  padding: var(--space-lg);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.form-fields {
  display: grid;
  gap: var(--space-md);
}

.form-fields[hidden] {
  display: none;
}

.form-row {
  display: grid;
  gap: var(--space-md);
}

.form-field label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.8rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
  outline: none;
  box-shadow: var(--focus-ring);
}

.form-field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error,
.form-error {
  margin-top: 0.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--error);
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.form-success h3 {
  color: var(--success);
}

.form-success p {
  margin-top: var(--space-xs);
}

@media (min-width: 480px) {
  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .form-panel {
    padding: var(--space-xl);
  }
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-3xl);
    align-items: start;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: var(--space-3xl) var(--space-lg);
  color: var(--text-on-dark-muted);
  background: var(--ink-deep);
}

.footer-grid {
  display: grid;
  gap: var(--space-xl);
}

.footer-brand img {
  width: auto;
  height: 76px;
}

.footer-brand p {
  max-width: 22em;
  margin-top: var(--space-sm);
}

.site-footer h2 {
  margin-bottom: var(--space-xs);
  font-size: 1.15rem;
  color: var(--white);
}

.site-footer li {
  padding-block: 0.2rem;
}

.site-footer a {
  display: inline-block;
  padding-block: 0.3rem;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: color var(--transition-fast), transform 0.3s ease;
}

.site-footer a:hover {
  color: var(--ember);
}

.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  font-size: var(--fs-small);
}

.footer-bottom p {
  padding-top: var(--space-md);
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 2fr);
  }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: rgba(10, 12, 14, 0.94);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* Visible at once, so focus can move into the dialog as it opens */
  transition: opacity 0.4s ease, visibility 0s;
}

.lightbox-figure {
  max-width: min(1100px, 100%);
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  margin-top: var(--space-sm);
  text-align: center;
  color: var(--text-on-dark);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(var(--ink-rgb), 0.85);
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--red);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
}

.lightbox-close {
  top: var(--space-md);
  right: var(--space-md);
}

.lightbox-prev,
.lightbox-next {
  bottom: var(--space-md);
}

.lightbox-prev {
  left: var(--space-md);
}

.lightbox-next {
  right: var(--space-md);
}

@media (min-width: 768px) {
  .lightbox {
    padding: var(--space-2xl) 5rem;
  }

  .lightbox-prev,
  .lightbox-next {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* ==========================================================================
   Animations (motion is opt-in)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  /* Scroll reveals: hidden only when JS is there to show them again */
  .js .fade-in {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out);
  }

  .js .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
  }

  .review-list .review:nth-child(2n) {
    transition-delay: 0.15s;
  }

  .booths-grid .work-photo:nth-child(2) {
    transition-delay: 0.1s;
  }

  .booths-grid .work-photo:nth-child(3) {
    transition-delay: 0.2s;
  }

  .booths-grid .work-photo:nth-child(4) {
    transition-delay: 0.3s;
  }

  /* Marquee */
  .marquee-track {
    animation: scroll-marquee 8s linear infinite;
  }

  /* Hero */
  .hero-bg img {
    animation: hero-zoom-out 20s ease-out forwards;
  }

  .hero-kicker {
    animation: slide-down 0.8s var(--ease-out) 0.2s both;
  }

  .highlight {
    color: transparent;
    background: linear-gradient(100deg, var(--ember) 0%, var(--ember) 35%, var(--cream) 50%, var(--ember) 65%, var(--ember) 100%);
    background-size: 250% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gold-shimmer 4s ease 1s 1 both;
  }

  .btn-pulse {
    animation: pulse-glow 2.5s ease-in-out 2s infinite;
  }

  .btn-nav {
    animation: nav-cta-pulse 2s ease-in-out infinite;
  }

  /* Service icons */
  .js .service.fade-in .service-icon {
    transform: scale(0);
  }

  .js .service.fade-in.visible .service-icon {
    animation: icon-pop 0.6s var(--ease-out) 0.3s both;
  }

  /* Stars */
  .hero-quote .stars svg,
  .js .fade-in.visible .stars svg {
    animation: star-pop 0.3s var(--ease-out) both;
  }

  .js .fade-in:not(.visible) .stars svg {
    opacity: 0;
  }

  .stars svg:nth-child(1) { animation-delay: 0.2s; }
  .stars svg:nth-child(2) { animation-delay: 0.3s; }
  .stars svg:nth-child(3) { animation-delay: 0.4s; }
  .stars svg:nth-child(4) { animation-delay: 0.5s; }
  .stars svg:nth-child(5) { animation-delay: 0.6s; }

  /* Counters */
  .js .facts:not(.visible) .counter {
    opacity: 0;
  }

  .js .facts.visible .counter {
    animation: pop-in 0.6s var(--ease-out) both;
  }

  .js .facts.visible .counter.stat-bounce {
    animation: stat-bounce 0.9s ease;
  }

  /* Cards and photos */
  .work-photo {
    transition-property: opacity, transform;
  }

  .work-zoom {
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  }

  .work-zoom:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
  }

  .work-zoom img {
    transition: transform var(--transition-slow);
  }

  .work-zoom:hover img {
    transform: scale(1.05);
  }

  .review {
    transition-property: opacity, transform, border-color, box-shadow, background-color;
  }

  .js .review.fade-in.visible {
    transition: opacity 1.2s var(--ease-out), transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  }

  .js .review.fade-in.visible:hover {
    background-color: var(--white);
    border-bottom-color: var(--red);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
  }

  .form-panel {
    transition-property: opacity, transform, box-shadow;
  }

  /* Micro-interactions */
  .contact-item:hover {
    transform: translateX(8px);
  }

  .site-footer a:hover {
    transform: translateX(4px);
  }

  .js .about-photos:not(.visible) .about-photo-main img {
    transform: scale(1.15);
  }

  .js .about-photos.visible .about-photo-main img {
    animation: about-zoom 12s linear both;
  }

  .lightbox-img.zoom {
    animation: lightbox-zoom 0.4s var(--ease-out);
  }

  @media (min-width: 768px) {
    .marquee-track {
      animation-duration: 12s;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .work-zoom img {
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms;
  }
}

@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes hero-zoom-out {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gold-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes stat-bounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-8px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-4px); }
  60% { transform: translateY(0); }
  75% { transform: translateY(-2px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 4px 15px rgba(var(--red-rgb), 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 8px 40px rgba(var(--red-rgb), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

@keyframes nav-cta-pulse {
  0%, 100% { box-shadow: 0 2px 10px rgba(var(--red-rgb), 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 4px 24px rgba(var(--red-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
}

@keyframes icon-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@keyframes star-pop {
  0% { opacity: 0; transform: scale(0) rotate(-30deg); }
  70% { opacity: 1; transform: scale(1.2) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes about-zoom {
  from { transform: scale(1.15); }
  to { transform: scale(1); }
}

@keyframes lightbox-zoom {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
  .site-header,
  .marquee,
  .lightbox,
  #cc-chat-toggle,
  #cc-chat-panel {
    display: none;
  }
}
