/* ==========================================================================
   Pałac Pass — design system v2 "Zaproszenie"
   A candlelit estate invitation: espresso-dark rooms and aged-cream letterpress
   paper, engraved high-contrast serif, a whisper of antique gold, script only
   as a signature laid over things.
   Fonts: Cormorant Garamond (display), Jost (micro-caps UI), Allura (signature)
   ========================================================================== */

/* fonts.css is linked separately in <head> so the build can version both
   files independently; assets are served immutable for a year. */

/* --- reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
/* height:auto is load-bearing. Every <img> carries width/height attributes for
   layout stability, and those are presentational hints that otherwise beat any
   CSS aspect-ratio: a portrait photo in a fixed-ratio slot would render at its
   own full height instead of the slot's. */
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul[class], ol[class] { list-style: none; padding: 0; }

/* --- tokens ------------------------------------------------------------- */
:root {
  /* grounds */
  --night:      #241C15;   /* page-dark ground — warm espresso near-black */
  --bark:       #33291F;   /* raised dark panel / solid header */
  --umber:      #4A3A2B;   /* borders + hover on dark */
  --moss:       #414231;   /* deep olive — drawer, transition panel, accent */
  --paper:      #EDE5D3;   /* main light ground — aged cream */
  --parch:      #E4D9C2;   /* deeper paper — cards, alt sections */

  /* text */
  --ink:        #292019;   /* text on paper */
  --ink-soft:   #584A3C;   /* secondary text on paper */
  --cream:      #EFE6D2;   /* text on dark */
  --cream-dim:  rgba(239,230,210,.64);  /* secondary text — night/bark only */

  /* ornament */
  --gilt:        #A5854E;  /* hairlines/ornament on paper — NEVER text */
  --gilt-bright: #C2A36B;  /* hairlines on dark; ok as text on night */
  --line-paper:  #CDBFA5;
  --line-dark:   rgba(239,230,210,.16);

  --bg: var(--paper);
  --fg: var(--ink);

  /* type */
  --serif:  "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:   "Jost", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Allura", "Snell Roundhand", "Brush Script MT", cursive;

  --fs-micro:   clamp(.68rem, .64rem + .12vw, .78rem);
  --fs-body:    clamp(1rem, .96rem + .18vw, 1.09rem);
  --fs-lead:    clamp(1.12rem, 1.02rem + .42vw, 1.35rem);
  --fs-h4:      clamp(1.15rem, 1.05rem + .45vw, 1.45rem);
  --fs-h3:      clamp(1.35rem, 1.15rem + .9vw, 2rem);
  --fs-h2:      clamp(2.2rem, 1.55rem + 2.7vw, 4rem);
  --fs-h1:      clamp(2.4rem, 1.7rem + 3.2vw, 4.4rem);
  --fs-hero:    clamp(3.2rem, 2rem + 6vw, 6.5rem);
  --fs-script:  clamp(2.8rem, 1.6rem + 5.4vw, 6.5rem);

  /* space */
  --gut: clamp(1.25rem, .6rem + 2.6vw, 3.5rem);
  --sec: clamp(4.5rem, 3rem + 6vw, 9rem);
  --maxw: 1560px;
  --measure: 62ch;

  --ease: cubic-bezier(.22,.61,.36,1);
  --slow: .8s var(--ease);
  --hdr-h: 84px;
}

@media (max-width: 860px) { :root { --hdr-h: 68px; } }

/* --- base --------------------------------------------------------------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: .004em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Giant display voice: light weight, near-normal tracking. */
h1, h2 {
  font-family: var(--serif); font-weight: 300;
  line-height: 1.04; letter-spacing: -.01em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.22; letter-spacing: 0; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

a { color: inherit; text-decoration: none; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid var(--gilt);
  outline-offset: 3px;
  border-radius: 0;
}

::selection { background: var(--gilt-bright); color: var(--night); }

/* --- helpers ------------------------------------------------------------ */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 980px; }
.wrap--mid { max-width: 1240px; }
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.measure { max-width: var(--measure); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--moss); color: var(--cream); padding: .8rem 1.4rem; font-size: .9rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* --- texture ------------------------------------------------------------
   Backgrounds are content. One utility: a 192px noise tile laid over the
   section, never intercepting the pointer.
   ---------------------------------------------------------------------- */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: url("../img/grain.png");
  background-repeat: repeat; background-size: 192px 192px;
  opacity: .05; pointer-events: none;
}
.grain--paper::after { opacity: .035; }

/* Ghost letters: a giant word set behind a paper section, one place only. */
.ghost {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center; overflow: hidden; pointer-events: none;
}
.ghost span {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(14rem, 30vw, 32rem); line-height: .78;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: rgba(41,32,25,.038);
}

/* --- typographic devices ------------------------------------------------ */

/* Engraved caps — the serif's second voice. */
.caps {
  font-family: var(--serif); font-weight: 400;
  text-transform: uppercase; letter-spacing: .14em; line-height: 1.4;
}

/* Signature script. Never body, labels or titles. */
.script {
  font-family: var(--script);
  font-weight: 400;
  line-height: .95;
  letter-spacing: .01em;
  text-transform: lowercase;
}

/* Spread-label row: one flex row of tiny Jost caps pushed to the edges.
   Never directly above an h2 — it would read as an eyebrow. */
.spread {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1.4rem;
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; line-height: 1.4;
}

.lead {
  font-family: var(--serif);
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 300;
  color: var(--ink-soft);
}

.prose p + p { margin-top: 1.15em; }
.prose p { max-width: var(--measure); }
/* in a centred block the paragraph box has to be centred too, not just its text */
.center .prose p, .prose.center p { margin-inline: auto; }
.prose a:not(.btn) {
  border-bottom: 1px solid var(--gilt);
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.prose a:not(.btn):hover { border-color: var(--ink); color: var(--ink); }

/* neoclassical hairline ornament — gilt rule with a small lozenge */
.fleuron {
  display: flex; align-items: center; justify-content: center; gap: .9rem;
  color: var(--gilt); margin-block: 1.6rem;
}
.fleuron::before, .fleuron::after {
  content: ""; height: 1px; flex: 1 1 auto;
  background: linear-gradient(90deg, transparent, var(--gilt), transparent);
  max-width: 130px;
}
.fleuron span { font-size: .58rem; letter-spacing: .3em; }
.fleuron--start::before { display: none; }
.fleuron--start { justify-content: flex-start; }
.fleuron--start::after { max-width: 90px; }
.fleuron--light { color: var(--gilt-bright); }
.fleuron--light::before, .fleuron--light::after {
  background: linear-gradient(90deg, transparent, var(--gilt-bright), transparent);
}

.rule-sm { width: 54px; height: 1px; background: var(--gilt); margin-block: 1.5rem; }
.center .rule-sm { margin-inline: auto; }

/* --- buttons ------------------------------------------------------------
   One hairline, uppercase Jost, 50px floor. On paper: ink border and text,
   hover fills ink. On dark: cream border and text, hover fills cream.
   ---------------------------------------------------------------------- */
.btn {
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
  --btn-fill: var(--ink);
  --btn-fg-hover: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 50px;
  padding: .8rem 2.1rem;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.btn:hover, .btn:focus-visible { color: var(--btn-fg-hover); border-color: var(--btn-bd); }

/* solid: ink ground, paper text (sits on paper grounds only) */
.btn--solid {
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  --btn-fill: var(--umber);
  --btn-fg-hover: var(--paper);
  background: var(--ink);
}
.btn--solid:hover, .btn--solid:focus-visible { border-color: var(--umber); }

/* light: hairline on dark grounds */
.btn--light {
  --btn-fg: var(--cream);
  --btn-bd: rgba(239,230,210,.55);
  --btn-fill: var(--cream);
  --btn-fg-hover: var(--night);
}
.btn--light:hover, .btn--light:focus-visible { border-color: var(--cream); }

.btn-arrow { transition: transform .45s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* text link with animated underline */
.tlink {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 5px; position: relative;
}
.tlink::before {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; opacity: .28;
}
.tlink::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.tlink:hover::after, .tlink:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.tlink--light, .bg-night .tlink, .band .tlink { color: var(--cream); }

/* --- header ------------------------------------------------------------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--hdr-h);
  display: flex; align-items: center;
  transition: transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.hdr::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,15,10,.62), rgba(20,15,10,0));
  transition: opacity .5s var(--ease);
}
.hdr.is-solid {
  background: var(--bark);
  box-shadow: 0 1px 0 var(--umber);
}
.hdr.is-solid::before { opacity: 0; }

.hdr__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; }
/* the wordmark is always white: over the hero photograph and on the bark bar */
.brand__mark {
  width: auto; height: clamp(42px, 4.4vw, 58px); max-width: 160px;
  object-fit: contain; filter: brightness(0) invert(1);
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 2.1rem); }
.nav__link {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  color: var(--cream); padding-block: .4rem; position: relative; white-space: nowrap;
  transition: color .35s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}

.hdr__side { display: flex; align-items: center; gap: clamp(.8rem, 1.4vw, 1.6rem); flex: 0 0 auto; }

.hdr__tel {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .76rem; letter-spacing: .1em; color: var(--cream); white-space: nowrap;
}
.hdr__tel svg { width: 15px; height: 15px; flex: none; }

/* language switch */
.lang {
  display: flex; align-items: center; gap: .1rem;
  font-size: .7rem; letter-spacing: .16em; color: var(--cream-dim);
}
.lang a { color: var(--cream-dim); padding: .35rem .45rem; transition: color .3s var(--ease); }
.lang a:hover { color: var(--cream); }
.lang a[aria-current] { color: var(--cream); }
.lang span { opacity: .5; color: currentColor; }

/* burger */
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0;
  cursor: pointer; position: relative;
}
.burger span {
  position: absolute; left: 11px; width: 22px; height: 1px; background: var(--cream);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 27px; }
body.nav-open .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--moss);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--hdr-h) + 2rem) var(--gut) 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
  overflow-y: auto;
}
.drawer__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .12; mix-blend-mode: luminosity; pointer-events: none;
}
body.nav-open .drawer { opacity: 1; visibility: visible; }
.drawer__nav { position: relative; display: flex; flex-direction: column; gap: .15rem; }
.drawer__nav a {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.6rem, 1.1rem + 2.6vw, 2.5rem);
  color: var(--cream); padding-block: .3rem; opacity: 0; transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
body.nav-open .drawer__nav a { opacity: 1; transform: none; }
.drawer__nav a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.drawer__foot {
  position: relative; margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
  color: var(--cream); font-size: .82rem; letter-spacing: .08em;
}
.drawer__foot a:hover { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 1120px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 620px) { .hdr__tel span { display: none; } }

/* --- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(560px, 100svh, 1000px);
  display: grid; place-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--cream);
  text-align: center;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--zoom .hero__media img { animation: kenburns 26s var(--ease) both; }
@keyframes kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }

/* warm espresso scrim; the grain utility lays its noise on top of it */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(78% 62% at 50% 52%, rgba(36,28,21,.26) 0%, rgba(36,28,21,0) 100%),
    linear-gradient(180deg,
      rgba(36,28,21,.58) 0%,
      rgba(36,28,21,.72) 46%,
      rgba(36,28,21,.82) 100%);
}
.hero__inner {
  position: relative;
  padding: calc(var(--hdr-h) + 3rem) var(--gut) clamp(4rem, 8vh, 7rem);
  max-width: 1100px; width: 100%;
}

/* crest flanked by the founding line, composed as one row */
.hero__estd {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  margin-bottom: clamp(1.4rem, 3vh, 2.4rem);
  font-family: var(--sans); font-size: var(--fs-micro); font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase; color: var(--cream-dim);
}
.hero__estd span { display: block; }
.hero__crest {
  height: clamp(46px, 4.4vw, 60px); width: auto; margin: 0 auto;
  filter: brightness(0) invert(1); opacity: .95;
}
.hero__estd .hero__crest { margin: 0; flex: none; }

.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: var(--fs-hero); line-height: .98;
  letter-spacing: .12em; text-transform: uppercase;
  text-indent: .12em; /* balance the trailing letter-space */
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
.hero__spread {
  max-width: 680px; margin: clamp(1.4rem, 3vh, 2.2rem) auto 0;
  color: var(--cream);
  padding-block: .9rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.hero__spread span { display: block; }
.hero__sub {
  margin-top: clamp(.8rem, 2vh, 1.4rem); letter-spacing: .34em;
  font-size: var(--fs-micro); text-transform: uppercase; color: var(--cream);
}
.hero__lead {
  margin: clamp(1.4rem, 3vh, 2rem) auto 0; max-width: 54ch;
  font-family: var(--serif); font-weight: 300; font-size: var(--fs-lead);
  color: var(--cream);
}
.hero__cta { margin-top: clamp(2rem, 4vh, 3rem); display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(1.4rem, 4vh, 2.6rem); translate: -50% 0;
  display: grid; place-items: center; gap: .7rem;
  font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--cream-dim);
}
.hero__scroll i {
  display: block; width: 1px; height: 46px; background: rgba(239,230,210,.4); position: relative; overflow: hidden;
}
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--cream);
  animation: scrolldot 2.4s var(--ease) infinite;
}
@keyframes scrolldot { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* page banner (inner pages) */
.banner {
  position: relative; isolation: isolate; color: var(--cream); text-align: center;
  min-height: clamp(380px, 62vh, 640px);
  display: grid; place-items: center; overflow: hidden;
}
.banner__media { position: absolute; inset: 0; z-index: -2; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(36,28,21,.66), rgba(36,28,21,.72) 55%, rgba(36,28,21,.84));
}
.banner__inner { padding: calc(var(--hdr-h) + 3.5rem) var(--gut) clamp(3rem, 6vh, 4.5rem); max-width: 1000px; }
.banner__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4.4rem); line-height: 1.04;
  letter-spacing: .08em; text-transform: uppercase; text-indent: .08em;
  text-shadow: 0 2px 36px rgba(0,0,0,.35);
}
.banner__lead {
  margin: 1.2rem auto 0; max-width: 58ch;
  font-family: var(--serif); font-weight: 300; font-size: var(--fs-lead); color: var(--cream);
}

/* breadcrumb */
.crumbs {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 1.1rem;
}
.crumbs a:hover { text-decoration: underline; text-underline-offset: .25em; }
.crumbs span { opacity: .55; padding-inline: .45rem; }

/* --- signature: offset framed image ------------------------------------- */
.framed { position: relative; }
.framed img { position: relative; z-index: 1; width: 100%; }
.framed::before {
  content: ""; position: absolute; z-index: 0;
  inset: auto auto -22px -22px; width: 62%; height: 74%;
  border: 1px solid var(--gilt);
}
.framed--tr::before { inset: -22px -22px auto auto; }
@media (max-width: 700px) { .framed::before { inset: auto auto -14px -14px; } .framed--tr::before { inset: -14px -14px auto auto; } }

.img-cap {
  margin-top: .9rem; font-size: .72rem; letter-spacing: .18em;
  color: var(--ink-soft); text-transform: uppercase;
}

/* --- split section ------------------------------------------------------ */
.split {
  display: grid; gap: clamp(2.4rem, 5vw, 5.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-l { grid-template-columns: 1.15fr .85fr; }
  .split--wide-r { grid-template-columns: .85fr 1.15fr; }
  .split--flip > :first-child { order: 2; }
}
.split__body { max-width: 56ch; }
.split__body h2, .split__body h3 { margin-bottom: .2em; }

/* --- paper intro (ghost letters behind) --------------------------------- */
.intro { position: relative; overflow: hidden; }
.intro::before {
  /* faint warm vignette; paper sections may carry one at ≤3% */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 40%, transparent 45%, rgba(41,32,25,.03) 100%);
}
.intro .wrap { position: relative; z-index: 2; }

/* --- offer duo (home) --------------------------------------------------- */
.duo { display: grid; grid-template-columns: 1fr; }
@media (min-width: 820px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo__item {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(430px, 62vh, 720px);
  display: grid; place-items: center; text-align: center; color: var(--cream);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
}
.duo__item img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease);
}
.duo__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(80% 70% at 50% 50%, rgba(36,28,21,.22) 0%, rgba(36,28,21,0) 100%),
    linear-gradient(180deg, rgba(36,28,21,.6), rgba(36,28,21,.86));
  transition: background .6s var(--ease);
}
.duo__item:hover img { transform: scale(1.055); }
.duo__item:hover::before {
  background:
    radial-gradient(80% 70% at 50% 50%, rgba(36,28,21,.26) 0%, rgba(36,28,21,0) 100%),
    linear-gradient(180deg, rgba(36,28,21,.66), rgba(36,28,21,.9));
}
.duo__body { position: relative; z-index: 2; }
.duo__title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 2rem + 5.4vw, 7rem); line-height: 1;
  text-shadow: 0 2px 40px rgba(0,0,0,.35);
}
/* the line beneath the signature word: a sentence, set as a sentence */
.duo__text {
  margin: 1.3rem auto 0; max-width: 34ch;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.05rem, 1rem + .2vw, 1.15rem);
  line-height: 1.6; letter-spacing: 0; text-transform: none;
  color: var(--cream);
}
.duo__cta { margin-top: 2.2rem; }

/* --- typographic collage (the page's authored moment) -------------------- */
.collage { position: relative; overflow: hidden; }
.collage__stage { position: relative; }
.collage__word {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(5rem, 4rem + 12vw, 13rem);
  line-height: .86; letter-spacing: -.01em;
  text-transform: uppercase; text-align: center; white-space: nowrap;
  color: var(--ink);
}
.collage__script {
  position: absolute; z-index: 4;
  right: clamp(.5rem, 7vw, 7.5rem); bottom: -.06em;
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.6rem, 1.5rem + 5vw, 6.5rem); line-height: 1;
  color: rgba(41,32,25,.9); pointer-events: none;
}
.collage__trio {
  position: relative; z-index: 3;
  max-width: 1040px; margin-inline: auto;
  margin-top: clamp(-2.4rem, -.5rem - 1vw, -.6rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(.6rem, 1.6vw, 1.4rem);
  align-items: start;
}
.collage__trio figure { overflow: hidden; }
.collage__trio img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
/* the middle plate stands taller and rides a little higher (PALIA DIO trio) */
.collage__trio > :nth-child(2) { translate: 0 -9%; }
.collage__trio > :nth-child(2) img { aspect-ratio: 3 / 4.5; }
.collage__foot { position: relative; z-index: 3; margin-top: clamp(2.6rem, 5vw, 4.5rem); text-align: center; }
.collage__line {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: var(--fs-lead); line-height: 1.5;
  max-width: 46ch; margin-inline: auto; color: var(--ink);
}
.collage__foot .tlink { margin-top: 1.8rem; }
@media (max-width: 700px) {
  /* absolute placement cannot clear the viewport edge at this width */
  .collage__script {
    position: static; display: block; text-align: right;
    margin-top: .05em; font-size: clamp(2.2rem, 1.2rem + 5vw, 3.6rem);
  }
  /* with the signature back in the flow the plates must not ride over it */
  .collage__trio { margin-top: clamp(.7rem, 2.4vw, 1.4rem); }
}

/* --- stats -------------------------------------------------------------- */
.stats {
  display: grid; gap: clamp(1.6rem, 3vw, 2.6rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding-inline: .5rem; }
.stat__n {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 1.6rem + 3.2vw, 4.4rem);
  line-height: 1; letter-spacing: -.01em; color: var(--ink);
}
.stat__n sup { font-size: .42em; vertical-align: super; }
.stat__l {
  margin-top: .8rem; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.stats--divided .stat + .stat { border-left: 1px solid var(--line-paper); }
@media (max-width: 799px) { .stats--divided .stat:nth-child(odd) { border-left: 0; } }

/* --- feature band (full bleed image + text) ----------------------------- */
.band {
  position: relative; isolation: isolate; color: var(--cream); overflow: hidden;
  min-height: clamp(480px, 78vh, 820px);
  display: grid; align-items: center;
}
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(36,28,21,.9) 0%, rgba(36,28,21,.72) 46%, rgba(36,28,21,.34) 82%),
    rgba(36,28,21,.24);
}
.band--right::before {
  background:
    linear-gradient(270deg, rgba(36,28,21,.9) 0%, rgba(36,28,21,.72) 46%, rgba(36,28,21,.34) 82%),
    rgba(36,28,21,.24);
}
.band--center::before { background: linear-gradient(180deg, rgba(36,28,21,.66), rgba(36,28,21,.82)); }
.band h2, .band .lead, .band p { text-shadow: 0 1px 22px rgba(0,0,0,.4); }
.band .lead, .band .prose { color: var(--cream); }
.band__body { max-width: 54ch; padding-block: clamp(3.5rem, 8vh, 6rem); position: relative; z-index: 2; }
.band--right .band__body { margin-left: auto; }
.band--center { text-align: center; }
.band--center .band__body { margin-inline: auto; }

/* --- gallery ------------------------------------------------------------ */
.filters {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.filters button {
  border: 1px solid var(--line-paper); background: transparent; cursor: pointer;
  padding: .62rem 1.4rem; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); transition: color .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.filters button:hover { border-color: var(--ink); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid {
  display: grid; gap: clamp(.5rem, 1.1vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  grid-auto-flow: dense;
}
.grid__item {
  position: relative; overflow: hidden; background: var(--parch);
  aspect-ratio: 3 / 2; cursor: zoom-in; border: 0; padding: 0; display: block; width: 100%;
}
.grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.grid__item::after {
  content: ""; position: absolute; inset: 0; background: rgba(36,28,21,.22);
  opacity: 0; transition: opacity .45s var(--ease);
}
.grid__item:hover img, .grid__item:focus-visible img { transform: scale(1.06); }
.grid__item:hover::after, .grid__item:focus-visible::after { opacity: 1; }
.grid__item--tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.grid__item--wide { grid-column: span 2; }
@media (max-width: 620px) { .grid__item--wide { grid-column: span 1; } .grid__item--tall { grid-row: span 1; aspect-ratio: 3/2; } }
.grid__item[hidden] { display: none; }

/* Masonry for the main gallery: mixed portrait and landscape photographs sit
   at their true proportions with no leftover holes. */
.masonry {
  columns: 4 260px;
  column-gap: clamp(.5rem, 1.1vw, 1rem);
}
.masonry .grid__item {
  aspect-ratio: auto;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: clamp(.5rem, 1.1vw, 1rem);
}
.masonry .grid__item img { height: auto; }
@media (max-width: 620px) { .masonry { columns: 2 140px; } }

/* horizontal scroll strip */
.strip {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 26vw, 380px);
  gap: clamp(.6rem, 1.2vw, 1.1rem);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  padding-bottom: 1.2rem;
  scrollbar-color: var(--gilt) rgba(239,230,210,.12);
}
.strip > * { scroll-snap-align: start; cursor: zoom-in; }
.strip img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.strip::-webkit-scrollbar { height: 4px; }
.strip::-webkit-scrollbar-thumb { background: var(--gilt); }
.strip::-webkit-scrollbar-track { background: rgba(239,230,210,.12); }

/* --- lightbox ----------------------------------------------------------- */
.lb {
  position: fixed; inset: 0; z-index: 120; display: none;
  background: rgba(26,20,15,.97);
  align-items: center; justify-content: center;
}
.lb[open], .lb.is-open { display: flex; }
.lb__img { max-width: min(94vw, 1500px); max-height: 84svh; width: auto; height: auto; object-fit: contain; }
.lb__cap {
  position: absolute; left: 50%; bottom: 3.4rem; translate: -50% 0;
  color: var(--cream-dim); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
}
.lb__btn {
  position: absolute; background: none; border: 1px solid rgba(239,230,210,.3); color: var(--cream);
  width: 52px; height: 52px; cursor: pointer; display: grid; place-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.lb__btn:hover { background: rgba(239,230,210,.1); border-color: var(--cream); }
.lb__close { top: 1.4rem; right: 1.4rem; }
.lb__prev { left: 1.4rem; top: 50%; translate: 0 -50%; }
.lb__next { right: 1.4rem; top: 50%; translate: 0 -50%; }
.lb__btn svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .lb__prev { left: .6rem; } .lb__next { right: .6rem; }
  .lb__btn { width: 44px; height: 44px; }
}

/* --- timeline ----------------------------------------------------------- */
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: 0; top: .6rem; bottom: .6rem; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-paper) 8%, var(--line-paper) 92%, transparent);
}
@media (min-width: 900px) { .tl::before { left: 190px; } }
.tl__item { position: relative; padding-left: 2.2rem; padding-block: clamp(1.6rem, 3vw, 2.6rem); }
@media (min-width: 900px) {
  .tl__item { display: grid; grid-template-columns: 190px 1fr; gap: 3.2rem; padding-left: 0; }
  .tl__item > * { min-width: 0; }
}
.tl__year {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); color: var(--ink);
  line-height: 1.1; margin-bottom: .5rem;
}
@media (min-width: 900px) { .tl__year { text-align: right; padding-right: 3.2rem; margin-bottom: 0; } }
.tl__item::before {
  content: ""; position: absolute; left: -4px; top: calc(clamp(1.6rem, 3vw, 2.6rem) + .55rem);
  width: 9px; height: 9px; background: var(--parch); border: 1px solid var(--gilt); rotate: 45deg;
}
@media (min-width: 900px) { .tl__item::before { left: 186px; } }
.tl__body h3 { font-size: var(--fs-h4); margin-bottom: .5rem; }
.tl__body p { color: var(--ink-soft); max-width: 60ch; }

/* --- cards -------------------------------------------------------------- */
.cards { display: grid; gap: clamp(1.4rem, 2.6vw, 2.4rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card {
  display: flex; flex-direction: column;
  background: var(--parch); border: 1px solid var(--line-paper);
  transition: border-color .4s var(--ease), transform .5s var(--ease);
}
.card:hover { border-color: var(--gilt); transform: translateY(-4px); }
.card__media { overflow: hidden; aspect-ratio: 4/3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: clamp(1.3rem, 2vw, 1.9rem); display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card__date {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}
/* reserve two lines so the body copy lines up across a row of cards even when
   one title wraps and the others do not */
.card__title { font-size: var(--fs-h4); min-height: 2.44em; }
@media (max-width: 620px) { .card__title { min-height: 0; } }
.card__text { font-size: .94rem; color: var(--ink-soft); }
.card__more { margin-top: auto; padding-top: .8rem; }

/* feature list */
.flist { display: grid; gap: clamp(1.6rem, 3vw, 2.6rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
/* six items read better as 2 x 3 than as 4 + 2 */
@media (min-width: 900px) { .flist--3 { grid-template-columns: repeat(3, 1fr); } }
.flist__item { padding-top: 1.5rem; border-top: 1px solid var(--line-paper); }
.flist__item h3, .flist__item h4 {
  margin-bottom: .7rem; color: var(--ink);
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1rem, .94rem + .3vw, 1.18rem);
  text-transform: uppercase; letter-spacing: .14em; line-height: 1.4;
}
.flist__item p { font-size: .95rem; color: var(--ink-soft); }

/* --- video -------------------------------------------------------------- */
.vgrid { display: grid; gap: clamp(1.2rem, 2.4vw, 2.2rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.vcard { position: relative; background: var(--night); overflow: hidden; aspect-ratio: 16/9; }
.vcard video, .vcard img { width: 100%; height: 100%; object-fit: cover; }
.vcard__btn {
  position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(36,28,21,.3); border: 0; transition: background .4s var(--ease);
}
.vcard__btn:hover { background: rgba(36,28,21,.14); }
.vcard__btn i {
  width: 74px; height: 74px; border: 1px solid rgba(239,230,210,.8); border-radius: 50%;
  display: grid; place-items: center; transition: transform .45s var(--ease), background .4s var(--ease);
}
.vcard__btn:hover i { transform: scale(1.08); background: rgba(239,230,210,.16); }
.vcard__btn svg { width: 20px; height: 20px; fill: var(--cream); margin-left: 3px; }
.vcard.is-playing .vcard__btn { display: none; }

/* --- forms -------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; gap: 1.1rem; }
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--sans); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.field input, .field textarea, .field select {
  width: 100%; padding: .95rem 1.1rem;
  background: var(--paper); border: 1px solid var(--line-paper); border-radius: 0;
  font-size: .98rem; font-weight: 300; color: var(--ink);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(165,133,78,.18);
}
.field textarea { min-height: 148px; resize: vertical; }
.field--check { display: flex; align-items: flex-start; gap: .75rem; }
.field--check input { width: 18px; height: 18px; flex: none; margin-top: .28rem; accent-color: var(--ink); }
.field--check label { font-size: .82rem; letter-spacing: 0; text-transform: none; color: var(--ink-soft); line-height: 1.55; }
.field--check label a { border-bottom: 1px solid var(--gilt); }
.form__note { font-size: .78rem; color: var(--ink-soft); }
.form__msg {
  display: none; padding: 1rem 1.2rem;
  border: 1px solid var(--line-paper); background: var(--parch);
  font-size: .92rem; color: var(--ink);
}
.form__msg.is-on { display: block; }

/* --- contact ------------------------------------------------------------ */
.ctile { display: grid; gap: .5rem; padding-top: 1.4rem; border-top: 1px solid var(--line-paper); }
.ctile__label {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--ink-soft);
}
.ctile__name { font-family: var(--serif); font-weight: 400; font-size: var(--fs-h4); }
.ctile__role { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.ctile a { display: inline-block; transition: color .3s var(--ease); }
.ctile a:hover { color: var(--ink-soft); }

.map-frame { border: 1px solid var(--line-paper); background: var(--parch); aspect-ratio: 16/10; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map-frame { aspect-ratio: 4/3; } }

/* virtual tour embed */
.tour { border: 1px solid var(--line-paper); background: var(--night); position: relative; }
.tour iframe { width: 100%; height: min(84svh, 900px); min-height: 440px; border: 0; display: block; }

/* --- CTA menu card ------------------------------------------------------
   Sits above the footer on every page: a cream card on the dark ground,
   ruled twice in gilt like the menu on a laid table.
   ---------------------------------------------------------------------- */
.cta {
  background: var(--night);
  padding-block: clamp(3.5rem, 6vw, 6rem);
}
.menucard {
  max-width: 640px; margin-inline: auto;
  background: var(--paper); color: var(--ink);
  padding: clamp(2.2rem, 4vw, 3.4rem) clamp(1.6rem, 3.5vw, 3.2rem);
  text-align: center;
  border: 1px solid var(--gilt);
  outline: 1px solid var(--gilt);
  outline-offset: -7px;
}
.menucard__crest { width: clamp(54px, 6vw, 70px); margin: 0 auto clamp(1.2rem, 2.5vw, 1.8rem); opacity: .9; }
.menucard__h {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.7rem);
  text-transform: uppercase; letter-spacing: .14em; line-height: 1.35;
  max-width: 22ch; margin-inline: auto;
}
.menucard__lines {
  margin-top: 1.2rem; font-size: .95rem; line-height: 1.9; color: var(--ink-soft);
}
.menucard__lines a { transition: color .3s var(--ease); }
.menucard__lines a:hover { color: var(--ink); }
.menucard__cta { margin-top: 1.8rem; }
.menucard__spread {
  margin-top: clamp(1.8rem, 3vw, 2.6rem); padding-top: 1.2rem;
  border-top: 1px solid var(--line-paper);
  color: var(--ink-soft); justify-content: center; gap: .4rem 2.2rem;
}

/* --- footer ------------------------------------------------------------- */
.ftr { background: var(--night); color: var(--cream-dim); padding-top: clamp(3.5rem, 6vw, 6rem); }
.ftr a { transition: color .3s var(--ease); }
.ftr a:hover { color: var(--cream); }
.ftr__top {
  display: grid; gap: clamp(2.2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 760px) { .ftr__top { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1100px) { .ftr__top { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; } }
.ftr__mark { width: 150px; filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1.4rem; }
/* footer column labels (navigation labels, not document headings) */
.ftr__label {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gilt-bright); font-weight: 400; margin-bottom: 1.1rem;
}
/* the footer lists carry no class, so the ul[class] reset above skips them */
.ftr ul { display: grid; gap: .55rem; list-style: none; padding: 0; margin: 0; }
.ftr li { font-size: .92rem; }
.ftr p { font-size: .92rem; line-height: 1.7; }
.ftr__social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.ftr__social a {
  width: 42px; height: 42px; border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.ftr__social a:hover { border-color: var(--gilt-bright); background: rgba(239,230,210,.06); }
.ftr__social svg { width: 16px; height: 16px; fill: currentColor; }
.ftr__bot {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--cream-dim);
}
.ftr__bot nav { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; }

/* --- cookie banner ------------------------------------------------------ */
.cookie {
  position: fixed; left: clamp(.7rem, 2vw, 1.6rem); bottom: clamp(.7rem, 2vw, 1.6rem);
  z-index: 130; width: min(420px, calc(100vw - 1.4rem));
  background: var(--paper); border: 1px solid var(--line-paper);
  color: var(--ink);
  padding: clamp(1.1rem, 2vw, 1.5rem);
  display: none;
}
.cookie.is-on { display: block; animation: cookiein .55s var(--ease) both; }
@keyframes cookiein { from { opacity: 0; transform: translateY(14px); } }
.cookie__h {
  font-family: var(--serif); font-weight: 400; font-size: 1rem;
  text-transform: uppercase; letter-spacing: .14em; line-height: 1.3;
  margin-bottom: .5rem; color: var(--ink);
}
.cookie p { font-size: .85rem; line-height: 1.55; color: var(--ink-soft); }
.cookie p a { border-bottom: 1px solid var(--gilt); }
.cookie__row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.cookie__row .btn { min-height: 44px; padding: .6rem 1rem; font-size: .64rem; letter-spacing: .16em; flex: 1 1 auto; }

/* --- reveal animations --------------------------------------------------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.is-in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .09s; } .rv-d2 { transition-delay: .18s; } .rv-d3 { transition-delay: .27s; }

/* Image reveal. The scale happens on the <img> inside an overflow-hidden box,
   never via clip-path on the figure: a fully clipped element stops Chrome from
   ever running the lazy load for the image it contains. */
.rv-img .framed__box { display: block; overflow: hidden; position: relative; z-index: 1; }
.rv-img img { transform: scale(1.07); opacity: 0; transition: transform 1.4s var(--ease), opacity 1s var(--ease); }
.rv-img.is-in img { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .rv { opacity: 1; transform: none; }
  .rv-img img { opacity: 1; transform: none; }
  .hero--zoom .hero__media img { animation: none; }
}

/* --- utility spacing and grounds ---------------------------------------- */
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 1.9rem; }
.mt-4 { margin-top: 2.8rem; } .mt-5 { margin-top: clamp(3rem, 5vw, 4.5rem); }
.bg-cream { background: var(--parch); }
.bg-blush { background: var(--parch); }
.bg-paper { background: var(--paper); }
.bg-night { background: var(--night); color: var(--cream); }
.bg-night h2, .bg-night h3, .bg-night h4 { color: var(--cream); }
.bg-night .lead, .bg-night p { color: var(--cream-dim); }
.bg-night .fleuron { color: var(--gilt-bright); }
.full-bleed { width: 100vw; margin-left: 50%; translate: -50% 0; }

/* print */
@media print {
  .hdr, .drawer, .cookie, .hero__scroll, .ftr__social { display: none !important; }
  body { color: #000; background: #fff; }
  .grain::after, .ghost { display: none !important; }
}

/* --- editorial index ----------------------------------------------------
   An editorial index rather than a cascade: three static rows separated by
   hairlines, each one engraved title / serif column / photograph. Rows are
   not cards — no frames, no grounds, no shadows.
   ---------------------------------------------------------------------- */
.idx { border-top: 1px solid var(--line-paper); }

.idx__row {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(1.1rem, 2.4vw, 1.7rem);
  align-items: start;
  padding-block: clamp(2rem, 4vw, 3.4rem);
  border-bottom: 1px solid var(--line-paper);
}
@media (min-width: 900px) {
  .idx__row {
    grid-template-columns: 1fr 1.4fr minmax(260px, .9fr);
    gap: clamp(1.8rem, 3.4vw, 3.4rem);
  }
  /* Photograph sits right on every row. The DOM order is the mobile order
     (title, photo, body), so the columns are assigned explicitly here —
     grid-row is required too, or sparse auto-placement drops the body,
     which comes after the photo in the DOM, into a second implicit row. */
  .idx__title { grid-column: 1; grid-row: 1; }
  .idx__body  { grid-column: 2; grid-row: 1; }
  .idx__media { grid-column: 3; grid-row: 1; }
}

.idx__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem);
  text-transform: uppercase; letter-spacing: .13em; line-height: 1.25;
  color: var(--ink);
}
/* lift the caps by their extra half-leading so the title's first line sits
   on the body's first line (measured: ~.06em of the title's own size) */
@media (min-width: 900px) { .idx__title { margin-top: -.06em; } }

.idx__body {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.04rem, 1rem + .3vw, 1.2rem); line-height: 1.55;
  color: var(--ink-soft); max-width: 44ch;
}
.idx__body p + p { margin-top: clamp(1.1rem, 2vw, 1.5rem); }

.idx__media { overflow: hidden; }
.idx__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.idx__row:hover .idx__media img { transform: scale(1.04); }

/* --- page transition ----------------------------------------------------
   Osmo page-name wipe. A moss panel sweeps up over the leaving page, names
   the destination in the script face, then keeps going to reveal it.
   ---------------------------------------------------------------------- */
.transition {
  z-index: 100;
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: clip;
}
.transition__panel {
  background-color: var(--moss);
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  visibility: hidden;
}
.transition__label {
  font-family: var(--script);
  color: var(--cream);
  font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem);
  line-height: 1;
  text-align: center;
  padding-inline: 1.5rem;
}

/* Barba parks the incoming container at position:fixed mid-transition, so the
   ground behind it must not flash white. */
[data-barba="container"] { background: var(--bg); }
