:root {
    --ink: #0E0C0A;
    --graphite: #1a1814;
    --cream: #F8F4ED;
    --bone: #EFE9DD;
    --sand: #E6DCC9;
    --gold: #B8924E;
    --gold-bright: #C9A864;
    --gold-soft: #E5D4A8;
    --shadow-lg: 0 30px 80px -20px rgba(14,12,10,0.35);
    --shadow-card: 0 1px 0 rgba(0,0,0,0.04), 0 18px 60px -28px rgba(14,12,10,0.25);
    --measure: 62ch;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-feature-settings: "ss01", "cv01", "cv11";
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    color: var(--ink);
    background: var(--cream);
}

/* Global image safety - prevents stretching/dragging on all viewports */
img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    user-drag: none;
}
.tile-img,
.editorial-img,
.hero-slide,
#lightbox-img {
    object-fit: cover;
    object-position: center center;
}
#lightbox-img { object-fit: contain; }

/* TYPOGRAPHY HIERARCHY */
h1, h2, h3, .font-display {
    font-family: 'Fraunces', Georgia, serif;
    font-feature-settings: "lnum", "kern", "ss01";
    letter-spacing: -0.012em;
    font-variation-settings: "opsz" 96;
}
.font-editorial {
    font-family: 'Lora', Georgia, serif;
    font-feature-settings: "lnum", "kern";
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.018em;
    font-variation-settings: "opsz" 144;
}
.section-title > span { display: block; }

.hero-title {
    font-size: clamp(2.6rem, 9vw, 7.75rem);
    letter-spacing: -0.022em;
    font-variation-settings: "opsz" 144;
}
.hero-title .italic {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
}

.hero-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.15rem, 3vw, 2rem);
    color: var(--gold-soft);
    letter-spacing: 0.04em;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.hero-subtitle {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.6vw, 1.2rem);
    color: rgba(248, 244, 237, 0.85);
    line-height: 1.6;
    max-width: 44rem;
    margin: 0 auto 2.5rem;
    text-align: center;
    padding: 0 0.5rem;
}

/* Eyebrow label */
.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.4rem;
}

/* Reusable text classes */
.lead-text {
    font-family: 'Lora', serif;
    font-size: clamp(1.05rem, 1.3vw, 1.18rem);
    line-height: 1.65;
    color: rgba(14,12,10,0.72);
    margin-top: 2.25rem;
    max-width: var(--measure);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.body-text {
    font-family: 'Lora', serif;
    font-size: 1.075rem;
    line-height: 1.7;
    color: rgba(14,12,10,0.78);
    text-align: left;
    max-width: var(--measure);
}
.body-text-dark {
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(248,244,237,0.7);
    font-style: italic;
}
.quote-text {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.25rem, 3vw, 2.25rem);
    line-height: 1.4;
    color: rgba(248,244,237,0.92);
    letter-spacing: 0.005em;
    text-align: center;
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 0.5rem;
}

/* Section number ghost */
.section-num {
    position: absolute;
    top: 6rem;
    right: -1rem;
    font-family: 'Fraunces', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(8rem, 18vw, 16rem);
    line-height: 1;
    color: rgba(184, 146, 78, 0.07);
    pointer-events: none;
    z-index: 0;
    user-select: none;
    font-variation-settings: "opsz" 144;
}
#location .section-num,
#contact .section-num { right: auto; left: -1rem; }
#about .section-num { color: rgba(184, 146, 78, 0.06); }

/* Hairline rule */
.hairline-rule {
    display: inline-block;
    width: 36px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

/* Scroll progress - direct per-frame updates from rAF; no CSS transition
   so the bar follows scroll precisely instead of lagging behind. */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold);
    transform-origin: 0 0;
    transform: scaleX(0);
    z-index: 50;
    will-change: transform;
    pointer-events: none;
}

/* BUTTONS */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    background: var(--gold);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    transition: all .35s cubic-bezier(.2,.7,.3,1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 220px;
}
.btn-primary::before {
    content: "";
    position: absolute; inset: 0;
    background: var(--ink);
    transform: translateY(101%);
    transition: transform .45s cubic-bezier(.2,.7,.3,1);
    z-index: 0;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { border-color: var(--ink); color: #fff; }
.btn-primary:hover::before { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    color: var(--cream);
    border: 1px solid rgba(248, 244, 237, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: all .35s ease;
    cursor: pointer;
    background: transparent;
    min-width: 220px;
}
.btn-ghost:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }

.btn-gold,
.btn-gold-outline,
.btn-gold-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 0.95rem 1.85rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: all .3s ease;
    border: 1px solid var(--gold);
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); transform: translateY(-1px); }
.btn-gold-outline,
.btn-gold-outline-light { color: var(--gold); }
.btn-gold-outline:hover,
.btn-gold-outline-light:hover { background: var(--gold); color: #fff; }

/* HEADER / NAV - logo stack (no src-swap) */
#site-header {
    color: var(--cream);
}
#site-header.scrolled {
    background: rgba(248, 244, 237, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-logo-wrap {
    position: relative;
    display: inline-block;
    height: 4rem;       /* h-16 */
    width: auto;
    transition: height .4s cubic-bezier(.2,.7,.3,1);
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .nav-logo-wrap { height: 5rem; } /* h-20 */
}
#site-header.scrolled .nav-logo-wrap { height: 3.25rem; }
@media (min-width: 768px) {
    #site-header.scrolled .nav-logo-wrap { height: 4rem; }
}
.nav-logo {
    display: block;
    height: 100%;
    width: auto;
    transition: opacity .4s ease;
}
.nav-logo-light { opacity: 1; position: relative; }
.nav-logo-dark {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 100%;
    object-fit: contain;
    object-position: left center;
    opacity: 0;
}
#site-header.scrolled .nav-logo-light { opacity: 0; }
#site-header.scrolled .nav-logo-dark  { opacity: 1; }

.nav-item {
    position: relative;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: color .3s ease;
    padding: 0.4rem 0;
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
}
.nav-item .nav-num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 0.72rem;
    letter-spacing: normal;
    color: var(--gold);
    opacity: 0.85;
    text-transform: none;
    font-weight: 400;
}
.nav-item::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: all .35s ease;
    transform: translateX(-50%);
}
.nav-item:hover { color: var(--gold); }
.nav-item:hover::after { width: 100%; }

/* Language switcher */
.lang-toggle { font-family: 'Inter', sans-serif; font-weight: 500; }
.lang-toggle .lang-flag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}
#lang-switcher .lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-option {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.2rem;
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: background .2s ease, color .2s ease;
    cursor: pointer;
}
.lang-option .lang-flag-cell {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--gold);
    width: 1.5rem;
}
.lang-option:hover { background: var(--bone); color: var(--gold); }
.lang-option.active { color: var(--gold); }

/* MOBILE MENU - GPU-accelerated slide-from-right drawer */
#mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
    z-index: 50;
    transform: translate3d(100%, 0, 0);
    transition: transform .42s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
    will-change: transform;
    overflow-y: auto;
}
#mobile-menu.open {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}
@media (min-width: 1024px) {
    #mobile-menu { display: none; }
}

/* iOS-safe body scroll lock - 4-layer defense against scroll bleed:
   1. position: fixed - removes body from scroll flow
   2. inline `top: -scrollY` - preserves visual position
   3. overflow + width clamp - blocks horizontal/vertical
   4. overscroll-behavior + touch-action - blocks rubber-band on iOS
   `top` is set inline by JS to -window.scrollY */
body.menu-open {
    position: fixed;
    inset-inline: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}
/* The menu itself remains fully interactive (touch + scroll within) */
body.menu-open #mobile-menu {
    touch-action: pan-y;
    overscroll-behavior: contain;
}
/* Hide everything outside menu from screen readers when menu is open */
body.menu-open > *:not(#mobile-menu):not(#preloader):not(#scroll-progress) {
    /* Visual layout unaffected, just removes from a11y tree under modal */
}

/* Top bar - logo + close X */
.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid rgba(248, 244, 237, 0.08);
}
.mobile-menu-logo {
    display: inline-flex;
    align-items: center;
    height: 3rem;
}
.mobile-menu-logo img {
    height: 100%;
    width: auto;
    display: block;
}
.mobile-close-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(248, 244, 237, 0.18);
    color: var(--cream);
    border-radius: 50%;
    cursor: pointer;
    transition: all .25s ease;
    padding: 0;
}
.mobile-close-btn svg { width: 22px; height: 22px; }
.mobile-close-btn:hover,
.mobile-close-btn:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    transform: rotate(90deg);
}

/* Menu list - simple, no per-item animation (handled by parent slide) */
.mobile-menu-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1.5rem;
    list-style: none;
    margin: 0;
}

.mobile-link {
    color: var(--cream);
    font-family: 'Fraunces', serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    letter-spacing: -0.005em;
    line-height: 1.2;
    transition: color .3s ease;
    display: inline-block;
    padding: 0.25rem 0;
}
.mobile-link:hover,
.mobile-link:focus-visible { color: var(--gold); }

/* Bottom CTA + phone */
.mobile-menu-bottom {
    border-top: 1px solid rgba(248, 244, 237, 0.08);
    padding: 1.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.mobile-book-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 22rem;
    padding: 1rem 1.5rem;
    background: var(--gold);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transition: background .25s ease;
}
.mobile-book-cta:hover { background: var(--gold-bright); }
.mobile-phone {
    color: rgba(248, 244, 237, 0.65);
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    transition: color .25s ease;
}
.mobile-phone:hover { color: var(--gold); }

/* Burger -> X transform when menu open */
#burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#burger.open span:nth-child(2) { opacity: 0; }
#burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Very narrow phones */
@media (max-width: 360px) {
    .mobile-link { font-size: 1.65rem; }
    .mobile-menu-list { gap: 1.25rem; padding: 1.5rem 1rem; }
}

/* REVEAL ANIMATION */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 1.05s cubic-bezier(.2,.7,.3,1), transform 1.05s cubic-bezier(.2,.7,.3,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* HERO */
/* Hero slide (legacy, used if multiple slides exist) */
.hero-slide {
    transition: opacity 2s ease, transform 14s linear;
    will-change: opacity, transform;
    transform: scale(1.04);
}
.hero-slide.active { opacity: 1 !important; transform: scale(1.1); }

/* Hero still photo - very subtle zoom-in (slow ken-burns) */
.hero-still {
    transform: scale(1.02);
    animation: heroZoom 26s ease-in-out infinite alternate;
    will-change: transform;
    transform-origin: center 55%;
    backface-visibility: hidden;
}
@keyframes heroZoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.1); }
}

/* Scroll arrow above the "Zejdź niżej" label - simple bounce */
.scroll-arrow {
    width: 18px;
    height: 18px;
    color: var(--gold);
    animation: scrollBounce 1.9s cubic-bezier(.45, .05, .55, .95) infinite;
    will-change: transform, opacity;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(-3px); opacity: 0.55; }
    50%      { transform: translateY(4px);  opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-still { animation: none; transform: none; }
    .scroll-arrow { animation: none; }
}

/* AMENITIES */
.amenity {
    text-align: center;
    padding: 1rem 0.5rem;
    transition: transform .4s ease;
}
.amenity:hover { transform: translateY(-6px); }
.amenity-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.4rem;
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(184, 146, 78, 0.3);
    border-radius: 50%;
    transition: all .45s ease;
    position: relative;
}
.amenity-icon::after {
    content: "";
    position: absolute; inset: -8px;
    border: 1px solid rgba(184, 146, 78, 0.12);
    border-radius: 50%;
    transition: transform .5s ease;
    transform: scale(0.7);
    opacity: 0;
}
.amenity:hover .amenity-icon::after { transform: scale(1); opacity: 1; }
.amenity-icon svg { width: 28px; height: 28px; }
.amenity:hover .amenity-icon {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}
.amenity h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.25;
}
.amenity p {
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    color: rgba(14, 12, 10, 0.62);
    line-height: 1.6;
    font-weight: 400;
    max-width: 24ch;
    margin: 0 auto;
}

/* ABOUT SPLIT (rotating tile) */
.split-frame {
    position: relative;
    aspect-ratio: 4 / 5;
}
.split-tile {
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--bone);
    border: 0;
    padding: 0;
    aspect-ratio: 4 / 5;
}
.split-heading {
    font-size: clamp(1.85rem, 5.5vw, 3.75rem);
    line-height: 1.08;
    letter-spacing: -0.012em;
    margin-bottom: 1.5rem;
}
@media (min-width: 1024px) {
    .split-heading { font-size: 3.25rem; line-height: 1.05; margin-bottom: 2rem; }
}
@media (min-width: 1280px) {
    .split-heading { font-size: 3.75rem; }
}
.split-tile .tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .5s ease, transform 1.6s cubic-bezier(.2,.7,.3,1);
    will-change: opacity, transform;
}
.split-tile .tile-img.swapping { opacity: 0; }
.split-tile:hover .tile-img { transform: scale(1.04); }
.split-tag {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: var(--cream);
    padding: 1.1rem 1.75rem;
    z-index: 5;
    pointer-events: none;
}

/* EXPERIENCE GRID */
.exp-cell {
    background: var(--ink);
    padding: 2.25rem 1.5rem;
    text-align: center;
    transition: background .35s ease;
    position: relative;
}
@media (min-width: 640px) { .exp-cell { padding: 2.75rem 1.75rem; } }
@media (min-width: 1024px) { .exp-cell { padding: 3rem 2rem; } }
.exp-cell:hover { background: var(--graphite); }
.exp-num {
    display: inline-block;
    font-family: 'Fraunces', serif;
    font-style: italic;
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}
.exp-icon {
    width: 36px;
    height: 36px;
    color: var(--gold);
    margin: 0 auto 1.25rem;
    display: block;
}
.exp-cell h3 { font-weight: 500; color: var(--cream); }
.exp-cell p {
    font-family: 'Lora', serif;
    color: rgba(248, 244, 237, 0.68);
    max-width: 28ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    grid-auto-flow: dense;
}
@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
}
@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
}
@media (min-width: 1280px) {
    .gallery-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
}
.tile-default { aspect-ratio: 4/3; }
.tile-tall    { aspect-ratio: 3/4; }
.tile-wide    { aspect-ratio: 16/10; }
@media (min-width: 1024px) {
    .tile-tall { grid-row: span 2; aspect-ratio: 3/4; }
    .tile-wide { grid-column: span 2; aspect-ratio: 16/10; }
}
.gallery-tile {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--bone);
    border: 0;
    padding: 0;
    width: 100%;
}
.tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .5s ease, transform 1.6s cubic-bezier(.2,.7,.3,1);
    will-change: opacity, transform;
}
.tile-img.swapping { opacity: 0; }
.gallery-tile:hover .tile-img { transform: scale(1.07); }

.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(14,12,10,0.55) 100%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.gallery-zoom {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(248,244,237,0.96);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}
.gallery-zoom svg { width: 18px; height: 18px; }
.gallery-tile:hover .gallery-overlay { opacity: 1; }
.gallery-tile:hover .gallery-zoom { opacity: 1; transform: translateY(0); }

/* KUCHNIA TATARSKA U ALIKA */
.alika-section {
    position: relative;
    background: #000;
    color: var(--cream);
    padding: 6rem 0;
    overflow: hidden;
    isolation: isolate;            /* keeps mix-blend-mode contained */
}
@media (min-width: 768px) { .alika-section { padding: 8rem 0; } }
@media (min-width: 1024px) { .alika-section { padding: 11rem 0; } }

.alika-bg {
    position: absolute;
    inset: -40% 0;                 /* large headroom so parallax travel
                                       never reveals the section background */
    z-index: 0;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}
.alika-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    mix-blend-mode: luminosity;
    opacity: 0.4;
    filter: grayscale(1) contrast(1.08) brightness(0.95);
}

/* Vignette + bottom/top fade so the title pops */
.alika-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.55) 75%),
        linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.55) 100%);
}

.alika-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* 3-paragraph editorial prose */
.alika-prose {
    margin: 2.25rem auto 0;
    max-width: 64ch;
}
.alika-prose p {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.78;
    color: rgba(248, 244, 237, 0.84);
    margin: 1.5rem auto 0;
}
.alika-prose p:first-child { margin-top: 0; }

@media (max-width: 640px) {
    .alika-section { padding: 5rem 0; }
    .alika-bg-image { opacity: 0.45; }
    .alika-bg { inset: -30% 0; }       /* a bit less travel on phones (smaller scrolls) */
    .alika-prose { margin-top: 1.75rem; }
    .alika-prose p { font-size: 0.96rem; line-height: 1.68; padding: 0 0.5rem; margin-top: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    .alika-bg { transform: none !important; }
}

/* PANORAMA 360 (mobile-only) */
.panorama-frame {
    position: relative;
    width: 100%;
    border: 1px solid rgba(197, 160, 89, 0.18);
    background: #050402;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.55);
}
.panorama-viewer {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    cursor: grab;
    background: #050402;
    touch-action: none;
}
.panorama-viewer:active { cursor: grabbing; }
.panorama-viewer.is-loading::before {
    content: "";
    position: absolute;
    inset: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 1px solid rgba(197,160,89,0.2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: panoSpin .8s linear infinite;
    z-index: 2;
}
@keyframes panoSpin { to { transform: rotate(360deg); } }

/* Pannellum override - blend with our theme */
.pnlm-container { background: #050402 !important; }
.pnlm-load-box,
.pnlm-load-button,
.pnlm-about-msg,
.pnlm-fullscreen-toggle-button,
.pnlm-zoom-controls { display: none !important; }
.pnlm-error-msg { color: var(--cream) !important; font-family: 'Lora', serif !important; }

/* Orientation toggle - kept visible because on iOS 13+ it is the only
   way to grant DeviceOrientation permission. Re-styled to match theme. */
.pnlm-controls-container { z-index: 5; }
.pnlm-orientation-button {
    display: block !important;
    position: absolute !important;
    top: auto !important;
    left: auto !important;
    bottom: 1rem !important;
    right: 1rem !important;
    width: 44px !important;
    height: 44px !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(14, 12, 10, 0.85) !important;
    background-position: center !important;
    background-size: 22px 22px !important;
    background-repeat: no-repeat !important;
    border: 1px solid rgba(197, 160, 89, 0.5) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: background-color .25s ease, border-color .25s ease, transform .25s ease !important;
    box-shadow: 0 6px 20px -6px rgba(0,0,0,.5) !important;
}
.pnlm-orientation-button:hover {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
    transform: translateY(-1px);
}
.pnlm-orientation-button-active {
    background-color: var(--gold) !important;
    border-color: var(--gold) !important;
}

/* Floating hint badge inside the panorama frame */
.panorama-hint {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    background: rgba(14,12,10,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(248,244,237,0.92);
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.78rem;
    line-height: 1.3;
    border: 1px solid rgba(248,244,237,0.12);
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 4;
    transition: opacity .5s ease, transform .5s ease;
    will-change: opacity, transform;
}
.panorama-hint svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    animation: panoHintPulse 2.4s ease-in-out infinite;
    flex: 0 0 auto;
}
@keyframes panoHintPulse {
    0%, 100% { transform: rotate(0deg); }
    50%      { transform: rotate(35deg); }
}
.panorama-hint.is-hidden {
    opacity: 0;
    transform: translate(-50%, 8px);
}

/* Tablet narrows the aspect (better fits short landscape phones too) */
@media (min-width: 641px) {
    .panorama-viewer { aspect-ratio: 16/9; }
    .panorama-hint   { font-size: 0.82rem; bottom: 1.25rem; }
}
@media (max-width: 380px) {
    .panorama-hint { font-size: 0.7rem; padding: 0.5rem 0.85rem; max-width: calc(100% - 2rem); white-space: normal; text-align: center; }
}

/* LIGHTBOX with thumbnail strip */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(14,12,10,0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity .35s ease;
}
.lightbox.open { opacity: 1; }
.lightbox.hidden { display: none !important; }

.lightbox-stage {
    position: relative;
    max-width: 96vw;
    max-height: calc(88vh - 7rem);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 7rem;
}
.lightbox-img {
    max-width: 96vw;
    max-height: calc(88vh - 7rem);
    object-fit: contain;
    box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
    transition: opacity .25s ease;
}
.lightbox-img.lb-fading { opacity: 0; }

.lightbox-btn {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(248,244,237,0.06);
    border: 1px solid rgba(248,244,237,0.16);
    color: var(--cream);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all .25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
}
.lightbox-btn:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: calc(50% - 3.5rem); transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: calc(50% - 3.5rem); transform: translateY(-50%); }

/* Thumbnail strip */
.lightbox-strip {
    position: absolute;
    bottom: 4.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: min(90vw, 880px);
    overflow: hidden;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.lightbox-strip-inner {
    display: flex;
    gap: 6px;
    padding: 4px 1rem;
    overflow-x: auto;
    pointer-events: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.lightbox-strip-inner::-webkit-scrollbar { display: none; }
.lightbox-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 44px;
    background-color: rgba(255,255,255,0.04);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity .25s ease, transform .25s ease, outline-offset .25s ease;
    outline: 1px solid transparent;
    outline-offset: 0;
    border: 0;
    padding: 0;
}
.lightbox-thumb:hover { opacity: 0.8; }
.lightbox-thumb.active {
    opacity: 1;
    outline: 1px solid var(--gold);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cream);
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    background: rgba(248,244,237,0.06);
    border: 1px solid rgba(248,244,237,0.16);
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
}

@media (max-width: 640px) {
    .lightbox { padding: 0.75rem; }
    .lightbox-btn { width: 44px; height: 44px; }
    .lightbox-btn svg { width: 22px; height: 22px; }
    .lightbox-prev { left: 0.5rem; top: calc(50% - 4rem); }
    .lightbox-next { right: 0.5rem; top: calc(50% - 4rem); }
    .lightbox-close { top: 0.75rem; right: 0.75rem; }
    .lightbox-stage { margin-bottom: 6.5rem; max-height: calc(85vh - 6.5rem); max-width: 100vw; }
    .lightbox-img { max-width: calc(100vw - 1.5rem); max-height: calc(85vh - 6.5rem); }
    .lightbox-strip { bottom: 3.75rem; }
    .lightbox-thumb { width: 56px; height: 40px; }
    .lightbox-counter { font-size: 0.9rem; bottom: 0.85rem; padding: 0.4rem 0.9rem; }
}
@media (min-width: 641px) and (max-width: 1023px) {
    .lightbox-btn { width: 50px; height: 50px; }
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
    .lightbox-stage { margin-bottom: 7rem; }
}

/* LOCATION */
.loc-icon {
    flex: 0 0 auto;
    width: 50px; height: 50px;
    border: 1px solid rgba(184, 146, 78, 0.45);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
}
.loc-icon svg { width: 20px; height: 20px; }

#map { background: #1a1814; }
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: var(--ink) !important;
    color: var(--cream) !important;
    border-radius: 0 !important;
    box-shadow: 0 10px 40px rgba(0,0,0,.4) !important;
}
.leaflet-popup-content {
    margin: 18px 22px !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
}
.leaflet-popup-content strong {
    font-family: 'Fraunces', serif;
    font-size: 1.15rem;
    color: var(--gold);
    display: block;
    margin-bottom: .35rem;
    font-weight: 500;
}
.leaflet-popup-close-button { color: var(--gold) !important; }
.leaflet-control-attribution { font-size: 10px !important; }

.custom-marker {
    width: 36px; height: 36px;
    background: var(--gold);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid var(--cream);
    box-shadow: 0 6px 22px rgba(0,0,0,.35);
    display: flex; align-items: center; justify-content: center;
    position: relative;
}
.custom-marker::after {
    content: "";
    width: 10px; height: 10px;
    background: var(--cream);
    border-radius: 50%;
    transform: rotate(45deg);
}

/* FORM */
.field {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.field label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(14,12,10,0.55);
}
.field input,
.field textarea {
    width: 100%;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(14, 12, 10, 0.18);
    padding: 0.85rem 0;
    font-size: 16px;            /* prevent iOS auto-zoom on focus */
    line-height: 1.45;
    color: var(--ink);
    transition: border-color .3s ease;
    font-family: 'Lora', Georgia, serif;
    resize: vertical;
}
@media (min-width: 768px) {
    .field input,
    .field textarea { font-size: 1.05rem; padding: 0.7rem 0; }
}
.field input::placeholder,
.field textarea::placeholder {
    color: rgba(14,12,10,0.32);
    font-style: italic;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--gold); }
.field.error input,
.field.error textarea { border-color: #B22A2A; }
.field-error {
    font-size: 0.78rem;
    color: #B22A2A;
    margin-top: 0.3rem;
    font-style: italic;
    font-family: 'Lora', serif;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: rgba(14,12,10,0.65);
    line-height: 1.55;
    cursor: pointer;
}
.consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(14,12,10,0.3);
    margin-top: 4px;
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
    background: transparent;
}
.consent input[type="checkbox"]:checked {
    background: var(--gold);
    border-color: var(--gold);
}
.consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px; top: 1px;
    width: 5px; height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.contact-card {
    background: #fff;
    padding: 1.75rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(14,12,10,0.04);
}
.contact-card-dark {
    background: var(--ink);
    color: var(--cream);
    padding: 1.75rem;
}
@media (min-width: 640px) {
    .contact-card,
    .contact-card-dark { padding: 2.25rem; }
}
@media (min-width: 1024px) {
    .contact-card,
    .contact-card-dark { padding: 2.5rem; }
}
.contact-row {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 0;
    color: var(--ink);
    transition: color .25s ease;
}
.contact-row:hover { color: var(--gold); }
.contact-row svg { width: 20px; height: 20px; color: var(--gold); flex: 0 0 auto; }

/* FOOTER */
footer .footer-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(184, 146, 78, 0.09), transparent 70%);
    pointer-events: none;
}
.footer-logo { transition: transform .6s cubic-bezier(.2,.7,.3,1); }
footer:hover .footer-logo { transform: scale(1.02); }
.footer-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.15rem, 2.6vw, 2rem);
    color: rgba(248, 244, 237, 0.82);
    line-height: 1.45;
    max-width: 30rem;
    margin: 0 auto;
    letter-spacing: 0.005em;
    text-align: center;
    padding: 0 0.5rem;
}
.legal-link {
    background: none;
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    transition: color .25s ease;
    letter-spacing: 0.06em;
}
.legal-link:hover { color: var(--gold); }

/* Lightbyte credit (clickable, hover effect) */
.lightbyte-credit {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(248, 244, 237, 0.4);
    transition: color .3s ease, opacity .3s ease;
    text-decoration: none;
    line-height: 1;
}
.lightbyte-credit-text {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: lowercase;
    white-space: nowrap;
}
.lightbyte-logo {
    height: 14px;
    width: auto;
    opacity: 0.55;
    transition: opacity .3s ease, transform .3s ease;
    flex: 0 0 auto;
    user-select: none;
}
/* On hover - only the logo lights up; text stays muted */
.lightbyte-credit:hover { color: rgba(248, 244, 237, 0.4); }
.lightbyte-credit:hover .lightbyte-logo {
    opacity: 1;
    transform: translateY(-1px);
}
@media (max-width: 640px) {
    .lightbyte-credit { gap: 0.5rem; }
    .lightbyte-credit-text { font-size: 9px; letter-spacing: 0.14em; }
    .lightbyte-logo { height: 13px; }
}

/* MODAL (privacy / cookies) */
.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.modal.open { opacity: 1; }
.modal.hidden { display: none !important; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14,12,10,0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-panel {
    position: relative;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    background: var(--cream);
    color: var(--ink);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.98);
    transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.modal.open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(14,12,10,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink);
    transition: all .25s ease;
    z-index: 2;
}
.modal-close:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.modal-body { padding: 3rem 3rem; overflow-y: auto; }
@media (max-width: 640px) { .modal-body { padding: 2rem 1.5rem; } }

.prose-legal {
    font-family: 'Lora', Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(14,12,10,0.78);
    text-align: left;
}
.prose-legal h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--ink);
    margin: 2rem 0 0.75rem;
    letter-spacing: -0.005em;
}
.prose-legal p { margin: 0.6rem 0; }
.prose-legal ul {
    list-style: none;
    padding-left: 0;
    margin: 0.7rem 0;
}
.prose-legal li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.4rem;
}
.prose-legal li::before {
    content: "·";
    position: absolute;
    left: 0.4rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 1.4em;
    line-height: 1;
}
.prose-legal a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.prose-legal a:hover { color: var(--gold-bright); }
.prose-legal strong { font-weight: 600; color: var(--ink); }

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
    z-index: 75;
    background: var(--ink);
    color: var(--cream);
    padding: 1.1rem 1.4rem;
    box-shadow: var(--shadow-lg);
    border-left: 3px solid var(--gold);
    transform: translateY(120%);
    opacity: 0;
    transition: transform .5s cubic-bezier(.2,.7,.3,1), opacity .4s ease;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner.hidden { display: none !important; }

.cookie-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
@media (max-width: 640px) {
    .cookie-banner { padding: 1rem 1.1rem; bottom: 1rem; left: 1rem; right: 1rem; }
    .cookie-inner { flex-direction: column; align-items: stretch; gap: 0.85rem; }
    .cookie-btn { width: 100%; padding: 0.85rem 1rem; }
}
.cookie-text {
    flex: 1;
    min-width: 220px;
    font-family: 'Lora', serif;
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(248, 244, 237, 0.78);
}
.cookie-text strong {
    color: var(--cream);
    font-weight: 600;
    margin-right: 0.4rem;
    font-family: 'Inter', sans-serif;
}
.cookie-link {
    background: none;
    border: 0;
    color: var(--gold);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    margin-left: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: 'Lora', serif;
    font-style: italic;
}
.cookie-btn {
    padding: 0.85rem 1.5rem;
    background: var(--gold);
    color: #fff;
    border: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s ease;
}
.cookie-btn:hover { background: var(--gold-bright); }

/* TOAST */
.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 380px;
    background: #fff;
    color: var(--ink);
    padding: 1rem 1.2rem;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    border-left: 3px solid var(--gold);
    display: flex; align-items: flex-start; gap: 0.75rem;
    transform: translateX(120%);
    transition: transform .4s cubic-bezier(.2,.7,.3,1), opacity .3s ease;
}
.toast.in { transform: translateX(0); }
.toast.out { transform: translateX(120%); opacity: 0; }
.toast.success { border-left-color: #2E7D32; }
.toast.error   { border-left-color: #B22A2A; }
.toast .toast-icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--gold); }
.toast.success .toast-icon { color: #2E7D32; }
.toast.error .toast-icon   { color: #B22A2A; }
.toast .toast-title { font-weight: 500; font-size: 0.95rem; font-family: 'Fraunces', serif; }
.toast .toast-msg   { font-size: 0.85rem; color: rgba(14,12,10,0.7); margin-top: 2px; line-height: 1.4; font-family: 'Lora', serif; }

/* MISC */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bone); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-bright); }

body.lightbox-open { overflow: hidden; }

/* SCROLL TO TOP */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--cream);
    border: 1px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .35s ease, visibility .35s ease, transform .35s ease, background .25s ease, color .25s ease;
    box-shadow: 0 10px 30px -10px rgba(14,12,10,0.4);
    padding: 0;
}
.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}
.scroll-top svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
    .scroll-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; }
}

/* COMPREHENSIVE RESPONSIVE TUNING */

/* Phones ---------- */ */
    body.cookie-shown .scroll-top { bottom: 11rem; }

    /* Footer */
    .footer-tagline { font-size: 1.15rem; padding: 0 1rem; }
    address { font-size: 0.95rem !important; }

    /* Body text comfort */
    .body-text { font-size: 1.02rem; line-height: 1.65; }

    /* Form spacing */
    .field label { font-size: 0.6rem; letter-spacing: 0.24em; }
    .consent { font-size: 0.95rem; }
}

/* Very narrow phones (≤ 360px) */
@media (max-width: 360px) {
    .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); }
    .nav-logo-wrap { height: 3.25rem; }
    .lang-code { display: none !important; }
    .footer-logo { height: 5rem !important; }
}

/* Small tablets (641-767px) ---------- */ */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-num { top: 5rem; font-size: clamp(8rem, 18vw, 13rem); }
    .nav-logo-wrap { height: 4.25rem; }
    .footer-logo { transition: transform .6s; }
    /* Two-column comfort within Contact aside on tablets */
    aside .contact-card,
    aside .contact-card-dark { padding: 2rem; }
    /* Hero CTAs side-by-side but tighter */
    .btn-primary, .btn-ghost { min-width: 200px; }
}

/* Laptop + Desktop (≥ 1024px) ---------- */ */
@media (max-height: 560px) and (orientation: landscape) {
    #hero { min-height: auto; padding: 5rem 0 4rem; }
    .hero-title { font-size: clamp(2.2rem, 6vh, 4rem); }
    .hero-tagline { font-size: 1rem; margin-bottom: 0.75rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 1.25rem; }
    .scroll-cue { display: none; }
}

/* High-DPI gold border crispness ---------- */ */
@media (min-width: 2000px) {
    /* Tailwind arbitrary value class - escape brackets in selector */
    .max-w-\[1400px\] { max-width: 1600px !important; }
    .max-w-\[1200px\] { max-width: 1400px !important; }
}
@media (min-width: 2800px) {
    .max-w-\[1400px\] { max-width: 1800px !important; }
    .max-w-\[1200px\] { max-width: 1500px !important; }
}

/* MOBILE IMAGE AspectS - keep imagery composed on phones */
@media (max-width: 640px) {
    /* All gallery tiles: balanced 4:3 - one calm rhythm, no overstretching */
    .tile-default,
    .tile-tall,
    .tile-wide { aspect-ratio: 4/3; }

    /* Split image: small, centered, landscape on phones */
    .split-frame {
        aspect-ratio: 4/3;
        max-width: 18rem;          /* ~288px - compact on phones */
        margin: 0 auto 0.5rem;
        width: 100%;
    }
    .split-tile { aspect-ratio: 4/3; }
    .split-tag {
        padding: 0.55rem 0.9rem;
        bottom: -1px;
        right: -1px;
    }
    .split-tag span { font-size: 9px !important; letter-spacing: 0.3em !important; }

    /* Split TEXT block: align with the centered photo above */
    .split-text { text-align: center; }
    .split-text .eyebrow { display: inline-block; }
    .split-text .body-text {
        text-align: center;
        max-width: 32rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.95rem;
        line-height: 1.6;
    }
    .split-text .body-text.mb-5 { margin-bottom: 1rem; }
    .split-text .body-text.mb-8 { margin-bottom: 1.5rem; }

    /* Heading: smaller, line break preserved (Cisza miejska / nad brzegiem wody) */
    .split-heading {
        font-size: clamp(1.5rem, 6vw, 2.1rem);
        line-height: 1.15;
        margin-bottom: 1.1rem;
        max-width: 22ch;
        margin-left: auto;
        margin-right: auto;
    }

    /* Mobile gallery: show 6 tiles only (less work, calmer page) */
    .gallery-grid .gallery-tile:nth-child(n+7) { display: none; }
    .gallery-grid { gap: 0.6rem; }

    /* Disable hover scale on mobile (no hover anyway) - prevents
       any leftover transitions firing on touch. */
    .gallery-tile:hover .tile-img,
    .split-tile:hover .tile-img { transform: none; }
    .gallery-tile .tile-img,
    .split-tile .tile-img { transition: opacity .35s ease; }

    /* Hero bg: re-anchor focal point so faces / interiors aren't cut. */
    .hero-slide { background-position: 50% 35%; }

    /* Lightbox image - never overflow viewport */
    #lightbox-img {
        max-width: calc(100vw - 1.5rem);
        max-height: calc(85vh - 6.5rem);
        width: auto;
        height: auto;
    }
}

/* Tablets (641-1023) */
@media (min-width: 641px) and (max-width: 1023px) {
    .tile-wide { aspect-ratio: 5/4; }
    .tile-tall { aspect-ratio: 4/5; }
    .split-frame,
    .split-tile { aspect-ratio: 16/10; }
    /* Show 9 tiles on tablet (3 cols × 3 rows) */
    .gallery-grid .gallery-tile:nth-child(n+10) { display: none; }
}

/* MOBILE TYPOGRAPHY - cap big headings to fit phone screens */
@media (max-width: 640px) {
    /* About-split, Location titles - h3/h2 with .font-display .text-4xl ... */
    .font-display.text-4xl,
    .font-display.text-5xl,
    .font-display.text-6xl {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
        line-height: 1.1;
        letter-spacing: -0.012em;
    }

    /* Contact card titles ("Zadzwoń lub napisz", "Zarezerwuj online") */
    .contact-card h3,
    .contact-card-dark h3 { font-size: 1.4rem; line-height: 1.2; }

    /* Experience cell headings */
    .exp-cell h3 { font-size: 1.25rem; line-height: 1.25; }
    .exp-cell p { font-size: 0.85rem; }

    /* Location detail values (address, phone, email) */
    #location .font-editorial.text-xl { font-size: 1.05rem; line-height: 1.4; word-break: break-word; }

    /* Modals - prevent oversized titles */
    .modal-body h2.font-display { font-size: clamp(1.65rem, 7vw, 2.25rem); line-height: 1.15; }

    /* Lead text comfort */
    .lead-text { font-size: 1rem; line-height: 1.6; }

    /* Body text comfort */
    .body-text { font-size: 0.98rem; line-height: 1.65; }

    /* Footer address text */
    footer address > div { font-size: 0.95rem; line-height: 1.5; word-break: break-word; }

    /* Eyebrow row to break naturally */
    .eyebrow { white-space: normal; }

    /* Toast smaller */
    .toast { min-width: auto; max-width: calc(100vw - 3rem); }
}

@media (min-width: 641px) and (max-width: 767px) {
    .font-display.text-5xl,
    .font-display.text-6xl { font-size: 2.6rem; line-height: 1.08; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide { transition: none; transform: scale(1); }
    .scroll-cue::after { animation: none; }
    html { scroll-behavior: auto; }
    .tile-img { transition: none; transform: none; }
}
