/* White Furniture Company -- public site styles
 * (Admin pages still use css/style.css)
 */

:root {
  --ink: #1d1a16;
  --ink-2: #3a342d;
  --paper: #faf7f2;
  --cream: #f1ebe1;
  --line: #e2d9cb;
  --muted: #6b6157;
  --brass: #a8772e;
  --brass-dark: #7f5920;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29,26,22,.06), 0 8px 24px rgba(29,26,22,.08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--brass);
  background: var(--brass); color: #fff; font: 600 .95rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-small { padding: .6em 1.1em; font-size: .85rem; }
.btn-block { width: 100%; }
.text-link { font-weight: 600; text-decoration: none; color: var(--brass-dark); }
.text-link:hover { text-decoration: underline; }

.eyebrow { font: 700 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: .9em; }
.eyebrow-light { color: #e9c88e; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink); color: #d9d1c4; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .dot { margin: 0 .5em; opacity: .5; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,247,242,.94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand img { width: 220px; height: auto; }

.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  display: block; padding: .55em .8em; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
}
.site-nav a:hover { background: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--brass-dark); box-shadow: inset 0 -2px 0 var(--brass); border-radius: 0; }
.site-nav .nav-cta a { background: var(--ink); color: #fff; padding: .6em 1.2em; margin-left: 6px; }
.site-nav .nav-cta a:hover { background: var(--brass-dark); }
.site-nav .nav-cta a[aria-current="page"] { box-shadow: none; border-radius: 999px; color: #fff; }

.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background .25s; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; left: 0; }
.menu-bars::before { top: -6px; } .menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  /* backdrop-filter would trap the fixed drawer inside the header */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 0 0 0 auto; top: 0; width: min(360px, 88vw); background: var(--paper);
    box-shadow: -10px 0 40px rgba(0,0,0,.18); padding: 96px 24px 24px; transform: translateX(105%);
    transition: transform .3s ease, visibility 0s linear .3s; z-index: 40; overflow-y: auto; visibility: hidden;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { font-size: 1.1rem; padding: .85em 1em; border-radius: 10px; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brass); border-radius: 0 10px 10px 0; background: var(--cream); }
  .site-nav .nav-cta a { margin: 12px 0 0; text-align: center; }
  .menu-toggle { position: relative; z-index: 45; }
  body.nav-open { overflow: hidden; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
}
@media (max-width: 640px) {
  .hero-shade { background: linear-gradient(180deg, rgba(20,16,12,.35) 0%, rgba(20,16,12,.6) 40%, rgba(20,16,12,.88) 100%); }
  .proof strong { font-size: 1.1rem; }
  .topbar-inner > span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .brand img { width: 170px; }
  .header-inner { min-height: 66px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.15) 0%, rgba(20,16,12,.35) 45%, rgba(20,16,12,.85) 100%); }
.hero-content { position: relative; padding-top: 120px; padding-bottom: 72px; }
.hero h1 { max-width: 15ch; color: #fff; margin-bottom: .35em; }
.hero-lede { max-width: 54ch; font-size: 1.15rem; color: #efe8dc; margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Proof strip ---------- */
.proof { background: var(--cream); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { padding: 26px 18px; border-left: 1px solid var(--line); }
.proof-grid > div:first-child { border-left: 0; }
.proof strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.proof span { color: var(--muted); font-size: .92rem; }
@media (max-width: 820px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div:nth-child(3) { border-left: 0; }
  .proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--ink); color: #efe8dc; }
.section-dark h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p:last-child { color: var(--muted); }
.section-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head-row h2 { margin-bottom: 0; }
.small-h { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8em; }
.h1-sub, .h2-sub { display: block; font-family: var(--sans); font-size: .38em; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-dark); margin-top: .6em; }
.h2-sub { display: inline; font-size: .5em; margin-left: .4em; letter-spacing: .08em; }
@media (max-width: 640px) { .section { padding: 60px 0; } .section-tight { padding: 36px 0; } }

/* ---------- Room tiles ---------- */
.room-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.room-tile { position: relative; grid-column: span 2; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--cream); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.room-tile:nth-child(1), .room-tile:nth-child(2) { grid-column: span 3; aspect-ratio: 4 / 3; }
.room-grid[data-count="4"] .room-tile, .room-grid[data-count="2"] .room-tile { grid-column: span 3; aspect-ratio: 4 / 3; }
.room-grid[data-count="3"] .room-tile, .room-grid[data-count="1"] .room-tile { grid-column: span 2; aspect-ratio: 4 / 3.4; }
.room-grid[data-count="1"] .room-tile { grid-column: span 6; aspect-ratio: 21 / 9; }
.room-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room-tile:hover img { transform: scale(1.04); }
.room-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(20,16,12,.8)); }
.room-tile-label { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.room-tile-name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.room-tile-count { font-size: .88rem; font-weight: 600; opacity: .9; white-space: nowrap; }
@media (max-width: 900px) {
  .room-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .room-grid .room-tile, .room-grid .room-tile:nth-child(1), .room-grid .room-tile:nth-child(2) { grid-column: span 1; aspect-ratio: 1; }
  .room-grid .room-tile:nth-child(1) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .room-grid[data-count="4"] .room-tile:nth-child(1), .room-grid[data-count="2"] .room-tile:nth-child(1) { grid-column: span 1; aspect-ratio: 1; }
  .room-tile-name { font-size: 1.25rem; }
  .room-tile-label { left: 14px; right: 14px; bottom: 12px; flex-direction: column; gap: 0; }
}

/* ---------- Photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.photo-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.photo-card[hidden] { display: none; }
.photo-btn { display: block; padding: 0; margin: 0; border: 0; background: var(--cream); cursor: zoom-in; aspect-ratio: 4 / 3; overflow: hidden; }
.photo-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.photo-btn:hover img { transform: scale(1.04); }
.photo-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; font-size: .88rem; }
.photo-brand { font-weight: 700; }
.photo-room { color: var(--muted); text-decoration: none; }
.photo-room:hover { color: var(--brass-dark); }
@media (max-width: 560px) { .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .photo-meta { padding: 8px 10px; font-size: .8rem; flex-direction: column; align-items: flex-start; gap: 0; } }

/* ---------- Filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .5em 1em; font: 600 .88rem var(--sans); color: var(--ink); cursor: pointer; }
.chip span { color: var(--muted); font-weight: 500; margin-left: .25em; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on span { color: #cfc6b8; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--cream); border-bottom: 1px solid var(--line); padding: 44px 0 40px; }
.page-hero h1 { margin-bottom: .3em; }
.page-lede { max-width: 66ch; color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs span[aria-hidden] { margin: 0 .4em; }

/* ---------- CTA card ---------- */
.cta-card { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ink); color: #efe8dc; border-radius: var(--radius); padding: 32px 36px; }
.cta-card h2 { color: #fff; font-size: 1.6rem; margin-bottom: .2em; }
.cta-card p { margin: 0; }
.cta-card-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.cta-card .btn-ghost:hover { background: #fff; color: var(--ink); }
.empty { padding: 40px; text-align: center; background: var(--white); border-radius: var(--radius); }

.more-rooms { display: flex; flex-wrap: wrap; gap: 10px; }
.more-rooms a { display: inline-block; padding: .7em 1.2em; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 600; }
.more-rooms a:hover { border-color: var(--ink); }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.story-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.story-copy p { color: var(--ink-2); }
.letter p { font-size: 1.08rem; }
.signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem !important; color: var(--ink) !important; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Designer ---------- */
.section-design { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.designer-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.designer-grid-compact { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.designer-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.designer-copy { min-width: 0; }
.designer-copy p { color: var(--ink-2); max-width: 62ch; }
.designer-title { font-weight: 700; color: var(--brass-dark) !important; margin-top: -.4em; }
.designer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4em; }
.help-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.help-list li { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: var(--ink-2); }
.help-list strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); margin-bottom: .3em; }
.photo-caption { margin: 10px 0 0; font-size: .88rem; color: var(--muted); text-align: center; }
.story-img img[width="1200"] { aspect-ratio: 4 / 5; object-fit: cover; max-height: 640px; }
.topbar a[href*="design"] { color: #e9c88e; }
@media (max-width: 860px) {
  .designer-grid, .designer-grid-compact { grid-template-columns: 1fr; gap: 28px; }
  .designer-photo { max-width: 460px; }
  .help-list { grid-template-columns: 1fr; }
}

/* ---------- Enclave ---------- */
.enclave { background: radial-gradient(1200px 400px at 20% 0%, #3a2f22 0%, var(--ink) 60%); }
.enclave-inner { max-width: 760px; text-align: center; }
.enclave-inner p { font-size: 1.1rem; }
.enclave .btn { margin-top: .6em; }

/* ---------- Brands ---------- */
.brand-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-cloud a { display: inline-flex; align-items: center; gap: .5em; padding: .65em 1.15em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.brand-cloud a:hover { border-color: var(--brass); color: var(--brass-dark); }
.brand-cloud a span { background: var(--cream); color: var(--muted); border-radius: 999px; padding: 0 .55em; font-size: .8rem; }
.brand-block + .brand-block { border-top: 1px solid var(--line); }
.brand-block { scroll-margin-top: 100px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.info-card:nth-child(3) { grid-column: span 2; }
.info-card p { margin-bottom: .4em; }
.big-phone { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; text-decoration: none; color: var(--ink); }
.map-wrap { grid-column: span 2; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 10; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-form-card { background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.contact-form-card h2 { margin-bottom: .2em; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: .8em .95em; font: 16px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(168,119,46,.18); }
.field .invalid, .field [aria-invalid="true"] { border-color: #b4372f; background: #fdf3f2; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .contact-info { grid-template-columns: 1fr; } .info-card:nth-child(3), .map-wrap { grid-column: span 1; } .field-row { grid-template-columns: 1fr; gap: 0; } .contact-form-card { padding: 24px 20px; } }

.loading { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(250,247,242,.85); align-items: center; justify-content: center; }
.loading.active { display: flex; }
.loading-box { display: flex; align-items: center; gap: 12px; font-weight: 700; background: var(--white); padding: 18px 26px; border-radius: 999px; box-shadow: var(--shadow); }
.spinner { width: 20px; height: 20px; border: 3px solid var(--line); border-top-color: var(--brass); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.notice { position: fixed; left: 50%; top: 110px; transform: translateX(-50%); z-index: 95; width: min(480px, calc(100% - 32px)); background: var(--white); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 28px 32px; text-align: center; border-top: 4px solid var(--brass); }
.notice h2 { font-size: 1.5rem; }
.notice p { margin: 0; color: var(--muted); }
.notice-close { position: absolute; top: 8px; right: 12px; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* ---------- Visit band + footer ---------- */
.visit-band { background: var(--brass); color: #fff; }
.visit-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.visit-band h2 { color: #fff; margin: 0; max-width: 24ch; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.visit-band .eyebrow { color: #fbe9c9; }
.visit-band-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.visit-band .btn { background: var(--ink); border-color: var(--ink); }
.visit-band .btn:hover { background: #000; border-color: #000; }

.site-footer { background: var(--ink); color: #cbc2b4; font-size: .95rem; padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 220px; margin-bottom: 16px; }
.footer-h { font-family: var(--sans); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.site-footer address { font-style: normal; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links li { margin-bottom: .45em; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: .3em 0; border-bottom: 1px dashed rgba(127,114,98,.35); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; }
.footer-fb { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: span 2; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer-brand { grid-column: span 1; } }

/* ---------- Lightbox ---------- */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,12,10,.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(15,12,10,.94); }
.lightbox figure { margin: 0; max-width: min(1200px, 92vw); display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: 76vh; width: auto; border-radius: 8px; }
.lightbox figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; width: 100%; padding: 16px 4px 0; }
.lb-caption { font-family: var(--serif); font-size: 1.25rem; }
.lb-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.lb-close, .lb-prev, .lb-next { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } .lightbox img { max-height: 62vh; } .lightbox figcaption { justify-content: center; text-align: center; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
