/* ---------------------------------------------------------------------
   BY MONSIEUR — homepage rebuild

   Fonts: all self-hosted via @font-face below, no Google Fonts request.
   --font-heading and --font-body are both Gilroy (Joe's own license,
   files supplied by Gary) — Light/Medium/ExtraBold, the three weights
   licensed — matching the live site, which also sets body copy in
   Gilroy Light. Body's base font-weight is pinned to 300 rather than
   400: per the CSS font-matching spec, an exact-400 request checks 500
   before falling back below it, and 500 (Medium) exists here, so an
   unpinned 400 would silently render body copy in Medium instead of
   Light. --font-display is Quicksand (free, SIL OFL), matching the live
   site's nav — only weight 400 is ever used (see `.primary-nav a`), so
   that's the only cut embedded. --font-button is Questrial (free, SIL
   OFL) — kept as a deliberate exception to the Gilroy body swap above,
   on the client's call that Gilroy read worse on button-style controls
   (bio CTA, RSVP, contact/RSVP submit, gallery filters, Load More) than
   it does on running text. Any new button-style control should use
   --font-button too, not --font-heading or --font-body.

   --font-accent is EB Garamond (free, SIL OFL — the open lookalike for
   Garamond, same reasoning as the old Manrope-for-Gilroy placeholder),
   used deliberately against hard rule 6's "serif-free" — a sporadic
   luxury accent on quotes (.bio-quote p, .pull-quote-text p,
   .aj-quote blockquote p) and the About Joe teaser's
   #design/#luxury/#craftsmanship/#local tags (.about-joe h3, sized larger
   than the quotes so it reads as a label), and the testimonial quotes
   (.review-slide blockquote p — these were Gilroy until the client asked
   for Garamond), all italic 400 — only the italic axis is ever used here,
   no upright cut is needed. The About page's quote carries both
   .pull-quote-text and its own .aj-quote rules; `.aj-quote blockquote p`
   (one class + two types) outranks `.pull-quote-text p` (one class + one
   type) regardless of file order. It's scoped to blockquote p, not every
   p, because the band's overlaid photo caption is a <p> too and would
   otherwise turn Garamond italic.
   --------------------------------------------------------------------- */

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy-light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/gilroy-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('../fonts/quicksand-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Questrial';
  src: url('../fonts/questrial-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('../fonts/eb-garamond-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --color-ink: #000000;
  --color-paper: #ffffff;
  --color-paper-soft: #f5f4f1;
  --color-line: #e2e0da;
  --color-muted: #6b6a66;
  --font-display: 'Quicksand', sans-serif;
  --font-heading: 'Gilroy', sans-serif;
  --font-body: 'Gilroy', sans-serif;
  --font-button: 'Questrial', sans-serif;
  --font-accent: 'EB Garamond', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1400px;
  --page-padding: 4vw;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.flash-messages { background: var(--color-ink); color: var(--color-paper); text-align: center; padding: .6rem 1rem; }
.flash { margin: 0; font-size: .9rem; }

/* On the homepage the header is fixed and site.js offsets it below the banner
   (--banner-offset); position + z-index above .site-header's 10 keep the banner
   on top anyway while the header slides in/out, so its link stays clickable. */
.site-banner { position: relative; z-index: 11; background: var(--color-accent, var(--color-ink)); color: var(--color-paper); text-align: center; padding: .6rem 1rem; }
.site-banner p { margin: 0; font-size: .85rem; }
.site-banner a { color: inherit; text-decoration: underline; margin-left: .5rem; }

/* Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem 1.5rem;
  padding: 2.25rem var(--page-padding);
  background: var(--color-ink);
  transform: translateY(0);
  transition: transform .3s ease, background-color .3s ease;
}
.site-header.header-hidden { transform: translateY(-100%); }

body.has-transparent-header .site-header {
  position: fixed;
  top: var(--banner-offset, 0px);
  left: 0;
  right: 0;
  background: transparent;
}
body.has-transparent-header .site-header.header-scrolled { background: var(--color-ink); }
body.has-transparent-header .site-header:not(.header-scrolled) .dropdown { background: transparent; }

.hamburger {
  display: none;
  grid-column: 3;
  justify-self: end;
  z-index: 30;
  width: 32px;
  height: 22px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger span:not(.visually-hidden) {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-paper);
  transition: transform .25s ease, opacity .2s ease;
}
.site-header.nav-open .hamburger span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
.site-header.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.site-header.nav-open .hamburger span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }

.primary-nav { justify-self: start; }
.primary-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  margin: 0;
  padding: 0;
}

.primary-nav a,
.primary-nav button {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: .01em;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0 0 .15rem;
  cursor: pointer;
  color: rgba(255, 255, 255, .79);
}
.primary-nav a:hover,
.primary-nav button:hover { color: var(--color-paper); }
.primary-nav a[aria-current="page"] {
  color: var(--color-paper);
  border-bottom-color: rgba(255, 255, 255, .79);
}

.primary-nav .has-dropdown { position: relative; }
.primary-nav .dropdown {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0 .5rem;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 12rem;
  background: var(--color-ink);
  display: none;
  z-index: 20;
}
.primary-nav .dropdown li { padding: 0; }
.primary-nav .dropdown a {
  display: block;
  padding: .5rem 0;
  border-bottom: none;
  white-space: nowrap;
}
.primary-nav .has-dropdown:hover .dropdown,
.primary-nav .has-dropdown:focus-within .dropdown,
.primary-nav .has-dropdown.is-open .dropdown { display: block; }

.primary-nav.nav-overflow-flat .has-dropdown,
.primary-nav.nav-overflow-flat .dropdown {
  display: contents;
}
.primary-nav.nav-overflow-flat .dropdown-toggle { display: none; }
.primary-nav.nav-overflow-flat .dropdown a { padding: 0 0 .15rem; white-space: normal; }

.wordmark {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  z-index: 30;
}
.wordmark img { width: 280px; height: auto; }

.social-links { display: flex; align-items: center; gap: 1.1rem; }
.social-links a { display: flex; color: rgba(255, 255, 255, .79); }
.social-links a:hover { color: var(--color-paper); }
.social-links svg { width: 22px; height: 22px; }
.social-links--bar { grid-column: 3; justify-self: end; }
.social-links--in-nav { display: none; }
.social-links--in-nav svg { width: 26px; height: 26px; }

body.no-scroll { overflow: hidden; }

/* Mobile nav ------------------------------------------------------------- */

@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr auto; grid-template-rows: auto; padding: .55rem clamp(1.25rem, 5vw, 2.5rem); }
  .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .wordmark img { width: clamp(130px, 36vw, 180px); }
  .hamburger { display: flex; grid-row: 1; }
  .social-links--bar { display: none; }

  .primary-nav {
    display: none;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 20;
    background: var(--color-ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    padding: 6rem 1.5rem 3rem;
  }
  .site-header.nav-open .primary-nav { display: flex; }

  .primary-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
  }
  .primary-nav ul > li {
    opacity: 0;
    animation: nav-item-in .45s ease forwards;
  }
  .primary-nav ul > li:nth-child(1) { animation-delay: .05s; }
  .primary-nav ul > li:nth-child(2) { animation-delay: .12s; }
  .primary-nav ul > li:nth-child(3) { animation-delay: .19s; }
  .primary-nav ul > li:nth-child(4) { animation-delay: .26s; }

  .primary-nav a, .primary-nav button { font-size: 1.9rem; }
  .primary-nav .has-dropdown { position: static; }
  .primary-nav .dropdown {
    position: static;
    display: none;
    border: none;
    background: none;
    text-align: center;
    margin-top: 1rem;
    min-width: 0;
  }
  .primary-nav .dropdown a { font-size: 1.2rem; padding: .3rem 0; }
  .primary-nav.nav-overflow-flat .dropdown a {
    font-size: 1.9rem;
    padding: 0;
    opacity: 0;
    animation: nav-item-in .45s ease forwards;
    animation-delay: .33s;
  }

  .social-links--in-nav {
    display: flex;
    gap: 1.5rem;
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: nav-social-in .45s ease forwards;
    animation-delay: .32s;
  }
}

@keyframes nav-item-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes nav-social-in {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Hero ------------------------------------------------------------------ */

.hero-video {
  max-width: none;
  background: var(--color-ink);
  padding: 0;
  text-align: center;
}
.hero-video-frame { position: relative; }
/* The hero fills exactly one screen, whatever its shape (the transparent header
   sits on top of it). --hero-offset is the announcement banner's height, set by
   site.js, so the banner doesn't push the caption/controls below the fold. svh,
   not vh, so a mobile browser's address bar doesn't hide the bottom edge; the vh
   line is the fallback for browsers without svh. min-height keeps the heading,
   CTAs and controls from colliding on a very short (landscape phone) screen. */
.hero-video video {
  display: block;
  width: 100%;
  height: calc(100vh - var(--hero-offset, 0px));
  height: calc(100svh - var(--hero-offset, 0px));
  min-height: 30rem;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.hero-video-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, .45) 100%);
  pointer-events: none;
}
/* Three rows (1fr auto 1fr) so the heading stays dead centre on screen however
   far below it the CTAs sit — they live in the bottom row. */
.hero-center {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  pointer-events: none;
}
.hero-center a { pointer-events: auto; }
.hero-heading-overlay {
  margin: 0;
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.3;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}
/* Hero CTAs: one outlined button + one quiet text link, deliberately not two
   equal buttons (the button is the action, the link doubles as the scroll cue). */
.hero-heading-overlay { grid-row: 2; }
.hero-ctas {
  grid-row: 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(3rem, 10svh, 7rem);
}
.hero-cta {
  display: inline-block;
  padding: .95rem 2.25rem;
  border: 1px solid rgba(255, 255, 255, .85);
  background: rgba(0, 0, 0, .18);
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .25s ease, color .25s ease;
}
.hero-cta:hover, .hero-cta:focus-visible { background: var(--color-paper); color: var(--color-ink); }
.hero-secondary {
  color: var(--color-paper);
  font-size: 1rem;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.hero-secondary span { display: inline-block; margin-left: .2rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-secondary span { animation: hero-nudge 2.4s ease-in-out infinite; }
}
@keyframes hero-nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(3px); }
}

.hero-video-overlay-bottom {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: .5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .6rem;
}
.hero-video-caption {
  margin: 0;
  color: #fff;
  font-size: .78rem;
  text-align: right;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.hero-video-caption a { color: #fff; text-decoration: underline; }
.hero-video-controls {
  display: flex;
  gap: .6rem;
}
.hero-video-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, .38);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.hero-video-btn:hover { background: rgba(0, 0, 0, .58); }
.hero-video-btn .icon-play, .hero-video-btn .icon-unmuted { display: none; }
.hero-video-btn.is-paused .icon-pause, .hero-video-btn.is-unmuted .icon-muted { display: none; }
.hero-video-btn.is-paused .icon-play, .hero-video-btn.is-unmuted .icon-unmuted { display: block; }
.media-placeholder { max-width: var(--container); margin: 0 auto; }
.media-placeholder--wide img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

@media (max-width: 720px) {
  .media-placeholder--wide img { aspect-ratio: 4 / 5; }
}
.media-placeholder__label {
  color: #b9b7b2;
  font-size: .78rem;
  margin: .75rem auto 0;
  max-width: 40em;
  padding: 0 1rem;
}
/* Generic section rhythm ------------------------------------------------ */

main > section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--page-padding);
}

section h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-align: left;
  margin: 0 0 .6rem;
}

/* Bio --------------------------------------------------------------------- */

.bio {
  display: grid;
  grid-template-columns: minmax(240px, 460px) minmax(240px, 480px);
  justify-content: center;
  gap: clamp(2rem, 8vw, 7rem);
  align-items: start;
}
.bio-photo { margin: 0; position: relative; }
.bio-photo img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; display: block; }
/* Photo credit in the bottom right corner, also used by the About Joe intro portrait. */
.bio-photo figcaption,
.aj-intro-photo figcaption {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: .5rem;
  margin: 0;
  font-size: .75rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.bio-photo figcaption a,
.aj-intro-photo figcaption a { color: #fff; text-decoration: underline; }
.bio-quote {
  margin: 0 0 1.25rem;
}
.bio-content .bio-quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.45rem, 2.7vw, 1.85rem);
  line-height: 1.3;
  margin: 0;
}
.bio p { font-size: 1rem; line-height: 1.9; margin: 0 0 1rem; color: var(--color-ink); }
.bio-content .bio-cta { margin: 2.5rem 0 0; }
.bio-content .bio-cta a {
  display: inline-block;
  background: var(--color-ink);
  color: var(--color-paper);
  text-decoration: none;
  text-align: center;
  padding: .85rem 1.5rem;
  font-family: var(--font-button);
  font-weight: 400;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.bio-content .bio-cta a:hover { background: #333; }
.bio-cta a { text-decoration: underline; }

@media (max-width: 720px) {
  .bio { grid-template-columns: minmax(0, 1fr); }
  .bio-content .bio-cta a { white-space: normal; }
}

/* Event ------------------------------------------------------------------- */

.event {
  max-width: none;
  /* Left/right stay 0 so .event-marquee's ticker can still span edge-to-edge
     full-bleed — the extra top/bottom padding grows the black area itself
     (space *inside* the section), not white space around it. */
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--color-ink);
  color: var(--color-paper);
  overflow: hidden;
}
.event-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin: clamp(1.5rem, 4vw, 2.5rem) auto 0;
}
.event-logo img { display: block; }
.event-logo-mark { height: clamp(56px, 7vw, 96px); width: clamp(56px, 7vw, 96px); }
.event-logo-wordmark { height: clamp(56px, 7vw, 96px); width: auto; }
.event-logo-custom { max-height: 90px; width: auto; }
.event-marquee {
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
}
.event-marquee-track {
  display: flex;
  width: max-content;
  animation: event-marquee-scroll 42s linear infinite;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-paper);
  white-space: nowrap;
}
.event-marquee-track span {
  display: flex;
  flex-shrink: 0;
}
.event-marquee-track span > span { padding: 0 1.5rem; }
@keyframes event-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.event-content {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--page-padding) clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.event-when { font-size: .95rem; line-height: 1.65; margin: 0 0 1.4rem; color: rgba(255, 255, 255, .85); }
.event-date { white-space: nowrap; } /* a list of dates wraps between pieces, never inside "September 19–21" */
.event-rsvp {
  display: inline-block;
  background: var(--color-paper);
  color: var(--color-ink);
  border: 1px solid var(--color-paper);
  text-decoration: none;
  padding: .65rem 1.75rem;
  font-family: var(--font-button);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease;
}
.event-rsvp:hover { background: transparent; color: var(--color-paper); }
.event-text p { max-width: 46em; margin: 0 0 1rem; color: rgba(255, 255, 255, .85); }
.event-text p:last-child { margin-bottom: 0; }
.event-text p a { color: var(--color-paper); text-decoration: underline; }
.event-note { font-size: .82rem; color: rgba(255, 255, 255, .55); }

@media (max-width: 720px) {
  .event-content { grid-template-columns: 1fr; }
}

/* Galleries ----------------------------------------------------------------- */

.gallery-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin-bottom: 2rem;
}
.gallery-heading-row h2 { margin: 0; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-filter {
  display: inline-block;
  background: none;
  border: 1px solid var(--color-line);
  padding: .4rem 1.1rem;
  font-family: var(--font-button);
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--color-muted);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gallery-filter:hover { border-color: var(--color-ink); color: var(--color-ink); }
.gallery-filter.is-active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }

.gallery-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.gallery-grid img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
.gallery-grid li[hidden] { display: none; }

.gallery-item {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  background: var(--color-paper-soft);
  cursor: pointer;
}
.gallery-item-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.gallery-item-frame.is-active { opacity: 1; }
.gallery-item-dots {
  position: absolute;
  left: 50%;
  bottom: .6rem;
  transform: translateX(-50%);
  display: flex;
  gap: .3rem;
  z-index: 2;
}
.gallery-item-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: background .3s ease, transform .3s ease;
}
.gallery-item-dot.is-active { background: #fff; transform: scale(1.35); }

.gallery-load-more-wrap { text-align: center; margin-top: clamp(1.5rem, 4vw, 2.5rem); }

/* Lightbox --------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .92); }

.lightbox-body {
  position: relative;
  z-index: 1;
  max-width: min(88vw, 900px);
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox-caption {
  margin: .85rem 0 0;
  color: #fff;
  font-size: .95rem;
  letter-spacing: .02em;
}
.lightbox-caption[hidden] { display: none; }
.lightbox-credit {
  margin: .85rem 0 0;
  color: rgba(255, 255, 255, .8);
  font-size: .8rem;
}
.lightbox-credit[hidden] { display: none; }
.lightbox-credit a { color: inherit; }
.lightbox-count {
  margin: .85rem 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: .8rem;
  letter-spacing: .04em;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease;
}
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-close { top: clamp(1rem, 3vw, 1.5rem); right: clamp(1rem, 3vw, 1.5rem); width: 42px; height: 42px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.lightbox-prev { left: clamp(.75rem, 3vw, 2rem); }
.lightbox-next { right: clamp(.75rem, 3vw, 2rem); }
.lightbox-nav[hidden] { display: none; }

@media (max-width: 640px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: .5rem; }
  .lightbox-next { right: .5rem; }
}

/* RSVP modal ------------------------------------------------------------------ */

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.rsvp-modal[hidden] { display: none; }
.rsvp-modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .72); }

.rsvp-modal-body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: 6px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
/* Same Medium weight as the Contact page's heading — left to the browser's default h2 bold,
   Gilroy resolves it to ExtraBold. */
.rsvp-modal-title { margin: 0 2.5rem .75rem 0; font-weight: 500; }
.rsvp-modal-body .contact-form { margin-top: 1rem; }

.rsvp-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--color-paper-soft);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
}
.rsvp-modal-close:hover { background: var(--color-line); }

/* Market scroll-jacked carousel --------------------------------------------- */

.market-gallery { max-width: none; padding: 0; }

.market-scrollzone { position: relative; }

.market-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--color-ink);
}

.market-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0;
  will-change: transform;
}
.market-track-item { flex: 0 0 auto; height: 100%; aspect-ratio: 3 / 4; }
.market-track-btn {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.market-track-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Landscape photos keep their own ratio (set inline from the file's dimensions) instead of being
   cropped to 3:4: full section height like the others, so the card is simply wider. */
.market-track-item.market-track-item--landscape { aspect-ratio: var(--ratio); }

.market-heading-overlay {
  position: absolute;
  left: clamp(1.25rem, 4vw, 3rem);
  bottom: clamp(1.25rem, 4vw, 3rem);
  z-index: 2;
  margin: 0;
  color: var(--color-paper);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55);
}

@media (max-width: 720px) {
  .market-track-item { aspect-ratio: 4 / 5; }
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-ink);
  padding: .7rem 2.25rem;
  font-family: var(--font-button);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn-ghost[hidden] { display: none; }
.btn-ghost:hover { background: var(--color-ink); color: var(--color-paper); }

.workshop-gallery { max-width: none; background: var(--color-ink); padding: clamp(1.5rem, 4vw, 2.5rem) var(--page-padding); }

.photo-wall {
  list-style: none;
  margin: 0 auto; padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}
.photo-wall-tile {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.photo-wall-tile.is-visible { opacity: 1; }
.photo-wall-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  margin: 0;
  background: var(--color-paper-soft);
  cursor: pointer;
  transition: transform .6s ease;
}
/* Slight zoom on hover, clipped by the tile's overflow:hidden. Scales the button, not a frame,
   so both crossfade frames zoom together and a swap mid-hover doesn't jump. Mouse only: a tap
   on touch screens would otherwise leave the tile stuck zoomed. */
@media (hover: hover) and (pointer: fine) {
  .photo-wall-btn:hover { transform: scale(1.05); }
}
.photo-wall-btn:focus-visible { transform: scale(1.05); }
.photo-wall-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.photo-wall-frame.is-active { opacity: 1; }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-wall { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .photo-wall { grid-template-columns: repeat(2, 1fr); }
}

/* Process ------------------------------------------------------------------- */

.process {
  max-width: none;
  background: var(--color-ink);
  color: var(--color-paper);
}
.process #process-heading,
.process #contact-process-heading {
  color: var(--color-paper);
  max-width: calc(var(--container) - 2 * var(--page-padding));
  margin: 0 auto 2rem;
}
.process-steps {
  list-style: none;
  margin: 0 auto; padding: 0;
  max-width: var(--container);
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  justify-content: center;
  gap: 3rem clamp(1.5rem, 4vw, 4rem);
  text-align: center;
}
.process-steps li { display: flex; flex-direction: column; align-items: center; }
.process-steps img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 85%;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}
.process-steps h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 .75rem;
}
.process-steps p { margin: 0 0 .5rem; font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, .85); }
.step-note { font-size: .8rem; color: rgba(255, 255, 255, .55); }

@media (max-width: 780px) {
  .process-steps { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: minmax(0, 1fr); }
}

/* Pull quotes ----------------------------------------------------------------- */

.pull-quote {
  background: var(--color-ink);
  color: var(--color-paper);
  max-width: none;
}
/* Scoped to .pull-quote-text (the quote itself), not .pull-quote's every
   blockquote/p: pull quote #1 lives in the Testimonials section instead
   (no .pull-quote there), whose review quotes must not pick these up. */
.pull-quote-text { max-width: 58em; margin: 0 auto; text-align: left; }
.pull-quote-text p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  margin: 0 0 1.25rem;
}
.pull-quote-text cite { font-style: normal; font-size: 1.15rem; color: #b9b7b2; }

/* Testimonials ------------------------------------------------------------------ */

/* Full-bleed: an optional video or photo covers the whole section (edge to
   edge, at least 100vh; plain black without one), with pull quote #1
   top-left and the reviews carousel bottom-right over a dark scrim so the
   white text stays readable. Portrait media (the video is 4:5) gets its
   top and bottom cropped by object-fit: cover on wide screens.
   Both texts are in normal flow in a flex column (the reviews pushed down
   by margin-top: auto), NOT absolutely placed: the carousel is as tall as
   its longest review, and pinned positions collided with the quote on
   short screens. Here the section simply grows instead. */
.testimonials {
  position: relative;
  max-width: none;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16vh 0 clamp(5rem, 10vh, 7rem);   /* bottom clears the play button */
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-paper);
}
.testimonials-media { position: absolute; inset: 0; }
/* ::before, not ::after: it paints above the (unpositioned) video/img but
   below the play/pause button, which is positioned and later in the DOM. */
.testimonials-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 100% 100%, rgba(0, 0, 0, .6), transparent),  /* behind the reviews */
    linear-gradient(to right, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .1) 100%);
}
.testimonials-media video,
.testimonials-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.testimonials-video-btn { position: absolute; right: 1rem; bottom: 1rem; }

.testimonials .testimonials-quote {
  position: relative;   /* above the media layer */
  width: 100%;
  max-width: var(--container);
  margin: 0 auto 3rem;  /* bottom: minimum gap above the reviews */
  padding: 0 var(--page-padding);
}
.testimonials-quote p { max-width: 20em; }

/* Reviews: bottom-right, right-aligned (the quote is top-left). No arrows —
   dots, swipe and autoplay navigate. */
.testimonials-reviews {
  position: relative;   /* above the media layer */
  width: min(54rem, calc(100% - 2 * var(--page-padding)));
  margin: auto var(--page-padding) 0 auto;
  text-align: right;
}

@media (max-width: 780px) {
  /* Portrait phones: the scrim darkens evenly, since the text spans the width. */
  .testimonials-media::before { background: rgba(0, 0, 0, .5); }
  .testimonials { padding-top: clamp(5rem, 14vh, 7rem); }
}

/* Reveal-on-scroll animations ---------------------------------------------- */

.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(.4em);
  filter: blur(3px);
  transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1), filter .6s cubic-bezier(.22, 1, .36, 1);
}
.reveal-quote.is-visible .reveal-word { opacity: 1; transform: translateY(0); filter: blur(0); }

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Reviews carousel (inside Testimonials) ---------------------------------------- */

.reviews-carousel { position: relative; }
/* Every slide shares one grid cell, so the track is as tall as the longest
   review. justify-content: flex-end bottom-anchors each slide in it, so the
   name and stars always sit the same distance above the dots; shorter
   reviews just start lower. */
.reviews-track { display: grid; }
.review-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
}
.review-slide.is-active { pointer-events: auto; }

/* Slide transitions: three states, not two. Resting (not active) parks every
   piece hidden *below* its mask with no transition, so it snaps back there
   invisibly; .is-active animates it up into place; .is-leaving (added by
   site.js to the outgoing slide for ~700ms) sends the words *up* and out.
   Words stagger by their --i, capped at 25 so long reviews don't drag; the
   author and stars wait for the words via the slide's --n (word count). */
.rw {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* Keep descenders and italic overhang (the text is Garamond italic)
     inside the mask; the negative margins cancel the extra space. */
  padding: 0 .1em .12em;
  margin: 0 -.1em -.12em;
}
.rw-i {
  display: inline-block;
  transform: translateY(110%) rotate(6deg);
  transform-origin: left bottom;
}
.review-slide.is-active .rw-i {
  transform: translateY(0) rotate(0);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(250ms + min(var(--i), 25) * 35ms);
}
.review-slide.is-leaving .rw-i {
  transform: translateY(-110%);
  transition: transform .45s cubic-bezier(.7, 0, .84, 0);
  transition-delay: calc(min(var(--i), 25) * 8ms);
}

.review-author {
  clip-path: inset(0 100% 0 0);
  letter-spacing: .3em;
  opacity: 0;
}
.review-slide.is-active .review-author {
  clip-path: inset(0 0 0 0);
  letter-spacing: .06em;
  opacity: 1;
  transition: clip-path .9s cubic-bezier(.65, 0, .35, 1),
              letter-spacing 1.2s cubic-bezier(.16, 1, .3, 1),
              opacity .4s ease;
  transition-delay: calc(450ms + min(var(--n), 25) * 35ms);
}
.review-slide.is-leaving .review-author,
.review-slide.is-leaving .review-stars svg {
  opacity: 0;
  transition: opacity .3s ease;
}

.review-stars svg {
  transform: scale(0) rotate(-120deg);
  opacity: 0;
}
.review-slide.is-active .review-stars svg {
  transform: scale(1) rotate(0);
  opacity: 1;
  transition: transform .6s cubic-bezier(.34, 1.8, .64, 1), opacity .2s ease;
  transition-delay: calc(750ms + min(var(--n), 25) * 35ms + var(--s) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .rw-i, .review-author, .review-stars svg { transform: none; clip-path: none; letter-spacing: .06em; }
  .review-slide:not(.is-active) { visibility: hidden; }
  .review-slide.is-active .rw-i,
  .review-slide.is-active .review-author,
  .review-slide.is-active .review-stars svg { transition: none; }
}

.review-slide blockquote { margin: 0 0 1rem; }
.review-slide blockquote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.5;
  margin: 0;
}
.review-author { font-size: 1rem; color: rgba(255, 255, 255, .75); margin: 0 0 .6rem; }
.review-stars { display: flex; justify-content: flex-end; gap: .3rem; color: #a99475; }
.review-stars svg { width: 1.2rem; height: 1.2rem; }

.reviews-dots { display: flex; justify-content: flex-end; gap: .6rem; margin-top: 1.25rem; transition: opacity .6s ease; }
.reviews-dots.is-pending { opacity: 0; }   /* site.js: until the first review is revealed */
.reviews-dot {
  width: .45rem; height: .45rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .3);
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}
.reviews-dot.is-active { background: var(--color-paper); transform: scale(1.3); }

/* About Joe -------------------------------------------------------------------- */

#about-heading { margin-bottom: 2rem; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.about-cell--image { margin: 0; }
.about-cell--image img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about-cell--text { display: flex; flex-direction: column; justify-content: center; padding: 1rem; }
.about-joe h3 { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: clamp(1.8rem, 3.6vw, 2.3rem); color: var(--color-ink); margin: 0 0 .5rem; }
.about-joe p { font-size: 1rem; line-height: 1.9; margin: 0; color: #2c2c2a; }
.about-joe .photo-credit { font-size: .68rem; color: var(--color-muted); text-align: right; margin-top: 1.5rem; }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-cell--image img { aspect-ratio: 4 / 3; }
  .about-cell--text { padding: 0; }
}

/* Footer ----------------------------------------------------------------------- */

.site-footer {
  background: var(--color-ink);
  color: #b9b7b2;
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.footer-logo { display: inline-block; margin: 0 0 1.5rem; }
.footer-logo img { width: 80px; height: auto; }
.footer-about { max-width: 46em; margin: 0 auto 1.25rem; font-size: .85rem; line-height: 1.7; }
.social-links--footer { justify-content: center; margin: 0 0 1.25rem; }
.footer-divider { max-width: 46em; margin: 0 auto 1.25rem; border: none; border-top: 1px solid rgba(255, 255, 255, .18); }
.copyright { font-size: .75rem; margin: 0; }
.copyright a { color: inherit; }
/* _analytics_notice.html (synced from website_modules), under the copyright line. */
.analytics-notice { max-width: 46em; margin: .75rem auto 0; font-size: .7rem; opacity: .7; }
.analytics-notice a { color: inherit; }

/* Admin --------------------------------------------------------------------------- */

body.admin-body { background: var(--color-paper); }

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  background: var(--color-ink);
  color: var(--color-paper);
  font-family: var(--font-sans);
}
.admin-brand { color: var(--color-paper); text-decoration: none; font-weight: 600; letter-spacing: .02em; }
.admin-brand span { font-weight: 400; opacity: .7; }
.admin-topbar-links { display: flex; gap: 1.25rem; }
.admin-topbar-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .88rem; }
.admin-topbar-links a:hover { color: var(--color-paper); }

.admin-shell { max-width: var(--container); margin: 0 auto; padding: 2rem var(--page-padding) 4rem; font-family: var(--font-sans); font-weight: 400; }
.admin-shell h1 { font-size: 1.4rem; }
.admin-shell h2 { font-size: 1.05rem; border-top: 1px solid var(--color-line); padding-top: 1.5rem; margin-top: 2rem; }
.admin-hint { font-size: .85rem; color: var(--color-muted); margin: 0 0 1.25rem; }

.admin-nav-groups {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0;
}
.admin-nav-group {
  background: var(--color-paper-soft);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-muted);
  cursor: pointer;
}
.admin-nav-group:hover { color: var(--color-ink); }
.admin-nav-group.is-active { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
.admin-group-panel[hidden] { display: none; }

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: 1rem 0 1.75rem;
  border-bottom: 1px solid var(--color-line);
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: .6rem .25rem;
  margin-right: 1.25rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
}
.admin-tab:hover { color: var(--color-ink); }
.admin-tab.is-active { color: var(--color-ink); border-bottom-color: var(--color-ink); }
.admin-tab-panel[hidden] { display: none; }

.admin-card { border: 1px solid var(--color-line); border-radius: 6px; padding: 1.25rem; margin-bottom: 1.25rem; }
.admin-card label { display: block; font-size: .8rem; font-weight: 600; margin: .75rem 0 .25rem; }
.admin-card input[type=text], .admin-card input[type=url], .admin-card input[type=number],
.admin-card textarea, .admin-card input[type=email], .admin-card input[type=password],
.admin-card input[type=date] {
  width: 100%; padding: .5rem; border: 1px solid var(--color-line); border-radius: 4px; font: inherit;
}
.admin-card input[type=date] { color-scheme: light; }
.admin-card textarea { min-height: 4.5rem; }
.admin-card select { width: 100%; padding: .5rem; border: 1px solid var(--color-line); border-radius: 4px; font: inherit; background: #fff; }
.admin-card h3 { font-size: .95rem; margin: 1.5rem 0 .25rem; }
textarea.admin-code, .admin-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; }
.admin-json-preview { background: #f6f6f4; border: 1px solid var(--color-line); border-radius: 4px; padding: .75rem; overflow-x: auto; margin: 0 0 1rem; white-space: pre; }
.admin-inquiry { grid-column: 1 / -1; }
.admin-inquiry-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--color-muted); margin-bottom: .75rem; }
.admin-inquiry-status--ok { color: #2a7a3b; }
.admin-inquiry-status--fail { color: #a33; font-weight: 600; cursor: help; }
.admin-inquiry-fields { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.admin-inquiry-fields dt { font-weight: 600; font-size: .8rem; }
.admin-inquiry-fields dd { margin: 0; white-space: pre-wrap; }
.admin-card button { margin-top: 1rem; background: var(--color-ink); color: #fff; border: none; padding: .55rem 1.25rem; border-radius: 4px; font: inherit; cursor: pointer; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.admin-grid > .admin-card { margin-bottom: 0; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .admin-grid { grid-template-columns: 1fr; } }

.admin-list { display: flex; flex-direction: column; gap: .5rem; }
.admin-list > .admin-card--row[data-sortable-id] { position: static; padding: .6rem .75rem; }
.admin-card--row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 0;
}
.admin-card--row .admin-drag-handle { position: static; flex-shrink: 0; }
.admin-card--row form { margin: 0; flex: 1; }
.admin-card--row label { display: none; }
.admin-card--row input[type=text] { margin: 0; }
.admin-card--row .admin-card-actions,
.admin-card--row button[type=submit] { margin-top: 0; flex-shrink: 0; }

.admin-card[data-sortable-id] { position: relative; padding-top: 2.25rem; }

.admin-photo-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin: .5rem 0; }
.admin-photo-slot { position: relative; width: 84px; flex-shrink: 0; }
.admin-photo-slot .admin-thumb { width: 84px; height: 84px; margin-bottom: 0; border-radius: 4px; }
.admin-photo-slot.is-dragging { opacity: .4; }
.admin-photo-slot-handle {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .85);
  border-radius: 3px;
  color: var(--color-muted);
  cursor: grab;
}
.admin-card button.admin-photo-slot-delete {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .85);
  border: none;
  border-radius: 3px;
  color: #a33;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.admin-card label.admin-photo-slot-replace {
  display: block;
  text-align: center;
  font-size: .65rem;
  font-weight: 400;
  color: var(--color-muted);
  margin: .25rem 0 0;
  cursor: pointer;
  text-decoration: underline;
}
.admin-photo-slot-replace input { display: none; }
.admin-add-photo-form { margin: .5rem 0 1rem; }
.admin-add-photo-form button { margin-top: .5rem; }

.admin-drag-handle {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  cursor: grab;
  border-radius: 4px;
}
.admin-drag-handle:hover { color: var(--color-ink); background: var(--color-paper-soft); }
.admin-card[data-sortable-id].is-dragging { opacity: .4; }
.admin-login-form { max-width: 360px; margin: 4rem auto; }
.admin-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; margin-bottom: .5rem; }
.admin-thumb--logo { width: 220px; max-width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--color-ink); }
.admin-thumb--og { width: 300px; max-width: 100%; aspect-ratio: 1200 / 630; object-fit: contain; background: #f6f6f4; }
/* Full-width .admin-thumb is sized for cards in an .admin-grid, where the
   card itself is already narrow — on a single full-width card (Hero tab)
   it would otherwise render huge, so these get an explicit width cap and
   an aspect ratio matching what they actually are (the hero video/poster
   are landscape, the bio photo is portrait). */
.admin-thumb--wide { width: 440px; max-width: 100%; aspect-ratio: 16 / 9; background: var(--color-ink); }
.admin-thumb--portrait { width: 220px; max-width: 100%; aspect-ratio: 2 / 3; }
.checkbox-row { display: flex; align-items: center; gap: .5rem; }
.checkbox-row input { width: auto; }
/* One option with a checkbox per view (Recent Commissions' ungroup/shuffle: "All" + "Other categories"). */
.admin-option-group { border: none; padding: 0; margin: 1rem 0 0; }
.admin-option-group legend { padding: 0; margin-bottom: .35rem; font-weight: 500; }
.admin-option-group .checkbox-row { margin-left: .25rem; }

/* Event tab's "Several separate dates" list (admin.js adds/removes rows). */
.admin-date-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .75rem; }
.admin-date-list-row { display: flex; gap: .5rem; align-items: center; max-width: 22rem; }
.admin-card .admin-date-list-remove {
  margin-top: 0; background: none; color: var(--color-muted); padding: .3rem .5rem; text-decoration: underline;
}
.admin-card .admin-date-list-add { margin: .6rem 0 .5rem; padding: .4rem 1rem; }

.admin-card-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.admin-card-actions button { margin-top: 0; }
.admin-card .btn-delete, .btn-delete { background: #a33; color: #fff; border: none; border-radius: 4px; padding: .55rem 1.25rem; font: inherit; cursor: pointer; }

.admin-subitems { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--color-line); }
.admin-subitems-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); margin: 0 0 .5rem; }
.admin-subitem { padding: .75rem; margin-bottom: .75rem; border: 1px solid var(--color-line); border-radius: 4px; background: var(--color-paper-soft); }
.admin-subitem[data-sortable-id] { position: relative; padding-top: 2.25rem; }
.admin-add-child { margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--color-line); }

/* Return Policy & FAQs page -------------------------------------------------------- */

.faq-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--page-padding);
}
.faq-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem);
  max-width: 40em;
  margin: 0 0 3rem;
}
.faq-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem clamp(2rem, 4vw, 3rem);
  margin: 0 0 clamp(3rem, 6vw, 4.5rem);
}
.faq-toc-group h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 .85rem;
  text-align: left;
}
.faq-toc-group ul { list-style: none; margin: 0; padding: 0; }
.faq-toc-group li { margin-bottom: .55rem; }
.faq-toc-group a {
  color: #2c2c2a;
  font-size: .92rem;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.faq-toc-group a:hover { border-bottom-color: var(--color-ink); }
.faq-groups {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 46em;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.faq-group h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  text-align: left;
}
.faq-intro { font-weight: 700; font-size: 1rem; line-height: 1.9; color: #2c2c2a; margin: 0 0 1.5rem; }
.faq-item { margin-bottom: 1.75rem; scroll-margin-top: 6.5rem; }
.faq-item h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.2rem;
  margin: 0 0 .5rem;
}
.faq-item p { font-size: 1rem; line-height: 1.9; color: #2c2c2a; margin: 0; }
.faq-item p a { text-decoration: underline; }

/* About Joe page -------------------------------------------------------------------- */

/* The page itself is full width so the quote band (.aj-quote) can span it
   without a 100vw breakout — 100vw includes the scrollbar and made the page
   scroll sideways. Every other child re-applies the usual container. */
.about-joe-page { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.about-joe-page > * {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-padding);
}
.aj-intro {
  display: grid;
  grid-template-columns: minmax(240px, 460px) minmax(240px, 480px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.aj-intro-text h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 0 0 1.5rem;
}
.aj-intro-text p { font-size: 1rem; line-height: 1.9; color: #2c2c2a; margin: 0 0 1.25rem; }
.aj-intro-photo { margin: 0; position: relative; }
.aj-intro-photo img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; }

/* Full-width black band holding Joe's quote (the one child of
   .about-joe-page without the container width). With atelier photos, they
   fill it edge to edge as a triptych (one column per photo) behind a
   translucent black overlay (::after, which paints above the photos but
   below the blockquote's z-index). */
.aj-quote {
  position: relative;
  overflow: hidden;
  background: var(--color-ink);
  color: var(--color-paper);
  max-width: none;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--page-padding);
  text-align: left;
}
.aj-quote--with-photos { padding-block: clamp(4rem, 10vw, 8rem); }
.aj-quote blockquote { position: relative; z-index: 1; max-width: 68em; margin: 0 auto; }
/* blockquote p, not just p: the photo caption is a <p> in this band too. */
.aj-quote blockquote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);   /* same as the homepage's quotes (.pull-quote-text p) */
  line-height: 1.5;
  margin: 0 0 1.25rem;
}
.aj-quote blockquote p:last-child { margin-bottom: 0; }

.aj-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
}
.aj-quote--with-photos .aj-gallery { position: absolute; inset: 0; }
.aj-gallery li { min-height: 0; }
.aj-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aj-quote--with-photos::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  pointer-events: none;
}
/* Quote toggled off: just the photos, in flow at their own ratio, no overlay. */
.aj-quote--photos-only { padding: 0; }
.aj-quote--photos-only .aj-gallery { position: static; }
.aj-quote--photos-only .aj-gallery img { aspect-ratio: 3 / 4; }
.aj-quote--photos-only::after { content: none; }

.aj-magazine { max-width: 68em; margin: 0 auto clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
/* Straight after the band (its caption is overlaid, not below it). */
.aj-quote + .aj-magazine { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.aj-magazine-carousel { position: relative; margin-bottom: 1.25rem; }
.aj-magazine-slide {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.aj-magazine-slide.is-active { display: block; }
.aj-magazine-arrows { display: flex; justify-content: center; gap: .75rem; }
.aj-magazine-arrows button {
  background: none;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.aj-magazine-arrows button:hover { background: var(--color-paper-soft); border-color: var(--color-ink); }

.aj-feature {
  text-align: center;
  font-size: .95rem;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.aj-feature a { text-decoration: underline; color: var(--color-ink); }
.aj-credit { text-align: right; font-size: .68rem; color: var(--color-muted); margin: 1.5rem auto clamp(2.5rem, 6vw, 4.5rem); }
/* Over the photos: white, bottom right, same treatment as the homepage bio
   photo's caption (.bio-photo figcaption). */
.aj-quote .aj-credit {
  position: absolute;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: .5rem;
  z-index: 1;   /* above the ::after overlay */
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: .75rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
}
.aj-quote .aj-credit a { color: #fff; text-decoration: underline; }

@media (max-width: 720px) {
  .aj-intro { grid-template-columns: 1fr; }
  .aj-intro-photo { order: -1; }
  /* Narrow screens: three columns behind a tall quote would be slivers, so
     the photos stack as rows instead. */
  .aj-quote--with-photos .aj-gallery { grid-auto-flow: row; grid-auto-rows: 1fr; }
}

/* Contact page ------------------------------------------------------------ */

.contact-intro {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(280px, 520px);
  justify-content: space-between;
  /* Markup order is heading, form, details (the mobile order); these areas put the
     details back under the heading, beside the form. The 1fr row takes the form's
     extra height so no gap opens between the heading and the address. */
  grid-template-areas:
    "heading form"
    "details form";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-intro-heading { grid-area: heading; }
.contact-form-col { grid-area: form; }
.contact-intro-text { grid-area: details; }

.contact-intro-heading {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.45;
  margin: 0 0 2.25rem;
}
.contact-address { margin-bottom: 1.5rem; }
.contact-address p { margin: 0 0 .2rem; font-size: .95rem; }
.contact-address-label { font-weight: 500; margin-bottom: .3rem !important; }
.contact-address-note { font-size: .78rem !important; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .6rem !important; }

.contact-map { margin-bottom: 1.5rem; border: 1px solid var(--color-line); aspect-ratio: 1 / 1; }
.contact-map iframe { display: block; width: 100%; height: 100%; filter: grayscale(1) contrast(1.05); }

.contact-socials a { color: var(--color-ink); opacity: .7; }
.contact-socials a:hover { color: var(--color-ink); opacity: 1; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-form[hidden] { display: none; }
/* The widget's own height, held before site.js loads Google's script, so Send doesn't jump. */
.contact-form .g-recaptcha { min-height: 78px; }
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* Honeypot (app.py's HONEYPOT_FIELD_NAME) — hidden from every real visitor, sighted or not
   (unlike .visually-hidden elsewhere, which stays in the accessible/tab order on purpose). A
   simple bot that fills in every <input> it finds fills this one too and gets caught server-side. */
.contact-form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-field {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
}
.contact-field-label { font-size: 1rem; font-weight: 500; margin: 0; }
.required { font-weight: 400; color: var(--color-muted); text-transform: none; letter-spacing: 0; }

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field select,
.contact-field textarea,
.contact-source-other {
  font: inherit;
  font-weight: 400;
  padding: .7rem .8rem;
  border: 1px solid var(--color-line);
  background: var(--color-paper);
  color: var(--color-ink);
  border-radius: 2px;
}
.contact-field textarea { resize: vertical; }
.contact-field select { appearance: auto; }

.contact-field input[type="text"]:focus,
.contact-field input[type="email"]:focus,
.contact-field select:focus,
.contact-field textarea:focus,
.contact-source-other:focus {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 1px var(--color-ink);
}

.contact-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem 1.5rem;
  margin-bottom: .75rem;
}
.contact-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 400;
}
.contact-checkbox-grid input { width: auto; accent-color: var(--color-ink); }
.contact-source-other { width: 100%; }

.contact-submit {
  align-self: flex-start;
  background: var(--color-ink);
  color: var(--color-paper);
  border: none;
  padding: .75rem 2.25rem;
  font-family: var(--font-button);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: .5rem;
}
.contact-submit:hover { background: #2c2c2a; }

/* fetch()-submitted forms (site.js, REQUIREMENTS.md CS10): a spinner + "Sending" on the button,
   an inline error under it, and a thank-you panel that replaces the form once it's sent. */
.contact-submit.is-sending {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  cursor: progress;
  opacity: .85;
}
.contact-submit.is-sending::before {
  content: "";
  width: .8em;
  height: .8em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: contact-submit-spin .7s linear infinite;
}
@keyframes contact-submit-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .contact-submit.is-sending::before { animation: none; border-right-color: currentColor; opacity: .5; }
}

.contact-form-error { margin: 0; color: #a3322b; font-size: .9rem; }
/* contact-form.js empties the line rather than hiding it; while empty it would still take one of
   the form's flex gaps under the Send button. It's the form's last child, so showing it moves
   nothing above it. */
.contact-form-error:empty { display: none; }

.contact-form-success { display: flex; flex-direction: column; gap: 1.25rem; padding: 1rem 0; }
.contact-form-success[hidden] { display: none; }
.contact-form-success:focus { outline: none; }
.contact-form-success-message { margin: 0; font-size: 1.1rem; }

@media (max-width: 780px) {
  .contact-intro {
    grid-template-columns: 1fr;
    grid-template-areas: "heading" "form" "details";
    grid-template-rows: auto;
    row-gap: 2.5rem;
  }
  .contact-intro-heading { margin-bottom: 0; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-checkbox-grid { grid-template-columns: 1fr; }
}

/* Scroll to top ------------------------------------------------------------- */

.scroll-top {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--color-ink);
  color: var(--color-paper);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 5;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: #2c2c2a; }
