/* =========================================================
   Immobiliare Faraoni — Real Estate
   Heritage design system: parchment, hairlines, sharp corners.
   No border-radius anywhere (the drawn cursor is the sole,
   sanctioned exception). No gold. No pure black.
   ========================================================= */

/* ---------- fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant.woff2') format('woff2');
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 300 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/ebgaramond.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/ebgaramond-italic.woff2') format('woff2');
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --parchment: #F3EFE6;
  --stone: #DED7C7;
  --greige: #B9AF9C;
  --racing-green: #26382E;
  --pine: #384A3E;
  --claret: #6E2B2B;
  --slate: #5C6A6E;
  --alpenglow: #C7A59D;
  --ink: #17231C;

  --hairline: 1px solid rgba(23, 35, 28, 0.28);
  --hairline-soft: 1px solid rgba(185, 175, 156, 0.55);
  --hairline-light: 1px solid rgba(243, 239, 230, 0.28);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'EB Garamond', Georgia, serif;
  --grot: 'Segoe UI', 'Helvetica Neue', Arial, ui-sans-serif, sans-serif;

  --gutter: clamp(1.25rem, 6vw, 7.5rem);
  --ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset / base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  border-radius: 0 !important; /* the house rule: every corner sharp */
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: auto; /* Lenis owns scrolling */
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.125rem);
  line-height: 1.7;
  font-feature-settings: 'onum' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* aged-paper grain over everything, fixed and quiet */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
strong { font-weight: 500; }
ul { list-style: none; }
button {
  font: inherit;
  background: none;
  border: 0;
  color: inherit;
}

::selection { background: var(--claret); color: var(--parchment); }

:focus { outline: none; }
:focus-visible {
  outline: 1px solid var(--claret);
  outline-offset: 4px;
}

/* pointer: the drawn cursor replaces the native one on fine pointers */
html.has-cursor,
html.has-cursor a,
html.has-cursor button,
html.has-cursor [data-cursor] { cursor: none; }
html.has-cursor input,
html.has-cursor textarea,
html.has-cursor select { cursor: text; }

/* ---------- type utilities ---------- */
.label {
  font-family: var(--grot);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.label--greige { color: var(--greige); }
.serif-display {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

/* ---------- chrome: frame, progress, transition ---------- */
.viewport-frame {
  position: fixed;
  inset: 10px;
  border: var(--hairline);
  pointer-events: none;
  z-index: 7000;
  mix-blend-mode: multiply;
}
@media (max-width: 1099px) { .viewport-frame { display: none; } }

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--claret);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 7500;
}

.page-veil {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 9000;
  display: grid;
  place-items: center;
  transform: translateY(0);
}
.page-veil .veil-mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  color: var(--parchment);
}
.page-veil .veil-mark i { font-style: normal; color: var(--claret); }

/* ---------- drawn cursor (sole radius exception) ---------- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9500;
  will-change: transform;
}
.cursor-dot {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--claret);
  border-radius: 50% !important;
}
.cursor-ring {
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  border: 1px solid rgba(23, 35, 28, 0.55);
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  transition: background-color 0.4s var(--ease-lux), border-color 0.4s var(--ease-lux);
}
.cursor-ring .cursor-label {
  font-family: var(--grot);
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--parchment);
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-ring.is-active {
  background: rgba(23, 35, 28, 0.92);
  border-color: transparent;
}
.cursor-ring.is-active .cursor-label { opacity: 1; }
.cursor-ring.on-dark { border-color: rgba(243, 239, 230, 0.6); }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem var(--gutter);
  color: var(--parchment);
  transition: background-color 0.6s var(--ease-lux), color 0.6s var(--ease-lux),
              padding 0.6s var(--ease-lux), box-shadow 0.6s var(--ease-lux);
}
.site-header.is-solid {
  background: rgba(243, 239, 230, 0.94);
  color: var(--ink);
  padding: 0.9rem var(--gutter);
  box-shadow: 0 1px 0 rgba(23, 35, 28, 0.28);
}
.site-header.on-light { color: var(--ink); }

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: 0.3em;
  line-height: 1;
}
.wordmark i { font-style: normal; color: var(--claret); }

/* the mountain behind the mark — a silhouette fading toward the letters */
.wordmark, .veil-mark, .footer-mark { position: relative; z-index: 0; }
.wm-peak {
  position: absolute;
  left: 52%;
  bottom: 0.68em;
  transform: translateX(-50%);
  height: 1.2em;
  width: auto;
  z-index: -1;
  pointer-events: none;
}
.footer-mark .wm-peak { bottom: 0.72em; height: 1.05em; }

/* the loading mountain — a ridge that draws itself, no vulgar spinner */
.mountain-loader { width: 8.5rem; margin: 0 auto; }
.mountain-loader svg { width: 100%; height: auto; display: block; overflow: visible; }
/* the ridge draws itself left to right, then flows off — one continuous
   motion, measured against pathLength="100" so it never stutters */
.ml-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  animation: ml-draw 2.3s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.mountain-loader .ml-ghost {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.14;
}
@keyframes ml-draw {
  0%   { stroke-dashoffset: 100; }
  46%  { stroke-dashoffset: 0; }
  58%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -100; }
}
@media (prefers-reduced-motion: reduce) {
  .ml-path { animation: none; stroke-dashoffset: 0; }
}

.site-nav { display: flex; align-items: center; gap: 2.2rem; }
.site-nav a {
  font-family: var(--grot);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.3em;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--claret);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.5s var(--ease-lux);
}
.site-nav a:hover::after,
.site-nav a[aria-current='true']::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.lang-switch {
  display: flex;
  align-items: center;
  margin-left: 1.2rem;
  border-left: 1px solid currentColor;
  padding-left: 1.4rem;
  gap: 0;
}
.lang-switch button {
  font-family: var(--grot);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.2em 0.55em;
  opacity: 0.55;
  transition: opacity 0.3s;
  position: relative;
}
.lang-switch button + button::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  height: 0.9em;
  width: 1px;
  background: currentColor;
  opacity: 0.5;
  transform: translateY(-50%);
}
.lang-switch button[aria-pressed='true'] {
  opacity: 1;
  box-shadow: 0 1px 0 var(--claret);
}
.lang-switch button:hover { opacity: 1; }

.menu-toggle { display: none; }

/* mobile nav */
@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    color: var(--parchment);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-102%);
    transition: transform 0.7s var(--ease-lux);
    z-index: -1;
  }
  .site-nav.is-open { transform: translateY(0); }
  .site-nav a { font-size: 0.85rem; }
  .lang-switch { margin: 1rem 0 0; border-left: 0; padding-left: 0; }
  .menu-toggle {
    display: block;
    font-family: var(--grot);
    font-size: 0.6563rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  color: var(--parchment);
  background: var(--slate);
}
.hero-photo {
  position: absolute;
  inset: -6% 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* heritage wash: legibility at top and foot, faded-silk tint in between */
.hero-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(23, 35, 28, 0.42) 0%,
      rgba(23, 35, 28, 0.1) 26%,
      rgba(23, 35, 28, 0.14) 58%,
      rgba(23, 35, 28, 0.62) 100%),
    radial-gradient(90% 60% at 62% 44%, rgba(199, 165, 157, 0.18), transparent 70%);
}

/* slow alpenglow shimmer drifting across the peaks */
.hero-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(199, 165, 157, 0.16) 46%,
    rgba(243, 239, 230, 0.1) 52%,
    rgba(199, 165, 157, 0.14) 58%,
    transparent 72%);
  background-size: 260% 100%;
  animation: shimmer 16s var(--ease-lux) infinite;
  mix-blend-mode: soft-light;
}
@keyframes shimmer {
  0%   { background-position: 120% 0; }
  55%  { background-position: -60% 0; }
  100% { background-position: -60% 0; }
}

.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}
.hero-kicker {
  margin-bottom: 2.2rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hero-kicker .rule { width: 4.5rem; }
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.75rem, 7.2vw, 6.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 12em;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 2.4rem;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-style: italic;
  opacity: 0.92;
}
.hero-cta { margin-top: 3.2rem; }

.hero-scrollhint {
  position: absolute;
  bottom: 2.4rem;
  left: var(--gutter);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-scrollhint .tick {
  width: 1px;
  height: 3.4rem;
  background: var(--parchment);
  opacity: 0.7;
  transform-origin: top center;
  animation: tick 2.6s var(--ease-lux) infinite;
}
@keyframes tick {
  0% { transform: scaleY(0); transform-origin: top center; }
  45% { transform: scaleY(1); transform-origin: top center; }
  55% { transform: scaleY(1); transform-origin: bottom center; }
  100% { transform: scaleY(0); transform-origin: bottom center; }
}
.hero-coords {
  position: absolute;
  bottom: 2.4rem;
  right: var(--gutter);
  z-index: 3;
  writing-mode: vertical-rl;
  opacity: 0.75;
}

/* ---------- generic section furniture ---------- */
.section { position: relative; padding: clamp(5rem, 12vh, 9rem) var(--gutter); }
.section--stone { background: var(--stone); }
.section--ink { background: var(--ink); color: var(--parchment); }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1.6rem;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}
.section-head .num {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--claret);
  letter-spacing: 0.08em;
}
.section--ink .section-head .num { color: var(--alpenglow); }
.section-head .rule { flex: 1; }

.rule {
  height: 1px;
  background: rgba(23, 35, 28, 0.28);
  transform-origin: left center;
}
.section--ink .rule,
.rule--light { background: rgba(243, 239, 230, 0.28); }

/* split-text masking */
.kinetic .kw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.kinetic .kw > span {
  display: inline-block;
  will-change: transform;
}

/* image mask-reveal */
.mask-img {
  overflow: hidden;
  position: relative;
}
.mask-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

/* the house grade: photography slightly desaturated and warmed to the palette */
.hero-photo img,
.mask-img img,
.reveal-float img {
  filter: saturate(0.78) sepia(0.1) contrast(0.97) brightness(0.99);
}
/* a quiet alpenglow veil over every framed photograph */
.mask-img::after,
.reveal-float::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(199, 165, 157, 0.1), rgba(23, 35, 28, 0.12));
}

/* framed plate (hairline offset frame) */
.plate {
  border: var(--hairline);
  padding: clamp(0.6rem, 1.2vw, 1rem);
  background: transparent;
}
.section--ink .plate { border: var(--hairline-light); }

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--grot);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 1.05em 2.1em;
  transition: background-color 0.5s var(--ease-lux), color 0.5s var(--ease-lux);
  will-change: transform;
}
.btn:hover { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.hero .btn:hover, .section--ink .btn:hover { background: var(--parchment); color: var(--ink); border-color: var(--parchment); }
.btn--line {
  border: 0;
  padding: 0 0 0.45em 0;
  box-shadow: 0 1px 0 var(--claret);
}
.btn--line:hover { background: transparent; color: var(--claret); }

/* ---------- I · the house / manifesto ---------- */
.manifesto { background: var(--stone); }
.manifesto-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 1.12;
  max-width: 15em;
}
.manifesto-title em { color: var(--claret); }
.manifesto-body {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
}
.manifesto-body p { max-width: 34em; }
.manifesto-body p + p { margin-top: 1.4em; }

.counters {
  margin-top: clamp(3rem, 8vh, 5.5rem);
  border-top: var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.counter {
  padding: 2rem 1.5rem 0 0;
  border-right: var(--hairline-soft);
}
.counter:last-child { border-right: 0; }
.counter + .counter { padding-left: 1.5rem; }
.counter .val {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
}
.counter .cap { margin-top: 0.8rem; display: block; }

/* ---------- II · the collection (pinned horizontal) ---------- */
.collection { padding: 0; background: var(--parchment); }
.collection-head { padding: clamp(5rem, 12vh, 8rem) var(--gutter) 0; }
.collection-intro { max-width: 30em; font-style: italic; margin-top: 0.6rem; }
.collection-stage { position: relative; overflow: hidden; }
.collection-track {
  display: flex;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2.5rem, 6vh, 4rem) var(--gutter) clamp(4rem, 9vh, 6rem);
  width: max-content;
}
.estate-card {
  position: relative;
  width: min(58vw, 620px);
  flex: none;
  display: block;
}
.estate-card .mask-img {
  aspect-ratio: 4 / 5;
  max-height: 62vh;
}
.estate-card .mask-img img { transition: transform 1.4s var(--ease-lux); }
.estate-card:hover .mask-img img { transform: scale(1.045); }
.estate-meta {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.2rem;
  padding-top: 1.3rem;
  border-top: var(--hairline);
  margin-top: 1.3rem;
}
.estate-meta .idx {
  font-family: var(--serif);
  color: var(--claret);
  font-size: 1rem;
}
.estate-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.1;
}
.estate-place { margin-top: 0.45rem; }
.estate-desc {
  grid-column: 2;
  max-width: 30em;
  font-size: 0.95rem;
  opacity: 0.85;
  margin-top: 0.5rem;
}
.estate-price {
  text-align: right;
  font-style: italic;
  color: var(--claret);
  white-space: nowrap;
}
.collection-endcap {
  flex: none;
  width: 24vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .collection-stage { overflow-x: auto; scroll-snap-type: x mandatory; }
  .collection-track { width: max-content; }
  .estate-card { width: 78vw; scroll-snap-align: center; }
}

/* ---------- III · territory ---------- */
.territory-intro { max-width: 36em; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.territory-list { border-top: var(--hairline); }
.territory-list li { border-bottom: var(--hairline); }
.territory-row {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  width: 100%;
  padding: clamp(1.1rem, 2.6vh, 1.8rem) 0;
  text-align: left;
  transition: padding-left 0.6s var(--ease-lux);
  position: relative;
}
.territory-row:hover { padding-left: 1.4rem; }
.territory-row .t-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  line-height: 1.08;
  transition: color 0.5s var(--ease-lux), font-style 0.5s;
}
.territory-row:hover .t-name { color: var(--claret); font-style: italic; }
.territory-row .t-region { flex: 1; }
.territory-row .t-coords { white-space: nowrap; opacity: 0.75; }
@media (max-width: 700px) {
  .territory-row { flex-wrap: wrap; gap: 0.3rem 1rem; }
  .territory-row .t-coords { display: none; }
}

/* floating hover-reveal image */
.reveal-float {
  position: fixed;
  top: 0; left: 0;
  width: min(22rem, 30vw);
  aspect-ratio: 10 / 7;
  pointer-events: none;
  z-index: 5500;
  overflow: hidden;
  clip-path: inset(50% 0 50% 0);
  will-change: transform, clip-path;
}
.reveal-float img {
  width: 100%; height: 100%;
  object-fit: cover;
}
@media (hover: none), (pointer: coarse) { .reveal-float { display: none; } }

/* ---------- IV · offices of the house ---------- */
.offices { background: var(--stone); }
.offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(23, 35, 28, 0.28); /* the hairlines between cells */
  border: var(--hairline);
}
.office {
  background: var(--stone);
  padding: clamp(1.6rem, 3.2vw, 2.8rem);
  min-height: 15rem;
  display: flex;
  flex-direction: column;
}
.office .o-num {
  font-family: var(--serif);
  color: var(--claret);
  margin-bottom: 2.2rem;
}
.office h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.office p { font-size: 0.95rem; opacity: 0.85; max-width: 26em; }
@media (max-width: 980px) { .offices-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .offices-grid { grid-template-columns: 1fr; } }

/* ---------- V · the custodian ---------- */
.custodian-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.custodian-portrait { max-width: 26rem; }
.custodian-portrait .mask-img { aspect-ratio: 3 / 4; }
.custodian-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1.06;
}
.custodian-role { margin: 1.1rem 0 2.2rem; }
.custodian-copy p { max-width: 36em; }
.custodian-copy p + p { margin-top: 1.3em; }
.custodian-partner {
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: var(--hairline);
  font-size: 0.98rem;
}
@media (max-width: 860px) { .custodian-grid { grid-template-columns: 1fr; } }

/* the custodians — three figures, left to right */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-top: clamp(2rem, 5vh, 3.5rem);
}
.team-card { margin: 0; }
.team-card .mask-img { aspect-ratio: 3 / 4; }
.team-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  line-height: 1.15;
  margin-top: 1.1rem;
}
.team-role { display: block; margin-top: 0.45rem; }
@media (max-width: 760px) {
  .team-grid { grid-template-columns: 1fr; max-width: 22rem; }
}

/* ---------- VI · journal ---------- */
.journal { background: var(--stone); }
.journal-intro { max-width: 30em; font-style: italic; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.journal-list { border-top: var(--hairline); }
.journal-list li { border-bottom: var(--hairline); }
.journal-row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: clamp(1.4rem, 3vh, 2rem) 0;
  transition: padding-left 0.6s var(--ease-lux);
}
.journal-row:hover { padding-left: 1.4rem; }
.journal-row h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.15;
  transition: color 0.5s var(--ease-lux);
}
.journal-row:hover h3 { color: var(--claret); }
.journal-row .j-excerpt {
  grid-column: 2;
  max-width: 40em;
  font-size: 0.98rem;
  opacity: 0.85;
  margin-top: 0.4rem;
}
@media (max-width: 700px) {
  .journal-row { grid-template-columns: 1fr; gap: 0.4rem; }
}

/* ---------- VII · enquire ---------- */
.enquire { background: var(--ink); color: var(--parchment); }
.enquire .section-head .rule { background: rgba(243, 239, 230, 0.28); }
.enquire-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 7vw, 7rem);
}
.enquire-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}
.enquire-title em { color: var(--alpenglow); }
.enquire-intro { max-width: 30em; opacity: 0.85; margin-bottom: 3rem; }

.form-field { position: relative; margin-bottom: 2.4rem; }
.form-field label { display: block; margin-bottom: 0.7rem; opacity: 0.75; }
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 239, 230, 0.35);
  color: var(--parchment);
  font-family: var(--body);
  font-size: 1.05rem;
  padding: 0.55em 0 0.8em;
  transition: border-color 0.5s var(--ease-lux);
}
.form-field textarea { min-height: 6.5em; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--alpenglow);
  outline: none;
}
.form-note {
  margin-top: 1.6rem;
  font-style: italic;
  color: var(--alpenglow);
  min-height: 1.5em;
}

.seat-block { border-left: var(--hairline-light); padding-left: clamp(1.5rem, 3.5vw, 3.5rem); }
.seat-block h3 { margin-bottom: 1.6rem; }
.seat-block address {
  font-style: normal;
  line-height: 2;
}
.seat-block address a { box-shadow: 0 1px 0 rgba(199, 165, 157, 0.5); transition: color 0.4s, box-shadow 0.4s; }
.seat-block address a:hover { color: var(--alpenglow); box-shadow: 0 1px 0 var(--alpenglow); }
.seat-hours { margin-top: 2rem; opacity: 0.75; }
@media (max-width: 860px) {
  .enquire-grid { grid-template-columns: 1fr; }
  .seat-block { border-left: 0; padding-left: 0; border-top: var(--hairline-light); padding-top: 2.5rem; }
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: var(--hairline-light);
  border-bottom: var(--hairline-light);
  padding: 1.1rem 0;
  background: var(--ink);
  color: var(--parchment);
}
.marquee--paper {
  background: var(--parchment);
  color: var(--ink);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.marquee-inner {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 70s linear infinite;
}
.marquee-inner span {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
  padding-right: 3.5rem;
}
.marquee-inner span::after {
  content: '·';
  color: var(--claret);
  padding-left: 3.5rem;
}
.marquee--paper .marquee-inner span::after { color: var(--claret); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--parchment);
  padding: clamp(4rem, 9vh, 6.5rem) var(--gutter) 2.2rem;
}
.footer-mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.4rem, 11vw, 10rem);
  letter-spacing: 0.22em;
  line-height: 1;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.footer-mark i { font-style: normal; color: var(--claret); }
.footer-mottos { margin-bottom: 3.5rem; display: grid; gap: 0.65rem; }
.footer-mottos .m-row {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
}
.footer-mottos .m-row .label { width: 1.8rem; opacity: 0.55; }
.footer-mottos .m-row p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  border-top: var(--hairline-light);
  padding-top: 2.5rem;
  margin-bottom: 3.5rem;
}
.footer-cols h4 { margin-bottom: 1.2rem; }
.footer-cols address { font-style: normal; line-height: 2; font-size: 0.98rem; }
.footer-cols ul { line-height: 2; font-size: 0.98rem; }
.footer-cols a { box-shadow: 0 1px 0 rgba(243, 239, 230, 0.2); transition: color 0.4s, box-shadow 0.4s; }
.footer-cols a:hover { color: var(--alpenglow); box-shadow: 0 1px 0 var(--alpenglow); }
.footer-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.5rem;
  justify-content: space-between;
  border-top: var(--hairline-light);
  padding-top: 1.6rem;
  font-size: 0.8rem;
  opacity: 0.66;
}
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- property detail page ---------- */
.prop-hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(7rem, 16vh, 10rem) var(--gutter) clamp(3rem, 7vh, 5rem);
  align-items: end;
}
.prop-hero .mask-img { aspect-ratio: 4 / 5; max-height: 74vh; }
.prop-hero-copy { padding-bottom: 1rem; }
.prop-kicker { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.8rem; }
.prop-kicker .rule { width: 4rem; }
.prop-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.4vw, 5rem);
  line-height: 1.05;
}
.prop-place { margin-top: 1.4rem; }
.prop-priceline { margin-top: 2.4rem; font-style: italic; color: var(--claret); font-size: 1.15rem; }
@media (max-width: 860px) { .prop-hero { grid-template-columns: 1fr; min-height: 0; } }

.prop-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 7rem); }
.prop-essay p { max-width: 38em; font-size: 1.1rem; }
.prop-essay p + p { margin-top: 1.4em; }
.spec-table { border-top: var(--hairline); }
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: var(--hairline);
}
.spec-row .s-val { font-family: var(--serif); font-size: 1.15rem; text-align: right; }
@media (max-width: 860px) { .prop-body { grid-template-columns: 1fr; } }

.prop-plates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.prop-plates .mask-img { aspect-ratio: 10 / 7; }
@media (max-width: 700px) { .prop-plates { grid-template-columns: 1fr; } }

.prop-nextnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ---------- entrance states (JS adds .js to <html>) ---------- */
html.js .fade-up { opacity: 0; transform: translateY(2.2rem); }
html.js .rule[data-draw] { transform: scaleX(0); }
html.js .mask-img[data-unmask] { clip-path: inset(0 0 100% 0); }
html.js .mask-img[data-unmask] img { transform: scale(1.14); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html.js .fade-up,
  html.js .rule[data-draw],
  html.js .mask-img[data-unmask] { opacity: 1; transform: none; clip-path: none; }
  html.js .mask-img[data-unmask] img { transform: none; }
  .hero-shimmer, .hero-scrollhint .tick { animation: none; }
  .marquee-inner { animation: none; flex-wrap: wrap; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
