/* ============================================================
   HOTEL CAN CIRERA — styles.css
   Concept: "El Pati" — a 15th-century stone palau read through its
   Gothic pointed arch (l'arc apuntat). Ink carved on warm stone.
   Display: Frank Ruhl Libre (lapidary, high-contrast).  Body: Inter.
   Palette: ink + warm grey + plaster + one ochre window-glint.
   Edges: pointed-arch curves against crisp straight rules.
   ============================================================ */

/* ---------------- tokens ---------------- */
:root {
  --ink:        #211d19;   /* carved ink */
  --ink-soft:   #3b352f;
  --stone:      #b6a589;   /* warm marès stone */
  --stone-deep: #8f7f66;
  --stone-line: #cdbfa9;   /* dusty stone for fine rules */
  --plaster:    #f4efe6;   /* lime-plaster page */
  --plaster-2:  #ece4d6;
  --paper:      #fbf8f2;
  --ochre:      #b0682f;   /* the warm light in the arch passage — used sparingly */
  --ochre-deep: #8d4f20;

  --bg:    var(--plaster);
  --fg:    var(--ink);
  --muted: #6f655a;

  --maxw: 1240px;
  --pad: clamp(1.15rem, 5vw, 4rem);
  --gutter: clamp(1.5rem, 4vw, 3.25rem);

  --serif: "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --r-soft: 3px;     /* the stone is squared, edges stay crisp */
  --ease: cubic-bezier(.22,.61,.36,1);
  --slow: cubic-bezier(.16,.84,.44,1);

  --shadow: 0 1px 2px rgba(33,29,25,.05), 0 18px 48px -28px rgba(33,29,25,.45);

  /* The pointed-arch silhouette, authored once as an inline-SVG data-URI mask
     (a real <svg> scales reliably with mask-size:contain across engines, where
     a bare CSS path() mask does not). Straight jambs rise to a sharp ogival apex.
     viewBox 100x124; reused for every arch glyph + photo aperture. */
  --arch-svg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 124" preserveAspectRatio="none"><path d="M2 124 L2 52 C2 24 24 2 50 2 C76 2 98 24 98 52 L98 124 Z" fill="black"/></svg>');
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.66;
  font-feature-settings: "ss01","cv05","liga","kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.skip {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: var(--r-soft);
  font: 600 .85rem/1 var(--sans); letter-spacing: .02em;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* ---------------- type primitives ---------------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.012em;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 .7rem/1 var(--sans);
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--stone-deep);
  margin: 0 0 1.15rem;
}
.kicker--light { color: var(--stone-line); }
.kicker__arch {            /* the section-marker glyph: a tiny pointed arch */
  width: 13px; height: 16px; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat;
  opacity: .85;
}
.kicker__no {
  font-variant-numeric: tabular-nums;
  color: var(--ochre);
  font-weight: 700;
  letter-spacing: .12em;
}

/* ---------------- buttons ---------------- */
.btn {
  --bh: 3rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--bh);
  padding: 0 1.5rem;
  font: 600 .82rem/1 var(--sans);
  letter-spacing: .12em; text-transform: uppercase;
  border-radius: var(--r-soft);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: var(--ochre-deep); border-color: var(--ochre-deep); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(33,29,25,.32); }
.btn--line:hover { border-color: var(--ink); background: rgba(33,29,25,.04); }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(251,248,242,.5); }
.btn--ghost-light:hover { border-color: var(--paper); background: rgba(251,248,242,.1); }
.btn--lg { --bh: 3.4rem; padding: 0 1.85rem; }
.btn--xl { --bh: 3.7rem; padding: 0 2.2rem; font-size: .86rem; }

/* a fine "engraved" inline link with a leading arch tick */
.link-arch {
  display: inline-flex; align-items: center; gap: .5em;
  font: 600 .82rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  min-height: 44px; padding: .9rem 0 .6rem;
  box-shadow: inset 0 -1px 0 rgba(33,29,25,.25);
  transition: color .2s var(--ease), box-shadow .2s var(--ease);
}
.link-arch::before {
  content: ""; width: 11px; height: 13px; background: var(--ochre);
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat;
}
.link-arch:hover { color: var(--ochre-deep); box-shadow: inset 0 -1px 0 var(--ochre); }

/* ============================================================
   HEADER
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: clamp(.85rem, 1.6vw, 1.25rem) var(--pad);
  color: var(--paper);
  transition: background .4s var(--ease), color .4s var(--ease),
              box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20,17,14,.55), rgba(20,17,14,0));
  opacity: 1; transition: opacity .4s var(--ease);
}
.nav.is-solid {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 rgba(33,29,25,.08), 0 12px 30px -24px rgba(33,29,25,.5);
}
.nav.is-solid::after { opacity: 0; }

.nav__brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit; min-height: 44px;
}
.brand-mark {                 /* the arch monogram — a clean filled pointed arch that inherits colour, matching the favicon */
  width: 23px; height: 29px; flex: 0 0 auto;
  position: relative;
  background: currentColor;
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat;
          mask: var(--arch-svg) top/100% 100% no-repeat;
}
.brand-mark::after {          /* apex keystone tick above the arch */
  content: ""; position: absolute; left: 50%; top: -4px; width: 1.6px; height: 5px;
  background: currentColor; transform: translateX(-50%); border-radius: 1px;
}
.brand-wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand-wordmark b {
  font: 600 1.06rem/1 var(--serif); letter-spacing: .02em;
}
.brand-wordmark span {
  font: 600 .54rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase;
  opacity: .8; margin-top: .34em;
}

.nav__links {
  display: flex; gap: clamp(1rem, 2vw, 1.9rem); align-items: center;
  margin-inline: auto;
}
.nav__links a {
  text-decoration: none; color: inherit;
  font: 500 .82rem/1 var(--sans); letter-spacing: .02em;
  opacity: .9; padding: .5rem 0; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .15rem; height: 1px;
  background: currentColor; transition: right .3s var(--ease);
}
.nav__links a:hover::after { right: 0; }

.nav__right { display: flex; align-items: center; gap: clamp(.7rem, 1.4vw, 1.15rem); }
.lang { display: inline-flex; align-items: center; gap: .15rem; }
.lang__btn {
  background: none; border: 0; cursor: pointer; color: inherit;
  font: 600 .76rem/1 var(--sans); letter-spacing: .06em;
  padding: .7rem .5rem; opacity: .55; min-height: 44px; min-width: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: opacity .2s var(--ease);
}
.lang__btn.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.lang__btn:hover { opacity: .85; }
.lang__sep { opacity: .35; font-size: .7rem; }

/* ============================================================
   HERO — the photo seen THROUGH the pointed arch (signature moment)
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 0 var(--pad) clamp(2rem, 5vh, 3.5rem);
  isolation: isolate; overflow: hidden;
  background: #15110d;
}
.hero__media { position: absolute; inset: 0; z-index: -3; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%;
  filter: saturate(1.04) contrast(1.03);
}
/* legibility scrims */
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(18,14,10,.86) 0%, rgba(18,14,10,.32) 38%, rgba(18,14,10,.12) 64%, rgba(18,14,10,.4) 100%);
}
.hero__tint {
  position: absolute; inset: 0; z-index: -2; mix-blend-mode: multiply;
  background: radial-gradient(120% 90% at 50% 14%, transparent 40%, rgba(40,28,16,.5) 100%);
}

/* the giant pointed-arch frame engraved over the hero */
.hero__arch {
  position: absolute; z-index: -1;
  left: 50%; transform: translateX(-50%);
  top: clamp(4.2rem, 11vh, 7.5rem);
  bottom: clamp(8rem, 22vh, 13rem);
  width: min(80vw, 560px);
  display: block; pointer-events: none;
}
.hero__arch svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hero__arch path, .hero__arch line { fill: none; }
.hero__arch .arch-outer { stroke: rgba(251,248,242,.5); stroke-width: 1.4; }
.hero__arch .arch-inner { stroke: rgba(251,248,242,.24); stroke-width: 1; }
.hero__arch .arch-key   { stroke: rgba(251,248,242,.6); stroke-width: 1.6; stroke-linecap: round; }
/* draw-in: the arch is "struck" on load — the signature beat */
.hero__arch .arch-outer { stroke-dasharray: 1500; stroke-dashoffset: 1500; animation: archDraw 2.1s var(--slow) .3s forwards; }
.hero__arch .arch-inner { stroke-dasharray: 1300; stroke-dashoffset: 1300; animation: archDraw 2.1s var(--slow) .6s forwards; }
@keyframes archDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero__arch .arch-outer, .hero__arch .arch-inner { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}

.hero__inner {
  position: relative; z-index: 1;
  max-width: 56ch; color: var(--paper);
}
.hero__eyebrow {
  font: 600 .76rem/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: rgba(251,248,242,.82); margin: 0 0 1.1rem;
  display: inline-flex; align-items: center; gap: .7em;
}
.hero__eyebrow::before {
  content:""; width: 13px; height: 16px; background: var(--stone-line);
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat;
}
.hero__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 8.5vw, 5.4rem);
  line-height: .98; letter-spacing: -0.018em; margin: 0;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
  word-break: keep-all; overflow-wrap: normal; hyphens: none;
}
.hero__title .l { display: block; }
.hero__title .accent { font-style: italic; color: #ecd8bf; }
.hero__sub {
  margin: 1.3rem 0 0; max-width: 46ch;
  font-size: clamp(1rem, 0.97rem + 0.3vw, 1.16rem);
  color: rgba(251,248,242,.9); line-height: 1.6;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }

/* the engraved datum riding the foot of the hero — place + the cathedral coordinate */
.hero__datum {
  position: relative; z-index: 1;
  margin-top: clamp(1.6rem, 4vh, 2.6rem);
  display: flex; align-items: center; gap: 1rem;
  color: rgba(251,248,242,.78);
  font: 600 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.hero__datum .rule { flex: 1 1 auto; height: 1px; background: linear-gradient(to right, rgba(251,248,242,.5), rgba(251,248,242,.06)); }
.hero__datum .tick { white-space: nowrap; }

.hero__scroll {
  position: absolute; left: 50%; bottom: .9rem; transform: translateX(-50%);
  z-index: 1; display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .45rem;
  text-decoration: none; color: rgba(251,248,242,.78);
  font: 600 .62rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
  min-height: 46px; min-width: 46px; padding-top: .3rem;
}
.hero__scroll svg { width: 16px; height: 26px; }
.hero__scroll .sl { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; }
.hero__scroll .sl-dot { animation: dropDot 1.9s var(--ease) infinite; }
@keyframes dropDot { 0%,100%{ transform: translateY(0); opacity:.5 } 50%{ transform: translateY(3px); opacity:1 } }

/* ============================================================
   SHARED SECTION FRAME
   ============================================================ */
.section { padding: clamp(4.5rem, 10vh, 8rem) var(--pad); position: relative; }
.wrap { max-width: var(--maxw); margin-inline: auto; }
.lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }
.prose p { color: var(--ink-soft); margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }

/* a pointed-arch threshold divider (carried between sections) */
.threshold {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.1rem;
  color: var(--stone-deep);
}
.threshold .line { height: 1px; background: linear-gradient(to right, transparent, var(--stone-line)); }
.threshold .line.r { background: linear-gradient(to left, transparent, var(--stone-line)); }
.threshold .gl { width: 16px; height: 20px; background: var(--stone);
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat; }

/* ============================================================
   1 · EL PATI (the house / story)
   ============================================================ */
.house { background: var(--paper); }
.house__grid {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.house__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.9rem, 1.4rem + 2.4vw, 3.2rem); line-height: 1.06;
  letter-spacing: -0.014em; margin: 0 0 1.4rem;
  word-break: keep-all; overflow-wrap: normal; hyphens: none;
}
.house__title em { font-style: italic; color: var(--ochre-deep); }
.house__intro { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); color: var(--ink); margin: 0 0 1.3rem; line-height: 1.55; }

.house__figure { position: relative; }
.house__figure .arched {
  aspect-ratio: 4 / 5;
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat;
}
.house__figure .arched img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.house__figcap {
  margin-top: .85rem; display: flex; align-items: center; gap: .6rem;
  font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone-deep);
}
.house__figcap .gl { width: 11px; height: 14px; background: var(--ochre);
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat; }

.measures {
  margin-top: clamp(2.4rem, 5vh, 3.6rem);
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px; background: var(--stone-line);
  border: 1px solid var(--stone-line); border-radius: var(--r-soft); overflow: hidden;
}
.measure { background: var(--paper); padding: clamp(1.1rem,2.4vw,1.6rem); }
.measure dt { font: 600 .66rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-deep); margin-bottom: .55rem; }
.measure dd { margin: 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.5; }
.measure dd b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); }

/* ============================================================
   2 · THROUGH THE ARCH (stone & light, the passage) — dark stone band
   ============================================================ */
.through { background: var(--ink); color: var(--paper); }
.through .threshold .line { background: linear-gradient(to right, transparent, rgba(205,191,169,.35)); }
.through .threshold .line.r { background: linear-gradient(to left, transparent, rgba(205,191,169,.35)); }
.through .threshold .gl { background: var(--stone); }

.through__grid {
  display: grid; grid-template-columns: minmax(0,0.92fr) minmax(0,1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  margin-top: clamp(2.4rem,5vh,3.6rem);
}
.through__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.85rem, 1.4rem + 2.2vw, 3rem); line-height: 1.08; margin: 0 0 1.3rem;
  letter-spacing: -0.012em; word-break: keep-all; hyphens: none;
}
.through__title em { font-style: italic; color: #ecd8bf; }
.through__p { color: rgba(251,248,242,.82); margin: 0 0 1.05em; }
.through__p:last-of-type { margin-bottom: 1.5em; }
.through__note {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--stone-line);
}
.through__note .gl { width: 12px; height: 15px; background: var(--ochre);
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat; }

.through__figs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: clamp(.7rem,1.4vw,1.05rem); }
.through__fig { position: relative; overflow: hidden; border-radius: var(--r-soft); }
.through__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--slow); }
.through__fig:hover img { transform: scale(1.045); }
.through__fig--tall { grid-row: span 2; }
.through__fig figcaption {
  position: absolute; left: .7rem; bottom: .6rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .6rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); background: rgba(20,16,12,.5); backdrop-filter: blur(3px);
  padding: .38rem .6rem; border-radius: 2px;
}
.through__fig figcaption .dot { width: 5px; height: 5px; background: var(--ochre); border-radius: 50%; }

/* ============================================================
   3 · ROOMS — the categories, asymmetric
   ============================================================ */
.rooms { background: var(--plaster); }
.rooms__head { max-width: 62ch; }
.rooms__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.85rem, 1.4rem + 2.2vw, 3rem); line-height: 1.07; margin: 0 0 1.1rem;
  letter-spacing: -0.012em; word-break: keep-all; hyphens: none;
}
.rooms__title em { font-style: italic; color: var(--ochre-deep); }

.rooms__layout {
  margin-top: clamp(2.4rem,5vh,3.4rem);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
  gap: clamp(1.6rem,4vw,3rem); align-items: start;
}
.rooms__feature .arched {
  aspect-ratio: 3 / 4;
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat;
}
.rooms__feature .arched img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.rooms__feature figcaption {
  margin-top: .9rem; display: flex; align-items: baseline; gap: .7rem;
  font: 600 .72rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--stone-deep);
}
.rooms__feature figcaption b { font-family: var(--serif); font-size: 1.05rem; text-transform: none; letter-spacing: 0; color: var(--ink); }

.cats { display: grid; gap: 0; border-top: 1px solid var(--stone-line); }
.cat {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0; border-bottom: 1px solid var(--stone-line);
}
.cat__no { font-variant-numeric: tabular-nums; color: var(--ochre); font: 700 .82rem/1 var(--sans); letter-spacing: .08em; }
.cat__body { min-width: 0; }
.cat__name { font-family: var(--serif); font-weight: 600; font-size: 1.22rem; margin: 0 0 .2rem; line-height: 1.15; }
.cat__desc { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }
.cat__size { font-variant-numeric: tabular-nums; font: 600 .82rem/1 var(--sans); color: var(--ink-soft); white-space: nowrap; }
.rooms__note {
  margin-top: clamp(1.8rem,4vh,2.6rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
  padding-top: 1.5rem; border-top: 1px solid var(--stone-line);
  color: var(--ink-soft); font-size: .98rem;
}

/* ============================================================
   4 · THE PATIO — gallery of the courtyard, mosaic
   ============================================================ */
.patio { background: var(--paper); }
.patio__head { max-width: 60ch; margin-bottom: clamp(2rem,4.5vh,3rem); }
.patio__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.85rem, 1.4rem + 2.2vw, 3rem); line-height: 1.07; margin: 0 0 1rem;
  letter-spacing: -0.012em; word-break: keep-all; hyphens: none;
}
.mosaic {
  display: grid; gap: clamp(.7rem,1.4vw,1.1rem);
  grid-template-columns: repeat(6, minmax(0,1fr));
  grid-auto-flow: dense;
}
.tile { position: relative; overflow: hidden; border-radius: var(--r-soft); background: var(--plaster-2); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--slow); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: .7rem; bottom: .62rem;
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .6rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
  color: var(--paper); background: rgba(20,16,12,.5); backdrop-filter: blur(3px);
  padding: .38rem .6rem; border-radius: 2px;
}
.tile figcaption .gl { width: 9px; height: 11px; background: var(--ochre);
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat; }
/* spans */
.tile--a { grid-column: span 4; grid-row: span 2; }
.tile--b { grid-column: span 2; grid-row: span 1; }
.tile--c { grid-column: span 2; grid-row: span 1; }
.tile--d { grid-column: span 2; grid-row: span 2; }
.tile--e { grid-column: span 2; grid-row: span 1; }
.tile--f { grid-column: span 2; grid-row: span 1; }
.tile img { aspect-ratio: auto; height: 100%; }
.mosaic { grid-auto-rows: 1fr; }

/* ============================================================
   5 · BESIDE THE CATHEDRAL — setting, full-bleed photo panel
   ============================================================ */
.setting { position: relative; min-height: 78svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.setting__media { position: absolute; inset: 0; z-index: -2; }
.setting__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.setting__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(16,12,8,.82) 0%, rgba(16,12,8,.55) 42%, rgba(16,12,8,.12) 100%);
}
.setting__inner { padding: clamp(3rem,8vh,6rem) var(--pad); width: 100%; }
.setting__panel { max-width: 40rem; color: var(--paper); }
.setting__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.85rem, 1.4rem + 2.3vw, 3rem); line-height: 1.07; margin: 0 0 1.2rem;
  letter-spacing: -0.012em; word-break: keep-all; hyphens: none;
}
.setting__title em { font-style: italic; color: #ecd8bf; }
.setting__p { color: rgba(251,248,242,.9); margin: 0 0 1.05em; max-width: 48ch; }
.dist {
  margin: clamp(1.6rem,4vh,2.4rem) 0 0; display: grid; gap: 0;
  border-top: 1px solid rgba(205,191,169,.3);
}
.dist__row {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: baseline;
  padding: .8rem 0; border-bottom: 1px solid rgba(205,191,169,.3);
}
.dist__row dt { color: rgba(251,248,242,.78); font: 600 .74rem/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.dist__row dd { margin: 0; font-family: var(--serif); font-size: 1.12rem; color: var(--paper); }

/* ============================================================
   6 · STAY (book direct)
   ============================================================ */
.stay { background: var(--ink); color: var(--paper); text-align: center; }
.stay__inner { max-width: 54rem; margin-inline: auto; position: relative; }
.stay__arch {
  width: 40px; height: 50px; margin: 0 auto 1.6rem; background: var(--stone);
  -webkit-mask: var(--arch-svg) top/100% 100% no-repeat; mask: var(--arch-svg) top/100% 100% no-repeat;
}
.stay__kicker { justify-content: center; color: var(--stone-line); }
.stay__title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.1rem, 1.6rem + 3vw, 3.6rem); line-height: 1.04; margin: 0 0 1.2rem;
  letter-spacing: -0.014em; word-break: keep-all; hyphens: none;
}
.stay__title em { font-style: italic; color: #ecd8bf; }
.stay__txt { color: rgba(251,248,242,.84); max-width: 50ch; margin: 0 auto 2rem; font-size: 1.08rem; }
.stay__cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.stay__contact {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem 1.8rem; justify-content: center; align-items: center;
  font-size: .95rem; color: rgba(251,248,242,.8);
}
.stay__contact a { color: var(--paper); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(251,248,242,.3);
  display: inline-flex; align-items: center; min-height: 44px; padding: .3rem 0; }
.stay__contact a:hover { box-shadow: inset 0 -1px 0 var(--paper); }
.stay__rating { display: inline-flex; align-items: center; gap: .45rem; }
.stay__rating .star { color: var(--ochre); }
.stay__rating b { font-family: var(--serif); font-size: 1.1rem; color: var(--paper); }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: #15110d; color: rgba(251,248,242,.82); padding: clamp(3rem,7vh,5rem) var(--pad) 2rem; }
.foot__grid {
  max-width: var(--maxw); margin-inline: auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem,5vw,4rem);
}
.foot__brand .brand-mark { color: var(--stone-line); }
.foot__name { font: 600 1.25rem/1 var(--serif); color: var(--paper); margin: 1rem 0 .4rem; letter-spacing: .01em; }
.foot__place { font-size: .9rem; color: rgba(251,248,242,.6); margin: 0; }
.foot__col h3 { font: 600 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--stone-line); margin: 0 0 1rem; }
.foot__col p { margin: 0 0 .2rem; font-size: .95rem; }
.foot__col p a { display: inline-flex; align-items: center; min-height: 40px; }
.foot__col a { color: rgba(251,248,242,.82); text-decoration: none; box-shadow: inset 0 0 0 transparent; transition: box-shadow .2s; }
.foot__col a:hover { box-shadow: inset 0 -1px 0 rgba(251,248,242,.5); }
.foot__cta { margin-top: 1rem; }
.foot__base {
  max-width: var(--maxw); margin: clamp(2.4rem,5vh,3.5rem) auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(251,248,242,.14);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .82rem; color: rgba(251,248,242,.55);
}

/* ============================================================
   MOTION — reveals
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--slow), transform .8s var(--slow); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__scroll .sl-dot { animation: none; }
  .through__fig img, .tile img { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .house__grid { grid-template-columns: 1fr; gap: clamp(1.8rem,5vw,2.6rem); }
  .house__figure { order: -1; max-width: 28rem; }
  .through__grid { grid-template-columns: 1fr; }
  .rooms__layout { grid-template-columns: 1fr; }
  .rooms__feature { max-width: 26rem; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .measures { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 620px) {
  :root { --pad: 1.15rem; }
  .nav__right { gap: .55rem; }
  .brand-wordmark span { display: none; }   /* keep header tidy on phones */
  .hero { padding-bottom: clamp(2.6rem, 8vh, 3.5rem); }
  .hero__arch { width: 84vw; top: clamp(4rem,12vh,6rem); bottom: clamp(8.5rem,26vh,12rem); }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
  .hero__datum { font-size: .6rem; gap: .65rem; letter-spacing: .14em; }
  .hero__datum .tick.coord { display: none; }  /* avoid crowding the foot line */

  .measures { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tile--a { grid-column: span 2; grid-row: span 2; }
  .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: span 1; grid-row: span 1; }
  .tile--d { grid-row: span 2; }

  .cat { grid-template-columns: auto 1fr; }
  .cat__size { grid-column: 2; justify-self: start; margin-top: .25rem; color: var(--stone-deep); }

  .foot__grid { grid-template-columns: 1fr; gap: 2rem; }
  .dist__row dd { font-size: 1.02rem; }
  .btn { width: 100%; }                 /* full-width taps on phones */
  .hero__cta .btn, .stay__cta .btn { width: auto; flex: 1 1 auto; min-width: 9rem; }
}

@media (max-width: 360px) {
  .hero__title { font-size: clamp(2.2rem, 12vw, 2.8rem); }
}

/* no-JS / print safety: never leave content hidden */
.no-js .reveal { opacity: 1 !important; transform: none !important; }
@media print {
  .nav, .hero__scroll { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body { background: #fff; color: #000; }
}
