/* ==========================================================================
   Atelier Next · Brand system
   No gradients, no shadows, no rounded corners. 1px stone dividers.
   ========================================================================== */

:root {
  /* Palette */
  --ivoire: #F7F3EA;
  --pearl: #FBF8F1;
  --noir: #0A0A0A;
  --ink: #1A1A1A;
  --graphite: #3A3A3A;
  --taupe: #8B8378;   /* large text and decoration only: 3.3:1 on ivoire */
  --stone: #C9C2B8;
  --bordeaux: #5C1A2B;

  /* Semantic */
  --bg: var(--ivoire);
  --surface: var(--pearl);
  --text: var(--ink);
  --text-soft: var(--graphite);
  --line: var(--stone);
  --accent: var(--bordeaux);

  /* Type */
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --max: 1440px;
  --gutter: 80px;
  --header-h: 88px;
  --section: clamp(80px, 9vw, 136px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 1.2s;
  --dur-ui: 0.5s;
}

@media (max-width: 1023px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--noir); color: var(--ivoire); }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}
.skip-link {
  position: fixed; top: 16px; left: 16px; z-index: 2000;
  background: var(--noir); color: var(--ivoire);
  padding: 12px 20px; font: 500 11px/1 var(--label); letter-spacing: 0.3em; text-transform: uppercase;
  transform: translateY(-200%); transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */
.label {
  font-family: var(--label);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.label__num {
  display: inline-flex; align-items: center; gap: 16px;
  color: var(--accent); margin-right: 16px;
}
.label__num::after { content: ""; width: 32px; height: 1px; background: var(--line); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.1rem, 6.4vw, 7.25rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--noir);
}
.display--md { font-size: clamp(2.9rem, 5.6vw, 6.25rem); }
.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--noir);
}
.h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  line-height: 1.18;
  color: var(--noir);
}
.display em, .h2 em, .h3 em, .statement em { font-weight: 300; }
.next { font-family: var(--label); font-weight: 400; font-size: 0.82em; letter-spacing: 0.08em; }

/* Split words (built by JS) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; will-change: transform; }
.sw { transition: none; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 20px;
  min-height: 52px;
  padding: 16px 32px;
  border: 1px solid var(--noir);
  color: var(--noir);
  font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color var(--dur-ui) var(--ease-out);
  touch-action: manipulation;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--noir);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.6s var(--ease-out);
}
.btn:hover, .btn:focus-visible { color: var(--ivoire); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn:active { opacity: 0.85; }
.btn__arrow { display: inline-block; transition: transform 0.6s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(6px); }
.btn--small { min-height: 40px; padding: 10px 20px; gap: 12px; }
.btn--full { width: 100%; justify-content: space-between; }
.btn--light { border-color: var(--ivoire); color: var(--ivoire); }
.btn--light::before { background: var(--ivoire); }
.btn--light:hover, .btn--light:focus-visible { color: var(--noir); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
  font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--noir);
  position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor;
  transform: scaleX(0.35); transform-origin: left; transition: transform 0.6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }

.underline { position: relative; }
.underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(1); transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.underline:hover::after { transform: scaleX(0); }

.square-btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--noir);
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui);
}
.square-btn:hover { border-color: var(--noir); background: var(--noir); color: var(--ivoire); }

/* ---------- Logo mark (header, loader, footer) ----------
   SVG built on the coordinates of the original logo file (2000px artboard). */
.mark { display: block; width: 100%; height: auto; overflow: visible; fill: currentColor; }
.mark__atelier { font-family: var(--serif); font-weight: 400; }
.mark__l { font-family: var(--label); font-weight: 300; }
.logo, .loader__mark, .wordmark { display: block; color: var(--noir); }
.logo { width: 84px; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--ivoire);
  animation: loader-failsafe 0.6s ease 4.5s forwards;
}
.loader__mark { width: clamp(180px, 20vw, 280px); }
/* Start hidden before any script runs, so the logo never flashes before its animation */
.js .loader .mark__atelier, .js .loader .mark__l { opacity: 0; }
.js .loader .mark__rule { opacity: 0; }   /* revealed by JS, which then draws it outward */
@keyframes loader-failsafe { to { opacity: 0; visibility: hidden; } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 0.8s var(--ease-out), background-color 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.header.is-scrolled { background: var(--pearl); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-101%); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav { display: flex; gap: clamp(20px, 2.6vw, 44px); }
.nav a {
  position: relative; padding: 8px 0;
  font-family: var(--label); font-weight: 400; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--graphite);
  transition: color var(--dur-ui);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--noir);
  transform: scaleX(0); transform-origin: right; transition: transform 0.6s var(--ease-out);
}
.nav a:hover, .nav a.is-active { color: var(--noir); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__end { display: flex; align-items: center; gap: 28px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--label); font-size: 11px; letter-spacing: 0.2em; color: var(--taupe); }
.lang__btn {
  min-width: 32px; min-height: 40px; padding: 0 4px;
  font-family: var(--label); font-weight: 400; font-size: 11px; letter-spacing: 0.2em; color: var(--graphite);
  opacity: 0.55; transition: opacity var(--dur-ui);
}
.lang__btn[aria-pressed="true"] { opacity: 1; color: var(--noir); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.lang__btn:hover { opacity: 1; }

.burger { display: none; width: 44px; height: 44px; position: relative; }
.burger i {
  position: absolute; left: 10px; right: 10px; height: 1px; background: var(--noir);
  transition: transform 0.6s var(--ease-out);
}
.burger i:nth-of-type(1) { top: 18px; }
.burger i:nth-of-type(2) { top: 26px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--ivoire);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 40px) 0 32px;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.1; color: var(--noir);
}
.menu__nav a span { font: 500 11px/1 var(--label); letter-spacing: 0.3em; color: var(--accent); }
.menu__nav a em { font-style: normal; }
.menu__foot { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Hero ----------
   Full-screen looping video. The veil is the one gradient on the site:
   a legibility layer behind the text, not decoration. */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 48px) 0 clamp(64px, 11vh, 128px);
  background: var(--noir); color: var(--ivoire);
}
.hero__media { position: absolute; inset: 0; margin: 0; }
.hero__video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform-origin: 50% 55%; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.66) 0%, rgba(10, 10, 10, 0.4) 36%, rgba(10, 10, 10, 0) 66%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0) 52%);
}
.hero__content { position: relative; z-index: 1; }
.hero__text { max-width: 660px; }
.hero__meta { margin-bottom: 28px; color: var(--stone); }
.hero .display { font-size: clamp(3rem, 5.4vw, 6.4rem); color: var(--ivoire); }
.hero__sub {
  margin-top: 28px; max-width: 36ch;
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.2rem, 1.5vw, 1.45rem); line-height: 1.5; color: #E9E3D8;
}
.hero__ctas { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.hero .link-arrow { color: var(--ivoire); }
.hero :focus-visible { outline-color: var(--ivoire); }

/* Header sits over the video until the visitor scrolls */
.header:not(.is-scrolled):not(.menu-open) .logo,
.header:not(.is-scrolled):not(.menu-open) .nav a,
.header:not(.is-scrolled):not(.menu-open) .lang,
.header:not(.is-scrolled):not(.menu-open) .lang__btn { color: var(--ivoire); }
.header:not(.is-scrolled):not(.menu-open) .nav a::after { background: var(--ivoire); }
.header:not(.is-scrolled):not(.menu-open) .burger i { background: var(--ivoire); }
.header:not(.is-scrolled):not(.menu-open) .header__apply { border-color: var(--ivoire); color: var(--ivoire); }
.header:not(.is-scrolled):not(.menu-open) .header__apply::before { background: var(--ivoire); }
.header:not(.is-scrolled):not(.menu-open) .header__apply:hover,
.header:not(.is-scrolled):not(.menu-open) .header__apply:focus-visible { color: var(--noir); }
.header .logo, .header .nav a, .header .lang__btn, .header .burger i { transition: color 0.6s var(--ease-out), background-color 0.6s var(--ease-out); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 28px;
  background: var(--pearl);
}
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 48px; padding-right: 48px; flex-shrink: 0; }
.marquee__group span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.9rem, 3.2vw, 3rem); line-height: 1.1; color: var(--noir); white-space: nowrap;
}
.marquee__group i { width: 7px; height: 7px; border: 1px solid var(--taupe); transform: rotate(45deg); flex-shrink: 0; }
html:not(.has-gsap) .marquee__track { animation: marquee 48s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split {
  display: grid; grid-template-columns: 4fr 8fr; gap: 40px; align-items: start;
}
.section-head--split .label { padding-top: 0.9em; }

/* Maison */
.statement {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.1rem, 4.6vw, 4.75rem); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--noir);
  max-width: 21ch;
}
.maison__lead { display: grid; grid-template-columns: 7fr 1fr 4fr; align-items: start; }
.maison__main { grid-column: 1; }
.maison__figure { grid-column: 3; position: sticky; top: calc(var(--header-h) + 48px); margin-top: 8px; }
.maison__frame { overflow: hidden; aspect-ratio: 4 / 5; background: var(--pearl); }
.maison__frame img { width: 100%; height: 116%; object-fit: cover; object-position: 50% 50%; }
.maison__cols {
  margin-top: clamp(40px, 4vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  color: var(--text-soft);
}
.maison__cols p { max-width: 42ch; }
.stats {
  margin-top: clamp(64px, 7vw, 104px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}
.stat { position: relative; padding: 40px 32px; border-left: 1px solid var(--line); text-align: center; }
.stat__soon { display: block; margin-top: 10px; color: var(--taupe); }
.stat__label > span:first-child { display: block; }
.stat:first-child { border-left: 0; }
.stat__num {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.6rem, 6vw, 6.25rem); line-height: 1; color: var(--noir);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__num small { font-size: 0.4em; margin-left: 4px; font-style: italic; }
.stat__label { margin-top: 20px; font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-soft); line-height: 1.8; max-width: 22ch; margin-inline: auto; padding-left: 0.3em; /* offsets trailing letter-spacing so labels sit truly centred */ }

/* Story */
.story { background: var(--pearl); border-block: 1px solid var(--line); }
.story__grid { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: start; }
.story__figure { grid-column: 1; position: sticky; top: calc(var(--header-h) + 48px); }
.story__frame { overflow: hidden; aspect-ratio: 736 / 1104; }
.story__frame { position: relative; }
.story__frame img { width: 100%; height: 100%; object-fit: contain; }
/* Hand-drawn portrait: strokes are drawn by JS as the visitor scrolls, then the ink settles in */
.sketch { display: block; width: 100%; height: 100%; }
.sketch path { fill: var(--noir); stroke: none; }
/* While drawing: a single fine pen line, no fill */
.sketch.is-drawing path { fill: transparent; stroke: var(--noir); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; transition: fill 0.7s var(--ease-out), stroke-opacity 0.7s var(--ease-out); }
/* Finished: the original drawing, pure black lines */
.sketch.is-drawing.is-inked path { fill: var(--noir); stroke-opacity: 0; }
.story__text { grid-column: 3; padding-top: 24px; }
.story__text .h2 { margin-top: 32px; }
.story__text .h2 em { color: var(--accent); }
.story__body { margin-top: 56px; display: grid; gap: 28px; color: var(--text-soft); max-width: 52ch; }
/* Drop cap spans exactly two lines; the third line wraps under it */
.story__body p:first-child::first-letter {
  float: left; font-family: var(--serif); font-weight: 300;
  font-size: 3.62em; line-height: 0.8;
  margin: 0.07em 0.12em 0 -0.02em; color: var(--noir);
}

/* Path */
.path__head { display: grid; grid-template-columns: 5fr 1fr 6fr; align-items: center; margin-bottom: clamp(56px, 6vw, 96px); }
.path__head > div { grid-column: 1; }
.path__head .h2 { margin-top: 32px; }
.path__media { grid-column: 3; justify-self: center; width: min(100%, 480px); aspect-ratio: 4 / 5; overflow: hidden; background: var(--pearl); }
.path__media img { width: 100%; height: 116%; object-fit: cover; object-position: 45% 55%; }
.steps-wrap { --steps-gap: 40px; --steps-col: calc((100% - 4 * var(--steps-gap)) / 5); position: relative; margin-top: 24px; }
/* The line runs from the first marker to the last (column centres) */
.steps__line { position: absolute; top: 0; left: calc(var(--steps-col) / 2); right: calc(var(--steps-col) / 2); height: 1px; background: var(--line); }
.steps__line i { position: absolute; inset: 0; background: var(--noir); transform: scaleX(0); transform-origin: left; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--steps-gap); }
.step { padding-top: 48px; position: relative; text-align: center; }
.step::before {
  content: ""; position: absolute; top: -4px; left: calc(50% - 5px); width: 9px; height: 9px;
  background: var(--ivoire); border: 1px solid var(--noir); transform: rotate(45deg);
}
.step__num { display: block; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 2rem; line-height: 1; color: var(--taupe); }
.step__title { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 1.7vw, 1.8rem); line-height: 1.15; color: var(--noir); }
.inline-apply {
  font: inherit; color: var(--noir);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color var(--dur-ui);
}
.inline-apply:hover { color: var(--accent); }
.step p { margin: 14px auto 0; font-size: 15px; line-height: 1.65; color: var(--text-soft); max-width: 24ch; }

/* Offering */
.offering { background: var(--pearl); border-top: 1px solid var(--line); }
.cards { display: grid; gap: 32px; }
.card {
  --i: 0;
  position: sticky;
  top: calc(var(--header-h) + 32px + var(--i) * 24px);
  display: grid;
  grid-template-columns: 5fr 7fr;
  grid-template-rows: 1fr auto;
  column-gap: clamp(40px, 6vw, 96px);
  min-height: min(76vh, 760px);
  padding: clamp(32px, 4.5vw, 64px);
  background: var(--ivoire);
  border: 1px solid var(--line);
  color: var(--ink);
  transform-origin: 50% 0;
}
.card:nth-child(2) { --i: 1; }
.card:nth-child(3) { --i: 2; }
.card__head { grid-row: 1 / 3; display: flex; flex-direction: column; }
.card__num { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.75rem; line-height: 1; color: var(--taupe); }
.card__name {
  margin-top: 28px;
  font-family: var(--serif); font-weight: 300; font-size: clamp(3rem, 5.4vw, 5.6rem); line-height: 1; letter-spacing: -0.015em; color: var(--noir);
}
.card__tagline { margin-top: 24px; max-width: 24ch; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.3rem, 1.7vw, 1.6rem); line-height: 1.4; color: var(--graphite); }
.card__list { border-top: 1px solid var(--line); }
.card__list li {
  position: relative;
  padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line);
  font-size: 16px; line-height: 1.6; color: var(--text-soft);
}
/* Dash marker sits outside the text flow, so mixed inline content (bold lead-ins) wraps normally */
.card__list li::before { content: ""; position: absolute; left: 0; top: calc(14px + 0.8em); width: 12px; height: 1px; background: var(--noir); }
.card__foot { grid-column: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 40px; }
.card__price { display: flex; flex-direction: column; gap: 8px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 4vw, 4rem); line-height: 1; color: var(--noir); font-variant-numeric: lining-nums; }
.card__price--text > span:first-child { font-style: italic; font-size: 0.82em; }
.card--noir { background: var(--noir); border-color: var(--noir); color: var(--ivoire); }
.card--noir .card__name, .card--noir .card__price { color: var(--ivoire); }
.card--noir .card__tagline { color: var(--stone); }
.card--noir .card__num { color: var(--stone); }
.card--noir .card__list, .card--noir .card__list li { border-color: #2E2E2E; }
.card--noir .card__list li { color: var(--stone); }
.card--noir .card__list li::before { background: var(--ivoire); }
.card__list b { font-weight: inherit; color: inherit; }   /* lead-ins read like the rest of the line */
.card--noir .label { color: var(--stone); }

/* Territory */
.families { border-top: 1px solid var(--line); }
.family {
  position: relative;
  display: grid; grid-template-columns: 4fr 8fr; align-items: center;
  padding-block: clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.family__num { font: 500 11px/1 var(--label); letter-spacing: 0.3em; color: var(--accent); }
.family__name {
  font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 5.4vw, 5.4rem); line-height: 1.05; color: var(--noir);
  transition: transform 0.9s var(--ease-out);
}
.family__rule {
  position: absolute; right: 0; top: 50%; width: 22%; height: 1px; background: var(--noir);
  transform: scaleX(0); transform-origin: right; transition: transform 0.9s var(--ease-out);
}
@media (hover: hover) {
  .family:hover .family__name { transform: translateX(28px); font-style: italic; }
  .family:hover .family__rule { transform: scaleX(1); }
}

/* Testimony */
.territory { padding-bottom: clamp(56px, 6vw, 96px); }
/* Testimony: a dark band so client words stand out between two ivory sections */
.testimony { background: var(--noir); color: var(--ivoire); text-align: center; padding-block: clamp(96px, 10vw, 160px); }
.testimony .label { color: #A39B90; }
.testimony .label__num { color: var(--stone); }
.testimony .label__num::after { background: #3A3A3A; }
.testimony__mark {
  display: block; margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--serif); font-weight: 300; font-size: clamp(5rem, 9vw, 8rem); line-height: 0.6; color: var(--taupe);
}
.testimony > .container > .label { display: inline-flex; }
.quotes { display: grid; margin-top: 8px; justify-items: center; }
.quote {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.quote.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s var(--ease-out) 0.2s, visibility 0s; }
.quote__text {
  max-width: 40ch; margin-inline: auto;
  font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 2.4vw, 2.3rem); line-height: 1.4; color: var(--ivoire);
}

.quote__by { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.quote__name { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ivoire); }
.quotes__nav { margin-top: 48px; display: flex; align-items: center; justify-content: center; gap: 24px; }
.quotes__count { min-width: 72px; text-align: center; }
.testimony .square-btn { border-color: #3A3A3A; color: var(--ivoire); }
.testimony .square-btn:hover { border-color: var(--ivoire); background: var(--ivoire); color: var(--noir); }
.testimony :focus-visible { outline-color: var(--stone); }

/* Contact */
.contact { padding-block: var(--section); background: var(--ivoire); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact__text .display { margin-top: 32px; }
.contact__ctas { margin-top: 56px; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.contact__ctas .label a { color: var(--noir); }
.contact__media { justify-self: center; width: min(100%, 520px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--pearl); }
.contact__media img { width: 100%; height: 116%; object-fit: cover; object-position: 55% 55%; }

/* Footer: small logo and tagline on the left, compact links on the right */
.footer { background: var(--noir); color: var(--stone); padding-top: clamp(64px, 7vw, 104px); }
.footer .label { color: var(--taupe); }
.footer__top { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; padding-bottom: clamp(48px, 6vw, 80px); }
.wordmark { width: 168px; color: var(--ivoire); }
.footer__tagline { margin-top: 32px; font-family: var(--serif); font-weight: 300; font-size: clamp(1.25rem, 1.6vw, 1.55rem); line-height: 1.4; color: var(--ivoire); max-width: 26ch; }
/* Deliberately faint: present for transparency, not for attention */
.footer__disclaimer { margin-top: 20px; max-width: 44ch; font-size: 12px; line-height: 1.6; color: #4A4744; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols > div { display: flex; flex-direction: column; gap: 6px; }
.footer__cols .label { margin-bottom: 8px; color: #A39B90; }
.footer__cols a { font-size: 14px; line-height: 1.7; color: var(--stone); width: fit-content; transition: color var(--dur-ui); overflow-wrap: anywhere; }
.footer__cols a:hover { color: var(--ivoire); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 32px;
  padding-block: 28px 36px;
  border-top: 1px solid #2E2E2E;
  color: #A39B90 !important;
}
.footer__bottom a:hover { color: var(--ivoire); }

/* ---------- Application dialog ---------- */
.apply {
  position: fixed; inset: 0 0 0 auto;
  width: min(600px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  margin: 0; padding: 0; border: 0; border-left: 1px solid var(--line);
  background: var(--pearl); color: var(--ink);
  transform: translateX(100%);
  transition: transform 0.9s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.apply.is-open { transform: none; }
.apply::backdrop { background: rgba(10, 10, 10, 0); transition: background-color 0.9s var(--ease-out); }
.apply.is-open::backdrop { background: rgba(10, 10, 10, 0.45); }
.apply__inner { padding: clamp(28px, 5vw, 64px); padding-top: 96px; min-height: 100%; position: relative; }
.apply__close {
  position: absolute; top: 28px; right: clamp(20px, 4vw, 48px);
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
  font: 500 11px/1 var(--label); letter-spacing: 0.3em; text-transform: uppercase;
}
.apply__close span[aria-hidden] { font-size: 20px; letter-spacing: 0; font-weight: 300; }
.apply .h2 { margin-top: 20px; font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
.apply__intro { margin-top: 20px; color: var(--text-soft); }
.form { margin-top: 40px; display: grid; gap: 28px; }
.field { display: grid; gap: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--stone); border-radius: 0;
  background: transparent; color: var(--noir);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.5;
  -webkit-appearance: none; appearance: none;
  transition: border-color var(--dur-ui);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230A0A0A' stroke-width='1'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
  padding-right: 28px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-bottom-color: var(--graphite); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--noir); }
.field__error { display: none; font-size: 14px; line-height: 1.5; color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--accent); }
.field.is-invalid .field__error { display: block; }
.apply__note { text-align: left; }
.form__error { font-size: 15px; line-height: 1.6; color: var(--accent); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.apply__done { display: grid; gap: 24px; align-content: start; }
.apply__done p:not(.label) { color: var(--text-soft); }
.apply__done .btn { justify-self: start; margin-top: 16px; }
.apply__done:focus { outline: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .nav { display: none; }
  .burger { display: block; }
  /* Vertical timeline: the line runs down the left, from the first marker to the last (bottom set in JS) */
  .steps-wrap { padding-left: 44px; }
  .steps__line { left: 4px; right: auto; top: 14px; bottom: 0; width: 1px; height: auto; }
  .steps__line i { transform: scaleY(0); transform-origin: top; }
  .steps { grid-template-columns: 1fr; row-gap: 48px; }
  .step { text-align: left; padding-top: 0; }
  .step::before { left: -44px; top: 10px; }
  .step__title { margin-top: 16px; }
  .step p { margin-left: 0; max-width: 40ch; font-size: 16px; }
}

@media (max-width: 1023px) {
  .hero { padding-bottom: 56px; }
  /* Narrow screens can't hold the whole scene: glide slowly from one person to the other */
  .hero__video { object-position: 26% 40%; }   /* JS pans it in step with the video on narrow screens */
  .hero__veil { background: linear-gradient(0deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0.12) 78%); }
  .hero__meta { margin-bottom: 20px; }
  .hero__sub { margin-top: 22px; }
  .hero__ctas { margin-top: 32px; }

  .section-head--split { grid-template-columns: 1fr; gap: 24px; }
  .section-head--split .label { padding-top: 0; }
  .maison__lead { grid-template-columns: 1fr; gap: 56px; }
  .maison__figure { grid-column: 1; max-width: 420px; }
  .maison__cols { grid-template-columns: 1fr; gap: 24px; }
  .maison__figure { position: relative; top: 0; }
  /* One stat per row: number on the left, label beside it, thin dividers between */
  .stats { grid-template-columns: 1fr; }
  .stat { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 16px; padding: 22px 0; border-left: 0; text-align: left; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .stat__label { margin-top: 0; max-width: none; margin-inline: 0; padding-left: 0; }

  .story__grid { grid-template-columns: 1fr; gap: 56px; }
  .story__figure { position: relative; top: 0; width: 100%; max-width: 420px; margin-inline: auto; }
  .story__text { grid-column: 1; padding-top: 0; }

  .path__head { grid-template-columns: 1fr; gap: 48px; }
  .path__media { grid-column: 1; }

  .card { grid-template-columns: 1fr; grid-template-rows: auto; min-height: 0; }
  .card__head { grid-row: auto; margin-bottom: 40px; }
  .card__foot { grid-column: 1; }

  .family { grid-template-columns: 64px 1fr; }

  .contact__grid { grid-template-columns: 1fr 38%; column-gap: 20px; row-gap: 0; align-items: end; }
  .contact__text { display: contents; }
  .contact__text > .label { grid-column: 1; grid-row: 1; align-self: start; }
  .contact__text .display { grid-column: 1; grid-row: 2; margin-top: 16px; font-size: clamp(2.1rem, 9vw, 3.6rem); }
  .contact__media { grid-column: 2; grid-row: 1 / 3; width: 100%; align-self: end; }
  .contact__ctas { grid-column: 1 / -1; grid-row: 3; margin-top: 40px; }

  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__apply { display: none; }
  .header__end { gap: 12px; }
  .logo { width: 74px; }
  .stat__label { letter-spacing: 0.2em; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .footer__cols { row-gap: 28px; }
  .wordmark { width: 132px; }
  .footer__tagline { margin-top: 24px; }
  .story__figure { max-width: 240px; }
  .path__media { width: 100%; }
  /* Comfortable tap targets for small inline links */
  .contact__ctas .label a, .footer__bottom a { display: inline-block; padding-block: 12px; margin-block: -12px; }
  .footer__cols a { padding-block: 3px; }
  .card__foot { flex-direction: column; align-items: stretch; }
  .card__foot .btn { width: 100%; justify-content: space-between; }
  .quotes__nav { margin-top: 40px; }
}

/* ---------- Reduced motion ---------- */
@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; }
  .js .loader { display: none; }
  .family:hover .family__name { transform: none; }
}
