/* ==========================================================
   Schëttbuerg · Schuttbourg Castle — styles
   Colours are taken from the logo (bronze line on ivory).
   ========================================================== */
:root {
  --ivory: #F6F1E7;
  --paper: #FBF8F2;
  --stone: #E6DDCC;
  --line: #D8CDB8;
  --ink: #2A231A;
  --text: #4A4033;
  --muted: #7A6E5D;
  --bronze: #5C4A30;
  --bronze-2: #8A6E44;
  --gold: #C49A5A;
  --night: #1C1813;
  --night-2: #26201A;
  --moss: #3F4A37;
  --booked: #9C4A3A;
  --pending: #C49A5A;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(42, 35, 26, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1.1em; }
em { font-style: italic; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 130px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 .78rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--bronze-2); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 640px; }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border: 1px solid var(--bronze); border-radius: var(--radius);
  background: var(--bronze); color: var(--ivory);
  font: 500 .8rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--bronze); }
.btn--ghost:hover { background: var(--bronze); color: var(--ivory); border-color: var(--bronze); }
.btn--light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--light:hover { background: transparent; color: var(--ivory); }
.btn--outline-light { background: transparent; color: var(--ivory); border-color: rgba(246,241,231,.6); }
.btn--outline-light:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, color .3s;
  color: var(--ivory);
}
.header.is-solid { background: rgba(251, 248, 242, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 62px; height: auto; }
.brand__mark--dark { display: none; }
.header.is-solid .brand__mark--light { display: none; }
.header.is-solid .brand__mark--dark { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 400 1.15rem/1 var(--sans); letter-spacing: .2em; }
.brand__sub { font: 400 .6rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; opacity: .75; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav__links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  text-decoration: none; font: 400 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 8px 0; position: relative; white-space: nowrap;
}
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.lang { display: flex; gap: 2px; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.lang button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  font: 500 .7rem/1 var(--sans); letter-spacing: .12em; padding: 7px 10px; color: inherit;
}
.lang button[aria-pressed="true"] { background: currentColor; }
.lang button[aria-pressed="true"] span { color: var(--ink); }
.header.is-solid .lang button[aria-pressed="true"] span { color: var(--ivory); }

.header .btn { padding: 12px 20px; }
.header:not(.is-solid) .btn { background: transparent; border-color: rgba(246,241,231,.7); color: var(--ivory); }
.header:not(.is-solid) .btn:hover { background: var(--ivory); color: var(--ink); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--ivory); background: var(--night); overflow: hidden;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,16,11,.55) 0%, rgba(20,16,11,.05) 28%, rgba(20,16,11,.15) 50%, rgba(20,16,11,.88) 100%);
}
.hero__content { position: relative; z-index: 2; padding-top: 130px; padding-bottom: 46px; }
.hero__logo { width: min(300px, 62vw); margin-bottom: 30px; opacity: .95; }
.hero .eyebrow { color: #E8D3AE; }
.hero h1 { color: var(--ivory); font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 400; max-width: 900px; margin-bottom: 22px; }
.hero h1 em { color: #E8D3AE; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 620px; color: rgba(246,241,231,.9); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.facts {
  position: relative; z-index: 2; border-top: 1px solid rgba(246,241,231,.22);
  background: rgba(20,16,11,.35); backdrop-filter: blur(4px);
}
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.facts li { padding: 22px 10px; text-align: center; font: 400 .78rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: rgba(246,241,231,.85); }
.facts li + li { border-left: 1px solid rgba(246,241,231,.18); }
.facts strong { display: block; font: 400 1.9rem/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--ivory); margin-bottom: 8px; }

/* ---------- 01 Castle ---------- */
.castle__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.castle__media { position: relative; }
.castle__media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.castle__media .inset {
  position: absolute; width: 46%; aspect-ratio: 1; right: -24px; bottom: -36px; object-fit: cover;
  border: 8px solid var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.timeline { list-style: none; margin: 34px 0 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 26px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1px solid var(--bronze-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { background: var(--bronze-2); }
.timeline b { display: block; font: 500 1.25rem/1.3 var(--serif); color: var(--bronze); }
.timeline span { font-size: .96rem; color: var(--muted); }

.castle .btn--ghost { margin-top: 10px; }

/* Chronicle — four chapters, alternating, joined by a thin line */
.chronicle { margin-top: clamp(90px, 11vw, 150px); }
.chronicle__head { margin-bottom: clamp(50px, 7vw, 90px); }
/* Origins — lithograph as a mounted print that stays in view while the text scrolls */
.origins { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 120px); align-items: start; margin-bottom: clamp(90px, 11vw, 150px); }
.plate { position: sticky; top: 110px; margin: 0; }
.plate__mat {
  background: #EFE6D4; padding: clamp(14px, 2vw, 24px); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(42,35,26,.45), 0 2px 0 rgba(255,255,255,.6) inset;
  transform: rotate(-1.4deg); transition: transform .6s ease;
}
.plate:hover .plate__mat { transform: rotate(0); }
.plate__mat img { width: 100%; outline: 1px solid rgba(42,35,26,.35); outline-offset: 5px; }
.plate figcaption { text-align: center; margin-top: 26px; }
.plate__title { display: block; font: 500 .95rem/1.4 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.plate__by { display: block; font: italic 400 1rem/1.4 var(--serif); color: var(--muted); margin-top: 4px; }
.origins__text h3 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.origins__text p { max-width: 560px; }
.origins__lead { font-size: 1.12rem; color: var(--ink); }
.origins__lead::first-letter { float: left; font: 400 4.4em/.8 var(--serif); color: var(--gold); margin: .08em .12em 0 0; }
.charter {
  margin: 34px 0 36px; padding: 28px 30px 26px; max-width: 560px; text-align: center;
  background: #F3ECDF; border: 1px solid var(--line); position: relative;
}
.charter::before, .charter::after { content: ""; position: absolute; left: 50%; width: 9px; height: 9px; transform: translateX(-50%) rotate(45deg); background: var(--paper); border: 1px solid var(--gold); }
.charter::before { top: -5px; }
.charter::after { bottom: -5px; }
.charter__years { font: 500 .74rem/1 var(--sans); letter-spacing: .3em; color: var(--bronze-2); }
.charter__quote { font: italic 400 clamp(1.9rem, 3.4vw, 2.6rem)/1.15 var(--serif); color: var(--bronze); margin: 12px 0 10px; max-width: none !important; }
.charter footer { font-size: .92rem; color: var(--muted); }

.chronicle__track { position: relative; }
.chronicle__track::before {
  content: ""; position: absolute; left: 50%; top: 40px; bottom: 40px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 8%, var(--line) 92%, transparent);
}
.chap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(60px, 9vw, 130px); align-items: center; }
.chap + .chap { margin-top: clamp(70px, 10vw, 130px); }
.chap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; transform: translate(-50%, -50%) rotate(45deg);
  background: var(--paper); border: 1px solid var(--gold);
}
.chap:nth-child(even) .chap__media { order: 2; }
.chap__media { margin: 0; }
.chap__media figcaption { margin-top: 16px; font: italic 400 1rem/1.4 var(--serif); color: var(--muted); }
.chap:nth-child(even) .chap__media figcaption { text-align: right; }
.frame { position: relative; z-index: 0; }
.frame::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
  border: 1px solid var(--bronze-2); opacity: .45; border-radius: var(--radius);
}
.chap:nth-child(even) .frame::after { inset: 16px 16px -16px -16px; }
.frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
/* the 1994 drawing melts into the page: the white scan paper becomes the site's ivory */
.chap__media--drawing img { mix-blend-mode: multiply; }
.chap__year {
  display: block; font: 400 clamp(4.2rem, 8.5vw, 7.5rem)/.85 var(--serif); letter-spacing: -.01em;
  color: var(--gold); margin-bottom: 20px;
}
@supports (-webkit-text-stroke: 1px black) {
  .chap__year { color: transparent; -webkit-text-stroke: 1.2px var(--gold); }
}
.chap__year--range { font-size: clamp(3.2rem, 6.4vw, 5.6rem); white-space: nowrap; }
.chap__year--range small { font-size: .6em; margin: 0 .08em; vertical-align: .18em; }
.chap__label { font: 500 .74rem/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--bronze-2); margin-bottom: 12px; }
.chap h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.chap__text p:last-child { color: var(--text); margin: 0; max-width: 460px; }

/* Location panorama — zooms out from the castle when it scrolls into view */
.valley { position: relative; background: var(--night); color: var(--ivory); overflow: hidden; }
.valley__frame { position: relative; aspect-ratio: 2.2 / 1; max-height: 88vh; width: 100%; overflow: hidden; }
.valley__zoom { position: absolute; inset: 0; transform-origin: 52.5% 49%; transform: scale(2.2); transition: transform 3.2s cubic-bezier(.16, .8, .24, 1); }
.valley.is-in .valley__zoom { transform: scale(1); }
.valley__zoom img { width: 100%; height: 100%; object-fit: cover; object-position: 52.5% 49%; }
.valley__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(15deg, rgba(20,16,11,.88) 0%, rgba(20,16,11,.45) 32%, rgba(20,16,11,0) 60%);
}
.pin { position: absolute; left: 52.5%; top: 49%; width: 0; height: 0; z-index: 2; opacity: 0; transition: opacity .8s 2.4s; }
.valley.is-in .pin { opacity: 1; }
.pin__dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--ivory); box-shadow: 0 0 0 4px rgba(246,241,231,.25); }
.pin__dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--ivory); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.4); opacity: 0; } }
.pin__label {
  position: absolute; left: 0; bottom: 64px; transform: translateX(-50%); white-space: nowrap;
  font: 500 .72rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  background: rgba(20,16,11,.72); color: var(--ivory); padding: 10px 14px; border: 1px solid rgba(246,241,231,.25);
}
.pin__label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 52px; background: rgba(246,241,231,.75); }
.valley__text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(30px, 5vw, 70px); z-index: 3; }
.valley__text .eyebrow { color: #E8D3AE; }
.valley__text h2 { color: var(--ivory); max-width: 480px; font-size: clamp(2rem, 3.4vw, 3rem); }
.valley__text p:last-child { max-width: 460px; color: rgba(246,241,231,.85); margin: 0; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(70px, 9vw, 110px); }
.feature { background: var(--paper); padding: 34px 28px; }
.feature svg { width: 34px; height: 34px; stroke: var(--bronze-2); fill: none; stroke-width: 1.2; margin-bottom: 18px; }
.feature h3 { font-size: 1.4rem; margin-bottom: 8px; }
.feature p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ---------- 02 Stay ---------- */
.stay { background: var(--ivory); }
.stay__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.stay__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stay__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.stay__media img:first-child { grid-column: span 2; aspect-ratio: 16/10; }
.stay__media img:not(:first-child) { aspect-ratio: 1; }
.stay__list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 18px; }
.stay__list li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; }
.stay__list svg { width: 26px; height: 26px; stroke: var(--bronze-2); fill: none; stroke-width: 1.3; margin-top: 3px; }
.stay__list b { display: block; font: 500 1.25rem/1.3 var(--serif); color: var(--ink); }
.stay__list span { font-size: .96rem; color: var(--muted); }
.note { font-size: .93rem; color: var(--muted); border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; margin-bottom: 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 03 Events ---------- */
.events__head { max-width: 760px; margin: 0 auto clamp(46px, 6vw, 70px); }
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.type { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; color: var(--ivory); display: flex; align-items: flex-end; background: var(--night); }
.type img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.type:hover img { transform: scale(1.05); }
.type::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,16,11,0) 30%, rgba(20,16,11,.9) 100%); }
.type__body { position: relative; z-index: 2; padding: 26px 24px; }
.type h3 { color: var(--ivory); font-size: 1.7rem; margin-bottom: 8px; }
.type p { font-size: .93rem; color: rgba(246,241,231,.85); margin: 0; }

.packages-wrap { background: var(--night); color: rgba(246,241,231,.82); }
.packages-wrap h2, .packages-wrap h3 { color: var(--ivory); }
.packages-wrap .eyebrow { color: #E8D3AE; }
.packages-wrap .lead { color: rgba(246,241,231,.78); }
.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; align-items: stretch; }
.pkg { position: relative; display: flex; flex-direction: column; border: 1px solid rgba(246,241,231,.16); border-radius: var(--radius); padding: 38px 32px 32px; background: var(--night-2); }
.pkg--featured { border-color: var(--gold); background: linear-gradient(180deg, #2E261D, var(--night-2)); }
.pkg__badge { position: absolute; top: -12px; left: 32px; background: var(--gold); color: var(--night); font: 500 .68rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding: 7px 12px; border-radius: 2px; }
.pkg__kicker { font: 400 .76rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #E8D3AE; margin-bottom: 10px; }
.pkg h3 { font-size: 2rem; margin-bottom: 18px; }
.pkg__price { font: 400 2.6rem/1 var(--serif); color: var(--ivory); }
.pkg__price small { font: 400 .95rem/1 var(--sans); color: rgba(246,241,231,.6); margin-right: 6px; letter-spacing: .05em; }
.pkg__vat { display: block; font-size: .8rem; letter-spacing: .1em; color: rgba(246,241,231,.5); margin: 8px 0 24px; text-transform: uppercase; }
.pkg ul { list-style: none; padding: 22px 0 0; margin: 0 0 30px; border-top: 1px solid rgba(246,241,231,.14); display: grid; gap: 11px; font-size: .96rem; }
.pkg li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.pkg li::before { content: ""; width: 10px; height: 6px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); margin-top: 9px; }
.pkg .btn { margin-top: auto; }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); margin-top: clamp(60px, 8vw, 100px); padding-top: clamp(50px, 6vw, 70px); border-top: 1px solid rgba(246,241,231,.14); }
.extras h3 { font-size: 1.9rem; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 14px; }
.chips li { border: 1px solid rgba(246,241,231,.24); border-radius: 999px; padding: 8px 16px; font-size: .9rem; color: rgba(246,241,231,.9); }
.small { font-size: .88rem; color: rgba(246,241,231,.55); }

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font: 500 1.35rem/1.35 var(--serif); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 1.6rem/1 var(--sans); color: var(--bronze-2); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: -6px 0 24px; color: var(--muted); max-width: 720px; }

/* ---------- 04 Gallery ---------- */
.gallery { background: var(--ivory); }
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 34px 0 40px; }
.filters button {
  border: 1px solid var(--line); background: transparent; border-radius: 999px; cursor: pointer;
  padding: 10px 20px; font: 400 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}
.filters button[aria-pressed="true"] { background: var(--bronze); border-color: var(--bronze); color: var(--ivory); }
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 12px;
}
.grid figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--stone); cursor: zoom-in; }
.grid figure.wide { grid-column: span 2; }
.grid figure.tall { grid-row: span 2; }
.grid figure.big { grid-column: span 2; grid-row: span 2; }
.grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.grid figure:hover img { transform: scale(1.04); }
.grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; color: var(--ivory);
  font: 400 .72rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(180deg, transparent, rgba(20,16,11,.75)); opacity: 0; transition: opacity .3s;
}
.grid figure:hover figcaption, .grid figure:focus-visible figcaption { opacity: 1; }
.grid figure.placeholder { cursor: default; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; border: 1px dashed var(--bronze-2); background: transparent; color: var(--muted); }
.grid figure.placeholder img { width: 110px; height: auto; opacity: .55; margin-bottom: 14px; }
.grid figure.placeholder span { font: 400 .78rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.grid figure[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(15,12,9,.94); display: none; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 2px; }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(246,241,231,.8); font: 400 .78rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin: 0; }
.lightbox button { position: absolute; background: transparent; border: 0; color: var(--ivory); cursor: pointer; width: 54px; height: 54px; font: 300 2.2rem/1 var(--sans); }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- 05 Contact ---------- */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; margin-top: 50px; }
.cal { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal__head h3 { font-size: 1.55rem; margin: 0; text-transform: capitalize; }
.cal__head button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 1.1rem; color: var(--bronze); }
.cal__head button:disabled { opacity: .35; cursor: default; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { font: 500 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 8px 0; }
.cal__day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 3px;
  border: 1px solid transparent; background: var(--paper); font-size: .92rem; cursor: pointer; color: var(--ink); padding: 0;
}
.cal__day:hover:not(:disabled) { border-color: var(--bronze-2); }
.cal__day.is-weekend { font-weight: 500; }
.cal__day.is-booked { background: var(--booked); color: #fff; cursor: not-allowed; text-decoration: line-through; }
.cal__day.is-pending { background: repeating-linear-gradient(135deg, #EED9B4 0 5px, #F6E8CF 5px 10px); cursor: pointer; }
.cal__day.is-past { color: #BDB3A2; background: transparent; cursor: default; }
.cal__day.is-selected { background: var(--bronze); color: var(--ivory); }
.cal__blank { aspect-ratio: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; font-size: .84rem; color: var(--muted); }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 2px; margin-right: 7px; vertical-align: -2px; border: 1px solid var(--line); background: var(--paper); }
.legend i.p { background: repeating-linear-gradient(135deg, #EED9B4 0 3px, #F6E8CF 3px 6px); }
.legend i.b { background: var(--booked); border-color: var(--booked); }
.cal__hint { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }

.contact-info { margin-top: 30px; display: grid; gap: 16px; font-size: .97rem; }
.contact-info div { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.contact-info svg { width: 20px; height: 20px; stroke: var(--bronze-2); fill: none; stroke-width: 1.4; margin-top: 4px; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-info a:hover { border-color: var(--bronze); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 14px 15px; font-size: 1rem; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--bronze-2); outline: none; box-shadow: 0 0 0 3px rgba(196,154,90,.18); }
.check { grid-column: 1 / -1; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .9rem; color: var(--muted); align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--bronze); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__ok { grid-column: 1 / -1; display: none; background: #EEF0E6; border-left: 3px solid var(--moss); padding: 14px 18px; color: var(--moss); font-size: .95rem; margin: 0; }
.form__ok.is-visible { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--night); color: rgba(246,241,231,.7); padding: 80px 0 30px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__logo { width: 260px; margin-bottom: 18px; }
.footer h4 { font: 500 .74rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #E8D3AE; margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ivory); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(246,241,231,.12); margin-top: 60px; padding-top: 24px; font-size: .82rem; color: rgba(246,241,231,.45); }
.footer__bottom nav { display: flex; gap: 20px; }
/* the 1994 drawing, inverted into faint chalk lines behind the footer */
.footer { position: relative; overflow: hidden; isolation: isolate; }
.footer::before {
  content: ""; position: absolute; inset: -10% -5% auto auto; width: min(1100px, 95vw); aspect-ratio: 1.42; z-index: -1;
  background: url("images/hist-drawing-ink.jpg") center / contain no-repeat;
  filter: invert(1) grayscale(1); mix-blend-mode: screen; opacity: .14; pointer-events: none;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .type img, .grid img { transition: none; }
  .valley__zoom { transform: none; transition: none; }
  .pin { transition: none; }
  .pin__dot::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .header__inner > .btn { display: none; }
}
@media (max-width: 1180px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; background: var(--paper); color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 26px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); border-top: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .nav__links a::after { display: none; }
  .nav .lang { align-self: flex-start; margin-top: 20px; }
  .nav .lang button[aria-pressed="true"] span { color: var(--ivory); }
  .header.menu-open { background: var(--paper); color: var(--ink); }
  .header.menu-open .brand__mark--light { display: none; }
  .header.menu-open .brand__mark--dark { display: block; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .valley__frame::after { background: linear-gradient(0deg, rgba(28,24,19,1) 0%, rgba(28,24,19,0) 30%); }
  .valley__text { position: static; padding: 0 0 64px; margin-top: -24px; }
}
@media (max-width: 1100px) {
  .pkg { padding: 34px 22px 26px; }
  .pkg h3 { font-size: 1.75rem; }
  .types { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .castle__grid, .stay__grid, .contact__grid, .extras { grid-template-columns: 1fr; }
  .packages { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pkg { padding: 34px 26px 28px; }
  .castle__media { margin-right: 24px; }
  .chronicle__track::before, .chap::after { display: none; }
  .origins { grid-template-columns: 1fr; gap: 44px; }
  .plate { position: static; }
  .plate__mat { transform: rotate(-.8deg); }
  .charter { padding: 24px 18px 22px; }
  .chap { grid-template-columns: 1fr; gap: 30px; }
  .chap:nth-child(even) .chap__media { order: 0; }
  .chap:nth-child(even) .chap__media figcaption { text-align: left; }
  .chap:nth-child(even) .frame::after { inset: 16px -16px -16px 16px; }
  .frame { margin-right: 16px; }
  .valley__frame { aspect-ratio: 4 / 3; max-height: none; }
  .stay__media { order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand__mark { width: 50px; }
  .hero__logo { width: 190px; margin-bottom: 20px; }
  .brand__name { font-size: 1rem; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid rgba(246,241,231,.18); }
  .facts strong { font-size: 1.5rem; }
  .features, .types { grid-template-columns: 1fr; }
  .type { min-height: 320px; }
  .form { grid-template-columns: 1fr; }
  .grid { grid-auto-rows: 140px; gap: 8px; }
  .grid figure.big, .grid figure.wide { grid-column: span 2; }
  .cal { padding: 16px; }
  .pkg { padding: 34px 22px 26px; }
  .footer__grid { grid-template-columns: 1fr; }
}
