/* ==========================================================================
   Golden Palms — "Cinematic Atlas"
   Two render modes share one document:
   - default (no JS / reduced motion / GSAP unavailable): stacked full-bleed
     chapters on stills, fully readable.
   - html.cinema: a pinned stage, scroll-scrubbed film, copy layered on top.
   ========================================================================== */

:root {
  --ink: #0E1116;
  --ink-2: #121826;
  --gold: #C8A96A;
  --gold-soft: rgba(200, 169, 106, .55);
  --copper: #B87952;
  --copper-text: #CC8C63; /* copper nudged for small text contrast on ink */
  --bone: #F3EEE3;
  --bone-80: rgba(243, 238, 227, .84);
  --bone-60: rgba(243, 238, 227, .64);
  --bone-30: rgba(243, 238, 227, .3);
  --bone-15: rgba(243, 238, 227, .15);

  --serif: "Cormorant Garamond", "Cormorant", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(20px, 4.4vw, 72px);
  --header-h: clamp(72px, 9vh, 108px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --toolbar: calc(100vh - 100svh); /* iOS dynamic toolbar height (0 elsewhere) */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--ink);
  color: var(--bone);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html:not(.cinema) { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
/* A <picture> (AVIF / WebP sources + JPEG fallback) lays out as if its <img> were there alone
   (its <source>s would otherwise become empty grid or flex items). */
picture { display: contents; }
picture > source { display: none; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
address { font-style: normal; }

::selection { background: var(--gold); color: var(--ink); }

:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 5px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: var(--pad);
  top: 12px;
  padding: .6rem 1rem;
  background: var(--bone);
  color: var(--ink);
  font-size: .85rem;
  letter-spacing: .04em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  z-index: 40;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: env(safe-area-inset-top) var(--pad) 0;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -24px 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 17, 22, .96) 0%, rgba(14, 17, 22, .88) 62%, rgba(14, 17, 22, 0) 100%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.past-film .site-header::before { opacity: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--gold);
  text-decoration: none;
}
/* The logo: mark, script and REAL ESTATE side by side; on phones the compact one (mark and
   script only) takes its place. */
.brand__logo {
  width: auto;
  height: clamp(44px, 3.75vw, 54px);
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .35));
}
.brand__logo--compact { display: none; }

.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}
.header-link {
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bone-80);
  padding: .5rem 0;
  background: linear-gradient(var(--gold), var(--gold)) left 100% / 0 1px no-repeat;
  transition: color .3s var(--ease), background-size .45s var(--ease);
}
.header-link:hover { color: var(--bone); background-size: 100% 1px; }

.lang {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .78rem;
  letter-spacing: .2em;
}
.lang__btn {
  padding: .45rem .1rem;
  color: var(--bone-60);
  letter-spacing: inherit;
  transition: color .3s var(--ease);
}
.lang__btn:hover { color: var(--bone); }
.lang__btn[aria-pressed="true"] { color: var(--gold); }
.lang__sep { width: 1px; height: 12px; background: var(--bone-30); }

/* --------------------------------------------------------------------------
   Chapter rail
   -------------------------------------------------------------------------- */
.rail {
  position: fixed;
  z-index: 35;
  right: clamp(18px, 2.8vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 0;
  transition: opacity .5s var(--ease), visibility .5s;
}
.past-film .rail { opacity: 0; visibility: hidden; }
.rail__track {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(243, 238, 227, .24);
  overflow: hidden;
}
.rail__fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: 50% 0;
  transform: scaleY(var(--progress, 0));
}
.rail__list { display: flex; flex-direction: column; gap: clamp(18px, 3.6vh, 34px); }
.rail__item {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 2px 0 2px 18px;
  text-decoration: none;
  color: var(--bone-60);
  line-height: 1.25;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .6);
  transition: color .4s var(--ease);
}
.rail__item::before { /* active marker, sits over the hairline */
  content: "";
  position: absolute;
  left: -1px; top: 0; bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform .5s var(--ease);
}
.rail__item:hover { color: var(--bone); }
.rail__item.is-active { color: #DCC08A; }
.rail__item.is-active .rail__label { font-weight: 400; }
.rail__item.is-active::before { transform: scaleY(1); }
.rail__num { font-size: .7rem; letter-spacing: .14em; font-variant-numeric: tabular-nums; opacity: .85; }
.rail__label { font-size: .82rem; letter-spacing: .04em; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 1.1em;
  margin-bottom: clamp(14px, 2.2vh, 26px);
  font-size: clamp(.85rem, 1vw, 1rem);
  letter-spacing: .05em;
  color: var(--copper-text);
}
.eyebrow__num { font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.eyebrow--plain { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; }

.display, .title, .beat__title, .close__title {
  font-family: var(--serif);
  font-weight: 300;
  color: var(--bone);
  letter-spacing: -.012em;
  text-wrap: balance;
}
.display {
  font-size: clamp(3.1rem, 6.4vw, 6.6rem);
  line-height: .98;
  margin-bottom: clamp(16px, 2.6vh, 28px);
}
.title {
  font-size: clamp(2.3rem, 4.1vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: clamp(16px, 2.6vh, 30px);
}
.lede {
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--bone-80);
  max-width: 24.5em;
  margin-bottom: clamp(14px, 2.4vh, 26px);
}
.credit {
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--bone-60);
}
.body {
  font-size: clamp(.98rem, 1.06vw, 1.08rem);
  font-weight: 400;
  line-height: 1.75;
  color: rgba(243, 238, 227, .86);
  max-width: 34em;
  text-wrap: pretty;
}
.facets {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  margin-top: clamp(20px, 3.4vh, 36px);
  padding-top: clamp(14px, 2vh, 20px);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
.facets::before { /* top hairline accent */
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 56px; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 169, 106, 0));
}

.word { display: inline-block; }

/* Reveal: every staggered element derives opacity/transform from the panel's --p
   (0 → 1) and its own delay --d. GSAP only animates --p; the browser does the rest. */
.copy { --p: 1; }
.copy [style*="--d"],
.copy .word {
  --l: clamp(0, calc((var(--p) - var(--d)) * 2.6), 1);
  opacity: var(--l);
  transform: translate3d(0, calc((1 - var(--l)) * 1.05rem), 0);
}

/* --------------------------------------------------------------------------
   Fallback / reduced-motion layout: stacked chapters on stills
   -------------------------------------------------------------------------- */
.stage { position: relative; }
.stage__media, .stage__fade, .beat-index { display: none; }

.chapter {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4vh) calc(var(--pad) + 140px) 10vh var(--pad);
  isolation: isolate;
}
.chapter__still, .beat__still { margin: 0; }
.chapter__still {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.chapter__still img, .beat__still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter__still::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, .82) 0%, rgba(14, 17, 22, .55) 32%, rgba(14, 17, 22, 0) 62%),
    linear-gradient(180deg, rgba(14, 17, 22, .55) 0%, rgba(14, 17, 22, 0) 22%, rgba(14, 17, 22, 0) 70%, rgba(14, 17, 22, .7) 100%);
}
.chapter__still::before { /* right edge: keeps the chapter rail legible */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg, rgba(14, 17, 22, .55) 0%, rgba(14, 17, 22, 0) 16%);
}
.chapter--interiors .chapter__still::after {
  background:
    linear-gradient(90deg, rgba(14, 17, 22, .85) 0%, rgba(14, 17, 22, .6) 40%, rgba(14, 17, 22, .35) 100%),
    linear-gradient(180deg, rgba(14, 17, 22, .5) 0%, rgba(14, 17, 22, 0) 25%, rgba(14, 17, 22, .75) 60%, rgba(14, 17, 22, .95) 100%);
}
html:not(.cinema).is-scrolled .site-header::before { opacity: 1; }
.copy {
  position: relative;
  width: min(36rem, 100%);
}
.copy--hero { width: min(44rem, 100%); }

/* Interiors fallback: intro + a before / plan / after triptych */
.chapter--interiors {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8vh;
}
.beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
  width: 100%;
}
.beat { position: relative; padding-top: 18px; border-top: 1px solid var(--gold-soft); }
.beat__still { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 18px; }
.beat__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: .3rem;
}
.beat__title {
  font-style: italic;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: .6rem;
}
.beat__text { font-size: .98rem; font-weight: 400; line-height: 1.65; color: rgba(243, 238, 227, .88); max-width: 26em; }

.scroll-cue {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(3.2vh + var(--toolbar));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
  pointer-events: none;
}
.scroll-cue__line {
  position: relative;
  width: 1px;
  height: clamp(40px, 6.5vh, 64px);
  background: var(--gold-soft);
  overflow: hidden;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(243, 238, 227, 0), var(--bone));
  transform: translateY(-100%);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.scroll-cue__label {
  font-size: .66rem;
  letter-spacing: .38em;
  margin-right: -.38em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
html:not(.cinema) .scroll-cue { position: absolute; top: calc(100svh - 120px); bottom: auto; }

/* --------------------------------------------------------------------------
   Cinema mode
   -------------------------------------------------------------------------- */
.cinema .film { position: relative; }
.cinema .stage {
  height: 100vh;
  overflow: hidden;
  background: var(--ink);
}
.cinema .stage__media,
.cinema .stage__fade { display: block; }

.stage__media { position: absolute; inset: 0; z-index: 0; }
.clip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  visibility: hidden;
  background: var(--ink);
}
.clip:first-child { opacity: 1; visibility: visible; }

.stage__veil {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, .84) 0%, rgba(14, 17, 22, .62) 26%, rgba(14, 17, 22, .26) 44%, rgba(14, 17, 22, 0) 60%),
    linear-gradient(270deg, rgba(14, 17, 22, .5) 0%, rgba(14, 17, 22, 0) 15%),
    linear-gradient(180deg, rgba(14, 17, 22, .5) 0%, rgba(14, 17, 22, 0) 20%, rgba(14, 17, 22, 0) 74%, rgba(14, 17, 22, .55) 100%),
    radial-gradient(120% 90% at 60% 50%, rgba(14, 17, 22, 0) 55%, rgba(14, 17, 22, .45) 100%);
}
.cinema .stage__veil { display: block; }
/* Extra veil for the bright interior clips; opacity is driven by the timeline. */
.stage__veil--deep {
  opacity: 0;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, .62) 0%, rgba(14, 17, 22, .42) 30%, rgba(14, 17, 22, .1) 50%, rgba(14, 17, 22, 0) 62%),
    linear-gradient(0deg, rgba(14, 17, 22, .45) 0%, rgba(14, 17, 22, 0) 30%);
}
.cinema .copy { text-shadow: 0 1px 22px rgba(14, 17, 22, .55); }
.stage__fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.stage__grain {
  position: absolute;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  display: none;
}
.cinema .stage__grain { display: block; animation: grain .9s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-4%, 3%, 0); }
  40% { transform: translate3d(3%, -5%, 0); }
  60% { transform: translate3d(-6%, -2%, 0); }
  80% { transform: translate3d(5%, 4%, 0); }
  100% { transform: translate3d(-2%, 6%, 0); }
}

.cinema .stage__copy {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.cinema .chapter {
  position: absolute;
  inset: 0;
  min-height: 0;
  display: grid;
  align-items: center;
  justify-items: start;
  padding: var(--header-h) var(--pad) 8vh;
  gap: 0;
}
.cinema .chapter__still,
.cinema .beat__still { display: none; }
.cinema .copy {
  --p: 0;
  grid-area: 1 / 1;
  width: min(35rem, 38vw);
}
.cinema .copy--hero { --p: 0; width: min(46rem, 46vw); padding-top: 14vh; }
.cinema .beats { display: grid; grid-area: 1 / 1; width: auto; }
.cinema .beat { grid-area: 1 / 1; padding: 0; border: 0; }
.cinema .copy--beat { width: min(30rem, 34vw); padding-bottom: 10vh; }
.cinema .beat__num { font-size: 1.25rem; margin-bottom: .8rem; }
.cinema .beat__title { font-size: clamp(3rem, 6vw, 6.2rem); line-height: 1; margin-bottom: 1.2rem; }
.cinema .beat__text { font-size: clamp(1rem, 1.2vw, 1.2rem); }

.cinema .beat-index {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  bottom: calc(8vh + var(--toolbar));
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  column-gap: clamp(28px, 3.4vw, 56px);
  padding-top: 16px;
  opacity: 0;
  pointer-events: none;
}
.beat-index__track {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: var(--bone-30);
}
.beat-index__fill {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(var(--beat, 0));
}
.beat-index__item {
  display: flex;
  align-items: baseline;
  gap: .6em;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bone-60);
  transition: color .5s var(--ease);
  white-space: nowrap;
}
.beat-index__item i {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: none;
}
.beat-index__item.is-active { color: var(--gold); }

/* --------------------------------------------------------------------------
   The principal — editorial portrait + bio, after the film
   -------------------------------------------------------------------------- */
.principal {
  position: relative;
  z-index: 5;
  background:
    radial-gradient(70% 70% at 12% 40%, rgba(200, 169, 106, .06), rgba(200, 169, 106, 0) 70%),
    var(--ink);
  padding: clamp(104px, 17vh, 190px) var(--pad) clamp(96px, 15vh, 170px);
  border-top: 1px solid rgba(200, 169, 106, .35);
}
.principal__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding-right: clamp(0px, 8vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1fr);
  gap: clamp(56px, 8vw, 140px);
  align-items: center;
}
.principal__portrait {
  position: relative;
  width: calc(100% - 36px);
  max-width: 460px;
  justify-self: end;
  margin: 18px; /* room for the offset hairline frame */
}
.principal__portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  background: var(--ink-2);
}
/* Thin gold hairline frame, offset from the photograph */
.principal__portrait::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(200, 169, 106, .5);
  pointer-events: none;
}
/* A whisper of dusk over the daylight portrait so it sits in the palette */
.principal__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 17, 22, 0) 55%, rgba(14, 17, 22, .28) 100%);
  pointer-events: none;
}
.principal__text { max-width: 36rem; }
.principal__name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -.01em;
  color: var(--bone);
  margin: 0 0 clamp(18px, 2.6vh, 26px);
}
.principal__role {
  position: relative;
  display: inline-block;
  padding: .9rem 0;
  font-size: .72rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  border-top: 1px solid rgba(200, 169, 106, .45);
  border-bottom: 1px solid rgba(200, 169, 106, .45);
  margin-bottom: clamp(24px, 4vh, 40px);
}
.principal__bio p {
  font-size: clamp(1.02rem, 1.2vw, 1.16rem);
  line-height: 1.8;
  color: var(--bone-80);
  max-width: 33em;
  text-wrap: pretty;
}
.principal__bio p + p { margin-top: 1.1em; }
.principal__cta { margin-top: clamp(24px, 4vh, 40px); text-decoration: none; }

/* --------------------------------------------------------------------------
   Close: contact, services
   -------------------------------------------------------------------------- */
.close {
  position: relative;
  z-index: 5;
  background:
    radial-gradient(80% 60% at 85% 0%, rgba(200, 169, 106, .07), rgba(200, 169, 106, 0) 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  padding: clamp(96px, 16vh, 180px) var(--pad) clamp(80px, 12vh, 140px);
  border-top: 1px solid var(--bone-15);
}
.close__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding-right: clamp(0px, 8vw, 150px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(56px, 8vw, 140px);
}
.close__lead { align-self: start; }
@media (min-width: 1025px) {
  .close__lead { position: sticky; top: calc(var(--header-h) + 6vh); }
}
.close__title {
  font-size: clamp(2.8rem, 5.4vw, 5.6rem);
  line-height: 1;
  margin: 0 0 clamp(20px, 3vh, 32px);
}
.close__text {
  font-size: clamp(1.02rem, 1.2vw, 1.18rem);
  line-height: 1.75;
  color: var(--bone-80);
  max-width: 32em;
}

.contact { margin-top: clamp(36px, 6vh, 64px); }
.contact__row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-top: 1px solid var(--bone-15);
}
.contact__row:last-child { border-bottom: 1px solid var(--bone-15); }
.contact dt {
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--copper-text);
}
.contact dd {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.contact a {
  text-decoration: none;
  background: linear-gradient(var(--gold), var(--gold)) left 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s var(--ease);
}
.contact a:hover { color: var(--gold); background-size: 100% 1px; }

.services__title, .enquiry__title {
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.services { counter-reset: none; }
.service {
  display: grid;
  grid-template-columns: 3.6rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0 1.6rem;
  border-top: 1px solid var(--bone-15);
  position: relative;
}
.service::before { /* gold segment riding the top hairline */
  content: "";
  position: absolute;
  left: 0; top: -1px;
  width: 2.6rem; height: 1px;
  background: var(--gold);
}
.service__num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: lining-nums;
}
.service__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.1;
  margin-bottom: .35rem;
}
.service__text { font-size: .95rem; line-height: 1.65; color: var(--bone-80); }

.enquiry {
  margin-top: clamp(48px, 8vh, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 2rem;
}
.enquiry__title { grid-column: 1 / -1; margin-bottom: 0; }
.field { display: grid; gap: .35rem; }
.field--wide, .enquiry__foot { grid-column: 1 / -1; }
.field label {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone-60);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--bone);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--bone-30);
  border-radius: 0;
  padding: .55rem 0;
  transition: border-color .3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 4px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--ink-2); color: var(--bone); }
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--gold);
}
.enquiry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: .6rem; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  padding: .8rem 0;
}
.button__rule {
  display: block;
  width: 48px; height: 1px;
  background: var(--gold);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.button:hover .button__rule { transform: scaleX(1.6); }
.enquiry__note { font-size: .8rem; color: var(--bone-60); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink-2);
  border-top: 1px solid var(--bone-15);
  padding: 44px var(--pad) calc(44px + env(safe-area-inset-bottom));
  font-size: .8rem;
  color: var(--bone-60);
}
.site-footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding-right: clamp(0px, 8vw, 150px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 3rem;
}
.site-footer__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--gold); text-decoration: none; }
.site-footer__logo { width: clamp(132px, 11vw, 156px); height: auto; }
.site-footer__legal { display: grid; gap: .2rem; }
.lang--footer { font-size: .72rem; letter-spacing: .14em; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .close__inner { grid-template-columns: 1fr; padding-right: 0; }
  .principal__inner { padding-right: 0; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
  .site-footer__inner { padding-right: 0; }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand__logo { display: none; }
  .brand__logo--compact { display: block; height: 36px; }
  .header-link { display: none; }

  /* Rail → slim top progress bar with numerals */
  .rail {
    left: var(--pad);
    right: var(--pad);
    top: calc(var(--header-h) + env(safe-area-inset-top));
    transform: none;
    padding: 0 0 7px;
  }
  .rail__track { top: auto; bottom: 0; right: 0; width: auto; height: 1px; }
  .rail__fill { transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
  .rail__list { flex-direction: row; justify-content: space-between; gap: 0; }
  .rail__item { display: flex; gap: .5rem; padding: 6px 0; align-items: baseline; }
  .rail__item::before { left: 0; right: 0; top: auto; bottom: -8px; width: auto; height: 3px; transform: scaleX(0); }
  .rail__item.is-active::before { transform: scaleX(1); }
  .rail__label { display: none; font-size: .72rem; }
  .rail__item.is-active .rail__label { display: inline; }

  .chapter {
    align-items: flex-end;
    padding: calc(var(--header-h) + 64px) var(--pad) calc(12vh + env(safe-area-inset-bottom));
  }
  .chapter__still::after {
    background: linear-gradient(180deg, rgba(14, 17, 22, .6) 0%, rgba(14, 17, 22, 0) 20%, rgba(14, 17, 22, .25) 45%, rgba(14, 17, 22, .9) 80%, rgba(14, 17, 22, .95) 100%);
  }
  .beats { grid-template-columns: 1fr; }
  .chapter--interiors { justify-content: flex-end; }

  .cinema .stage__veil {
    background:
      linear-gradient(180deg, rgba(14, 17, 22, .6) 0%, rgba(14, 17, 22, 0) 18%, rgba(14, 17, 22, 0) 38%, rgba(14, 17, 22, .72) 66%, rgba(14, 17, 22, .94) 100%);
  }
  .stage__veil--deep { background: linear-gradient(0deg, rgba(14, 17, 22, .55) 0%, rgba(14, 17, 22, 0) 60%); }
  .cinema .chapter {
    align-items: end;
    padding: calc(var(--header-h) + 56px) var(--pad) calc(var(--toolbar) + 64px + env(safe-area-inset-bottom));
  }
  .cinema .copy, .cinema .copy--hero, .cinema .copy--beat { width: 100%; padding: 0; }
  .cinema .copy--beat { padding-bottom: 64px; }
  .cinema .copy--hero { padding-bottom: 76px; }
  .cinema .beat-index { bottom: calc(var(--toolbar) + 40px + env(safe-area-inset-bottom)); right: var(--pad); column-gap: 18px; justify-content: space-between; }
  .beat-index__item { font-size: .6rem; letter-spacing: .14em; }

  .display { font-size: clamp(2.8rem, 13vw, 3.6rem); }
  .title { font-size: clamp(2.05rem, 9vw, 2.6rem); }
  .lede { font-size: 1.02rem; }
  .body { font-size: .95rem; line-height: 1.65; }
  .facets { margin-top: 18px; gap: .3rem 1rem; font-size: .62rem; }
  .cinema .beat__title { font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .scroll-cue { bottom: calc(var(--toolbar) + 18px + env(safe-area-inset-bottom)); gap: 10px; }
  .scroll-cue__line { height: 32px; }
  html:not(.cinema) .scroll-cue { display: none; }

  /* Portrait framing: keep the villa / room in view */
  .clip[data-clip="01"] { --pos: 66% 50%; }
  .clip[data-clip="02"] { --pos: 60% 50%; }
  .clip[data-clip="03a"] { --pos: 50% 50%; }
  .clip[data-clip="03b"], .clip[data-clip="03c"] { --pos: 44% 50%; }
  .clip[data-clip="04"] { --pos: 58% 50%; }
  #top .chapter__still img { object-position: 66% 50%; }
  #real-estate .chapter__still img, #landscape .chapter__still img { object-position: 62% 50%; }
  #relocation .chapter__still img { object-position: 58% 50%; }

  .principal { padding-top: 96px; padding-bottom: 88px; }
  .principal__inner { grid-template-columns: 1fr; gap: 48px; }
  .principal__portrait { justify-self: start; width: min(calc(100% - 28px), 300px); margin: 14px; }
  .principal__portrait::before { inset: -14px; }
  .principal__name { font-size: clamp(2.5rem, 11vw, 3.2rem); }
  .enquiry { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; gap: .25rem; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-height: 640px) and (min-width: 761px) {
  .facets { display: none; }
  .cinema .copy--hero { padding-top: 6vh; }
}

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