/* Metropolis Property Group
   Structure follows the Elyse Residence reference (photo-led, single dark ground).
   Voice: assured, warm, precise. One family (Albert Sans), contrast through
   weight, size and italic. Colour: restrained, warm-tinted neutrals on teal-black.
   Accessibility target: WCAG 2.2 AA (see PRODUCT.md). */

:root {
  /* Colour (OKLCH; neutrals tinted warm, ground tinted teal) */
  --bg: oklch(19.5% 0.009 195);
  --bg-raised: oklch(23% 0.011 195);
  --panel: oklch(35% 0.034 170);
  --fg: oklch(96.5% 0.008 85);
  --fg-muted: oklch(83% 0.01 85);      /* ≥ 9:1 on --bg, ≥ 5:1 on --panel */
  --fg-subtle: oklch(68% 0.012 85);    /* ≥ 5:1 on --bg; not for use on --panel */
  --line: oklch(96.5% 0.008 85 / 0.18);
  --line-strong: oklch(96.5% 0.008 85 / 0.45);
  --error: oklch(84% 0.09 30);

  /* Type */
  --font: 'Albert Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text-label: 0.75rem;
  --text-body: 1rem;
  --text-lead: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --text-h3: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);
  --text-h2: clamp(2.25rem, 1.4rem + 3.2vw, 4rem);
  --text-h2-xl: clamp(2.5rem, 1.2rem + 5vw, 5.75rem);

  /* Space (8pt grid) */
  --gutter: clamp(1.5rem, 4vw, 3rem);
  --section: clamp(6rem, 10vw, 9rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }
main:focus { outline: none; }

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 300; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h3 { font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
em { font-style: italic; }
p { text-wrap: pretty; }

.label {
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ---------- Interactive ---------- */
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pill-solid { background: var(--fg); color: var(--bg); }
.pill-solid:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.pill-outline { border-color: var(--line-strong); color: var(--fg); }
.pill-outline:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pill-wide { width: 100%; min-height: 52px; }
.pill:disabled { opacity: 0.6; cursor: progress; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  transition: text-decoration-color 0.3s;
}
.text-link:hover { text-decoration-color: var(--fg); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background-color 0.4s var(--ease);
}
.header.is-scrolled, .header.is-open {
  background: oklch(19.5% 0.009 195 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-brand {
  justify-self: start;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.header-links { display: flex; gap: 0.5rem; }
.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--fg-muted);
  transition: color 0.3s;
}
.header-links a:hover { color: var(--fg); }
.header-cta { justify-self: end; }
.nav-contact { display: none; }
.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 0.75rem;
  background: none;
  border: 0;
  color: var(--fg);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 14s var(--ease) both;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(19.5% 0.009 195 / 0.6) 0%, oklch(19.5% 0.009 195 / 0) 25%),
    linear-gradient(270deg, oklch(19.5% 0.009 195 / 0.6) 0%, oklch(19.5% 0.009 195 / 0) 45%),
    linear-gradient(0deg, oklch(19.5% 0.009 195 / 0.92) 0%, oklch(19.5% 0.009 195 / 0.55) 45%, oklch(19.5% 0.009 195 / 0.1) 75%);
}
.hero-inner { position: relative; width: 100%; padding: 0 var(--gutter) clamp(1.25rem, 2.5vw, 2.5rem); container-type: inline-size; }
.hero-aside {
  margin-left: auto;
  width: min(100%, 24rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  animation: rise 1s 0.45s var(--ease) both;
}
.hero-tagline { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; }
.hero-copy { margin-top: 1rem; font-size: var(--text-lead); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; margin-top: 2rem; }
/* Wordmark lockup: "METROPOLIS" sized to the hero's own width (cqi), so it never clips.
   6.24 = rendered width / font-size for this word in Albert Sans 300 at 0.01em tracking;
   15.6cqi leaves ~3% breathing room. */
.hero-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.5rem, 1.2cqi, 1.25rem);
  font-weight: 300;
  animation: rise 1.2s 0.15s var(--ease) both;
}
.wordmark-main {
  display: block;
  font-size: min(15.6cqi, 22rem);
  line-height: 0.8;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: -0.04em;
}
.wordmark-sub {
  display: block;
  font-size: clamp(0.75rem, 0.55rem + 0.9cqi, 1.125rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding-left: 0.1em;
}

/* ---------- About ---------- */
.about { padding: var(--section) var(--gutter) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr) 0.8fr;
  grid-template-rows: auto 1fr;
  column-gap: clamp(1.5rem, 4vw, 4rem);
}
.about-grid > .label { grid-column: 1; grid-row: 1; }
.about-heading { grid-column: 1; grid-row: 2; align-self: end; font-size: var(--text-h2); }
.about-photo { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 3 / 4; overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-copy { grid-column: 3; grid-row: 1 / span 2; color: var(--fg-muted); max-width: 22rem; }
.about-copy p + p { margin-top: 1rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(4rem, 8vw, 6rem);
}
.fact { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.fact dt { font-size: var(--text-label); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-subtle); }
.fact dd { margin-top: 0.75rem; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; }

/* ---------- Services slider ---------- */
.services { padding-top: var(--section); }
.services-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  margin-bottom: 2rem;
}
.services-dots { display: flex; gap: 0.25rem; }
.services-dot {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  color: var(--fg-subtle);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}
.services-dot:hover { color: var(--fg); }
.services-dot.is-current { color: var(--fg); border-bottom-color: var(--fg); }

.services-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(0, 32vw) 1fr;
  align-items: center;
  column-gap: clamp(1.5rem, 6vw, 7rem);
}
.services-main { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.services-main::after { content: ''; position: absolute; inset: 0; background: oklch(19.5% 0.009 195 / 0.38); }
.services-side {
  aspect-ratio: 3 / 4;
  height: 78%;
  width: 68%;
  padding: 0;
  background: none;
  border: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.4s;
}
.services-side:hover { opacity: 1; }
.services-side-prev { justify-self: start; }
.services-side-next { justify-self: end; }
.services-main img, .services-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s var(--ease), transform 1.2s var(--ease);
}
.services-stage.is-changing img { opacity: 0; transform: scale(1.04); }
.services-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter);
  text-align: center;
  font-size: var(--text-h2-xl);
  pointer-events: none;
  text-shadow: 0 2px 32px oklch(19.5% 0.009 195 / 0.5);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease);
}
.services-stage.is-changing .services-title { opacity: 0; transform: translateY(16px); }
.services-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 5vw, 4rem);
  padding: 0 var(--gutter);
}
.services-item { padding-top: 1.5rem; border-top: 1px solid var(--line); box-shadow: inset 0 1px 0 0 transparent; transition: box-shadow 0.4s var(--ease); }
.services-item.is-active { box-shadow: inset 0 1px 0 0 var(--fg); }
.services-num { display: block; font-size: var(--text-label); font-weight: 500; letter-spacing: 0.16em; color: var(--fg-subtle); }
.services-item h3 { margin-top: 0.75rem; font-size: var(--text-h3); }
.services-item-btn {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--fg-muted);
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s;
}
.services-item-btn:hover, .services-item.is-active .services-item-btn { color: var(--fg); }
.services-item p { margin-top: 0.25rem; color: var(--fg-muted); max-width: 22rem; }
.services-cta { padding: 0 var(--gutter); margin-top: clamp(2.5rem, 4vw, 3rem); }

/* ---------- Promise ---------- */
.promise { position: relative; margin-top: var(--section); overflow: hidden; }
.promise-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promise::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, oklch(19.5% 0.009 195 / 0.88) 0%, oklch(19.5% 0.009 195 / 0.6) 55%, oklch(19.5% 0.009 195 / 0.75) 100%);
}
.promise-inner {
  position: relative;
  z-index: 2;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  padding: var(--section) var(--gutter) clamp(3rem, 5vw, 4rem);
}
.promise-head { display: grid; grid-template-columns: 1.5fr 0.5fr; grid-template-rows: auto auto; column-gap: 2rem; row-gap: 1.5rem; align-items: end; }
.promise-head .label { grid-column: 1 / -1; color: var(--fg-muted); }
.promise-heading { font-size: var(--text-h2-xl); max-width: 12ch; }
.promise-copy { justify-self: end; max-width: 20rem; font-size: var(--text-lead); line-height: 1.55; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.value { padding-top: 1.5rem; border-top: 1px solid var(--line-strong); }
.value-num { display: block; font-size: var(--text-label); font-weight: 500; letter-spacing: 0.16em; color: var(--fg-muted); }
.value h3 { margin-top: 1rem; font-size: var(--text-h3); }
.value p { margin-top: 0.5rem; color: var(--fg-muted); max-width: 18rem; }

/* ---------- Residents: pinned scroll story (Elyse amenities pattern) ---------- */
@property --slat { syntax: '<percentage>'; inherits: false; initial-value: 100%; }

.story { position: relative; margin-top: var(--section); }
.story.is-pinned { height: 300vh; }
.story-sticky {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: 0 var(--gutter);
}
.story.is-pinned .story-sticky { position: sticky; top: 0; height: 100svh; padding-top: 5rem; overflow: hidden; }
.story-text { position: relative; padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.story-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
.story-rail-fill { display: block; width: 100%; height: 100%; background: var(--fg); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.story-heading { font-size: var(--text-h2); margin: 1rem 0 2rem; }
.story-step { display: grid; grid-template-columns: 3rem 1fr; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.story-step:last-child { border-bottom: 1px solid var(--line); }
.story-step span { font-size: var(--text-label); font-weight: 500; letter-spacing: 0.16em; color: var(--fg-subtle); padding-top: 0.3rem; }
.story-step h3 { font-size: var(--text-h3); transition: color 0.5s var(--ease); }
.story-step p { margin-top: 0.375rem; color: var(--fg-muted); max-width: 28rem; transition: color 0.5s var(--ease); }
.story-step a { text-underline-offset: 4px; }
/* Pinned mode dims inactive steps with colour (not opacity) so text stays ≥ 4.5:1. */
.story.is-pinned .story-step:not(.is-active) h3,
.story.is-pinned .story-step:not(.is-active) p { color: var(--fg-subtle); }
.story.is-pinned .story-step.is-active span { color: var(--fg); }

.story-media { position: relative; height: min(76svh, 48rem); }
.story-frame { position: absolute; overflow: hidden; background: var(--bg-raised); }
.story-frame-large { top: 0; right: calc(-1 * var(--gutter)); width: 72%; height: 100%; }
.story-frame-small { left: 0; bottom: 8%; width: 44%; height: 56%; z-index: 2; box-shadow: 0 32px 64px oklch(10% 0.01 195 / 0.5); }
.story-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.story-frame img.is-active { opacity: 1; z-index: 2; }
.story-frame img.was-active { opacity: 1; z-index: 1; }
.story.is-pinned .story-frame img.is-active {
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--slat), transparent var(--slat));
  mask-image: linear-gradient(to bottom, #000 var(--slat), transparent var(--slat));
  -webkit-mask-size: 100% 56px;
  mask-size: 100% 56px;
  animation: blinds 1.1s var(--ease) both;
}
.story-frame-small img.is-active { animation-delay: 0.12s; }
@keyframes blinds { from { --slat: 0%; } to { --slat: 100%; } }

/* ---------- FAQ ---------- */
.faq { --faq-cols: minmax(0, 1fr) minmax(0, 2.2fr) 1.5rem; padding: var(--section) var(--gutter) 0; }
.faq-head { display: grid; grid-template-columns: var(--faq-cols); gap: 1rem; align-items: start; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.faq-heading { grid-column: 2 / -1; font-size: var(--text-h2-xl); }
.faq-a { display: grid; grid-template-columns: var(--faq-cols); gap: 1rem; }
.faq-a p { grid-column: 2; max-width: 38rem; padding-bottom: 2rem; color: var(--fg-muted); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: var(--faq-cols);
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-num { font-size: var(--text-label); font-weight: 500; letter-spacing: 0.16em; color: var(--fg-subtle); }
.faq-q { font-size: var(--text-h3); font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; transition: color 0.3s; }
.faq-item summary:hover .faq-q { color: var(--fg-muted); }
.faq-icon { position: relative; width: 14px; height: 14px; justify-self: end; }
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.4s var(--ease);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }

/* ---------- CTA + contact ---------- */
.cta { position: relative; margin-top: var(--section); overflow: hidden; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, oklch(19.5% 0.009 195 / 0.94) 0%, oklch(19.5% 0.009 195 / 0.55) 45%, oklch(19.5% 0.009 195 / 0.7) 100%);
}
.cta-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(0, 34rem);
  gap: 3rem;
  align-items: start;
  padding: clamp(4rem, 7vw, 5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.cta-pitch .label { color: var(--fg-muted); }
.cta-heading { font-size: var(--text-h2); margin: 1rem 0 1.5rem; }
.cta-pitch p:last-child { max-width: 24rem; font-size: var(--text-lead); line-height: 1.55; }
.cta-panel { margin-top: clamp(4rem, 14vw, 12rem); padding: clamp(2rem, 4vw, 3rem); }
.panel-heading { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); text-align: center; }
.panel-sub { margin: 0.75rem 0 2rem; text-align: center; color: var(--fg-muted); font-size: 0.875rem; }

.form { display: flex; flex-direction: column; gap: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field label { font-size: var(--text-label); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--fg);
  font: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 5rem; }
.field select { cursor: pointer; }
.field select option { background: var(--panel); color: var(--fg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 1px 0 0 var(--fg); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field-error { min-height: 1.25rem; font-size: 0.8125rem; color: var(--error); }
.field-error:empty { min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.5rem; text-align: center; }
.form-note { text-align: center; color: var(--fg-muted); font-size: 0.8125rem; }

/* ---------- Footer ---------- */
.footer { padding: clamp(4rem, 8vw, 6rem) var(--gutter) 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 2rem; }
.footer-grid .label { margin-bottom: 1.5rem; }
.footer-grid > :first-child { container-type: inline-size; }
.header-brand, .footer-wordmark a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
.header-brand:hover, .footer-wordmark a:hover { opacity: 0.7; }
/* Sized to its own column (cqi), so the wordmark can never overflow. */
.footer-wordmark { font-size: clamp(2.25rem, 15cqi, 5.5rem); font-weight: 300; line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.footer-text { color: var(--fg-muted); font-size: 1.0625rem; line-height: 1.5; }
.footer-email {
  color: var(--fg);
  font-size: clamp(1.125rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 300;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
  overflow-wrap: break-word;
}
.footer-email:hover { text-decoration-color: var(--fg); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-legal a { color: var(--fg-muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.footer-legal a:hover { color: var(--fg); text-decoration-color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--fg-subtle);
  font-size: 0.8125rem;
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }

.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal { transition-delay: var(--d, 0ms); }

/* Hero: letters rise in on load; text lifts and fades, video deepens as you scroll away */
.wordmark-main.is-split { overflow: hidden; padding-top: 0.06em; margin-top: -0.06em; }
.hero-wordmark .l { display: inline-block; animation: letter-up 1.1s var(--ease) both; animation-delay: calc(0.2s + var(--i) * 0.05s); }
@keyframes letter-up { from { transform: translateY(110%); } to { transform: none; } }
.hero-inner { transform: translate3d(0, calc(var(--hp, 0) * -14vh), 0); opacity: calc(1 - var(--hp, 0) * 1.5); }
.hero-media video { scale: calc(1 + var(--hp, 0) * 0.14); }

/* Headings: word-by-word rise */
.js .reveal.split { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.08em 0.1em 0; margin: 0 -0.08em -0.1em 0; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.split.is-visible .w > span { transform: none; }

/* About photo opens from the sides and settles as it scrolls in */
.about-photo[data-progress] { clip-path: inset(0 calc(max(0, 1 - var(--p, 1) * 1.5) * 16%)); }
.about-photo img[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(calc(1.32 - min(1, var(--p, 1) * 1.5) * 0.16)); }

/* Services: side photos slide in from the edges, main photo grows into place */
.services { overflow-x: clip; }
.services-stage[data-progress] .services-side-prev { translate: calc(max(0, 1 - var(--p, 1) * 1.4) * -14vw) 0; }
.services-stage[data-progress] .services-side-next { translate: calc(max(0, 1 - var(--p, 1) * 1.4) * 14vw) 0; }
.services-stage[data-progress] .services-main { scale: calc(0.86 + min(1, var(--p, 1) * 1.4) * 0.14); }
/* Images are never hidden by scroll state; they only drift (parallax). */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-media[data-parallax] { inset: -12% 0; }
.promise-bg[data-parallax], .cta-bg[data-parallax] { inset: -12% 0; height: 124%; }
.about-photo img[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.16); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  [data-parallax] { transform: none !important; will-change: auto; }
  .hero-wordmark .l, .split .w > span { transform: none !important; }
  .hero-inner { transform: none; opacity: 1; }
  .hero-media video { scale: 1; }
  .about-photo img[data-parallax] { transform: none !important; }
}

/* ---------- Light surface (contact panel, sample request) ---------- */
.surface-light {
  --fg: oklch(22% 0.012 195);
  --fg-muted: oklch(40% 0.012 70);
  --fg-subtle: oklch(45% 0.012 70);
  --line: oklch(22% 0.012 195 / 0.16);
  --line-strong: oklch(22% 0.012 195 / 0.5);
  --error: oklch(48% 0.17 28);
  background: oklch(93.5% 0.014 80);
  color: var(--fg);
}
.surface-light .pill-solid { background: var(--fg); color: oklch(96.5% 0.008 85); }
.surface-light .pill-solid:hover { background: transparent; color: var(--fg); border-color: var(--fg); }
.surface-light .field select option { background: oklch(93.5% 0.014 80); color: var(--fg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .header { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .header-nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0.5rem 0 1rem;
  }
  .header.is-open .header-nav { display: block; }
  .header-links { flex-direction: column; gap: 0; }
  .header-links a { padding: 0; width: 100%; font-size: 1rem; border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; row-gap: 2rem; }
  .about-heading { grid-column: 1 / -1; grid-row: 2; }
  .about-photo { grid-column: 1; grid-row: 3; }
  .about-copy { grid-column: 2; grid-row: 3; align-self: end; }
  .services-stage { grid-template-columns: 1fr minmax(0, 52vw) 1fr; column-gap: 1.5rem; }
  .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .promise-head { grid-template-columns: 1fr; }
  .promise-copy { justify-self: start; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .story-sticky { grid-template-columns: 1fr; }
  .story-media { height: auto; aspect-ratio: 5 / 4; order: -1; margin-bottom: 1rem; }
  .story-frame-large { right: calc(-1 * var(--gutter)); }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-panel { margin-top: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-contact { display: block; }
  .hero-aside { margin-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo, .about-copy { grid-column: 1; }
  .about-copy { grid-row: 4; max-width: none; }
  .facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-stage { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  .services-side { display: none; }
  .services-list { grid-template-columns: 1fr; row-gap: 2rem; }
  .values { grid-template-columns: 1fr; }
  .faq { --faq-cols: 2.5rem minmax(0, 1fr) 1.5rem; }
  .faq-head .label { grid-column: 1 / -1; }
  .faq-heading { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; }
}

/* Footer lockup: same optical alignment as the hero (M side-bearing pulled to the column edge) */
.footer-wordmark a { display: inline-flex; flex-direction: column; gap: clamp(0.5rem, 1.2cqi, 0.875rem); }
.footer-wordmark-main { margin-left: -0.04em; }
.footer-wordmark-sub {
  font-size: clamp(0.6875rem, 0.5rem + 0.8cqi, 0.9375rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  line-height: 1;
  color: var(--fg-muted);
  padding-left: 0.1em;
}
