/* =========================================================
   PLATINUM CONSTRUCTION — Design System (Bauen-inspired)
   ========================================================= */

:root {
  /* Colors — extracted purely from logo (dark navy, silver grey, light grey, white) */
  --color-light: #ffffff;           /* white background */
  --color-light-alt: #f9f9f9;       /* subtle off-white (sidebar, minimal contrast) */
  --color-text-dark: #2d2d2d;       /* dark navy from "Construction Corporation" text */
  --color-accent: #8c8c8c;          /* silver/grey from "platinum" wordmark */
  --color-accent-hover: #7a7a7a;    /* darker silver on hover */
  --color-silver: #8c8c8c;          /* same as accent (logo wordmark) */
  --color-light-grey: #dcdcdc;      /* light grey from tagline (secondary text, borders) */
  --color-text-light: #ffffff;
  --color-bg: #0e0e0e;              /* dark background for hero overlays */
  --color-bg-alt: #151515;
  --color-muted-light: rgba(255, 255, 255, 0.7);
  --color-muted-dark: rgba(45, 45, 45, 0.65);
  --color-border-dark: rgba(45, 45, 45, 0.12);
  --color-border-light: rgba(140, 140, 140, 0.15);

  /* Typography */
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --container: 1440px;
  --container-sm: 1200px;
  --gutter: clamp(20px, 4vw, 60px);

  /* Transitions */
  --ease: cubic-bezier(0.65, 0.05, 0.36, 1);
  --dur: 0.6s;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-dark);
  background: var(--color-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dark-theme { background: var(--color-bg); color: var(--color-text-light); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.h-display { font-size: clamp(2.8rem, 7vw, 6.5rem); font-weight: 400; letter-spacing: -0.01em; }
.h-xl { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.h-lg { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.h-md { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.h-sm { font-size: 1.1rem; letter-spacing: 0.15em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 40px; height: 1px; background: var(--color-accent);
}

.text-lead { font-size: 1.15rem; line-height: 1.7; color: var(--color-muted-dark); max-width: 600px; }
.dark-theme .text-lead { color: var(--color-muted-light); }

/* =========================================================
   LAYOUT
   ========================================================= */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-sm { max-width: var(--container-sm); margin: 0 auto; padding: 0 var(--gutter); }

section { padding: clamp(70px, 10vw, 140px) 0; position: relative; }

.section-header { margin-bottom: clamp(40px, 6vw, 80px); max-width: 780px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .eyebrow { justify-content: center; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 36px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary { background: var(--color-accent); color: var(--color-text-dark); }
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.btn-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-accent);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-accent);
  transition: gap 0.3s var(--ease);
}
.btn-link:hover { gap: 20px; }

.btn .arrow { width: 18px; height: 1px; background: currentColor; position: relative; transition: width 0.3s var(--ease); }
.btn .arrow::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .arrow { width: 26px; }

/* =========================================================
   HEADER — SIDEBAR (Bauen-style)
   ========================================================= */
:root { --sidebar-w: 280px; }

.site-header {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  z-index: 100;
  background: var(--color-light-alt);
  backdrop-filter: blur(14px);
  border-right: 1px solid var(--color-border-light);
  transition: transform 0.4s var(--ease);
  padding: 24px 20px;
  color: var(--color-text-dark);
}

.header-inner {
  display: flex; flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: block; margin-bottom: 0; }
.logo img { height: 56px; width: auto; }

/* Hero content fade-in after video ends */
.hero-content,
.hero-scroll { transition: opacity 1.2s ease, transform 1.2s ease; }
.hero-content-hidden { opacity: 0; transform: translateY(24px); pointer-events: none; }
.hero-scroll-hidden { opacity: 0; pointer-events: none; }

.nav-desktop {
  display: flex; flex-direction: column;
  gap: 2px;
  flex: 1;
  justify-content: center;
  width: 100%;
}
.nav-desktop a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-dark);
  padding: 7px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}
.nav-desktop a::before {
  content: ""; width: 0; height: 1px; background: var(--color-accent);
  transition: width 0.4s var(--ease);
  display: inline-block;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--color-accent); padding-left: 6px; }
.nav-desktop a:hover::before, .nav-desktop a.active::before { width: 20px; }

.header-bottom {
  display: flex; flex-direction: column;
  gap: 14px;
  margin-top: auto;
}
.header-cta {
  color: var(--color-text-dark);
  border-color: var(--color-text-dark);
  width: 100%;
  justify-content: center;
  padding: 12px 18px;
  font-size: 0.7rem;
}
.header-cta:hover { color: #fff; }

.header-social {
  display: grid;
  grid-template-columns: repeat(2, 36px);
  gap: 10px;
  justify-content: center;
}
.header-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: #ffffff;
}
.header-social a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }
.header-social svg { width: 16px; height: 16px; }
/* Real brand colors (same as footer) */
.header-social a[aria-label="Facebook"] { background: #1877F2; }
.header-social a[aria-label="Facebook"] svg { fill: #ffffff; }
.header-social a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.header-social a[aria-label="Instagram"] svg { fill: #ffffff; }
.header-social a[aria-label="X"] { background: #000000; }
.header-social a[aria-label="X"] svg { fill: #ffffff; }
.header-social a[aria-label="LinkedIn"] { background: #0A66C2; }
.header-social a[aria-label="LinkedIn"] svg { fill: #ffffff; }

.header-tagline {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted-dark);
  font-family: var(--font-display);
  padding-top: 14px;
  border-top: 1px solid var(--color-border-light);
}

.header-copyright {
  font-size: 0.62rem;
  line-height: 1.5;
  color: var(--color-muted-dark);
  font-family: var(--font-body);
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid var(--color-border-light);
  text-align: center;
}

/* Layout shift to accommodate sidebar (desktop only) */
@media (min-width: 1025px) {
  body {
    padding-left: var(--sidebar-w);
    transition: padding 0.4s var(--ease);
  }
}

/* Desktop scrolled state: sidebar slides out left, top bar drops down from top */
@media (min-width: 1025px) {
  .site-header {
    transition: transform 0.35s var(--ease);
  }
  /* Phase 1: sidebar slides out to the left before top bar appears */
  body.is-exiting-sidebar .site-header {
    transform: translateX(-100%);
  }
  @keyframes headerFadeUp {
    from { opacity: 0; transform: translateY(-100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
  body.is-scrolled {
    padding-left: 0;
    padding-top: 90px;
  }
  body.is-scrolled .site-header {
    bottom: auto;
    width: 100%;
    height: 90px;
    padding: 14px 48px;
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
    animation: headerFadeUp 0.5s var(--ease) both;
  }
  body.is-scrolled .header-inner {
    flex-direction: row;
    align-items: center;
    height: 100%;
    justify-content: space-between;
    gap: 36px;
  }
  body.is-scrolled .logo { flex-direction: row; align-items: center; gap: 12px; }
  body.is-scrolled .logo-divider { display: block; width: 1px; height: 38px; background: var(--color-border-light); margin: 0; }
  body.is-scrolled .logo .logo-ca,
  body.is-scrolled .logo .logo-us { height: 52px; }
  body.is-scrolled .nav-desktop {
    flex-direction: row;
    flex: 1;
    justify-content: flex-end;
    gap: 36px;
    width: auto;
  }
  body.is-scrolled .nav-desktop a {
    border-bottom: none;
    padding: 0;
    width: auto;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
  }
  body.is-scrolled .nav-desktop a::before { display: none; }
  body.is-scrolled .nav-desktop a:hover,
  body.is-scrolled .nav-desktop a.active { padding-left: 0; }
  body.is-scrolled .header-bottom {
    flex-direction: row;
    margin-top: 0;
    align-items: center;
    gap: 0;
  }
  body.is-scrolled .header-social,
  body.is-scrolled .header-tagline,
  body.is-scrolled .header-copyright { display: none; }
  body.is-scrolled .header-cta {
    width: auto;
    padding: 14px 26px;
    font-size: 0.75rem;
    white-space: nowrap;
  }
}

/* Burger (mobile only) */
.burger {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
  z-index: 110;
  position: fixed;
  top: 20px; right: 20px;
  background: transparent;
  border-radius: 2px;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--color-text-dark); transition: all 0.3s var(--ease); }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile overlay menu */
.nav-overlay {
  position: fixed; inset: 0;
  background: var(--color-bg);
  z-index: 105;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
  padding: 40px;
}
.nav-overlay.open { opacity: 1; visibility: visible; }
.nav-overlay-close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 2;
}
.nav-overlay-close:hover { background: var(--color-accent); border-color: var(--color-accent); }
.nav-overlay-close::before, .nav-overlay-close::after {
  content: ""; position: absolute; width: 20px; height: 1.5px; background: currentColor;
}
.nav-overlay-close::before { transform: rotate(45deg); }
.nav-overlay-close::after { transform: rotate(-45deg); }
.nav-overlay ul { text-align: center; display: flex; flex-direction: column; gap: 18px; }
.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-overlay a:hover { color: var(--color-accent); }
.nav-overlay-social { display: flex; gap: 14px; }
.nav-overlay-social a {
  width: 44px; height: 44px;
  border: 1px solid var(--color-border-dark);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.nav-overlay-social a:hover { background: var(--color-accent); border-color: var(--color-accent); }
.nav-overlay-social svg { width: 16px; height: 16px; fill: currentColor; }

/* On mobile: sidebar becomes a slim top bar (fix: burger was inside transformed parent) */
@media (max-width: 1024px) {
  .site-header {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100%;
    height: auto;
    padding: 14px 20px;
    background: var(--color-light-alt);
    border-right: none;
    border-bottom: 1px solid var(--color-border-light);
    transform: none;
  }
  .header-inner {
    flex-direction: row;
    align-items: center;
    height: auto;
    justify-content: space-between;
    gap: 12px;
  }
  .logo { margin-bottom: 0; }
  .logo img { height: 56px; }
  .nav-desktop, .header-bottom, .header-tagline { display: none !important; }
  .burger {
    display: flex;
    position: static;
    background: transparent;
    margin-left: auto;
  }
  body { padding-left: 0; padding-top: 68px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex; align-items: flex-end;
  position: relative; overflow: hidden;
  background: var(--color-bg);
  color: #fff;
  padding-bottom: 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.5) 0%, rgba(14,14,14,0.4) 40%, rgba(14,14,14,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-title { font-size: clamp(3rem, 9vw, 8rem); line-height: 0.95; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 40px; max-width: 1100px; }
.hero-title span { color: #ffffff; font-style: italic; font-weight: 300; opacity: 0.92; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; justify-content: space-between; }
.hero-tag { max-width: 440px; color: var(--color-muted-light); font-size: 1rem; line-height: 1.7; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.3em;
  color: rgba(255,255,255,0.6); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 50px; background: var(--color-accent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.3); transform-origin: top; } 50% { transform: scaleY(1); } }

/* Smaller hero for inner pages */
.page-hero {
  min-height: 60vh;
  display: flex; align-items: center;
  background: var(--color-bg); color: #fff;
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35; z-index: 0; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0.5), rgba(14,14,14,0.95)); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 400; margin-bottom: 20px; }
.breadcrumb { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-muted-light); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { margin: 0 12px; color: var(--color-accent); }

/* =========================================================
   STATS
   ========================================================= */
.stats {
  background: var(--color-light); color: var(--color-text-dark);
  padding: clamp(60px, 8vw, 110px) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.stat-item { text-align: left; border-left: 1px solid var(--color-border-light); padding-left: 30px; }
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2.8rem, 5vw, 4.5rem); font-weight: 400; color: var(--color-accent); line-height: 1; margin-bottom: 14px; }
.stat-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.25em; color: var(--color-muted-dark); font-family: var(--font-display); }

@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .stat-item:nth-child(3) { border-left: none; padding-left: 0; }
}

/* =========================================================
   SERVICES (numbered grid)
   ========================================================= */
.services-section { background: var(--color-light); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(140, 140, 140, 0.04); }
.service-card {
  padding: 50px 40px;
  border-right: 1px solid rgba(140, 140, 140, 0.04);
  border-bottom: 1px solid rgba(140, 140, 140, 0.04);
  background: var(--color-light);
  position: relative;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  cursor: pointer;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background: var(--color-bg);
  transform: translateY(100%);
  transition: transform 0.6s var(--ease);
  z-index: 0;
}
.service-card:hover::before { transform: translateY(0); }
.service-card:hover { color: #fff; }
.service-card:hover .service-num { color: var(--color-accent); }

.service-card > * { position: relative; z-index: 1; }
.service-num { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.3em; color: var(--color-accent); margin-bottom: 20px; transition: color 0.3s var(--ease); }
.service-title { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; line-height: 1.2; margin-bottom: 18px; font-weight: 500; }
.service-desc { font-size: 0.95rem; line-height: 1.7; color: var(--color-muted-dark); transition: color 0.3s var(--ease); }
.service-card:hover .service-desc { color: var(--color-muted-light); }
.service-arrow { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); }

@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } .service-card:nth-child(3n) { border-right: 1px solid rgba(140, 140, 140, 0.04); } .service-card:nth-child(2n) { border-right: none; } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } .service-card { border-right: none !important; } }

/* =========================================================
   TWO-COLUMN SPLIT
   ========================================================= */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.split-image { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.split-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.split-image:hover img { transform: scale(1.05); }
.split-meta { display: flex; gap: 40px; margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--color-border-light); }
.split-meta-item strong { font-family: var(--font-display); font-size: 2rem; display: block; color: var(--color-accent); line-height: 1; margin-bottom: 6px; }
.split-meta-item span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted-dark); font-family: var(--font-display); }

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

/* =========================================================
   PORTFOLIO GRID
   ========================================================= */
.portfolio-section { background: var(--color-light); color: var(--color-text-dark); }
.portfolio-section .portfolio-grid { background: var(--color-light); }

/* Gallery page variant — image on top, info in black below, no overlay.
   Targets the legacy single #gallery-grid layout AND the new
   .gallery-timeline (year-grouped) layout where each year hosts its own
   inner .portfolio-grid. */
#gallery-grid.portfolio-grid,
.gallery-timeline .portfolio-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; }
#gallery-grid .portfolio-item,
.gallery-timeline .portfolio-item {
  aspect-ratio: auto;
  background: transparent;
  display: flex; flex-direction: column;
}
#gallery-grid .portfolio-item::after,
.gallery-timeline .portfolio-item::after { display: none; }
#gallery-grid .portfolio-thumb,
.gallery-timeline .portfolio-thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0ede7;
}
#gallery-grid .portfolio-thumb img,
.gallery-timeline .portfolio-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease);
  filter: grayscale(0.1);
}
#gallery-grid .portfolio-item:hover .portfolio-thumb img,
.gallery-timeline .portfolio-item:hover .portfolio-thumb img { transform: scale(1.06); filter: grayscale(0); }
#gallery-grid .portfolio-info,
.gallery-timeline .portfolio-info {
  padding: 14px 4px 0;
  color: var(--color-text-dark);
}
#gallery-grid .portfolio-info .portfolio-category,
.gallery-timeline .portfolio-info .portfolio-category {
  font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--color-text-dark); margin-bottom: 4px;
}
#gallery-grid .portfolio-info .portfolio-title,
.gallery-timeline .portfolio-info .portfolio-title {
  font-family: var(--font-display); font-size: 0.95rem; text-transform: uppercase;
  color: var(--color-text-dark); line-height: 1.25; font-weight: 500; margin-bottom: 4px;
}
#gallery-grid .portfolio-info .portfolio-loc,
.gallery-timeline .portfolio-info .portfolio-loc {
  font-size: 0.72rem; color: var(--color-muted-dark);
}
@media (max-width: 1200px) {
  #gallery-grid.portfolio-grid,
  .gallery-timeline .portfolio-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  #gallery-grid.portfolio-grid,
  .gallery-timeline .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  #gallery-grid.portfolio-grid,
  .gallery-timeline .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 420px) {
  #gallery-grid.portfolio-grid,
  .gallery-timeline .portfolio-grid { grid-template-columns: 1fr; }
}
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.portfolio-item { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #222; cursor: pointer; }
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); filter: grayscale(0.3); }
.portfolio-item:hover img { transform: scale(1.08); filter: grayscale(0); }
.portfolio-item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,14,14,0.9) 100%);
}
.portfolio-caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 30px; z-index: 2;
  transform: translateY(10px); opacity: 0.9; transition: all 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-caption { transform: translateY(0); opacity: 1; }
.portfolio-category { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: #ffffff; margin-bottom: 8px; }
.portfolio-title { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; line-height: 1.2; font-weight: 500; color: #ffffff; }

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

/* Portfolio filter */
.portfolio-filter { display: flex; flex-wrap: wrap; gap: 10px 30px; margin-bottom: 50px; justify-content: center; }
.portfolio-filter button {
  font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--color-text-dark); padding: 8px 0; transition: color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.portfolio-filter button.active, .portfolio-filter button:hover { color: var(--color-accent); border-bottom-color: var(--color-accent); }

/* =========================================================
   VIRTUAL TOURS CARDS
   ========================================================= */
.tours-section { background: var(--color-light); }
.tours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tour-card {
  background: #fff; border: 1px solid var(--color-border-light);
  overflow: hidden;
  transition: all 0.5s var(--ease);
  cursor: pointer;
  display: flex; flex-direction: column;
}
.tour-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.12); border-color: var(--color-accent); }
.tour-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #ddd; }
.tour-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tour-card:hover .tour-thumb img { transform: scale(1.05); }
.tour-thumb::after {
  content: attr(data-badge); position: absolute; top: 16px; right: 16px;
  background: var(--color-accent); color: #fff;
  font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.15em;
  padding: 6px 12px;
  text-transform: uppercase;
}
.tour-card.is-pending .tour-thumb::after { background: #6c6c6c; }
.tour-card.is-pending .tour-play { opacity: 0.4; }
.tour-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2520 100%);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 20px;
}
.tour-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.4s var(--ease);
}
.tour-card:hover .tour-play { background: var(--color-accent); border-color: var(--color-accent); transform: translate(-50%, -50%) scale(1.1); }
.tour-play::after { content: ""; width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.tour-body { padding: 26px; }
.tour-cat { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 8px; }
.tour-title { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; line-height: 1.2; font-weight: 500; margin-bottom: 8px; }
.tour-loc { font-size: 0.88rem; color: var(--color-muted-dark); }

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

/* =========================================================
   TESTIMONIAL
   ========================================================= */
.testimonial-section { background: var(--color-light-alt); color: var(--color-text-dark); padding: clamp(80px, 10vw, 140px) 0; }
.testimonial-section .testimonial-role { color: var(--color-muted-dark); }
.testimonial { max-width: 900px; margin: 0 auto; text-align: center; }
.testimonial-quote {
  font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.35; font-weight: 300; letter-spacing: 0.01em; margin-bottom: 40px;
  text-transform: none;
}
.testimonial-quote::before { content: "\201C"; display: block; font-size: 5rem; color: var(--color-accent); line-height: 0.5; margin-bottom: 20px; font-family: serif; }
.testimonial-author { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-accent); }
.testimonial-role { font-size: 0.82rem; color: var(--color-muted-light); margin-top: 6px; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--color-accent); color: #fff;
  padding: clamp(60px, 8vw, 110px) 0;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 400; margin-bottom: 30px; line-height: 1.05; }
.cta-banner .btn { background: #0e0e0e; border-color: #0e0e0e; }
.cta-banner .btn:hover { background: transparent; color: #0e0e0e; border-color: #0e0e0e; }

/* =========================================================
   FOOTER
   ========================================================= */
/* Sticky scroll-reveal wrapper: page content slides up off the footer as you scroll */
/* Footer-reveal disabled — footer renders as a normal block at the bottom */
.footer-reveal { position: relative; height: auto; clip-path: none; }
.footer-reveal-spacer { position: static; height: auto; top: auto; }
.footer-reveal-sticky { position: static; height: auto; top: auto; overflow: visible; }
.footer-reveal .site-footer {
  height: auto;
  display: block;
  position: relative;
  overflow: hidden;
}
.footer-reveal .site-footer > .container { width: 100%; }
/* Subtle animated background glows behind footer content */
.footer-reveal .site-footer::before,
.footer-reveal .site-footer::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.35;
}
.footer-reveal .site-footer::before {
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(184,147,90,0.45), transparent 70%);
  animation: footer-glow-a 6s ease-in-out infinite;
}
.footer-reveal .site-footer::after {
  bottom: -140px; left: -140px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 70%);
  animation: footer-glow-b 7s ease-in-out infinite;
}
@keyframes footer-glow-a {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50%      { transform: scale(1.15); opacity: 0.55; }
}
@keyframes footer-glow-b {
  0%, 100% { transform: scale(1); opacity: 0.25; }
  50%      { transform: scale(1.2); opacity: 0.5; }
}
@media (max-width: 1024px) {
  .footer-reveal { height: auto; clip-path: none; }
  .footer-reveal-spacer { height: auto; top: 0; }
  .footer-reveal-sticky { position: static; height: auto; top: auto; overflow: visible; }
  .footer-reveal .site-footer { height: auto; display: block; }
}

.site-footer { background: #0a0a0a; color: #fff; padding: 80px 0 30px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; border-bottom: 1px solid var(--color-border-dark); }
.footer-col h4 { font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 24px; font-weight: 500; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-logo img { height: 54px; margin-bottom: 24px; }
.footer-about { color: rgba(255,255,255,0.6); font-size: 0.95rem; line-height: 1.7; max-width: 320px; }
.footer-contact p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-bottom: 12px; line-height: 1.6; }
.footer-contact strong { display: block; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 4px; font-weight: 500; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  background: #ffffff;
}
.footer-social a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.footer-social svg { width: 18px; height: 18px; }
/* Brand colors (real palette) */
.footer-social a[aria-label="Facebook"] { background: #1877F2; }
.footer-social a[aria-label="Facebook"] svg { fill: #ffffff; }
.footer-social a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.footer-social a[aria-label="Instagram"] svg { fill: #ffffff; }
.footer-social a[aria-label="X"] { background: #000000; }
.footer-social a[aria-label="X"] svg { fill: #ffffff; }
.footer-social a[aria-label="LinkedIn"] { background: #0A66C2; }
.footer-social a[aria-label="LinkedIn"] svg { fill: #ffffff; }
.footer-bottom { margin-top: 40px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.6); }

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

/* =========================================================
   FORMS
   ========================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; }
.form-group label {
  font-family: var(--font-display); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--color-muted-dark); margin-bottom: 10px;
}
.form-group input, .form-group textarea, .form-group select {
  font-family: var(--font-body); font-size: 1rem;
  padding: 14px 0; background: transparent;
  border: none; border-bottom: 1px solid var(--color-border-light);
  color: inherit; transition: border-color 0.3s var(--ease);
  outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-bottom-color: var(--color-accent); }
.form-group textarea { resize: vertical; min-height: 120px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,10,10,0.96);
  z-index: 200; display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; }
.lightbox-content img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-content iframe { width: 90vw; height: 80vh; border: 0; }
.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; background: var(--color-accent); color: #fff;
  font-family: var(--font-display); font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; background: rgba(255,255,255,0.08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem;
  transition: background 0.3s var(--ease);
}
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--color-accent); }

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.bg-dark { background: var(--color-bg); color: #fff; }
.bg-light { background: var(--color-light); color: var(--color-text-dark); }
.bg-light-alt { background: var(--color-light-alt); color: var(--color-text-dark); padding: clamp(70px, 10vw, 140px) 0; position: relative; }

.divider { width: 60px; height: 2px; background: var(--color-accent); margin: 24px 0; }
.divider.center { margin-left: auto; margin-right: auto; }

/* =========================================================
   HERO VIDEO
   ========================================================= */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* Mobile hero: static image instead of video (≤768px) */
.hero-image-mobile {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  display: none;
}
@media (max-width: 768px) {
  .hero .hero-video { display: none; }
  .hero .hero-image-mobile { display: block; }
}
/* Text-reveal overlay: appears with the hero titles. Uniform darken across
   the whole hero frame so titles read consistently regardless of underlying
   video content. */
.hero .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-overlay.is-visible { opacity: 1; }
/* Bottom fade so the white stats section below blends out of the video.
   Kept shallow and softened at the very bottom so the Platinum logo on the
   last frame stays readable. */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 22%;
  background: linear-gradient(180deg, rgba(14,14,14,0) 0%, rgba(14,14,14,0.35) 60%, rgba(14,14,14,0.9) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Mobile hero overlay override — MUST come after the default .hero .hero-overlay
   and .hero::after definitions so the background and display properties win. */
@media (max-width: 768px) {
  .hero .hero-overlay {
    background: rgba(0, 0, 0, 0.55);
  }
  .hero::after { display: none; }
}

/* =========================================================
   VIDEO SECTION (30+ years — Platinum-30 Years_v18.mp4, click-to-play modal)
   ========================================================= */
.video-section { background: var(--color-light); color: var(--color-text-dark); padding: clamp(80px, 10vw, 140px) 0; }
.video-section .text-lead { color: var(--color-muted-dark) !important; }
.video-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 1100px;
  margin: 50px auto 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--color-border-dark);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  background: #000;
  cursor: pointer;
}
.video-wrap .video-poster {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform 0.7s var(--ease), opacity 0.4s ease;
}
.video-wrap:hover .video-poster { transform: scale(1.04); opacity: 0.85; }
.video-wrap .video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.video-wrap .video-play svg { width: 34px; height: 34px; fill: #fff; margin-left: 4px; }
.video-wrap:hover .video-play {
  background: var(--color-accent); border-color: var(--color-accent);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Story video modal — blurred backdrop, centered player, minimal controls */
.video-modal {
  position: fixed; inset: 0; z-index: 210;
  display: none; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.video-modal.open { display: flex; }
.video-modal-stage {
  position: relative;
  width: min(90vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}
.video-modal-stage video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }
.video-modal-close {
  position: absolute; top: 20px; right: 24px;
  width: 46px; height: 46px; background: var(--color-accent); color: #fff;
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer;
  transition: background 0.3s var(--ease);
  z-index: 2;
}
.video-modal-close:hover { background: #fff; color: var(--color-text-dark); }
.video-modal-toggle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), opacity 0.4s ease;
}
.video-modal-toggle:hover { background: var(--color-accent); border-color: var(--color-accent); }
.video-modal-toggle svg { width: 34px; height: 34px; fill: #fff; }
.video-modal-toggle .vm-play { margin-left: 4px; }
.video-modal-toggle .vm-pause { display: none; }
.video-modal.is-playing .video-modal-toggle .vm-play { display: none; }
.video-modal.is-playing .video-modal-toggle .vm-pause { display: block; }
/* Fade the toggle out while playing; reveal on stage hover */
.video-modal.is-playing .video-modal-toggle { opacity: 0; }
.video-modal.is-playing .video-modal-stage:hover .video-modal-toggle { opacity: 1; }
.video-modal-fs {
  position: absolute; bottom: 18px; right: 18px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.4);
  cursor: pointer; opacity: 0;
  transition: opacity 0.3s ease, background 0.3s var(--ease);
}
.video-modal-stage:hover .video-modal-fs { opacity: 1; }
.video-modal-fs:hover { background: var(--color-accent); border-color: var(--color-accent); }
.video-modal-fs svg { width: 22px; height: 22px; fill: #fff; }

/* =========================================================
   MOBILE — center text/buttons/images (client feedback)
   ========================================================= */
@media (max-width: 768px) {
  /* Hero on mobile: full-screen video background with text overlaid (same layout as desktop) */
  .hero { min-height: calc(100vh - 68px); padding: 40px 0 60px; align-items: flex-end; text-align: center; }
  .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-title { font-size: clamp(2.4rem, 9vw, 3.4rem); margin-bottom: 24px; }
  .hero-tag { font-size: 0.95rem; margin: 0 auto 6px; }
  .hero-content .eyebrow { justify-content: center; }
  .hero-content { padding-bottom: 80px; }
  .hero-scroll { bottom: 12px; font-size: 0.65rem; gap: 6px; }
  .hero-scroll::after { height: 20px; }
  .hero-content, .page-hero-content { text-align: center; }
  .hero-title, .page-hero h1 { margin-left: auto; margin-right: auto; }
  .hero-meta { flex-direction: column; gap: 26px; align-items: center; }
  .hero-meta > div { justify-content: center; }
  .hero-tag { margin: 0 auto; }
  .eyebrow { justify-content: center; }
  .section-header { text-align: center; margin-left: auto; margin-right: auto; }
  .section-header .eyebrow { justify-content: center; }
  .split > div:last-child { text-align: center; }
  .split .eyebrow { justify-content: center; }
  .split-meta { justify-content: center; flex-wrap: wrap; gap: 24px; }
  .service-card { text-align: center; }
  .service-card .service-arrow { justify-content: center; }
  .btn { justify-content: center; }
  .footer-top { text-align: center; }
  .footer-logo img { margin-left: auto; margin-right: auto; }
  .footer-about { margin-left: auto; margin-right: auto; }
  .footer-social { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .stat-item { text-align: center; border-left: none !important; padding-left: 0 !important; }
  section { padding: 70px 0; }
}

/* ============ STACKED CA + US LOGOS ============ */
.logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.logo .logo-ca,
.logo .logo-us { height: 104px; width: auto; display: block; max-width: 100%; }
.logo .logo-divider { display: none; }

@media (max-width: 1024px) {
  .logo { flex-direction: row; align-items: center; gap: 10px; }
  .logo .logo-ca,
  .logo .logo-us { height: 62px; }
  .logo .logo-divider { width: 1px; height: 30px; margin: 0; }
}

.footer-logo { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-logo img { height: 78px; width: auto; margin: 0; display: block; }
.footer-logo .footer-logo-divider { display: block; width: 1px; height: 56px; background: rgba(255,255,255,0.2); }

@media (max-width: 768px) {
  .footer-logo { justify-content: center; }
  .contact-offices { grid-template-columns: 1fr !important; gap: 24px !important; }
}

/* ============ CINEMATIC INTRO OVERLAY ============ */
body.intro-active { overflow: hidden; }

.intro-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  background: #0a0a0a;
  opacity: 1;
  transition: opacity 0.9s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.intro-overlay.is-active { display: flex; }
.intro-overlay.is-hidden { opacity: 0; pointer-events: none; }

.intro-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at center, rgba(184,147,90,0.12) 0%, transparent 60%),
    repeating-linear-gradient(0deg, transparent 0, transparent 50px, rgba(255,255,255,0.025) 50px, rgba(255,255,255,0.025) 51px),
    repeating-linear-gradient(90deg, transparent 0, transparent 50px, rgba(255,255,255,0.025) 50px, rgba(255,255,255,0.025) 51px);
  opacity: 0;
  animation: introBgIn 1.6s 0.1s ease forwards;
}

.intro-content {
  position: relative; z-index: 1;
  text-align: center;
  padding: 30px;
  max-width: 1100px;
}

.intro-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 70px;
  margin-bottom: 50px;
}

.intro-logo {
  height: 130px; width: auto;
  opacity: 0; transform: translateY(20px);
  animation: introLogoIn 1.2s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}
.intro-logo:nth-of-type(1) { animation-delay: 0.4s; }
.intro-logo:nth-of-type(2) { animation-delay: 0.65s; }

.intro-divider {
  display: block;
  width: 1px; height: 110px;
  background: var(--color-accent);
  opacity: 0; transform: scaleY(0); transform-origin: center;
  animation: introDividerIn 0.9s 0.85s cubic-bezier(0.65, 0.05, 0.36, 1) forwards;
}

.intro-tagline {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 44px;
  opacity: 0;
  animation: introFadeIn 1s 1.3s ease forwards;
}
.intro-tagline em {
  font-style: normal;
  color: var(--color-accent);
  font-weight: 500;
}

.intro-skip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 36px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.78rem;
  cursor: pointer;
  border-radius: 999px;
  opacity: 0;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  animation: introFadeIn 1s 1.8s ease forwards;
}
.intro-skip:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}
.intro-skip .arrow { width: 14px; height: 1px; background: currentColor; position: relative; }
.intro-skip .arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

@keyframes introBgIn { to { opacity: 1; } }
@keyframes introLogoIn { to { opacity: 1; transform: translateY(0); } }
@keyframes introDividerIn { to { opacity: 1; transform: scaleY(1); } }
@keyframes introFadeIn { to { opacity: 1; } }

@media (max-width: 768px) {
  .intro-logos { flex-direction: column; gap: 24px; margin-bottom: 36px; }
  .intro-divider { width: 60px; height: 1px; transform: scaleX(0); animation-name: introDividerInH; }
  .intro-logo { height: 78px; }
  .intro-tagline { font-size: 0.78rem; letter-spacing: 0.24em; padding: 0 12px; }
  .intro-skip { font-size: 0.72rem; padding: 13px 28px; }
}
@keyframes introDividerInH { to { opacity: 1; transform: scaleX(1); } }

/* ============ HERO SOUND TOGGLE ============ */
.hero-sound-btn {
  position: absolute;
  bottom: 36px; right: 36px;
  z-index: 6;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.hero-sound-btn:hover { background: var(--color-accent); border-color: var(--color-accent); transform: scale(1.05); }
.hero-sound-btn .hero-sound-icon { width: 20px; height: 20px; fill: currentColor; display: none; }
.hero-sound-btn .hero-sound-off { display: block; }
.hero-sound-btn[aria-pressed="true"] .hero-sound-on { display: block; }
.hero-sound-btn[aria-pressed="true"] .hero-sound-off { display: none; }
@media (max-width: 768px) {
  .hero-sound-btn { bottom: 20px; right: 20px; width: 42px; height: 42px; }
}

/* ============ BACK TO TOP ============ */
.back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 90;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-border-light, rgba(0,0,0,0.12));
  color: var(--color-accent);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 6px 20px -8px rgba(0,0,0,0.18);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; transform: translateY(-2px); }
.back-to-top__icon { width: 18px; height: 18px; fill: currentColor; }
/* Reading progress ring (article pages only) */
.back-to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.back-to-top__ring circle {
  fill: none;
  stroke-width: 2;
}
.back-to-top__track { stroke: rgba(0,0,0,0.08); }
.back-to-top__fill {
  stroke: var(--color-accent);
  transition: stroke-dashoffset 0.1s linear;
}
.back-to-top.has-progress:hover .back-to-top__track { stroke: rgba(255,255,255,0.25); }
.back-to-top.has-progress:hover .back-to-top__fill { stroke: #fff; }
@media (max-width: 768px) {
  .back-to-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
  .back-to-top__icon { width: 16px; height: 16px; }
}

/* ============================================================
   BLOG — index magazine (Phase 4)
   ============================================================ */

.blog-index {
  padding: 80px 0 120px;
  background: var(--color-light, #ffffff);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(26,26,26,0.08);
  transition: transform 0.6s cubic-bezier(0.65,0.05,0.36,1),
              box-shadow 0.6s cubic-bezier(0.65,0.05,0.36,1);
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -20px rgba(26,26,26,0.25);
}
.blog-card__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s cubic-bezier(0.65,0.05,0.36,1);
  overflow: hidden;
}
.blog-card:hover .blog-card__cover {
  transform: scale(1.04);
}
.blog-card__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card__meta {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--color-accent);
}
.blog-card__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--color-text-dark);
  margin: 0;
}
.blog-card__excerpt {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(26,26,26,0.62);
  margin: 0;
}
.blog-card__date {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(26,26,26,0.45);
  margin-top: 4px;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 640px) {
  .blog-index { padding: 60px 0 80px; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .blog-card__title { font-size: 1.2rem; }
}

/* ============================================================
   BLOG — article reader (Phase 4)
   ============================================================ */

.article {
  background: var(--color-light, #ffffff);
  padding: 140px 0 100px;
}
.article .container {
  max-width: 720px;
}

.article__breadcrumb {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: rgba(26,26,26,0.55);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.article__breadcrumb a {
  color: rgba(26,26,26,0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}
.article__breadcrumb a:hover { color: var(--color-accent); }

.article__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  color: var(--color-text-dark);
  margin: 0 0 18px;
}
.article__lead {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(26,26,26,0.7);
  margin: 0 0 28px;
}
.article__meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(26,26,26,0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid rgba(26,26,26,0.08);
  border-bottom: 1px solid rgba(26,26,26,0.08);
  margin-bottom: 36px;
}
.article__category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--color-light-alt);
  color: var(--color-accent);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}
.article__cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  margin-bottom: 44px;
}

.article__body {
  font-family: 'Inter', sans-serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text-dark);
}
.article__body > * + * { margin-top: 1.25em; }
.article__body p { margin: 0; }
.article__body h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--color-text-dark);
  margin: 2.5em 0 0.6em;
}
.article__body h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--color-text-dark);
  margin: 1.8em 0 0.5em;
}
.article__body ul, .article__body ol {
  padding-left: 1.5em;
  margin: 0;
}
.article__body ul li::marker { color: var(--color-accent); }
.article__body ol li::marker { color: var(--color-accent); font-weight: 600; }
.article__body li + li { margin-top: 0.5em; }
.article__body blockquote {
  margin: 0;
  padding: 0.4em 0 0.4em 1.25em;
  border-left: 3px solid var(--color-accent);
  font-style: italic;
  color: rgba(26,26,26,0.7);
}
.article__body a {
  color: var(--color-text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s ease;
}
.article__body a:hover { color: var(--color-accent); }
.article__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.article__body th, .article__body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(26,26,26,0.1);
}
.article__body th {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.article-cta {
  margin-top: 60px;
  padding: 36px 40px;
  background: var(--color-light-alt);
  border-left: 4px solid var(--color-accent);
}
.article-cta__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin: 0 0 12px;
}
.article-cta__copy {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(26,26,26,0.7);
  margin: 0 0 22px;
}
.article-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .article { padding: 100px 0 60px; }
  .article__title { font-size: clamp(1.8rem, 7vw, 2.2rem); }
  .article__lead { font-size: 1.05rem; }
  .article__body { font-size: 1.05rem; line-height: 1.7; }
  .article-cta { padding: 28px 24px; }
}

/* =========================================================
   CLIENT BRANDS — Infinite marquee carousel
   ========================================================= */
.brands-marquee {
  overflow: hidden;
  padding: 40px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brands-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: brandsScroll 20s linear infinite;
  align-items: center;
}
.brands-marquee:hover .brands-track { animation-play-state: paused; }
.brand-logo {
  flex-shrink: 0;
  width: 190px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img {
  height: 130px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  opacity: 0.85;
}
.brand-logo:hover img {
  transform: scale(1.08);
  opacity: 1;
}
@keyframes brandsScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .brands-track { gap: 18px; animation-duration: 16s; }
  .brand-logo { width: 120px; height: 110px; }
  .brand-logo img { height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
}

/* =========================================================
   GALLERY TIMELINE — Editorial year-grouped portfolio
   ========================================================= */
.gallery-timeline { display: block; }
.gallery-year-section {
  padding: 0;                    /* override global `section` padding */
  margin-bottom: clamp(50px, 6vw, 90px);
}
.gallery-year-section:last-child { margin-bottom: 0; }
.gallery-year-section[data-year="recent"] { margin-bottom: clamp(60px, 7vw, 100px); }

.gallery-year-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(60px, 14vw) auto 1fr;
  align-items: end;
  column-gap: clamp(20px, 3vw, 40px);
  padding: 4px 0 12px;
  margin-bottom: clamp(10px, 1.5vw, 18px);
  border-bottom: 1px solid rgba(140, 140, 140, 0.10);
}

.gallery-year-line {
  align-self: center;
  height: 1px;
  background: var(--color-text-dark);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s var(--ease);
}

.gallery-year-label {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--color-text-dark);
  margin: 0;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.gallery-year-meta {
  justify-self: end;
  align-self: end;
  font-family: var(--font-display);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease) 0.15s, transform 0.9s var(--ease) 0.15s;
}

/* Each card inside a year section fades up with a tiny stagger.
   Stagger is implemented via nth-child delays; full reveal triggered by .is-revealed. */
.gallery-year-section .portfolio-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.gallery-year-section.is-revealed .gallery-year-line { transform: scaleX(1); }
.gallery-year-section.is-revealed .gallery-year-label,
.gallery-year-section.is-revealed .gallery-year-meta {
  opacity: 1;
  transform: translateY(0);
}
.gallery-year-section.is-revealed .portfolio-item {
  opacity: 1;
  transform: translateY(0);
}
/* Staggered card reveal (up to 20 cards covered, then it loops harmlessly) */
.gallery-year-section.is-revealed .portfolio-item:nth-child(1)  { transition-delay: 0.10s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(2)  { transition-delay: 0.16s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(3)  { transition-delay: 0.22s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(4)  { transition-delay: 0.28s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(5)  { transition-delay: 0.34s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(6)  { transition-delay: 0.40s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(7)  { transition-delay: 0.46s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(8)  { transition-delay: 0.52s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(9)  { transition-delay: 0.58s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(10) { transition-delay: 0.64s; }
.gallery-year-section.is-revealed .portfolio-item:nth-child(n+11) { transition-delay: 0.70s; }

/* Recent (undated) section uses italic label for distinction */
.gallery-year-section[data-year="recent"] .gallery-year-label {
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
}

@media (max-width: 768px) {
  .gallery-year-header {
    grid-template-columns: 1fr;
    row-gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .gallery-year-line { display: none; }
  .gallery-year-meta { justify-self: start; padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-year-line,
  .gallery-year-label,
  .gallery-year-meta,
  .gallery-year-section .portfolio-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
