/* ============ Mobile / iOS baseline ============ */
html {
  -webkit-text-size-adjust: 100%;     /* prevent iOS bumping font size on rotate */
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;           /* keep anchor targets clear of fixed nav */
  scrollbar-gutter: stable;           /* Windows: reserve the scrollbar so layout doesn't jump */
}
body {
  -webkit-font-smoothing: antialiased;   /* crisper type on retina */
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;   /* better serif rendering on Windows */
  overscroll-behavior-y: none;           /* stop rubber-banding flash */
}
/* iOS - kill the blue/grey flash on every tap of links + buttons */
a, button, [role="button"], input, label, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
/* Removes the 300ms tap delay & makes buttons feel native */
a, button, [role="button"], .proj-gallery__thumb, .hero__dot {
  touch-action: manipulation;
}
img, video { max-width: 100%; height: auto; display: block; }

/* ============ Focus / keyboard ============ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Don't draw focus rings on plain text containers that took tabindex by accident */
[tabindex="-1"]:focus-visible { outline: none; }

/* ============ Windows / Edge - subtle scrollbar in brand palette ============ */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--paper); }
  ::-webkit-scrollbar-thumb {
    background: rgba(46, 48, 39, 0.25);
    border: 3px solid var(--paper);
    border-radius: 8px;
  }
  ::-webkit-scrollbar-thumb:hover { background: rgba(46, 48, 39, 0.45); }
}
/* Firefox */
html { scrollbar-color: rgba(46,48,39,0.35) var(--paper); scrollbar-width: thin; }

/* ============ High-contrast / forced-colors (Windows Contrast Themes) ============ */
@media (forced-colors: active) {
  .btn, .btn--cream, .btn--solid, .cta { border: 1px solid CanvasText; }
  :focus-visible { outline: 2px solid Highlight; }
  .hero__overlay, .footer__video-overlay { display: none; }
  .proj-card, .project-row { border: 1px solid CanvasText; }
}

/* Honour user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__kb-slide { transform: none !important; }
}

/* ============ Tokens ============ */
:root {
  --olive: #2E3027;
  --olive-deep: #22241D;
  --olive-soft: #3a3d31;  --cream: #F4EFE6;
  --cream-deep: #ECE5D6;
  --paper: #FBF8F1;
  --ink: #1A1B16;
  --terracotta: #B8623C;
  --terracotta-soft: #C97A55;
  --muted: #6B6A5E;
  --rule: rgba(46, 48, 39, 0.18);
  --rule-on-dark: rgba(244, 239, 230, 0.22);

  --font-serif: 'Cormorant Garamond', 'Cardo', 'Times New Roman', serif;
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--terracotta); color: var(--cream); }

/* ============ Layout primitives ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
}
.eyebrow--olive { color: var(--olive); opacity: 0.7; }
.eyebrow--cream { color: var(--cream); opacity: 0.85; }

.display {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 400; color: var(--terracotta-soft); }

.lede {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}

.body-l {
  font-size: 17px;
  line-height: 1.65;
  color: #2a2b25;
  text-wrap: pretty;
}

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

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background-color .35s ease, backdrop-filter .35s ease, padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav--on-hero {
  color: var(--cream);
}
.nav--scrolled {
  background: rgba(46, 48, 39, 0.78);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom-color: rgba(244, 239, 230, 0.08);
  padding-top: 14px;
  padding-bottom: 14px;
  color: var(--cream);
}
.nav--light {
  background: rgba(251, 248, 241, 0.92);
  backdrop-filter: saturate(1.1) blur(12px);
  -webkit-backdrop-filter: saturate(1.1) blur(12px);
  border-bottom-color: var(--rule);
  color: var(--olive);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 18px;
}
.nav__logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.nav__logo svg { width: 100%; height: 100%; }
.nav__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__wordmark .top {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.nav__wordmark .bot {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: 0.7;
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.82;
  transition: opacity .2s;
}
.nav__links a:hover { opacity: 1; }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.nav__links .cta {
  border: 1px solid currentColor;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0.92;
}
.nav__links .cta:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); opacity: 1; }
.nav--on-hero .nav__links .cta:hover,
.nav--scrolled .nav__links .cta:hover,
.nav--light .nav__links .cta:hover { color: var(--cream); }

/* ============ Burger + mobile drawer ============ */
.nav__burger {
  display: none;
  background: none;
  border: 0;
  padding: 12px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: inherit;
  position: relative;
  z-index: 60;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 4px auto;
  transition: transform .3s ease, opacity .25s ease;
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  inset: 0;
  background: var(--olive-deep);
  color: var(--cream);
  z-index: 55;
  padding: 100px var(--gutter) 60px;
  padding-top: max(100px, env(safe-area-inset-top) + 80px);
  padding-bottom: max(60px, env(safe-area-inset-bottom) + 32px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.nav__drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear 0s;
}
.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav__drawer-links a {
  font-family: var(--font-serif);
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
  padding: 10px 0;
  line-height: 1.1;
  border-bottom: 1px solid rgba(244,239,230,0.08);
}
.nav__drawer-links a:last-of-type { border-bottom: 0; }
.nav__drawer-cta {
  margin-top: 32px;
  font-size: clamp(20px, 4vw, 28px) !important;
  font-family: var(--font-serif);
  color: var(--terracotta-soft) !important;
  font-style: italic;
  border: 0 !important;
}

/* When drawer's open, force the burger contrast even on light/scrolled nav */
.nav--menu-open .nav__burger { color: var(--cream); }
.nav--menu-open .nav__brand { color: var(--cream); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;             /* iOS small-viewport - no URL-bar jump */
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: var(--cream);
  isolation: isolate;
}
/* Soft dissolve from the hero photograph into the olive section below */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(46, 48, 39, 0) 0%,
    rgba(46, 48, 39, 0.5) 55%,
    var(--olive) 100%);
}
.hero__video, .hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Ken Burns slideshow */
.hero__kb {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--olive-deep);
}
.hero__kb-slide {
  position: absolute;
  inset: 0;
  background-color: var(--olive-deep);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02) translate(0, 0);
  transition: opacity 1.8s cubic-bezier(.4,.0,.2,1),
              transform 9s linear;
  will-change: opacity, transform;
}
.hero__kb-slide.is-active {
  opacity: 1;
  transform: scale(1.10) translate(-1%, -0.7%);
}
/* alternate the pan direction so it doesn't feel mechanical */
.hero__kb-slide:nth-child(2n).is-active {
  transform: scale(1.09) translate(0.9%, 0.5%);
}
.hero__kb-slide:nth-child(3n).is-active {
  transform: scale(1.09) translate(0.5%, -0.9%);
}

/* Grain overlay - adds the "breathing photograph" texture */
.hero__grain {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.85  0 0 0 0.7 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Slideshow dots - removed from layout; keep selectors no-op so any cached refs do nothing */
.hero__dots, .hero__dot { display: none !important; }
  background: rgba(244, 239, 230, 0.25);
  border: 0;
  padding: 8px 0;
  background-clip: content-box;
  cursor: pointer;
  transition: background-color .4s ease;
}
.hero__dot.is-active {
  background-color: var(--cream);
  background-clip: content-box;
}
.hero__caption {
  position: absolute;
  right: var(--gutter);
  bottom: 36px;
  z-index: 2;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.6);
  text-align: right;
  max-width: 340px;
}
.hero__caption .seq {
  display: block;
  margin-bottom: 6px;
  opacity: 0.7;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(34,36,29,0.78) 0%, rgba(34,36,29,0.55) 38%, rgba(34,36,29,0.25) 70%, rgba(34,36,29,0.45) 100%),
    linear-gradient(180deg, rgba(34,36,29,0.45) 0%, rgba(34,36,29,0.15) 30%, rgba(34,36,29,0.45) 100%);
}
.hero__inner {
  position: relative;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 96px;
}
.hero__content {
  max-width: 720px;
  position: relative;
  z-index: 0; /* stacking context so the dark wash sits behind text but above hero overlay/grain */
}
/* Localised dark wash behind the hero text - keeps photography visible
   on the right while making copy legible on bright frames (kitchen, etc) */
.hero__content::before {
  content: "";
  position: absolute;
  inset: -64px -180px -48px -120px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 65% 75% at 30% 55%,
      rgba(20, 22, 16, 0.78) 0%,
      rgba(20, 22, 16, 0.62) 35%,
      rgba(20, 22, 16, 0.32) 65%,
      rgba(20, 22, 16, 0) 92%);
  filter: blur(24px);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--cream);
  opacity: 0.78;
}
.hero__eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--terracotta);
  opacity: 1;
}
.hero__headline {
  margin: 28px 0 28px;
  font-size: clamp(40px, 6.4vw, 88px);
  font-weight: 500;
}
.hero__sub {
  max-width: 560px;
  opacity: 0.88;
  margin-bottom: 44px;
}
.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-radius: 0;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid currentColor;
  background: transparent;
  transition: all .25s ease;
  cursor: pointer;
  color: inherit;
}
.btn:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.btn--solid { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.btn--solid:hover { background: var(--terracotta); border-color: var(--terracotta); }
.btn--cream { background: var(--cream); color: var(--olive); border-color: var(--cream); }
.btn--cream:hover { background: var(--terracotta); border-color: var(--terracotta); color: var(--cream); }
.btn__arrow { display: inline-block; transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  cursor: pointer;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  color: inherit;
}
.btn-ghost:hover { color: var(--terracotta); border-color: var(--terracotta); }

/* Hero corner meta */
.hero__corners {
  position: absolute;
  inset: auto var(--gutter) 36px var(--gutter);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 500;
}
.hero__corners .scroll-hint {
  display: flex; align-items: center; gap: 12px;
}
.hero__corners .scroll-hint .line {
  width: 28px; height: 1px; background: currentColor; opacity: 0.6;
  animation: scrollHint 2.4s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleX(0.6); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 0.9; }
}

/* ============ What We Do ============ */
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section--olive {
  background: var(--olive);
  color: var(--cream);
}
.section--cream {
  background: var(--cream);
}
.section--paper { background: var(--paper); }

.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 8vw, 96px);
}
.section-head--stacked {
  grid-template-columns: 1fr 2fr;
  align-items: end;
  gap: clamp(20px, 3vw, 36px) clamp(24px, 5vw, 80px);
}
.section-head--stacked .section-head__eyebrow {
  grid-column: 1 / -1;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head--stacked .section-head__title {
  max-width: 22ch;
  margin: 0;
  grid-column: 1 / 2;
}
.section-head--stacked .section-head__lede {
  max-width: 640px;
  grid-column: 2 / -1;
  margin: 0 0 0.18em 0;
}
.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.6vw, 64px);
  line-height: 1.05;
  font-weight: 500;
  margin: 14px 0 0;
  letter-spacing: -0.01em;
}
.section-head__lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  opacity: 0.78;
  font-style: italic;
  max-width: 520px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.pillar {
  padding: 56px 36px 56px 0;
  border-right: 1px solid var(--rule-on-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 320px;
}
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar:not(:first-child) { padding-left: 36px; }
.pillar__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  opacity: 0.55;
  letter-spacing: 0.04em;
}
.pillar__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
}
.pillar__body {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.82;
  max-width: 320px;
}
.pillar__list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.6;
}
.pillar__list li::before {
  content: "-";
  margin-right: 10px;
  opacity: 0.6;
}

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 7vw, 120px);
  align-items: center;
}
.about-photo {
  aspect-ratio: 4/5;
  width: 100%;
}
.about-copy h3 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  margin: 18px 0 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.about-copy p + p { margin-top: 18px; }
.about-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.about-meta__item .k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.about-meta__item .v {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
}

/* ============ Placeholder imagery ============ */
.ph {
  position: relative;
  background-color: var(--cream-deep);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(46, 48, 39, 0.06) 0 1px,
      transparent 1px 14px);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  left: 18px; bottom: 16px;
  font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive);
  opacity: 0.55;
  background: rgba(244, 239, 230, 0.65);
  padding: 6px 10px;
  border-radius: 2px;
}
.ph--olive { background-color: var(--olive-soft); }
.ph--olive::after { color: var(--cream); background: rgba(34,36,29,0.5); opacity: 0.7; }
.ph--terracotta { background-color: #c47b56; }
.ph--photo { background-image: none; }
.ph--photo::after { display: none; }

/* ============ Projects Teaser ============ */
.projects-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.proj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
}
.proj-card__media {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.proj-card:first-child .proj-card__media {
  aspect-ratio: 4/5.4;
}
.proj-card__media .ph { width: 100%; height: 100%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.proj-card:hover .proj-card__media .ph { transform: scale(1.03); }
.proj-card__flag {
  position: absolute;
  bottom: 18px; left: 18px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 12px 8px 22px;
  background: rgba(34, 36, 29, 0.82);
  color: var(--cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.proj-card__flag::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.proj-card__flag--active::before {
  background: var(--terracotta);
  box-shadow: 0 0 0 0 rgba(184, 98, 60, 0.6);
  animation: activePulse 2.4s ease-out infinite;
}
.proj-card__flag--completed::before {
  background: var(--cream);
  opacity: 0.85;
}
.proj-card__tag {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 12px;
  background: rgba(34,36,29,0.78);
  color: var(--cream);
  backdrop-filter: blur(6px);
}
.proj-card__title {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.proj-card__loc {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.proj-card__desc {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  font-style: italic;
  opacity: 0.78;
}

/* ============ Contact ============ */
.contact-block {
  text-align: center;
  padding: clamp(60px, 9vw, 120px) 0;
}
.contact-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 14px auto 24px;
  max-width: 16ch;
}
.contact-block .lede { max-width: 540px; margin: 0 auto 56px; opacity: 0.78; }
.contact-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 0 8px;
  border-top: 1px solid var(--rule-on-dark);
  max-width: 360px;
  margin: 0 auto;
}
.contact-social__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--rule-on-dark);
  color: var(--cream);
  text-decoration: none;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.contact-social__btn:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
  transform: translateY(-2px);
}
.contact-social__btn svg {
  width: 22px;
  height: 22px;
}
.contact-block .contact-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--rule-on-dark);
  border-bottom: 1px solid var(--rule-on-dark);
}
.contact-rows__cell {
  padding: 32px 24px;
  text-align: left;
}
.contact-rows__cell + .contact-rows__cell { border-left: 1px solid var(--rule-on-dark); }
.contact-icon {
  width: 22px;
  height: 22px;
  opacity: 0.78;
  display: block;
}
.contact-rows__cell .k {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 10px;
}
.contact-rows__cell .v {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ============ Footer - liquid glass over looping video ============ */
.footer {
  position: relative;
  padding: clamp(120px, 18vh, 220px) var(--gutter) 36px;
  background: var(--olive-deep);
  color: rgba(244, 239, 230, 0.78);
  overflow: hidden;
  isolation: isolate;
}
.footer__video, .footer__video-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.footer__video {
  object-fit: cover;
  filter: brightness(0.55) saturate(0.9);
}
.footer__video-overlay {
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(34,36,29,0.25) 0%, rgba(34,36,29,0.65) 55%, rgba(34,36,29,0.92) 100%),
    linear-gradient(180deg, rgba(34,36,29,0.3) 0%, rgba(34,36,29,0.7) 80%);
}

.liquid-glass {
  background: rgba(255, 255, 255, 0.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
  border: none;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 30px 80px -20px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%, rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}
.liquid-glass > * { position: relative; z-index: 0; }

.footer__card {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 28px;
  padding: clamp(28px, 4vw, 56px);
  color: rgba(244, 239, 230, 0.78);

  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1);
}
.footer__card.in { opacity: 1; transform: none; }

.footer__top {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: 40px;
}
.footer__brand {
  max-width: 420px;
}
.footer__brand-row {
  display: flex; align-items: center; gap: 12px;
  color: var(--cream);
  margin-bottom: 18px;
}
.footer__wordmark {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.01em;
  font-weight: 500;
}
.footer__brand-desc {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.78;
  max-width: 380px;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 28px 36px; }
.footer__col li {
  font-size: 13px;
  letter-spacing: 0.01em;
  opacity: 0.7;
  cursor: pointer;
  transition: color .2s, opacity .2s;
}
.footer__col li:hover { opacity: 1; color: var(--cream); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0;
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 18px;
}
.footer__social .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.55;
}
.footer__social .icons {
  display: flex; align-items: center; gap: 14px;
}
.footer__social a {
  opacity: 0.7;
  transition: opacity .2s, color .2s, transform .2s;
  display: inline-flex;
  color: rgba(244,239,230,0.85);
}
.footer__social a:hover { opacity: 1; color: var(--cream); transform: translateY(-1px); }

/* ============ Projects page ============ */
.page-hero {
  padding: 200px var(--gutter) 80px;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.page-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 18px 0 0;
}
.page-hero__lede {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  font-style: italic;
  opacity: 0.72;
  max-width: 520px;
  padding-bottom: 14px;
}

.project-row {
  padding: clamp(60px, 9vw, 120px) 0;
  border-bottom: 1px solid var(--rule);
}

/* Group header - splits Completed / Active */
.project-group-head {
  padding: clamp(40px, 5vw, 56px) 0 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.project-group-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--rule);
}
.project-group-head__inner .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.project-group-head__count {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
}
.project-group-head__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(184, 98, 60, 0.5);
  animation: activePulse 2.4s ease-out infinite;
}
@keyframes activePulse {
  0%   { box-shadow: 0 0 0 0 rgba(184, 98, 60, 0.55); }
  100% { box-shadow: 0 0 0 10px rgba(184, 98, 60, 0); }
}

/* Active row treatment - small flag overlay on the photo */
.project-row__active-flag,
.project-row__completed-flag {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 8px 12px 8px 22px;
  background: rgba(34, 36, 29, 0.82);
  color: var(--cream);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.project-row__active-flag::before,
.project-row__completed-flag::before {
  content: "";
  position: absolute;
  left: 10px; top: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  transform: translateY(-50%);
}
.project-row__active-flag::before {
  background: var(--terracotta);
  box-shadow: 0 0 0 0 rgba(184, 98, 60, 0.6);
  animation: activePulse 2.4s ease-out infinite;
}
.project-row__completed-flag::before {
  background: var(--cream);
  opacity: 0.85;
}
.project-row--active .project-row__media { position: relative; }
.project-row .project-row__media { position: relative; }
.project-row--active .ph,
.project-row--active .proj-gallery__main {
  /* slight desaturation to read as "not yet finished" */
  filter: saturate(0.85);
}
.project-row__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.project-row:nth-child(even) .project-row__inner {
  grid-template-columns: 1fr 1.2fr;
}
.project-row:nth-child(even) .project-row__media { order: 2; }
.project-row__media .ph {
  aspect-ratio: 4/3;
  width: 100%;
}
.project-row__meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-row__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 7px 12px;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.tag--olive { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.tag--terracotta { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.project-row__title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 4px 0 6px;
}
.project-row__loc {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 500;
}
.project-row__desc {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.5;
  font-weight: 400;
  max-width: 520px;
}

/* Project gallery */
.proj-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.proj-gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-deep);
  transition: background-image .4s ease;
}
.proj-gallery--portrait { max-width: 300px; margin: 0 auto; }
.proj-gallery--portrait .proj-gallery__main { aspect-ratio: 3/4; }
.proj-gallery--portrait .proj-gallery__thumb { aspect-ratio: 3/4; }
.proj-gallery--landscape-sm { max-width: 420px; margin: 0 auto; }
.proj-gallery--landscape-sm .proj-gallery__main { aspect-ratio: 4/3; }
.proj-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 8px;
}
.proj-gallery__thumb {
  aspect-ratio: 4/3;
  border: 0;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-deep);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity .25s ease;
  position: relative;
}
.proj-gallery__thumb:hover { opacity: 0.85; }
.proj-gallery__thumb.is-active {
  opacity: 1;
}
.proj-gallery__thumb.is-active::after {
  content: "";
  position: absolute; inset: 0;
  outline: 1.5px solid var(--terracotta);
  outline-offset: -2px;
}

/* Before/after toggle */
.beforeafter {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
}
.beforeafter .ph { position: absolute; inset: 0; }
.beforeafter .after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--ba-x, 50%));
}
.beforeafter__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-x, 50%);
  width: 2px;
  background: var(--cream);
  pointer-events: none;
}
.beforeafter__handle::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.beforeafter__handle::after {
  content: "↔";
  position: absolute;
  left: 50%; top: 50%;
  color: var(--olive);
  font-size: 18px;
  transform: translate(-50%, -50%);
  font-weight: 700;
}
.beforeafter__labels {
  position: absolute;
  inset: auto 0 16px;
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--cream);
  pointer-events: none;
}
.beforeafter__labels span {
  background: rgba(34,36,29,0.7);
  padding: 6px 10px;
}

/* ============ Sell Your Property ============ */
.sell-page {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--paper);
}
.sell-header {
  padding: 24px var(--gutter);
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sell-header__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.sell-header__brand svg { width: 32px; height: 32px; }
.sell-header__back {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.65;
  cursor: pointer;
}

.sell-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 80px);
}
.sell-aside {
  background: var(--olive);
  color: var(--cream);
  padding: clamp(48px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.sell-aside__ph {
  position: absolute; inset: 0; opacity: 0.18;
}
.sell-aside__content { position: relative; z-index: 1; }
.sell-aside h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.2vw, 76px);
  line-height: 1.02;
  margin: 28px 0 32px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sell-aside p { opacity: 0.82; max-width: 440px; font-size: 17px; line-height: 1.65; }
.sell-aside .signoff {
  font-family: var(--font-serif);
  font-style: italic;
  opacity: 0.78;
  font-size: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-on-dark);
  position: relative;
  z-index: 1;
}
.sell-aside__bullets {
  list-style: none; padding: 0; margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  opacity: 0.85;
}
.sell-aside__bullets li {
  display: flex; gap: 14px; align-items: center;
  letter-spacing: 0.04em;
}
.sell-aside__bullets li::before {
  content: ""; width: 18px; height: 1px; background: var(--terracotta);
  flex: none;
}

.sell-form-wrap {
  background: var(--paper);
  padding: clamp(48px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sell-form {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sell-form h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.sell-form .form-lede {
  font-size: 14px; opacity: 0.7; margin-bottom: 12px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.field label .req { color: var(--terracotta); }
.field input, .field textarea {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-bottom-color: var(--terracotta);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.consent {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.78;
  padding-top: 8px;
}
.consent input { margin-top: 3px; accent-color: var(--terracotta); }
.sell-form .error { color: var(--terracotta); font-size: 12px; margin-top: -8px; }

.sell-success {
  background: var(--cream);
  padding: 64px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.sell-success h3 {
  font-family: var(--font-serif);
  font-size: 36px; font-weight: 500;
  margin: 12px 0 4px;
}
.sell-success p { max-width: 420px; opacity: 0.75; }
.sell-success__mark {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--terracotta);
  display: grid; place-items: center;
  color: var(--cream);
  font-size: 22px;
}

/* ============ Reveals ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1; transform: none;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-block; }
  .section-head, .section-head--stacked { grid-template-columns: 1fr; }
  .section-head--stacked .section-head__title,
  .section-head--stacked .section-head__lede { grid-column: 1 / -1; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--rule-on-dark); padding: 36px 0; }
  .pillar:last-child { border-bottom: 0; }
  .pillar:not(:first-child) { padding-left: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-row__inner, .project-row:nth-child(even) .project-row__inner { grid-template-columns: 1fr; }
  .project-row:nth-child(even) .project-row__media { order: -1; }
  .page-hero__inner { grid-template-columns: 1fr; }
  .footer__inner, .footer__top { grid-template-columns: 1fr; }
  .footer__links { grid-template-columns: 1fr 1fr; }
  .footer__bottom { justify-content: flex-start; }
  .sell-shell { grid-template-columns: 1fr; }
  .contact-block .contact-rows { grid-template-columns: 1fr; }
  .contact-rows__cell + .contact-rows__cell { border-left: 0; border-top: 1px solid var(--rule-on-dark); }
  .about-meta { grid-template-columns: 1fr; }
  .hero__corners { display: none; }
  .field--row { grid-template-columns: 1fr; }
  .legal-body__inner { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* ============ Mobile polish ============ */
@media (max-width: 720px) {
  /* tighter gutters on phones */
  :root { --gutter: 20px; }

  /* gallery thumbs - easier to tap */
  .proj-gallery__thumb { min-height: 48px; }

  /* contact icons - already big, but reduce gap on small screens */
  .contact-social { gap: 16px; padding: 32px 0 4px; }

  /* form footer + footer card safe-area for home-indicator phones */
  .footer { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
  .sell-aside, .sell-form-wrap { padding-left: max(20px, env(safe-area-inset-left));
                                  padding-right: max(20px, env(safe-area-inset-right)); }

  /* hero copy reins in on very small screens */
  .hero__headline { font-size: clamp(40px, 11vw, 64px); }
  .hero__sub { font-size: 17px; line-height: 1.55; }

  /* prevent flag pills from sliding off-screen */
  .proj-card__flag, .project-row__active-flag, .project-row__completed-flag {
    font-size: 9px; padding: 7px 10px 7px 20px;
  }

  /* legal hero shrinks gracefully */
  .legal-hero { padding-top: 130px; padding-bottom: 40px; }
}

/* iOS notch / home-indicator safe areas on the nav */
.nav { padding-left: max(var(--gutter), env(safe-area-inset-left));
       padding-right: max(var(--gutter), env(safe-area-inset-right)); }

/* ============ Legal pages ============ */
.legal-hero {
  padding: 180px var(--gutter) 60px;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.legal-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.legal-hero__crumb {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--olive);
  opacity: 0.6;
  cursor: pointer;
  margin-bottom: 48px;
  display: inline-block;
  transition: opacity .2s ease;
}
.legal-hero__crumb:hover { opacity: 1; color: var(--terracotta); }
.legal-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 16px 0 28px;
  color: var(--olive);
}
.legal-hero__lede {
  font-family: var(--font-serif);
  font-size: clamp(18px, 1.8vw, 22px);
  font-style: italic;
  line-height: 1.55;
  color: var(--olive);
  opacity: 0.78;
  max-width: 640px;
  margin: 0 0 32px;
}
.legal-hero__updated {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--olive);
  opacity: 0.5;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  max-width: 320px;
}

.legal-body {
  background: var(--paper);
  padding: 96px var(--gutter) 120px;
}
.legal-body__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  align-self: start;
}
.legal-toc__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--rule);
}
.legal-toc li a {
  display: block;
  padding: 4px 16px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--olive);
  text-decoration: none;
  opacity: 0.72;
  transition: opacity .2s ease, color .2s ease, border-color .2s ease;
  margin-left: -1px;
  border-left: 1px solid transparent;
}
.legal-toc li a:hover {
  opacity: 1;
  color: var(--terracotta);
  border-left-color: var(--terracotta);
}
.legal-toc__sibling { margin-top: 8px; }

.legal-prose {
  max-width: 680px;
  color: var(--olive);
}
.legal-prose section { margin-bottom: 56px; scroll-margin-top: 100px; }
.legal-prose section:last-of-type { margin-bottom: 32px; }
.legal-prose h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.legal-prose p {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px;
  color: var(--olive);
  opacity: 0.85;
}
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose__footnote {
  margin-top: 56px;
  padding: 28px 32px;
  background: var(--cream);
  border-left: 3px solid var(--terracotta);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.6;
  color: var(--olive);
  opacity: 0.82;
}
