/* ============================================================
   Concord Pacific Place at 40
   Editorial single-page legacy site.
   ============================================================ */

:root {
  /* Color — Restrained: tinted neutrals + a single teal accent */
  --bg:           oklch(0.985 0.004 200);
  --bg-warm:      oklch(0.965 0.006 80);
  --bg-deep:      oklch(0.18 0.012 220);
  --ink:          oklch(0.22 0.012 220);
  --ink-soft:     oklch(0.36 0.011 220);
  --ink-muted:    oklch(0.52 0.010 220);
  --ink-faint:    oklch(0.70 0.008 220);
  --rule:         oklch(0.90 0.006 200);
  --rule-strong:  oklch(0.78 0.008 200);
  /* Concord Pacific brand navy = #002d72 */
  --accent:       #002d72;
  --accent-deep:  #001f50;
  --accent-soft:  oklch(0.95 0.02 264);
  --accent-light: oklch(0.78 0.085 264);  /* used on dark surfaces (stats) */

  /* Type scale, fluid */
  --t-eyebrow:  clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --t-body:     clamp(1.0625rem, 0.95rem + 0.45vw, 1.1875rem);
  --t-lede:     clamp(1.25rem, 1.05rem + 1vw, 1.625rem);
  --t-h3:       clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --t-h2:       clamp(1.875rem, 1.3rem + 2.6vw, 3.25rem);
  --t-h2-lg:    clamp(2.25rem, 1.5rem + 3.4vw, 4.25rem);
  --t-hero:     clamp(2.5rem, 1.4rem + 5vw, 6.25rem);
  --t-stat:     clamp(3.25rem, 1.5rem + 7vw, 7.5rem);
  --t-stat-lg:  clamp(4rem, 1.5rem + 9vw, 9.5rem);

  /* Layout */
  --gutter:        clamp(1.125rem, 0.5rem + 2.5vw, 3rem);
  --content-w:     min(1200px, 100%);
  --content-w-wide: min(1400px, 100%);
  --measure:       min(65ch, 100%);
  --measure-wide:  min(72ch, 100%);

  /* Motion */
  --ease-out:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --dur-1: 220ms;
  --dur-2: 480ms;
  --dur-3: 760ms;
  --dur-4: 1100ms;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Reset + base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* Prevent horizontal overflow on small viewports without breaking vertical scroll.
   `overflow-x: clip` doesn't make the element a scroll container, so html stays
   scrollable vertically and window.scrollTo keeps working.
   Belt-and-suspenders: clip on both html + body, plus max-width to cap layout. */
html, body { overflow-x: clip; max-width: 100vw; }
body { position: relative; }
body {
  margin: 0;
  font-family: "Funnel Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; }
img {
  height: auto;
  background:
    linear-gradient(135deg,
      oklch(0.88 0.008 200) 0%,
      oklch(0.94 0.005 200) 50%,
      oklch(0.88 0.008 200) 100%);
  color: transparent; /* hide alt text visually on broken images while keeping it accessible */
  font-size: 0;
}

::selection { background: var(--accent); color: #fff; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: text-decoration-color var(--dur-1) var(--ease-out), color var(--dur-1) var(--ease-out);
}
a:hover { color: var(--accent-deep); text-decoration-color: var(--accent-deep); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hero__title { text-wrap: pretty; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }

/* Common section frame */
.section-frame {
  width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: "Funnel Sans", sans-serif;
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}
.eyebrow--accent { color: var(--accent-deep); }

.section-title {
  font-size: var(--t-h2);
  max-width: min(22ch, 100%);
  font-weight: 400;
}
.section-title--lg {
  font-size: var(--t-h2-lg);
  max-width: none;
  font-weight: 500;
}


/* ============================================================
   Two-tier nav: brand bar (top) + section bar (below)
   ============================================================ */

/* TOP BAR — brand + breadcrumb. Lives at the top of the page in normal flow.
   Scrolls away with the content; reappears when the user returns to the top. */
.topnav {
  position: relative;
  z-index: 55;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.topnav__inner {
  width: 100%;
  max-width: var(--content-w-wide);
  margin-inline: auto;
  padding: 0.5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.topnav__brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

/* Brandmark — official Concord Pacific wordmark (PNG) */
.brandmark {
  height: 60px;
  width: auto;
  display: block;
  background: transparent;
  transition: transform 480ms var(--ease-out-quart);
}
.topnav__brand:hover .brandmark { transform: scale(1.03); }

.topnav__crumb {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  text-align: left;
  min-width: 0;
}
.topnav__crumb-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}
.topnav__crumb-name {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .topnav__inner { padding-block: 0.55rem; gap: 0.75rem; }
}
@media (max-width: 540px) {
  .topnav__inner { padding-block: 0.45rem; }
  .topnav__crumb-eyebrow { font-size: 0.6rem; letter-spacing: 0.14em; }
  .topnav__crumb-name { font-size: 0.8125rem; }
  .brandmark { height: 48px; }
}

/* SECTION BAR — fixed at the top of the viewport, hidden by default.
   Slides into view once the user scrolls past the hero.
   Fixed (not sticky) so it doesn't reserve layout space when hidden.
   translate3d forces a composite layer for stable iOS Safari rendering
   during momentum scroll. */
.subnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  transform: translate3d(0, -110%, 0);
  -webkit-transform: translate3d(0, -110%, 0);
  pointer-events: none;
  transition: transform 320ms var(--ease-out-quart);
}
.subnav[data-visible="true"] {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.subnav__progress {
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  overflow: hidden;
  pointer-events: none;
}
.subnav__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  transform-origin: left;
  transition: width 80ms linear;
  box-shadow: 0 0 10px color-mix(in oklab, var(--accent) 50%, transparent);
}

.subnav__inner {
  width: 100%;
  max-width: var(--content-w-wide);
  margin-inline: auto;
  padding: 0.55rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  overflow: hidden;
}

/* The links scroll horizontally inside their own track,
   so the counter on the right stays fixed. The subnav has
   overflow:hidden, which contains this child track. */
.subnav__links {
  display: flex;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  text-decoration: none;
  white-space: nowrap;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  transition: color 240ms var(--ease-out-quart), background 240ms var(--ease-out-quart);
}
.subnav__links a:hover {
  color: var(--ink);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.subnav__num {
  font-family: "Funnel Display", sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  transition: color 240ms var(--ease-out-quart);
}
.subnav__links a:hover .subnav__num { color: var(--accent-deep); }
.subnav__label { transition: transform 240ms var(--ease-out-quart); }

.subnav__links a[data-current="true"] {
  color: var(--ink);
  background: color-mix(in oklab, var(--accent) 16%, transparent);
}
.subnav__links a[data-current="true"] .subnav__num {
  color: var(--accent-deep);
  font-weight: 600;
}
.subnav__links a[data-current="true"] .subnav__label {
  font-weight: 500;
}

/* current/total counter on the right — visible at any width */
.subnav__counter {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-family: "Funnel Display", sans-serif;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  flex-shrink: 0;
  padding-left: 0.75rem;
  border-left: 1px solid var(--rule);
}
.subnav__counter-current {
  color: var(--accent-deep);
  font-weight: 600;
  min-width: 1.3em;
  display: inline-block;
  text-align: right;
  transition: transform 320ms var(--ease-out-expo);
}
.subnav__counter-current.is-flipping {
  transform: translateY(-3px);
}
.subnav__counter-divider { color: var(--ink-faint); }

@media (max-width: 540px) {
  .subnav__inner { padding: 0.5rem 0.85rem; gap: 0.6rem; }
  .subnav__links { gap: 0.1rem; font-size: 0.8125rem; }
  .subnav__links a { padding: 0.3rem 0.55rem; gap: 0.35rem; }
  .subnav__counter { padding-left: 0.55rem; font-size: 0.72rem; }
}


/* ============================================================
   1. Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 900px);
  display: grid;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-deep);
  color: #fff;
}
@media (max-width: 720px) {
  .hero { min-height: clamp(480px, 78vh, 640px); }
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.9);
  transform: scale(1.06);
  transform-origin: 60% 40%;
  animation: hero-kenburns 16s var(--ease-out-quart) 0s forwards;
}
@keyframes hero-kenburns {
  to { transform: scale(1); }
}
/* No Ken Burns on small viewports — removes the perpetual GPU layer cost */
@media (max-width: 720px) {
  .hero__media img {
    animation: none;
    transform: scale(1);
  }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in oklab, var(--bg-deep) 35%, transparent) 0%,
      transparent 35%,
      color-mix(in oklab, var(--bg-deep) 75%, transparent) 100%);
}

.hero__content {
  align-self: end;
  padding: var(--gutter);
  padding-bottom: clamp(3rem, 6vh, 6rem);
  width: var(--content-w);
  margin-inline: auto;
}
@media (max-width: 720px) {
  .hero__content { padding-bottom: 2.25rem; }
}

.hero__sub-brand {
  font-family: "Funnel Display", "Funnel Sans", sans-serif;
  font-size: clamp(1.25rem, 1.05rem + 0.85vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.5rem;
  text-wrap: balance;
  animation: fade-up var(--dur-3) var(--ease-out-quart) 100ms both;
}
.hero__sub-context.eyebrow {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.75rem;
  animation: fade-up var(--dur-3) var(--ease-out-quart) 220ms both;
}

.hero__title {
  font-size: var(--t-hero);
  font-weight: 400;
  letter-spacing: -0.025em;
  max-width: min(18ch, 100%);
  margin: 0 0 1.5rem;
  animation: hero-title-reveal 1400ms var(--ease-out-expo) 350ms both;
}
@keyframes hero-title-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
}

.hero__lede {
  font-size: var(--t-lede);
  line-height: 1.4;
  max-width: min(42ch, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
  animation: fade-up var(--dur-4) var(--ease-out-quart) 750ms both;
}

.hero__scroll {
  animation: fade-up 800ms var(--ease-out-quart) 1100ms both;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: var(--gutter);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}
.hero__scroll svg {
  width: 22px; height: 22px;
  animation: scroll-pulse 2.4s var(--ease-out) infinite;
}
.hero__scroll:hover { color: #fff; }
@keyframes scroll-pulse {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   2. The transformation (before/after)
   ============================================================ */

.transformation {
  padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 6rem);
}
.transformation .section-title {
  max-width: min(26ch, 100%);
}

.ba {
  margin: clamp(2.5rem, 5vw, 4.5rem) auto 0;
  width: var(--content-w-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.ba__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
  user-select: none;
  touch-action: pan-y;
}
.ba__stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba__before-wrap {
  position: absolute;
  inset: 0;
  width: 35%;
  overflow: hidden;
  will-change: width;
}
.ba__before-wrap .ba__before {
  width: calc(100vw / var(--ba-vp-ratio, 1));
  max-width: none;
  height: 100%;
  object-fit: cover;
}

.ba__handle {
  position: absolute;
  top: 0;
  left: 35%;
  height: 100%;
  width: 56px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  cursor: ew-resize;
  z-index: 5;
}
.ba__handle:focus-visible { outline: none; }
.ba__handle:focus-visible .ba__handle-knob {
  box-shadow: 0 0 0 3px var(--accent), 0 8px 24px rgba(0,0,0,0.25);
}
.ba__handle-line {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18);
}
.ba__handle-knob {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform var(--dur-1) var(--ease-out-quart);
}
/* Ripple ring as a pseudo-element so we can animate transform + opacity
   (cheap, GPU-composited) instead of keyframing box-shadow (forces repaints). */
.ba__handle-knob::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  animation: handle-ring 2200ms var(--ease-out-quart) infinite;
  pointer-events: none;
}
@keyframes handle-ring {
  0%   { transform: scale(1);   opacity: 0.85; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
.ba__handle:hover .ba__handle-knob,
.ba__handle:active .ba__handle-knob {
  transform: scale(1.06);
}
.ba--has-interacted .ba__handle-knob::before,
.ba__handle:hover .ba__handle-knob::before,
.ba__handle:focus-visible .ba__handle-knob::before {
  animation: none;
  opacity: 0;
}
.ba__handle-knob svg { width: 24px; height: 24px; }

.ba__label {
  position: absolute;
  top: 1.25rem;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.35rem 0.85rem;
  z-index: 4;
  pointer-events: none;
}
.ba__label--before { left: 1.25rem; }
.ba__label--after { right: 1.25rem; }

.ba__caption {
  margin-top: 1.25rem;
  max-width: min(60ch, 100%);
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .ba__handle { width: 44px; }
  .ba__handle-knob { width: 44px; height: 44px; }
  .ba__handle-knob svg { width: 18px; height: 18px; }
  .ba__label { top: 0.75rem; padding: 0.25rem 0.65rem; }
  .ba__label--before { left: 0.75rem; }
  .ba__label--after { right: 0.75rem; }
}


/* ============================================================
   3. Timeline
   ============================================================ */

.timeline {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--bg-warm);
  border-block: 1px solid var(--rule);
}
.timeline__viewport {
  position: relative;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}
.timeline__track {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
  padding-inline: var(--gutter);
  padding-block: 1rem 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
  cursor: grab;
}
.timeline__track:active { cursor: grabbing; }
.timeline__track::-webkit-scrollbar { height: 6px; }
.timeline__track::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 3px; }
.timeline__track::-webkit-scrollbar-track { background: transparent; }
.timeline__track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.milestone {
  flex: 0 0 clamp(280px, 32vw, 420px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-block: 0.5rem;
}
.milestone__year {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
  border-top: 1px solid var(--rule-strong);
  padding-top: 1rem;
  display: block;
}
.milestone__title {
  font-size: var(--t-h3);
  font-weight: 500;
}
.milestone__copy {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}
.milestone img {
  margin-top: auto;
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  filter: saturate(0.9);
}

.timeline__nav {
  position: absolute;
  top: 30%;
  z-index: 3;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.timeline__nav:hover { background: var(--accent); color: #fff; transform: scale(1.05); }
.timeline__nav:disabled { opacity: 0.35; cursor: not-allowed; }
.timeline__nav--prev { left: calc(var(--gutter) - 24px); }
.timeline__nav--next { right: calc(var(--gutter) - 24px); }
.timeline__nav svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  .timeline__nav { display: none; }
}


/* ============================================================
   4. What was built (editorial body)
   ============================================================ */

.built {
  padding: clamp(5rem, 10vw, 9rem) 0;
}
.built__inner {
  width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 6rem);
}
.built__header {
  position: sticky;
  top: 6rem;
  align-self: start;
}
.built__body {
  display: grid;
  gap: 1.5em;
  max-width: var(--measure);
  font-size: var(--t-body);
  color: var(--ink-soft);
  line-height: 1.62;
}
.built__lede {
  font-size: var(--t-lede);
  line-height: 1.42;
  color: var(--ink);
  font-weight: 400;
  max-width: var(--measure-wide);
}
.built__body em {
  font-style: italic;
  color: var(--ink);
}
.built__body strong {
  color: var(--ink);
  font-weight: 600;
}
.built__quote {
  margin: 1rem 0;
  padding: 2rem 0 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.built__quote blockquote {
  margin: 0;
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-style: italic;
  transition: clip-path 1100ms var(--ease-out-expo), transform 1100ms var(--ease-out-quart), opacity 700ms linear;
}
.js .built__quote:not(.in-view) blockquote {
  clip-path: inset(0 0 100% 0);
  transform: translateY(20px);
  opacity: 0;
}
.built__quote figcaption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  font-style: normal;
}

@media (max-width: 880px) {
  .built__inner { grid-template-columns: 1fr; }
  .built__header { position: static; }
}


/* ============================================================
   5. Returned to the city (stat block)
   ============================================================ */

.returned {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg-deep);
  color: #fff;
}
.returned__inner {
  width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.returned__header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.returned__header .eyebrow { color: rgba(255,255,255,0.6); }
.returned__header .section-title {
  color: #fff;
  max-width: min(26ch, 100%);
  font-weight: 300;
}

.stats {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.stat {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;       /* prevent intrinsic min-content from blowing up the grid */
}
.stat__value {
  overflow-wrap: break-word;
}
.stat--lg { grid-column: span 12; }

.stat__value {
  font-family: "Funnel Display", sans-serif;
  font-size: var(--t-stat);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
}
.stat--lg .stat__value { font-size: var(--t-stat-lg); }

.stat__suffix {
  font-size: 0.5em;
  margin-left: 0.05em;
  color: var(--accent-light);
  font-weight: 500;
}

.stat__unit {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 500;
}

.stat__label {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
  max-width: min(32ch, 100%);
  font-weight: 300;
}

@media (max-width: 720px) {
  .stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }
  .stat { grid-column: 1; }
  .stat--lg { grid-column: 1; }
}


/* ============================================================
   6. A place that lives (gallery)
   ============================================================ */

.places {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
}
.places__lede {
  margin-top: 1.5rem;
  font-size: var(--t-lede);
  line-height: 1.42;
  color: var(--ink-soft);
  max-width: var(--measure-wide);
  font-weight: 300;
}
.places__lede--emphasis {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  font-weight: 400;
  max-width: var(--measure);
}

.gallery {
  margin-top: clamp(3rem, 6vw, 5rem);
  width: min(1400px, 96vw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}
.gallery__item {
  margin: 0;
  grid-column: span 3;
}
.gallery__item--wide { grid-column: span 6; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform var(--dur-3) var(--ease-out), filter var(--dur-3) var(--ease-out);
}
.gallery__item--wide img { aspect-ratio: 16 / 9; }
.gallery__item--tall img { aspect-ratio: 4 / 6; }

.gallery__item:hover img {
  transform: scale(1.015);
  filter: brightness(1.04);
}

.gallery__item figcaption {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: min(40ch, 100%);
}
.gallery__item figcaption strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2em;
}

@media (max-width: 880px) {
  .gallery__item { grid-column: span 6; }
  .gallery__item--wide { grid-column: span 6; }
  .gallery__item--tall { grid-row: auto; }
}


/* ============================================================
   7. Global model
   ============================================================ */

.global {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--bg-warm);
  border-block: 1px solid var(--rule);
}
.global__inner {
  width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.global__header { grid-column: 1; }
.global__copy {
  grid-column: 2;
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: var(--measure);
  font-weight: 300;
}

.global__list {
  grid-column: 1 / -1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.global__list li {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 7rem;
}
.global__list li:nth-child(3n) { border-right: 0; }
.global__list span {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.global__list small {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .global__inner { grid-template-columns: 1fr; }
  .global__copy { grid-column: 1; }
  .global__list { grid-template-columns: 1fr 1fr; }
  .global__list li:nth-child(3n) { border-right: 1px solid var(--rule); }
  .global__list li:nth-child(2n) { border-right: 0; }
}
@media (max-width: 480px) {
  .global__list { grid-template-columns: 1fr; }
  .global__list li { border-right: 0 !important; }
}


/* ============================================================
   8. The final chapter
   ============================================================ */

.landing {
  padding: clamp(5rem, 10vw, 10rem) 0;
}
.landing__inner {
  width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.landing__header {
  max-width: min(900px, 100%);
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.landing__body {
  display: grid;
  gap: 1.5em;
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  font-size: var(--t-body);
  line-height: 1.62;
  color: var(--ink-soft);
}
.landing__body strong { color: var(--ink); font-weight: 600; }

.landing__lede {
  font-size: var(--t-lede);
  line-height: 1.42;
  color: var(--ink);
  font-weight: 400;
  margin-bottom: 0.5em;
}

.landing__pull {
  margin: 1.5em -2rem;
  padding: 2rem;
  background: var(--accent-soft);
  border-left: 0;
}
.landing__pull p {
  margin: 0;
  font-size: var(--t-lede);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
}

.landing__emphasis {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(1.375rem, 1rem + 1.4vw, 1.875rem);
  line-height: 1.25;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-block: 1em;
  padding-block: 1em;
  position: relative;
  border-top: 0;
  border-bottom: 0;
}
.landing__emphasis::before,
.landing__emphasis::after {
  content: "";
  position: absolute;
  left: 0;
  height: 1px;
  width: 100%;
  background: var(--rule);
  transform-origin: left;
  transition: transform 900ms var(--ease-out-quart) 200ms;
}
.landing__emphasis::before { top: 0; }
.landing__emphasis::after  { bottom: 0; transition-delay: 400ms; }
.js .landing__emphasis:not(.in-view)::before,
.js .landing__emphasis:not(.in-view)::after { transform: scaleX(0); }

@media (max-width: 600px) {
  .landing__pull { margin-inline: 0; padding: 1.5rem; }
}


/* ============================================================
   Resources strip
   ============================================================ */

.resources {
  background: var(--bg-warm);
  border-top: 1px solid var(--rule);
  padding: clamp(3rem, 5vw, 5rem) 0;
}
.resources__inner {
  width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.resources__title {
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2rem;
}
.resources__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
}
.resources__col {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.resources__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 600;
  margin-bottom: 0.65rem;
}
.resources__link {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  padding-block: 0.2rem;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  width: fit-content;
  transition: color var(--dur-1) var(--ease-out);
}
.resources__link::after {
  content: "→";
  font-size: 0.8em;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.resources__link:hover {
  color: var(--accent-deep);
}
.resources__link:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.resources__cite {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

@media (max-width: 880px) {
  .resources__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}
@media (max-width: 540px) {
  .resources__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .resources__col {
    padding-block: 1.5rem;
  }
  .resources__col + .resources__col {
    border-top: 1px solid var(--rule);
  }
  .resources__col:first-child { padding-top: 0; }
  .resources__col:last-child { padding-bottom: 0; }
}


/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.78);
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
}
.footer__inner {
  width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer__credit {
  font-family: "Funnel Display", sans-serif;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  max-width: min(56ch, 100%);
}
.footer__meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
}
.footer__sep {
  color: rgba(255,255,255,0.3);
  user-select: none;
}
.footer__meta a {
  color: rgba(255,255,255,0.78);
  text-decoration-color: var(--accent-light);
}
.footer__meta a:hover { color: #fff; }


/* ============================================================
   Print
   ============================================================ */

@media print {
  .subnav, .hero__scroll, .timeline__nav, .ba__handle { display: none !important; }
  .hero { min-height: auto; color: #000; background: #fff; }
  .hero__media { display: none; }
  .hero__content { color: #000; padding: 1cm; }
  .hero__title, .hero__lede, .hero .eyebrow { color: #000 !important; }
  .returned, .footer { background: #fff !important; color: #000 !important; }
  .returned .section-title, .stat__value, .stat__label, .footer__credit, .footer__meta {
    color: #000 !important;
  }
  .timeline__track { display: block; overflow: visible; }
  .milestone { break-inside: avoid; margin-bottom: 1cm; flex-basis: auto; }
  .ba__stage { aspect-ratio: auto; }
  .ba__before-wrap { width: 100% !important; position: static; }
  .ba__before-wrap, .ba__after { position: static; }
  body { font-size: 11pt; line-height: 1.4; }
  a { color: #000; text-decoration: underline; }
  section { break-inside: avoid-page; }
}
