/* House of Renewal Restoration — site styles
   Layout concept: a quiet linen page, one full-bleed photograph per page opening,
   generous serif headings echoing the logo, and hairline rules taken from the
   "— RESTORATION —" lockup. Colors come from the house itself: walnut, sage siding, claret trim.
   Each <section> is a self-contained block so it maps 1:1 to a WordPress block pattern later. */

:root {
  --linen: #F4EFE6;      /* page background */
  --parchment: #E9E1D2;  /* alternate section background */
  --walnut: #2B251F;     /* text + dark sections */
  --umber: #6A5A49;      /* secondary text */
  --sage: #5A6149;       /* brand green (business cards, siding) */
  --claret: #7C2C2C;     /* porch-trim red, used sparingly */
  --cream: #F7F2EA;      /* text on dark/photo */
  --rule: rgba(43, 37, 31, .18);

  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.6rem + 2.2vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1180px;
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--linen);
  color: var(--walnut);
  font-family: var(--body);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 .5em;
  text-wrap: balance;
  letter-spacing: -.005em;
}
h1 { font-size: var(--step-4); font-weight: 400; }
h2 { font-size: var(--step-3); font-weight: 400; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
em, .serif-italic { font-family: var(--display); font-style: italic; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--claret); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--walnut); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 780px; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--parchment { background: var(--parchment); }
.section--dark { background: var(--walnut); color: var(--cream); }
.section--sage { background: var(--sage); color: var(--cream); }

.eyebrow {
  font-family: var(--body);
  font-weight: 400;
  font-size: var(--step--1);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--umber);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.eyebrow--center { justify-content: center; }
.eyebrow--center::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; flex: none; }
.section--dark .eyebrow, .section--sage .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: rgba(247, 242, 234, .82); }

.lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.65; color: var(--umber); }
.section--dark .lede, .section--sage .lede { color: rgba(247, 242, 234, .85); }
.measure { max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }

.grid-2 { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr; align-items: center; }
.grid-2 > * { min-width: 0; }
@media (min-width: 880px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-2--wide-left { grid-template-columns: 1.15fr .85fr; }
  .grid-2--wide-right { grid-template-columns: .85fr 1.15fr; }
  .grid-2--top { align-items: start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px;
  font-family: var(--body); font-weight: 400; font-size: .8125rem;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--walnut); color: var(--walnut); background: transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--walnut); color: var(--cream); }
.btn--solid { background: var(--walnut); color: var(--cream); }
.btn--solid:hover { background: var(--sage); border-color: var(--sage); }
.btn--light { border-color: rgba(247, 242, 234, .8); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--walnut); border-color: var(--cream); }
.btn--light-solid { background: var(--cream); color: var(--walnut); border-color: var(--cream); }
.btn--light-solid:hover { background: transparent; color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.text-link {
  font-weight: 400; font-size: .8125rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px;
  display: inline-flex; gap: 10px; align-items: center;
}
.text-link:hover { color: var(--claret); }
.section--dark .text-link:hover, .section--sage .text-link:hover { color: var(--cream); opacity: .8; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(244, 239, 230, .96);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2vw, 30px); }
.nav a {
  text-decoration: none; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 400;
  padding-block: 6px; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; white-space: nowrap;
}
.nav a:hover { border-color: var(--walnut); }
.nav a[aria-current="page"] { border-color: var(--claret); color: var(--claret); }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 0;
  font: 400 .75rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--walnut); cursor: pointer;
}
.menu-toggle .bars { width: 24px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s, top .25s; }
.menu-toggle .bars::before { top: 1px; }
.menu-toggle .bars::after { top: 9px; }
.menu-open .menu-toggle .bars::before { top: 5px; transform: rotate(45deg); }
.menu-open .menu-toggle .bars::after { top: 5px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
  background: var(--linen); padding: 28px var(--gutter) 40px; overflow-y: auto;
}
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--rule); }
.mobile-nav a { display: block; padding: 16px 0; font-family: var(--display); font-size: 1.7rem; text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--claret); }
.mobile-nav .mobile-contact { margin-top: 28px; font-size: .95rem; color: var(--umber); display: grid; gap: 6px; }
.mobile-nav .mobile-contact a { font-family: var(--body); font-size: 1rem; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1080px) {
  .nav { display: block; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .brand img { height: 44px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: var(--cream);
  min-height: min(88vh, 860px);
  display: flex; align-items: flex-end;
  isolation: isolate; overflow: hidden;
}
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero picture img { object-position: 50% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(27, 22, 18, .25) 0%, rgba(27, 22, 18, .05) 30%, rgba(27, 22, 18, .55) 62%, rgba(27, 22, 18, .88) 100%);
}
.hero .wrap { padding-block: 120px clamp(48px, 8vw, 96px); }
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero h1 em { font-weight: 400; }
.hero p:not(.eyebrow) { max-width: 46ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: rgba(247, 242, 234, .9); margin-bottom: 2rem; }
.hero-mark { width: 64px; margin-bottom: 26px; opacity: .92; }
@media (max-width: 700px) { .hero-mark { display: none; } .hero .wrap { padding-top: 200px; } }

/* Visitor band */
.visitor-band { background: var(--sage); color: var(--cream); }
.visitor-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 20px; }
.visitor-band p { margin: 0; font-family: var(--display); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); font-style: italic; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: var(--cream); isolation: isolate; overflow: hidden;
  min-height: clamp(360px, 58vh, 560px); display: flex; align-items: flex-end;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27, 22, 18, .35), rgba(27, 22, 18, .72)); }
.page-hero .wrap { padding-block: 96px clamp(40px, 6vw, 72px); }
.page-hero h1 { margin-bottom: .2em; }
.page-hero p:not(.eyebrow):not(.photo-note) { max-width: 52ch; color: rgba(247, 242, 234, .9); font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); margin: 0; }
.page-hero .photo-note { position: absolute; right: var(--gutter); bottom: 14px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 242, 234, .7); margin: 0; }

/* ---------- Intro / signature ---------- */
.signature { margin-top: 2rem; font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--umber); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.fact { padding: 28px 18px 26px 0; border-bottom: 1px solid var(--rule); }
.fact:nth-child(odd) { border-right: 1px solid var(--rule); }
.fact:nth-child(even) { padding-left: 18px; }
.fact .num { font-family: var(--display); font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); line-height: 1; display: block; margin-bottom: 10px; color: var(--walnut); font-variant-numeric: lining-nums; }
.fact .label { font-size: .9rem; color: var(--umber); line-height: 1.5; display: block; }
@media (min-width: 880px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact, .fact:nth-child(even) { padding: 32px 24px 30px; border-right: 1px solid var(--rule); }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; }
}

/* Then / Now */
.then-now { display: grid; gap: clamp(10px, 2vw, 18px); grid-template-columns: 1fr 1fr; }
.then-now figure { margin: 0; position: relative; }
.then-now img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.then-now figcaption {
  position: absolute; left: 10px; top: 10px; background: var(--linen); color: var(--walnut);
  font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; padding: 7px 12px; font-weight: 400;
}

/* Services list */
.service-list { list-style: none; margin-top: clamp(32px, 5vw, 56px) !important; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
.service-list li { border-bottom: 1px solid var(--rule); padding: 18px 0; display: flex; gap: 18px; align-items: baseline; font-family: var(--display); font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem); line-height: 1.3; }
.service-list li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--claret); transform: rotate(45deg) translateY(-3px); flex: none; }
@media (min-width: 760px) { .service-list { grid-template-columns: 1fr 1fr; column-gap: 56px; } }

/* Service detail cards */
.services-detail { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
.service { padding: 34px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 8px; align-content: start; }
.service h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); margin: 0; }
.service p { color: var(--umber); margin: 0; max-width: 58ch; }
@media (min-width: 880px) {
  .services-detail { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid rgba(247, 242, 234, .3); padding-top: 22px; }
.steps li::before { content: counter(step, upper-roman) "."; font-family: var(--display); font-style: italic; font-size: 1.6rem; display: block; margin-bottom: 8px; color: rgba(247, 242, 234, .75); }
.steps h3 { font-size: 1.5rem; margin-bottom: .35em; }
.steps p { color: rgba(247, 242, 234, .82); font-size: .98rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; } }

/* Legacy teaser */
.legacy-teaser { display: grid; gap: 14px; grid-template-columns: 1fr; }
.legacy-teaser a { position: relative; display: block; overflow: hidden; color: var(--cream); text-decoration: none; }
.legacy-teaser img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .8s ease; }
.legacy-teaser a:hover img { transform: scale(1.04); }
.legacy-teaser span { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 18px; background: linear-gradient(180deg, transparent, rgba(27, 22, 18, .8)); font-family: var(--display); font-size: 1.45rem; }
.legacy-teaser small { display: block; font-family: var(--body); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
@media (min-width: 720px) { .legacy-teaser { grid-template-columns: repeat(3, 1fr); } }

/* Projects grid */
.projects { display: grid; gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .projects { grid-template-columns: repeat(3, 1fr); } }
.project { background: none; border: 0; padding: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; display: block; width: 100%; }
.project .frame { overflow: hidden; position: relative; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s ease; }
.project:hover img { transform: scale(1.04); }
.project .count { position: absolute; right: 12px; bottom: 12px; background: rgba(27, 22, 18, .72); color: var(--cream); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; padding: 6px 10px; }
.project h3 { font-size: 1.65rem; margin: 18px 0 2px; }
.project .loc { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--umber); }
.project .view { display: inline-block; margin-top: 10px; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* Gallery (masonry via columns) */
.gallery { columns: 1; column-gap: 14px; }
@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1000px) { .gallery { columns: 3; } }
.gallery figure { margin: 0 0 14px; break-inside: avoid; }
.gallery button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.gallery img { width: 100%; transition: opacity .3s; }
.gallery button:hover img { opacity: .9; }
.gallery figcaption { font-size: .85rem; color: var(--umber); padding-top: 8px; line-height: 1.45; }

/* Process row */
.process-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .process-row { grid-template-columns: 1.1fr 1fr 1fr; } }
.process-row figure { margin: 0; }
.process-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.process-row figcaption { font-size: .85rem; color: rgba(247, 242, 234, .8); padding-top: 10px; line-height: 1.45; }
.process-row button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* Notes list (restoration notes) */
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.notes li { padding: 18px 0 18px 34px; border-bottom: 1px solid var(--rule); position: relative; }
.notes li::before { content: ""; position: absolute; left: 4px; top: 29px; width: 16px; height: 1px; background: var(--claret); }

/* Quote */
.quote { margin: 0; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.7rem); line-height: 1.3; text-wrap: balance; }
.quote figcaption { margin-top: 26px; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.quote-mark { display: block; font-family: var(--display); font-size: 5rem; line-height: .5; height: 38px; opacity: .45; }

/* Press */
.press { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 880px) { .press { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.press-title { font-family: var(--display); font-size: clamp(3rem, 2.4rem + 3vw, 5.2rem); line-height: .9; margin: 0 0 .3em; font-weight: 500; letter-spacing: -.01em; }
.press-title small { display: block; margin-top: .35em; font-size: .38em; font-style: italic; font-weight: 400; color: var(--umber); }
.press-credit { font-size: .85rem; color: var(--umber); }

/* Image block */
.img-frame { position: relative; margin: 0; }
.img-frame img { width: 100%; }
.img-frame figcaption { font-size: .85rem; color: var(--umber); padding-top: 10px; }
.img-frame--offset::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--claret); z-index: -1; opacity: .5; }
.img-frame--offset { isolation: isolate; margin-right: 22px; margin-bottom: 22px; }

/* Values */
.values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.values li { font-family: var(--display); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-style: italic; padding: 0 22px; position: relative; }
.values li + li::before { content: "·"; position: absolute; left: -4px; opacity: .6; font-style: normal; }

/* Illustration section */
.illustration { margin: 0; }
.illustration img { width: 100%; max-width: 640px; margin-inline: auto; }

/* Closing */
.closing blockquote { margin: 0 auto 2.2rem; max-width: 34ch; font-family: var(--display); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.3; font-weight: 400; text-wrap: balance; }

/* Contact */
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.contact-list li { border-bottom: 1px solid var(--rule); padding: 18px 0; display: grid; gap: 2px; }
.contact-list .k { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--umber); }
.contact-list .v { font-family: var(--display); font-size: clamp(1.3rem, 1.2rem + .5vw, 1.6rem); word-break: break-word; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact-list a:hover { border-color: var(--claret); color: var(--claret); }

.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--umber); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: 300 1rem/1.5 var(--body); color: var(--walnut);
  background: var(--cream); border: 1px solid var(--rule); border-radius: 0; padding: 13px 14px;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--walnut) 50%), linear-gradient(135deg, var(--walnut) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--walnut); }
.form-note { font-size: .88rem; color: var(--umber); }
.form-status { font-size: .95rem; padding: 14px 16px; background: var(--parchment); border-left: 2px solid var(--sage); }

/* ---------- Footer ---------- */
.site-footer { background: var(--walnut); color: rgba(247, 242, 234, .85); padding-block: 72px 32px; font-size: .95rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.footer-grid > * { min-width: 0; }
@media (min-width: 880px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }
.footer-logo { width: 220px; margin-bottom: 20px; }
.site-footer h4 { font-family: var(--body); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; color: rgba(247, 242, 234, .6); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(247, 242, 234, .16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .78rem; color: rgba(247, 242, 234, .55); }
.footer-bottom p { margin: 0; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20, 16, 13, .96); color: var(--cream); display: grid; grid-template-rows: auto 1fr auto; }
.lightbox[hidden] { display: none !important; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(14px + env(safe-area-inset-top, 0px)) 18px 14px; gap: 16px; }
.lb-title { font-family: var(--display); font-size: 1.3rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-count { font-size: .75rem; letter-spacing: .2em; color: rgba(247, 242, 234, .7); flex: none; }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 12px; }
.lb-stage img { max-height: 100%; max-width: 100%; object-fit: contain; }
.lb-cap { text-align: center; padding: 12px 18px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: rgba(247, 242, 234, .8); min-height: 48px; }
.lb-btn { background: none; border: 1px solid rgba(247, 242, 234, .35); color: var(--cream); width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; flex: none; }
.lb-btn:hover { background: rgba(247, 242, 234, .12); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(20, 16, 13, .5); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

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