/* ==========================================================================
   Big Yellow Enterprises stylesheet
   Structure: 1 Tokens · 2 Reset · 3 Type · 4 Layout · 5 Components
              6 Header/Nav · 7 Hero · 8 Sections · 9 Gallery · 10 Footer
   ========================================================================== */

/* 1 ─ Tokens ------------------------------------------------------------- */
:root {
  /* Warm paper neutrals, to keep the whole thing from feeling clinical */
  --paper:      #FBF9F5;
  --paper-2:    #F3EFE8;
  --paper-3:    #E9E3D9;

  /* Warm near-black. Never pure #000, which reads harsh against the photography */
  --ink:        #17160F;
  --ink-2:      #3E3B31;
  --muted:      #6F6A5C;

  /* The one accent. Used in hairlines, rules and a single button, never blocks */
  --yellow:     #F0B429;
  --yellow-2:   #D89A05;

  --line:       rgba(23, 22, 15, 0.12);
  --line-soft:  rgba(23, 22, 15, 0.07);
  --line-dark:  rgba(251, 249, 245, 0.16);

  --shadow-sm:  0 1px 2px rgba(23, 22, 15, .05), 0 4px 14px rgba(23, 22, 15, .05);
  --shadow-md:  0 2px 6px rgba(23, 22, 15, .06), 0 18px 40px -12px rgba(23, 22, 15, .18);

  --container:  1240px;
  --gutter:     clamp(1.25rem, 4vw, 3rem);

  --r-sm: 3px;
  --r-md: 6px;

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

  --header-h: 78px;

  /* Fraunces redraws itself as text gets larger: at 70px its automatic optical size
     pushes stroke contrast and the curl on f/j/g to their most theatrical. Holding
     opsz at 24 keeps the warmth without the flourish running away on big headlines.
     Raise toward 60 for more drama, drop toward 9 for the plainest cut. */
  --display-opsz: 24;
}

/* 2 ─ Reset -------------------------------------------------------------- */
*, *::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(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--yellow-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 500;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 3 ─ Type --------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 0, "WONK" 0;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

/* Floors are deliberately low: at 375px a 2.6rem h1 ran to six lines. */
h1 { font-size: clamp(2.15rem, 5.8vw + .5rem, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw + .45rem, 3.1rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.25; }
h4 { font-size: 1.05rem; line-height: 1.3; }

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

.lede {
  font-size: clamp(1.075rem, 1.55vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: clamp(.66rem, 1.4vw, .72rem); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.4rem;
}
.eyebrow::before {
  content: ""; width: clamp(18px, 4vw, 26px); height: 2px;
  background: var(--yellow); flex: none;
}
.eyebrow--light { color: rgba(251, 249, 245, .72); }

.measure { max-width: 64ch; }

/* 4 ─ Layout ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 5.5rem); }

.section--dark {
  background: var(--ink);
  color: var(--paper);
}
.section--dark .lede,
.section--dark p { color: rgba(251, 249, 245, .78); }

.section--paper2 { background: var(--paper-2); }

.section-head {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 860px) {
  .section-head { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .section-head > :last-child { padding-bottom: .5rem; }
}

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

/* 5 ─ Components --------------------------------------------------------- */

/* Buttons */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-sm);
  font-size: .92rem; font-weight: 500; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--accent { --btn-bg: var(--yellow); --btn-fg: var(--ink); --btn-bd: var(--yellow); }
.btn--accent:hover { --btn-bg: var(--yellow-2); --btn-bd: var(--yellow-2); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--paper); --btn-bd: var(--line-dark); }
.btn--ghost-light:hover { --btn-bd: var(--paper); }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
/* Below this width side-by-side buttons wrap to ragged different widths */
@media (max-width: 520px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .btn-row .link { align-self: flex-start; }
}

/* Text link with animated rule */
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 500;
  text-decoration: none; color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-size: 100% 2px; background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 28% 2px; }
.link svg { transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }
.section--dark .link { color: var(--paper); }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
  padding-top: 2.25rem;
  margin-top: 3rem;
}
.stat__num {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 0, "WONK" 0;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem);
  line-height: 1; letter-spacing: -.02em;
  display: block; margin-bottom: .5rem;
}
.stat__label {
  font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.section--dark .stats { border-color: var(--line-dark); }
.section--dark .stat__label { color: rgba(251, 249, 245, .6); }

/* Cards */
.card {
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  height: 100%;
}
.card__media {
  position: relative; overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding-top: 1.4rem; }
.card__body h3 { margin-bottom: .5rem; }
.card__body p { font-size: .95rem; color: var(--muted); margin: 0; }

.card__index {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  color: var(--yellow-2); display: block; margin-bottom: .7rem;
}

.grid-3 {
  display: grid; gap: clamp(1.75rem, 3.5vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.grid-2 {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

/* Numbered process list */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  counter-increment: step;
  display: grid; gap: .75rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--line);
}
.steps .step:last-child { border-bottom: 1px solid var(--line); }
.section--dark .step { border-color: var(--line-dark); }
.section--dark .steps .step:last-child { border-bottom-color: var(--line-dark); }
@media (min-width: 800px) {
  .step { grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
}
.step__num {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 0, "WONK" 0;
  font-size: 1.05rem; color: var(--yellow-2);
  padding-top: .25rem;
}
.step h3 { margin: 0; }
.step p { color: var(--muted); margin: 0; }
.section--dark .step p { color: rgba(251, 249, 245, .72); }

/* Feature list with yellow ticks */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.ticks li {
  position: relative; padding-left: 1.9rem;
  font-size: .97rem; color: var(--ink-2);
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid var(--yellow);
}
.section--dark .ticks li { color: rgba(251, 249, 245, .8); }

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

/* 6 ─ Header / Nav ------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

/* Over-hero state: white text on the photograph */
.header--over { color: var(--paper); }
/* Deliberately a solid fill rather than a blurred backdrop: backdrop-filter on a
   fixed element forces a full-page compositing layer and janks on older mobile. */
.header--solid {
  background: var(--paper);
  border-bottom-color: var(--line);
  color: var(--ink);
  box-shadow: 0 1px 20px rgba(23, 22, 15, .05);
}

/* Two color versions of the same lockup, cross-faded so the logo stays legible
   whether the header is sitting on a photograph or on paper. The dark one stays
   in normal flow so it keeps reserving the space. */
.brand { position: relative; display: inline-flex; align-items: center; text-decoration: none; }
.brand__logo {
  display: block; width: auto;
  height: clamp(34px, 4.4vw, 46px);
  transition: opacity .35s var(--ease);
}
.brand__logo--light {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0;
}
.header--over .brand__logo--dark { opacity: 0; }
.header--over .brand__logo--light { opacity: 1; }

.nav { display: none; }
@media (min-width: 940px) { .nav { display: flex; align-items: center; gap: 2.1rem; } }
.nav a {
  text-decoration: none; font-size: .92rem; font-weight: 500;
  position: relative; padding-block: .35rem;
  opacity: .82; transition: opacity .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--yellow);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav a:hover { opacity: 1; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }

.header__cta { display: none; }
@media (min-width: 940px) { .header__cta { display: inline-flex; padding: .7rem 1.35rem; font-size: .87rem; } }
.header--over .header__cta { --btn-bg: var(--paper); --btn-fg: var(--ink); --btn-bd: var(--paper); }

/* Mobile toggle */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
@media (min-width: 940px) { .nav-toggle { display: none; } }
.nav-toggle span {
  display: block; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--paper);
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
@media (min-width: 940px) { .drawer { display: none; } }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 0, "WONK" 0;
  font-size: 1.75rem; text-decoration: none;
  padding-block: 1rem; border-bottom: 1px solid var(--line-soft);
}
.drawer nav a[aria-current="page"] { color: var(--yellow-2); }
.drawer__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: .75rem; }
.drawer__foot .btn { width: 100%; }

/* 7 ─ Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: flex; align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero--short { min-height: min(62svh, 640px); }

.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(12, 11, 8, .82) 0%, rgba(12, 11, 8, .38) 42%, rgba(12, 11, 8, .30) 70%, rgba(12, 11, 8, .52) 100%);
}
/* Short heroes put their copy mid-frame rather than at the bottom, so the gradient
   above would leave the headline over its lightest band. Flatter and darker here. */
.hero--short .hero__media::after {
  background:
    linear-gradient(to top, rgba(12, 11, 8, .78) 0%, rgba(12, 11, 8, .62) 55%, rgba(12, 11, 8, .58) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--container); margin-inline: auto;
  padding: calc(var(--header-h) + 4rem) var(--gutter) clamp(3.5rem, 8vw, 6rem);
}
.hero h1 { max-width: 17ch; margin-bottom: 1.25rem; }
.hero .lede { color: rgba(251, 249, 245, .88); max-width: 52ch; }
.hero .eyebrow { color: rgba(251, 249, 245, .8); }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(3.5rem, 8vw, 6rem);
  z-index: 1; display: none;
  writing-mode: vertical-rl;
  font-size: .7rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(251, 249, 245, .7); text-decoration: none;
}
@media (min-width: 1100px) { .hero__scroll { display: inline-flex; align-items: center; gap: .9rem; } }
.hero__scroll::after {
  content: ""; width: 1px; height: 54px;
  background: linear-gradient(rgba(251,249,245,.7), rgba(251,249,245,0));
}

/* Page header for interior pages */
.pagehead { padding: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.pagehead h1 { max-width: 18ch; }

/* 8 ─ Sections ----------------------------------------------------------- */

/* Editorial split: text beside a tall image */
.split {
  display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--reverse > :first-child { order: 2; }
}
.split__media {
  border-radius: var(--r-md); overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Service rows on the services page */
.srv {
  display: grid; gap: clamp(1.75rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 900px) {
  .srv { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .srv--reverse > :first-child { order: 2; }
}
.srv__media { border-radius: var(--r-md); overflow: hidden; background: var(--paper-3); aspect-ratio: 4/3; }
.srv__media img { width: 100%; height: 100%; object-fit: cover; }
.srv__body { padding-top: .25rem; }
.srv__body .ticks { margin-top: 1.75rem; }

/* Marquee-free logo/trust strip */
.trust {
  display: flex; flex-wrap: wrap; gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center; justify-content: center;
  padding-block: 1.75rem;
  font-size: .8rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
  border-block: 1px solid var(--line);
}
.trust span { display: inline-flex; align-items: center; gap: .6rem; }
.trust span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--yellow); flex: none;
}

/* CTA band */
.cta-band { position: relative; overflow: hidden; color: var(--paper); }
.cta-band__media { position: absolute; inset: 0; z-index: 0; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(12,11,8,.9) 12%, rgba(12,11,8,.62) 70%, rgba(12,11,8,.45) 100%);
}
.cta-band__inner {
  position: relative; z-index: 1;
  padding-block: clamp(4rem, 9vw, 7rem);
}
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: rgba(251, 249, 245, .8); }

/* Contact page details */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.contact-item { padding-block: 1.5rem; border-top: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-item__label {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: .45rem;
}
.contact-item__value {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: none;
  font-variation-settings: "opsz" var(--display-opsz), "SOFT" 0, "WONK" 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.25; text-decoration: none;
  display: inline-block;
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
a.contact-item__value:hover { background-size: 100% 2px; }
.contact-item p { font-size: .95rem; color: var(--muted); margin: .4rem 0 0; }

/* 9 ─ Gallery ------------------------------------------------------------ */
.filters {
  display: flex; flex-wrap: wrap; gap: .55rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.filter {
  padding: .55rem 1.15rem;
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 100px;
  font-size: .85rem; font-weight: 500; cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}

.gallery {
  display: grid; gap: clamp(.75rem, 1.4vw, 1.15rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative; display: block; padding: 0;
  border: 0; background: var(--paper-3);
  border-radius: var(--r-md); overflow: hidden;
  cursor: zoom-in; aspect-ratio: 4 / 3;
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease), filter .5s var(--ease);
}
.tile:hover img { transform: scale(1.05); }
.tile__cap {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem .95rem .85rem;
  background: linear-gradient(to top, rgba(12,11,8,.78), rgba(12,11,8,0));
  color: var(--paper);
  font-size: .82rem; font-weight: 500;
  text-align: left;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; transform: none; }
.tile.is-hidden { display: none; }

.gallery-empty {
  padding: 3rem 0; color: var(--muted); font-size: .95rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(10, 9, 6, .95);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__fig { margin: 0; max-width: 100%; max-height: 100%; display: grid; gap: 1rem; }
.lightbox__fig img {
  max-width: 100%; max-height: 78svh;
  width: auto; margin-inline: auto;
  object-fit: contain; border-radius: var(--r-sm);
}
.lightbox__cap {
  color: rgba(251, 249, 245, .8);
  font-size: .88rem; text-align: center;
  display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap;
}
.lightbox__cap b { font-weight: 500; color: var(--paper); }

.lb-btn {
  position: absolute; z-index: 2;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: rgba(251, 249, 245, .1); color: var(--paper);
  border: 1px solid rgba(251, 249, 245, .2); border-radius: 50%;
  cursor: pointer;
  transition: background-color .25s var(--ease);
}
.lb-btn:hover { background: rgba(251, 249, 245, .22); }
.lb-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lb-prev  { left: clamp(.5rem, 2vw, 2rem);  top: 50%; transform: translateY(-50%); }
.lb-next  { right: clamp(.5rem, 2vw, 2rem); top: 50%; transform: translateY(-50%); }

/* 10 ─ Footer ------------------------------------------------------------ */
.footer {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem;
}
.footer__top {
  display: grid; gap: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 820px) {
  .footer__top { grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); }
}
.footer__brand .brand { margin-bottom: 1.5rem; }
.footer .brand__logo { height: 54px; }
.footer .brand__logo--dark  { opacity: 0; }
.footer .brand__logo--light { opacity: 1; }
.footer__brand p { color: rgba(251, 249, 245, .68); font-size: .95rem; max-width: 38ch; }

.footer h4 {
  font-family: "Inter", sans-serif;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(251, 249, 245, .5);
  margin-bottom: 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.footer ul a {
  text-decoration: none; font-size: .95rem;
  color: rgba(251, 249, 245, .82);
  transition: color .25s var(--ease);
}
.footer ul a:hover { color: var(--yellow); }

.footer__bottom {
  padding-top: 2rem;
  display: flex; flex-wrap: wrap; gap: .75rem 2rem;
  justify-content: space-between; align-items: center;
  font-size: .8rem; color: rgba(251, 249, 245, .5);
}
.footer__bottom a { color: inherit; }
.footer__legal {
  margin-top: 1.25rem; max-width: 78ch;
  font-size: .78rem; line-height: 1.6;
  color: rgba(251, 249, 245, .42);
}

/* Print ------------------------------------------------------------------ */
@media print {
  .header, .drawer, .lightbox, .hero__scroll, .filters { display: none !important; }
  body { background: #fff; color: #000; }
}
