/* ============================================================
   Hotel Rural Son Terrassa — "The long look"
   Concept: a calm marès-stone hotel whose whole identity is the
   terrace at the end of the day, where the plain runs uninterrupted
   to a far line of coast. The site is built around a single fine
   HORIZON SIGHTLINE + a distance MARK that names how far the eye travels.
   Signature motif: the sightline (hairline + open-ring distance mark + ticks).
   Palette (warm STONE dominant; far blue ONLY as the horizon haze):
     honey marès, terrace ochre/terracotta, bougainvillea glint, lime cream,
     warm ink — and a single distant horizon-blue reserved for the sightline.
   Display: Libre Baskerville (classic transitional serif). Body: Inter.
   Edge: classic — hairline rules, restrained radii, serif numerals.
   ============================================================ */

:root{
  /* ---- palette (warm stone dominant) ---- */
  --mares:    #b9874e;   /* honey marès stone — the identity colour */
  --mares-deep:#9c6c38;
  --ochre:    #c98a4b;   /* sun-warmed terrace ochre */
  --terra:    #8c4a2f;   /* terracotta paving / shadowed clay */
  --terra-deep:#703725;
  --bougain:  #b0506a;   /* bougainvillea — a rare warm glint only */
  --olive:    #7c7a54;   /* dry olive/almond foliage (warm, not green-led) */
  --cream:    #f6efe2;   /* lime-wash paper */
  --cream-2:  #efe5d3;
  --sand:     #e4d6bd;   /* pale marès highlight */
  --ink:      #33291f;   /* warm dark brown text */
  --ink-soft: #6e5f4f;
  --ink-faint:#937f68;

  /* the ONLY blue — the haze on the far horizon line. Never UI/brand. */
  --far-blue: #7d93a3;
  --far-blue-soft:#9fb1bd;

  --paper: var(--cream);
  --line: color-mix(in srgb, var(--ink) 15%, transparent);
  --line-soft: color-mix(in srgb, var(--ink) 9%, transparent);

  /* ---- type ---- */
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- rhythm ---- */
  --pad: clamp(20px, 5.5vw, 92px);
  --maxw: 1180px;
  --maxw-text: 980px;
  --r: 3px;            /* classic, restrained radius */
  --r-lg: 5px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }
#house,#view,#rooms,#gallery,#setting,#book{ scroll-margin-top:84px; }

body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--paper);
  font-size:17px;
  line-height:1.62;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;            /* belt-and-braces vs. 390px overflow */
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; }
h1,h2,h3{ margin:0; font-weight:400; }
p{ margin:0 0 1em; }
:focus-visible{ outline:2.5px solid var(--terra); outline-offset:3px; border-radius:2px; }

/* display headings: never shatter a word one-letter-per-line */
.hero__title,.house__title,.view__title,.rooms__title,.gallery__title,.setting__title,.book__title{
  font-family:var(--serif);
  font-weight:700;
  line-height:1.08;
  letter-spacing:-.006em;
  word-break:keep-all;
  overflow-wrap:normal;
  hyphens:none;
}

.skip{
  position:absolute; left:-999px; top:0; z-index:200;
  background:var(--ink); color:var(--cream); padding:12px 18px; border-radius:0 0 var(--r) 0;
  font-size:.85rem;
}
.skip:focus{ left:0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn{
  --bh:48px;
  display:inline-flex; align-items:center; justify-content:center;
  min-height:var(--bh); padding:0 22px;
  font-family:var(--sans); font-weight:600; font-size:.92rem; letter-spacing:.012em;
  text-decoration:none; border-radius:var(--r); cursor:pointer;
  border:1.5px solid transparent;
  transition:transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space:nowrap;
}
.btn--lg{ --bh:52px; padding:0 28px; font-size:.98rem; }
.btn--xl{ --bh:56px; padding:0 34px; font-size:1.02rem; }
.btn--solid{ background:var(--terra); color:var(--cream); }
.btn--solid:hover{ background:var(--terra-deep); transform:translateY(-2px); }
.btn--line{ border-color:currentColor; color:var(--ink); background:transparent; }
.btn--line:hover{ border-color:var(--terra); color:var(--terra); transform:translateY(-2px); }

/* ============================================================
   Kicker + serif numerals (the section register)
   ============================================================ */
.kicker{
  display:flex; align-items:center; gap:.7em;
  font-family:var(--sans); font-weight:600;
  font-size:.72rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--terra); margin:0 0 1.2em;
}
.kicker--light{ color:color-mix(in srgb,var(--cream) 88%,var(--ochre)); }
.kicker__no{
  font-family:var(--serif); font-weight:700; font-size:1rem; letter-spacing:.02em;
  line-height:1; color:currentColor;
  padding-right:.7em; border-right:1px solid currentColor;
}

/* ============================================================
   THE SIGHTLINE — signature motif primitives
   (kept as inline light-DOM SVG; never <use> across a shadow boundary)
   ============================================================ */
.sight__line{ stroke:color-mix(in srgb,var(--cream) 82%,var(--far-blue)); stroke-width:1; vector-effect:non-scaling-stroke; }
.sight__tick{ stroke:color-mix(in srgb,var(--cream) 64%,transparent); stroke-width:1; vector-effect:non-scaling-stroke; }
.sight__mark{ fill:none; stroke:var(--cream); stroke-width:1.4; vector-effect:non-scaling-stroke; }
.sight__stem{ stroke:var(--cream); stroke-width:1.4; vector-effect:non-scaling-stroke; }

/* ============================================================
   HEADER
   ============================================================ */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; gap:14px;
  padding:14px var(--pad);
  background:transparent;
  border-bottom:1px solid transparent;
  transition:background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-solid{
  background:color-mix(in srgb,var(--cream) 93%,transparent);
  backdrop-filter:saturate(140%) blur(10px);
  -webkit-backdrop-filter:saturate(140%) blur(10px);
  border-bottom-color:var(--line);
}
.nav__brand{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; color:var(--cream); margin-right:auto; min-height:44px; padding:4px 2px; }
.nav__mark{ display:inline-flex; color:var(--cream); transition:color .4s var(--ease); filter:drop-shadow(0 1px 5px rgba(40,24,12,.5)); }
.nav__brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.nav__name{ font-family:var(--serif); font-weight:700; font-size:1.16rem; color:var(--cream); letter-spacing:.005em; transition:color .4s var(--ease); text-shadow:0 1px 12px rgba(40,22,12,.4); }
.nav__sub{ font-family:var(--sans); font-size:.6rem; letter-spacing:.22em; text-transform:uppercase; color:color-mix(in srgb,var(--cream) 80%,transparent); margin-top:2px; transition:color .4s var(--ease); text-shadow:0 1px 8px rgba(40,22,12,.5); }
.nav.is-solid .nav__mark{ color:var(--terra); filter:none; }
.nav.is-solid .nav__name{ color:var(--ink); text-shadow:none; }
.nav.is-solid .nav__sub{ color:var(--ink-faint); text-shadow:none; }

.nav__links{ display:none; gap:28px; }
.nav__links a{
  text-decoration:none; color:var(--cream); font-weight:500; font-size:.9rem;
  position:relative; padding:4px 0; transition:color .4s var(--ease);
  text-shadow:0 1px 12px rgba(26,14,8,.6);
}
.nav__links a::after{
  content:""; position:absolute; left:0; bottom:-1px; height:1.5px; width:0; background:currentColor;
  transition:width .35s var(--ease);
}
.nav__links a:hover::after{ width:100%; }
.nav.is-solid .nav__links a{ color:var(--ink-soft); text-shadow:none; }
.nav.is-solid .nav__links a:hover{ color:var(--terra); }
.nav.is-solid .nav__links a::after{ background:var(--terra); }

.nav__right{ display:flex; align-items:center; gap:12px; }
.lang{ display:inline-flex; align-items:center; gap:3px; }
.lang__btn{
  border:0; background:transparent; cursor:pointer; padding:10px 6px; min-height:44px; min-width:34px;
  font-family:var(--sans); font-weight:700; font-size:.8rem; letter-spacing:.04em;
  color:color-mix(in srgb,var(--cream) 70%,transparent); transition:color .3s var(--ease);
}
.lang__btn.is-active{ color:var(--cream); }
.lang__btn:hover{ color:var(--cream); }
.lang__sep{ color:color-mix(in srgb,var(--cream) 45%,transparent); }
.nav.is-solid .lang__btn{ color:var(--ink-faint); }
.nav.is-solid .lang__btn.is-active{ color:var(--terra); }
.nav.is-solid .lang__btn:hover{ color:var(--ink); }
.nav.is-solid .lang__sep{ color:var(--line); }

.nav__book{ display:none; }
.nav__book{ border-color:color-mix(in srgb,var(--cream) 55%,transparent); color:var(--cream); }
.nav__book:hover{ border-color:var(--cream); color:var(--cream); background:color-mix(in srgb,#fff 14%,transparent); }
.nav.is-solid .nav__book{ border-color:var(--line); color:var(--ink); background:transparent; }
.nav.is-solid .nav__book:hover{ border-color:var(--terra); color:var(--terra); }

/* ============================================================
   HERO — full-bleed photo, warm scrim, big serif type, the sightline
   ============================================================ */
.hero{
  position:relative;
  min-height:100svh; min-height:100dvh;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:0 var(--pad) clamp(96px,18vh,150px);
  overflow:hidden;
  isolation:isolate;
}
.hero__media{ position:absolute; inset:0; z-index:-2; }
.hero__media img{ width:100%; height:100%; object-fit:cover; object-position:50% 52%; filter:saturate(1.06) contrast(1.03); }
.hero__scrim{
  position:absolute; inset:0; z-index:-1;
  background:
    /* warm pool under the type block */
    radial-gradient(140% 120% at 26% 116%, rgba(28,16,8,.84) 0%, rgba(28,16,8,.5) 40%, rgba(28,16,8,.16) 62%, transparent 76%),
    /* bottom-up warm rise so the whole headline sits on darkness */
    linear-gradient(to top, color-mix(in srgb,var(--terra-deep) 92%,#000 30%) 0%, color-mix(in srgb,var(--terra-deep) 60%,#000 14%) 24%, color-mix(in srgb,var(--terra-deep) 30%,#000 6%) 46%, color-mix(in srgb,var(--terra-deep) 12%,transparent) 66%, transparent 82%),
    /* light top veil so the nav reads against the bright sky */
    linear-gradient(to bottom, rgba(26,14,8,.42), rgba(26,14,8,.12) 14%, transparent 26%),
    /* gentle left weighting for the copy column */
    linear-gradient(to right, rgba(26,14,8,.46), rgba(26,14,8,.1) 52%, transparent 70%);
}

.hero__inner{ max-width:660px; position:relative; }
.hero__eyebrow{
  font-weight:600; font-size:.8rem; letter-spacing:.24em; text-transform:uppercase;
  color:var(--cream); margin:0 0 1em;
  display:inline-flex; align-items:center; gap:.7em;
  text-shadow:0 1px 2px rgba(26,13,8,.85), 0 2px 16px rgba(26,13,8,.7);
}
.hero__eyebrow::before{ content:""; width:32px; height:1.5px; background:color-mix(in srgb,var(--cream) 80%,transparent); display:inline-block; flex:none; box-shadow:0 1px 6px rgba(26,13,8,.5); }

.hero__title{
  color:var(--cream);
  font-size:clamp(2.5rem, 9.4vw, 5.9rem);
  margin:0 0 .42em;
  text-shadow:0 2px 26px rgba(26,13,8,.6), 0 1px 3px rgba(26,13,8,.5);
}
.hero__line{ display:block; }
.hero__line--accent{ color:var(--sand); font-style:italic; font-weight:400; text-shadow:0 2px 22px rgba(26,13,8,.72), 0 1px 4px rgba(26,13,8,.55); }

.hero__sub{
  color:var(--cream);
  font-size:clamp(1rem,2.3vw,1.18rem); line-height:1.55; max-width:42ch;
  margin:0 0 1.9em;
  text-shadow:0 1px 3px rgba(26,13,8,.7), 0 2px 16px rgba(26,13,8,.55);
}
.hero__cta{ display:flex; flex-wrap:wrap; gap:12px; }
.hero__cta .btn--line{
  border-color:color-mix(in srgb,var(--cream) 62%,transparent);
  color:var(--cream);
  background:color-mix(in srgb,#1a0d08 26%,transparent);
  -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);
  text-shadow:0 1px 10px rgba(26,13,8,.6);
}
.hero__cta .btn--line:hover{ background:color-mix(in srgb,#1a0d08 40%,transparent); border-color:var(--cream); color:var(--cream); }
.hero__cta .btn--solid{ box-shadow:0 12px 30px -14px rgba(26,13,8,.7); }

/* the sightline strip across the foot of the hero — the signature moment */
.hero__sight{
  position:absolute; left:var(--pad); right:var(--pad); bottom:clamp(46px,9vh,74px);
  z-index:2;
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:14px;
}
.hero__sight .sight{ display:block; height:36px; min-width:0; }
.sight__svg{ display:block; width:100%; height:36px; overflow:visible; }
.sight__label{
  font-family:var(--sans); font-size:.66rem; letter-spacing:.18em; text-transform:uppercase;
  color:color-mix(in srgb,var(--cream) 82%,transparent); white-space:nowrap;
  text-shadow:0 1px 8px rgba(26,13,8,.7);
}
.sight__label--far{ color:color-mix(in srgb,var(--cream) 92%,transparent); }
/* the mark draws itself in on load */
.sight__mark{ stroke-dasharray:60; stroke-dashoffset:60; }
.sight.is-in .sight__mark{ animation:drawMark 1.1s var(--ease) .25s forwards; }
@keyframes drawMark{ to{ stroke-dashoffset:0; } }

.hero__scroll{
  position:absolute; right:var(--pad); bottom:clamp(96px,18vh,150px);
  display:none; flex-direction:column; align-items:center; gap:8px;
  text-decoration:none; color:color-mix(in srgb,var(--cream) 86%,transparent);
  font-family:var(--sans); font-size:.66rem; letter-spacing:.2em; text-transform:uppercase;
  filter:drop-shadow(0 2px 6px rgba(35,20,12,.55));
}
.hero__scroll svg{ width:16px; height:26px; overflow:visible; }
.scroll-line{ stroke:currentColor; stroke-width:1.4; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.scroll-dot{ animation:scrollNudge 2s var(--ease) infinite; }
@keyframes scrollNudge{ 0%,100%{ transform:translateY(0); opacity:.5; } 50%{ transform:translateY(4px); opacity:1; } }

/* ============================================================
   THE HOUSE — cream, an editorial 3-part: lead / figure / ledger
   ============================================================ */
.house{
  padding:clamp(64px,11vw,150px) var(--pad);
  max-width:var(--maxw); margin-inline:auto;
  display:grid; gap:clamp(34px,6vw,72px);
}
.house__lead{ max-width:62ch; }
.house__title{ font-size:clamp(1.9rem,5vw,3rem); color:var(--terra); margin:.1em 0 .7em; max-width:20ch; }
.house__intro{ font-size:clamp(1.06rem,2vw,1.22rem); color:var(--ink); max-width:54ch; }
.house__p{ color:var(--ink-soft); max-width:56ch; }

.house__fig{ margin:0; position:relative; }
.house__fig img{
  width:100%; height:auto; border-radius:var(--r-lg);
  filter:saturate(.96) contrast(1.04);
  box-shadow:0 30px 60px -34px rgba(60,36,20,.55);
}
.house__fig figcaption{
  display:flex; align-items:baseline; gap:.8em; margin-top:1em;
  font-size:.84rem; color:var(--ink-soft);
}
.house__fig .tag{
  font-family:var(--serif); font-weight:700; font-size:.8rem; color:var(--terra);
  padding-right:.8em; border-right:1px solid var(--line); white-space:nowrap;
}

.ledger{ margin:0; border-top:1px solid var(--line); }
.ledger__row{
  display:grid; grid-template-columns:1fr; gap:.15em;
  padding:1em 0; border-bottom:1px solid var(--line);
}
.ledger__k{
  font-family:var(--sans); font-weight:600; font-size:.7rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-faint);
}
.ledger__v{ margin:0; font-family:var(--serif); font-size:1.16rem; color:var(--ink); line-height:1.3; }

/* ============================================================
   THE VIEW — full-bleed terrace photo, warm scrim, panel + the sightline
   The concept section: the long look, measured.
   ============================================================ */
.view{ position:relative; isolation:isolate; overflow:hidden; }
.view__media{ position:absolute; inset:0; z-index:-2; }
.view__media img{ width:100%; height:100%; object-fit:cover; object-position:50% 56%; filter:saturate(1.08) contrast(1.03); }
.view__scrim{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(to right, color-mix(in srgb,var(--terra-deep) 88%,#000 8%) 0%, color-mix(in srgb,var(--terra-deep) 52%,transparent) 46%, color-mix(in srgb,var(--terra-deep) 14%,transparent) 72%, transparent 88%),
    linear-gradient(to top, rgba(26,14,8,.5) 0%, transparent 36%);
}
.view__inner{
  max-width:var(--maxw); margin-inline:auto;
  padding:clamp(86px,17vw,180px) var(--pad) clamp(70px,10vw,120px);
}
.view__panel{ max-width:46ch; }
.view__title{ font-size:clamp(1.9rem,5.2vw,3.2rem); color:var(--cream); margin:0 0 .6em; text-shadow:0 2px 20px rgba(26,13,8,.5); }
.view__p{ color:color-mix(in srgb,var(--cream) 94%,transparent); text-shadow:0 1px 3px rgba(26,13,8,.6); max-width:48ch; }
.view__p--soft{ color:color-mix(in srgb,var(--cream) 82%,transparent); }

/* the full sightline, annotated with the stations of the view */
.view__sight{ margin-top:clamp(34px,5vw,56px); max-width:760px; }
.vsight__svg{ display:block; width:100%; height:56px; overflow:visible; }
.vsight__line{ stroke:color-mix(in srgb,var(--cream) 78%,var(--far-blue)); stroke-width:1; vector-effect:non-scaling-stroke; }
.vsight__tick{ stroke:color-mix(in srgb,var(--cream) 60%,transparent); stroke-width:1; vector-effect:non-scaling-stroke; }
.vsight__mark{ fill:none; stroke:var(--cream); stroke-width:1.4; vector-effect:non-scaling-stroke; stroke-dasharray:74; stroke-dashoffset:74; }
.vsight__stem{ stroke:var(--cream); stroke-width:1.4; vector-effect:non-scaling-stroke; }
.view__sight.is-in .vsight__mark{ animation:drawMark 1.2s var(--ease) .2s forwards; }
.view__sightlabels{
  display:flex; justify-content:space-between; gap:8px; margin-top:6px;
}
.view__sightlabels span{
  font-family:var(--sans); font-size:.6rem; letter-spacing:.14em; text-transform:uppercase;
  color:color-mix(in srgb,var(--cream) 78%,transparent); text-shadow:0 1px 6px rgba(26,13,8,.6);
  flex:1; text-align:center;
}
.view__sightlabels span:first-child{ text-align:left; }
.view__sightlabels span:last-child{ text-align:right; color:color-mix(in srgb,var(--cream) 92%,transparent); }

/* ============================================================
   ROOMS — cream, text-led list (photo-thin handled honestly)
   ============================================================ */
.rooms{ padding:clamp(64px,11vw,150px) var(--pad); max-width:var(--maxw); margin-inline:auto; }
.rooms__head{ max-width:64ch; margin:0 0 clamp(34px,5vw,56px); }
.rooms__title{ font-size:clamp(1.9rem,5vw,3rem); color:var(--terra); margin:.1em 0 .6em; max-width:18ch; }
.rooms__lede{ color:var(--ink-soft); max-width:56ch; }

.rooms__list{ display:grid; gap:0; border-top:1px solid var(--line); }
.room{
  display:grid; grid-template-columns:auto 1fr; gap:clamp(16px,3vw,40px);
  padding:clamp(26px,4vw,40px) 0; border-bottom:1px solid var(--line);
}
.room__no{
  font-family:var(--serif); font-weight:700; font-style:italic; font-size:1.5rem;
  color:var(--mares); margin:0; line-height:1; padding-top:.1em;
}
.room__name{ font-family:var(--serif); font-weight:700; font-size:clamp(1.3rem,2.6vw,1.7rem); color:var(--ink); margin:0 0 .45em; }
.room__txt{ color:var(--ink-soft); max-width:56ch; margin:0 0 1em; }
.room__meta{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5em .9em; }
.room__meta li{
  font-family:var(--sans); font-size:.74rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-faint);
  padding:.32em .8em; border:1px solid var(--line); border-radius:100px;
}

.rooms__note{
  margin:clamp(28px,4vw,44px) 0 0; max-width:62ch;
  color:var(--ink-soft); font-size:.96rem;
  display:flex; flex-wrap:wrap; align-items:baseline; gap:.4em 1em;
}
.link-tick{
  display:inline-flex; align-items:center; gap:.5em; min-height:44px;
  font-family:var(--sans); font-weight:600; font-size:.9rem; color:var(--terra);
  text-decoration:none; white-space:nowrap;
}
.link-tick::before{ content:""; width:26px; height:1.5px; background:currentColor; display:inline-block; transition:width .3s var(--ease); }
.link-tick:hover::before{ width:40px; }

/* ============================================================
   GALLERY — a small, honest set; warm framing, classic captions
   ============================================================ */
.gallery{
  background:
    radial-gradient(120% 90% at 82% 4%, color-mix(in srgb,var(--mares) 22%,var(--cream)), transparent 58%),
    var(--cream-2);
  padding:clamp(64px,11vw,150px) var(--pad);
}
.gallery__head{ max-width:var(--maxw); margin:0 auto clamp(34px,5vw,56px); }
.gallery__title{ font-size:clamp(1.9rem,5vw,2.9rem); color:var(--terra); margin:.1em 0 .55em; max-width:22ch; }
.gallery__lede{ color:var(--ink-soft); max-width:54ch; }

.plates{
  max-width:var(--maxw); margin-inline:auto;
  display:grid; gap:clamp(14px,2.2vw,22px);
  grid-template-columns:1fr;
}
.plate{ margin:0; position:relative; border-radius:var(--r-lg); overflow:hidden; background:var(--sand);
  box-shadow:0 24px 48px -32px rgba(60,36,20,.5); }
.plate img{ width:100%; height:100%; object-fit:cover; transition:transform .9s var(--ease); }
.plate--a img{ filter:saturate(1.06) contrast(1.03); object-position:50% 42%; }
.plate--b img{ filter:contrast(1.05); }
/* the wide frame is the same source as plate--a, read differently:
   cropped low to the horizon band + a warmer, hazier grade so it lands
   as another moment of the same long view, not a repeat. */
.plate--c img{ filter:saturate(1.12) contrast(1.02) brightness(1.03) sepia(.06); object-position:50% 78%; }
.plate:hover img{ transform:scale(1.035); }
.plate__tag{
  position:absolute; left:14px; bottom:12px;
  font-family:var(--sans); font-size:.68rem; letter-spacing:.1em; text-transform:uppercase;
  color:var(--cream); padding:.4em .8em; border-radius:100px;
  background:color-mix(in srgb,var(--terra-deep) 72%,transparent);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px);
}

.gallery__note{
  max-width:var(--maxw); margin:clamp(28px,4vw,42px) auto 0;
  font-family:var(--serif); font-style:italic; font-size:1.05rem;
  color:var(--ink-soft); max-width:60ch;
  padding-left:1em; border-left:2px solid var(--mares);
}

/* ============================================================
   SETTING — cream, copy left / distance-list right (echoes the motif)
   ============================================================ */
.setting{ padding:clamp(64px,11vw,150px) var(--pad); max-width:var(--maxw); margin-inline:auto; }
.setting__grid{ display:grid; gap:clamp(34px,6vw,72px); align-items:start; }
.setting__title{ font-size:clamp(1.9rem,5vw,3rem); color:var(--terra); margin:.1em 0 .7em; max-width:18ch; }
.setting__copy p{ color:var(--ink-soft); max-width:54ch; }

.dist{ margin:0; border-top:2px solid var(--ink); }
.dist__head{
  margin:.9em 0 .2em; font-family:var(--sans); font-weight:600;
  font-size:.7rem; letter-spacing:.18em; text-transform:uppercase; color:var(--ink-faint);
}
.dist__row{
  display:flex; align-items:baseline; justify-content:space-between; gap:1em;
  padding:.9em 0; border-bottom:1px solid var(--line);
}
.dist dt{ color:var(--ink); font-size:.98rem; }
.dist dd{
  margin:0; font-family:var(--serif); font-weight:700; font-size:1.05rem; color:var(--mares-deep);
  letter-spacing:.01em; white-space:nowrap;
}

/* ============================================================
   BOOK — the keystone CTA, warm marès wall
   ============================================================ */
.book{
  background:
    radial-gradient(130% 100% at 50% -12%, var(--ochre) 0%, var(--mares-deep) 52%, var(--terra) 100%);
  color:var(--cream);
  padding:clamp(70px,13vw,150px) var(--pad);
  text-align:center;
}
.book__inner{ max-width:760px; margin-inline:auto; }
.book__sight{ display:inline-flex; color:color-mix(in srgb,var(--cream) 82%,transparent); margin-bottom:14px; }
.book__kick{ justify-content:center; }
.book__title{ font-size:clamp(2rem,5.6vw,3.3rem); color:var(--cream); margin:0 0 .5em; }
.book__txt{ color:color-mix(in srgb,var(--cream) 92%,transparent); max-width:52ch; margin:0 auto 2em; }
.book__cta{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; }
.book .btn--solid{ background:var(--cream); color:var(--terra); }
.book .btn--solid:hover{ background:#fff; color:var(--terra-deep); }
.book .btn--line{ border-color:color-mix(in srgb,var(--cream) 55%,transparent); color:var(--cream); }
.book .btn--line:hover{ border-color:var(--cream); color:var(--cream); background:color-mix(in srgb,#fff 12%,transparent); }
.book__contact{
  margin:2em 0 0; display:flex; flex-direction:column; gap:.5em; align-items:center;
}
.book__contact a{
  font-family:var(--serif); font-size:1.08rem; color:var(--cream);
  text-decoration:none; border-bottom:1px solid color-mix(in srgb,var(--cream) 50%,transparent);
  padding-bottom:2px;
}
.book__contact a:hover{ border-color:var(--cream); }
.book__place{ font-size:.78rem; letter-spacing:.14em; text-transform:uppercase; color:color-mix(in srgb,var(--cream) 70%,transparent); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot{ background:var(--ink); color:color-mix(in srgb,var(--cream) 80%,transparent); padding:clamp(48px,8vw,84px) var(--pad) 30px; }
.foot__grid{ max-width:var(--maxw); margin-inline:auto; display:grid; gap:36px; }
.foot__mark{ display:inline-flex; color:var(--mares); margin-bottom:10px; }
.foot__name{ font-family:var(--serif); font-weight:700; font-size:1.4rem; color:var(--cream); margin:0 0 .25em; }
.foot__place{ font-size:.82rem; color:color-mix(in srgb,var(--cream) 60%,transparent); margin:0; letter-spacing:.03em; }
.foot__h{ font-family:var(--sans); font-weight:700; font-size:.72rem; letter-spacing:.18em; text-transform:uppercase; color:var(--mares); margin:0 0 1em; }
.foot__col p{ font-size:.92rem; margin:0 0 .6em; }
.foot__col a:not(.btn){ display:inline-block; padding:6px 0; color:color-mix(in srgb,var(--cream) 86%,transparent); text-decoration:none; border-bottom:1px solid transparent; transition:border-color .3s; }
.foot__col a:not(.btn):hover{ border-color:currentColor; }
.foot__book{ margin-top:.5em; color:var(--cream); border-color:color-mix(in srgb,var(--cream) 34%,transparent); }
.foot__book:hover{ border-color:var(--mares); color:var(--mares); }

.foot__base{
  max-width:var(--maxw); margin:clamp(40px,6vw,64px) auto 0; padding-top:24px;
  border-top:1px solid color-mix(in srgb,var(--cream) 14%,transparent);
  display:flex; flex-wrap:wrap; gap:8px 20px; justify-content:space-between; align-items:center;
}
.foot__rights{ margin:0; font-size:.8rem; color:color-mix(in srgb,var(--cream) 56%,transparent); }
.foot__sign{ margin:0; font-family:var(--serif); font-style:italic; font-size:1rem; color:var(--mares); }

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .scroll-dot{ animation:none; }
  .sight.is-in .sight__mark, .view__sight.is-in .vsight__mark{ animation:none; stroke-dashoffset:0; }
  .plate:hover img{ transform:none; }
}

/* ============================================================
   RESPONSIVE — phone-first scrim hardening
   On narrow screens the view panel is full-width, so the copy sits over
   the busy mid-ground of the photo. Deepen the scrim under the text.
   ============================================================ */
@media (max-width:679px){
  .view__scrim{
    background:
      linear-gradient(to right, color-mix(in srgb,var(--terra-deep) 88%,#000 12%) 0%, color-mix(in srgb,var(--terra-deep) 66%,#000 8%) 58%, color-mix(in srgb,var(--terra-deep) 40%,transparent) 100%),
      linear-gradient(to top, rgba(22,12,6,.62) 0%, rgba(22,12,6,.28) 40%, transparent 72%);
  }
}

/* ============================================================
   RESPONSIVE — tablet
   ============================================================ */
@media (min-width:680px){
  .house{ grid-template-columns:1.05fr .95fr; grid-template-areas:"lead fig" "ledger fig"; align-items:start; column-gap:clamp(34px,5vw,64px); }
  .house__lead{ grid-area:lead; }
  .house__fig{ grid-area:fig; align-self:stretch; }
  .house__fig img{ height:100%; object-fit:cover; }
  .ledger{ grid-area:ledger; align-self:end; }
  .ledger__row{ grid-template-columns:.9fr 1.1fr; gap:1.4em; align-items:baseline; }

  .setting__grid{ grid-template-columns:1.1fr .9fr; }
  .plates{ grid-template-columns:1fr 1fr; }
  .plate--wide{ grid-column:1 / -1; aspect-ratio:21/9; }
  .plate--a{ aspect-ratio:4/3; }
  .plate--b{ aspect-ratio:4/3; }
}

/* desktop */
@media (min-width:960px){
  .nav__links{ display:flex; }
  .nav__book{ display:inline-flex; }
  .hero__scroll{ display:flex; }
  .plates{ grid-template-columns:1.4fr 1fr; }
}

/* large */
@media (min-width:1200px){
  body{ font-size:18px; }
}
