/* ==========================================================================
   House of B Interiors — public stylesheet
   Warm white dominant · muted forest green accent · gold used sparingly
   ========================================================================== */

:root {
  --warm-white: #FAF9F6;
  --warm-sand:  #F4F2EC;
  --warm-line:  #E6E2D8;
  --forest:      #38523F;
  --forest-deep: #2A3E31;
  --forest-tint: #EDF1ED;
  --gold:        #B99A5B;
  --ink:    #22211E;
  --muted:  #6E6A61;
  --faint:  #9A958A;

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shell: 1280px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

a { color: var(--forest); text-decoration: none; }
a:hover { color: var(--forest-deep); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { margin: 0 0 1.1em; }

::selection { background: var(--forest-tint); color: var(--forest-deep); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* --------------------------------------------------------------- layout -- */

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.shell--narrow { max-width: 820px; }

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section--sand { background: var(--warm-sand); }
.section--tight { padding: clamp(40px, 5vw, 64px) 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--gold); vertical-align: middle; margin-right: 10px;
}

.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { color: var(--muted); margin-bottom: 0; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }

.lede { font-size: 1.1rem; color: var(--muted); }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px;
  border: 1px solid var(--forest);
  background: var(--forest);
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: #fff; }

.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #fff; }

.btn--light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--forest-deep); }

.btn--block { width: 100%; justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.text-link .arrow { transition: transform .3s var(--ease); }
.text-link:hover .arrow { transform: translateX(5px); }

/* ------------------------------------------------------------ site head -- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--warm-line); }

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

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.28rem; letter-spacing: 0.01em; }
.brand__sub {
  font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint);
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  position: relative;
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px;
  background: var(--forest); transition: right .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.nav a.is-active { color: var(--forest); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions .btn { padding: 11px 22px; font-size: 0.72rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none;
  cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px; background: var(--ink); position: relative;
  transition: background .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1px; background: var(--ink);
  transition: transform .3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--warm-line);
  background: var(--warm-white);
  padding: 8px var(--gutter) 28px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block; padding: 15px 0; border-bottom: 1px solid var(--warm-line);
  font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.mobile-nav .btn { margin-top: 22px; }

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

.hero { position: relative; background: var(--warm-sand); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner {
  position: relative; z-index: 2;
  min-height: clamp(460px, 78vh, 720px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 60px; padding-bottom: 60px;
  max-width: 760px;
}

/* With a photograph the hero stacks rather than overlays. The picture is shown
   whole — never cropped, never scrimmed — and the copy sits in a sand band
   beneath it, set as two editorial columns: title left, supporting copy and
   calls to action right. Type can therefore never land on the artwork. */
.hero--has-media {
  display: flex; flex-direction: column;
  background: var(--warm-sand);
  border-bottom: 1px solid var(--warm-line);
}
.hero--has-media .hero__media {
  position: relative; inset: auto; width: 100%;
  background: var(--warm-sand);
}
.hero--has-media .hero__media img {
  width: 100%; height: auto;
  max-height: none;
  object-fit: contain;
}
.hero--has-media .hero__inner {
  min-height: 0; max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas:
    "eyebrow ."
    "title   aside";
  column-gap: clamp(32px, 5vw, 96px);
  align-items: end;
  padding-top: clamp(38px, 4.6vw, 68px);
  padding-bottom: clamp(44px, 5.4vw, 82px);
}
.hero--has-media .eyebrow { grid-area: eyebrow; }
.hero--has-media h1 { grid-area: title; margin-bottom: 0; }
.hero--has-media .hero__aside { grid-area: aside; padding-bottom: 6px; }
.hero--has-media .hero__sub { max-width: 420px; margin-bottom: 26px; }

.hero h1 { margin-bottom: 20px; }
.hero__sub { font-size: 1.12rem; color: var(--muted); max-width: 540px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Below the two-column threshold the band simply stacks. The picture keeps its
   natural proportions here too, so a wide mural is read whole on a phone. */
@media (max-width: 900px) {
  .hero--has-media .hero__inner {
    display: block;
    padding-top: clamp(30px, 6vw, 44px);
    padding-bottom: clamp(40px, 8vw, 60px);
  }
  .hero--has-media h1 { margin-bottom: 18px; }
  .hero--has-media .hero__aside { padding-bottom: 0; }
  .hero--has-media .hero__sub { max-width: 540px; margin-bottom: 28px; }
}

.hero--plain { background: var(--warm-sand); border-bottom: 1px solid var(--warm-line); }
.hero--plain .hero__inner { min-height: 0; padding: clamp(56px, 8vw, 96px) 0; }

/* ------------------------------------------------------------ category -- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.category-card {
  position: relative; display: block; overflow: hidden;
  background: var(--warm-sand); color: #fff; border-radius: 2px;
}
.category-card:hover { color: #fff; }
.category-card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.category-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.category-card:hover .category-card__media img { transform: scale(1.05); }
.category-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,28,25,0) 42%, rgba(24,28,25,.72) 100%);
}
.category-card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 26px 24px;
}
.category-card__name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.category-card__meta {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,.78); margin-top: 6px;
  display: flex; align-items: center; gap: 8px;
}
.category-card__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); }

.category-card--empty .category-card__media {
  background: linear-gradient(140deg, #E9E6DC 0%, #DDDACE 100%);
}
.category-card--empty .category-card__media::after {
  background: linear-gradient(180deg, rgba(24,28,25,0) 40%, rgba(24,28,25,.55) 100%);
}

/* --------------------------------------------------------------- filter -- */

.filter-bar {
  position: sticky; top: 76px; z-index: 40;
  background: rgba(250,249,246,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--warm-line);
  padding: 14px 0;
}
.filter-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row + .filter-row { margin-top: 10px; }

.chip {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 17px;
  border: 1px solid var(--warm-line);
  border-radius: 100px;
  background: #fff;
  color: var(--muted);
  font-size: 0.78rem; letter-spacing: 0.05em;
  white-space: nowrap;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { border-color: var(--forest); color: var(--forest); }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.chip__count { font-size: 0.68rem; opacity: .7; }
.chip.is-active .chip__count { opacity: .85; }

.filter-label {
  flex: 0 0 auto; align-self: center;
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); padding-right: 4px;
}

/* ----------------------------------------------------------------- work -- */

.work-count {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 26px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(14px, 1.8vw, 24px);
}

.tile {
  position: relative; display: block; overflow: hidden;
  background: var(--warm-sand); border-radius: 2px; cursor: pointer;
  border: 0; padding: 0; width: 100%; text-align: left; font: inherit; color: inherit;
}
.tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }

.tile__veil {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(24,28,25,0) 45%, rgba(24,28,25,.62) 100%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.tile:hover .tile__veil, .tile:focus-visible .tile__veil { opacity: 1; }

.tile__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 20px 22px; color: #fff;
  transform: translateY(6px); opacity: 0;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.tile:hover .tile__caption, .tile:focus-visible .tile__caption { opacity: 1; transform: none; }
.tile__title { font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.tile__sub { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: .8; }

.tile__tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: rgba(250,249,246,.94); color: var(--forest);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 100px;
}

.tile__play {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.tile__play span {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(250,249,246,.9);
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.tile:hover .tile__play span { transform: scale(1.08); background: #fff; }
.tile__play svg { fill: var(--forest); margin-left: 3px; }

.tile--tall .tile__media { aspect-ratio: 3 / 4; }
.tile--wide { grid-column: span 2; }
.tile--wide .tile__media { aspect-ratio: 16 / 9; }
@media (max-width: 760px) { .tile--wide { grid-column: span 1; } }

/* ------------------------------------------------------- before / after -- */

.ba-card { background: var(--warm-sand); border-radius: 2px; overflow: hidden; }
.ba-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 20px 14px;
}
.ba-card__title { font-family: var(--serif); font-size: 1.15rem; }
.ba-card__meta { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.ba {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  user-select: none; touch-action: pan-y; cursor: ew-resize;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; background: rgba(250,249,246,.95); transform: translateX(-1px); z-index: 3;
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border-radius: 50%; background: rgba(250,249,246,.95);
  box-shadow: 0 1px 6px rgba(0,0,0,.16);
}
.ba__handle::before {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; z-index: 2;
  transform: translate(-50%, -50%); color: var(--forest);
  font-size: 15px; letter-spacing: 2px;
}
.ba__label {
  position: absolute; bottom: 14px; z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(24,28,25,.55); color: #fff; padding: 5px 11px; border-radius: 100px;
}
.ba__label--before { left: 14px; }
.ba__label--after  { right: 14px; }

/* --------------------------------------------------------------- strips -- */

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(24px, 3vw, 44px); }
.step__num {
  font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1;
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px; border-top: 1px solid var(--warm-line); padding-top: 32px;
}
.stat__value { font-family: var(--serif); font-size: 2.3rem; line-height: 1; }
.stat__label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }

.cta-band { background: var(--forest); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 520px; margin: 0 auto 28px; }
.cta-band .eyebrow { color: rgba(255,255,255,.7); }
.cta-band .eyebrow::before { background: var(--gold); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- forms -- */

.form-card {
  background: #fff; border: 1px solid var(--warm-line); border-radius: 3px;
  padding: clamp(24px, 4vw, 40px);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--warm-line); border-radius: 2px;
  background: var(--warm-white); color: var(--ink);
  font-family: inherit; font-size: 0.98rem;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--forest); background: #fff; outline: none;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field__error { color: #A5432A; font-size: 0.82rem; margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C98C79; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.notice { padding: 15px 18px; border-radius: 2px; margin-bottom: 24px; font-size: 0.95rem; }
.notice--error { background: #FBEDEA; border: 1px solid #E7CFC8; color: #8A3A26; }
.notice--ok    { background: var(--forest-tint); border: 1px solid #CBDACD; color: var(--forest-deep); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 68px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--warm-line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .k {
  display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 4px;
}
.contact-list .v { font-size: 1.02rem; color: var(--ink); }
.contact-list a.v:hover { color: var(--forest); }

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

.site-footer { background: var(--forest); color: rgba(255,255,255,.72); padding: clamp(48px, 6vw, 76px) 0 28px; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(24px, 4vw, 56px); padding-bottom: 42px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand__name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer-brand p { margin-top: 12px; font-size: 0.94rem; max-width: 280px; }

.footer-title {
  font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 16px;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; font-size: 0.94rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,.5);
}

.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.18);
  transition: transform .25s var(--ease);
}
.whatsapp-fab:hover { transform: translateY(-2px); color: #fff; }
.whatsapp-fab svg { width: 27px; height: 27px; fill: currentColor; }

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

.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 23, 21, .94);
  display: none; align-items: center; justify-content: center;
  padding: 56px 20px;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { max-width: min(1200px, 94vw); max-height: 84vh; position: relative; }
.lightbox__stage img { max-width: 100%; max-height: 84vh; width: auto; object-fit: contain; }
.lightbox__stage iframe, .lightbox__stage video {
  width: min(1100px, 92vw); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000;
}
.lightbox__caption {
  position: absolute; left: 0; right: 0; bottom: -42px; text-align: center;
  color: rgba(255,255,255,.72); font-size: 0.82rem; letter-spacing: 0.06em;
}
.lightbox__btn {
  position: absolute; z-index: 3;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; transition: background .2s var(--ease);
}
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev  { top: 50%; left: 18px; transform: translateY(-50%); }
.lightbox__next  { top: 50%; right: 18px; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }
  .lightbox__btn { width: 40px; height: 40px; }
}

body.no-scroll { overflow: hidden; }

/* ----------------------------------------------------------- empty state -- */

.empty {
  text-align: center; padding: clamp(48px, 8vw, 90px) 20px;
  border: 1px dashed var(--warm-line); border-radius: 3px; background: var(--warm-sand);
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--muted); margin: 0 auto 22px; max-width: 420px; }

/* ------------------------------------------------------------- reveal --- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

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

/* ---------------------------------------------------------- breakpoints -- */

@media (max-width: 960px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .filter-bar { top: 68px; }
  .site-header__inner { min-height: 68px; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  .category-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .brand img { height: 34px; }
}
