/* ==========================================================================
   IRONSTONE — Construction Materials
   Design tokens
   ========================================================================== */
:root {
  --bg-primary:          #0A0A0C;
  --bg-elevated:          #131418;
  --bg-elevated-alt:      #1B1C21;

  --text-heading:         #F2F2F0;
  --text-body:            #9AA1A8;
  --text-muted:           #5C6066;

  --accent-gold:          #C98A4B;
  --accent-gold-bright:   #E0A868;

  --border-hairline:      #232427;
  --border-hairline-alt:  rgba(255, 255, 255, 0.08);

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  --header-h: 92px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; } /* Lenis owns scroll physics once active — native smooth-scroll would otherwise fight it */
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }

body.no-scroll { overflow: hidden; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 500;
  margin: 0 0 10px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--text-heading); margin: 4px 0 16px; line-height: 1.2; }
.section-head__intro { color: var(--text-body); line-height: 1.7; margin: 0; }
.section-head--left { max-width: 640px; margin: 0; text-align: left; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--primary { background: var(--accent-gold); color: var(--bg-primary); }
.btn--primary:hover { background: var(--accent-gold-bright); transform: translateY(-2px); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--text-heading); }
.btn--ghost:hover { border-color: var(--accent-gold); color: var(--accent-gold); transform: translateY(-2px); }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-gold);
  color: var(--bg-primary);
  padding: 12px 20px;
  z-index: 2000;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 16px; top: 16px; }

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

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader__mark { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.preloader__bar { width: 180px; height: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.preloader__bar-fill { display: block; width: 0%; height: 100%; background: var(--accent-gold); transition: width 1s var(--ease); }

/* ==========================================================================
   Scroll progress rail
   ========================================================================== */
.progress-rail {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.progress-rail__count { font-family: var(--font-heading); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--accent-gold); }
.progress-rail__count--total { color: var(--text-muted); }
.progress-rail__line { position: relative; width: 1px; height: 120px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.progress-rail__fill { position: absolute; top: 0; left: 0; width: 100%; height: 0%; background: var(--accent-gold); }

/* ==========================================================================
   Logo chip (preloader + footer) / Logo badge (header)
   ========================================================================== */
.logo-chip {
  display: inline-flex;
  align-items: center;
  background: #F2F1EE;
  border-radius: 8px;
  padding: 8px 14px;
  line-height: 0;
  text-decoration: none;
  transition: padding 0.3s var(--ease);
}
.logo-chip__img { display: block; height: 40px; width: auto; }
.logo-chip--preloader { padding: 10px 16px; }
.logo-chip--preloader .logo-chip__img { height: 48px; }
.logo-chip--footer .logo-chip__img { height: 48px; }

.logo-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  text-decoration: none;
  transition: width 0.3s var(--ease), height 0.3s var(--ease);
}
.logo-badge__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  animation: badgeSpin 26s linear infinite;
}
.logo-badge__ring-text { font-family: var(--font-heading); font-size: 8.4px; letter-spacing: 0.02em; fill: currentColor; }
.logo-badge__core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F2F1EE;
  border-radius: 8px;
  padding: 6px 10px;
}
.logo-badge__img { display: block; height: 26px; width: auto; }
@keyframes badgeSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 14px 0;
  border-bottom: 1px solid transparent;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-hairline);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.site-header.is-scrolled .logo-badge { width: 60px; height: 60px; }
.site-header.is-scrolled .logo-badge__img { height: 20px; }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; }

.main-nav__list { display: flex; gap: 36px; list-style: none; }
.main-nav__link {
  position: relative;
  display: inline-block;
  color: var(--text-body);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 6px;
  transition: color 0.25s var(--ease);
}
.main-nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav__link:hover, .main-nav__link.is-active { color: var(--text-heading); }
.main-nav__link:hover::after, .main-nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 950;
}
.nav-toggle__bar {
  display: block;
  width: 100%; height: 2px;
  background: var(--text-heading);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.visually-hidden-defs { position: absolute; } /* holds #hero-curtain-clip's <clipPath> — 0x0 via width/height attrs, this just keeps it out of normal flow */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg-primary);
  padding-bottom: 120px;
}
/* Filter on the container so stage-1's clip-path animation runs without its own filter overhead each frame. */
.hero__media { position: absolute; inset: 0; z-index: 1; overflow: hidden; filter: grayscale(1) contrast(1.05) brightness(0.85); }
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08); /* overscanned so the parallax translate never reveals an edge */
}
/* Stage 1 is clipped by #hero-curtain-clip. drop-shadow is intentionally
   omitted — recomputing a blur along an animated clip edge every frame is
   very expensive; depth is instead provided by .hero__spine. */
.hero__video[data-stage="1"] {
  z-index: 2;
  clip-path: url(#hero-curtain-clip);
  will-change: clip-path;
}
.hero__video[data-stage="2"] { z-index: 1; }
/* Book-spine glow: fades in as the pages open, fades out once fully open */
.hero__spine {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 24px);
  width: 48px;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.5) 35%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(0, 0, 0, 0.5) 65%,
    transparent 100%
  );
  opacity: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(10, 10, 12, 0.35) 0%, rgba(10, 10, 12, 0.6) 55%, rgba(10, 10, 12, 0.97) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 3; max-width: 820px; }
.hero__headline { margin: 14px 0 24px; }
.hero__line {
  display: block;
  overflow: hidden; /* masks the word spans js/animations.js reveals from below */
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  color: var(--text-heading);
}
.hero__line--soft { color: var(--text-body); font-weight: 500; }
.hero__line--accent { color: var(--accent-gold); }
.hero__subhead { font-size: 1.1rem; line-height: 1.7; color: var(--text-body); max-width: 600px; margin: 0 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 18px; }

/* word-reveal mask: js/animations.js wraps data-split-word text in these */
.word { display: inline-block; overflow: hidden; vertical-align: top; }
.word__inner { display: inline-block; }

.scroll-cue {
  position: absolute;
  left: 32px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-muted);
}
.scroll-cue__label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}
.scroll-cue__line { position: relative; width: 1px; height: 64px; background: rgba(255, 255, 255, 0.25); }
.scroll-cue__dot {
  position: absolute;
  top: 0; left: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
  transform: translateX(-50%);
  animation: scrollCue 1.8s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { top: 0; opacity: 0; }
  30% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.sound-toggle {
  position: absolute;
  right: 32px;
  bottom: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(10, 10, 12, 0.5);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: var(--text-heading);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.sound-toggle:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.sound-toggle__label { font-family: var(--font-heading); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sound-toggle__icon--on { display: none; }
.sound-toggle[aria-pressed="true"] .sound-toggle__icon--off { display: none; }
.sound-toggle[aria-pressed="true"] .sound-toggle__icon--on { display: block; }

/* ==========================================================================
   Marquee divider
   ========================================================================== */
.marquee {
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  padding: 20px 0;
}
.marquee__skew { display: block; } /* separate element from .marquee__track — JS skews this one by scroll velocity so it never fights the track's own CSS transform:translateX loop */
.marquee__track { display: flex; width: max-content; animation: marqueeScroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: inline-flex; align-items: center; flex-wrap: nowrap; }
.marquee__item {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-body);
  padding: 0 18px;
  white-space: nowrap;
}
.marquee__sep { color: var(--accent-gold); font-size: 0.6rem; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { padding: 160px 0; }
.about__layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: center; }
.about__statement h2 { font-family: var(--font-heading); font-size: clamp(1.9rem, 3.2vw, 2.8rem); color: var(--text-heading); margin: 12px 0 22px; line-height: 1.2; }
.about__copy { font-size: 1.05rem; line-height: 1.8; color: var(--text-body); margin: 0; max-width: 520px; }

.feature-list { list-style: none; }
.feature-list__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--border-hairline);
}
.feature-list__item:last-child { border-bottom: 1px solid var(--border-hairline); }
.feature-list__value { font-family: var(--font-heading); font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 600; color: var(--accent-gold); min-width: 96px; }
.feature-list__label {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: right;
  color: var(--text-muted);
  transition: color 0.4s var(--ease);
}
.feature-list__item.is-active .feature-list__label { color: var(--text-heading); }

/* ==========================================================================
   Materials — horizontal scroll carousel
   ========================================================================== */
.materials { padding: 160px 0 0; background: var(--bg-elevated); overflow: hidden; }
.materials__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.materials__counter { font-family: var(--font-heading); font-size: 1rem; letter-spacing: 0.05em; color: var(--text-muted); white-space: nowrap; padding-bottom: 8px; }
.materials__counter #materials-current { color: var(--accent-gold); }

.materials__viewport { overflow: hidden; }
.materials__track { display: flex; gap: 32px; width: max-content; padding: 0 32px 160px; will-change: transform; }
.material-slide {
  position: relative;
  width: min(74vw, 460px);
  flex: 0 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-hairline);
  border-radius: 4px;
  padding: 44px 38px;
}
.material-slide__index { position: absolute; top: 28px; right: 32px; font-family: var(--font-heading); font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.05em; }
.material-slide__icon { display: inline-flex; width: 44px; height: 44px; color: var(--accent-gold); margin-bottom: 26px; }
.material-slide h3 { font-family: var(--font-heading); color: var(--text-heading); font-size: 1.3rem; letter-spacing: 0.02em; margin-bottom: 12px; }
.material-slide p { font-size: 0.98rem; line-height: 1.65; margin: 0; color: var(--text-body); }

/* ==========================================================================
   Process — supply route
   ========================================================================== */
.process { padding: 160px 0; }
.route { position: relative; margin: 56px 0; }
.route__svg { display: block; width: 100%; height: auto; overflow: visible; }
.route__path-ghost { fill: none; stroke: var(--border-hairline-alt); stroke-width: 2; }
.route__path { fill: none; stroke: var(--accent-gold); stroke-width: 2; stroke-linecap: round; }
.route__marker { fill: var(--bg-primary); stroke: var(--accent-gold); stroke-width: 2; }

.route__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; }
.route__step { text-align: center; padding: 0 12px; }
.route__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 20px;
}
.route__step h3 { font-family: var(--font-heading); color: var(--text-heading); font-size: 1.05rem; margin-bottom: 8px; }
.route__step p { font-size: 0.92rem; line-height: 1.6; max-width: 220px; margin: 0 auto; color: var(--text-body); }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { padding: 160px 0; background: var(--bg-elevated); }
.projects__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--border-hairline);
  color: var(--text-body);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.filter-btn:hover { border-color: var(--accent-gold); color: var(--text-heading); }
.filter-btn.is-active { background: var(--accent-gold); border-color: var(--accent-gold); color: var(--bg-primary); }

.projects__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.project-card.is-filtered-out { opacity: 0; transform: scale(0.92); pointer-events: none; }
.project-card[hidden] { display: none; }
.project-card__frame {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-primary);
}
.project-card__frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transition: transform 0.6s var(--ease);
  display: block;
}
.project-card:hover .project-card__frame img,
.project-card:focus-visible .project-card__frame img { transform: scale(1.08); }
.project-card__frame::after {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
  pointer-events: none;
}
.project-card:hover .project-card__frame::after,
.project-card:focus-visible .project-card__frame::after { border-color: var(--accent-gold); }
.project-card__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 20px;
  background: linear-gradient(to top, rgba(10, 10, 12, 0.92), rgba(10, 10, 12, 0));
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.project-card:hover .project-card__caption,
.project-card:focus-visible .project-card__caption { transform: translateY(0); opacity: 1; }
.project-card__name { font-family: var(--font-heading); color: var(--text-heading); font-size: 1rem; letter-spacing: 0.02em; }
.project-card__meta { color: var(--accent-gold); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s var(--ease); }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(6, 6, 7, 0.94); }
.lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  margin: 0;
  text-align: center;
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  filter: grayscale(100%);
  border: 1px solid var(--border-hairline-alt);
  background: var(--bg-elevated);
  margin: 0 auto;
}
.lightbox__figure figcaption { margin-top: 18px; color: var(--text-heading); font-family: var(--font-heading); letter-spacing: 0.04em; }
.lightbox__close, .lightbox__arrow {
  position: absolute;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-heading);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.lightbox__close:hover, .lightbox__arrow:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.lightbox__close { top: 24px; right: 24px; width: 44px; height: 44px; }
.lightbox__arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__arrow--prev { left: 24px; }
.lightbox__arrow--next { right: 24px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { padding: 160px 0; }
.contact__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.contact-card {
  border: 1px solid var(--border-hairline);
  padding: 32px 26px;
  border-radius: 4px;
  text-align: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--accent-gold); }
.contact-card h3 { font-family: var(--font-heading); color: var(--accent-gold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.contact-card p { margin: 0; line-height: 1.6; }
.contact-card a { color: var(--text-heading); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease), color 0.25s var(--ease); }
.contact-card a:hover { color: var(--accent-gold); border-color: var(--accent-gold); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-elevated); border-top: 1px solid var(--border-hairline); padding-top: 72px; }
.site-footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.site-footer__brand p { color: var(--text-muted); margin: 16px 0 0; font-size: 0.92rem; line-height: 1.6; max-width: 280px; }
.site-footer__nav h3, .site-footer__materials h3 { font-family: var(--font-heading); color: var(--text-heading); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 18px; }
.site-footer__nav ul, .site-footer__materials ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.site-footer__nav a { color: var(--text-body); text-decoration: none; transition: color 0.25s var(--ease); }
.site-footer__nav a:hover { color: var(--accent-gold); }
.site-footer__materials li { color: var(--text-body); font-size: 0.95rem; }
.site-footer__bottom { border-top: 1px solid var(--border-hairline); padding: 24px 0; text-align: center; }
.site-footer__bottom p { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 28px; bottom: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--text-heading);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s, border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease); }
.back-to-top:hover { border-color: var(--accent-gold); color: var(--accent-gold); }

/* ==========================================================================
   Section anchor offset (accounts for fixed header)
   ========================================================================== */
section[id] { scroll-margin-top: var(--header-h); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .about__layout { grid-template-columns: 1fr; gap: 48px; }
  .route__steps { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 920;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav__list { flex-direction: column; gap: 30px; text-align: center; }
  .main-nav__link { font-size: 1.15rem; }
  .progress-rail { display: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .route__steps { grid-template-columns: 1fr; gap: 40px; }
  .projects__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero, .about, .materials, .process, .projects, .contact { padding: 90px 0; }
  .hero { padding-bottom: 90px; }
  .materials__viewport { padding-bottom: 0; }
  .sound-toggle { right: 20px; bottom: 24px; padding: 8px 12px; }
  .sound-toggle__label { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; }
  .scroll-cue__dot { animation: none; opacity: 1; top: 50%; transform: translate(-50%, -50%); }
}
