/* ==========================================================================
   bgtourism.eu — Източни Родопи
   Light, simple system: white surfaces · one forest-green accent · Onest
   ========================================================================== */

:root {
  --bg: #ffffff;
  --alt: #f5f7f5;
  --alt-2: #ebefeb;
  --text: #18201c;
  --text-2: #57615b;
  --line: #e2e7e3;
  --accent: #2e6a4e;
  --accent-hover: #245840;
  --accent-soft: #eaf3ee;
  --accent-light: #a9dcc0;

  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1100px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px -28px rgba(24, 32, 28, 0.35);
  --shadow-sm: 0 8px 24px -16px rgba(24, 32, 28, 0.4);
  --ease: cubic-bezier(0.22, 0.7, 0.18, 1);
  --header-h: 72px;

  --z-header: 50;
  --z-menu: 60;
  --z-lightbox: 100;

  color-scheme: light;
}

/* ----- Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.0625rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font); font-weight: 650; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); color: var(--text); }

.visually-hidden { 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-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(800px + var(--gutter) * 2); }
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: clamp(52px, 6vw, 88px); }
.section--alt { background: var(--alt); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ----- Type helpers ----------------------------------------------------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
.display { font-size: clamp(2.8rem, 7.4vw, 5.9rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; }
.h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
.lead { font-size: clamp(1.08rem, 1.4vw, 1.2rem); line-height: 1.65; color: var(--text-2); max-width: 60ch; }
.muted { color: var(--text-2); }
.section-head { display: grid; gap: 18px 56px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin: 0; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; } }

/* ----- Buttons ---------------------------------------------------------- */
.btn { --btn-bg: var(--accent); --btn-fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent; font-weight: 600; font-size: 0.97rem; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.25s; }
.btn:hover { --btn-bg: var(--accent-hover); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.25s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--light { --btn-bg: #fff; --btn-fg: var(--text); }
.btn--light:hover { --btn-bg: #eef2ef; }
.btn--ghost { --btn-bg: rgba(255, 255, 255, 0.1); --btn-fg: #fff; border-color: rgba(255, 255, 255, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, 0.2); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line); }
.btn--outline:hover { --btn-bg: var(--alt); border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 9px 18px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--accent); min-height: 44px; }
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ----- Brand ------------------------------------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.035em; }
.brand__tld { color: var(--accent); }
.brand__sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2); margin-top: 5px; }

/* ----- Header ----------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: var(--z-header); height: var(--header-h); color: #fff; transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease); }
.site-header::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 13, 0.5), rgba(10, 16, 13, 0)); pointer-events: none; transition: opacity 0.3s; }
.site-header .brand__tld { color: var(--accent-light); }
.site-header .brand__sub { color: rgba(255, 255, 255, 0.75); }
.site-header.is-solid, .header-solid .site-header { background: rgba(255, 255, 255, 0.94); color: var(--text); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.site-header.is-solid::before, .header-solid .site-header::before { opacity: 0; }
.site-header.is-solid .brand__tld, .header-solid .site-header .brand__tld { color: var(--accent); }
.site-header.is-solid .brand__sub, .header-solid .site-header .brand__sub { color: var(--text-2); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav { display: none; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: background-color 0.2s; }
.nav__link:hover { background: rgba(255, 255, 255, 0.15); }
.is-solid .nav__link:hover, .header-solid .nav__link:hover { background: var(--alt); }
.nav__link[aria-current='page'] { box-shadow: inset 0 -2px 0 currentColor; border-radius: 0; }
.is-solid .nav__link[aria-current='page'], .header-solid .nav__link[aria-current='page'] { color: var(--accent); }
.header-cta { display: none; }
.is-solid .header-cta .btn--ghost, .header-solid .header-cta .btn--ghost { --btn-bg: var(--accent); --btn-fg: #fff; border-color: transparent; backdrop-filter: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.45); background: transparent; }
.is-solid .nav-toggle, .header-solid .nav-toggle { border-color: var(--line); }
.nav-toggle .icon { width: 22px; height: 22px; }
@media (min-width: 1100px) { .nav { display: block; } .header-cta { display: block; } .nav-toggle { display: none; } }

.mobile-menu { position: fixed; inset: 0; z-index: var(--z-menu); background: #fff; color: var(--text); display: flex; flex-direction: column; padding: 12px var(--gutter) 28px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s; overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 60px; }
.mobile-menu__close { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; }
.mobile-menu__list { list-style: none; margin: 28px 0; display: grid; }
.mobile-menu__list a { display: block; font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu__foot { margin-top: auto; color: var(--text-2); font-size: 0.92rem; }
body.menu-open { overflow: hidden; }

/* ----- Home hero -------------------------------------------------------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: #1b2420; overflow: hidden; isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.13) translate3d(-1.5%, -1%, 0); } }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 13, 0.3) 0%, rgba(10, 16, 13, 0) 30%, rgba(10, 16, 13, 0.08) 50%, rgba(10, 16, 13, 0.78) 100%), linear-gradient(90deg, rgba(10, 16, 13, 0.5) 0%, rgba(10, 16, 13, 0) 65%); }
.hero__content { width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vh, 56px); }
.hero .eyebrow { color: #fff; }
.hero__title { margin: 0 0 14px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero__sub { display: block; font-size: clamp(1.15rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.92); margin-bottom: 18px; }
.hero__lead { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); max-width: 54ch; font-size: clamp(1rem, 1.3vw, 1.12rem); color: rgba(255, 255, 255, 0.85); margin-bottom: 30px; }
.hero__bar { margin-top: clamp(36px, 6vh, 64px); padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.25); display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.hero__place { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; min-height: 44px; margin: 0; }
.hero__count { font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.hero__controls { display: flex; align-items: center; gap: 14px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { position: relative; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; }
.hero__dot::before, .hero__dot::after { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.hero__dot::before { background: rgba(255, 255, 255, 0.3); }
.hero__dot::after { background: #fff; transform: scaleX(0); transform-origin: left; }
.hero__dot[aria-current='true']::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dot[aria-current='true']::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.hero__pause { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); display: inline-flex; align-items: center; justify-content: center; }
.hero__pause .icon { width: 18px; height: 18px; }
.hero__credit { position: absolute; right: var(--gutter); bottom: 6px; z-index: 1; margin: 0; font-size: 0.68rem; color: rgba(255, 255, 255, 0.6); max-width: 50ch; text-align: right; }
.hero__credit a { color: inherit; }
@media (max-width: 520px) { .hero__count { display: none; } .hero__dot { width: 34px; } .hero__controls { gap: 8px; } }

/* ----- Intro ------------------------------------------------------------ */
.intro { display: grid; gap: 40px; }
.intro__statement { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.03em; }
.intro__statement em { color: var(--accent); font-style: normal; }
.intro__text p { color: var(--text-2); }
.intro__media { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 32px; }
.intro__img { border-radius: var(--radius); overflow: hidden; background: var(--alt-2); }
.intro__img:first-child { aspect-ratio: 4 / 3.4; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .intro { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }

/* ----- Quote band ------------------------------------------------------- */
.quote-band { position: relative; color: #fff; padding-block: clamp(96px, 13vw, 180px); overflow: hidden; isolation: isolate; background: #1b2420; }
.quote-band__bg { position: absolute; inset: 0; z-index: -2; }
.quote-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.quote-band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(10, 16, 13, 0.6); }
.quote-band blockquote { margin: 0 auto; max-width: 860px; text-align: center; }
.quote-band blockquote p { font-weight: 500; font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 0.7em; }
.quote-band blockquote p strong { font-weight: 700; color: var(--accent-light); }
.quote-band cite { font-style: normal; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.quote-band__mark { width: 44px; height: 44px; margin: 0 auto 22px; color: var(--accent-light); }
.quote-band__credit { position: absolute; right: var(--gutter); bottom: 14px; font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); margin: 0; }

/* ----- Stats ------------------------------------------------------------ */
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat__num { font-size: clamp(2.4rem, 4.4vw, 3.4rem); line-height: 1; font-weight: 700; letter-spacing: -0.045em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat__label { display: block; font-weight: 600; margin-top: 12px; line-height: 1.35; }
.stat__note { display: block; font-size: 0.88rem; color: var(--text-2); line-height: 1.45; margin-top: 4px; }
@media (min-width: 960px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

/* ----- Landmark cards --------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 0.94rem; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.chip:hover { border-color: var(--text); }
.chip[aria-pressed='true'] { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip__count { font-size: 0.78rem; opacity: 0.7; font-variant-numeric: tabular-nums; }

.cards { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; background: #2a332e; aspect-ratio: 4 / 3; isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); z-index: -2; }
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 13, 0.25) 0%, rgba(10, 16, 13, 0) 26%, rgba(10, 16, 13, 0.25) 50%, rgba(10, 16, 13, 0.9) 100%); }
.card:hover img, .card:focus-visible img { transform: scale(1.05); }
.card__top { position: absolute; top: 14px; left: 14px; right: 64px; display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; background: rgba(255, 255, 255, 0.94); color: var(--text); }
.pill--new { background: var(--accent); color: #fff; }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.card__title { font-size: clamp(1.35rem, 2vw, 1.6rem); margin-bottom: 4px; }
.card__tagline { font-size: 0.95rem; color: rgba(255, 255, 255, 0.88); margin: 0; line-height: 1.45; }
.card__place { display: flex; align-items: center; gap: 6px; font-size: 0.83rem; color: rgba(255, 255, 255, 0.78); margin: 8px 0 0; }
.card__place .icon { width: 15px; height: 15px; }
.card__arrow { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center; transform: scale(0.6); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s; }
.card:hover .card__arrow, .card:focus-visible .card__arrow { transform: none; opacity: 1; }
.card__excerpt { display: none; }
.card[hidden] { display: none; }
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 4 / 5; }
  .card--feature, .card--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; grid-auto-rows: 290px; }
  .card, .card--feature, .card--wide { aspect-ratio: auto; }
  .card--feature { grid-column: span 2; grid-row: span 2; }
  .card--wide { grid-column: span 2; }
  .card--feature .card__title { font-size: clamp(2rem, 3vw, 2.6rem); }
  .card--feature .card__excerpt { display: block; max-width: 46ch; color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; margin: 10px 0 0; }
  .cards.is-filtered .card--feature, .cards.is-filtered .card--wide { grid-column: span 1; grid-row: span 1; }
  .cards.is-filtered .card--feature .card__excerpt { display: none; }
  .cards.is-filtered .card--feature .card__title { font-size: clamp(1.35rem, 2vw, 1.6rem); }
}

/* ----- Map -------------------------------------------------------------- */
.map-wrap { display: grid; gap: 18px; }
.map { position: relative; height: 420px; border-radius: var(--radius); overflow: hidden; background: var(--alt-2); border: 1px solid var(--line); }
.map__placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-2); font-size: 0.95rem; }
.places { list-style: none; display: grid; gap: 4px; align-content: start; }
.place-btn { width: 100%; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; text-align: left; padding: 9px 10px; min-height: 54px; border-radius: 12px; border: 1px solid transparent; background: transparent; transition: background-color 0.2s, border-color 0.2s; }
.place-btn:hover, .place-btn.is-active { background: #fff; border-color: var(--line); }
.place-btn__num { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.place-btn__name { display: block; font-weight: 600; line-height: 1.3; }
.place-btn__meta { display: block; font-size: 0.82rem; color: var(--text-2); line-height: 1.4; }
.place-btn .icon { color: var(--text-2); }
@media (min-width: 1024px) {
  .map-wrap { grid-template-columns: 330px 1fr; gap: 28px; }
  .map { height: 600px; order: 2; }
  .places { order: 1; max-height: 600px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
}
.leaflet-container { font-family: var(--font) !important; background: #eef0ec !important; }
.tiles-osm { filter: saturate(0.7) brightness(1.03); }
/* Leaflet positions markers with transform, so the pin shape is rotated on an inner element */
.map-pin { width: 34px !important; height: 34px !important; margin: -41px 0 0 -17px !important; background: none; border: 0; }
.map-pin__shape { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--accent); color: #fff; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3); display: flex; align-items: center; justify-content: center; font: 700 13px/1 var(--font); transition: background-color 0.2s, transform 0.2s var(--ease); }
.map-pin__shape span { transform: rotate(45deg); }
.map-pin.is-active .map-pin__shape { background: var(--text); transform: rotate(-45deg) scale(1.18); }
.map-dot { width: 13px !important; height: 13px !important; margin: -6.5px 0 0 -6.5px !important; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25); }
.leaflet-popup-content-wrapper { border-radius: 14px !important; padding: 0 !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-popup-content { margin: 0 !important; width: 240px !important; font-size: 0.92rem !important; line-height: 1.5 !important; }
.popup__img { width: 100%; height: 128px; object-fit: cover; background: var(--alt-2); }
.popup__body { padding: 12px 16px 14px; color: var(--text); }
.popup__cat { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.popup__name { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; margin: 2px 0 4px; }
.popup__link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent) !important; text-decoration: none; margin-top: 6px; }
.leaflet-control-layers { border-radius: 12px !important; border: 0 !important; box-shadow: var(--shadow-sm) !important; }
.leaflet-control-zoom a { width: 36px !important; height: 36px !important; line-height: 36px !important; }

/* ----- Timeline --------------------------------------------------------- */
.timeline { position: relative; list-style: none; display: grid; gap: 26px; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl-item { position: relative; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-item__when { font-size: 0.95rem; font-weight: 600; color: var(--accent); line-height: 1.3; font-variant-numeric: tabular-nums; }
.tl-item__card { margin-top: 4px; }
.tl-item__title { font-size: 1.3rem; margin-bottom: 6px; }
.tl-item__text { color: var(--text-2); margin-bottom: 2px; }
.tl-item--mine .tl-item__card { background: var(--accent-soft); border: 1px solid #cfe3d7; border-radius: var(--radius); padding: 22px; }
.tl-item--mine::before { background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
@media (min-width: 900px) {
  .timeline { padding-left: 0; gap: 8px; }
  .timeline::before { left: 50%; margin-left: -1px; }
  .tl-item { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .tl-item::before { left: 50%; margin-left: -7px; top: 6px; }
  .tl-item__when { text-align: right; font-size: 1.05rem; }
  .tl-item:nth-child(even) .tl-item__when { order: 2; text-align: left; }
  .tl-item:nth-child(even) .tl-item__card { order: 1; text-align: right; }
  .tl-item:nth-child(even) .tl-item__card .link-arrow { flex-direction: row-reverse; }
  .tl-item__card { margin-top: 0; padding-bottom: 24px; }
}

/* ----- Nature ----------------------------------------------------------- */
.nature-grid { display: grid; gap: 16px; }
.n-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.n-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.n-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--alt-2); }
.n-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.n-card:hover .n-card__img img { transform: scale(1.05); }
.n-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.n-card__title { font-size: 1.2rem; }
.n-card__text { color: var(--text-2); font-size: 0.96rem; margin: 0; flex: 1; }
.n-card .link-arrow { min-height: 32px; margin-top: 8px; }
@media (min-width: 700px) { .nature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .nature-grid { grid-template-columns: repeat(4, 1fr); } }

/* ----- Video ------------------------------------------------------------ */
.video-layout { display: grid; gap: 20px; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__facade { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; color: #fff; text-align: left; }
.player__facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: opacity 0.3s, transform 1s var(--ease); }
.player__facade:hover img { opacity: 1; transform: scale(1.02); }
.player__facade::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.7)); }
.player__play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); transition: transform 0.3s var(--ease); }
.player__facade:hover .player__play { transform: scale(1.08); }
.player__play .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.player__meta { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; }
.player__title { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; display: block; }
.player__channel { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }
@media (max-width: 600px) { .player__meta { display: none; } .player__play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } }
.playlist { list-style: none; display: grid; gap: 6px; align-content: start; }
.pl-item { width: 100%; display: grid; grid-template-columns: 124px 1fr; gap: 12px; align-items: center; padding: 7px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: left; transition: background-color 0.2s, border-color 0.2s; }
.pl-item:hover { background: var(--alt); }
.pl-item[aria-current='true'] { background: var(--accent-soft); border-color: #cfe3d7; }
.pl-item__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--alt-2); }
.pl-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-item__thumb .icon { position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; fill: #fff; stroke: none; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
.pl-item__title { display: block; font-weight: 600; line-height: 1.3; font-size: 0.95rem; }
.pl-item__channel { display: block; font-size: 0.8rem; color: var(--text-2); margin-top: 3px; line-height: 1.35; }
.video-note { font-size: 0.85rem; color: var(--text-2); margin-top: 16px; }
@media (min-width: 1024px) { .video-layout { grid-template-columns: 1fr 340px; gap: 28px; } }

/* ----- Gallery ---------------------------------------------------------- */
.masonry { columns: 2 150px; column-gap: 12px; }
.masonry__item { display: block; break-inside: avoid; margin-bottom: 12px; border-radius: var(--radius-sm); overflow: hidden; position: relative; background: var(--alt-2); text-decoration: none; }
.masonry__item img { width: 100%; height: auto; transition: transform 0.9s var(--ease); }
.masonry__item:hover img { transform: scale(1.04); }
.masonry__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; color: #fff; font-size: 0.84rem; line-height: 1.35; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s var(--ease); }
.masonry__item:hover .masonry__cap, .masonry__item:focus-visible .masonry__cap { opacity: 1; transform: none; }
.masonry__cap small { display: block; opacity: 0.8; font-size: 0.74rem; }
@media (min-width: 760px) { .masonry { columns: 3; } }
@media (min-width: 1024px) { .masonry { columns: 4; } }
@media (hover: none) { .masonry__cap { opacity: 1; transform: none; } }
.archive-head { display: grid; gap: 20px; margin-bottom: 40px; }
.note-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; }
.note-pill .icon { color: var(--accent); }
@media (min-width: 900px) { .archive-head { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }

/* ----- Plan ------------------------------------------------------------- */
.plan-grid { display: grid; gap: 14px; }
.plan-card { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.plan-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.plan-card__icon .icon { width: 24px; height: 24px; }
.plan-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.plan-card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }
.mission { margin-top: 20px; display: grid; gap: 20px; align-items: center; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--accent); color: #fff; }
.mission p { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; margin: 0; }
.mission small { display: block; font-size: 0.86rem; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, 0.82); margin-top: 10px; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } .mission { grid-template-columns: 1fr auto; } }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(4, 1fr); } }

/* ----- Story (2009) ----------------------------------------------------- */
.story { display: grid; gap: 48px; align-items: center; }
.story__text p { color: var(--text-2); }
.story__text p strong { color: var(--text); font-weight: 600; }
.story__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 28px 0; }
.story__fact { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.story__fact b { display: block; font-size: 1.45rem; letter-spacing: -0.03em; line-height: 1.1; color: var(--accent); font-weight: 700; margin-bottom: 4px; }
.story__fact span { font-size: 0.86rem; color: var(--text-2); line-height: 1.4; display: block; }
.browser { border-radius: 12px; overflow: hidden; background: #e6e9e5; box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser__bar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #f1f3f0; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6dbd7; }
.browser__url { flex: 1; min-width: 0; padding: 4px 12px; border-radius: 6px; background: #fff; color: #5a645e; font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser__view { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: #fff; }
.browser__view iframe { position: absolute; top: 0; left: 0; width: 760px; height: 900px; border: 0; transform-origin: 0 0; pointer-events: none; }
@media (min-width: 960px) { .story { grid-template-columns: 1fr 1fr; gap: 72px; } }

/* ----- Footer ----------------------------------------------------------- */
.site-footer { background: var(--alt); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer__top { display: grid; gap: 40px; }
.footer__brand p { color: var(--text-2); max-width: 40ch; margin-top: 16px; font-size: 0.96rem; }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.footer__col h2 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); font-weight: 700; margin-bottom: 12px; }
.footer__col ul { list-style: none; display: grid; }
.footer__col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 0.88rem; color: var(--text-2); }
.footer__bottom a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer__bottom a:hover { color: var(--accent); }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1fr 1.6fr; } .footer__cols { grid-template-columns: repeat(3, 1fr); } }

/* ----- Inner page hero -------------------------------------------------- */
.page-hero { position: relative; min-height: 64vh; min-height: 64svh; display: flex; align-items: flex-end; color: #fff; background: #1b2420; overflow: hidden; isolation: isolate; }
.page-hero--short { min-height: 48vh; min-height: 48svh; }
.page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; animation: heroin 1.8s var(--ease) both; }
@keyframes heroin { from { transform: scale(1.06); opacity: 0.5; } to { transform: scale(1); opacity: 1; } }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 16, 13, 0.45) 0%, rgba(10, 16, 13, 0.08) 28%, rgba(10, 16, 13, 0.35) 50%, rgba(10, 16, 13, 0.85) 100%), linear-gradient(90deg, rgba(10, 16, 13, 0.35), rgba(10, 16, 13, 0) 60%); }
.page-hero__content { width: 100%; padding-top: calc(var(--header-h) + 48px); padding-bottom: clamp(32px, 5vw, 56px); text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3); }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; margin: 10px 0 12px; }
.page-hero__tagline { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; color: rgba(255, 255, 255, 0.92); margin: 0; }
.page-hero__lead { max-width: 60ch; color: rgba(255, 255, 255, 0.88); font-size: 1.08rem; margin: 14px 0 0; }
.page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 0.94rem; color: rgba(255, 255, 255, 0.88); }
.page-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.page-hero__meta .icon { width: 18px; height: 18px; }
.page-hero__credit { position: absolute; right: var(--gutter); bottom: 10px; font-size: 0.7rem; color: rgba(255, 255, 255, 0.62); text-align: right; margin: 0; }
.page-hero__credit a { color: inherit; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.87rem; color: rgba(255, 255, 255, 0.82); }
.crumbs a { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.5; }
.page-hero--split { background: #fff; color: var(--text); min-height: 0; padding-top: var(--header-h); }
.page-hero--split::after { display: none; }
.page-hero--split .crumbs { color: var(--text-2); }
.page-hero--split .page-hero__tagline { color: var(--accent); }
.page-hero--split .page-hero__meta { color: var(--text-2); }
.page-hero--split .page-hero__meta .icon { color: var(--accent); }
.split-hero { display: grid; gap: 36px; align-items: center; padding-block: clamp(40px, 6vw, 72px); }
.split-hero__img { border-radius: var(--radius); overflow: hidden; max-height: 66vh; background: var(--alt-2); }
.split-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.figcap { font-size: 0.84rem; color: var(--text-2); margin-top: 10px; }
.figcap a { color: inherit; }
@media (min-width: 900px) { .split-hero { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }

/* ----- Article ---------------------------------------------------------- */
.article-layout { display: grid; gap: 44px; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
  .article-layout--toc { grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
}
.prose { max-width: 68ch; font-size: 1.09rem; line-height: 1.78; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.7em 0 0.6em; }
.prose h2:first-child, .prose section:first-child h2 { margin-top: 0; }
.prose ul { list-style: none; margin: 0 0 1.4em; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 26px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose strong { font-weight: 600; color: var(--text); }
.prose a { color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); }
.prose blockquote p { font-size: clamp(1.2rem, 1.9vw, 1.42rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; color: var(--text); margin: 0 0 0.4em; }
.prose blockquote cite { font-style: normal; font-size: 0.86rem; color: var(--text-2); }
.prose figure { margin: 2em 0; }
.prose figure img { width: 100%; border-radius: var(--radius); }
.prose figure a { display: block; }
.prose figcaption { font-size: 0.85rem; color: var(--text-2); margin-top: 10px; line-height: 1.5; }
.prose figcaption a { color: inherit; }
.note { display: flex; gap: 14px; margin: 2em 0; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); font-size: 0.99rem; line-height: 1.65; }
.note .icon { color: var(--accent); width: 22px; height: 22px; margin-top: 3px; }
.note p { margin: 0; }
.source { margin-top: 2.2em; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--text-2); }
.source a { color: inherit; }

.aside { display: grid; gap: 16px; }
@media (min-width: 1024px) { .aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.facts { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 24px; }
.facts h2 { font-size: 1.15rem; margin-bottom: 12px; }
.facts dl { margin: 0; display: grid; }
.facts dl div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 0.93rem; line-height: 1.45; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; font-weight: 500; }
.facts .btn-row { margin-top: 18px; }
.facts .btn { flex: 1 1 auto; }
.mini-map { height: 230px; border-radius: var(--radius); overflow: hidden; background: var(--alt-2); border: 1px solid var(--line); }

.toc { display: none; }
@media (min-width: 1024px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 20px); }
  .toc h2 { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; font-weight: 700; }
  .toc ol { list-style: none; display: grid; gap: 2px; border-left: 2px solid var(--line); }
  .toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--text-2); font-size: 0.93rem; line-height: 1.4; transition: color 0.2s, border-color 0.2s; }
  .toc a:hover { color: var(--text); }
  .toc a.is-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
}

.thumbs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.thumbs a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--alt-2); }
.thumbs a:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.thumbs a:hover img { transform: scale(1.05); }
.thumbs__zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--text); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; }
.thumbs a:hover .thumbs__zoom, .thumbs a:focus-visible .thumbs__zoom { opacity: 1; }
.thumbs__zoom .icon { width: 18px; height: 18px; }
@media (min-width: 760px) { .thumbs { grid-template-columns: repeat(4, 1fr); } .thumbs a:first-child { grid-row: span 2; aspect-ratio: auto; } }
.credits-line { font-size: 0.82rem; color: var(--text-2); margin-top: 14px; line-height: 1.6; }
.credits-line a { color: inherit; }

.pager { display: grid; gap: 10px; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.pager a:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.pager small { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.pager span { font-size: 1.3rem; font-weight: 650; letter-spacing: -0.02em; }
.pager a:last-child { text-align: right; }
.pager a:last-child small { justify-content: flex-end; }
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }

.objects { display: grid; gap: clamp(48px, 7vw, 80px); }
.object { display: grid; gap: 24px; align-items: center; }
.object__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--alt-2); }
.object__img img { width: 100%; height: 100%; object-fit: cover; }
.object__num { font-size: 0.9rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.object h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 6px 0 14px; }
.object p { color: var(--text-2); }
.object .credits-line { margin-top: 10px; }
@media (min-width: 900px) { .object { grid-template-columns: 1fr 1fr; gap: 64px; } .object:nth-child(even) .object__media { order: 2; } }

.contact-card { display: grid; gap: 24px; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-row { display: flex; align-items: center; gap: 16px; }
.contact-row__icon { width: 50px; height: 50px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-row small { display: block; color: var(--text-2); font-size: 0.85rem; }
.contact-row a, .contact-row strong { font-size: 1.12rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }

.credits { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.credits th, .credits td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.credits th { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); font-weight: 600; }
.credits td a { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }

/* ----- Lightbox --------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 16, 14, 0.96); color: #fff; z-index: var(--z-lightbox); }
.lightbox::backdrop { background: rgba(12, 16, 14, 0.96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; animation: lbin 0.25s var(--ease); }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); font-variant-numeric: tabular-nums; }
.lightbox__stage { position: relative; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 12px; touch-action: pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; transition: opacity 0.25s; }
.lightbox__img.is-loading { opacity: 0.2; }
.lightbox__cap { padding: 14px 20px 22px; text-align: center; font-size: 0.95rem; line-height: 1.5; }
.lightbox__cap small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 0.8rem; margin-top: 4px; }
.lightbox__cap small a { color: inherit; }
.lb-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.16); }
.lb-btn--prev, .lb-btn--next { position: absolute; top: 50%; margin-top: -25px; }
.lb-btn--prev { left: 16px; }
.lb-btn--next { right: 16px; }
@media (max-width: 700px) { .lb-btn--prev, .lb-btn--next { top: auto; bottom: 8px; margin: 0; } }

/* ----- Motion ----------------------------------------------------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__slide.is-active img { animation: none; transform: none; }
}

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 80px; }
.notfound .display { color: var(--accent); }
