/* =========================================================
   FGB — Home
   Hero film, conviction, featured proof, value chain, atlas, CTA.
   Architecture: tokens → base → motion → page. Each page loads
   exactly four stylesheets in that order.
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero__media img, [class*="parallax"] {transform: none !important }
}

.elevation {
  background: var(--ink);
  color: var(--cream);
  position: relative;
  overflow: clip;
}

.elevation__stage {
  padding-block: clamp(72px, 8vw, 118px);
  position: relative;
}

.elevation__stage::before {
  /* faint blueprint grid behind everything */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(181, 153, 106, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(181, 153, 106, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

.elevation__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.elevation__head {
  margin: 0;
}

.elevation__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  color: var(--cream);
  max-width: 12ch;
}

.elevation__body {
  width: 100%;
  min-width: 0;
}

.elevation__phases {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-on-dark);
}

.elevation__phase {
  display: grid;
  grid-template-columns: 64px minmax(180px, 0.55fr) minmax(240px, 1fr);
  align-items: baseline;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(16px, 2vw, 24px) 0;
  border-bottom: 1px solid var(--line-on-dark);
  color: inherit;
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-base) var(--ease-out);
}

.elevation__phase__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--bronze);
}

.elevation__phase__label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.2;
  color: var(--cream);
}

.elevation__phase__copy {
  font-family: var(--sans);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  color: var(--muted-on-dark);
}

.elevation__phase:hover,
.elevation__phase:focus-visible {
  padding-left: 10px;
}

.elevation__phase:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

@media (max-width: 880px) {
  .elevation__inner {grid-template-columns: 1fr; gap: 36px }
  .elevation__stage {padding-block: clamp(72px, 11vw, 108px) }
  .elevation__head h2 {max-width: 12ch }
  .elevation__phase {grid-template-columns: 52px minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px }
}

@media (max-width: 640px) {
  .elevation__phase {grid-template-columns: 44px minmax(0, 1fr); gap: 12px 16px }
  .elevation__phase__copy {grid-column: 2 }
}

@media (min-width: 881px) {
  .hero {position: sticky; top: 0 }
  .hero ~ * {position: relative; z-index: 2 }
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh; /* small-viewport units: correct under mobile URL bars */
  /* min-height BELOW common short-laptop windows (1280×680 effective):
     760px forced the hero taller than the viewport and overflow:hidden
     CLIPPED the stats band. 620px keeps composition without clipping. */
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
}


.hero__media { position: absolute; inset: 0; z-index: 1; }

.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover;
  /* No transform on the media: a base scale re-rasterizes the (720p)
     video every frame AND softens it further on large displays. The
     scrub is the single source of motion; the bitmap stays 1:1. */
  transform: none;
}

.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  /* Above the video (which carries z-index:1) — without this the scrub
     video paints OVER the scrim and copy sits raw on bright sky. */
  z-index: 2;
  /* Legibility scrim: the centre zone (lens lines + wordmark end-card)
     gets its own radial so copy never sits raw on bright sky/facade. */
  background:
    linear-gradient(180deg, rgba(14,26,43,0.72) 0%, rgba(14,26,43,0.40) 30%, rgba(14,26,43,0.58) 62%, rgba(14,26,43,0.95) 100%),
    radial-gradient(ellipse 72% 56% at 50% 52%, rgba(14,26,43,0.38), transparent 72%),
    radial-gradient(ellipse 80% 60% at 25% 75%, rgba(14,26,43,0.6), transparent 70%),
    linear-gradient(90deg, rgba(14,26,43,0.35), transparent 35%);
}

/* Copy over moving video always carries its own separation. */
.hero__headline, .hero__lens, .hero__wordmark-lockup, .hero__crumb {
  text-shadow: 0 1px 2px rgba(10, 15, 26, 0.45), 0 10px 44px rgba(10, 15, 26, 0.40);
}

.hero__cipher {
  position: absolute;
  bottom: -18%;
  right: -4%;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(380px, 56vw, 1100px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--bronze);
  opacity: 0.10;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  font-style: italic;
}

.hero__content {
  position: relative; z-index: 3;
  padding-top: clamp(140px, 16vw, 200px);
  padding-bottom: clamp(60px, 6vw, 100px);
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
}

.hero__crumb {
  display: flex; gap: 16px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream); opacity: 0.85;
}

.hero__crumb__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); align-self: center; animation: dotPulse 2.4s var(--ease-in-out) infinite; }

.hero__crumb span:last-child { color: var(--bronze); opacity: 1; font-weight: 500; }

.hero__title-wrap {
  align-self: center;
  max-width: 92vw;
}

.hero__title .word { display: inline-block; white-space: nowrap; }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 11.5vw, 220px);
  line-height: 0.92;
  letter-spacing: -0.028em;
  margin: 0;
  color: var(--cream);
  text-shadow: 0 4px 60px rgba(14,26,43,0.45);
}

.hero__title em { font-style: italic; color: var(--bronze); font-weight: 500; }

.hero__title .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: chReveal 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 18ms + 150ms);
}

.hero__bottom {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: clamp(24px, 4vw, 80px);
  padding-top: 32px;
  border-top: 1px solid rgba(244,239,230,0.18);
  opacity: 0;
  animation: heroBandIn 1s var(--ease-out) 1.4s forwards;
}

.hero__scroll {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--cream);
  display: inline-flex; flex-direction: column; align-items: center; gap: 14px;
  white-space: nowrap;
}

.hero__scroll__line {
  width: 1px; height: 56px; background: var(--bronze); position: relative; overflow: hidden;
}

.hero__scroll__line::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: var(--cream);
  animation: scrollDrip 2.4s var(--ease-in-out) infinite;
}

.hero__badge {
  position: absolute;
  left: clamp(12px, 1.5vw, 24px);
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  transform-origin: left center;
  z-index: 4;
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bronze);
  white-space: nowrap;
  display: flex; align-items: center; gap: 18px;
}

.hero__badge::before { content: ""; width: 28px; height: 1px; background: var(--bronze); }

@media (max-width: 880px) {
  .hero__bottom {grid-template-columns: 1fr; gap: 24px }
  .hero__scroll, .hero__badge {display: none }
  .hero__cipher {font-size: 60vw; bottom: -6% }
}

.intro {
  --section-y: clamp(72px, 7vw, 112px);
  background: var(--cream);
}

.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 140px);
  align-items: start;
}

.intro__num {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 200px);
  font-weight: 500;
  font-style: italic;
  color: var(--bronze);
  line-height: 1;
  margin: -20px 0 0;
  letter-spacing: -0.02em;
}

.intro__num span {
  font-family: var(--sans);
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--ink);
  display: block;
  margin-top: 22px;
  text-transform: uppercase;
}

.intro__heading {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 64px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 32px;
  text-wrap: balance;
}

.intro__heading em { font-style: italic; color: var(--bronze); font-weight: 500; }

.intro__body {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}

.intro__body p + p { margin-top: 18px; }

.intro__close em {
  font-family: var(--serif);
  font-size: 1.08em;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.intro__cta { margin-top: 36px; display: inline-block; }

@media (max-width: 860px) {
  .intro__grid {grid-template-columns: 1fr }
  .intro__num {margin-top: 0 }
}

@media (max-width: 768px) {
  :root {--gutter: 20px }
  .hero {min-height: 640px }
  .hero__title {font-size: clamp(48px, 13vw, 80px) !important }
  .hero__title-wrap {max-width: 100% !important }
  .hero__cipher {font-size: 80vw !important; opacity: 0.06 !important }
  .hero__badge {display: none }
  .hero__crumb {font-size: 10px }
  .hero__crumb span:nth-child(3) {display: none }
  .hero__scroll {display: none }
  .section, .atlas, .cta {padding-top: clamp(80px, 14vw, 120px) !important; padding-bottom: clamp(80px, 14vw, 120px) !important }
  .atlas__content h2 {font-size: clamp(32px, 8vw, 44px) !important }
  .atlas__lede {font-size: 15px !important }
  .atlas__stage { height: clamp(340px, 58vw, 420px) }
  .atlas__compass, .atlas__scale {display: none }
  .atlas__legend {position: relative; bottom: auto; left: auto; flex-direction: row; flex-wrap: wrap; gap: 16px; margin-top: 16px; padding: 0 12px; font-size: 11px }
  .apin__line {height: 24px !important }
  .apin__label {top: calc(24px + 10px) }
  .apin__label--up {bottom: calc(24px + 10px); top: auto }
  .apin__label strong {font-size: 10px !important }
  .apin__label em {font-size: 9px !important }
  .apin--featured .apin__label strong {font-size: 10px !important }
  .apin__dot {width: 7px; height: 7px }
  .apin--featured .apin__dot {width: 11px; height: 11px }
  .apin[data-id="hyacinthe"] {--x: 42% !important; --y: 58% !important }
  .apin[data-id="granby"] {--x: 32% !important; --y: 72% !important }
  .apin[data-id="sthyac"] {--x: 22% !important; --y: 48% !important }
  .apin[data-id="montreal"] {--x: 20% !important; --y: 32% !important }
  .apin[data-id="drummond"] {--x: 58% !important; --y: 62% !important }
  .apin[data-id="sherbrooke"] {--x: 70% !important; --y: 52% !important }
  .apin[data-id="trois"] {--x: 72% !important; --y: 34% !important }
  .projects__head {grid-template-columns: 1fr !important; gap: 24px }
  .projects__head h2 {font-size: clamp(32px, 8vw, 44px) !important }
  .projects__progress {display: none }
  .projects__card__num {font-size: 44px !important }
  .projects__card__title {font-size: 22px !important }
  .atlas {position: relative; background: var(--ink); color: var(--cream); padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px); overflow: hidden }
  .atlas__grain {position: absolute; inset: 0; background-image:
    radial-gradient(60% 80% at 20% 20%, rgba(184,134,89,0.10), transparent 70%),
    radial-gradient(50% 70% at 80% 80%, rgba(14,26,43,0), transparent 70%); pointer-events: none }
  .atlas__layout {position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: center }
  .atlas__content h2 {font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 0; color: var(--cream) }
  .atlas__content h2 em {font-style: italic; color: var(--bronze); font-weight: 500 }
  .atlas__lede {font-family: var(--serif); font-size: clamp(17px, 1.3vw, 21px); font-weight: 500; line-height: 1.5; color: var(--muted-on-dark); max-width: 44ch; margin: var(--space-5) 0 0 }
  .atlas__stage {position: relative; z-index: 2; margin: 0 auto; max-width: 1320px; padding: 0; height: clamp(300px, 50vw, 420px); overflow: hidden }
  .atlas__map {position: absolute; inset: 0; width: 100%; height: 100% }
  .atlas__pins {position: absolute; inset: 0 }
  .apin {position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); background: none; border: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; font-family: var(--sans) }
  .apin__dot {width: 10px; height: 10px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 4px rgba(184,134,89,0.15), 0 0 20px rgba(184,134,89,0.5); position: relative; z-index: 3; transition: transform 0.4s var(--ease-out) }
  .apin__pulse {position: absolute; top: 0; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--bronze); transform: translate(-50%, 0); animation: apinPulse 2.4s ease-out infinite; z-index: 2 }
  .apin--featured .apin__dot {width: 14px; height: 14px; background: var(--cream); box-shadow: 0 0 0 5px var(--bronze), 0 0 0 9px rgba(184,134,89,0.2), 0 0 30px rgba(184,134,89,0.7) }
  .apin__line {width: 1px; height: clamp(40px, 6vw, 70px); background: linear-gradient(180deg, var(--bronze), transparent); margin-top: 4px; position: relative; z-index: 1 }
  .apin__line--up {position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin: 0; margin-bottom: 4px; background: linear-gradient(0deg, var(--bronze), transparent) }
  .apin__label {position: absolute; top: calc(clamp(40px, 6vw, 70px) + 18px); left: 50%; transform: translateX(-50%); white-space: nowrap; text-align: center; opacity: 0.9; transition: opacity 0.3s, transform 0.4s var(--ease-out) }
  .apin__label--up {top: auto; bottom: calc(clamp(40px, 6vw, 70px) + 18px) }
  .apin__label strong {display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--cream); font-weight: 600; margin-bottom: 2px }
  .apin__label em {display: block; font-style: normal; font-size: 11px; color: var(--bronze); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500 }
  .apin--featured .apin__label strong {font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 500; letter-spacing: 0; text-transform: none; margin-bottom: 4px }
  .apin:hover .apin__dot {transform: scale(1.4) }
  .apin:hover .apin__label {opacity: 1; transform: translateX(-50%) translateY(-4px) }
  .apin--featured:hover .apin__label {transform: translateX(-50%) translateY(-4px) scale(1.05) }
  .atlas__legend {position: absolute; bottom: 20px; left: clamp(20px, 4vw, 60px); display: flex; flex-direction: column; gap: 10px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.06em; color: var(--muted-on-dark) }
  .atlas__legend__item {display: flex; align-items: center; gap: 12px }
  .apin__dot--static {position: relative; width: 8px; height: 8px; display: inline-block; box-shadow: 0 0 0 3px rgba(184,134,89,0.18) }
  .apin__dot--static.apin__dot--featured {width: 10px; height: 10px; background: var(--cream); box-shadow: 0 0 0 3px var(--bronze) }
  .atlas__compass {position: absolute; top: 0; right: clamp(20px, 4vw, 60px); width: 60px; height: 60px; color: var(--bronze); opacity: 0.6 }
  .atlas__compass span {position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 10px; letter-spacing: 0.2em; color: var(--bronze); background: var(--ink); padding: 0 4px }
  .atlas__scale {position: absolute; bottom: 20px; right: clamp(20px, 4vw, 60px); display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 10px; letter-spacing: 0.18em; color: rgba(244,238,228,0.4) }
  .atlas__scale__bar {width: 80px; height: 1px; background: var(--bronze); opacity: 0.5; position: relative }
  .atlas__scale__bar::before, .atlas__scale__bar::after {content: ''; position: absolute; width: 1px; height: 5px; background: var(--bronze); top: -2px }
  .atlas__scale__bar::before {left: 0 }
  .atlas__scale__bar::after {right: 0 }
}

.projects { background: var(--ink); color: var(--cream); position: relative; }

.projects__pin { position: relative; height: auto; }

.projects__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.projects__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: end;
  padding: clamp(78px, 10vh, 108px) var(--gutter) clamp(16px, 2.4vh, 30px);
  flex: 0 0 auto;
}

.projects__head h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(32px, 4vw, 64px);
  line-height: 1; letter-spacing: -0.02em;
  margin: 16px 0 0; max-width: 14ch; color: var(--cream);
}

.projects__head h2 em { font-style: italic; color: var(--bronze); font-weight: 500; }

.projects__head__right {
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 18px;
  padding-bottom: 6px;
}

.projects__head__right p { font-size: 13px; color: var(--muted-on-dark); max-width: 34ch; margin: 0; line-height: 1.6; text-align: left; }

.projects__progress {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bronze);
  font-variant-numeric: tabular-nums;
}

.projects__progress__bar { width: 120px; height: 1px; background: var(--line-on-dark); position: relative; }

.projects__progress__bar::after {
  content: ""; position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--p, 0) * 100%);
  background: var(--bronze);
}

.projects__rail {
  flex: 1 1 auto; min-height: 0;
  display: flex;
  gap: clamp(24px, 2.6vw, 48px);
  padding: 0 var(--gutter) clamp(26px, 4vh, 46px);
  align-items: stretch;
  will-change: transform;
  /* no-JS / pre-JS fallback: native horizontal scroll */
  overflow-x: auto;
  scrollbar-width: none;
}

.projects__rail::-webkit-scrollbar { display: none; }

.projects__card {
  flex: 0 0 clamp(320px, 34vw, 560px);
  width: clamp(320px, 34vw, 560px);
  display: flex; flex-direction: column;
  height: 100%;
  position: relative;
}

.projects__card__media {
  height: calc(100% - 92px);
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: var(--ink-3);
}

.projects__card__media picture {
  position: absolute;
  top: 0; bottom: 0;
  left: -8%; right: -8%;
}

.projects__card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.88) saturate(0.94);
  transition: filter .7s var(--ease-out);
}

.projects__card:hover .projects__card__media img { filter: brightness(1.04) saturate(1); }

.projects__card__num {
  position: absolute; top: 20px; left: 22px;
  font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--bronze);
  z-index: 2;
}

.projects__card__tag {
  position: absolute; top: 22px; right: 22px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cream);
  background: rgba(14,26,43,0.78); padding: 7px 13px; backdrop-filter: blur(6px);
  z-index: 2;
}

.projects__card__meta {
  height: 92px;
  padding-top: 20px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start;
}

.projects__card__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(20px, 2.1vw, 30px); line-height: 1.08;
  letter-spacing: -0.01em; margin: 0; color: var(--cream);
  position: relative;
  display: inline-block;
}

.projects__card__title::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--bronze);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .6s var(--ease-in-out);
}

.projects__card:hover .projects__card__title::after { transform: scaleX(1); }

.projects__card__sub {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bronze); margin-top: 10px;
}

.projects__card__units {
  font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--cream); white-space: nowrap;
  text-align: right; line-height: 1;
}

.projects__card__units small {
  display: block; font-family: var(--sans); font-style: normal; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 6px;
}

.projects__end {
  flex: 0 0 clamp(300px, 30vw, 460px);
  height: calc(100% - 92px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 26px;
  padding: 0 clamp(28px, 3vw, 52px);
  border-left: 1px solid var(--line-on-dark);
}

.projects__end h3 {
  font-family: var(--serif); font-weight: 500; font-style: italic;
  font-size: clamp(30px, 3.2vw, 50px);
  line-height: 1.1; margin: 0; color: var(--cream);
}

.projects__end h3 em { color: var(--bronze); font-style: italic; font-weight: 500; }

@media (max-width: 880px) {
  .projects__sticky {height: auto; min-height: 0; overflow: visible }
  .projects__head {grid-template-columns: 1fr; align-items: start }
  .projects__head__right {align-items: flex-start; text-align: left }
  .projects__rail {flex-direction: column; gap: 56px; padding-bottom: 72px; overflow: visible }
  .projects__card {height: auto }
  .projects__card__media {height: auto; width: 100%; aspect-ratio: 3 / 4 }
  .projects__card__meta {height: auto }
  .projects__end {height: auto; border-left: none; border-top: 1px solid var(--line-on-dark); padding: 44px 0 0 }
}

@media (max-width: 768px) {
  .cta h2 {font-size: clamp(36px, 9vw, 56px) !important }
  .page-header {min-height: 360px; padding: 120px 0 60px }
  .page-header__title {font-size: clamp(40px, 10vw, 60px) !important; line-height: 1.05 }
  .page-header__sub {font-size: 14px; margin-top: 24px }
  .marquee__track {animation-duration: 40s }
  .footer {padding: 80px 0 32px }
  .footer__hero {font-size: clamp(64px, 18vw, 110px) !important; line-height: 1 }
  .footer__bottom {flex-direction: column; gap: 16px; text-align: center }
  .nav {padding: 16px 0 }
  .nav__logo img {height: 32px }
  .lang-toggle__opt {font-size: 11px; padding: 6px 10px }
  .intro-curtain__word {font-size: clamp(40px, 14vw, 80px) !important }
  .intro-curtain__meta {font-size: 10px }
  .cursor-dot {display: none !important }
  input, textarea, select, button, .btn {min-height: 44px }
  .btn {padding: 14px 22px; font-size: 13px }
}

@media (max-width: 480px) {
  .wrap {padding: 0 18px }
  .hero__title {font-size: clamp(44px, 14vw, 64px) !important }
  .footer__hero {font-size: 56px !important }
  .page-header__title {font-size: clamp(36px, 11vw, 52px) !important }
  .atlas__stage { height: clamp(280px, 55vw, 360px) }
}

@media (hover: none) and (pointer: coarse) {
  .page-header__bg {animation: none }
  body::before {opacity: 0.04 !important }
  .apin__pulse {animation-duration: 3.6s }
}

.atlas {
  position: relative;
  background: var(--ink);
  color: var(--cream);
  padding: clamp(120px, 14vw, 200px) 0 clamp(120px, 14vw, 200px);
  overflow: hidden;
}

.atlas__grain {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(60% 80% at 20% 20%, rgba(184,134,89,0.10), transparent 70%),
    radial-gradient(50% 70% at 80% 80%, rgba(14,26,43,0), transparent 70%);
  pointer-events: none;
}

.atlas__layout {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(320px, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.atlas__map-column,
.atlas__content {
  min-width: 0;
}

.atlas__content h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 0;
  color: var(--cream);
}

.atlas__content h2 em { font-style: italic; color: var(--bronze); font-weight: 500; }

.atlas__lede {
  font-family: var(--serif);
  font-size: clamp(17px, 1.3vw, 21px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted-on-dark);
  max-width: 44ch;
  margin: var(--space-6) 0 0;
}

.atlas__city-list {
  display: grid;
  margin-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line-on-dark);
}

.atlas-city {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, max-content);
  gap: var(--space-5);
  align-items: center;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line-on-dark);
  background: none;
  color: var(--muted-on-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1.45;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}

.atlas-city__name,
.atlas-city__region {
  min-width: 0;
  overflow-wrap: anywhere;
}

.atlas-city__region {
  text-align: right;
  color: color-mix(in srgb, var(--cream) 58%, transparent);
  transition: color 0.3s var(--ease-out);
}

.atlas-city:hover,
.atlas-city:focus-visible,
.atlas-city.is-active,
.atlas-city:hover .atlas-city__region,
.atlas-city:focus-visible .atlas-city__region,
.atlas-city.is-active .atlas-city__region {
  color: var(--bronze);
}

.atlas-city:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 4px;
}

.atlas-city--featured,
.atlas-city--featured .atlas-city__region {
  color: var(--bronze);
  font-weight: 600;
}

.atlas__stage {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: none;
  padding: 0;
  height: clamp(380px, 48vw, 520px);
  overflow: hidden;
}

.atlas__stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(12, 18, 32, 0.55) 100%);
  opacity: 0.9;
}

.atlas__mapgl {
  width: 100%;
  height: 100%;
}

.atlas__mapgl .maplibregl-canvas {
  outline: none;
}

.atlas__mapgl .maplibregl-ctrl-group {
  background: rgba(12, 18, 32, 0.92);
  border: 1px solid rgba(184, 134, 89, 0.25);
  box-shadow: none;
}

.atlas__mapgl .maplibregl-ctrl-group button {
  filter: invert(1) sepia(0.2) hue-rotate(5deg) saturate(2);
}

.atlas__mapgl .maplibregl-ctrl-attrib {
  background: rgba(12, 18, 32, 0.88);
  color: rgba(244, 238, 228, 0.5);
  font-size: 10px;
}

.atlas__mapgl .maplibregl-ctrl-attrib a {
  color: var(--bronze);
}

.maplibregl-marker .apin.is-active .apin__dot {
  transform: scale(1.25);
}

/* legacy SVG atlas — removed; legend still uses .apin__dot--static */

.atlas__pins {
  position: absolute; inset: 0;
}

.apin {
  position: absolute;
  left: var(--x); top: var(--y);
  transform: translate(-50%, -50%);
  background: none; border: none; padding: 0;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--mono);
}

.apin__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: none;
  position: relative; z-index: 3;
  transition: transform 0.4s var(--ease-out);
}

.apin__dot::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
}

.apin.is-pulsing .apin__dot::after {
  animation: apinRowPulse 720ms var(--ease-out);
}

.apin__pulse {
  position: absolute; top: 0; left: 50%;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid var(--bronze);
  background: transparent;
  transform: translate(-50%, -5.5px);
  animation: none;
  z-index: 2;
}

.apin--featured .apin__dot {
  width: 9px; height: 9px;
  background: var(--bronze);
  box-shadow: none;
}

.apin__line {
  width: 1px;
  height: clamp(40px, 6vw, 70px);
  background: linear-gradient(180deg, var(--bronze), transparent);
  margin-top: 4px;
  position: relative; z-index: 1;
}

.apin__line--up {
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  margin: 0; margin-bottom: 4px;
  background: linear-gradient(0deg, var(--bronze), transparent);
}

.apin__label {
  position: absolute;
  top: calc(clamp(40px, 6vw, 70px) + 18px);
  left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  text-align: center;
  opacity: 1;
  transition: opacity 0.3s, transform 0.4s var(--ease-out);
}

.apin__label--up {
  top: auto; bottom: calc(clamp(40px, 6vw, 70px) + 18px);
}

.apin__label strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--cream);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 2px;
  text-shadow: 0 1px 8px var(--ink);
}

.apin__label em {
  display: block;
  font-style: normal;
  font-size: 9px;
  color: var(--bronze-200);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 8px var(--ink);
}

.apin--featured .apin__label strong {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--cream);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.apin:hover .apin__dot { transform: scale(1.4); }

.apin:hover .apin__label { opacity: 1; transform: translateX(-50%) translateY(-4px); }

.apin--featured:hover .apin__label { transform: translateX(-50%) translateY(-4px) scale(1.05); }

.atlas__legend {
  position: absolute;
  bottom: 20px; left: clamp(20px, 4vw, 60px);
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
}

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

.apin__dot--static {
  position: relative;
  width: 7px; height: 7px;
  display: inline-block;
  box-shadow: none;
}

.apin__dot--static.apin__dot--featured {
  width: 9px; height: 9px;
  background: var(--bronze);
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px var(--bronze);
}

.atlas__compass {
  position: absolute;
  top: 0; right: clamp(20px, 4vw, 60px);
  width: 60px; height: 60px;
  color: var(--bronze);
  opacity: 0.6;
}

.atlas__compass span {
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--bronze);
  background: var(--ink);
  padding: 0 4px;
}

.atlas__scale {
  position: absolute;
  bottom: 20px; right: clamp(20px, 4vw, 60px);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: rgba(244,238,228,0.4);
}

.atlas__scale__bar {
  width: 80px; height: 1px; background: var(--bronze); opacity: 0.5;
  position: relative;
}

.atlas__scale__bar::before, .atlas__scale__bar::after {
  content: ''; position: absolute; width: 1px; height: 5px; background: var(--bronze); top: -2px;
}

.atlas__scale__bar::before { left: 0; }

.atlas__scale__bar::after { right: 0; }

@media (max-width: 880px) {
  .atlas__layout {grid-template-columns: 1fr; gap: var(--space-12) }
  .atlas__lede {margin: var(--space-5) 0 0 }
  .atlas__stage { height: clamp(280px, 50vw, 400px) }
  .apin__label strong {font-size: 10px }
  .apin--featured .apin__label strong {font-size: 10px }
  .apin__label em {font-size: 9px }
  .apin__line {height: 32px }
  .atlas__compass {width: 44px; height: 44px }
}

.cta { background: var(--cream); padding: clamp(78px, 8vw, 126px) 0; text-align: center; }

.cta h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 8vw, 140px);
  line-height: 1; letter-spacing: -0.025em;
  margin: 24px auto 0;
  max-width: 16ch;
  color: var(--ink);
}

.cta h2 em { font-style: italic; color: var(--bronze); font-weight: 500; }

.cta__sub {
  margin: 28px auto 0;
  max-width: 50ch;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--muted);
}

.cta__actions { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.cta__hr { margin: clamp(36px, 5vw, 64px) auto 0; width: 1px; height: 52px; background: var(--bronze); }

.intro-curtain {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  transition: transform 1.2s var(--ease-out), opacity .6s;
}

.intro-curtain.is-lifting { transform: translateY(-100%); }

.intro-curtain.is-done { display: none; }

.intro-curtain__inner { text-align: center; padding: 40px; }

.intro-curtain__brand { display: flex; flex-direction: column; align-items: center; gap: 32px; }

.intro-curtain__logo {
  width: clamp(160px, 28vw, 240px);
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(8px);
  animation: introLogoIn 0.9s var(--ease-out) forwards 0.15s;
}

@keyframes introLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

.intro-curtain__word {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  opacity: 0;
  animation: icWord 0.8s var(--ease-out) forwards 0.55s;
}

.intro-curtain__word span { display: inline-block; }

.intro-curtain__word::after {
  content: "."; color: var(--bronze);
}

.intro-curtain__meta {
  position: absolute;
  bottom: 36px; left: 50%; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--bronze); opacity: 0;
  animation: icWord 0.8s var(--ease-out) forwards 0.85s;
}

.hero__title { font-size: clamp(46px, 8vw, 150px); }

.hero__figures { display: flex; gap: clamp(24px, 4vw, 64px); align-items: stretch; flex-wrap: wrap; }

.hfig {
  display: flex; flex-direction: column; gap: 8px;
  padding-left: 18px;
  border-left: 1px solid rgba(181, 153, 106, 0.45);
}

.hfig strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 38px);
  color: var(--cream);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hfig span {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(244, 239, 230, 0.62);
}

.elevation__cta { margin-top: clamp(24px, 3vw, 40px); color: var(--cream); }

.elevation__cta:hover { color: var(--bronze); }

.am-grid {
  stroke: color-mix(in srgb, var(--bronze) 28%, transparent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.am-coord {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  fill: var(--cream);
}

.am-river {
  fill: none;
  stroke: color-mix(in srgb, var(--cream) 58%, transparent);
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.am-river--main { stroke: color-mix(in srgb, var(--cream) 74%, transparent); stroke-width: 1; }

.am-river--accent { stroke: var(--bronze-200); stroke-width: 1; }

.am-region {
  fill: none;
  stroke: var(--bronze);
  stroke-width: 1;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.am-isle {
  fill: color-mix(in srgb, var(--bronze) 8%, transparent);
  stroke: color-mix(in srgb, var(--cream) 70%, transparent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.am-label {
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  fill: var(--cream);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.am-label--river { fill: var(--bronze-200); font-size: 10px; letter-spacing: 0.24em; }

.atlas__inset {
  position: absolute;
  top: 5%;
  right: 4%;
  width: clamp(150px, 16vw, 240px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.am-qc {
  fill: color-mix(in srgb, var(--cream) 5%, transparent);
  stroke: color-mix(in srgb, var(--cream) 68%, transparent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.am-qc-frame {
  fill: color-mix(in srgb, var(--bronze) 14%, transparent);
  stroke: var(--bronze);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.atlas__inset__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cream);
  text-align: right;
}

.atlas__caption {
  border-top: 1px solid var(--line-on-dark);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1.7;
  margin: clamp(28px, 4vw, 52px) 0 0;
  padding-top: var(--space-5);
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .atlas__inset {display: none }
}

.hero__content { padding-top: clamp(110px, 13vh, 168px); }

.hero__title { font-size: clamp(48px, 8.4vw, 158px); line-height: 0.93; }

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  z-index: 1; /* over the still, under the overlay gradients (::after on media) */
}

.hero__video.is-ready { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero__video {display: none !important }
}

@keyframes dotPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.5; } }

@keyframes apinPulse {
  0% { transform: translate(-50%, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, 0) scale(5); opacity: 0; }
}

@keyframes apinRowPulse {
  0% { opacity: 0.75; transform: scale(0.55); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* Baton hero lockup */
.hero__headline {
  align-self: center;
  max-width: min(980px, 92vw);
}

.hero__lens-stack {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: 50%;
  z-index: 4;
  min-height: clamp(110px, 11vw, 180px);
  transform: translateY(-42%);
  pointer-events: none;
}

.hero__lens {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 126px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--cream);
  opacity: 0;
  text-shadow: 0 4px 60px color-mix(in srgb, var(--ink) 48%, transparent);
}

.hero__wordmark-lockup {
  position: absolute;
  left: 50%;
  bottom: clamp(82px, 12vh, 150px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  opacity: 0;
  transform: translateX(-50%);
}

.hero__wordmark-lockup img {
  width: clamp(150px, 15vw, 260px);
  height: auto;
  filter: drop-shadow(0 12px 34px color-mix(in srgb, var(--ink) 46%, transparent));
}

.hero:not(.hero--scrub) .hero__lens-stack {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  min-height: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.hero:not(.hero--scrub) .hero__lens {
  position: static;
  max-width: 24ch;
  font-family: var(--sans);
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  opacity: 1;
  text-shadow: none;
}

.hero:not(.hero--scrub) .hero__wordmark-lockup {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  align-self: start;
  align-items: flex-start;
  gap: var(--space-5);
  opacity: 1;
  margin-top: var(--space-8);
}

@media (max-width: 767px) {
  .hero__headline {max-width: 100% }
  .hero__lens-stack {display: none !important }
  .hero__wordmark-lockup {display: none !important }
}

/* Featured real assets */
.featured-projects {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(84px, 8vw, 128px) 0;
}

.featured-projects > .wrap {
  max-width: none;
  padding: 0;
}

.featured-projects__head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  width: min(100%, 1480px);
  margin-inline: auto;
  margin-bottom: clamp(44px, 6vw, 84px);
  padding-inline: var(--gutter);
}

.featured-projects__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: var(--space-5) 0 0;
}

.featured-projects__head h2 em { font-style: italic; color: var(--bronze); font-weight: 500; }

.featured-projects__head p {
  max-width: 48ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.featured-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 4vw, 56px);
  align-items: stretch;
}

.real-feature, .masterplan-card {
  min-width: 0;
}

.featured-projects .diptych {
  width: 100%;
}

.real-feature__meta,
.masterplan-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-6);
  padding-top: var(--space-5);
}

.real-feature__meta {
  width: min(100%, 1480px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.real-feature__meta h3, .masterplan-card__meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1;
  margin: 0 0 var(--space-3);
}

.real-feature__meta p, .masterplan-card__meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.real-feature__meta > span,
.masterplan-card__meta span {
  color: var(--bronze);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.masterplan-card picture {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream);
  position: relative;
}

.masterplan-card picture::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--bronze);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-media-hover) var(--ease-out);
}

.masterplan-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.masterplan-card:hover picture::after { opacity: 1; }

.masterplan-card {
  width: min(calc(100% - var(--gutter) - var(--gutter)), 1040px);
  margin: clamp(4px, 1vw, 14px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.masterplan-card__meta {
  padding-top: 0;
}

.featured-projects__link {
  display: inline-flex;
  margin-top: clamp(32px, 4vw, 52px);
  margin-left: max(var(--gutter), calc((100vw - 1480px) / 2 + var(--gutter)));
}

@media (max-width: 920px) {
  .featured-projects__head,
  .featured-projects__grid { grid-template-columns: 1fr; }
  .real-feature__meta,
  .masterplan-card__meta { flex-direction: column; }

  /* overflow-x: clip on body — cancel wrap/gutter width instead of 100vw bleed. */
  .featured-projects > .wrap {
    padding-inline: 0;
  }

  .featured-projects__head,
  .real-feature,
  .masterplan-card__meta,
  .featured-projects__link {
    padding-inline: var(--gutter);
    margin-left: 0;
  }

  .masterplan-card {
    grid-template-columns: 1fr;
    width: 100%;
    margin-inline: 0;
  }

  .masterplan-card picture {
    width: 100%;
    aspect-ratio: 1 / 1;
  }

  .masterplan-card picture::after { display: none; }
}

@media (max-width: 768px) {
  .apin[data-id="hyacinthe"] {--x: 44.2% !important; --y: 61.6% !important }
  .apin[data-id="repentigny"] {--x: 32.6% !important; --y: 57.7% !important }
  .apin[data-id="chambly"] {--x: 35.8% !important; --y: 72.9% !important }
  .apin[data-id="saint-jean"] {--x: 37.9% !important; --y: 87% !important }
  .apin[data-id="saint-guillaume"] {--x: 63.2% !important; --y: 58.7% !important }
  .apin[data-id="east-angus"] {--x: 90.5% !important; --y: 71.7% !important }
  .apin[data-id="quebec"] {--x: 77.9% !important; --y: 11% !important }
}

@media (prefers-reduced-motion: reduce) {
  .apin__pulse {animation: none !important }
  .apin.is-pulsing .apin__dot::after {animation: none !important }
}

.apin__pulse { animation: none; }

/* Baton Elevate 1 — first-impression polish */
/* (min-height intentionally NOT redeclared here: the base .hero rule owns
   it at 620px — 760px re-clipped the stats band on short laptop windows.) */

.hero__content {
  padding-top: clamp(108px, 14vh, 168px);
  padding-bottom: clamp(42px, 6vh, 84px);
}

.hero__crumb {
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  color: var(--bronze-300);
  opacity: 1;
}

.hero__media picture img {
  filter: saturate(0.94) contrast(1.05);
}

.hero__crumb__dot {
  width: 6px;
  height: 6px;
  background: var(--bronze-300);
}

.hero__crumb span:last-child {
  color: inherit;
  opacity: 1;
}

.hero__headline {
  align-self: center;
  max-width: 16ch;
}

.hero__title {
  max-width: 16ch;
  font-size: var(--type-hero);
  line-height: 1.03;
  letter-spacing: var(--tracking-hero);
}

.hero__bottom {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
  padding-top: 28px;
  border-top: 1px solid rgba(247, 243, 236, 0.25);
}

.hero__figures {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, max-content));
  gap: clamp(22px, 3.2vw, 54px);
  align-items: end;
}

.hfig {
  display: grid;
  align-content: end;
  gap: 7px;
  padding-left: 0;
  border-left: 0;
}

.hfig strong {
  font-size: clamp(28px, 2.4vw, 40px);
  line-height: 0.95;
  font-weight: 500;
}

.hfig span {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.28em;
  color: rgba(247, 243, 236, 0.72);
}

.hero__scroll {
  justify-self: end;
  align-self: end;
  flex-direction: column-reverse;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--bronze-300);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.hero__scroll.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.hero__scroll__line {
  height: var(--scroll-cue-line);
  background: rgba(247, 243, 236, 0.55);
}

.hero__lens {
  max-width: 14ch;
  letter-spacing: -0.01em;
}

.hero__wordmark-lockup {
  gap: 28px;
}

.hero__wordmark-lockup img {
  width: min(34vw, 380px);
  max-width: 380px;
}

.hero__wordmark-lockup .btn {
  color: var(--cream);
  background: rgba(14, 26, 43, 0.35);
  border-color: rgba(247, 243, 236, 0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__wordmark-lockup .btn:hover {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--ink);
}

.featured-projects {
  padding-block: clamp(84px, 8vw, 128px);
}

.atlas {
  padding-block: clamp(96px, 11vw, 160px);
}

.cta {
  padding-block: clamp(78px, 8vw, 126px);
}

.elevation__stage {
  padding-block: clamp(72px, 8vw, 118px);
}

.intro__heading,
.featured-projects__head h2,
.elevation__head h2,
.atlas__content h2,
.cta h2 {
  font-size: var(--type-display);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
}

.intro__body,
.featured-projects__head p,
.atlas__lede,
.cta__sub {
  max-width: var(--container-prose);
  font-family: var(--sans);
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.65;
}

.featured-projects img,
.projects__card__media img {
  filter: saturate(0.94) contrast(1.05);
  transition: transform var(--dur-media-hover) var(--ease-out), filter var(--dur-media-hover) var(--ease-out);
}

.masterplan-card img {
  filter: saturate(1.02) contrast(1.02) brightness(1.06);
  transition: transform var(--dur-media-hover) var(--ease-out), filter var(--dur-media-hover) var(--ease-out);
}

.masterplan-card:hover img,
.projects__card:hover .projects__card__media img {
  transform: scale(1.03);
}

.projects__card:hover .projects__card__media img {
  filter: saturate(0.94) contrast(1.05);
}

.masterplan-card:hover img {
  filter: saturate(1.04) contrast(1.03) brightness(1.08);
}

@media (max-width: 767px) {
  .nav {
    height: var(--nav-height);
    padding: 0 var(--gutter);
  }

  .hero {
    min-height: 680px;
    height: 100svh;
  }

  .hero__content {
    padding-top: clamp(112px, 17vh, 148px);
    padding-bottom: 30px;
  }

  .hero__crumb {
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--bronze-200);
  }

  .hero__crumb span:nth-child(3) {
    display: inline;
  }

  .hero__headline,
  .hero__title {
    max-width: 16ch;
  }

  .hero__title {
    font-size: var(--type-hero) !important;
    line-height: 1.03;
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 22px;
  }

  .hero__figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    border-top: 1px solid rgba(247, 243, 236, 0.22);
    border-left: 1px solid rgba(247, 243, 236, 0.18);
  }

  .hfig {
    min-height: 86px;
    padding: 16px 14px;
    border-right: 1px solid rgba(247, 243, 236, 0.18);
    border-bottom: 1px solid rgba(247, 243, 236, 0.18);
  }

  .hfig strong {
    font-size: 26px;
  }

  .hfig span {
    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .hero__scroll {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
  body.hero--static .hero__media picture img,
  body.hero--loop .hero__media picture img {
    animation: heroPosterKenBurns var(--dur-ken-burns) var(--ease-in-out) infinite alternate;
    transform-origin: center;
  }
}

@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
  body.hero--static .hero__media picture img,
  body.hero--loop .hero__media picture img {
    animation: none !important;
    transform: none !important;
  }
}

body.save-data.hero--static .hero__media picture img,
body.save-data.hero--loop .hero__media picture img {
  animation: none !important;
  transform: none !important;
}

@keyframes heroPosterKenBurns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(2%, -2%, 0); }
}
/* Short desktop windows (laptop + browser chrome): compact the hero so
   crumb → headline → stats ALWAYS fit inside the viewport. */
@media (min-width: 768px) and (max-height: 800px) {
  .hero__content { padding-top: clamp(80px, 9vh, 112px); padding-bottom: 24px; gap: 12px; }
  .hero__title { font-size: clamp(38px, 6.4vw, 84px); }
  .hero__bottom { padding-top: 18px; }
  .hfig strong { font-size: clamp(22px, 2vh + 10px, 30px); }
}

/* =========================================================
   Audit fixes 2026-10-02 (launch-prep)
   ========================================================= */

/* Hero mode contract: the lens lines and the wordmark end-card live only inside the
   scroll film. Loop (tablets, touch), static, reduced-motion and no-JS heroes show
   crumb + H1 + stats. The stacked variant overlapped the H1 on tablets and under
   reduced motion. Phones already hid both (max-width: 767px block above). */
.hero:not(.hero--scrub) .hero__lens-stack,
.hero:not(.hero--scrub) .hero__wordmark-lockup {
  display: none;
}

/* The positioning line sits on bright sky: cream reaches AA where champagne did not. */
.hero__crumb {
  color: var(--cream);
}

/* A legacy max-width:768px rule zeroes the nav padding and the replacement starts at
   767px, so exactly 768px (iPad portrait) lost its gutter. */
@media (max-width: 768px) {
  .nav {
    padding: 0 var(--gutter);
  }
}

/* Map legend sits under the map at every width: absolutely positioned it covered the
   south-west city labels (Chambly, Saint-Jean), and the mobile 'static' rule was
   overridden by the later desktop rule. OpenStreetMap credit (ODbL) in the caption. */
.atlas__legend {
  position: static;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 14px;
  padding: 0;
}

.atlas__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Réserve Étoilée card: the meta column beside the image is narrow (~320px), so label,
   title, figures and project link stack vertically at every width. */
.masterplan-card .masterplan-card__meta {
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.masterplan-card .masterplan-card__meta span {
  white-space: normal;
}

.masterplan-card__facts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.masterplan-card__link span {
  white-space: normal;
}

/* East Angus ledger row is a link to the project page (same look as the button rows). */
a.atlas-city {
  text-decoration: none;
  color: inherit;
}
