/* ===========================================================
   Modern Lao Homes — www.modernlaohomes.com
   Design System: Embassy Garden Ledger
   Colors: parchment #F7F5F0 · ink #0E0E0E · antique gold #8B6914
   Fonts: Syne (display) · Cormorant (italic) · Plex Mono (labels) · Inter (body)
   No cards. Text on background. Side-anchored. Massive type.
   =========================================================== */

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --paper: #F7F5F0;
  --paper-warm: #F1ECE0;
  --ink: #0E0E0E;
  --ink-soft: #2A2A2A;
  --gold: #8B6914;
  --gold-bright: #B58E2A;
  --rule: rgba(14, 14, 14, 0.16);
  --rule-strong: rgba(14, 14, 14, 0.32);
  --muted: #5C5650;

  --font-display: 'Syne', 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --outer: clamp(1.5rem, 5vw, 5rem);
  --section: clamp(48px, 8vw, 128px);
  --nav-h: 72px;
}

/* ── Reset / base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ── Typography ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 600;
  line-height: 0.94;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-headline { font-size: clamp(40px, 7vw, 96px); }
.h-section {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
}
.body-lead {
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}
.body-prose { max-width: 60ch; }
.body-prose p + p { margin-top: 1.1em; }

/* ── Layout helpers ────────────────────────────────────────── */
/* Section baseline: enforce consistent rhythm on every <section> */
section { padding: clamp(48px, 8vw, 128px) var(--outer); }
/* Parallax frames keep their own padding (full-bleed media) */
section.mlh-parallax-frame { padding: 0; }
.shell { padding-inline: var(--outer); }
.section { padding-block: var(--section); }
.cols-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2.25rem);
}
.col-eyebrow { grid-column: 1 / span 4; }
.col-headline { grid-column: 5 / span 8; }
.col-body { grid-column: 5 / span 7; }
.col-full { grid-column: 1 / -1; }
.col-7 { grid-column: 1 / span 7; }
.col-5 { grid-column: 8 / span 5; }

.rule { height: 1px; background: var(--rule); width: 100%; }
.rule--strong { background: var(--rule-strong); }

/* ── Header / Nav ──────────────────────────────────────────── */
.mlh-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
  padding: 0 var(--outer);
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: padding 200ms ease, background 200ms ease;
}
.mlh-nav.is-scrolled { padding-block: 0; background: rgba(247, 245, 240, 0.97); }
.mlh-nav__brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none;
}
.mlh-logo {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--ink);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(14, 14, 14, 0.08);
}
.mlh-nav__wordmark {
  font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  font-size: clamp(15px, 1.6vw, 18px);
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--ink);
  white-space: nowrap;
}
.mlh-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  list-style: none;
  margin: 0; padding: 0;
}
.mlh-nav__links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
  transition: color 200ms ease;
}
.mlh-nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms ease;
}
.mlh-nav__links a:hover { color: var(--gold); }
.mlh-nav__links a:hover::after { transform: scaleX(1); }

.mlh-nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease;
}
.mlh-nav__cta:hover { color: var(--gold); }

.mlh-nav__burger {
  display: none;
  background: none; border: 0; padding: 8px;
  width: 40px; height: 40px;
}
.mlh-nav__burger span {
  display: block;
  width: 22px; height: 1px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 200ms ease, opacity 200ms ease;
}
.mlh-nav__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mlh-nav__burger.is-open span:nth-child(2) { opacity: 0; }
.mlh-nav__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .mlh-nav__wordmark { font-size: 15px; }
  .mlh-nav__links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.5rem var(--outer) 2rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    /* Hide above viewport: shift up by own height + nav height so bottom edge sits at y=0.
       Previous translateY(-110%) only shifted by 110% of own height; with the menu opened
       at top: var(--nav-h)=88px, the residual ~10% peeked into the visible nav, covering
       the logo's top half and the burger. */
    transform: translateY(calc(-100% - var(--nav-h)));
    visibility: hidden;
    transition: transform 280ms ease, visibility 0s linear 280ms;
  }
  .mlh-nav__links.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 280ms ease, visibility 0s linear 0s;
  }
  .mlh-nav__links li { width: 100%; }
  .mlh-nav__links a { display: block; padding-block: 14px; border-bottom: 1px solid var(--rule); width: 100%; }
  .mlh-nav__cta { display: none; }
  .mlh-nav__burger { display: block; }
}

@media (max-width: 720px) {
  .mlh-nav { padding: 0 var(--outer); }
}

/* ── Parallax video frame ──────────────────────────────────── */
.mlh-parallax-frame {
  position: relative;
  width: 100%;
  min-height: clamp(560px, 92vh, 1080px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.mlh-parallax-frame__media {
  position: absolute;
  inset: -10% -2% -2% -2%;
  width: 104%;
  height: 120%;
  z-index: -2;
}
.mlh-parallax-frame__media video,
.mlh-parallax-frame__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.mlh-parallax-frame::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,14,14,0.45) 0%, rgba(14,14,14,0.65) 50%, rgba(14,14,14,0.85) 100%);
  z-index: -1;
}
.mlh-parallax-frame__content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2.25rem);
  padding: clamp(6rem, 14vw, 12rem) var(--outer) clamp(3rem, 6vw, 5rem);
  min-height: clamp(560px, 92vh, 1080px);
  align-content: end;
}
.mlh-parallax-frame .eyebrow { color: var(--gold-bright); }
.mlh-parallax-frame .h-hero,
.mlh-parallax-frame .h-section { color: var(--paper); }
.mlh-parallax-frame .h-sub { color: rgba(247, 245, 240, 0.84); }

/* Hero CTAs */
.mlh-cta-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
}
.mlh-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 22px;
  border: 1px solid var(--gold-bright);
  color: var(--paper);
  background: transparent;
  transition: background 200ms ease, color 200ms ease;
}
.mlh-btn--primary { background: var(--gold-bright); color: var(--ink); }
.mlh-btn--primary:hover { background: var(--paper); border-color: var(--paper); }
.mlh-btn--ghost:hover { background: var(--gold-bright); color: var(--ink); }

/* On-paper buttons (forms etc) */
.mlh-btn--on-paper {
  border-color: var(--ink);
  color: var(--ink);
}
.mlh-btn--on-paper.mlh-btn--primary { background: var(--ink); color: var(--paper); }
.mlh-btn--on-paper.mlh-btn--primary:hover { background: var(--gold); border-color: var(--gold); }

/* ── Hero pre-content (eyebrow row + line) ─────────────────── */
.hero-eyebrow-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(2rem, 4vw, 4rem);
  border-top: 1px solid rgba(247, 245, 240, 0.32);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ── About / Vision sections ───────────────────────────────── */
.section--paper { background: var(--paper); }
.section--paper-warm { background: var(--paper-warm); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink .h-section,
.section--ink .h-sub { color: var(--paper); }
.section--ink .body-lead,
.section--ink .body-prose { color: rgba(247, 245, 240, 0.78); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2.25rem);
  row-gap: clamp(1rem, 2vw, 1.75rem);
  align-items: start;
}
.about-grid__eyebrow { grid-column: 1 / span 4; padding-top: 0.5rem; }
.about-grid__title { grid-column: 5 / span 8; }
.about-grid__body { grid-column: 5 / span 7; margin-top: clamp(1rem, 2vw, 2rem); }
.about-grid__sub { grid-column: 5 / span 7; margin-top: 0.5rem; }

/* ── Vision + Mission paired columns ───────────────────────── */
.vm-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.vm-pair__col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.vm-pair__col .h-sub { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }

@media (max-width: 760px) {
  .vm-pair { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ── Projects ledger grid (NO cards) ───────────────────────── */
.ledger-section { padding-block: var(--section); background: var(--paper); }
.ledger-head {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2.25rem);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.ledger-head__eyebrow { grid-column: 1 / span 4; padding-top: 0.5rem; }
.ledger-head__title { grid-column: 5 / span 8; }
.ledger-head__body { grid-column: 5 / span 7; margin-top: 1.25rem; }

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(2rem, 4vw, 4rem);
  row-gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.ledger-entry {
  display: grid;
  grid-template-columns: 1fr;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--rule);
}
.ledger-entry__media {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--paper-warm);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.ledger-entry__media picture { display: block; width: 100%; height: 100%; }
.ledger-entry__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 600ms ease;
}
.ledger-entry:hover .ledger-entry__media img { transform: scale(1.02); }
.ledger-entry__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  margin-bottom: 0.6rem;
}
.ledger-entry__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.ledger-entry__meta span { white-space: nowrap; }
.ledger-entry__scope {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}
.ledger-entry__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .ledger-grid { grid-template-columns: 1fr; }
}

/* Past residential — minimal listing */
.past-residential {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--rule);
}
.past-residential h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.past-residential__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem 2rem;
}
.past-residential__list li {
  list-style: none;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.past-residential__list ul { padding: 0; margin: 0; }
.past-residential__name { font-family: var(--font-serif); font-size: 19px; font-style: italic; }
.past-residential__loc { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

/* Ongoing projects — smaller treatment */
.ongoing-section { padding-block: var(--section); background: var(--paper-warm); }
.ongoing-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.ongoing-entry { grid-column: 5 / span 8; padding-block: 2rem; border-top: 1px solid var(--rule); }
.ongoing-entry__media {
  width: 100%; aspect-ratio: 16/9;
  background: var(--paper);
  border: 1px solid var(--rule);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
.ongoing-entry__name { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 0.5rem; }
.ongoing-entry__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.ongoing-entry__note { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* ── Slider (ongoing project gallery) ──────────────────────── */
.mlh-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.mlh-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.mlh-slider__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 600ms ease-in-out;
  pointer-events: none;
}
.mlh-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}
.mlh-slider__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.mlh-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Caption legibility gradient — sits between image and caption */
.mlh-slider__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 14, 14, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}
.mlh-slider__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper);
  z-index: 2;
}
/* Prev/Next chevrons — editorial, no rounded pills */
.mlh-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(14, 14, 14, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(247, 245, 240, 0.4);
  color: var(--paper);
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1;
  padding: 0.6rem 0.9rem;
  border-radius: 0;
  cursor: pointer;
  transition: opacity 200ms ease, background 200ms ease, border-color 200ms ease;
  opacity: 0;
}
.mlh-slider:hover .mlh-slider__nav,
.mlh-slider:focus-within .mlh-slider__nav { opacity: 1; }
.mlh-slider__nav:hover {
  background: rgba(14, 14, 14, 0.55);
  border-color: var(--gold-bright);
}
.mlh-slider__nav:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 2px;
  opacity: 1;
}
.mlh-slider__nav--prev { left: 1rem; }
.mlh-slider__nav--next { right: 1rem; }
/* Indicator underlines — hairline, gold on active */
.mlh-slider__indicators {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.mlh-slider__indicator {
  width: 24px;
  height: 2px;
  background: rgba(247, 245, 240, 0.4);
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  transition: background 200ms ease;
}
.mlh-slider__indicator.is-active { background: var(--gold-bright); }
.mlh-slider__indicator:focus-visible {
  outline: 1px solid var(--gold-bright);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .mlh-slider { aspect-ratio: 4 / 3; }
  .mlh-slider__nav { opacity: 1; }
  .mlh-slider__nav--prev { left: 0.6rem; }
  .mlh-slider__nav--next { right: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mlh-slider__slide { transition: none; }
}

/* ── Process ledger (8 steps) ──────────────────────────────── */
.process-section { padding-block: var(--section); background: var(--paper); }
.process-list {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule-strong);
}
.process-step {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  align-items: start;
}
.process-step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold);
  padding-top: 0.6rem;
}
.process-step__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.process-step__label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 0.85rem;
}
.process-step__body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 64ch;
}

@media (max-width: 600px) {
  .process-step { grid-template-columns: 1fr; }
  .process-step__num { padding-top: 0; margin-bottom: 0.5rem; }
}

/* ── Testimonial (full-bleed, above Selected Projects) ──────── */
.mlh-testimonial-full {
  position: relative;
  width: 100%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(247, 245, 240, 0.12);
  border-bottom: 1px solid rgba(247, 245, 240, 0.12);
  padding: 0;
}
.mlh-testimonial-full__frame {
  position: relative;
  width: 100%;
  background: #000;
  aspect-ratio: 16/9;
  max-height: 78vh;
  overflow: hidden;
}
.mlh-testimonial-full__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  cursor: pointer;
}
.mlh-testimonial-full__copy {
  padding: clamp(2rem, 4vw, 4rem) var(--outer);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: left;
}
.mlh-testimonial-full__copy .lp-testimonial-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0;
}
.mlh-testimonial-full__copy .lp-testimonial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  color: var(--paper);
  margin: 0;
  max-width: 80ch;
  text-wrap: balance;
}
.mlh-testimonial-full__copy .lp-testimonial-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(247, 245, 240, 0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-top: 1px solid rgba(247, 245, 240, 0.14);
  padding-top: 1rem;
  max-width: 80ch;
}

@media (max-width: 720px) {
  .mlh-testimonial-full__frame { aspect-ratio: 4/3; max-height: none; }
  .mlh-testimonial-full__copy { padding: 1.6rem var(--outer); gap: 1rem; }
  .mlh-testimonial-full__copy .lp-testimonial-quote { max-width: none; }
}

/* ── Application form (editorial rebuild) ─────────────────── */
.apply-section {
  padding: clamp(48px, 8vw, 128px) var(--outer);
  background: var(--paper);
  border-top: 1px solid var(--rule);
}
.apply-mast { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 4rem); }
.apply-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.apply-h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.apply-h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.apply-lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 1.4rem 0 0;
  max-width: 50ch;
}

.apply-form { max-width: 70rem; }
.apply-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.4rem, 2.4vw, 2rem) clamp(1rem, 2vw, 1.6rem);
}
.field-group { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.field-group.field-half { grid-column: span 6; }
.field-group.field-full { grid-column: 1 / -1; }
.field-group label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.field-group label .req { color: var(--gold); margin-left: 0.2em; }
.field-group input,
.field-group select,
.field-group textarea {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.4;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.85rem 0;
  transition: border-color 200ms ease;
  min-height: 48px;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}
.field-group select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 28px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 22px, calc(100% - 8px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus { border-bottom-color: var(--gold); }
.field-group textarea { min-height: 140px; resize: vertical; padding-top: 0.75rem; }
.field-group input::placeholder,
.field-group textarea::placeholder { color: var(--muted); opacity: 0.7; }

.apply-submit {
  margin-top: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 1.15rem 2.2rem;
  cursor: pointer;
  transition: background-color 240ms ease, color 240ms ease, border-color 240ms ease;
  align-self: flex-start;
  min-height: 56px;
  border-radius: 0;
}
.apply-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.apply-btn:hover .apply-btn__icon { transform: translateX(4px); }
.apply-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.apply-btn[disabled] { opacity: 0.6; cursor: progress; }
.apply-btn__icon { transition: transform 240ms ease; }

.apply-fallback-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
.apply-fallback-note a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: color 200ms ease;
}
.apply-fallback-note a:hover { color: var(--gold); }

.apply-status {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  min-height: 1.2em;
}
.apply-status[data-state="error"] { color: #C84B4B; }

@media (max-width: 720px) {
  .apply-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .field-group.field-half,
  .field-group.field-full { grid-column: 1 / -1; }
  .apply-h2 { font-size: clamp(32px, 9vw, 48px); }
}

/* ── Contact section ───────────────────────────────────────── */
.contact-section { padding-block: var(--section); background: var(--ink); color: var(--paper); }
.contact-section .h-section,
.contact-section .h-sub { color: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 2vw, 2.25rem);
}
.contact-grid__eyebrow { grid-column: 1 / span 4; color: var(--gold-bright); padding-top: 0.5rem; }
.contact-grid__title { grid-column: 5 / span 8; margin-bottom: 2rem; }
.contact-blocks {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(247,245,240,0.18);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}
.contact-block__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.6rem;
  display: block;
}
.contact-block a {
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid rgba(212,175,55,0.36);
  padding-bottom: 1px;
  font-family: var(--font-serif);
  font-size: 20px;
  transition: border-color 200ms ease;
}
.contact-block a:hover { border-color: var(--gold-bright); }
.contact-block__detail { color: rgba(247,245,240,0.78); font-size: 15px; line-height: 1.55; margin-top: 4px; }

/* ── Reveal motion ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}
/* Mobile: skip the fade-up dance entirely. On slow phones the IntersectionObserver
   timing + 700ms transition leaves chunks of the page invisible during fast scroll.
   Show content immediately at small viewports. (2026-05-10 fix — Sam mobile bug #4) */
@media (max-width: 720px) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Small responsive tightening ───────────────────────────── */
@media (max-width: 760px) {
  .col-eyebrow, .col-headline, .col-body, .col-7, .col-5,
  .about-grid__eyebrow, .about-grid__title, .about-grid__body, .about-grid__sub,
  .ledger-head__eyebrow, .ledger-head__title, .ledger-head__body,
  .ongoing-entry, .form-head__eyebrow, .form-head__title, .form-head__intro,
  .contact-grid__eyebrow, .contact-grid__title, .contact-blocks {
    grid-column: 1 / -1;
  }
  .about-grid__eyebrow, .ledger-head__eyebrow,
  .form-head__eyebrow, .contact-grid__eyebrow {
    margin-bottom: 1rem;
  }
}

/* ── Mobile (≤720px) — collapse grids, reduce hero, tighten clamps ───── */
@media (max-width: 720px) {
  .h-hero, .hero-headline { font-size: clamp(36px, 12vw, 56px); }
  .h-section { font-size: clamp(28px, 8vw, 44px); }
  .h-sub { font-size: clamp(16px, 4.5vw, 20px); }
  .body-lead { font-size: clamp(15px, 4vw, 16px); }

  /* Collapse multi-column grids to 1-column */
  .about-grid,
  .ledger-head,
  .ongoing-grid,
  .form-head,
  .mlh-form,
  .contact-grid { grid-template-columns: 1fr; }
  .ledger-grid { grid-template-columns: 1fr; }
  .vm-pair { grid-template-columns: 1fr; gap: 2rem; }
  .mlh-form__inner { grid-template-columns: 1fr; grid-column: 1 / -1; }

  /* Span every grid child full width */
  .about-grid > *, .ledger-head > *, .ongoing-grid > *,
  .form-head > *, .contact-grid > *, .contact-blocks { grid-column: 1 / -1; }

  /* Reduce section padding on small viewports */
  section { padding: clamp(40px, 10vw, 72px) var(--outer); }

  /* Hero parallax — pull content up so headline isn't pushed off-screen */
  .mlh-parallax-frame__content { padding-top: clamp(5rem, 18vw, 7rem); }
  .hero-eyebrow-row { flex-wrap: wrap; gap: 0.5rem 1rem; }
}

/* ── Footer overrides for paper context (uses portal footer.js) */
.mlh-footer-canonical {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid rgba(139, 105, 20, 0.36);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--outer);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mlh-footer-canonical__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 3vw, 3rem);
  align-items: start;
}
.mlh-footer-canonical__col {
  display: flex; flex-direction: column; gap: 0.5rem; min-width: 0;
}
.mlh-footer-canonical__col > * { overflow-wrap: anywhere; }
.mlh-footer-canonical__label { color: var(--gold-bright); opacity: 0.85; margin-bottom: 0.35rem; font-size: 10px; }
.mlh-footer-canonical__line { color: var(--paper); opacity: 0.85; display: block; }
.mlh-footer-canonical__strong { color: var(--paper); opacity: 1; display: block; }
.mlh-footer-canonical__link {
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 142, 42, 0.36);
  padding-bottom: 1px;
  transition: opacity 160ms ease, border-color 160ms ease;
  display: inline-block;
  word-break: break-word;
}
.mlh-footer-canonical__link:hover,
.mlh-footer-canonical__link:focus {
  opacity: 0.85;
  border-color: var(--gold-bright);
  outline: none;
}
.mlh-footer-canonical .icon { display: none; } /* sprite optional; clean in absence */

@media (max-width: 959px) {
  .mlh-footer-canonical__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
@media (max-width: 599px) {
  .mlh-footer-canonical__row { grid-template-columns: 1fr; gap: 2rem; }
}
@media print {
  .mlh-footer-canonical, .mlh-nav, .mlh-parallax-frame__media { display: none; }
}

/* ────────────────────────────────────────────────────────────────────
   LAUNCH HARDENING — kill any horizontal overflow on mobile (2026-05-10)
   Diagnosis (puppeteer @ 393w iPhone):
     - .ledger-entry / picture / img      = 515px wide  (122px overflow)
     - .hero-eyebrow-row / .mlh-cta-row   = 446px wide  (53px overflow)
     - .mlh-parallax-frame__media + video = 409px wide  (16px overflow, BY DESIGN — see below)
     - .h-sub                              = 398px wide  (5px overflow)
   ──────────────────────────────────────────────────────────────────── */

/* 1. Page-level overflow guard */
html, body { overflow-x: hidden; max-width: 100vw; }

/* 2. All replaced content respects parent width */
img, picture, video { max-width: 100%; height: auto; display: block; }
picture { width: 100%; }

/* 3. Defensive: every block-level container respects viewport */
section, article, footer, header, nav, main, aside { max-width: 100%; }

/* 4. Word-break on text containers (long URLs / unbroken strings) */
.h-sub, .ledger-entry__name, .ledger-entry__desc,
.ledger-entry__scope, .body-lead { overflow-wrap: anywhere; }

/* 5. ROOT CAUSE FIX: 12-col grid tracks with `1fr` have implicit min:auto,
      which prevents them from shrinking below their content. On mobile
      this makes the grid wider than its container. Force minmax(0, 1fr)
      on all 12-col grids so children can shrink and grid-column 1/-1
      spans only the actual container width. */
.mlh-parallax-frame__content,
.about-grid,
.section--ink .about-grid,
.ledger-head,
.contact-grid,
.ongoing-grid,
.form-head,
.mlh-form,
.mlh-form__inner { grid-template-columns: repeat(12, minmax(0, 1fr)); }

/* 6. Ledger grid was rendering ARTICLE.ledger-entry at 100vw because of an
      implicit `width: 100%` interpreting against `body` rather than the
      .ledger-grid parent. Force ledger entries to obey their parent track. */
.ledger-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ledger-entry { min-width: 0; max-width: 100%; width: auto; }
.ledger-entry > *,
.ledger-entry__media,
.ledger-entry__media picture,
.ledger-entry__media img { max-width: 100%; min-width: 0; }

/* 7. Mobile final-word: if anything still overflows, force it ≤ viewport.
      Use 100% (parent-relative) instead of 100vw — 100vw escapes the parent
      and is what was making ledger-entry render full-viewport ignoring the
      24px section padding. */
@media (max-width: 720px) {
  /* Whitelist: positioned overlays + nav drawer that intentionally exceed */
  .mlh-parallax-frame__media,
  .mlh-parallax-frame__media video,
  .mlh-parallax-frame__media img,
  .mlh-nav__links,
  .mlh-nav { max-width: none; }

  /* Single-column ledger on mobile (already in the @720 block but reinforce) */
  .ledger-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger-entry,
  .ledger-entry__media,
  .ledger-entry__name,
  .ledger-entry__meta,
  .ledger-entry__scope,
  .ledger-entry__desc { max-width: 100%; width: 100%; min-width: 0; box-sizing: border-box; }

  /* Hero rows wrap rather than push width */
  .hero-eyebrow-row,
  .mlh-cta-row { flex-wrap: wrap; max-width: 100%; min-width: 0; }

  /* Hero meta row span items don't push past the row */
  .hero-eyebrow-row > *,
  .mlh-cta-row > * { min-width: 0; max-width: 100%; }

  /* Hero h-sub (paragraph) shouldn't push viewport */
  .h-sub { max-width: 100%; min-width: 0; }

  /* Ledger meta spans default to white-space:nowrap, but on mobile some
     descriptions ("Private residence — modern minimalist (architect…)")
     are too long for the 345px column. Allow wrap on mobile only. */
  .ledger-entry__meta span { white-space: normal; overflow-wrap: anywhere; }
}
