/* Dar & Stay partner pack — web presentation
   Editorial light luxury: sand ivory pages, deep umber chapters, one arch motif (hero reveal + portraits). */

@font-face { font-family: "Playfair Display"; src: url("assets/fonts/Playfair-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/Playfair-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("assets/fonts/DMMono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ivory: #F5EFE6;
  --white: #FBF8F4;
  --mid: #EDE6D9;
  --border: #DDD5C8;
  --ink: #1C1C1A;
  --muted: #6B5F54;
  --umber: #2E1F14;
  --umber-deep: #23170E;
  --amber: #D4854A;
  --amber-ink: #9A5222;
  --gold: #C9A96E;
  --sage: #8A9E8C;
  --on-dark: #F5EFE6;
  --on-dark-muted: #CDBFAE;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "Courier New", monospace;

  --text-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --text-lede: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem);
  --text-h2: clamp(2.125rem, 1.3rem + 3.6vw, 4.5rem);
  --text-h1: clamp(2.25rem, 1rem + 7vw, 7rem);
  --text-statement: clamp(1.625rem, 1.1rem + 2.4vw, 3.25rem);

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1240px;
  --section: clamp(5.5rem, 3.5rem + 8vw, 11rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --rail: 1px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; border-radius: 2px; }
.tech :focus-visible, .vision :focus-visible, .invite :focus-visible, .hero :focus-visible, .film :focus-visible { outline-color: var(--gold); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Type ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 1.5rem;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.04;
  letter-spacing: -0.015em;
  max-width: 16ch;
  text-wrap: balance;
}
.h2-wide { max-width: 20ch; }
.lede { font-size: var(--text-lede); line-height: 1.6; color: var(--muted); max-width: 36rem; text-wrap: pretty; }
.statement {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-statement);
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: balance;
}
.statement-sm { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); color: var(--muted); margin-top: 2rem; }
.footnote { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); max-width: 44rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.6rem;
  font: 500 0.9375rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--amber); color: #1F140C; }
.btn-solid:hover { background: #E0975F; }
.btn-ghost { border: 1px solid rgba(245, 239, 230, 0.55); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(245, 239, 230, 0.12); border-color: var(--on-dark); }

/* ---------- Top bar (sits over the hero) ---------- */
.topbar {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
}
.topbar-mark { display: block; width: clamp(78px, 4.5rem + 2vw, 112px); }
.topbar-mark img { width: 100%; height: auto; }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(35, 23, 14, 0.45); border: 1px solid rgba(245, 239, 230, 0.25); }
.lang a {
  font: 400 0.75rem/1 var(--font-mono); letter-spacing: 0.12em;
  color: var(--on-dark); text-decoration: none;
  min-width: 44px; min-height: 36px; display: grid; place-items: center; border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang a[aria-current="true"] { background: var(--on-dark); color: var(--umber); }
.lang a:not([aria-current="true"]):hover { background: rgba(245, 239, 230, 0.15); }

/* ---------- 1. Hero: the arch opens ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--umber-deep);
  color: var(--on-dark);
  isolation: isolate;
}
.hero-media, .invite-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media picture, .invite-media picture { height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
@media (orientation: portrait) and (max-width: 900px) { .hero-media img { object-position: 30% 50%; } }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 19, 11, 0.7) 0%, rgba(30, 19, 11, 0) 26%),
    linear-gradient(0deg, rgba(30, 19, 11, 0.95) 0%, rgba(30, 19, 11, 0.78) 42%, rgba(30, 19, 11, 0) 78%);
}
.hero-copy { padding-block: 7rem clamp(3rem, 2rem + 4vw, 6rem); }
.hero .label { color: var(--gold); text-shadow: 0 1px 14px rgba(20, 12, 6, 0.85); }
@media (orientation: portrait) and (max-width: 900px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(30, 19, 11, 0.7) 0%, rgba(30, 19, 11, 0) 22%),
      linear-gradient(0deg, rgba(30, 19, 11, 0.96) 0%, rgba(30, 19, 11, 0.82) 45%, rgba(30, 19, 11, 0.5) 62%, rgba(30, 19, 11, 0) 82%);
  }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 11ch;
  text-wrap: balance;
}
.hero-sub { margin-top: 1.5rem; max-width: 34rem; font-size: var(--text-lede); line-height: 1.55; color: rgba(245, 239, 230, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }

/* wide screens: the moon keeps the left half, the words take the right */
@media (min-width: 1024px) and (orientation: landscape) {
  .hero { align-items: center; }
  .hero-copy { padding-block: 8rem 5rem; padding-left: min(48%, 600px); }
  .hero-title { font-size: clamp(3.5rem, 1rem + 4.2vw, 5.5rem); max-width: 12ch; }
  .hero-media img { object-position: 30% 50%; }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(30, 19, 11, 0.6) 0%, rgba(30, 19, 11, 0) 22%),
      linear-gradient(270deg, rgba(30, 19, 11, 0.94) 0%, rgba(30, 19, 11, 0.86) 38%, rgba(30, 19, 11, 0.2) 62%, rgba(30, 19, 11, 0) 75%),
      linear-gradient(0deg, rgba(30, 19, 11, 0.5) 0%, rgba(30, 19, 11, 0) 30%);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media { animation: arch-open 1.9s var(--ease) 0.15s both; }
  .hero-media img { animation: settle 2.6s var(--ease) both; }
  .hero-copy > * { animation: rise 1.1s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 1.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 1.2s; }
  .hero-copy > :nth-child(3) { animation-delay: 1.3s; }
  .hero-copy > :nth-child(4) { animation-delay: 1.45s; }
    .topbar { animation: fade 1s ease 1.4s both; }
}
@keyframes arch-open {
  from { clip-path: inset(16% 24% 0 24% round 60vw 60vw 0 0); }
  to { clip-path: inset(0 0 0 0 round 0 0 0 0); }
}
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Film ---------- */
.film { background: var(--umber-deep); padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.film-video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }

/* ---------- 2. Who we are ---------- */
.who { padding-block: var(--section) calc(var(--section) * 0.8); }
.who:focus { outline: none; }
.who-head { display: grid; gap: 2rem; }
.stats {
  margin-top: clamp(3.5rem, 2rem + 5vw, 7rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 3vw, 3rem);
}
.stat {
  display: flex; flex-direction: column-reverse; justify-content: flex-end;
  border-top: 1px solid var(--border);
  padding-block: 1.25rem 2.25rem;
}
.stat dd { display: flex; align-items: baseline; gap: 0.35rem; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 5vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
}
.stat-unit { font-family: var(--font-display); font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem); color: var(--muted); white-space: nowrap; }
.stat dt { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.who-foot { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 2rem + 4vw, 6rem); }

/* ---------- 3. Homes: cinematic gallery ---------- */
.homes { background: var(--white); padding-top: var(--section); padding-bottom: clamp(4rem, 3rem + 4vw, 8rem); }
.homes-head { display: grid; gap: 2rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem); }

/* default (phones, tablets, browsers without scroll timelines): swipeable strip */
.gallery-track {
  display: flex; gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter);
  padding-bottom: 8px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; width: min(84vw, 560px); scroll-snap-align: start; }
.slide picture { overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 5; background: var(--mid); }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  margin-top: 0.85rem;
  font: 400 0.75rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 1.25rem; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--ink); border: 1px solid var(--border); cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.round-btn:hover { background: var(--mid); border-color: var(--muted); }
.round-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 720px) {
  .slide { width: min(64vw, 760px); }
  .slide picture { aspect-ratio: 3 / 2; }
}

/* desktop: the section pins and the photos travel sideways with the scroll (CSS scroll timeline, no JS) */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .gallery { height: 470vh; view-timeline: --gallery block; }
    .gallery-stage {
      position: sticky; top: 0; height: 100vh;
      display: flex; flex-direction: column; justify-content: center;
      overflow: hidden;
    }
    .gallery-track {
      overflow: visible; width: max-content; scroll-snap-type: none;
      gap: 2.5vw; padding-inline: max(var(--gutter), (100vw - var(--max)) / 2);
      animation: travel linear both;
      animation-timeline: --gallery;
      animation-range: contain 0% contain 100%;
    }
    .slide { width: auto; }
    .slide picture { height: 74vh; width: auto; aspect-ratio: 3 / 2; }
    .gallery-nav { display: none !important; }
    @keyframes travel { to { transform: translateX(calc(-100% + 100vw)); } }
  }
}

/* ---------- 4. Method ---------- */
.method { padding-block: var(--section); }
.method-grid { display: grid; gap: 3.5rem; }
.steps { counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 1.4rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--border); }
.step {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.75rem 4.5rem;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -0.1rem;
  width: 2.8rem; height: 2.8rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber); border: 1px solid var(--amber);
  font: 400 0.75rem/1 var(--font-mono); letter-spacing: 0.06em; color: #1F140C;
  transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease;
}
/* with JS, each step lights up as it is reached; without JS they are all lit */
.js .step:not(.is-on)::before { background: var(--ivory); border-color: var(--border); color: var(--muted); }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.2; margin-bottom: 0.5rem; }
.step p { color: var(--muted); max-width: 32rem; }

/* ---------- 5–7. The chain: values → technology → vision ---------- */
.chain { position: relative; }
.values { padding-top: var(--section); padding-bottom: calc(var(--section) * 1.2); background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory) calc(100% - var(--section) * 1.15), var(--umber) 100%); }
.values-list { display: grid; gap: 2.25rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.value h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: 0.6rem; }
.value .icon, .brands .icon { margin-bottom: 1.25rem; }
.value p { color: var(--muted); max-width: 30rem; }

.quotes { display: grid; gap: 1.25rem; margin-top: clamp(4rem, 3rem + 4vw, 7rem); }
.quote {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.75rem;
}
.quote blockquote { position: relative; padding-top: 2.25rem; }
.quote blockquote::before {
  content: "\201C"; position: absolute; top: -0.6rem; left: -0.15rem;
  font: italic 400 4.5rem/1 var(--font-display); color: var(--gold);
}
.quote p { font-family: var(--font-display); font-style: italic; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.6; }
.quote figcaption { font: 400 0.75rem/1.5 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber-ink); }

.tech, .vision { background: var(--umber); color: var(--on-dark); }
.tech { padding-top: clamp(2rem, 1rem + 3vw, 4rem); padding-bottom: calc(var(--section) * 0.75); }
.tech .label, .vision .label { color: var(--gold); }
.bridge { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--on-dark-muted); margin-bottom: 2.5rem; max-width: 22ch; }
.lede-dark { color: var(--on-dark-muted); margin-top: 2rem; }
/* the four systems: a chain of nodes that come online one after another */
.systems { margin-top: clamp(2.5rem, 2rem + 2.5vw, 4rem); }
.system {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: clamp(1rem, 0.8rem + 1vw, 1.75rem); align-content: start;
  padding-block: 1.5rem;
}
.system-icon {
  grid-row: span 2; position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center;
  border: 1px solid rgba(201, 169, 110, 0.22);
  background: var(--umber);
}
.system-icon::before { /* lit frame, faded in with opacity only */
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid var(--gold); background: rgba(201, 169, 110, 0.08);
  box-shadow: 0 8px 28px rgba(201, 169, 110, 0.12);
  transition: opacity 0.9s ease;
}
.system:not(:last-child)::after { /* the gold thread to the next system */
  content: ""; position: absolute; left: 28px; width: 1px;
  top: calc(1.5rem + 56px); bottom: -1.5rem;
  background: linear-gradient(180deg, var(--gold), rgba(201, 169, 110, 0.35));
  transform-origin: top;
  transition: transform 1.1s var(--ease) 0.35s;
}
.system h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.375rem, 1.15rem + 0.9vw, 1.875rem); line-height: 1.2; margin: 0.3rem 0 0.45rem; }
.system p { color: var(--on-dark-muted); max-width: 30rem; }
.system h3, .system p { transition: opacity 0.9s ease, transform 1s var(--ease); }
.js .system:not(.is-on) .system-icon::before { opacity: 0; }
.js .system:not(.is-on)::after { transform: scaleY(0); }
.js .system:not(.is-on) h3, .js .system:not(.is-on) p { opacity: 0.28; transform: translateY(8px); }

.tech-frame {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem); line-height: 1.3;
  color: var(--gold); max-width: 26ch; margin-top: 2.5rem;
}
/* abstract panel beside the systems (wide screens) */
.tech-motif { display: none; }
.tech-motif svg { width: 100%; max-width: 290px; height: auto; overflow: visible; }
.tech-motif path, .tech-motif rect, .tech-motif circle { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; }
.motif-arch { stroke-dasharray: 1 1; transition: stroke-dashoffset 2.2s var(--ease); }
.motif-base { stroke-dasharray: 3 5; opacity: 0.5; }
/* each layer settles onto the stack when its system comes online */
.motif-layer { transition: opacity 0.9s ease, transform 1.1s var(--ease); }
.motif-layer rect { fill: rgba(201, 169, 110, 0.1); }
.motif-layer circle { fill: var(--gold); stroke: none; }
.js .motif-layer:not(.is-on) { opacity: 0.12; transform: translateY(-10px); }
.statement-dark { color: var(--gold); margin-top: clamp(3rem, 2rem + 3vw, 5rem); }

.vision { background: linear-gradient(180deg, var(--umber) 0%, var(--umber-deep) 100%); padding-top: calc(var(--section) * 0.75); padding-bottom: var(--section); }
/* Hassan II minaret behind the vision, under a deep umber veil, drifting slowly with the scroll */
.vision { position: relative; isolation: isolate; overflow: hidden; }
.vision-media { position: absolute; inset: 0; z-index: -1; }
.vision-media picture { position: absolute; inset: -8% 0; }
.vision-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.vision-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--umber) 0%, rgba(46, 31, 20, 0.86) 18%, rgba(35, 23, 14, 0.84) 60%, var(--umber-deep) 100%);
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .vision-media picture { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: translateY(-6%) scale(1.06); } to { transform: translateY(6%) scale(1); } }
  }
}
.facts { display: grid; gap: 0; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.facts li { display: grid; gap: 0.5rem; border-top: 1px solid rgba(201, 169, 110, 0.35); padding-block: 1.5rem 2rem; color: var(--on-dark-muted); }
.fig {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.25rem, 2rem + 5vw, 6.5rem); line-height: 0.95; letter-spacing: -0.02em;
  color: var(--gold); font-variant-numeric: lining-nums;
}
.fig-word { font-style: italic; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem); line-height: 1.05; letter-spacing: -0.01em; padding-top: 0.4rem; }
.vision-text { margin-top: clamp(3rem, 2rem + 3vw, 5rem); color: var(--on-dark); max-width: 40rem; }
.footnote-dark { color: rgba(205, 191, 174, 0.8); margin-top: 2rem; }

/* the rail that ties the three chapters together (wide screens) */
@media (min-width: 1024px) {
  .chain::before {
    content: ""; position: absolute; z-index: 1;
    left: max(calc(var(--gutter) - 36px), calc((100vw - var(--max)) / 2 - 44px));
    top: calc(var(--section) + 0.4rem); bottom: var(--section);
    width: var(--rail);
    background: linear-gradient(180deg, var(--amber) 0%, var(--amber) 30%, var(--gold) 55%, var(--gold) 100%);
  }
  .chain-node { position: relative; }
  .chain-node::before {
    content: ""; position: absolute; top: 0.35em; width: 9px; height: 9px; border-radius: 50%;
    left: max(calc(var(--gutter) * -1 + 36px - 4px), -48px);
    background: currentColor; transform: translateX(-100%);
  }
}

/* ---------- Icons (brand family: 28 grid, 2px round strokes) and gentle reveals ---------- */
.icon { width: 28px; height: 28px; display: block; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.tech .icon { stroke: var(--gold); }
.icon path { stroke-dasharray: 1 1; transition: stroke-dashoffset 1.3s var(--ease) 0.2s, opacity 0.3s ease 0.2s; }
.js [data-reveal]:not(.is-in) .icon path, .js .system:not(.is-on) .icon path { stroke-dashoffset: 1; opacity: 0; }
[data-reveal] { transition: opacity 0.9s ease, transform 1.1s var(--ease); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }
[data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: 0.14s; }
[data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: 0.28s; }
[data-reveal-group] > [data-reveal]:nth-child(2) .icon path { transition-delay: 0.34s; }
[data-reveal-group] > [data-reveal]:nth-child(3) .icon path { transition-delay: 0.48s; }

/* ---------- 8. Group ---------- */
.group { padding-block: var(--section) calc(var(--section) * 0.6); }
.brands { display: grid; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.brands li { border-top: 1px solid var(--border); padding-block: 1.75rem 2rem; }
.brands h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); line-height: 1.1; margin-bottom: 0.6rem; }
.brands p { color: var(--muted); max-width: 26rem; }

/* ---------- 9. Founders ---------- */
.founders { padding-block: calc(var(--section) * 0.6) var(--section); }
.people { display: grid; gap: 3.5rem; margin-top: clamp(3rem, 2rem + 3vw, 5rem); }
.person { max-width: 26rem; }
.arch {
  width: min(220px, 62vw);
  aspect-ratio: 480 / 656;
  overflow: hidden;
  border-radius: 999px 999px 4px 4px;
  background: var(--mid);
  margin-bottom: 1.75rem;
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); line-height: 1.15; }
.surname { font-size: 0.82em; letter-spacing: 0.06em; }
.role { font: 400 0.75rem/1.5 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-ink); margin: 0.6rem 0 1rem; }
.person p:not(.role) { color: var(--muted); }

/* ---------- 10. Invitation ---------- */
/* the last screen: the brick-wall living room, warm and bright; umber only where the words sit */
/* phones: the photo keeps its own 4:5 frame (brick arches, plant, sofa), then melts into umber under the title */
.invite { position: relative; isolation: isolate; color: var(--on-dark); background: var(--umber-deep); padding-top: calc(125vw - 7rem); }
.invite-media { bottom: auto; height: 125vw; max-height: 100svh; }
.invite-media picture { transform-origin: 30% 40%; }
.invite-media img { width: 100%; height: 100%; object-fit: cover; object-position: 0% 40%; }
.invite-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(35, 23, 14, 0) 0%, rgba(35, 23, 14, 0) 55%, rgba(35, 23, 14, 0.72) 74%, rgba(35, 23, 14, 0.95) 89%, var(--umber-deep) 100%);
}
/* wide screens: the room keeps the left, the words take the right (like the opening) */
@media (min-width: 1024px) and (orientation: landscape) {
  .invite { padding-top: 22vh; }
  .invite-copy { padding-left: min(50%, 620px); }
  .invite-media { height: 112vh; max-height: none; }
  .invite-media img { object-position: 30% 50%; }
  .invite-media::after {
    background:
      linear-gradient(270deg, rgba(35, 23, 14, 0.94) 0%, rgba(35, 23, 14, 0.88) 44%, rgba(35, 23, 14, 0.4) 57%, rgba(35, 23, 14, 0) 68%),
      linear-gradient(180deg, rgba(35, 23, 14, 0) 62%, rgba(35, 23, 14, 0.8) 82%, var(--umber-deep) 100%);
  }
  .invite-copy .contacts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .invite-media picture { animation: push-in linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    @keyframes push-in { from { transform: scale(1.08); } to { transform: scale(1); } }
  }
}
.invite-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-h1); line-height: 1; letter-spacing: -0.02em; max-width: 12ch; text-wrap: balance;
}
.invite .lede-dark { color: rgba(245, 239, 230, 0.86); }
.contacts { display: grid; gap: 1.75rem; margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); }
.contact { font-style: normal; border-top: 1px solid rgba(201, 169, 110, 0.4); padding-top: 1.25rem; }
.contact p { line-height: 1.8; color: var(--on-dark-muted); }
.contact-name { font-family: var(--font-display); font-size: 1.375rem; color: var(--on-dark) !important; margin-bottom: 0.35rem; }
.contacts a { text-decoration: none; border-bottom: 1px solid rgba(201, 169, 110, 0.5); transition: color 0.2s ease, border-color 0.2s ease; white-space: nowrap; }
.contacts a:hover { color: var(--gold); border-color: var(--gold); }
.contact-site { font: 400 0.8125rem/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); align-self: end; }
.site-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem;
  margin-top: var(--section); padding-block: 2.5rem max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(245, 239, 230, 0.15);
}
.site-foot picture { width: 96px; }
.site-foot .footnote-dark { margin: 0; }

/* ---------- Wider layouts ---------- */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .values-list, .brands { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 3.5rem); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 4rem); }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 5rem); }
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)) ; column-gap: clamp(2rem, 4vw, 4rem); }
  .contact-site { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .who-head, .homes-head { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 4rem; }
  .who-foot { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 4rem; }
  .method-grid { grid-template-columns: 5fr 7fr; column-gap: 5rem; align-items: start; }
  .method-head { position: sticky; top: 12vh; }
  .quotes { grid-template-columns: 1.25fr 1fr 1fr; align-items: stretch; }
  .tech-body { display: grid; grid-template-columns: 4fr 8fr; column-gap: 4rem; margin-top: 2rem; }
  .tech-motif { display: block; position: sticky; top: 18vh; align-self: start; padding-top: 0.5rem; }
  .systems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3rem; }
  .system:not(:last-child)::after { display: none; }
  .system { border-top: 1px solid rgba(201, 169, 110, 0.18); padding-block: 1.75rem; }
  .system:nth-child(even) h3, .system:nth-child(even) p, .system:nth-child(even) .system-icon::before { transition-delay: 0.15s; }
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts li { padding-right: 1rem; }
  .vision-text { margin-left: 33%; }
  .vision .footnote-dark { margin-left: 33%; }
}

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