/* The JP Tattoo. Brand: black + gold, The Vanderink blackletter, Oswald, Poppins. Dark only (brand). */
:root {
  --bg: #0d0d0c;
  --surface: #151514;
  --surface-2: #1d1c1a;
  --line: #2b2925;
  --text: #ece7dd;
  --muted: #b3ab9d;
  --gold: #b7a072;
  --gold-hi: #cdb88a;
  --on-gold: #12110e;
  --error: #ff8a7a;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 76px;
  --gutter: clamp(16px, 4vw, 48px);
  --f-display: "The Vanderink", "Oswald", serif;
  --f-ui: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "Poppins", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 300 16px/1.75 var(--f-body);
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; line-height: 1.15; margin: 0 0 .6em; text-wrap: balance; }
p { margin: 0 0 1em; }
strong { font-weight: 500; color: var(--text); }
html { scrollbar-color: #3a3730 var(--bg); }

.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 14px; font-family: var(--f-ui); text-transform: uppercase; }
.skip:focus { top: 12px; }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2 * var(--gutter)); }

.display {
  font-family: var(--f-display); font-weight: 400; color: var(--text);
  font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: 1.05; letter-spacing: 0.02em; margin: 0 0 .35em;
  font-feature-settings: "liga" 1;
}
.display--sm { font-size: clamp(2.2rem, 5vw, 3.6rem); text-align: center; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 26px; border: 1px solid var(--b); background: rgba(13, 13, 12, .55);
  color: var(--text); font: 500 14px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--gold); color: var(--on-gold); }
.btn--ghost { --b: #5a5448; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--gold); color: var(--on-gold); }
  .btn--solid:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
  .btn--ghost:hover { background: transparent; color: var(--gold-hi); border-color: var(--gold); }
}
.btn[disabled] { opacity: .6; cursor: progress; }

.round-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer;
  transition: border-color 200ms ease, transform 140ms var(--ease-out);
}
.round-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .round-btn:hover { border-color: var(--gold); } }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color 300ms ease, box-shadow 300ms ease; }
.nav::before { content: ""; position: absolute; inset: 0 0 -40px; background: linear-gradient(rgba(0,0,0,.7), transparent); pointer-events: none; transition: opacity 300ms ease; }
.nav[data-solid] { background: rgba(13, 13, 12, .94); box-shadow: 0 1px 0 var(--line); }
.nav[data-solid]::before { opacity: 0; }
.nav__inner { position: relative; height: 100%; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.nav__list { list-style: none; margin: 0; padding: 0 0 10px; display: flex; gap: clamp(14px, 2vw, 28px); border-bottom: 1px solid rgba(183, 160, 114, .55); align-self: center; margin-top: 10px; }
.nav__list--right { justify-content: flex-end; }
.nav__list a, .nav__sheet a {
  color: var(--text); text-decoration: none; font: 500 14px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase;
  transition: color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .nav__list a:hover { color: var(--gold-hi); } }
.nav__list a[aria-current="page"] { color: var(--gold-hi); }
.nav__logo img { width: 58px; height: auto; aspect-ratio: 866 / 693; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); }
.nav__toggle { display: none; }
.nav__sheet { display: none; }

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav__inner { grid-template-columns: auto 1fr auto; }
  .nav__list { display: none; }
  .nav__logo { grid-column: 1; }
  .nav__logo img { width: 50px; }
  .nav__toggle {
    grid-column: 3; display: grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
    background: none; border: 0; color: var(--text); cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
  .nav__bars { position: relative; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -7px; } .nav__bars::after { top: 7px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }
  .nav__sheet {
    display: block; position: fixed; inset: var(--nav-h) 0 0; background: rgba(13, 13, 12, .98);
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav__sheet ul { list-style: none; margin: 0; padding: 0; }
  .nav__sheet li { border-bottom: 1px solid var(--line); }
  .nav__sheet a { display: block; padding: 18px 0; font-size: 20px; }
  .nav[data-open] { background: rgba(13, 13, 12, .98); }
  .nav[data-open] .nav__sheet { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* ---------- hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: end center; overflow: hidden; background: #000; }
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-in 1.6s var(--ease-out) both; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(13,13,12,.85)); }
.hero__content { position: relative; z-index: 1; padding-bottom: clamp(48px, 12vh, 120px); }
.hero__cta { animation: rise 900ms var(--ease-out) 500ms both; }
@media (max-width: 700px) {
  /* mobile hero art is 9:16 with the wordmark edge to edge: show it uncropped */
  .hero { min-height: 0; aspect-ratio: 9 / 16; max-height: 100svh; }
  .hero__bg img { object-position: center top; }
  .band, .guest { min-height: 64svh; }
}
@keyframes hero-in { from { opacity: 0; transform: scale(1.06); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- photo bands ---------- */
.band, .guest, .notfound { position: relative; min-height: min(78svh, 760px); display: grid; place-items: center; overflow: hidden; text-align: center; isolation: isolate; border-top: 1px solid rgba(183, 160, 114, .4); }
.band__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease-out); }
.band::after, .guest::after, .notfound::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.72)); }
.band__inner, .guest__inner, .notfound__inner { padding: 64px var(--gutter); }
.band .display { text-shadow: 0 4px 30px rgba(0,0,0,.6); }
@media (hover: hover) and (pointer: fine) { .band:hover .band__bg img { transform: scale(1.03); } }
.guest__inner { max-width: 640px; }
.guest__inner p { font-size: 18px; color: var(--text); margin-bottom: 1.6em; }
.notfound { min-height: 100svh; }
.notfound h1 { font-family: var(--f-ui); text-transform: uppercase; letter-spacing: .08em; font-size: 22px; }
.notfound p:not(.display) { color: var(--muted); margin-bottom: 1.8em; }

/* ---------- page banner ---------- */
.banner { position: relative; min-height: clamp(380px, 62svh, 640px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: calc(var(--nav-h) + 24px) var(--gutter) 48px; }
.banner__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: hero-in 1.4s var(--ease-out) both; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(0,0,0,.45), rgba(13,13,12,.8) 85%, var(--bg)); }
.banner .display { margin-bottom: .15em; animation: rise 900ms var(--ease-out) 200ms both; }
.banner__sub { font: 400 clamp(15px, 2vw, 19px)/1.3 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-hi); margin: 0; animation: rise 900ms var(--ease-out) 320ms both; }

/* ---------- split story ---------- */
.story { padding: clamp(56px, 9vw, 120px) 0; }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 128px); }
.split--flip .split__img { order: 2; }
.split__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.split:nth-child(odd) .split__img { aspect-ratio: 4 / 3.4; }
.split__text h2 { font: 500 clamp(24px, 3vw, 34px)/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--gold-hi); }
.split__text p { color: var(--muted); max-width: 62ch; }
.split__text .btn { margin-top: 1em; }
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split__img { order: 0; }
  .split__img, .split:nth-child(odd) .split__img { aspect-ratio: 4 / 3; }
}

/* ---------- intro / prose ---------- */
.intro { padding: clamp(56px, 8vw, 104px) 0 0; text-align: center; }
.intro h2 { font: 500 clamp(24px, 3vw, 32px)/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-hi); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--text); }
.intro p:not(.lead) { color: var(--muted); }
.prose { padding: clamp(48px, 7vw, 96px) 0; }
.prose--page { padding-top: calc(var(--nav-h) + 56px); }
.prose h1 { font: 500 clamp(30px, 4vw, 44px)/1.15 var(--f-ui); text-transform: uppercase; letter-spacing: .05em; }
.prose h2 { font: 500 clamp(19px, 2vw, 23px)/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--gold-hi); margin-top: 2.2em; }
.prose p { color: var(--muted); max-width: 68ch; }
.prose .lead { color: var(--text); }
.prose__back { margin-top: 3em; }

/* ---------- gallery / mosaic / flash ---------- */
.tile { display: block; position: relative; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out), opacity 300ms ease; }
@media (hover: hover) and (pointer: fine) { .tile:hover img { transform: scale(1.04); } }
.tile[hidden] { display: none; }

.mosaic { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.mosaic__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(180px, 22vw, 300px); gap: 10px; }
.mosaic__big { grid-column: span 2; grid-row: span 2; }
.mosaic__grid .tile:last-child { grid-column: span 2; }
.mosaic__more { text-align: center; margin: 40px 0 0; }
@media (max-width: 700px) {
  .mosaic__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 42vw; }
  .mosaic__big, .mosaic__grid .tile:last-child { grid-column: span 2; grid-row: span 1; }
}

.gallery { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filters button {
  min-height: 42px; padding: 0 20px; background: transparent; color: var(--muted); border: 1px solid var(--line);
  font: 500 13px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease, transform 140ms var(--ease-out);
}
.filters button:active { transform: scale(0.97); }
.filters button[aria-pressed="true"] { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
@media (hover: hover) and (pointer: fine) { .filters button:not([aria-pressed="true"]):hover { color: var(--text); border-color: var(--gold); } }
.gallery__grid, .flash__grid { columns: 4 240px; column-gap: 10px; }
.gallery__grid .tile, .flash__grid .tile { break-inside: avoid; margin-bottom: 10px; }
.gallery__grid .tile img, .flash__grid .tile img { height: auto; }
.flash { padding: 0 0 clamp(56px, 8vw, 104px); }
@media (max-width: 560px) { .gallery__grid, .flash__grid { columns: 2; column-gap: 8px; } .gallery__grid .tile, .flash__grid .tile { margin-bottom: 8px; } }

/* ---------- blog ---------- */
.posts { padding: clamp(56px, 8vw, 104px) 0; }
.post-card { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; color: inherit; text-decoration: none; }
.post-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 700ms var(--ease-out); }
.post-card { overflow: hidden; }
.post-card__meta { font: 400 13px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.post-card h2 { font: 500 clamp(26px, 3vw, 36px)/1.15 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; }
.post-card p { color: var(--muted); }
.post-card__more { font: 500 14px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); border-bottom: 1px solid var(--gold); padding-bottom: 4px; }
@media (hover: hover) and (pointer: fine) { .post-card:hover .post-card__img { transform: scale(1.02); } }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } }

/* ---------- reviews ---------- */
.reviews { padding: clamp(64px, 9vw, 120px) 0; background: var(--surface); border-top: 1px solid rgba(183, 160, 114, .4); text-align: center; }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 86%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 4px; overscroll-behavior-x: contain; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { margin: 0; padding: 36px clamp(22px, 3vw, 40px); background: var(--bg); border: 1px solid var(--line); scroll-snap-align: center; display: flex; flex-direction: column; justify-content: space-between; text-align: left; }
.review blockquote { margin: 0 0 22px; font-style: italic; font-weight: 300; font-size: 17px; line-height: 1.7; color: var(--text); }
.review blockquote::before { content: "\201E"; display: block; font: 400 52px/0.6 var(--f-display); color: var(--gold); margin-bottom: 14px; }
.review figcaption { font: 500 14px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
.reviews__nav { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- contact form ---------- */
.contact { padding: clamp(64px, 9vw, 120px) 0; text-align: center; border-top: 1px solid rgba(183, 160, 114, .4); }
.contact__lead { color: var(--muted); margin-bottom: 36px; }
.form { text-align: left; }
.form__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label, .field .label { font: 500 13px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.field label span { color: var(--gold-hi); }
input, textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--surface); color: var(--text);
  border: 1px solid #4a463e; border-radius: 0; font: 400 16px/1.5 var(--f-body);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
textarea { resize: vertical; min-height: 130px; }
input::placeholder, textarea::placeholder { color: #8f887b; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183,160,114,.25); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }
.field__error { margin: 0; color: var(--error); font-size: 14px; font-weight: 400; }
.upload {
  display: flex !important; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px;
  border: 1px dashed #5a5448; background: var(--surface); cursor: pointer;
  text-transform: none !important; letter-spacing: 0 !important; font: 400 15px/1.4 var(--f-body) !important; color: var(--muted) !important;
  transition: border-color 200ms ease, color 200ms ease;
}
.upload svg { flex: none; color: var(--gold); }
.upload[data-has-files] { color: var(--text) !important; border-style: solid; border-color: var(--gold); }
#f-files:focus-visible + .field__error, .upload:focus-within { outline: 2px solid var(--gold-hi); }
@media (hover: hover) and (pointer: fine) { .upload:hover { border-color: var(--gold); color: var(--text) !important; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { font-size: 13px; color: var(--muted); }
.form .btn { width: 100%; min-height: 52px; }
.form__status { margin: 14px 0 0; min-height: 1.5em; color: var(--muted); font-size: 15px; }
.form__status[data-error] { color: var(--error); }
.form__done { padding: 40px 24px; border: 1px solid var(--gold); background: var(--surface); text-align: center; outline: none; animation: rise 500ms var(--ease-out) both; }
.form__done h3 { font: 500 22px/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .08em; color: var(--gold-hi); }
.form__done p { color: var(--muted); margin: 0; }
.notify { margin-top: 28px; text-align: left; }
.notify__row { display: flex; gap: 10px; }
.notify__row .btn { flex: none; min-height: 48px; }
@media (max-width: 520px) { .notify__row { flex-direction: column; } }
.btn[data-loading] span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 clamp(64px, 9vw, 120px); text-align: center; }
.faq__list { text-align: left; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); transition: border-color 200ms ease; }
.faq details[open] { border-color: rgba(183,160,114,.6); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative;
  font: 500 15px/1.4 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform 240ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--muted); }

/* ---------- map ---------- */
.map { position: relative; min-height: 360px; background: var(--surface); border-top: 1px solid var(--line); display: grid; }
.map iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(1) invert(.9) contrast(.9); }
.map__facade { display: grid; place-content: center; justify-items: center; text-align: center; padding: 56px var(--gutter); }
.map__addr { font: 500 clamp(20px, 3vw, 28px)/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .1em; }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.map__note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(183, 160, 114, .4); padding: 64px var(--gutter) 40px; text-align: center; }
.footer__logo { width: 72px; height: auto; margin: 0 auto 16px; }
.footer__name { font: 500 15px/1 var(--f-ui); letter-spacing: .4em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 18px; }
.footer address { font-style: normal; font: 400 14px/2 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 26px; }
.footer address a { color: var(--text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer address a:hover { color: var(--gold-hi); } }
.footer__small { font-size: 12px; color: #8a8478; margin: 0 0 6px; }
.footer__small a { color: #8a8478; }

/* ---------- mobile sticky CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: flex; align-items: center; justify-content: center; position: fixed; z-index: 40;
    left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); min-height: 52px;
    background: var(--gold); color: var(--on-gold); text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.5);
    font: 500 15px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
    transform: translateY(160%); transition: transform 320ms var(--ease-out);
  }
  .mobile-cta[data-show] { transform: none; }
  .mobile-cta:active { transform: scale(0.98); }
  .footer { padding-bottom: 104px; }
}

/* ---------- lightbox ---------- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 7, .96); color: var(--text); }
.lightbox[open] { display: grid; place-items: center; animation: fade 220ms var(--ease-out); }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 64px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; animation: zoom 260ms var(--ease-out); }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: rgba(21,21,20,.8); border: 1px solid var(--line); color: var(--text); cursor: pointer; border-radius: 50%; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
@media (max-width: 600px) { .lightbox figure { padding: 70px 8px 84px; } .lightbox__nav { top: auto; bottom: 18px; transform: none; } .lightbox__nav--prev { left: calc(50% - 60px); } .lightbox__nav--next { right: calc(50% - 60px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes zoom { from { opacity: 0; transform: scale(.97); } }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js .reveal[data-in] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- mobile polish ---------- */
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
.band .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }

@media (max-width: 700px) {
  /* sub-page header: bigger title, less empty space */
  .banner { min-height: 0; height: clamp(300px, 48svh, 420px); padding-bottom: 32px; place-items: end center; }
  .banner .display { font-size: clamp(3rem, 14vw, 3.8rem); }
  .banner__sub { font-size: 13px; letter-spacing: .2em; }

  /* image + text blocks: photos run edge to edge */
  .story { padding: 40px 0 64px; }
  .split { gap: 22px; }
  .split + .split { margin-top: 56px; }
  .split__img { width: calc(100% + 2 * var(--gutter)); max-width: none; margin-inline: calc(-1 * var(--gutter)); }
  .split__text h2 { font-size: 24px; }
  .split__text .btn, .map__actions .btn, .guest .btn, .mosaic__more .btn, .prose__back .btn, .notfound .btn { width: 100%; }
  .map__actions { flex-direction: column; width: 100%; }
  .map__facade { justify-items: stretch; }

  /* calmer body rhythm on small screens */
  body { font-size: 15.5px; line-height: 1.7; }
  .display { font-size: clamp(2.4rem, 11vw, 3rem); }
  .reviews, .contact { padding: 56px 0; }
  .review { padding: 26px 22px; }
  .review blockquote { font-size: 16px; }
  .faq summary { padding: 16px 46px 16px 16px; font-size: 14px; }
  .faq details p { padding: 0 16px 18px; }
  .guest__inner p { font-size: 16px; }
  .footer address { letter-spacing: .1em; font-size: 13px; }
}

/* ---------- photos always whole and clearly visible (owner's wish): no cropping, light overlays ---------- */
.split__img, .split:nth-child(odd) .split__img { aspect-ratio: auto; object-fit: contain; height: auto; }
@media (max-width: 800px) { .split__img, .split:nth-child(odd) .split__img { aspect-ratio: auto; } }
.post-card__img { aspect-ratio: auto; height: auto; }

/* home photo bands: the band takes the photo's own shape (1440x900), text sits on a soft bottom shade */
.band { min-height: 0; aspect-ratio: 1440 / 900; place-items: end center; }
.band::after { background: linear-gradient(transparent 45%, rgba(0,0,0,.62)); }
.band__inner { padding: 0 var(--gutter) clamp(28px, 5vw, 64px); }
.guest { min-height: 0; aspect-ratio: 1440 / 900; }
.guest::after { background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.6)); }
@media (max-width: 700px) {
  .band, .guest { min-height: 0; }
  .band .display { font-size: clamp(1.9rem, 9vw, 2.4rem); margin-bottom: .25em; }
  .band .btn { min-height: 38px; padding: 0 16px; font-size: 12px; }
  .band__inner { padding-bottom: 18px; }
  /* guest spot text needs room: photo on top, text below it */
  .guest { aspect-ratio: auto; display: block; }
  .guest .band__bg img { position: static; width: 100%; height: auto; }
  .guest::after { display: none; }
  .guest__inner { padding: 28px var(--gutter) 40px; }
}

/* page banners: full photo width at its own shape, lighter shade */
.banner::after { background: linear-gradient(rgba(0,0,0,.2), rgba(13,13,12,.55) 80%, var(--bg)); }
.banner { min-height: 0; aspect-ratio: 1440 / 900; }
@media (max-width: 700px) {
  .banner { height: auto; aspect-ratio: auto; display: block; padding: 0; }
  .banner__bg img { position: static; width: 100%; height: auto; margin-top: var(--nav-h); }
  .banner::after { display: none; }
  .banner__inner { padding: 22px var(--gutter) 0; text-align: center; }
}

/* zadnji projekti: same uncropped masonry as the gallery */
.mosaic__grid { display: block; columns: 3 260px; column-gap: 10px; }
.mosaic__grid .tile { break-inside: avoid; margin-bottom: 10px; }
.mosaic__grid .tile img { height: auto; }
@media (max-width: 560px) { .mosaic__grid { columns: 1; } }

/* ---------- home photo sections: text over the whole photo, the photo "opens up" on scroll,
   and each one stops under the menu while the next slides over it (sticky works on phones too) ---------- */
@media (max-width: 700px) {
  .band .display { font-size: clamp(1.9rem, 9vw, 2.4rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .bands .band {
    position: sticky;
    /* stop where the whole photo is visible: under the menu, or lower if the photo is taller than the screen */
    top: min(var(--nav-h), calc(100svh - 62.5vw));
    box-shadow: 0 -28px 60px rgba(0, 0, 0, .6);
  }
  .bands .band:first-child { box-shadow: none; }

  @supports (animation-timeline: view()) {
    /* the band clips its photo (overflow), so the timeline must be named on the band itself */
    .bands .band { view-timeline: --band block; }
    .bands .band__bg img {
      transition: none;
      animation: band-open linear both;
      animation-timeline: --band;
      animation-range: entry 0% cover 45%;
    }
    .bands .band__inner { opacity: 1; transform: none; }
    .bands .band__inner > * {
      animation: band-text linear both;
      animation-timeline: --band;
      animation-range: entry 60% cover 45%;
    }
    .bands .band__inner .btn { animation-range: entry 80% cover 48%; }
    @keyframes band-open {
      from { clip-path: inset(9% 12%); transform: scale(1.14); filter: brightness(.45); }
      to { clip-path: inset(0); transform: none; filter: none; }
    }
    @keyframes band-text {
      from { opacity: 0; transform: translateY(34px); filter: blur(6px); }
      to { opacity: 1; transform: none; filter: none; }
    }
  }
}
