@font-face {
  font-family: "Bricolage Balkonett";
  src: url("assets/images/BricolageGrotesque.ttf") format("truetype");
  font-display: swap;
  font-weight: 200 800;
}

:root {
  color-scheme: light;
  --brand-yellow: #f5c63c;
  --brand-yellow-hover: #e4b42b;
  --brand-yellow-soft: #fff8de;
  --brand-olive: #78641f;
  --brand-olive-dark: #514316;
  --ink: #2f2b20;
  --muted: #6d6757;
  --background: #ffffff;
  --surface: #ffffff;
  --surface-alt: #fffaf0;
  --line: #e2dac8;
  --danger: #a23228;
  --content: min(1180px, calc(100% - 48px));
  --radius-card: 22px;
  --radius-control: 10px;
  --shadow: 0 18px 55px rgba(81, 67, 22, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: Aptos, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body, button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-family: "Bricolage Balkonett", Aptos, "Segoe UI", sans-serif;
  font-weight: 680;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h1 { max-width: 10ch; font-size: clamp(3.2rem, 6vw, 5.6rem); }
h2 { max-width: 16ch; font-size: clamp(2.35rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.72rem); letter-spacing: -0.02em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--brand-olive-dark); outline-offset: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 15px; border-radius: var(--radius-control); color: #fff; background: var(--brand-olive-dark); transform: translateY(-160%); transition: transform 160ms var(--ease-out); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--header-height);
  padding: 8px max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid transparent;
  background: var(--surface);
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px rgba(81, 67, 22, 0.07); }
.brand { min-width: 250px; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(120, 100, 31, 0.12); }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-family: "Bricolage Balkonett", sans-serif; font-size: 1.06rem; letter-spacing: -0.015em; }
.brand small { margin-top: 3px; color: var(--brand-olive); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.site-nav a { position: relative; min-height: 42px; padding: 0 11px; display: inline-flex; align-items: center; color: var(--muted); font-size: 0.9rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 11px; bottom: 7px; left: 11px; height: 2px; background: var(--brand-yellow); transform: scaleX(0); transform-origin: right; transition: transform 180ms var(--ease-out); }
.site-nav .nav-cta { margin-left: 6px; padding-inline: 18px; border-radius: 999px; color: #fff; background: var(--brand-olive); transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.menu-button { min-height: 44px; padding: 0 15px; display: none; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface); font-weight: 750; cursor: pointer; }

.hero { padding: 34px 0 0; background: linear-gradient(180deg, var(--brand-yellow-soft), var(--background)); }
.hero-inner { width: var(--content); min-height: min(720px, calc(100dvh - var(--header-height) - 34px)); margin: 0 auto; display: grid; grid-template-columns: 0.84fr 1.16fr; align-items: center; gap: clamp(42px, 6vw, 88px); }
.hero-copy { max-width: 580px; padding-block: 36px; }
.hero h1 { color: var(--brand-olive-dark); }
.hero-lead { max-width: 550px; margin-top: 24px; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.3rem); line-height: 1.55; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 999px; font-weight: 780; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.button-primary { color: #fff; background: var(--brand-olive); }
.button-secondary { border-color: var(--brand-olive); color: var(--brand-olive-dark); background: transparent; }
.button-dark { color: #fff; background: var(--brand-olive-dark); }
.hero-media { position: relative; width: 100%; height: min(620px, calc(100dvh - 130px)); min-height: 500px; margin: 0; overflow: hidden; border-radius: 30px 30px 30px 8px; box-shadow: var(--shadow); }
.hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-logo { position: absolute; right: 24px; bottom: 24px; width: 136px; height: 136px; padding: 8px; border-radius: 50%; background: #fff; box-shadow: 0 12px 40px rgba(47, 43, 32, 0.18); }
.hero-logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.quick-facts { position: relative; z-index: 2; width: var(--content); margin: -28px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); }
.quick-facts > div, .quick-facts > a { min-height: 116px; padding: 24px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); text-decoration: none; }
.quick-facts > :last-child { border-right: 0; }
.quick-facts strong, .quick-facts span { display: block; }
.quick-facts strong { color: var(--brand-olive-dark); font-family: "Bricolage Balkonett", sans-serif; font-size: 1.25rem; line-height: 1.2; }
.quick-facts span { margin-top: 6px; color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.quick-facts strong .counter { display: inline; margin: 0; color: inherit; font: inherit; line-height: inherit; }

.section-pad { width: var(--content); margin: 0 auto; padding: 76px 0; }
.section-intro { max-width: 720px; margin-bottom: 32px; }
.section-intro h2 + p { max-width: 650px; margin-top: 15px; color: var(--muted); font-size: 1.08rem; }
.section-intro-centered { margin-inline: auto; text-align: center; }
.section-intro-centered h2, .section-intro-centered p { margin-inline: auto; }

.overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.overview-card { min-height: 260px; padding: 30px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); }
.overview-card h3 { margin-top: 0; }
.overview-card p { margin-top: 12px; color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
.overview-card-accent { border-color: var(--brand-yellow); background: var(--brand-yellow); }
.overview-card-accent p { color: #514821; }

.about { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(60px, 9vw, 130px); }
.about-media { position: relative; height: 570px; padding: 0 72px 72px 0; }
.about-main { width: 100%; height: 498px; object-fit: cover; border-radius: var(--radius-card); }
.about-detail { position: absolute; right: 0; bottom: 0; width: 45%; height: 270px; object-fit: cover; border: 8px solid var(--background); border-radius: var(--radius-card); box-shadow: var(--shadow); }
.about-copy > p { max-width: 590px; margin-top: 24px; color: var(--muted); font-size: 1.08rem; }
.check-list { margin: 30px 0 0; padding-left: 22px; display: grid; gap: 12px; }
.check-list li { padding-left: 5px; font-weight: 700; }
.check-list li::marker { color: var(--brand-yellow); font-size: 1.2em; }

.rooms { width: 100%; padding-inline: max(24px, calc((100vw - 1180px) / 2)); background: var(--surface-alt); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room-card { overflow: hidden; contain: paint; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: 0 12px 36px rgba(81, 67, 22, 0.07); }
.room-card > img { width: 100%; height: 310px; object-fit: cover; }
.room-card-body { padding: 28px; }
.room-card-body p { min-height: 5em; margin-top: 13px; color: var(--muted); font-size: 0.94rem; }
.room-card-body a { display: inline-block; margin-top: 22px; color: var(--brand-olive); font-weight: 800; }

.amenities { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: start; gap: clamp(50px, 8vw, 110px); }
.amenities .section-intro { position: sticky; top: 96px; margin-bottom: 0; }
.amenity-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.amenity-list > div { min-height: 158px; padding: 25px; display: grid; align-content: start; border-top: 4px solid var(--brand-yellow); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.amenity-list svg { width: 26px; height: 26px; margin-bottom: 13px; justify-self: start; fill: none; stroke: var(--brand-olive); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.amenity-list strong { line-height: 1.3; }
.amenity-list small { margin-top: 7px; color: var(--muted); line-height: 1.45; }

.gallery-section { width: 100%; padding-inline: max(24px, calc((100vw - 1180px) / 2)); background: var(--brand-yellow-soft); }
.gallery-filters { margin: -10px 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface); font-weight: 740; cursor: pointer; transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out), background-color 180ms var(--ease-out), transform 180ms var(--ease-out); }
.filter-button.is-active { border-color: var(--brand-olive); color: #fff; background: var(--brand-olive); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 12px; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; contain: paint; padding: 0; border: 0; border-radius: 14px; background: var(--surface-alt); cursor: zoom-in; }
.gallery-item[hidden] { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms var(--ease-out), filter 180ms var(--ease-out); }
.gallery-item img.focus-top { object-position: center 26%; }
.gallery-wide { grid-column: span 2; }
.gallery-tall { grid-row: span 2; }

.location { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; margin-block: 76px; overflow: hidden; border-radius: var(--radius-card); background: var(--brand-yellow); }
.location-copy { padding: clamp(40px, 6vw, 76px); }
.location-copy h2 { color: var(--brand-olive-dark); }
.location-copy > p { max-width: 590px; margin-top: 22px; color: #514821; }
.location address { margin: 28px 0; color: var(--brand-olive-dark); font-size: 1.08rem; font-style: normal; font-weight: 760; }
.location-map { min-width: 0; margin: 0; padding: clamp(18px, 2.8vw, 34px); display: flex; flex-direction: column; justify-content: center; background: rgba(255, 255, 255, 0.58); }
.location-map-frame { position: relative; overflow: hidden; contain: paint; aspect-ratio: 4 / 3; border-radius: var(--radius-card); background: var(--surface); transition: opacity 480ms var(--ease-out), transform 620ms var(--ease-enter); }
.location-map iframe { width: 100%; height: 100%; display: block; border: 0; pointer-events: auto; }
.location-map figcaption { margin-top: 16px; display: flex; justify-content: center; }
.map-button { gap: 10px; }
.map-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.information { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: clamp(50px, 8vw, 110px); }
.information .section-intro { margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 24px 52px 24px 0; font-size: 1.08rem; font-weight: 780; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 18px; right: 2px; color: var(--brand-olive); font-size: 1.55rem; font-weight: 400; transition: transform 180ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 680px; margin-bottom: 24px; color: var(--muted); }

.contact { display: grid; grid-template-columns: 0.86fr 1.14fr; align-items: start; gap: clamp(50px, 9vw, 120px); }
.contact-copy { position: sticky; top: 110px; }
.contact-logo { width: 118px; height: 118px; margin-bottom: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(120, 100, 31, 0.14); }
.contact-copy > p { max-width: 540px; margin-top: 22px; color: var(--muted); }
.contact-links { margin-top: 28px; display: grid; gap: 10px; }
.contact-links a { width: fit-content; color: var(--brand-olive); font-weight: 780; overflow-wrap: anywhere; }
.inquiry-form { padding: clamp(28px, 5vw, 54px); border: 1px solid #eadca8; border-radius: var(--radius-card); background: var(--brand-yellow-soft); }
.form-field { margin-bottom: 19px; display: grid; gap: 7px; }
.form-field label { color: var(--brand-olive-dark); font-size: 0.9rem; font-weight: 780; }
.form-row { display: grid; grid-template-columns: 1fr 0.72fr; gap: 15px; }
input, textarea { width: 100%; border: 1px solid #d7c993; border-radius: var(--radius-control); color: var(--ink); background: #fff; transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out); }
input { min-height: 49px; padding: 0 14px; }
textarea { min-height: 140px; padding: 13px 14px; resize: vertical; }
input:focus, textarea:focus { outline: 0; border-color: var(--brand-olive); box-shadow: 0 0 0 3px rgba(245, 198, 60, 0.45); }
[aria-invalid="true"] { border-color: var(--danger); }
.field-error { min-height: 1.2em; color: var(--danger); font-weight: 670; }
.form-submit { width: 100%; border: 0; }
.form-submit[disabled] { opacity: 0.66; cursor: wait; }
.form-status { min-height: 1.5em; margin-top: 15px; color: var(--brand-olive-dark); font-weight: 740; }
.form-note { margin-top: 4px; color: var(--muted); font-size: 0.8rem; }

.site-footer { width: var(--content); margin: 0 auto; padding: 38px 0 44px; display: flex; justify-content: space-between; align-items: center; gap: 36px; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; }
.footer-brand div { display: grid; }
.footer-brand span, .footer-meta { color: var(--muted); font-size: 0.84rem; }
.footer-meta { display: flex; gap: 22px; text-align: right; }

.lightbox { width: min(1040px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; border-radius: var(--radius-card); color: #fff; background: #242015; box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5); }
.lightbox::backdrop { background: rgba(32, 28, 18, 0.82); backdrop-filter: blur(8px); }
.lightbox-shell { padding: 16px; }
.lightbox-close { display: block; margin: 0 0 12px auto; }
.lightbox button { min-height: 42px; padding: 0 15px; border: 1px solid #716844; border-radius: var(--radius-control); color: #fff; background: #3a3422; font-weight: 730; cursor: pointer; }
.lightbox figure { margin: 0; }
.lightbox figure img { width: 100%; max-height: 72dvh; object-fit: contain; border-radius: 12px; background: #16130c; }
.lightbox figcaption { min-height: 1.5em; margin-top: 10px; color: #e9e0c5; text-align: center; }
.lightbox-nav { margin-top: 12px; display: flex; justify-content: center; gap: 10px; }

.image-reveal { clip-path: inset(0); }
.js .image-reveal { clip-path: inset(0 0 100% 0); }
.js .image-reveal.is-ready { clip-path: inset(0); transition: clip-path 760ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .site-nav a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
  .button:hover, .nav-cta:hover, .filter-button:hover { transform: translateY(-2px); }
  .button-primary:hover, .nav-cta:hover { background: var(--brand-olive-dark); }
  .button-secondary:hover { color: #fff; background: var(--brand-olive); }
  .gallery-item:hover img { transform: scale(1.035); filter: saturate(1.04); }
  .room-card-body a:hover, .contact-links a:hover { color: var(--brand-olive-dark); }
}

.button:active, .nav-cta:active, .menu-button:active, .filter-button:active, .gallery-item:active, .lightbox button:active { transform: scale(0.98); }

@media (max-width: 1080px) {
  :root { --content: min(920px, calc(100% - 32px)); }
  .site-header { padding-inline: 16px; }
  .menu-button { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { position: absolute; top: calc(100% + 8px); right: 16px; width: min(350px, calc(100vw - 32px)); padding: 15px; display: grid; grid-template-columns: 1fr; justify-content: stretch; justify-items: stretch; gap: 5px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow); transform: translateY(-8px) scale(0.98); transform-origin: top right; opacity: 0; visibility: hidden; pointer-events: none; transition: transform 200ms var(--ease-out), opacity 160ms var(--ease-out), visibility 0s linear 200ms; }
  .site-nav.is-open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .site-nav a { width: 100%; min-height: 46px; padding: 0 14px; border-radius: var(--radius-control); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .site-nav a:not(.nav-cta)[aria-current="true"] { background: var(--brand-yellow-soft); }
  .site-nav .nav-cta { margin: 5px 0 0; justify-content: center; }
  .hero-inner { grid-template-columns: 0.92fr 1.08fr; gap: 36px; }
  .hero-media { min-height: 470px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .about { gap: 58px; }
  .room-grid { gap: 14px; }
  .room-card-body { padding: 23px; }
  .amenities, .information { gap: 56px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  :root { --content: calc(100% - 32px); --header-height: 68px; }
  .site-header { min-height: var(--header-height); }
  .brand { min-width: 0; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 0.94rem; }
  .brand small { display: none; }
  .hero { padding-top: 20px; }
  .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding: 42px 0 24px; }
  h1 { max-width: 11ch; font-size: clamp(2.8rem, 13vw, 4.2rem); }
  h2 { font-size: clamp(2.2rem, 10vw, 3.25rem); }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .hero-media { height: auto; min-height: 0; aspect-ratio: 4 / 3; border-radius: 22px 22px 22px 7px; }
  .hero-logo { right: 14px; bottom: 14px; width: 92px; height: 92px; padding: 5px; }
  .quick-facts { margin-top: 18px; grid-template-columns: 1fr 1fr; }
  .quick-facts > div, .quick-facts > a { min-height: 105px; padding: 17px; border-bottom: 1px solid var(--line); }
  .quick-facts > :nth-child(2) { border-right: 0; }
  .quick-facts > :nth-child(3), .quick-facts > :nth-child(4) { border-bottom: 0; }
  .quick-facts strong { font-size: 1.08rem; }
  .section-pad { padding-block: 56px; }
  .section-intro { margin-bottom: 24px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-card { min-height: 220px; }
  .about { grid-template-columns: 1fr; gap: 52px; }
  .about-media { height: 430px; padding: 0 48px 48px 0; }
  .about-main { height: 382px; }
  .about-detail { height: 180px; border-width: 6px; }
  .rooms, .gallery-section { padding-inline: 16px; }
  .room-grid { grid-template-columns: 1fr; gap: 18px; }
  .room-card > img { height: 270px; }
  .room-card-body p { min-height: auto; }
  .amenities { grid-template-columns: 1fr; gap: 34px; }
  .amenities .section-intro, .contact-copy { position: static; }
  .amenity-list { grid-template-columns: 1fr; }
  .amenity-list > div { min-height: 130px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; gap: 8px; }
  .gallery-wide { grid-column: span 2; }
  .gallery-tall { grid-row: span 1; }
  .location { grid-template-columns: 1fr; margin-block: 56px; }
  .location-map { padding: 22px; }
  .information { grid-template-columns: 1fr; gap: 24px; }
  .contact { grid-template-columns: 1fr; gap: 42px; }
  .contact-logo { width: 104px; height: 104px; }
  .inquiry-form { padding: 25px 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .site-footer { padding-bottom: 30px; flex-direction: column; align-items: flex-start; }
  .footer-meta { flex-direction: column; gap: 4px; text-align: left; }
}

@media (max-width: 440px) {
  .brand span { display: none; }
  .quick-facts { grid-template-columns: 1fr; }
  .quick-facts > div, .quick-facts > a { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .quick-facts > :last-child { border-bottom: 0 !important; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .gallery-wide { grid-column: auto; }
  .location-map { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .image-reveal, .js .image-reveal.is-ready { clip-path: inset(0); transition: opacity 160ms var(--ease-out); }
  .gallery-item img, .site-nav, .skip-link { transform: none; transition-property: opacity, color, background-color, border-color, visibility; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--background); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lightbox::backdrop { backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --line: #736b57; }
  .site-header { background: var(--surface); }
}

/* ========================================================================== */
/* V3 — Balkonett in motion                                                   */
/* ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

html { overflow-x: clip; scrollbar-color: var(--brand-olive) var(--brand-yellow-soft); }
body { overflow-x: clip; caret-color: var(--brand-olive); }
body.is-intro-locked { overflow: hidden; }
::selection { color: var(--brand-olive-dark); background: var(--brand-yellow); }

.page-intro { display: none; }
.js .page-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  visibility: visible;
  transition: visibility 0s linear 900ms;
}
.page-intro-curtain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-yellow);
  transform: translateY(0);
  transform-origin: top;
  transition: transform 780ms var(--ease-in-out);
}
.page-intro-mark {
  display: grid;
  justify-items: center;
  gap: 14px;
  color: var(--brand-olive-dark);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
}
.page-intro-mark img {
  width: clamp(104px, 12vw, 150px);
  height: clamp(104px, 12vw, 150px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 55px rgba(81, 67, 22, 0.2);
}
.page-intro-mark span {
  font-family: "Bricolage Balkonett", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 760;
  letter-spacing: -0.02em;
}
.page-intro.is-running .page-intro-mark {
  animation: intro-mark 620ms var(--ease-enter) 80ms both;
}
.page-intro.is-leaving { visibility: hidden; }
.page-intro.is-leaving .page-intro-curtain { transform: translateY(-100%); }
.page-intro.is-leaving .page-intro-mark {
  opacity: 0;
  transform: translateY(-20px) scale(0.98);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
@keyframes intro-mark {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.page-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 210;
  height: 3px;
  overflow: hidden;
  pointer-events: none;
}
.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--brand-yellow);
  transform: scaleX(0);
  transform-origin: left;
}
@supports (animation-timeline: scroll()) {
  .page-progress span {
    animation: page-progress linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes page-progress { to { transform: scaleX(1); } }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 198, 60, 0.52);
  border-radius: 50%;
  color: #fff;
  background: var(--brand-olive);
  box-shadow: 0 10px 28px rgba(81, 67, 22, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
  transform: translateY(14px) scale(0.92);
  transition: opacity 180ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms, background-color 180ms var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-sun {
  position: absolute;
  top: -28vw;
  right: -10vw;
  z-index: -1;
  width: min(62vw, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(245, 198, 60, 0.22);
  transform: translate3d(0, 0, 0) scale(0.92);
  animation: sunlight-drift 1350ms var(--ease-enter) 1450ms both;
  animation-play-state: paused;
}
.hero.is-active .hero-sun { animation-play-state: running; }
@keyframes sunlight-drift {
  to { transform: translate3d(-3vw, 4vw, 0) scale(1.04); }
}

.word-mask { display: inline-block; overflow: hidden; margin: -0.12em 0; padding: 0.12em 0; vertical-align: top; }
.word-mask > span { display: inline-block; }
.motion-boot .hero-copy .word-mask > span { opacity: 0; transform: translateY(115%) rotate(2deg); }
.motion-live .hero-copy .word-mask > span { animation: hero-word-in 720ms var(--ease-enter) both; animation-delay: calc(760ms + var(--word-index) * 70ms); }
@keyframes hero-word-in { to { opacity: 1; transform: translateY(0) rotate(0); } }

.motion-boot .site-header { opacity: 0; transform: translateY(-100%); }
.motion-live .site-header { animation: header-in 520ms var(--ease-enter) 650ms both; }
@keyframes header-in { to { opacity: 1; transform: translateY(0); } }

.motion-boot .hero-lead,
.motion-boot .hero-actions { opacity: 0; transform: translateY(14px); }
.motion-live .hero-lead { animation: soft-rise 560ms var(--ease-enter) 1180ms both; }
.motion-live .hero-actions { animation: soft-rise 560ms var(--ease-enter) 1260ms both; }
@keyframes soft-rise { to { opacity: 1; transform: translateY(0); } }

.motion-boot .hero-media { opacity: 0; clip-path: inset(100% 0 0 0 round 30px 30px 30px 8px); transform: scale(0.97); }
.motion-live .hero-media {
  animation: hero-frame-in 1050ms var(--ease-in-out) 650ms both;
}
.motion-boot .hero-media > img { transform: scale(1.12); }
.motion-live .hero-media > img { animation: hero-photo-in 1300ms var(--ease-enter) 680ms both; }
.motion-boot .hero-logo { opacity: 0; transform: translateY(18px) scale(0.94) rotate(-6deg); }
.motion-live .hero-logo { animation: logo-settle 720ms var(--ease-enter) 1450ms both; }
@keyframes hero-frame-in {
  to { opacity: 1; clip-path: inset(0 round 30px 30px 30px 8px); transform: scale(1); }
}
@keyframes hero-photo-in { to { transform: scale(1); } }
@keyframes logo-settle { to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }

.motion-boot .quick-facts { opacity: 0; transform: translateY(28px) scale(0.985); }
.motion-live .quick-facts { animation: facts-in 650ms var(--ease-enter) 1480ms both; }
@keyframes facts-in { to { opacity: 1; transform: translateY(0) scale(1); } }
.counter { font-variant-numeric: tabular-nums; }

.site-nav a:not(.nav-cta)[aria-current="true"] { color: var(--brand-olive-dark); }
.site-nav a:not(.nav-cta)[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }

.button,
.nav-cta,
.menu-button,
.filter-button,
.gallery-item,
.lightbox-icon { transition-timing-function: var(--ease-out); }
.button { position: relative; isolation: isolate; overflow: hidden; }
.button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand-yellow);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 240ms var(--ease-in-out);
}

/* Visible by default; JS arms an element only immediately before observing it. */
.motion-item {
  opacity: 1;
  transform: none;
  clip-path: inset(0);
  transition: opacity 560ms var(--ease-enter), transform 560ms var(--ease-enter);
}
.motion-item.motion-armed:not(.is-visible) { opacity: 0; }
.motion-item[data-motion="rise"].motion-armed:not(.is-visible) { transform: translateY(34px); }
.motion-item[data-motion="slide-left"].motion-armed:not(.is-visible) { transform: translateX(-42px); }
.motion-item[data-motion="slide-right"].motion-armed:not(.is-visible) { transform: translateX(42px); }
.motion-item[data-motion="mask-up"].motion-armed:not(.is-visible) { clip-path: inset(100% 0 0 0 round 16px); transform: scale(0.985); }
.motion-item[data-motion="mask-side"].motion-armed:not(.is-visible) { clip-path: inset(0 100% 0 0 round 16px); }
.motion-item[data-motion="focus"].motion-armed:not(.is-visible) { transform: scale(0.96); }
.motion-item[data-motion="map"].motion-armed:not(.is-visible) { transform: translateY(28px) scale(0.985); }
.location-map.motion-armed:not(.is-visible) .location-map-frame { opacity: 0; transform: translateY(20px) scale(0.985); }

.motion-group .motion-child {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease-enter), transform 520ms var(--ease-enter);
}
.motion-group.motion-armed:not(.is-visible) .motion-child { opacity: 0; transform: translateY(28px); }
.overview-grid.motion-armed:not(.is-visible) .motion-child { transform: perspective(900px) rotateX(8deg) translateY(42px); transform-origin: bottom; }
.room-grid.motion-armed:not(.is-visible) .motion-child { transform: translateY(46px) scale(0.965); }
.amenity-list.motion-armed:not(.is-visible) .motion-child:nth-child(odd) { transform: translateX(-34px); }
.amenity-list.motion-armed:not(.is-visible) .motion-child:nth-child(even) { transform: translateX(34px); }
.gallery.motion-armed:not(.is-visible) .motion-child { transform: scale(0.92); }
.faq.motion-armed:not(.is-visible) .motion-child { transform: translateX(28px); }

.motion-heading .word-mask > span { transition: opacity 640ms var(--ease-enter), transform 640ms var(--ease-enter); transition-delay: calc(var(--word-index) * 54ms); }
.motion-heading.motion-armed:not(.is-visible) .word-mask > span { opacity: 0; transform: translateY(108%); }

.about-media { perspective: 1100px; }
.about-media.motion-armed:not(.is-visible) .about-main { opacity: 0; transform: translateX(-28px) scale(1.025); }
.about-media.motion-armed:not(.is-visible) .about-detail { opacity: 0; transform: translate(26px, 26px) rotate(4deg) scale(0.92); }
.about-main { opacity: 1; transition: opacity 520ms var(--ease-out), transform 760ms var(--ease-enter); }
.about-detail { opacity: 1; transform: none; transition: opacity 520ms var(--ease-out) 240ms, transform 760ms var(--ease-enter) 180ms; }

.gallery-item::after {
  content: "Megnyitás";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(36, 32, 21, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.room-card,
.overview-card { transform-style: preserve-3d; transform-origin: center; }

.faq details p { transform-origin: top; }
.faq details[open] p { animation: none; }

/* Lightbox: spatial navigation, drag feedback and symmetric exit. */
.lightbox {
  width: min(1160px, calc(100% - 28px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: #242015;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out), display 260ms allow-discrete, overlay 260ms allow-discrete;
}
.lightbox[open] { opacity: 1; transform: scale(1); }
@starting-style { .lightbox[open] { opacity: 0; transform: scale(0.96); } }
.lightbox.is-closing { opacity: 0; transform: scale(0.96); }
.lightbox::backdrop { background: rgba(32, 28, 18, 0.86); backdrop-filter: blur(10px); opacity: 0; transition: opacity 260ms var(--ease-out), display 260ms allow-discrete, overlay 260ms allow-discrete; }
.lightbox[open]::backdrop { opacity: 1; }
.lightbox.is-closing::backdrop { opacity: 0; }
@starting-style { .lightbox[open]::backdrop { opacity: 0; } }
.lightbox-shell { position: relative; padding: 14px; }
.lightbox-stage { position: relative; overflow: hidden; border-radius: 12px; touch-action: pan-y; }
.lightbox figure { margin: 0; }
.lightbox figure img { width: 100%; max-height: 78dvh; object-fit: contain; border-radius: 12px; background: #16130c; cursor: grab; will-change: transform, opacity; }
.lightbox figure img.is-dragging { cursor: grabbing; }
.lightbox figcaption { min-height: 1.5em; margin-top: 10px; color: #e9e0c5; text-align: center; }
.lightbox .lightbox-icon { width: 52px; height: 52px; min-height: 0; padding: 0; display: grid; place-items: center; border: 1px solid rgba(245, 198, 60, 0.52); border-radius: 50%; color: #fff; background: rgba(36, 32, 21, 0.84); backdrop-filter: blur(10px); cursor: pointer; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 160ms var(--ease-out); }
.lightbox .lightbox-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-close { position: absolute; top: 27px; right: 27px; z-index: 4; margin: 0; }
.lightbox-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); }
.lightbox-prev { left: 26px; }
.lightbox-next { right: 26px; }
.lightbox-meter { width: min(280px, 62vw); height: 3px; margin: 12px auto 2px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.lightbox-meter span { display: block; width: 100%; height: 100%; background: var(--brand-yellow); transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease-in-out); }
.lightbox button.lightbox-arrow:active { transform: translateY(-50%) scale(0.96); }
.lightbox button.lightbox-close:active { transform: scale(0.96); }

@media (hover: hover) and (pointer: fine) {
  .button:hover::after { clip-path: inset(0); }
  .button-primary:hover { color: var(--brand-olive-dark); background: var(--brand-olive); }
  .button-secondary:hover { color: var(--brand-olive-dark); background: transparent; }
  .gallery-item:hover::after { opacity: 1; transform: translateY(0) scale(1); }
  .lightbox .lightbox-icon:hover { color: var(--brand-olive-dark); background: var(--brand-yellow); }
  .back-to-top:hover { color: var(--brand-olive-dark); background: var(--brand-yellow); }
}

@media (max-width: 767px) {
  .hero-sun { top: -15vw; right: -44vw; width: 120vw; }
  .motion-boot .hero-media { clip-path: inset(100% 0 0 0 round 22px 22px 22px 7px); }
  @keyframes hero-frame-in { to { opacity: 1; clip-path: inset(0 round 22px 22px 22px 7px); transform: scale(1); } }
  .lightbox { width: calc(100% - 14px); border-radius: 14px; }
  .lightbox-shell { padding: 7px; }
  .lightbox figure img { max-height: 76dvh; border-radius: 9px; }
  .lightbox .lightbox-icon { width: 44px; height: 44px; }
  .lightbox-close { top: 17px; right: 17px; }
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .gallery-item::after { display: none; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-intro-locked { overflow: auto; }
  .js .page-intro { display: none; }
  .hero-sun { animation: none; }
  .motion-boot .site-header,
  .motion-boot .hero-lead,
  .motion-boot .hero-actions,
  .motion-boot .hero-media,
  .motion-boot .hero-media > img,
  .motion-boot .hero-logo,
  .motion-boot .hero-copy .word-mask > span,
  .motion-boot .quick-facts { opacity: 1; transform: none; clip-path: inset(0); }
  .motion-live .site-header,
  .motion-live .hero-lead,
  .motion-live .hero-actions,
  .motion-live .hero-media,
  .motion-live .hero-media > img,
  .motion-live .hero-logo,
  .motion-live .hero-copy .word-mask > span,
  .motion-live .quick-facts { animation: none; opacity: 1; transform: none; clip-path: inset(0); }
  .motion-item,
  .motion-item.motion-armed:not(.is-visible),
  .motion-group .motion-child,
  .motion-group.motion-armed:not(.is-visible) .motion-child,
  .motion-heading .word-mask > span,
  .motion-heading.motion-armed:not(.is-visible) .word-mask > span,
  .about-media.motion-armed:not(.is-visible) .about-main,
  .about-media.motion-armed:not(.is-visible) .about-detail { opacity: 1; transform: none; clip-path: inset(0); filter: none; transition: opacity 160ms var(--ease-out); }
  .lightbox, .lightbox[open], .lightbox.is-closing { transform: none; transition-duration: 160ms; }
  .faq details[open] p { animation: none; }
}
