@import url("../fonts/fonts.css");

/* ============================================================
   Birkshire — design tokens
   Palette drawn from the work itself: cut stone, greige siding,
   charcoal shutters, walnut floors, unlacquered brass.
   ============================================================ */
:root {
  --ink:        #16150f;
  --ink-soft:   #2a2822;
  --ink-mute:   #4d4941;
  --bone:       #faf8f3;
  --paper:      #f1ede4;
  --stone:      #b4aa98;
  --stone-dark: #756d5d;
  --brass:      #a5824f;
  --brass-lt:   #c9a876;
  --line:       #ded7c9;
  --line-dark:  rgba(250, 248, 243, .16);

  --serif: "Cormorant Garamond", Iowan Old Style, Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --pad:      clamp(1.25rem, 5vw, 5.5rem);
  --gutter:   clamp(.75rem, 1.6vw, 1.5rem);
  --maxw:     84rem;
  --section:  clamp(5rem, 11vh, 9.5rem);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

/* <picture> is inline by default, so a child img's height:100% has no
   resolvable parent height and the aspect-ratio box gets overridden.
   Make every picture a block that fills its container. */
picture { display: block; }
/* Absolutely position the picture inside every fixed-ratio media box so the
   image never contributes to layout height. Without this, a box whose height
   comes from its grid area (the 2x2 feature tile) gets sized by its image
   instead and the grid leaves holes. */
/* .hero__media and .band__media are already absolutely positioned themselves. */
.svc__fig, .tile, .walls__media figure, .about__fig { position: relative; }
.hero__media picture, .band__media picture, .svc__fig picture,
.tile picture, .walls__media picture, .about__fig picture {
  position: absolute; inset: 0;
}
.hero__media img, .band__media img, .svc__fig img,
.tile img, .walls__media img, .about__fig img {
  width: 100%; height: 100%; object-fit: cover;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.08; letter-spacing: -.012em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--brass); color: var(--bone); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* ============================================================
   Type primitives
   ============================================================ */
.display   { font-family: var(--serif); font-weight: 300; }
.eyebrow {
  font-size: .6875rem; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; color: var(--stone-dark);
  display: flex; align-items: center; gap: .85rem;
}
.eyebrow::before {
  content: ""; width: clamp(1.5rem, 4vw, 3rem); height: 1px;
  background: var(--stone); flex: none;
}
.eyebrow--light { color: var(--stone); }
.eyebrow--light::before { background: var(--brass); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem);
  line-height: 1.34; letter-spacing: -.014em; color: var(--ink-soft);
}
.muted { color: var(--ink-mute); }

/* containers that space children with gap should not also carry p margins */
.intro__body p, .walls__copy p, .about__copy p, .svc__body p { margin-bottom: 0; }

/* ============================================================
   Layout
   ============================================================ */
.shell { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(3.5rem, 7vh, 6rem); }
.section--dark { background: var(--ink); color: var(--bone); }
.section--paper { background: var(--paper); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 1.85rem;
  font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid currentColor;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
  white-space: nowrap;
}
.btn--solid { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.btn--solid:hover { background: var(--brass); border-color: var(--brass); }
.btn--ghost-light { color: var(--bone); border-color: rgba(250, 248, 243, .5); }
.btn--ghost-light:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bone); }

/* ============================================================
   Header
   ============================================================ */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: clamp(1rem, 2.4vh, 1.75rem) var(--pad);
  color: var(--bone);
  transition: background .5s var(--ease), color .5s var(--ease),
              box-shadow .5s var(--ease), padding .5s var(--ease);
}
.hdr::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(10, 10, 8, .55), transparent);
  transition: opacity .5s var(--ease);
}
.hdr.is-stuck {
  background: rgba(250, 248, 243, .93);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  padding-block: clamp(.7rem, 1.6vh, 1rem);
}
.hdr.is-stuck::after { opacity: 0; }

.brand { display: flex; flex-direction: column; gap: .18rem; line-height: 1; }
.brand__mark {
  font-family: var(--serif); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.75rem);
  font-weight: 400; letter-spacing: .34em; text-indent: .34em;
}
.brand__sub {
  font-size: .5rem; font-weight: 500; letter-spacing: .28em;
  text-transform: uppercase; opacity: .72;
}

.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.2vw, 2.25rem); }
.nav__link {
  position: relative; font-size: .72rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; padding-block: .4rem;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__tel {
  font-size: .72rem; font-weight: 500; letter-spacing: .1em;
  padding: .6rem 1.2rem; border: 1px solid currentColor;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.nav__tel:hover { background: currentColor; }
.nav__tel:hover span { color: var(--bone); mix-blend-mode: normal; }
.hdr.is-stuck .nav__tel:hover span { color: var(--bone); }

.burger { display: none; width: 2.5rem; height: 2.5rem; place-items: center; }
.burger span { display: block; width: 1.4rem; height: 1px; background: currentColor; transition: transform .4s var(--ease), opacity .3s; }
.burger span + span { margin-top: .32rem; }
.burger.is-open span:nth-child(1) { transform: translateY(.415rem) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-.415rem) rotate(-45deg); }

@media (max-width: 62rem) {
  .burger { display: grid; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; gap: 1.75rem;
    background: var(--bone); color: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 1rem; letter-spacing: .18em; }
  .nav__tel { margin-top: .5rem; font-size: .8rem; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  padding: 0 var(--pad) clamp(3rem, 9vh, 6rem);
  color: var(--bone); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(12, 12, 10, .5) 0%, rgba(12, 12, 10, .16) 26%,
                    rgba(12, 12, 10, .44) 54%, rgba(12, 12, 10, .64) 78%,
                    rgba(12, 12, 10, .86) 100%),
    linear-gradient(to right, rgba(12, 12, 10, .42), transparent 66%);
}
.hero__inner { width: 100%; max-width: var(--maxw); margin-inline: auto; }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.25rem, 1.4rem + 10.5vw, 11rem);
  line-height: .92; letter-spacing: .06em; text-indent: .06em;
  margin-bottom: clamp(.5rem, 1.6vh, 1.1rem);
}
.hero__sub {
  font-size: clamp(.7rem, .64rem + .22vw, .8125rem); font-weight: 500;
  letter-spacing: .34em; text-transform: uppercase;
  padding-bottom: clamp(1.4rem, 4vh, 2.5rem);
  border-bottom: 1px solid var(--line-dark);
}
.hero__foot {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 1.75rem;
  padding-top: clamp(1.4rem, 4vh, 2.25rem);
}
.hero__claim {
  font-family: var(--serif);
  font-size: clamp(1.1rem, .95rem + .7vw, 1.6rem);
  line-height: 1.42; max-width: 30ch; color: rgba(250, 248, 243, .93);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.4rem; translate: -50% 0;
  display: grid; place-items: center; gap: .55rem;
  font-size: .5625rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(250, 248, 243, .62);
}
.scroll-cue::after {
  content: ""; width: 1px; height: 2.5rem;
  background: linear-gradient(to bottom, rgba(250, 248, 243, .7), transparent);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue { 0%, 100% { transform: scaleY(.35); transform-origin: top; opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }
@media (max-width: 48rem) { .scroll-cue { display: none; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue::after { animation: none; } }

/* ============================================================
   Intro / statement
   ============================================================ */
.intro { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 60rem) { .intro { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; } }
.intro__head { display: grid; gap: 1.75rem; }
.intro__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.25rem + 3.1vw, 3.9rem);
  line-height: 1.06; letter-spacing: -.018em;
}
.intro__title em { font-style: italic; color: var(--brass); }
.intro__body { display: grid; gap: 1.5rem; padding-top: clamp(0rem, 1.4vw, 1.1rem); }

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: clamp(1.75rem, 4vh, 2.5rem); border-top: 1px solid var(--line);
}
.stat__n {
  font-family: var(--serif); font-size: clamp(2rem, 1.5rem + 2vw, 3.1rem);
  line-height: 1; letter-spacing: -.02em; color: var(--ink);
}
.stat__l {
  margin-top: .55rem; font-size: .6875rem; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase; color: var(--stone-dark);
}

/* ============================================================
   Services
   ============================================================ */
.svc-head {
  display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 6vh, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 60rem) {
  .svc-head { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); align-items: end; gap: clamp(2rem, 5vw, 4.5rem); }
}
.h2 {
  font-family: var(--serif); font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 1.08; letter-spacing: -.018em; margin-top: 1.1rem;
}
.h2 em { font-style: italic; color: var(--brass); }

.svc { display: grid; gap: 1px; background: var(--line); grid-template-columns: 1fr; }
@media (min-width: 44rem) { .svc { grid-template-columns: 1fr 1fr; } }
@media (min-width: 74rem) { .svc { grid-template-columns: repeat(4, 1fr); } }
.svc__card { background: var(--bone); padding: 0; display: grid; }
.svc__fig { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); }
.svc__fig img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.3s var(--ease), filter 1.3s var(--ease);
}
.svc__card:hover .svc__fig img { transform: scale(1.055); }
.svc__body { padding: clamp(1.5rem, 2.5vw, 2.1rem) clamp(1.25rem, 2.2vw, 1.85rem) clamp(1.75rem, 3vw, 2.4rem); display: grid; gap: .8rem; align-content: start; }
.svc__n { font-size: .625rem; font-weight: 500; letter-spacing: .2em; color: var(--brass); }
.svc__t { font-family: var(--serif); font-size: clamp(1.3rem, 1.15rem + .55vw, 1.65rem); line-height: 1.14; }
.svc__d { font-size: .9375rem; line-height: 1.68; color: var(--ink-mute); }

/* ============================================================
   Gallery
   ============================================================ */
.filters {
  display: flex; flex-wrap: wrap; gap: .4rem;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.filter {
  display: inline-flex; align-items: baseline; gap: .45rem;
  padding: .6rem 1.15rem; font-size: .6875rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--stone-dark);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.filter:hover { border-color: var(--stone-dark); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.filter__c { font-size: .5625rem; opacity: .6; font-variant-numeric: tabular-nums; }

.grid {
  display: grid; gap: var(--gutter);
  grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense;
}
@media (min-width: 46rem) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 80rem) { .grid { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative; overflow: hidden; background: var(--paper);
  aspect-ratio: 4 / 3; display: block; width: 100%;
  animation: tile-in .6s var(--ease) both;
}
/* Feature tile: only promoted at the 4-column breakpoint, where one 2x2 plus
   eight 1x1 tiles fill three rows exactly (see PAGE/feature step in main.js).
   Below that it stays a normal tile so the grid never leaves holes. */
@media (min-width: 80rem) {
  .tile--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@keyframes tile-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tile { animation: none; } }

.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease), opacity .7s var(--ease);
}
.tile:hover img { transform: scale(1.06); }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 12, 10, .62), rgba(12, 12, 10, .05) 55%, transparent);
  opacity: 0; transition: opacity .55s var(--ease);
}
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile__cap {
  position: absolute; inset: auto 0 0; z-index: 2;
  padding: clamp(.85rem, 2vw, 1.35rem);
  color: var(--bone); font-size: .75rem; line-height: 1.45;
  opacity: 0; transform: translateY(6px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.tile__tag {
  display: block; font-size: .5625rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--brass-lt);
  margin-bottom: .3rem;
}
@media (hover: none) {
  .tile::after { opacity: 1; }
  .tile__cap { opacity: 1; transform: none; }
}

.grid-more { display: grid; place-items: center; margin-top: clamp(2rem, 5vh, 3.25rem); }

/* ============================================================
   Behind the walls (dark)
   ============================================================ */
.walls { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 62rem) { .walls { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: center; } }
.walls .h2, .walls .stat__n { color: var(--bone); }
.walls__copy { display: grid; gap: 1.5rem; }
.walls__copy p { color: rgba(250, 248, 243, .74); }
.walls__list { display: grid; gap: 0; margin: .5rem 0 0; padding: 0; list-style: none; }
.walls__list li {
  display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem;
  padding: 1.05rem 0; border-top: 1px solid var(--line-dark);
  font-size: .9375rem; color: rgba(250, 248, 243, .8);
}
.walls__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.walls__list b { font-family: var(--serif); font-size: 1.05rem; font-weight: 400; color: var(--brass-lt); }
.walls__media { display: grid; gap: var(--gutter); grid-template-columns: 1fr 1fr; }
.walls__media figure { margin: 0; overflow: hidden; background: var(--ink-soft); aspect-ratio: 4 / 3; }
.walls__media figure:first-child { grid-column: span 2; aspect-ratio: 16 / 9; }
.walls__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.walls__media figure:hover img { transform: scale(1.05); }

/* ============================================================
   Quote band
   ============================================================ */
.band { position: relative; isolation: isolate; color: var(--bone); overflow: hidden; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 12, 10, .62); }
.band__inner { padding-block: clamp(4.5rem, 13vh, 9rem); text-align: center; display: grid; gap: 1.5rem; justify-items: center; }
.band__q {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.85rem);
  line-height: 1.3; max-width: 38ch; letter-spacing: -.01em;
}

/* ============================================================
   About
   ============================================================ */
.about { display: grid; gap: clamp(2rem, 5vw, 4.5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 62rem) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } }
.about__copy { display: grid; gap: 1.4rem; }
.about__fig { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper); }
.about__fig img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Contact
   ============================================================ */
.contact { display: grid; gap: clamp(2.25rem, 5vw, 4.5rem); grid-template-columns: 1fr; }
@media (min-width: 62rem) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact__title { font-family: var(--serif); font-size: clamp(2.1rem, 1.4rem + 2.9vw, 4rem); line-height: 1.04; letter-spacing: -.02em; }
.contact__title em { font-style: italic; color: var(--brass); }
.contact__rows { display: grid; gap: 0; }
.crow {
  display: grid; grid-template-columns: 1fr; gap: .3rem;
  padding: clamp(1.2rem, 2.5vh, 1.65rem) 0; border-top: 1px solid var(--line);
}
@media (min-width: 34rem) { .crow { grid-template-columns: 7.5rem 1fr; gap: 1.5rem; align-items: baseline; } }
.crow:last-child { border-bottom: 1px solid var(--line); }
.crow__k { font-size: .625rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--stone-dark); }
.crow__v { font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); line-height: 1.4; }
.crow__v a { border-bottom: 1px solid var(--line); transition: border-color .35s var(--ease), color .35s var(--ease); }
.crow__v a:hover { color: var(--brass); border-color: var(--brass); }
.contact__note { margin-top: 1.75rem; font-size: .875rem; color: var(--ink-mute); }

/* ============================================================
   Footer
   ============================================================ */
.ftr { background: var(--ink); color: rgba(250, 248, 243, .62); padding-block: clamp(2.75rem, 6vh, 4rem); font-size: .8125rem; }
.ftr__top { display: flex; flex-wrap: wrap; gap: 1.75rem; justify-content: space-between; align-items: flex-start; }
.ftr .brand { color: var(--bone); }
.ftr__nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.ftr__nav a { font-size: .6875rem; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; transition: color .35s var(--ease); }
.ftr__nav a:hover { color: var(--brass-lt); }
.ftr__bot {
  display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between;
  margin-top: clamp(2rem, 5vh, 3rem); padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark); font-size: .75rem;
}

/* ============================================================
   Lightbox
   ============================================================ */
.lb {
  position: fixed; inset: 0; z-index: 90; display: grid;
  /* minmax(0,1fr): a bare 1fr floors at the image's min-content height, which
     grows the row and pushes the caption off screen. */
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #0a0a08; /* fully opaque so the fixed header cannot show through */
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.lb.is-open { opacity: 1; visibility: visible; }
/* author `display:grid` beats the UA [hidden] rule, so restore it explicitly */
.lb[hidden] { display: none; }
.lb__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem); color: rgba(250, 248, 243, .75); }
.lb__count { font-size: .6875rem; font-weight: 500; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.lb__x { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; color: var(--bone); transition: transform .35s var(--ease), opacity .3s; }
.lb__x:hover { transform: rotate(90deg); }
.lb__stage { position: relative; min-height: 0; --lbpad: clamp(.5rem, 4vw, 4.5rem); }
/* Explicit width/height rather than max-height:100%. A centered grid item does
   not reliably resolve percentage max-height against its grid area, and a
   replaced element does not stretch to top/bottom insets either. Sizing the box
   and letting object-fit letterbox inside it is deterministic. */
.lb__stage img {
  position: absolute; top: 0; height: 100%;
  left: var(--lbpad); width: calc(100% - 2 * var(--lbpad));
  max-width: none; max-height: none;
  object-fit: contain;
  opacity: 0; transition: opacity .35s var(--ease);
}
.lb__stage img.is-ready { opacity: 1; }
.lb__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  display: grid; place-items: center; width: clamp(2.5rem, 5vw, 3.5rem); height: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--bone); background: rgba(250, 248, 243, .09);
  border: 1px solid rgba(250, 248, 243, .18); border-radius: 50%;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.lb__nav:hover { background: rgba(250, 248, 243, .2); }
.lb__nav--prev { left: clamp(.4rem, 1.5vw, 1.25rem); }
.lb__nav--next { right: clamp(.4rem, 1.5vw, 1.25rem); }
.lb__cap {
  padding: 1.1rem clamp(1rem, 3vw, 2rem) clamp(1.25rem, 3vh, 2rem);
  text-align: center; color: rgba(250, 248, 243, .74);
  font-size: .875rem; line-height: 1.6; max-width: 62ch; margin-inline: auto;
}
.lb__tag { display: block; font-size: .5625rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-lt); margin-bottom: .4rem; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   Hero picker (review tool — ?hero=pick)
   ============================================================ */
.picker {
  position: fixed; z-index: 80; left: 50%; bottom: 1rem; translate: -50% 0;
  display: none; gap: .5rem; padding: .6rem;
  background: rgba(10, 10, 8, .82); backdrop-filter: blur(10px);
  border: 1px solid rgba(250, 248, 243, .2); border-radius: 999px;
}
.picker.is-on { display: flex; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 2rem); }
.picker button {
  width: 3.75rem; height: 2.5rem; overflow: hidden; border-radius: 4px;
  border: 2px solid transparent; opacity: .6; transition: opacity .3s, border-color .3s;
}
.picker button img { width: 100%; height: 100%; object-fit: cover; }
.picker button[aria-pressed="true"] { opacity: 1; border-color: var(--brass-lt); }
.picker__l { align-self: center; padding: 0 .6rem; font-size: .5625rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250, 248, 243, .8); }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; top: .5rem; left: .5rem; z-index: 100;
  padding: .6rem 1rem; background: var(--ink); color: var(--bone);
  font-size: .75rem; transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }
