/* ==========================================================================
   Refine & Design — main stylesheet
   ========================================================================== */

/* ---- Self-hosted fonts (no external CDN) ---- */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900.woff2') format('woff2');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/roboto-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/dmsans-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Licorice';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/licorice-400.woff2') format('woff2');
}

/* ---- Design tokens ---- */
:root {
  --color-primary: #A6202C;
  --color-secondary: #3F4247;
  --color-text: #1E1E1E;
  --color-accent: #61B6CE;
  --color-accent-gold: #DDE466;
  --color-white: #ffffff;
  --color-offwhite: #F4F3F1;
  --font-heading: 'Lato', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --font-hero: 'DM Sans', sans-serif;
  --font-script: 'Licorice', cursive;
  --max-width: 1200px;
  --content-width: 800px;
  --header-height: 96px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  margin: 0 0 0.5em;
  line-height: 1.15;
}
p { margin: 0 0 1em; }
.visually-hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.hidden { position: absolute; left: -9999px; top: -9999px; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}
.section {
  padding: clamp(3rem, 8vw, 7rem) 0;
}
.section--dark {
  background: var(--color-secondary);
  color: var(--color-white);
}
.section--offwhite { background: var(--color-offwhite); }
.section--red { background: var(--color-primary); color: var(--color-white); }
.section--red .eyebrow { color: var(--color-white); opacity: 0.85; }
.section--red h2, .section--red h3, .section--red h4 { color: var(--color-white); }
.section--red .about-intro h3,
.section--red.about-intro h3 { color: rgba(255, 255, 255, 0.9); }
.section--red .press-card,
.section--red .service-card { background: var(--color-white); color: var(--color-text); }
.section--red .process-step::before { color: var(--color-white); }
.section--red .process-step p { color: rgba(255, 255, 255, 0.9); }
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  display: block;
}
/* Short, punchy section intros (eyebrow + heading + one-line lede) center
   the way hero/title blocks do. Running body copy stays left-aligned. */
.section-intro {
  text-align: center;
  max-width: 46em;
  margin: 0 auto;
}
.section-intro > p {
  margin-left: auto;
  margin-right: auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  font-size: 1rem;
  line-height: 1;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid var(--color-primary);
  border-radius: 100px;
  color: var(--color-white);
  background: var(--color-primary);
  transition: background 0.25s ease, color 0.25s ease, border-color .25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--color-primary); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(166,32,44,0.25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(166,32,44,0.25);
}
.btn--dark {
  border-color: var(--color-secondary);
  background: transparent;
  color: var(--color-secondary);
}
.btn--dark:hover, .btn--dark:focus-visible {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

/* ==========================================================================
   Header (shared)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  height: var(--header-height);
}
.site-header--overlay { background: transparent; }
.site-header--solid {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.site-logo img {
  width: 56px;
  height: 56px;
}
.site-logo__wordmark {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: normal;
  color: var(--color-primary);
  text-transform: uppercase;
}
.hamburger {
  background: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1100;
  position: relative;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease, background .3s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ==========================================================================
   Fullscreen nav overlay
   ========================================================================== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: -1;
}
.nav-overlay__panel {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}
.nav-overlay__list { text-align: center; }
.nav-overlay__list li { margin: 0.4em 0; }
.nav-overlay__list a {
  font-family: var(--font-hero);
  font-weight: 700;
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: var(--color-white);
  text-transform: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-overlay__list a:hover, .nav-overlay__list a:focus-visible { color: var(--color-text); }
.nav-overlay__list a[aria-current="page"] { color: var(--color-text); }
.nav-overlay__social {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-overlay__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: color 0.2s ease, transform 0.2s ease;
}
.nav-overlay__social a:hover, .nav-overlay__social a:focus-visible { color: var(--color-text); transform: translateY(-2px); }

/* ==========================================================================
   Homepage — full-height scroll-snap sections
   ========================================================================== */
.snap-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}
.hero-slide {
  position: relative;
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
  overflow: hidden;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.75) 100%);
  z-index: 1;
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.25rem, 6vw, 5rem) clamp(3rem, 10vw, 7rem);
  max-width: 1100px;
  text-align: center;
  margin: 0 auto;
}
.hero-slide__heading {
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 6.5625rem); /* up to ~105px, matches live-site brand line */
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 0.3em;
}
.hero-slide__heading--lato { font-family: var(--font-heading); }
.hero-slide__heading-primary { color: var(--color-primary); }
.hero-slide__heading-secondary { color: var(--color-white); }
.hero-slide__heading .amp {
  font-family: var(--font-script);
  font-weight: 300;
  text-transform: none;
  color: var(--color-primary);
  font-size: clamp(3.5rem, 20vw, 14.875rem); /* ~238px on desktop */
  line-height: 0.6;
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.1em;
}
.hero-slide__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.15rem, 3vw, 2.1875rem); /* ~35px on desktop */
  color: var(--color-accent-gold);
  max-width: 32em;
  margin: 0 auto 1.5em;
  text-align: center;
}
.hero-slide__sub--top { margin: 0 auto 1em; }
.hero-slide__cta { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-slide__topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.hero-slide__social { display: flex; gap: 1.25rem; }
.hero-slide__social a {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-slide__social a:hover { color: var(--color-primary); }
.scroll-hint {
  position: absolute;
  right: clamp(1rem, 3vw, 2.5rem);
  bottom: 1.5rem;
  z-index: 3;
  font-family: var(--font-heading);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.72rem;
  writing-mode: vertical-rl;
  opacity: 0.85;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Promo video click-to-play */
.promo-video {
  position: relative;
  max-width: 900px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1.5rem 0;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.4);
}
.promo-video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.25);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.promo-video__play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}
.promo-video__play:hover .promo-video__play-icon,
.promo-video__play:focus-visible .promo-video__play-icon { transform: scale(1.08); }
.promo-video__play-icon svg { width: 26px; height: 26px; margin-left: 4px; fill: #fff; }
.promo-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.promo-video.is-playing .promo-video__play { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-secondary);
  color: var(--color-white);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.site-footer a:hover { color: var(--color-primary); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-brand img { width: 64px; height: 64px; margin-bottom: 1rem; }
.footer-brand p { opacity: 0.75; font-size: 0.9rem; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: 0.55em; font-size: 0.95rem; }
.footer-col address { font-style: normal; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.footer-social a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.5em 1em;
}
.footer-social a:hover { border-color: var(--color-primary); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ==========================================================================
   Interior page hero
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  background: var(--color-secondary);
  color: var(--color-white);
  text-align: center;
}
.page-hero--photo {
  background-size: cover;
  background-position: center;
  padding: calc(var(--header-height) + 6rem) 0 6rem;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,0.55);
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
.page-hero p { max-width: 42em; margin: 0 auto; opacity: 0.85; font-weight: 300; }
.page-hero__lead { font-weight: 300; }
.page-hero__brand { font-weight: 900; }

/* ==========================================================================
   About page
   ========================================================================== */
.about-intro { text-align: center; }
.about-intro h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.about-intro h3 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--color-secondary);
  max-width: 46em;
  margin: 0 auto;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  margin: 3rem 0;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-primary);
  display: block;
}
.stat-item .stat-label {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}
.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}
.about-gallery img { width: 100%; height: 340px; object-fit: cover; }
.about-body p { max-width: var(--content-width); margin-left: auto; margin-right: auto; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.team-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  margin-bottom: 1rem;
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.1em; }
.team-card .team-title {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75em;
  display: block;
}
.team-card p { font-size: 0.92rem; }
.team-card .team-contact { margin-top: 0.75em; font-size: 0.88rem; }
.team-card .team-contact a { color: var(--color-secondary); text-decoration: underline; transition: color 0.2s ease; }
.team-card .team-contact a:hover, .team-card .team-contact a:focus-visible { color: var(--color-primary); }

/* ==========================================================================
   Services page
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  background: var(--color-offwhite);
  padding: 2.5rem 2rem;
  border-top: 4px solid var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.1); }
.service-card h3 { font-size: 1.3rem; }
.process-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
.process-step { position: relative; padding-left: 3.2rem; }
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: -0.1em;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--color-primary);
}
.process-step h3 { font-size: 1.1rem; }
.process-step p { font-size: 0.92rem; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.contact-form { display: grid; gap: 1.2rem; }
.form-field { display: grid; gap: 0.4rem; }
.form-field label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-field input, .form-field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid #ccc;
  background: var(--color-offwhite);
  color: var(--color-text);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.contact-info h3 { margin-top: 2rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-primary); }
.contact-info h3:first-child { margin-top: 0; }
.contact-info address { font-style: normal; }
.contact-map { margin-top: 1.5rem; width: 100%; aspect-ratio: 4/3; border: 0; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours-table td { padding: 0.25em 0; }
.hours-table td:last-child { text-align: right; }

/* ==========================================================================
   Awards page
   ========================================================================== */
.awards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.award-item { background: var(--color-offwhite); padding: 2rem 1.5rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.award-item:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.1); }
.award-item img { max-width: 110px; margin: 0 auto 1rem; }
.award-item .award-rank {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 0.4em;
}
.award-item .award-title { font-size: 0.92rem; }
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
.press-card { background: var(--color-white); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.press-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.1); }
.press-card img { width: 100%; height: 220px; object-fit: cover; margin-bottom: 1rem; }
.press-card .press-source {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.press-card h3 { font-size: 1.2rem; margin-top: 0.3em; }
.press-card .press-link { font-size: 0.85rem; font-style: italic; color: var(--color-secondary); display: inline-block; margin-top: 0.5em; }

/* ==========================================================================
   Reviews page
   ========================================================================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.review-card { background: var(--color-offwhite); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.review-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.1); }
.review-card__head { display: flex; align-items: center; gap: 0.75rem; }
.review-card__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--color-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; flex-shrink: 0; }
.review-card__name { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; }
.review-card__meta { font-size: 0.78rem; color: var(--color-secondary); opacity: 0.8; }
.review-card__stars { color: var(--color-primary); letter-spacing: 0.1em; font-size: 0.9rem; }
.review-card__text { font-size: 0.92rem; }

/* ==========================================================================
   Projects listing + detail
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.project-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75) 100%);
  transition: background 0.3s ease;
}
.project-card:hover::before { background: linear-gradient(180deg, rgba(166,32,44,0.25) 0%, rgba(0,0,0,0.85) 100%); }
.project-card__label {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1rem;
}
.project-detail-meta { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.project-detail-meta span {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.35em 0.9em;
}
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.project-gallery img { width: 100%; height: 320px; object-fit: cover; cursor: zoom-in; }
.project-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.project-back:hover, .project-back:focus-visible { border-color: var(--color-primary); opacity: 0.8; }
.project-gallery img { transition: transform 0.4s ease, opacity 0.4s ease; }
.project-gallery img:hover { opacity: 0.9; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2rem; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: #fff; font-size: 2.5rem; padding: 0.5rem 1rem; }
.lightbox__prev { left: 0.5rem; }
.lightbox__next { right: 0.5rem; }

/* ==========================================================================
   Privacy policy
   ========================================================================== */
.legal-body h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-body p, .legal-body li { font-size: 0.95rem; }
.legal-body { max-width: var(--content-width); margin: 0 auto; }

/* ==========================================================================
   404
   ========================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--color-secondary);
  color: var(--color-white);
  padding: 6rem 1.5rem 2rem;
}
.error-page__code {
  font-family: var(--font-hero);
  font-weight: 900;
  font-size: clamp(4rem, 15vw, 9rem);
  color: var(--color-primary);
  line-height: 1;
}
.error-page__actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* ==========================================================================
   Scroll-reveal (vanilla IntersectionObserver, see main.js)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Gentle stagger for the first few siblings in a revealed group (grids,
   intro blocks) so items settle in one after another rather than all at once. */
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-gallery { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .awards-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .press-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .about-gallery { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .awards-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .site-logo img { width: 44px; height: 44px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 400px) {
  .hero-slide__heading { font-size: clamp(2rem, 10vw, 2.6rem); }
  .container { padding: 0 1rem; }
}
