/* ============================================================
   Pacific Ridge — Costa Rica
   ============================================================ */

:root {
  --ink:       #0d0e0f;
  --ink-2:     #131517;
  --ink-3:     #1b1e21;
  --line:      #262a2e;
  --bone:      #ece7e0;
  --bone-dim:  #9d9891;
  --bone-mute: #6f6b66;
  --bronze:    #00a0d0;   /* Pacific Ridge ocean blue — from brand kit */
  --bronze-lo: #0b87b0;
  --accent-2:  #50d090;   /* Pacific Ridge green */

  --serif: 'Cormorant Garamond', 'Baskerville', Georgia, serif;
  --sans:  'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shell: 1240px;
  --gut: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.1vw, 1.75rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--bronze); color: #04191f; }

/* ---------------------------------------------------------- primitives */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bronze);
  margin: 0 0 1.4rem;
  display: block;
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--bone-dim);
  max-width: 62ch;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

section { padding-block: clamp(72px, 11vw, 150px); }

.section-head { max-width: 68ch; margin-bottom: clamp(40px, 6vw, 76px); }
.section-head h2 { margin-bottom: 1.4rem; }

/* buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  padding: 1.15em 2.1em;
  border: 1px solid var(--bronze);
  background: var(--bronze);
  color: #04191f;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn:hover { background: transparent; color: var(--bronze); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--bronze); color: var(--bronze); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.4rem; }

/* ------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 14, 15, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark { width: auto; height: 34px; flex: none; display: block; }
.brand__mark path, .brand__mark rect { fill: var(--bone); }
.brand__word {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--bone);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-dim);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav a:hover { color: var(--bone); }
.nav a.is-active { color: var(--bone); border-bottom-color: var(--bronze); }

.header-cta { font-size: 0.7rem; padding: 0.95em 1.7em; }

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
  color: var(--bone);
}
.burger span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.burger span + span { margin-top: 6px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .burger { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed;
    inset: 82px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink-2);
    border-block: 1px solid var(--line);
    padding: 8px var(--gut) 26px;
    transform: translateY(-120%);
    transition: transform 0.45s var(--ease);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding: 16px 0; font-size: 0.9rem; border-bottom: 1px solid var(--line); }
  .nav a.is-active { border-bottom-color: var(--bronze); }
}

/* --------------------------------------------------------------- hero */

.hero { position: relative; min-height: min(92vh, 900px); display: flex; align-items: flex-end; padding: 0; }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(13,14,15,0.92) 0%, rgba(13,14,15,0.72) 38%, rgba(13,14,15,0.30) 70%, rgba(13,14,15,0.20) 100%),
    linear-gradient(to top, rgba(13,14,15,0.96) 2%, rgba(13,14,15,0.40) 40%, rgba(13,14,15,0.55) 100%);
}
@media (max-width: 820px) {
  .hero__media::after {
    background: linear-gradient(to top, rgba(13,14,15,0.96) 6%, rgba(13,14,15,0.62) 55%, rgba(13,14,15,0.70) 100%);
  }
}
/* Hero without a photo still reads as designed, not broken. */
.hero__media {
  background:
    radial-gradient(120% 80% at 72% 12%, rgba(176,136,88,0.20) 0%, rgba(176,136,88,0) 58%),
    radial-gradient(90% 70% at 8% 90%, rgba(70,88,96,0.30) 0%, rgba(70,88,96,0) 60%),
    linear-gradient(160deg, #1a1d20 0%, #101214 48%, #0b0c0d 100%);
}
.hero__media::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(115deg, rgba(236,231,224,0.028) 0 1px, transparent 1px 78px);
}
.hero__media.ph::after { content: ''; }
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(56px, 9vw, 110px); }
.hero h1 { max-width: 15ch; margin-bottom: 1.6rem; }
.hero .lead { max-width: 52ch; color: #cfcac3; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(236,231,224,0.16);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

/* image fallback: never show a broken icon */
.ph {
  margin: 0;
  position: relative;
  background:
    radial-gradient(120% 90% at 20% 0%, #23262a 0%, #141618 55%, #0f1112 100%);
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image: repeating-linear-gradient(115deg, rgba(236,231,224,0.03) 0 1px, transparent 1px 64px);
}
.ph::after {
  content: attr(data-label);
  position: absolute;
  inset: auto 0 20px 0;
  text-align: center;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(176,136,88,0.55);
}
.ph:has(img)::before, .ph:has(img)::after { content: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------- stats */

.stats { border-block: 1px solid var(--line); background: var(--ink-2); }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat { padding: clamp(30px, 4vw, 48px) clamp(16px, 2.4vw, 34px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 3.1rem); line-height: 1; color: var(--bone); }
.stat__label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); margin-top: 0.9rem; }
.stat__note { font-size: 0.78rem; color: var(--bone-mute); margin-top: 0.25rem; }
@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* --------------------------------------------------------- split block */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
.split__media { aspect-ratio: 4 / 5; }
.split__media.is-wide { aspect-ratio: 3 / 2; }
@media (max-width: 900px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cards { grid-template-columns: 1fr; } }
.card { background: var(--ink); padding: clamp(28px, 3.4vw, 44px); }
.card h3 { margin-bottom: 1rem; }
.card p { color: var(--bone-dim); font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------- process */

.steps { display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: clamp(18px, 4vw, 56px);
  padding-block: clamp(28px, 3.6vw, 44px);
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n { font-family: var(--serif); font-size: 1.6rem; color: var(--bronze); line-height: 1.2; }
.step__body { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: clamp(14px, 3vw, 48px); }
.step__body h3 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.step__body p { color: var(--bone-dim); font-size: 0.96rem; margin: 0; }
@media (max-width: 820px) {
  .step { grid-template-columns: 56px 1fr; }
  .step__body { grid-template-columns: 1fr; gap: 12px; }
}

/* ------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery .ph { aspect-ratio: 4 / 3; }
.gallery .ph:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .ph:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
}

/* --------------------------------------------------------------- specs */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 940px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec { background: var(--ink-2); padding: 26px 24px; }
.spec__k { font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-mute); }
.spec__v { font-family: var(--serif); font-size: 1.45rem; margin-top: 0.45rem; color: var(--bone); }

/* score bars */
.scores { display: grid; gap: 18px; max-width: 520px; }
.score { display: grid; grid-template-columns: 130px 1fr 48px; gap: 16px; align-items: center; font-size: 0.85rem; }
.score__k { color: var(--bone-dim); }
.score__track { height: 2px; background: var(--line); position: relative; }
.score__fill { position: absolute; inset: 0 auto 0 0; background: var(--bronze); }
.score__v { text-align: right; font-family: var(--serif); font-size: 1.05rem; }

/* amenities */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
  border: 1px solid var(--line);
  padding: 0.6em 1.1em;
}

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.review { background: var(--ink); padding: clamp(26px, 3vw, 40px); }
.review__stars { color: var(--bronze); letter-spacing: 0.22em; font-size: 0.8rem; }
.review__quote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; margin: 1.1rem 0 1.4rem; color: var(--bone); }
.review__who { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--bone-mute); }

/* ----------------------------------------------------------- distances */

.dist { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 clamp(24px, 5vw, 70px); }
.dist__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.dist__place { font-size: 0.98rem; }
.dist__detail { display: block; font-size: 0.76rem; color: var(--bone-mute); }
.dist__time { font-family: var(--serif); font-size: 1.15rem; color: var(--bronze); white-space: nowrap; }

/* ---------------------------------------------------------------- form */

.form { display: grid; gap: 22px; max-width: 620px; }
.field { display: grid; gap: 9px; }
.field label { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.95em 1.1em;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--bronze); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%), linear-gradient(135deg, var(--bone-dim) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .field--2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-left: 2px solid var(--bronze); background: var(--ink-2); padding: 22px 26px; margin-bottom: 30px; }
.notice--err { border-left-color: #c0574a; }
.notice h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.notice p { color: var(--bone-dim); font-size: 0.93rem; margin: 0; }

.contact-aside { display: grid; gap: 26px; align-content: start; }
.contact-aside .rowlet { border-top: 1px solid var(--line); padding-top: 18px; }
.contact-aside .rowlet span { display: block; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bone-mute); margin-bottom: 6px; }
.contact-aside .rowlet a, .contact-aside .rowlet strong { font-weight: 300; font-size: 1rem; color: var(--bone); }
.contact-aside .rowlet a:hover { color: var(--bronze); }

/* ------------------------------------------------------------- cta band */

.cta-band { background: var(--ink-2); border-block: 1px solid var(--line); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta-band h2 { max-width: 18ch; }

/* --------------------------------------------------------------- footer */

.site-footer { background: var(--ink); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 76px) 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
@media (max-width: 800px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-col h4 { font-family: var(--sans); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bone-mute); margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--bone-dim); }
.footer-col a:hover { color: var(--bronze); }
.footer-blurb { font-size: 0.92rem; color: var(--bone-dim); max-width: 40ch; margin-top: 16px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; font-size: 0.76rem; color: var(--bone-mute); }

/* ------------------------------------------------------------ 404 */

.err { min-height: 66vh; display: grid; place-items: center; text-align: center; }

/* ------------------------------------------------------- reveal on scroll */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

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

/* When a real photo is present, drop the placeholder texture so it doesn't
   overlay the image. */
.hero__media:has(img)::before { content: none; }


/* nearby places link out to a map */
a.dist__row { text-decoration: none; transition: border-color 0.3s var(--ease); }
a.dist__row:hover { border-bottom-color: var(--bronze); }
a.dist__row:hover .dist__place { color: var(--bronze); }
.dist__place { transition: color 0.3s var(--ease); }
.dist__arrow { font-size: 0.72rem; color: var(--bone-mute); margin-left: 0.5em; }
a.dist__row:hover .dist__arrow { color: var(--bronze); }

/* listing price */
.price-band { border-block: 1px solid var(--line); background: var(--ink-2); }
.price-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(26px, 3.4vw, 42px); }
.price { font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1; color: var(--bone); }
.price__label { display: block; font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bronze); margin-bottom: 0.7rem; }
.price__note { font-size: 0.82rem; color: var(--bone-mute); max-width: 46ch; margin-top: 0.7rem; }

/* status pill */
.pill { display: inline-block; font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.55em 1.05em; border: 1px solid var(--bronze); color: var(--bronze); }
.pill--sold { border-color: var(--line); color: var(--bone-mute); }

/* homes index cards */
.home-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.home-card:first-of-type { border-top: 1px solid var(--line); }
.home-card__media { aspect-ratio: 4 / 3; }
.home-card h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 1rem 0 0.9rem; }
.home-card__meta { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-mute); margin-bottom: 1.2rem; }
.home-card__price { font-family: var(--serif); font-size: 1.7rem; color: var(--bone); margin-bottom: 1rem; }
@media (max-width: 880px) { .home-card { grid-template-columns: 1fr; } .home-card--flip .home-card__media { order: -1; } }

/* ------------------------------------------------------------- lightbox */

.ph--zoom { cursor: zoom-in; }
.ph__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236,231,224,0.28);
  border-radius: 999px;
  background: rgba(12,14,15,0.55);
  backdrop-filter: blur(6px);
  color: var(--bone);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}
.ph__zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ph--zoom:hover .ph__zoom,
.ph__zoom:focus-visible { opacity: 1; transform: none; }
.ph__zoom:hover { background: var(--bronze); border-color: var(--bronze); color: #06181f; }
@media (hover: none) {
  .ph__zoom { opacity: 1; transform: none; }
}

html.lb-open { overflow: hidden; }

.lb[hidden] { display: none; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 44px);
  background: rgba(8, 10, 11, 0.94);
  backdrop-filter: blur(10px);
  animation: lb-in 0.18s ease-out;
}
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb__stage {
  margin: 0;
  max-width: min(1600px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100vh - clamp(90px, 12vw, 150px));
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  transition: opacity 0.18s ease;
}
.lb.is-loading .lb__img { opacity: 0.25; }

.lb__cap {
  display: flex;
  gap: 18px;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  color: var(--bone-dim);
  font-size: 0.86rem;
  line-height: 1.5;
  max-width: 70ch;
}
.lb__count { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); white-space: nowrap; }

.lb__close, .lb__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236,231,224,0.2);
  border-radius: 999px;
  background: rgba(20,22,24,0.7);
  color: var(--bone);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lb__close:hover, .lb__nav:hover { background: var(--bronze); border-color: var(--bronze); color: #06181f; }
.lb__close {
  top: clamp(12px, 2.2vw, 26px);
  right: clamp(12px, 2.2vw, 26px);
  width: 46px; height: 46px;
  font-size: 1.7rem;
  line-height: 1;
}
.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2rem;
  line-height: 1;
  padding-bottom: 5px;
}
.lb__nav--prev { left: clamp(8px, 2vw, 26px); }
.lb__nav--next { right: clamp(8px, 2vw, 26px); }

@media (max-width: 640px) {
  .lb__nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .lb__cap { font-size: 0.78rem; }
}
