/* ==========================================================================
   Pensiunea Surya — stylesheet
   ========================================================================== */

/* Self-hosted fonts (variable woff2, latin + latin-ext subsets from Google Fonts) */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #1e3a2f;
  --forest-2: #2c5140;
  --forest-3: #3f6b55;
  --sun: #e0a43a;
  --sun-dark: #b9791c;
  --sun-text: #8a5a12;
  --cream: #f8f4ec;
  --sand: #efe6d6;
  --paper: #fffdf9;
  --ink: #1d2420;
  --muted: #5d6a62;
  --line: rgba(29, 36, 32, 0.12);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(30, 58, 47, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(30, 58, 47, 0.4);
  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-width: thin;
  scrollbar-color: var(--sun) var(--forest);
  -webkit-text-size-adjust: 100%;
}

@supports selector(::-webkit-scrollbar) {
  html {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
}

html::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track { background: var(--forest); }
html::-webkit-scrollbar-thumb {
  min-height: 48px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--sun);
  background-clip: content-box;
}
html::-webkit-scrollbar-thumb:hover {
  background: var(--sun-dark);
  background-clip: content-box;
}
html::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

@media (pointer: coarse), (max-width: 760px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.prose-article { scroll-margin-top: 1.5rem; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

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

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--sun); color: var(--forest); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--forest); color: var(--cream); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--sun-text); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow { color: var(--sun); }

.section-head { max-width: 680px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section--dark .section-head p { color: rgba(248, 244, 236, 0.75); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.9rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1; cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--sun { background: var(--sun); color: var(--forest); }
.btn--sun:hover { background: #eab44f; }
.btn--forest { background: var(--forest); color: var(--cream); }
.btn--forest:hover { background: var(--forest-2); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.08); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }
.btn--outline { border-color: var(--forest); color: var(--forest); }
.btn--outline:hover { background: var(--forest); color: var(--cream); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--forest); border-bottom: 2px solid var(--sun); padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  color: #fff;
  transition: box-shadow 0.18s;
}
.site-header.is-solid,
.site-header--solid {
  background: #fffdf9f5; color: var(--ink);
  border-bottom: 1px solid rgba(224, 164, 58, 0.28);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 10px 28px -18px rgba(0, 0, 0, 0.62);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand__mark { width: 42px; height: 42px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__stars { font-size: 0.7rem; letter-spacing: 0.25em; color: var(--sun); margin-top: 3px; white-space: nowrap; }
.site-header.is-solid .brand__stars,
.site-header--solid .brand__stars { color: var(--sun-text); }
.nav-open .site-header .brand__stars { color: var(--sun); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.6rem; }
.nav__list a { font-size: 0.95rem; font-weight: 500; position: relative; padding: 0.3rem 0; opacity: 0.92; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__list a:hover::after,
.nav__list a[aria-current]::after { transform: scaleX(1); }
.nav .btn { padding: 0.7rem 1.25rem; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.6rem;
  border: 1.5px solid currentColor; border-radius: 999px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em;
  opacity: 0.85; transition: opacity 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}
.lang-switch:hover { opacity: 1; background: var(--sun); border-color: var(--sun); color: var(--forest); }

.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; position: relative; z-index: 2; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 2.5rem;
    background: var(--forest); color: var(--cream);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open .site-header { color: var(--cream); background: transparent; box-shadow: none; backdrop-filter: none; }
  .nav__list { flex-direction: column; align-items: center; gap: 1.3rem; }
  .nav__list a { font-family: var(--font-serif); font-size: 1.8rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transform: scale(1.035);
  transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1), transform 9s ease-out;
}
.hero__slide.is-active { z-index: 1; opacity: 1; transform: scale(1); }
.hero__slide picture,
.video-embed__poster picture { display: contents; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero__slide:nth-child(2) img { object-position: center; }
.hero__slide:nth-child(3) img,
.hero__slide:nth-child(4) img { object-position: center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 24, 17, 0.6) 0%, rgba(10, 24, 17, 0.36) 48%, rgba(10, 24, 17, 0.12) 78%, rgba(10, 24, 17, 0.03) 100%),
    linear-gradient(180deg, rgba(10, 24, 17, 0.42) 0%, rgba(10, 24, 17, 0.06) 28%, rgba(10, 24, 17, 0.2) 58%, rgba(10, 24, 17, 0.78) 100%);
}

.hero__content { padding: calc(var(--header-h) + clamp(1rem, 5vh, 3rem)) 0 clamp(1.5rem, 6vh, 3.5rem); max-width: 820px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.45rem 1rem 0.45rem 0.6rem;
  border-radius: 999px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px); font-size: 0.85rem; font-weight: 500; margin-bottom: clamp(0.75rem, 3vh, 1.5rem);
}
.hero__badge .stars { color: var(--sun); letter-spacing: 0.15em; background: rgba(0, 0, 0, 0.25); border-radius: 999px; padding: 0.1rem 0.55rem; }
.hero h1 { font-size: clamp(2.4rem, min(7vw, 9vh), 5.2rem); font-weight: 500; margin-bottom: clamp(0.6rem, 2vh, 1.2rem); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.72), 0 10px 30px rgba(0, 0, 0, 0.45); }
.hero h1 em { font-style: italic; color: var(--sun); }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); max-width: 620px; color: #fff; margin-bottom: clamp(1rem, 4vh, 2rem); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.92), 0 4px 16px rgba(0, 0, 0, 0.55); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero__controls {
  display: inline-flex; align-items: center; gap: 0.25rem; margin-top: clamp(1rem, 2.5vh, 1.5rem);
  padding: 0.22rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px;
  background: rgba(15, 30, 23, 0.32); backdrop-filter: blur(8px);
}
.hero__dots { display: flex; align-items: center; }
.hero__dot,
.hero__pause {
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer;
}
.hero__dot::after {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.62); transition: width 0.35s var(--ease), background-color 0.35s;
}
.hero__dot:hover::after { background: #fff; }
.hero__dot.is-active::after { width: 20px; background: var(--sun); }
.hero__pause { border-left: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0 50% 50% 0; }
.hero__pause:hover { color: var(--sun); }
.hero__pause-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__pause-icon--play { display: none; }
.hero__controls.is-paused .hero__pause-icon--pause { display: none; }
.hero__controls.is-paused .hero__pause-icon--play { display: block; }

.hero__facts {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 30, 23, 0.35); backdrop-filter: blur(10px);
}
.hero__facts ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__facts li { padding: 1.1rem 1rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.92); }
.hero__facts li + li { border-left: 1px solid rgba(255, 255, 255, 0.15); }
.hero__facts svg { width: 22px; height: 22px; color: var(--sun); flex: none; }
.hero__facts strong { display: block; color: #fff; font-weight: 600; }

@media (max-width: 760px) {
  .hero__slide img { object-position: center; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(10, 24, 17, 0.52) 0%, rgba(10, 24, 17, 0.4) 72%, rgba(10, 24, 17, 0.22) 100%),
      linear-gradient(180deg, rgba(10, 24, 17, 0.32) 0%, rgba(10, 24, 17, 0.18) 26%, rgba(10, 24, 17, 0.43) 60%, rgba(10, 24, 17, 0.78) 100%);
  }
  .hero__badge { background: rgba(10, 24, 17, 0.34); border-color: rgba(255, 255, 255, 0.35); }
  .hero > .container { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .hero__facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__facts li { padding: 0.9rem 0.75rem; font-size: 0.85rem; gap: 0.6rem; }
  .hero__facts li:nth-child(3) { border-left: 0; }
  .hero__facts li:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .hero__content { padding-bottom: 2.5rem; }
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; color: #fff; padding: calc(var(--header-h) + 5rem) 0 4.5rem; overflow: hidden; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg picture { display: contents; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 24, 17, 0.42) 0%, rgba(10, 24, 17, 0.25) 60%, rgba(10, 24, 17, 0.08) 100%),
    linear-gradient(180deg, rgba(15, 30, 23, 0.46), rgba(15, 30, 23, 0.68));
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 500; max-width: 820px; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.72), 0 8px 24px rgba(0, 0, 0, 0.4); }
.page-hero p { max-width: 640px; color: #fff; font-size: 1.1rem; margin: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 4px 14px rgba(0, 0, 0, 0.5); }
.breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 1.2rem; }
.breadcrumb a:hover { color: var(--sun); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__media img:nth-child(2) { position: absolute; right: 0; bottom: 0; width: 52%; border: 6px solid var(--cream); }
.about__stamp {
  position: absolute; left: -18px; top: -18px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--sun); color: var(--forest); display: grid; place-content: center; text-align: center;
  font-family: var(--font-serif); box-shadow: var(--shadow); transform: rotate(-8deg);
}
.about__stamp strong { font-size: 1.15rem; line-height: 1; letter-spacing: 0.1em; margin-bottom: 0.35rem; }
.about__stamp span { font-size: 0.72rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; max-width: 80px; }
.about__text h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.about__text > p { color: var(--muted); font-size: 1.08rem; }

.buildings { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.building { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem 1.3rem 1.1rem; }
.building__num { font-family: var(--font-serif); color: var(--sun-text); font-size: 0.9rem; font-weight: 600; }
.building h3 { font-size: 1.2rem; margin: 0.2rem 0 0.5rem; }
.building p { font-size: 0.93rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__stamp { left: 8px; top: -24px; width: 100px; height: 100px; }
}
@media (max-width: 520px) { .buildings { grid-template-columns: 1fr; } }

/* ---------- Video presentation ---------- */
.section--video { overflow: hidden; }
.video-feature {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}
.video-feature__copy { max-width: 430px; }
.video-feature__copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.video-feature__copy p { color: rgba(248, 244, 236, 0.75); font-size: 1.08rem; }
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(248, 244, 236, 0.18);
  border-radius: var(--radius);
  background: #0a1510;
}
.video-embed.is-playing {
  aspect-ratio: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.video-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(248, 244, 236, 0.18);
  border-radius: var(--radius);
  background: #0a1510;
}
.video-embed__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #0a1510;
  color: var(--cream);
  cursor: pointer;
  overflow: hidden;
}
.video-embed__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 16, 12, 0.5), rgba(8, 16, 12, 0.08) 60%);
}
.video-embed__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease), filter 0.3s;
}
.video-embed__poster:hover img { transform: scale(1.02); filter: brightness(0.92); }
/* Parents clip overflow, so draw the focus ring inside the element */
.video-embed__poster:focus-visible,
.room__media:focus-visible { outline-offset: -4px; border-radius: inherit; }
.video-embed__action {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.8rem;
}
.video-embed__play {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sun);
  transition: transform 0.25s var(--ease), background-color 0.25s;
}
.video-embed__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 17px solid var(--forest);
}
.video-embed__poster:hover .video-embed__play { transform: scale(1.08); background: #eab44f; }
.video-embed__label {
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(8, 16, 12, 0.78);
  font-size: 0.86rem;
  font-weight: 600;
}
.video-embed > iframe,
.video-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.65rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(248, 244, 236, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(8, 16, 12, 0.72);
  color: var(--cream);
}
.video-embed__control {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(248, 244, 236, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}
.video-embed__control:hover,
.video-embed__control:focus-visible { background: rgba(255, 255, 255, 0.17); }
.video-embed__control.is-muted { color: var(--sun); }
.video-embed__control svg { width: 21px; height: 21px; }
.video-embed__volume { flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.65rem; font-size: 0.86rem; font-weight: 600; }
.video-embed__volume input {
  --video-volume: 100%;
  flex: 1;
  min-width: 80px;
  height: 36px;
  margin: 0;
  accent-color: var(--sun);
  cursor: pointer;
  touch-action: pan-x;
}
.video-embed__volume-value { min-width: 3.5ch; color: rgba(248, 244, 236, 0.82); font-variant-numeric: tabular-nums; text-align: right; }

.video-embed:fullscreen,
.video-embed:-webkit-full-screen {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: #050a07;
}
.video-embed:fullscreen .video-embed__frame,
.video-embed:-webkit-full-screen .video-embed__frame { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; }
.video-embed:fullscreen .video-embed__controls,
.video-embed:-webkit-full-screen .video-embed__controls { margin: 0; border-width: 1px 0 0; border-radius: 0; background: rgba(5, 10, 7, 0.96); }

@media (max-width: 800px) {
  .video-feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .video-feature__copy { max-width: 620px; }
}

@media (max-width: 520px) {
  .video-embed { border-radius: var(--radius-sm); }
  .video-embed__frame { border-radius: var(--radius-sm); }
  .video-embed__play { width: 58px; height: 58px; }
  .video-embed__play::before { border-top-width: 9px; border-bottom-width: 9px; border-left-width: 14px; }
  .video-embed__controls { gap: 0.45rem; padding: 0.5rem; }
  .video-embed__volume { gap: 0.4rem; }
  .video-embed__volume > span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .video-embed__volume-value { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .video-embed__control { width: 40px; height: 40px; }
  .video-embed__volume input { min-width: 54px; }
  .video-embed__volume-value { display: none; }
}

/* ---------- Rooms ---------- */
.rooms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.room {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.room:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.room__media { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--sand); overflow: hidden; aspect-ratio: 4 / 3; }
.room__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.room:hover .room__media img { transform: scale(1.06); }
.room__count {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(15, 30, 23, 0.75); color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 0.35rem 0.7rem; border-radius: 999px; backdrop-filter: blur(4px);
}
.room__count svg { width: 14px; height: 14px; }
.room__body { padding: 1.3rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.room__label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-text); }
.room h3 { font-size: 1.45rem; margin: 0.25rem 0 0.7rem; }
.room__features { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; }
.room__features li { display: flex; gap: 0.55rem; align-items: center; }
.room__features svg { width: 18px; height: 18px; color: var(--forest-3); flex: none; }
.room__footer { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.room__price { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 600; color: var(--forest); line-height: 1; }
.room__price small { display: block; font-family: var(--font-sans); font-size: 0.75rem; font-weight: 500; color: var(--muted); margin-top: 0.3rem; }
.room__cta { font-size: 0.88rem; font-weight: 600; color: var(--forest); border-bottom: 2px solid var(--sun); }

.rooms-note { margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); text-align: center; }

.spaces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3.5rem; }
.space { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; border: 0; padding: 0; cursor: zoom-in; color: #fff; text-align: left; background: var(--forest); }
.space img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.space::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 16, 0.85)); }
.space:hover img { transform: scale(1.06); }
.space__caption { position: absolute; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; z-index: 1; }
.space__title { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; margin-bottom: 0.2rem; }
.space__text { display: block; font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); }

@media (max-width: 1100px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .spaces { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .rooms { grid-template-columns: 1fr; } }

/* ---------- Facilities ---------- */
.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(248, 244, 236, 0.12); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(248, 244, 236, 0.12); }
.facility { background: var(--forest); padding: 1.8rem 1.5rem; transition: background-color 0.3s; }
.facility:hover { background: var(--forest-2); }
.facility__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(224, 164, 58, 0.14); color: var(--sun); margin-bottom: 1.1rem; }
.facility__icon svg { width: 26px; height: 26px; }
.facility h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; margin-bottom: 0.35rem; }
.facility p { font-size: 0.9rem; color: rgba(248, 244, 236, 0.7); margin: 0; }

@media (max-width: 1000px) { .facilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facilities { grid-template-columns: 1fr; } }

/* ---------- Surroundings ---------- */
.surroundings { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.surroundings__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.surroundings__intro h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.surroundings__intro p { color: var(--muted); font-size: 1.05rem; }
.surroundings__photo { border-radius: var(--radius); overflow: hidden; margin: 1.8rem 0; box-shadow: var(--shadow); }
.surroundings__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.forts { display: grid; gap: 1rem; counter-reset: fort; }
.fort {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.3rem 1.5rem; transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.fort:hover { border-color: var(--sun); transform: translateX(6px); box-shadow: var(--shadow); }
.fort::before { counter-increment: fort; content: counter(fort, decimal-leading-zero); font-family: var(--font-serif); font-size: 1.6rem; color: var(--sun-dark); font-weight: 500; }
.fort h3 { font-size: 1.2rem; margin: 0 0 0.2rem; }
.fort > div { min-width: 0; }
.fort p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.fort__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); color: var(--forest); transition: background-color 0.3s; }
.fort:hover .fort__arrow { background: var(--sun); }
.fort__arrow svg { width: 18px; height: 18px; }
.fort__tag { display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--forest-3); background: rgba(63, 107, 85, 0.1); padding: 0.15rem 0.5rem; border-radius: 4px; margin-left: 0.4rem; vertical-align: middle; }

@media (max-width: 900px) {
  .surroundings { grid-template-columns: minmax(0, 1fr); }
  .surroundings__intro { position: static; }
}

/* ---------- Gallery teaser ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 0.9rem; }
.mosaic__item { position: relative; overflow: hidden; border-radius: var(--radius-sm); border: 0; padding: 0; cursor: zoom-in; background: var(--sand); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.4s; }
.mosaic__item:hover img { transform: scale(1.07); }
.mosaic__item--tall { grid-row: span 2; }
.mosaic__item--wide { grid-column: span 2; }
.mosaic-footer { display: flex; justify-content: center; margin-top: 2.5rem; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

/* ---------- Seasons band ---------- */
.band { position: relative; color: #fff; padding: clamp(5rem, 12vw, 9rem) 0; overflow: hidden; isolation: isolate; text-align: center; }
.band__bg { position: absolute; inset: 0; z-index: -2; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(15, 30, 23, 0.6); }
.band h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; max-width: 800px; margin-inline: auto; }
.band p { max-width: 620px; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; }

/* ---------- Contact / Booking ---------- */
.booking { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: stretch; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.5rem, 3.5vw, 2.5rem); }
.card h3 { font-size: 1.6rem; }
.card > p { color: var(--muted); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 600; color: var(--forest); }
.field input,
.field select,
.field textarea {
  width: 100%; min-width: 0; padding: 0.8rem 0.95rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--forest-3); box-shadow: 0 0 0 4px rgba(63, 107, 85, 0.15); }
.date-input { position: relative; }
.date-input input { color: transparent; padding-right: 3rem; }
.date-input input::-webkit-datetime-edit,
.date-input input::-webkit-date-and-time-value { opacity: 0; }
.date-input__value {
  position: absolute; top: 50%; left: 0.95rem; right: 3rem; transform: translateY(-50%);
  pointer-events: none; color: var(--ink); line-height: 1;
}
.field .error { font-size: 0.8rem; color: #b23b2a; min-height: 0; }
.field.is-invalid input,
.field.is-invalid select { border-color: #b23b2a; }
.form__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.form__hint { font-size: 0.82rem; color: var(--muted); margin: 0; flex: 1 1 240px; }
.form__status { grid-column: 1 / -1; margin: 0; padding: 0.9rem 1rem; border-radius: var(--radius-sm); background: rgba(63, 107, 85, 0.1); color: var(--forest); font-size: 0.92rem; }
.form__status[hidden] { display: none; }
.form__status--error { background: rgba(180, 83, 9, 0.1); color: #92400e; }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.btn:disabled { opacity: 0.6; cursor: progress; }

@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

.contact-card { background: var(--forest); color: var(--cream); }
.contact-card h3 { color: #fff; }
.contact-list { display: grid; gap: 1.1rem; margin: 1.5rem 0 1.8rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0.9rem; align-items: start; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(224, 164, 58, 0.15); color: var(--sun); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248, 244, 236, 0.6); margin-bottom: 0.1rem; }
.contact-list a:hover { color: var(--sun); }
.contact-list a { overflow-wrap: anywhere; }
.map { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--forest-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
.map__load {
  position: relative; width: 100%; height: 100%; padding: 0; border: 0; display: grid; place-items: center;
  background: var(--forest-2); color: var(--cream); font: inherit; cursor: pointer; overflow: hidden;
}
.map__load img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; transition: opacity 0.3s, transform 0.5s var(--ease); }
.map__load:hover img { opacity: 0.5; transform: scale(1.03); }
.map__load:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.map__load-label { position: relative; display: grid; justify-items: center; gap: 0.6rem; padding: 1rem; text-align: center; }
.map__load-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.25rem; border-radius: 999px; background: var(--sun); color: var(--forest); font-weight: 600; }
.map__load-btn svg { width: 18px; height: 18px; }
.map__load-label small { max-width: 30ch; font-size: 0.78rem; line-height: 1.4; color: rgba(248, 244, 236, 0.85); }

@media (max-width: 960px) { .booking { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: #142820; color: rgba(248, 244, 236, 0.75); padding: 4.5rem 0 2rem; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.site-footer h4 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun); margin-bottom: 1rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer ul { display: grid; gap: 0.5rem; }
.site-footer a:hover { color: var(--sun); }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(248, 244, 236, 0.2); transition: background-color 0.25s, border-color 0.25s; }
.footer-social a:hover { background: var(--sun); border-color: var(--sun); color: var(--forest); }
.footer-social svg { width: 18px; height: 18px; }
.anpc-links { margin-top: 2.25rem; display: flex; justify-content: center; }
.anpc-links a { display: inline-flex; border-radius: 0.8rem; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.anpc-links a:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.7); }
.anpc-links a:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; }
.anpc-links img { display: block; width: 250px; height: 50px; max-width: 100%; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(248, 244, 236, 0.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.84rem; color: rgba(248, 244, 236, 0.55); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating call button (mobile) ---------- */
.fab-call {
  position: fixed; right: 0.85rem; bottom: max(0.85rem, env(safe-area-inset-bottom)); z-index: 90; display: none;
  width: 52px; height: 52px; padding: 0; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--sun); color: var(--forest); box-shadow: 0 9px 22px -9px rgba(0, 0, 0, 0.5);
  transform: translateY(calc(100% + 2rem)); transition: transform 0.4s var(--ease);
}
.fab-call span { display: none; }
.fab-call svg { width: 23px; height: 23px; }
.fab-call.is-visible { transform: none; }
@media (max-width: 760px) { .fab-call { display: inline-flex; } }

/* ---------- Gallery page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 2.5rem; }
.chip {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 0.55rem 1.1rem; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.25s;
}
.chip span { color: var(--muted); font-size: 0.8rem; margin-left: 0.25rem; }
.chip:hover { border-color: var(--forest-3); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.chip[aria-pressed="true"] span { color: var(--sun); }

.masonry { columns: 4 260px; column-gap: 0.9rem; }
.masonry__item { break-inside: avoid; margin-bottom: 0.9rem; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--sand); animation: fadeUp 0.5s var(--ease) both; }
.masonry__item img { width: 100%; transition: transform 0.7s var(--ease); }
.masonry__item:hover img { transform: scale(1.05); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Surroundings page ---------- */
.article-layout { display: grid; grid-template-columns: 260px 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); }
.toc h2 { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sun-text); margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -2px; border-left: 2px solid transparent; font-size: 0.94rem; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--forest); border-left-color: rgba(224, 164, 58, 0.55); }
.toc a.is-active { color: var(--forest); border-left-color: var(--sun); font-weight: 600; }

.prose-article { background: var(--paper); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 3rem); box-shadow: var(--shadow); margin-bottom: 1.8rem; }
.prose-article__meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.pill { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; padding: 0.3rem 0.7rem; border-radius: 999px; background: var(--sand); color: var(--forest); }
.pill--sun { background: rgba(224, 164, 58, 0.2); color: var(--sun-text); }
.prose-article h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.prose { color: #37413b; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--forest); }
.source-note { font-size: 0.85rem; color: var(--muted); }
.source-note a { text-decoration: underline; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0.5rem; border: 0; }
  .toc a { border: 1.5px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; margin: 0; font-size: 0.85rem; }
  .toc a:hover { border-color: rgba(224, 164, 58, 0.7); }
  .toc a.is-active { border-color: var(--forest); }
}

/* ---------- Legal page ---------- */
.legal { max-width: 780px; margin-inline: auto; }
.legal h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1em; }
.legal li { margin-bottom: 0.35rem; }
.legal a { text-decoration: underline; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr auto;
  background: rgba(8, 16, 12, 0.96); color: #fff;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s, visibility 0s; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; gap: 1rem; }
.lightbox__title { font-family: var(--font-serif); font-size: 1.15rem; }
.lightbox__counter { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); margin-left: 0.7rem; font-family: var(--font-sans); }
.lightbox__stage { position: relative; display: grid; place-items: center; padding: 0 4.5rem; min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); transition: opacity 0.25s; }
.lightbox__stage img.is-loading { opacity: 0; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer; transition: background-color 0.2s; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 1rem; }
.lb-next { right: 1rem; }
.lightbox__thumbs { display: flex; gap: 0.5rem; padding: 1rem; overflow-x: auto; justify-content: safe center; scrollbar-width: thin; }
.lightbox__thumbs button { flex: none; width: 72px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: 0.5; background: #000; transition: opacity 0.2s, border-color 0.2s; }
.lightbox__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__thumbs button:hover { opacity: 0.85; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--sun); }

@media (max-width: 640px) {
  .lightbox__stage { padding: 0 0.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: -64px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
  .lightbox__thumbs { padding-top: 4.5rem; }
}

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Anchor targets must not be offset by the reveal transform while the browser scrolls to them */
.js .reveal:target { opacity: 1; transform: none; transition: none; }
.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__slide { transform: none !important; transition: opacity 2s ease-in-out !important; }
}
