/* Dom w Jaworzu. Page styles, built only on design/tokens.css */

html { scroll-padding-top: var(--header-h); }
body { overflow-x: clip; }
h2 { font-weight: 500; }
h3 { font-weight: 600; }

:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }

.skip {
  position: absolute; left: var(--space-sm); top: -100px; z-index: 100;
  background: var(--ink); color: var(--on-dark); padding: var(--space-2xs) var(--space-sm);
}
.skip:focus { top: var(--space-sm); }

address { font-style: normal; }

/* Buttons: square corners like the reference */
.btn { border-radius: var(--radius-sm); min-height: 48px; justify-content: center; }
.btn-dark { background: var(--ink); color: var(--on-dark); }
.btn-dark:hover { background: var(--ink-soft); }
.btn-green { background: var(--green); color: var(--on-green); border-color: var(--green-strong); }
.btn-green:hover { background: var(--green-strong); }
.btn-outline-ink { border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: var(--on-dark); }

.eyebrow { margin-bottom: var(--space-sm); }
.eyebrow-ink { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); height: 100%; }

.logo { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 48px; }
.logo img { display: block; height: 46px; width: auto; }

.nav { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); margin-left: auto; }
.nav a {
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); padding-block: 0.6rem; border-bottom: 2px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav a:hover { color: var(--accent-strong); border-color: var(--accent); }
.header-call { padding: 0.65em 1.1em; font-size: 0.95rem; box-shadow: none; color: var(--accent-ink); }

.menu-btn {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: var(--radius-sm); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--ink); transition: transform .25s var(--ease), opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; padding: var(--space-2xs) var(--space-md) var(--space-md);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: var(--space-xs) 0; min-height: 48px; display: flex; align-items: center;
  font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1200px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-call { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-call span { display: none; }
  .header-call { width: 48px; padding: 0; }
  .header-row { gap: 10px; }
  .logo img { height: 34px; }
  .header-call, .menu-btn { flex-shrink: 0; }
}
@media (max-width: 380px) {
  .logo img { height: 29px; }
}

/* ---------- Hero: clouds video + amber panel ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; background: var(--ink); }
.hero-media { position: absolute; top: var(--header-h); bottom: 0; left: var(--panel-w); right: 0; overflow: hidden; background: var(--ink-soft); }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 8% 60%; }

.hero-panel {
  position: absolute; top: var(--header-h); bottom: 0; left: 0; width: var(--panel-w);
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(1.25rem, 3.5vh, 2.5rem) clamp(1.5rem, 2.6vw, 2.75rem);
  display: flex; flex-direction: column; gap: clamp(0.6rem, 2.2vh, 1.4rem);
  z-index: 2;
}
.tag {
  position: relative; align-self: flex-start;
  background: var(--ink); color: var(--on-dark);
  font-family: var(--font-display); font-style: italic; font-size: var(--step-1);
  padding: 0.35rem 1.1rem 0.45rem; margin-bottom: 0.4rem;
}
.tag::after {
  content: ""; position: absolute; left: 1.1rem; top: 100%;
  border: 8px solid transparent; border-top-color: var(--ink); border-left-color: var(--ink);
}
.hero-panel h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.5rem); font-weight: 500; font-style: italic; color: var(--ink);
}
.hero-panel h1 .tag {
  display: table; font-size: var(--step-1); font-weight: 400; line-height: 1.3; letter-spacing: 0;
  margin-bottom: clamp(1rem, 3vh, 1.8rem);
}
.panel-address {
  color: var(--ink); font-weight: 600; font-size: var(--step-1); line-height: 1.4;
  padding-bottom: clamp(0.6rem, 2.2vh, 1.4rem); border-bottom: 1px solid var(--accent-line);
}
.panel-stats { list-style: none; padding: 0 0 clamp(0.6rem, 2.2vh, 1.4rem); display: grid; gap: clamp(0.35rem, 1.4vh, 0.9rem); border-bottom: 1px solid var(--accent-line); }
.panel-stats li { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95rem; }
.panel-stats em {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  text-transform: none; letter-spacing: 0; font-size: 1.4rem; margin-right: 0.3rem;
}
.panel-price p { color: var(--ink); max-width: none; }
.price-label { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); line-height: 1; }
.price-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); line-height: 1.1; letter-spacing: var(--tracking-tight); }
.price-from { font-style: italic; font-weight: 400; font-size: 0.6em; margin-right: 0.1em; }
.price-unit { font-size: 0.95rem; font-weight: 500; }
.panel-call { margin-top: auto; width: 100%; }
.call-short { display: none; }

@media (max-height: 720px) and (min-width: 761px) {
  .hero-panel h1 .tag { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
  .panel-stats li { font-size: 0.85rem; }
  .panel-stats em { font-size: 1.15rem; }
}

@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; padding-top: var(--header-h); }
  .hero-media { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; }
  .hero-video { object-position: 12% 60%; }
  .hero-panel {
    position: relative; inset: auto; width: 100%; flex: 0 0 auto;
    padding: var(--space-sm);
    display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-sm); row-gap: 0.35rem;
    align-items: end;
  }
  .hero-panel h1 .tag { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
  .hero-panel h1 { font-size: 1.85rem; grid-column: 1; }
  .panel-address { grid-column: 1 / -1; font-size: 0.95rem; padding-bottom: 0.5rem; }
  .panel-address br { display: none; }
  .panel-stats { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 0.15rem var(--space-sm); padding-bottom: 0.5rem; }
  .panel-stats li { font-size: 0.8rem; letter-spacing: 0.04em; }
  .panel-stats em { font-size: 1.05rem; }
  .panel-price { grid-column: 1; grid-row: 4; display: flex; align-items: baseline; gap: 0.4rem; flex-wrap: wrap; }
  .price-label { font-size: 1.1rem; }
  .price-value { font-size: 1.6rem; }
  .price-unit { display: none; }
  .panel-call { grid-column: 2; grid-row: 4; width: auto; margin: 0; padding-inline: 1rem; font-size: 0.95rem; }
  .call-long { display: none; }
  .call-short { display: inline; }
}

/* ---------- Scroll-built house, between the layout and the build standard ---------- */
.build { position: relative; height: 420vh; background: var(--ink); }
.build-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.build-canvas, .build-fallback {
  position: absolute; top: var(--header-h); left: 0; right: 0; bottom: 0;
  width: 100%; height: calc(100% - var(--header-h));
  background: var(--ink-soft); object-fit: cover;
}
.build-stage::before {
  content: ""; position: absolute; left: 0; right: 0; top: var(--header-h); height: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(rgb(20 19 17 / 0.62), rgb(20 19 17 / 0));
}

.build-head {
  position: absolute; z-index: 2;
  top: calc(var(--header-h) + var(--space-lg));
  left: max(var(--space-md), calc((100% - var(--container)) / 2 + var(--space-md)));
  max-width: 560px;
}
.build-head .eyebrow { color: var(--accent); }
.build-head h2 { color: var(--on-dark); font-size: var(--step-4); }

.build-label {
  position: absolute; top: calc(var(--header-h) + var(--space-sm)); right: var(--space-md); z-index: 2;
  background: var(--scrim); color: var(--on-dark); max-width: none;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  padding: 0.4rem 0.75rem;
}

.build-caption {
  position: absolute; z-index: 2;
  right: max(var(--space-md), calc((100% - var(--container)) / 2 + var(--space-md)));
  bottom: var(--space-lg);
  width: min(400px, calc(100% - 2 * var(--space-md)));
  background: var(--scrim); color: var(--on-dark);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: var(--space-md);
  border-left: 3px solid var(--accent);
}
.cap-count { color: var(--on-dark-muted); font-size: 0.85rem; letter-spacing: 0.12em; font-weight: 600; }
.cap-num { color: var(--accent); }
.cap-title { font-size: var(--step-3); color: var(--on-dark); margin: 0.3rem 0 0.5rem; font-weight: 500; }
.cap-text { color: var(--on-dark); font-size: 0.98rem; line-height: 1.5; min-height: 3em; }
.cap-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: var(--space-sm); }
.cap-bar i { display: block; height: 3px; background: var(--on-dark-line); position: relative; overflow: hidden; }
.cap-bar i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); }

/* Scroll hint: finger on touch screens, mouse wheel elsewhere. Fades out once the build starts. */
.build-hint {
  position: absolute; z-index: 3; left: 50%; top: 56%;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-xs);
  pointer-events: none; transition: opacity .45s var(--ease), visibility .45s;
}
.hint-ring {
  width: 64px; height: 64px; border-radius: var(--radius-full);
  display: grid; place-items: center; overflow: hidden;
  background: var(--scrim); color: var(--on-dark); border: 2px solid var(--accent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: hint-pulse 1.8s var(--ease) infinite;
}
.hint-text {
  background: var(--scrim); color: var(--on-dark); font-weight: 600; font-size: 1rem;
  padding: 0.5rem 1rem; white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hint-touch { animation: hint-swipe 1.8s var(--ease) infinite; }
.hint-wheel { animation: hint-wheel 1.6s var(--ease) infinite; }
.hint-arrow { color: var(--accent); stroke: var(--accent); animation: hint-arrow 1.6s var(--ease) infinite; }
.hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) {
  .hint-touch { display: block; }
  .hint-mouse, .hint-more { display: none; }
}
@keyframes hint-pulse {
  0%   { box-shadow: 0 0 0 0 rgb(226 162 28 / 0.55); }
  70%  { box-shadow: 0 0 0 16px rgb(226 162 28 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(226 162 28 / 0); }
}
@keyframes hint-swipe {
  0%   { transform: translateY(12px); opacity: 0; }
  20%  { opacity: 1; }
  75%  { transform: translateY(-8px); opacity: 1; }
  100% { transform: translateY(-14px); opacity: 0; }
}
@keyframes hint-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(5px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
@keyframes hint-arrow {
  0%, 100% { transform: translateY(-1px); }
  50%      { transform: translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .hint-ring, .hint-touch, .hint-wheel, .hint-arrow { animation: none; }
}
.build.scrolled .build-hint { opacity: 0; visibility: hidden; }

.build.is-static { height: auto; }
.build.is-static .build-stage { position: relative; }
.build.is-static .build-hint { display: none; }

@media (max-width: 760px) {
  .build { height: 380vh; }
  .build-stage { display: flex; flex-direction: column; padding-top: var(--header-h); }
  .build-stage::before { display: none; }
  .build-head { position: relative; inset: auto; order: -1; padding: var(--space-md) var(--space-sm) var(--space-sm); max-width: none; }
  .build-head .eyebrow { margin-bottom: 0.4rem; }
  .build-head h2 { font-size: 1.75rem; }
  .build-canvas, .build-fallback { position: relative; inset: auto; flex: 1 1 auto; width: 100%; height: auto; min-height: 0; }
  .build-label { display: none; }
  .build-caption {
    left: var(--space-sm); right: var(--space-sm); width: auto; bottom: var(--space-sm);
    padding: 0.6rem 0.8rem;
  }
  .cap-title { font-size: 1.2rem; margin: 0.1rem 0 0; }
  .cap-text { display: none; }
  .cap-bar { margin-top: 0.5rem; }
  .build-hint { top: auto; bottom: 8.5rem; transform: translateX(-50%); }
}

/* ---------- Sections ---------- */
.section-head { max-width: 720px; margin-bottom: var(--space-xl); }
.section-head h2 { margin-bottom: var(--space-sm); }
.section-head .note { font-size: 0.95rem; border-left: 3px solid var(--accent); padding-left: var(--space-sm); }

/* Intro */
.intro { background: var(--bg); }
.intro-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--space-xl); align-items: start; }
.intro h2 { font-size: var(--step-4); }
.intro-copy { display: grid; gap: var(--space-sm); padding-top: 2.2rem; }
.intro-lead { color: var(--text); font-size: var(--step-1); line-height: 1.55; }
.facts {
  list-style: none; padding: 0; margin-top: var(--space-2xl);
  display: grid; grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line-strong);
}
.facts li { padding: var(--space-md) var(--space-sm) 0 0; border-top: 3px solid transparent; margin-top: -2px; }
.facts li:first-child { border-top-color: var(--accent); }
.facts strong { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.2; color: var(--ink); }
.facts span { display: block; color: var(--text-muted); font-size: 0.95rem; margin-top: 0.3rem; }

/* Offers */
.offers { background: var(--surface-alt); }
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.offer {
  background: var(--surface); border: 1px solid var(--line);
  padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-xs);
}
.offer-main { border-top: 4px solid var(--accent); box-shadow: var(--shadow-sm); }
.offer-tag { font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.9rem; color: var(--accent-strong); }
.offer:not(.offer-main) .offer-tag { color: var(--text-muted); }
.offer .price { font-size: var(--step-4); font-weight: 500; color: var(--ink); }
.offer-unit { font-family: var(--font-display); font-style: italic; font-size: var(--step-1); }
.offer-list { list-style: none; padding: 0; margin: var(--space-sm) 0 var(--space-md); }
.offer-list li { display: flex; justify-content: space-between; gap: var(--space-sm); padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.offer-list span { color: var(--text-muted); }
.offer-list b { font-weight: 600; text-align: right; }
.offer .btn { margin-top: auto; align-self: flex-start; }

/* Layout */
.layout { background: var(--bg); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-xl); align-items: center; }
.split + .split { margin-top: var(--space-2xl); }
.split-rev .split-media { order: 2; }
.split-media { margin: 0; position: relative; }
.split-media::before {
  content: ""; position: absolute; inset: var(--space-md) auto calc(-1 * var(--space-md)) calc(-1 * var(--space-md));
  width: 45%; background: var(--accent); z-index: 0;
}
.split-rev .split-media::before { left: auto; right: calc(-1 * var(--space-md)); }
.split-media img { position: relative; z-index: 1; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.split-copy h3 { font-size: var(--step-3); font-weight: 500; font-style: italic; margin-bottom: var(--space-sm); }
.split-copy p + p { margin-top: var(--space-sm); }
.rooms { margin-top: var(--space-md); border-top: 1px solid var(--line-strong); }
.rooms div { display: flex; justify-content: space-between; gap: var(--space-sm); padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.rooms dt { color: var(--text-muted); }
.rooms dd { font-family: var(--font-display); font-weight: 600; color: var(--ink); white-space: nowrap; }

/* Specs */
.specs { background: var(--bg); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.spec-grid h3 { font-size: var(--step-2); font-weight: 500; font-style: italic; margin-bottom: var(--space-sm); }
.spec { border-top: 1px solid var(--line-strong); }
.spec div { display: flex; justify-content: space-between; gap: var(--space-md); padding: 0.6rem 0.25rem; border-bottom: 1px solid var(--line); }
.spec div:nth-child(odd) { background: var(--surface); }
.spec dt { color: var(--text-muted); }
.spec dd { color: var(--ink); font-weight: 500; text-align: right; }

/* FAQ */
.faq { background: var(--surface-alt); }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--space-md) 2.5rem var(--space-md) 0; position: relative;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 400; color: var(--accent-strong);
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: var(--space-md); }

/* Contact */
.contact { background: var(--accent); color: var(--accent-ink); padding-block: var(--space-2xl); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-xl); align-items: center; }
.contact h2 { font-size: var(--step-4); color: var(--ink); margin-bottom: var(--space-sm); }
.contact p { color: var(--ink); }
.contact-cta { display: grid; gap: var(--space-md); justify-items: start; }
.phone-big {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);
  line-height: 1; letter-spacing: var(--tracking-tight); color: var(--ink);
  border-bottom: 3px solid var(--ink); padding-bottom: 0.15em;
}
.contact-btns { display: flex; gap: var(--space-xs); flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding-block: var(--space-lg); }
.site-footer p { color: var(--on-dark-muted); max-width: none; }
.site-footer address { color: var(--on-dark-muted); }
.site-footer b, .site-footer a { color: var(--on-dark); }
.footer-logo { display: block; width: 200px; height: auto; margin: 0 auto var(--space-lg); }
.footer-row { display: flex; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; padding-bottom: var(--space-md); border-bottom: 1px solid var(--on-dark-line); margin-bottom: var(--space-md); }
.legal { font-size: 0.85rem; font-style: italic; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .intro-grid, .split, .spec-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .intro-copy { padding-top: 0; }
  .facts { grid-template-columns: repeat(3, 1fr); row-gap: var(--space-md); }
  .split-rev .split-media { order: 0; }
}
@media (max-width: 640px) {
  .section-head { margin-bottom: var(--space-lg); }
  .facts { grid-template-columns: 1fr 1fr; margin-top: var(--space-xl); }
  .facts li:first-child { grid-column: 1 / -1; }
  .offer-grid { grid-template-columns: 1fr; }
  .offer { padding: var(--space-md); }
  .split-media::before { inset: var(--space-sm) auto calc(-1 * var(--space-sm)) calc(-1 * var(--space-sm)); }
  .split-rev .split-media::before { right: calc(-1 * var(--space-sm)); }
  .spec div { flex-direction: column; gap: 0.1rem; }
  .spec dd { text-align: left; }
  .contact { padding-block: var(--space-xl); }
}

/* ---------- Standard, Gallery, Location, Lightbox (v2) ---------- */
/* Standard (dark): key figures + tabbed spec panels */
.standard { background: var(--ink); color: var(--on-dark); }
.standard h2, .standard h3 { color: var(--on-dark); }
.standard .eyebrow { color: var(--accent); }
.std-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-xl); align-items: end; }
.std-head h2 { font-size: var(--step-4); }
.std-head p { color: var(--on-dark-muted); }

.std-figures {
  list-style: none; padding: 0; margin: var(--space-2xl) 0 var(--space-2xl);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md);
}
.std-figures li { border-top: 1px solid var(--on-dark-line); padding-top: var(--space-md); }
.std-figures b {
  display: flex; align-items: baseline; gap: 0.3rem;
  font-family: var(--font-display); font-weight: 500; font-size: clamp(2.8rem, 2rem + 3vw, 4.6rem);
  line-height: 1; letter-spacing: -0.03em; color: var(--on-dark);
}
.std-figures small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--accent); }
.std-figures .deg { font-style: normal; color: var(--accent); margin-left: -0.15em; }
.std-figures span { display: block; margin-top: var(--space-xs); color: var(--on-dark-muted); font-size: 0.95rem; max-width: 22ch; }

.std-tablist {
  display: flex; gap: var(--space-lg); border-bottom: 1px solid var(--on-dark-line);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.std-tablist::-webkit-scrollbar { display: none; }
.std-tablist [role="tab"] {
  flex: 0 0 auto; scroll-snap-align: start;
  background: none; border: 0; cursor: pointer; color: var(--on-dark-muted);
  font: 500 1rem var(--font-body); padding: var(--space-sm) 0; min-height: 48px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: baseline; gap: 0.5rem;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.std-tablist [role="tab"] span { font-family: var(--font-display); font-style: italic; font-size: 0.9rem; color: var(--on-dark-muted); }
.std-tablist [role="tab"]:hover { color: var(--on-dark); }
.std-tablist [role="tab"][aria-selected="true"] { color: var(--on-dark); border-bottom-color: var(--accent); }
.std-tablist [role="tab"][aria-selected="true"] span { color: var(--accent); }

.std-panel {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-xl); align-items: center;
  padding-top: var(--space-xl);
}
.std-panel + .std-panel { border-top: 1px solid var(--on-dark-line); margin-top: var(--space-xl); }
.std-tabs.js .std-panel + .std-panel { border-top: 0; margin-top: 0; }
.std-panel[hidden] { display: none; }
.std-panel.is-in { animation: std-in .5s var(--ease); }
@keyframes std-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .std-panel.is-in { animation: none; } }

.std-fig { position: relative; margin: 0; overflow: hidden; background: var(--ink-soft); }
.std-fig img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.std-fig figcaption {
  position: absolute; left: var(--space-sm); bottom: var(--space-sm);
  background: var(--scrim); color: var(--on-dark); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.6rem;
}
.std-body h3 { font-size: var(--step-3); font-weight: 500; margin-bottom: var(--space-sm); }
.std-body > p { color: var(--on-dark-muted); }
.std-specs { margin-top: var(--space-lg); border-top: 1px solid var(--on-dark-line); }
.std-specs div {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-md);
  padding: 0.85rem 0; border-bottom: 1px solid var(--on-dark-line);
}
.std-specs dt { color: var(--on-dark-muted); font-size: 0.95rem; }
.std-specs dd { color: var(--on-dark); font-weight: 500; }

/* Gallery: bento + full lightbox */
.gallery { background: var(--bg); }
.gal-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-lg); }
.gal-head h2 { font-size: var(--step-4); }
.gal-all { gap: 0.6rem; background: var(--surface); }

.bento {
  display: grid; gap: var(--space-2xs);
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, clamp(200px, 22vw, 300px));
}
.b-item {
  position: relative; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
  background: var(--surface-alt); display: block;
}
.b-a { grid-row: span 2; }
.b-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.b-item:hover img { transform: scale(1.045); }
.b-item::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(transparent 55%, rgb(20 19 17 / 0.55));
  opacity: 0; transition: opacity .35s var(--ease);
}
.b-item:hover::after, .b-item:focus-visible::after { opacity: 1; }
.b-cap {
  position: absolute; left: var(--space-sm); bottom: var(--space-sm); z-index: 1;
  color: var(--on-dark); font-weight: 600; font-size: 0.95rem;
  opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.b-item:hover .b-cap, .b-item:focus-visible .b-cap { opacity: 1; transform: none; }
.b-more::after { opacity: 1; background: rgb(20 19 17 / 0.5); }
.b-count {
  position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center;
  color: var(--on-dark); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.85rem;
}
.b-count b { font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); letter-spacing: 0; text-transform: none; line-height: 1; }
.gal-note { margin-top: var(--space-md); font-size: 0.9rem; max-width: 70ch; }

/* Location: full-bleed map with floating card */
.location { position: relative; min-height: 820px; background: var(--line); display: flex; align-items: center; }
.loc-map { position: absolute; inset: 0; }
.loc-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) contrast(1.03); }
.loc-inner { position: relative; pointer-events: none; padding-block: var(--space-2xl); }
.loc-card {
  pointer-events: auto; width: min(480px, 100%);
  background: var(--surface); box-shadow: var(--shadow-lg);
  padding: var(--space-lg); border-top: 4px solid var(--accent);
}
.loc-card h2 { font-size: var(--step-3); margin-bottom: var(--space-sm); }
.loc-card > p { font-size: 0.98rem; }
.dist { list-style: none; padding: 0; margin: var(--space-md) 0; }
.dist li {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: var(--space-xs);
  padding: 0.7rem 0; border-bottom: 1px solid var(--line);
}
.dist li:first-child { border-top: 1px solid var(--line); }
.dist svg { width: 22px; height: 22px; fill: none; stroke: var(--accent-strong); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dist span { color: var(--text-muted); font-size: 0.95rem; line-height: 1.35; }
.dist b { color: var(--ink); font-weight: 600; font-size: 0.95rem; text-align: right; white-space: nowrap; }
.loc-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.loc-addr { color: var(--ink); line-height: 1.4; }

/* Lightbox */
.lightbox {
  padding: 0; border: 0; margin: 0; background: var(--ink);
  width: 100vw; height: 100vh; height: 100dvh; max-width: 100vw; max-height: 100vh; max-height: 100dvh;
}
.lightbox::backdrop { background: rgb(20 19 17 / 0.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: var(--space-sm) var(--space-md); }
.lb-count { color: var(--on-dark-muted); font-size: 0.95rem; letter-spacing: 0.08em; max-width: none; }
.lb-stage { margin: 0; min-height: 0; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 0 var(--space-3xl); }
.lb-stage img { max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; }
.lb-cap { color: var(--on-dark); text-align: center; padding-top: var(--space-xs); }
.lb-btn {
  width: 52px; height: 52px; border: 1px solid var(--on-dark-line); cursor: pointer;
  background: transparent; color: var(--on-dark); font-size: 1.8rem; line-height: 1;
  display: grid; place-items: center; transition: background .2s var(--ease), color .2s var(--ease);
}
.lb-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lb-prev, .lb-next { position: fixed; top: 50%; transform: translateY(-50%); }
.lb-prev { left: var(--space-md); }
.lb-next { right: var(--space-md); }
.lb-thumbs {
  display: flex; gap: 6px; overflow-x: auto; padding: var(--space-sm) var(--space-md) var(--space-md);
  scrollbar-width: thin; justify-content: safe center;
}
.lb-thumbs button { flex: 0 0 auto; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; cursor: pointer; background: none; opacity: 0.5; transition: opacity .2s, border-color .2s; }
.lb-thumbs button:hover { opacity: 0.85; }
.lb-thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 960px) {
  .std-head { grid-template-columns: 1fr; gap: var(--space-md); }
  .std-figures { grid-template-columns: 1fr 1fr; row-gap: var(--space-lg); }
  .std-panel { grid-template-columns: 1fr; gap: var(--space-lg); }
  .location { flex-direction: column; align-items: stretch; min-height: 0; }
  .loc-map { position: relative; inset: auto; order: 2; height: 380px; }
  .loc-inner { pointer-events: auto; padding-block: var(--space-xl) var(--space-lg); background: var(--surface-alt); max-width: none; }
  .loc-card { width: 100%; max-width: var(--container-narrow); margin-inline: auto; box-shadow: var(--shadow-sm); }
}
@media (max-width: 640px) {
  .std-figures { margin: var(--space-xl) 0; gap: var(--space-sm); }
  .std-tablist { gap: var(--space-md); margin-inline: calc(-1 * var(--space-md)); padding-inline: var(--space-md); }
  .std-specs div { grid-template-columns: 1fr; gap: 0.15rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 150px 150px; }
  .b-a { grid-column: 1 / -1; grid-row: auto; }
  .b-cap { opacity: 1; transform: none; font-size: 0.85rem; }
  .b-item::after { opacity: 1; }
  .gal-all { width: 100%; }
  .loc-inner { padding-inline: var(--space-sm); }
  .loc-card { padding: var(--space-md); }
  .loc-map { height: 320px; }
  .lb-stage { padding: 0 var(--space-sm); }
  .lb-prev, .lb-next { display: none; }
  .lb-thumbs button { width: 64px; height: 46px; }
}

/* ---------- Cookie consent ---------- */
.consent {
  position: fixed; z-index: 80; left: var(--space-md); bottom: var(--space-md);
  width: min(420px, calc(100% - 2 * var(--space-md)));
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--accent); padding: var(--space-md);
}
.consent[hidden] { display: none; }
.consent-title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--ink); margin-bottom: var(--space-2xs); padding-right: 2.5rem; }
.consent-close {
  position: absolute; top: 0.35rem; right: 0.35rem; width: 44px; height: 44px;
  display: grid; place-items: center; background: none; border: 0; cursor: pointer;
  color: var(--text-muted); border-radius: var(--radius-sm); transition: color .2s var(--ease), background .2s var(--ease);
}
.consent-close:hover { color: var(--ink); background: var(--surface-alt); }
.consent p { font-size: 0.95rem; }
.consent-btns { display: grid; margin-top: var(--space-sm); }
.link-btn {
  background: none; border: 0; padding: 0.4rem 0; min-height: 44px; cursor: pointer;
  font: inherit; color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .consent { left: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm); width: auto; padding: var(--space-sm); }
}
