:root {
  --charcoal: #0d0d0d;
  --slate: #1a1a1a;
  --graphite: #242424;
  --concrete: #2d2d2d;
  --grey: #4d4d4d;
  --light: #f5f5f5;
  --white: #ffffff;
  --accent: #ffffff;
  --accent-strong: #e4e4e4;
  --muted: #d9d9d9;
  --shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  --radius: 14px;
  --max-width: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--light);
  background: var(--charcoal);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  margin: 0 0 12px;
  color: var(--white);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
  color: #e8e8e8;
}

a {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  border-radius: 12px;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.narrow {
  max-width: 780px;
}

.section {
  padding: 88px 0;
}

.section.muted {
  background: var(--slate);
}

.section-header {
  margin-bottom: 36px;
}

.section-lead {
  color: #dcdcdc;
  max-width: 720px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--charcoal);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}

.btn:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}

.btn.full {
  width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #202020, #131313);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: #e2e2e2;
}

.brand-name {
  font-weight: 700;
  color: var(--white);
}

.brand-tagline {
  color: var(--grey);
  font-size: 13px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  color: #e6e6e6;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent);
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

.hero {
  position: relative;
  padding: 140px 0 120px;
  background-color: var(--charcoal);
  overflow: hidden;
}

/* Hero photo lives on a pseudo-element so it can drift slowly (see Motion section) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../media/photos/photo-58.jpg') center/cover no-repeat;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13, 13, 13, 0.9), rgba(13, 13, 13, 0.7));
}

.hero-content {
  position: relative;
  max-width: 720px;
}

.subheadline {
  font-size: 18px;
  color: #e2e2e2;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #d0d0d0;
}

.hero-badges span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.page-hero {
  padding: 120px 0 70px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 35%), var(--charcoal);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.card {
  background: var(--graphite);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card.highlight {
  background: linear-gradient(145deg, #1e1e1e, #131313);
}

.service-card .icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.service-grid {
  margin-top: 16px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.gallery {
  margin-top: 16px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-tall img {
  height: 260px;
}

.gallery figcaption {
  margin-top: 8px;
  color: #e2e2e2;
}

.gallery-item a {
  display: block;
}

/* Media galleries (real project photos & videos) */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.media-item {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--graphite);
  border: 1px solid rgba(255,255,255,0.05);
  cursor: zoom-in;
}

.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.35s ease;
}

.media-item:hover img {
  transform: scale(1.04);
}

.media-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.video-grid {
  columns: 3 280px;
  column-gap: 16px;
}

.video-card {
  break-inside: avoid;
  margin: 0 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 0;
}

.video-card.landscape video { aspect-ratio: 16 / 9; }
.video-card.portrait video { aspect-ratio: 9 / 16; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.94);
}

.lightbox.open {
  display: flex;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox button:hover {
  background: var(--accent);
}

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

.lightbox-counter {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #d0d0d0;
  font-size: 14px;
}

.testimonial {
  background: var(--graphite);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.author {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}

.contact-cta {
  background: linear-gradient(135deg, #1c1c1c, #131313);
}

.contact-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
}

.contact-form-preview, .contact-form-card {
  background: var(--graphite);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

form {
  display: grid;
  gap: 12px;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #171717;
  color: var(--white);
  font-family: inherit;
}

input:focus, textarea:focus {
  outline: 1.5px solid var(--accent);
}

.form-note, .small {
  color: #bdbdbd;
  font-size: 13px;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  color: #dcdcdc;
}

.contact-points li {
  margin-bottom: 10px;
}

.contact-points.large li {
  margin-bottom: 14px;
}

.footer {
  background: #0a0a0a;
  padding: 48px 0 28px;
  color: #d0d0d0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: var(--light);
}

.footer-bottom {
  text-align: center;
  margin-top: 28px;
  color: #a3a3a3;
  font-size: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.service-detail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 24px;
  background: var(--graphite);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.service-detail.reverse img {
  order: -1;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  color: #e2e2e2;
}

.checklist li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.checklist li::before {
  content: "•";
  color: var(--accent);
  position: absolute;
  left: 0;
}

.process-steps .step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: start;
}

.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.map-embed {
  margin-top: 18px;
}

.map-placeholder {
  border-radius: 12px;
  padding: 18px;
  background: linear-gradient(135deg, #1c1c1c, #141414);
  border: 1px dashed rgba(255,255,255,0.12);
  color: #d0d0d0;
}

.why .card { min-height: 160px; }

.services-hero,
.projects-hero,
.about-hero,
.contact-hero {
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1), transparent 35%), #0d0d0d;
}

@media (max-width: 960px) {
  .main-nav {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: rgba(13, 13, 13, 0.96);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 220px;
    display: none;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta .btn,
  .nav-cta .btn-outline {
    display: none;
  }

  .hero {
    padding: 120px 0 100px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 72px 0;
  }

  .service-detail,
  .service-detail.reverse {
    grid-template-columns: 1fr;
  }

  .gallery img {
    height: 180px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .video-grid {
    columns: 2 150px;
    column-gap: 10px;
  }

  .video-card {
    margin-bottom: 10px;
  }

  .lightbox button {
    width: 38px;
    height: 38px;
  }
}


/* ==========================================================================
   Motion & interface upgrades
   - Everything here is progressive: without JS (no .js class) or with
     "reduce motion" turned on, content shows immediately and nothing moves.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 81px;
}

/* Smooth cross-page fades (Chrome, Edge, Safari 18.2+; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.28s; }
.site-header { view-transition-name: site-header; }
.mobile-cta { view-transition-name: mobile-cta; }

/* Keyboard focus that matches the brand */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Header gains depth once the page scrolls */
.site-header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 10, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* Hero: content rises in on load, photo drifts very slowly */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.hero-content > *,
.page-hero .container > * {
  animation: rise-in 0.8s var(--ease-out) both;
}
.hero-content > :nth-child(2),
.page-hero .container > :nth-child(2) { animation-delay: 0.08s; }
.hero-content > :nth-child(3),
.page-hero .container > :nth-child(3) { animation-delay: 0.16s; }
.hero-content > :nth-child(4),
.page-hero .container > :nth-child(4) { animation-delay: 0.24s; }
.hero-content > :nth-child(5) { animation-delay: 0.32s; }

@keyframes hero-drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}
.hero::before {
  transform-origin: 60% 40%;
  animation: hero-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}

/* Scroll reveal: hidden only when JS is running, revealed as they enter view */
.js :is(.section-header, .card, .testimonial, .gallery-item, .service-card,
        .service-detail, .cta-row, .contact-form-preview, .contact-form-card,
        .contact-info, .two-col > div, .contact-preview > div:first-child,
        .media-item, .video-card):not(.revealed) {
  opacity: 0;
  transform: translateY(14px);
}
.js .revealing {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out) !important;
  transition-delay: var(--reveal-delay, 0ms) !important;
}

/* Refined hover states */
.card,
.testimonial {
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover,
.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.service-card .icon {
  display: inline-block;
  transition: transform 0.35s var(--ease-out);
}
.service-card:hover .icon { transform: translateY(-3px) scale(1.12); }
.gallery-item a {
  overflow: hidden;
  border-radius: 12px;
}
.gallery-item img { transition: transform 0.5s var(--ease-out); }
.gallery-item a:hover img { transform: scale(1.05); }

/* ---------- Project filters (Projects page) ---------- */
.filter-dock {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 15;
  padding-top: 28px;
  pointer-events: none;
}
.filter-dock .container { pointer-events: none; }
.filter-bar {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: #e6e6e6;
  font: 600 14px/1 'Inter', system-ui, sans-serif;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.chip:hover { background: rgba(255, 255, 255, 0.12); color: var(--accent); }
.chip-count {
  min-width: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-align: center;
  transition: inherit;
}
.chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--charcoal);
}
.chip[aria-pressed="true"] .chip-count { background: rgba(13, 13, 13, 0.18); }
.filter-dock + .section { padding-top: 44px; }
.filter-status {
  margin: -16px 0 22px;
  color: #bdbdbd;
  font-size: 14px;
}
.filter-status strong { color: var(--accent); font-weight: 600; }
.filter-empty {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  color: #d0d0d0;
  text-align: center;
}
.filter-empty button {
  margin-left: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}
[hidden] { display: none !important; }

@keyframes item-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.is-entering { animation: item-in 0.35s var(--ease-out) both; }

/* ---------- Mobile quick-contact bar ---------- */
.mobile-cta { display: none; }
.mobile-cta svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 960px) {
  .mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 10, 10, 0.94);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    animation: bar-up 0.5s var(--ease-out) 0.3s both;
  }
  .mobile-cta .btn {
    padding: 12px 14px;
    box-shadow: none;
  }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes bar-up {
  from { transform: translateY(100%); }
  to   { transform: none; }
}

@media (max-width: 640px) {
  .filter-dock {
    position: static;
    padding-top: 20px;
  }
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: auto;
    border-radius: 16px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
            mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .filter-bar::-webkit-scrollbar { display: none; }
  .chip { padding: 8px 12px; font-size: 13px; }
}

/* Respect "reduce motion": no movement, everything visible immediately */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .js :is(.section-header, .card, .testimonial, .gallery-item, .service-card,
          .service-detail, .cta-row, .contact-form-preview, .contact-form-card,
          .contact-info, .two-col > div, .contact-preview > div:first-child,
          .media-item, .video-card) {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero::before { animation: none; transform: scale(1.03); }
}

/* Filters need JavaScript; hide them if it isn't running */
html:not(.js) .filter-dock { display: none; }

/* ==========================================================================
   Launch additions
   ========================================================================== */
.brand-name { line-height: 1.3; }

/* Quote forms */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-result { margin: 0; font-size: 14px; color: #d0d0d0; }
.form-result:empty { display: none; }
.form-result.is-success { color: #8fd19e; }
.form-result.is-error { color: #ffb4a8; }
.form-result a { text-decoration: underline; }
.quote-form button[disabled] { opacity: 0.7; cursor: progress; transform: none; }

/* Contact page: service area box */
.service-area {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.service-area .eyebrow { margin-bottom: 6px; }
.service-area p:last-child { margin: 0; color: #e2e2e2; }

/* 404 page */
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* Header fit between tablet and desktop now that the company name is longer */
.nav-cta .btn { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1180px) {
  .nav-wrapper { gap: 12px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 8px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 12px 14px; }
  .brand-text { max-width: 150px; }
}

/* ==========================================================================
   Contractor-focused content: stats, references, story, timeline
   ========================================================================== */

/* Brand tagline: lifted to meet WCAG AA contrast on the dark header */
.brand-tagline { color: #9a9a9a; }
a.brand { color: inherit; }
.footer-slogan { color: var(--accent); font-size: 14px; }

/* Key numbers under the home hero */
.stats-band { padding: 0; margin-top: -48px; position: relative; z-index: 2; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}
.stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; }
.stat-num {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: #dcdcdc; font-size: 15px; line-height: 1.4; }

/* References */
.ref-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ref-group h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
}
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref-list li {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.ref-list li:first-child { border-top: none; padding-top: 0; }
.ref-name { color: var(--white); font-weight: 600; }
.ref-detail { color: #bdbdbd; font-size: 14px; }

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  position: relative;
}
.milestone {
  position: relative;
  padding: 22px 18px 18px;
  border-radius: var(--radius);
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: 3px solid var(--accent);
}
.milestone-when {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.milestone h3 { font-size: 17px; margin-bottom: 6px; }
.milestone p { margin: 0; font-size: 14px; color: #d0d0d0; }

/* Story article */
.story-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  gap: 56px;
  justify-content: center;
  align-items: start;
}
.story-toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 18px 18px 8px;
  border-radius: var(--radius);
  background: var(--slate);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.story-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: chap; }
.story-toc li { counter-increment: chap; margin-bottom: 10px; line-height: 1.35; }
.story-toc a {
  display: flex;
  gap: 8px;
  color: #bdbdbd;
  font-size: 13.5px;
  transition: color 0.2s ease;
}
.story-toc a::before { content: counter(chap, decimal-leading-zero); color: rgba(255, 255, 255, 0.45); font-weight: 600; }
.story-toc a:hover,
.story-toc a.is-current { color: var(--white); }
.story-toc a.is-current::before { color: var(--accent); }
.story-intro { margin-bottom: 8px; }
.story-meta { color: #bdbdbd; font-size: 15px; }
.story .chapter { scroll-margin-top: calc(var(--header-h) + 24px); padding-top: 28px; }
.story h2 { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 16px; }
.story p { font-size: 17px; line-height: 1.75; color: #e2e2e2; }
.pull-quote {
  margin: 36px 0 8px;
  padding: 26px 28px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
}
.pull-quote p {
  margin: 0;
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}
.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 22px 0 24px;
}
.division {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.division-num {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.division-unit { display: block; margin: 4px 0 12px; font-size: 13px; color: #bdbdbd; }
.division h3 { font-size: 16px; margin-bottom: 8px; }
.story .division p { font-size: 14.5px; line-height: 1.6; margin: 0; }
.signature {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.signature p { font-size: 15px; line-height: 1.6; color: #d0d0d0; }
.signature-name {
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: 22px !important;
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 4px;
}
.signature-slogan { color: var(--accent) !important; font-weight: 600; }

/* Reading progress bar (Our Story page) */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 25;
  pointer-events: none;
}
.read-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.js :is(.milestone, .division):not(.revealed) { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) {
  .js :is(.milestone, .division) { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1023px) {
  .story-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-toc { display: none; }
}
@media (max-width: 640px) {
  .stats-band { margin-top: -28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 16px; }
  .stat-label { font-size: 13px; }
  .story p { font-size: 16px; }
}

/* Keep menu labels on one line ("Our Story") */
.main-nav a { white-space: nowrap; }
@media (min-width: 961px) and (max-width: 1060px) {
  .main-nav a { font-size: 15px; padding: 8px 6px; }
  .nav-cta .btn { padding: 11px 12px; font-size: 15px; }
}


/* ==========================================================================
   Black & white theme
   ========================================================================== */
:root { --accent-muted: #a3a3a3; }
.eyebrow,
.ref-group h3,
.milestone-when { color: var(--accent-muted); }
.footer-slogan,
.signature-slogan { color: #bdbdbd !important; }

/* Links inside text are underlined now that they are white like the text */
p a,
.contact-points a,
.form-result a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}
p a:hover,
.contact-points a:hover { text-decoration-color: #ffffff; }
.footer-links a { color: #e6e6e6; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }

.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }
.main-nav a:hover,
.main-nav a.active,
.chip:hover { color: #ffffff; }
.lightbox button:hover { background: #ffffff; color: #0d0d0d; }

/* Line icons for the division cards */
.service-card .icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #ffffff;
}
.service-card .icon svg { width: 24px; height: 24px; }
