/* ==========================================================================
   Campbell Shepard Photography — shared stylesheet
   Brand tokens from 30 - CSP/Templates/_brand-config.md (canonical).
   Monochromatic: ink / cream / white only. No gold, no fourth color.
   ========================================================================== */

:root {
  --ink: #1A1A1A;
  --cream: #EDE8DC;
  --white: #FFFFFF;
  --surface: #F5F1E8;
  --surface-white: #FBF8F0;
  --ink-soft: #6B6862;
  --ink-faint: #9A958A;
  --rule: #D8D2C4;
  --rule-strong: #C4BBA6;

  --font-display: "Playfair Display", Georgia, serif;
  --font-label: "Montserrat", Helvetica, sans-serif;
  --font-body: "EB Garamond", Georgia, serif;

  --space-section: clamp(4.5rem, 10vw, 8rem);
  --space-block: clamp(2.25rem, 5vw, 3.75rem);
  --max-width: 1200px;
  --max-prose: 42rem;
  --header-h: 4.75rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 1rem; }
p { margin: 0 0 1.25rem; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.on-ink :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible,
.review-band :focus-visible,
.lightbox :focus-visible {
  outline-color: var(--cream);
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.75rem 1.25rem; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---- Type helpers ---- */
.eyebrow {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep, #8A6D3B); /* readable gold on cream */
  margin-bottom: 1.25rem;
}
.on-ink .eyebrow, .cta-band .eyebrow, .review-band .eyebrow, .site-footer .eyebrow {
  color: var(--gold, #C9A96E); /* brighter gold carries on dark bands */
}
.display-xl { font-size: clamp(2.25rem, 5.5vw, 4rem); }
.display-lg { font-size: clamp(1.9rem, 4vw, 3rem); }
.display-md { font-size: clamp(1.5rem, 3vw, 2.125rem); }
.lede { font-size: clamp(1.2rem, 2vw, 1.375rem); line-height: 1.6; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.prose { max-width: var(--max-prose); }
.prose-center { max-width: var(--max-prose); margin-left: auto; margin-right: auto; }

/* ---- Layout ---- */
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: var(--space-section) 0; }
.section-tight { padding: calc(var(--space-section) * 0.6) 0; }

/* ---- Brand rules + dividers ---- */
.rule-bracket {
  position: relative;
  height: 1px;
  background: var(--rule-strong);
  border: 0;
  margin: var(--space-block) 0;
}
.rule-bracket::before, .rule-bracket::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: var(--rule-strong);
}
.rule-bracket::before { left: 0; }
.rule-bracket::after { right: 0; }

.divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: var(--space-block) auto;
  max-width: 22rem;
  color: var(--rule-strong);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule-strong);
}
.divider span { font-size: 0.625rem; line-height: 1; }
.on-ink .divider, .divider.light { color: var(--ink-faint); }
.on-ink .divider::before, .on-ink .divider::after,
.divider.light::before, .divider.light::after { background: rgba(237, 232, 220, 0.3); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05rem 2.4rem;
  border: 1px solid var(--ink);
  transition: background-color 0.25s ease, color 0.25s ease;
  text-align: center;
}
.btn-fill { background: var(--ink); color: var(--cream); }
.btn-fill:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
/* Light variants for dark bands */
.btn-fill-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-fill-light:hover { background: transparent; color: var(--cream); }
.btn-outline-light { border-color: var(--cream); color: var(--cream); }
.btn-outline-light:hover { background: var(--cream); color: var(--ink); }

.text-link {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.35rem;
  transition: border-color 0.25s ease;
}
.text-link:hover { border-color: var(--ink); }

/* ---- Identity lockup ---- */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}
.badge {
  flex: none;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid currentColor;
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.badge-cs {
  font-family: var(--font-display);
  font-size: 0.95rem; /* three characters (CSP) inside the 52px badge */
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
}
.badge-rule { width: 16px; height: 1px; background: currentColor; opacity: 0.6; }
.badge-est {
  font-family: var(--font-label);
  font-size: 0.34rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1;
}
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.wordmark-sub {
  font-family: var(--font-label);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.52em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  white-space: nowrap;
  /* Centered under the name; negative margin cancels the trailing letter-space */
  text-align: center;
  margin-right: -0.52em;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 232, 220, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}
.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); }
.site-nav a:not(.btn) {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-nav a:not(.btn):hover { border-color: var(--ink); }
.site-nav a[aria-current="page"] { border-color: var(--ink); }
.site-nav .btn { padding: 0.58rem 1.15rem; font-size: 0.66rem; letter-spacing: 0.14em; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s 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); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem 0 1.5rem;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule); background: var(--surface); }
  .site-nav .btn { margin: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 0; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--ink);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.72) 0%, rgba(26, 26, 26, 0.25) 45%, rgba(26, 26, 26, 0.18) 100%);
}
.hero-content { padding: clamp(3.5rem, 8vw, 6.5rem) 0; max-width: 46rem; margin-left: auto; margin-right: auto; text-align: center; } /* centered per Cam 2026-07-02 */
.hero h1 {
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.hero .lede { color: rgba(255, 255, 255, 0.92); max-width: 36rem; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; justify-content: center; }
.hero .btn-fill { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.hero .btn-fill:hover { background: transparent; color: var(--cream); }
.hero .btn-outline { border-color: var(--cream); color: var(--cream); }
.hero .btn-outline:hover { background: var(--cream); color: var(--ink); }

/* Page hero (interior pages).
   NOTE: longhand on purpose — the old shorthand (padding: X 0 Y) zeroed out the
   horizontal padding inherited from .wrap on the same element, putting header text
   on the screen edge at viewports under ~1280px (found on Cam's vertical monitor, 7/4). */
.page-head {
  padding-top: calc(var(--space-section) * 0.85);
  padding-bottom: calc(var(--space-section) * 0.55);
}
.page-head h1 { text-wrap: balance; }

/* ---- Bio ---- */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.bio-grid figure { margin: 0; }
.bio-grid img { width: 100%; max-width: 20rem; }
.bio-grid figcaption {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 0.9rem;
}
@media (max-width: 820px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-grid figure { max-width: 26rem; margin-inline: auto; text-align: center; }
  .bio-grid img { margin-inline: auto; }
  .bio-grid .eyebrow,
  .bio-grid .display-lg { text-align: center; }
}

/* ---- Featured strip / galleries ---- */
.masonry { columns: 3; column-gap: 1.25rem; }
.masonry > * { break-inside: avoid; margin: 0 0 1.25rem; }
@media (max-width: 1000px) { .masonry { columns: 2; } }
@media (max-width: 540px) { .masonry { columns: 1; } }

.gallery figure { position: relative; }
.gallery a {
  display: block;
  overflow: hidden;
}
.gallery img {
  width: 100%;
  transition: transform 0.6s ease, opacity 0.6s ease;
  background: var(--surface);
}
.gallery a:hover img { transform: scale(1.025); }

.gallery-section { padding-bottom: calc(var(--space-section) * 0.7); }
.gallery-head { max-width: var(--max-prose); margin-bottom: var(--space-block); }
.gallery-cta { text-align: center; margin-top: 2.5rem; }

/* ---- Cards (services teaser + services page) ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--surface-white);
  border: 1px solid var(--rule);
  padding: 2.25rem 1.9rem;
  display: flex;
  flex-direction: column;
}
.card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.card p { font-size: 1.05rem; color: var(--ink-soft); }
.card .price {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: auto 0 0;
  padding-top: 1.25rem;
}
.card .text-link { margin-top: 1.1rem; align-self: flex-start; }

/* Service rows (services.html) */
.service {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(1.75rem, 4vw, 4rem);
  padding: var(--space-block) 0;
  border-top: 1px solid var(--rule);
}
.service:last-of-type { border-bottom: 1px solid var(--rule); }
.service h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 0.4rem; }
.service .price-line {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.8;
}
.service .includes {
  font-size: 1rem;
  color: var(--ink-faint);
  font-style: italic;
}
.service .btn { margin-top: 0.75rem; }

/* Portrait tier list (flat, bookable tiers within the Portraits card) */
.tier-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}
.tier-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}
.tier-list li:last-child { border-bottom: 1px solid var(--rule); }
.tier-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-right: 0.5rem;
}
.tier-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  vertical-align: middle;
}
.tier-detail {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
@media (max-width: 820px) {
  .service { grid-template-columns: 1fr; gap: 1.25rem; }
}

/* Steps strip */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  counter-reset: step;
}
.step { counter-increment: step; }
.step::before {
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--rule-strong);
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.3rem; }
.step p { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---- Testimonials ---- */
.testimonials { columns: 2; column-gap: 1.5rem; }
@media (max-width: 820px) { .testimonials { columns: 1; } }
.testimonial {
  break-inside: avoid;
  background: var(--surface-white);
  border: 1px solid var(--rule);
  padding: 2.4rem 2.2rem 2rem;
  margin: 0 0 1.5rem;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.5;
  color: var(--rule-strong);
  display: block;
  margin-bottom: 1.2rem;
}
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { font-size: 1.0625rem; }
.testimonial cite {
  display: block;
  font-family: var(--font-label);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-top: 1.4rem;
  color: var(--ink-soft);
}
.testimonial cite::before { content: "\25C6\00a0\00a0"; font-size: 0.5rem; vertical-align: 2px; color: var(--rule-strong); }

/* ---- Dark bands (review ask + page-end CTA) ---- */
.review-band, .cta-band {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.review-band .eyebrow, .cta-band .eyebrow { color: var(--ink-faint); }
.review-band h2, .cta-band h2 { color: var(--white); text-wrap: balance; }
.review-band p, .cta-band p { color: rgba(237, 232, 220, 0.85); }
.cta-band .btn { margin-top: 1.25rem; }

/* ---- FAQ ---- */
.faq { max-width: 50rem; margin: 0 auto; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.6rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-label);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink-faint);
  flex: none;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0.25rem 1.6rem; max-width: 44rem; color: var(--ink-soft); margin: 0; }

/* ---- Forms ---- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.form-field { margin-bottom: 1.75rem; }
.form-field label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.form-field label .optional { color: var(--ink-faint); letter-spacing: 0.16em; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--surface-white);
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231A1A1A' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-field textarea { min-height: 10rem; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form-note { font-size: 0.95rem; color: var(--ink-faint); }

.contact-aside {
  border: 1px solid var(--rule);
  background: var(--surface-white);
  padding: 2.25rem 2rem;
}
.contact-aside h2 { font-size: 1.35rem; }
.contact-aside ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.contact-aside li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); }
.contact-aside li:last-child { border-bottom: 0; }
.contact-aside a { text-decoration: none; border-bottom: 1px solid var(--rule-strong); padding-bottom: 1px; }
.contact-aside a:hover { border-color: var(--ink); }
.contact-aside .label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.2rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: calc(var(--space-section) * 0.75) 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .lockup { color: var(--cream); }
.site-footer .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(237, 232, 220, 0.75);
  margin-top: 1.5rem;
}
.footer-col h2 {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.7rem; font-size: 1.05rem; }
.footer-col a { text-decoration: none; border-bottom: 1px solid rgba(237, 232, 220, 0.25); padding-bottom: 1px; transition: border-color 0.25s ease; }
.footer-col a:hover { border-color: var(--cream); }
.footer-bottom {
  margin-top: calc(var(--space-block) * 1.2);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(237, 232, 220, 0.16);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 20, 19, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
/* Loading state: dim the image and show a spinner while the full-size frame decodes */
.lightbox img { transition: opacity 0.25s ease; }
.lightbox.is-loading img { opacity: 0.15; }
.lightbox.is-loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 999px;
  border: 2px solid rgba(237, 232, 220, 0.25);
  border-top-color: var(--cream);
  animation: lb-spin 0.8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .lightbox.is-loading::before { animation-duration: 2s; }
}
.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 86vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-btn {
  position: absolute;
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.lightbox-btn:hover { opacity: 1; }
.lightbox-close { top: 1rem; right: 1.25rem; font-size: 0.8rem; }
.lightbox-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--ink-faint);
}
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 3rem; transform: none; }
}

/* ---- Before/after edit slider (index.html) ---- */
.ba-slider {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y; /* vertical scroll stays native; horizontal drag moves the divider */
  background: var(--surface);
}
.ba-slider img { pointer-events: none; }
.ba-after { width: 100%; }
/* ---- TAIL RECONSTRUCTED 2026-07-02 (original truncated on disk; restore from Git
   history if the exact original is preferred). Everything below this line is a
   rebuild of the lost rules plus v1 build-out additions (gold accent, prints,
   about, category galleries). ---- */
.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0); /* JS updates the right inset as the handle moves */
  overflow: hidden;
}
.ba-before-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Simulates a flat RAW while the placeholder pair is in use.
     DELETE this filter line when the real RAW/final exports are swapped in. */
  filter: saturate(0.55) contrast(0.82) brightness(1.06);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--cream);
  cursor: ew-resize;
}
.ba-handle:focus-visible { outline-offset: 6px; }
.ba-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.35);
}
.ba-grip::before, .ba-grip::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  transform: translateY(-50%);
}
.ba-grip::before { left: 7px; border-right-color: var(--ink); }
.ba-grip::after { right: 7px; border-left-color: var(--ink); }
.ba-label {
  position: absolute;
  bottom: 1rem;
  font-family: var(--font-label);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(26, 26, 26, 0.55);
  padding: 0.45rem 0.8rem;
  pointer-events: none;
}
.ba-label-before { left: 1rem; }
.ba-label-after { right: 1rem; }

/* ---- Reveal on scroll (guarded so content is never hidden without JS) ---- */
html:not(.no-js) .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html:not(.no-js) .reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Frederick locations strip ---- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
@media (max-width: 820px) { .locations-grid { grid-template-columns: 1fr; } }
.location-card { margin: 0; background: var(--surface-white); border: 1px solid var(--rule); }
.location-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.location-card figcaption { padding: 1.5rem 1.6rem 1.75rem; }
.location-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.location-card p { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* ---- Find-your-session quiz ---- */
.quiz {
  max-width: 46rem;
  margin: 0 auto;
  background: var(--surface-white);
  border: 1px solid var(--rule);
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}
.quiz-count {
  display: block;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.quiz-q { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 1.75rem; }
.quiz-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}
.quiz-option { padding: 0.85rem 1.6rem; }
.quiz-result-name { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.5rem; }
.quiz-result-price {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.quiz-result p { color: var(--ink-soft); }
.quiz-result .btn { margin-top: 0.75rem; }
.quiz-restart {
  display: block;
  margin: 1.5rem auto 0;
  font-family: var(--font-label);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.25rem;
  width: fit-content;
}
.quiz-restart:hover { color: var(--ink); border-color: var(--ink); }

/* ---- Gold accent (canonical brand config 2026-06-07: dividers, rule ends,
        eyebrows, and single accent words in display headings; never body text) ---- */
:root { --gold: #C9A96E; --gold-deep: #8A6D3B; }
/* One italic gold word per headline (Northstar-inspired, 2026-07-02) */
.accent { font-style: italic; color: var(--gold-deep); }
.on-ink .accent, .cta-band .accent, .review-band .accent, .hero .accent { color: var(--gold); }
.divider { color: var(--gold); }
.rule-bracket::before, .rule-bracket::after { background: var(--gold); }
.step::before { color: var(--gold); }
.testimonial cite::before { color: var(--gold); }
.on-ink .divider, .divider.light { color: var(--gold); }

/* ---- Prints (prints.html) ---- */
.print-listing {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: var(--space-block) 0;
  border-top: 1px solid var(--rule);
}
.print-listing:last-of-type { border-bottom: 1px solid var(--rule); }
.print-listing:nth-of-type(even) .print-media { order: 2; }
@media (max-width: 820px) {
  .print-listing { grid-template-columns: 1fr; }
  .print-listing:nth-of-type(even) .print-media { order: 0; }
}
.print-media { margin: 0; }
.print-media a { display: block; background: var(--surface-white); border: 1px solid var(--rule); padding: clamp(1rem, 2.5vw, 1.75rem); }
.print-media img { width: 100%; }
.print-media a:hover img { opacity: 0.94; }
.print-info h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.4rem; }
.print-info .print-meta {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.print-info p { color: var(--ink-soft); }
.print-info .btn { margin-top: 0.75rem; }

/* ---- About page ---- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid figure { margin: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 820px) { .about-grid figure { position: static; max-width: 28rem; } }
.about-grid figcaption {
  font-family: var(--font-label);
  font-size: 0.625rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-soft); /* was --ink-faint: too light to read (Cam, 7/2) */
  margin-top: 0.9rem;
}

/* ===== 2026-07-02 second round: Northstar-inspired lifts + services rebuild ===== */

/* Bio figcaption legibility (same fix as about) */
.bio-grid figcaption { color: var(--ink-soft); }

/* Mid-page CTA card: eyebrow + line on the left, buttons on the right */
.cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  background: var(--surface-white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold);
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  margin: var(--space-block) 0;
}
.cta-card .eyebrow { margin-bottom: 0.5rem; }
.cta-card h2, .cta-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0; }
.cta-card .cta-card-copy { max-width: 34rem; }
.cta-card .cta-card-copy p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 1.02rem; }
.cta-card .cta-card-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Real-estate direct-book band (homepage + services): a wide, deliberate CTA */
.re-band {
  background: var(--ink);
  color: var(--cream);
  border: 0;
  border-left: 3px solid var(--gold);
}
.re-band h2, .re-band h3 { color: var(--white); }
.re-band .cta-card-copy p { color: rgba(237, 232, 220, 0.82); }
.re-band .eyebrow { color: var(--gold); }

/* Featured pull-quote above the testimonial wall */
.pull-quote {
  max-width: 46rem;
  margin: 0 auto var(--space-block);
  text-align: center;
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  line-height: 1.35;
  text-wrap: balance;
}
.pull-quote cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font-label);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pull-quote cite::before { content: "\25C6\00a0\00a0"; font-size: 0.5rem; vertical-align: 2px; color: var(--gold); }

/* Portrait tier cards: three across, Standard elevated in the middle */
.tier-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
  margin: 1.5rem 0 1.25rem;
}
@media (max-width: 820px) { .tier-cards { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--surface-white);
  border: 1px solid var(--rule);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
}
.tier-card h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.tier-card .tier-price {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
.tier-card .tier-detail { display: block; font-size: 0.98rem; color: var(--ink-soft); margin: 0; }
.tier-card-featured {
  border: 2px solid var(--gold);
  box-shadow: 0 14px 40px rgba(138, 109, 59, 0.18);
  padding: 2.9rem 1.6rem;
  position: relative;
}
.tier-card-featured h3 { font-size: 1.55rem; }
.tier-card-featured .tier-price { font-size: 0.85rem; color: var(--gold-deep); }
@media (min-width: 821px) { .tier-card-featured { transform: scale(1.09); z-index: 1; } }
.tier-card-featured .tier-tag {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  border: 0;
  padding: 0.3rem 0.85rem;
}

/* Brand trio (about page): three across with captions */
.trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 820px) { .trio-grid { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; } }
.trio-grid figure { margin: 0; }
.trio-grid a { display: block; overflow: hidden; }
.trio-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.6s ease; }
.trio-grid a:hover img { transform: scale(1.025); }
.trio-grid figcaption {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* Multi-step inquiry form (Northstar-inspired, vanilla JS; no-JS shows all steps) */
.msf-progress {
  font-family: var(--font-label);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.5rem;
}
html:not(.no-js) .msf .msf-step[hidden] { display: none; }
.msf .msf-step { margin-bottom: 0.5rem; }
.msf-nav { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.msf-back {
  font-family: var(--font-label);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule-strong);
}
.msf-back:hover { color: var(--ink); border-color: var(--ink); }
.msf-hint { font-size: 0.9rem; color: var(--ink-faint); margin: 0.75rem 0 0; }
.msf-error { color: #8a3b2e; font-size: 0.95rem; margin: 0.5rem 0 0; display: none; }
.msf-step.has-error .msf-error { display: block; }
.optin-row { display: flex; gap: 0.8rem; align-items: flex-start; margin: 1.25rem 0; }
.optin-row input[type="checkbox"] {
  width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; flex: none;
  appearance: auto; -webkit-appearance: checkbox; accent-color: var(--ink);
}
.optin-row label { font-size: 1rem; color: var(--ink-soft); }

/* No-JS: multi-step degrades to a normal stacked form */
html.no-js .msf-nav button.msf-next { display: none; }
html.no-js .msf-progress { display: none; }

/* ---- Homepage featured grid (2026-07-06): uniform crops instead of ragged masonry ---- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 820px) { .featured-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .featured-grid { grid-template-columns: 1fr; } }
.featured-grid figure { margin: 0; }
.featured-grid a { display: block; overflow: hidden; }
.featured-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s ease;
  background: var(--surface);
}
.featured-grid a:hover img { transform: scale(1.03); }

/* ---- Footer "now booking" strip (added 2026-07-04) ---- */
.footer-cta {
  margin-top: calc(var(--space-block) * 1.1);
  padding-top: 1.9rem;
  border-top: 1px solid rgba(237, 232, 220, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
}
.footer-cta-copy { max-width: 30rem; }
.footer-cta-copy .eyebrow { margin-bottom: 0.4rem; }
.footer-cta-copy p { margin: 0; color: rgba(237, 232, 220, 0.85); font-size: 1.02rem; }
.footer-cta-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.footer-cta-actions .btn { padding: 0.85rem 1.6rem; }
.site-footer .footer-bottom a {
  text-decoration: none;
  border-bottom: 1px solid rgba(237, 232, 220, 0.25);
  padding-bottom: 1px;
}
.site-footer .footer-bottom a:hover { border-bottom-color: var(--cream); }

/* Homepage jump-to section nav */
.jump-nav { border-bottom: 1px solid var(--rule); }
.jump-nav-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.85rem 1.75rem; padding: 1.1rem 0; }
.jump-nav .text-link { white-space: nowrap; }
/* Offset anchor jumps so the sticky header doesn't cover the target heading */
[id] { scroll-margin-top: calc(var(--header-h) + 1.25rem); }

/* Bay Photo logo in the homepage prints callout */
.bayphoto-badge { height: 42px; width: auto; margin: 1.75rem auto 0; }
