:root {
  --bg: #232323;
  --bg-deep: #1d1d1d;
  --panel: #fafaf5;
  --ink: #ffffff;
  --dim: #b1b1b1;
  --faint: #808080;
  --accent: #9a87a3;
  --line: rgba(255, 255, 255, 0.08);
  --panel-ink: #55534e;
  --panel-dim: #8f8d86;
  --font: "Open Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --side-w: 270px;
  --top-h: 96px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--dim);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
}

p { margin: 0 0 1em; }

::selection { background: var(--accent); color: #1d1d1d; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #1d1d1d;
  padding: 10px 18px;
}
.skip:focus { left: 8px; top: 8px; }

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

/* ---------- sidebar (desktop) ---------- */

.side {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w);
  background: var(--panel);
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 44px 24px 30px;
  text-align: center;
  z-index: 40;
  overflow-y: auto;
}

.side-logo img {
  width: 188px;
  height: auto;
  margin: 0 auto;
}

.side-nav { margin-top: 52px; width: 100%; }

.side-nav a {
  display: block;
  position: relative;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--panel-ink);
  transition: color 0.25s ease;
}

.side-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.side-nav a:hover,
.side-nav a.active { color: #26241f; }

.side-nav a:hover::after,
.side-nav a.active::after { width: 22px; }

.side-nav .ext { margin-top: 10px; color: var(--panel-dim); }

.side-nav .ext svg {
  width: 9px;
  height: 9px;
  margin-left: 6px;
  vertical-align: 2px;
  fill: currentColor;
}

.side-foot {
  margin-top: auto;
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.socials { display: flex; gap: 20px; }

.socials a {
  color: #a09e97;
  transition: color 0.25s ease, transform 0.25s ease;
}

.socials a:hover { color: var(--accent); transform: translateY(-2px); }

.socials svg { width: 16px; height: 16px; fill: currentColor; }

.copy {
  font-size: 11px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--panel-dim);
}

/* ---------- top bar (mobile) ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(29, 29, 29, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

.topbar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.topbar-logo img { height: 24px; width: auto; }

.topbar-nav {
  display: flex;
  justify-content: space-evenly;
  align-items: stretch;
  height: 46px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 6px;
}

.topbar-nav::-webkit-scrollbar { display: none; }

.topbar-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.topbar-nav a:hover,
.topbar-nav a.active { color: var(--ink); }

.topbar-nav a.active::after { transform: scaleX(1); }

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

.site { min-height: 100vh; }

.main {
  margin-left: 0;
}

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

.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  will-change: transform, opacity;
  animation:
    hero-fade 32s linear infinite,
    hero-zoom 32s linear infinite;
}

.hero-slide:nth-child(2) { animation-delay: 8s, 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s, 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s, 24s; }

@keyframes hero-fade {
  0% { opacity: 0; }
  6% { opacity: 1; }
  25% { opacity: 1; }
  31% { opacity: 0; }
  100% { opacity: 0; }
}

@keyframes hero-zoom {
  0% { transform: scale(1.02); }
  31% { transform: scale(1.1); }
  100% { transform: scale(1.02); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(20, 20, 20, 0.15) 38%, rgba(20, 20, 20, 0.28) 68%, rgba(20, 20, 20, 0.72) 100%);
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 28px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  letter-spacing: 0.24em;
  padding-left: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  /* one row, always — the letter-spacing animation must not reflow the
     title onto two rows on narrow screens (.hero clips the overflow) */
  white-space: nowrap;
  /* same drop shadow as the showcase stage copy (body.txt-shadow) */
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(0, 0, 0, 0.8),
    0 3px 30px rgba(0, 0, 0, 0.7);
}

.hero-rule {
  width: 46px;
  height: 3px;
  background: var(--accent);
  margin: 22px auto;
}

.hero-quote {
  max-width: 620px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.55;
  color: #e8e8e8;
  margin: 0 0 10px;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(0, 0, 0, 0.8),
    0 3px 30px rgba(0, 0, 0, 0.7);
}

.hero-attr {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: #fff;
  animation: cue-bob 2.6s ease-in-out infinite;
}

.hero-cue svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- sections ---------- */

.section {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) clamp(22px, 6vw, 72px);
}

.title {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-left: 0.1em;
}

.title::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  background: var(--accent);
  margin-top: 18px;
}

.title-center { text-align: center; }

.title-center::after { margin-left: auto; margin-right: auto; }

.lede {
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 1.6;
  color: #d9d9d9;
  margin-top: 26px;
}

.body-copy {
  font-size: 0.98rem;
  color: var(--dim);
  max-width: 48ch;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: #1d1d1d;
}

/* ---------- gallery intro (portraits / weddings) ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(36px, 5.5vw, 72px);
  align-items: center;
}

.intro-grid.flip .intro { order: 2; }
.intro-grid.flip .collage { order: 1; }

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  aspect-ratio: 1 / 1.06;
}

.collage a {
  position: relative;
  overflow: hidden;
  display: block;
  background: #181818;
}

.collage a:first-child { grid-row: 1 / span 2; }

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.collage a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0);
  transition: background 0.4s ease;
}

.collage a:hover img,
.collage a:focus-visible img { transform: scale(1.05); }

.collage a:hover::after,
.collage a:focus-visible::after { background: rgba(20, 20, 20, 0.28); }

.collage .zoom {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.collage .zoom svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.collage a:hover .zoom,
.collage a:focus-visible .zoom { opacity: 1; transform: none; }

/* One-pager (data-no-lightbox): the section images are a showcase, not a
   gallery — no zoom affordance, no hover feedback, no pointer (a tap does
   nothing; the full galleries live on their own pages). */
body[data-no-lightbox] .collage .zoom { display: none; }
body[data-no-lightbox] .collage a { cursor: default; }
body[data-no-lightbox] .collage a:hover img,
body[data-no-lightbox] .collage a:focus-visible img { transform: none; }
body[data-no-lightbox] .collage a:hover::after,
body[data-no-lightbox] .collage a:focus-visible::after { background: transparent; }
body[data-no-lightbox] .scard { cursor: default; }

/* ---------- showcase stage (cards / stack) ---------- */

.stage {
  position: relative;
  height: clamp(440px, 74vh, 680px);
  overflow: hidden;
  background: #161616;
}

.stage-viewport {
  position: absolute;
  inset: 0;
  /* depth for the cards' 3-D exit tilt (2-D transforms are unaffected) */
  perspective: 1200px;
}

.scard {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #141414;
  opacity: 0;
  transform: translateX(5%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}

.scard .kb {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.scard .kb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scard.active {
  opacity: 1;
  transform: none;
  z-index: 3;
}

.scard.exiting {
  opacity: 0;
  transform: translateX(-5%);
  transition: transform 0.5s cubic-bezier(0.55, 0, 0.8, 0.4), opacity 0.5s ease;
  z-index: 4;
}

.scard.no-t { transition: none !important; }

/* deck mode: flashcards — the next photo waits below, the top one arcs
   away up and to the right, accelerating off the stage */

.stage.deck .scard.below {
  opacity: 1;
  transform: translateY(1.4%) scale(0.965);
  z-index: 2;
}

/* The card flies up and to the right, so its top/right (leading) edges are
   the ones that leave the stage — clipped by overflow, never the visible
   edge. The bottom/left (trailing) edges are what stay over the deck as it
   separates: that's the paper edge. Transparent at rest; it brightens over
   the first moments of the flight to read as the card's thickness catching
   the light as it lifts off the stack. */
.stage.deck .scard::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0);
  border-left: 2px solid rgba(255, 255, 255, 0);
  transition: border-color 0.45s ease;
}

/* Deck exit: the top card peels slowly off the deck first — barely moving
   while the bright leading edge and growing shadow sell the 3-D lift —
   then dashes away. The cubic-bezier keeps the value near-still for the
   first ~half of the flight, then rockets to its end pose, so the slow
   peel hands off to a fast throw. Duration must stay under SWAP (650ms)
   in main.js so the card isn't recycled mid-flight. */
.stage.deck .scard.exiting {
  opacity: 1;
  transform: translate(120%, -150%) rotate(20deg) rotateY(-20deg);
  transition:
    transform 0.64s cubic-bezier(0.6, 0, 0.9, 0.22),
    box-shadow 0.64s ease;
  /* Directional shadow falls toward the deck (down-left) to sell the lift,
     plus a soft ambient drop. */
  box-shadow:
    -24px 28px 48px rgba(0, 0, 0, 0.55),
    0 44px 100px rgba(0, 0, 0, 0.5);
  z-index: 4;
}

.stage.deck .scard.exiting::after {
  border-bottom-color: rgba(255, 255, 255, 0.9);
  border-left-color: rgba(255, 255, 255, 0.55);
}

/* stack mode: fanned deck behind the top card */

.stage.stack .scard.s-top {
  opacity: 1;
  transform: none;
  z-index: 3;
}

.stage.stack .scard.s-mid {
  opacity: 0.82;
  transform: translateY(2.4%) scale(0.965) rotate(0.6deg);
  transition-duration: 0.6s;
  z-index: 2;
}

.stage.stack .scard.s-back {
  opacity: 0.55;
  transform: translateY(4.8%) scale(0.93) rotate(-1.1deg);
  transition-duration: 0.7s;
  z-index: 1;
}

.stage.stack .scard.exiting {
  transform: translateX(-11%) rotate(-3deg);
  transition: transform 0.55s cubic-bezier(0.55, 0, 0.8, 0.4), opacity 0.5s ease;
}

.stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 18, 18, 0.28) 0%, rgba(18, 18, 18, 0) 24%, rgba(18, 18, 18, 0) 46%, rgba(18, 18, 18, 0.84) 100%);
}

.stage-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  --copy-pad: clamp(24px, 5vw, 56px);
  padding: var(--copy-pad);
  pointer-events: none;
}

.stage-copy > * { pointer-events: auto; }

/* soft tint behind title + lede only (the button stays clear of it):
   fades in at the left edge, to 0 at mid-image on x, fades in/out on y */
.stage-tint {
  position: absolute;
  left: 0;
  right: 50%;
  top: calc(var(--copy-pad) - 20px);
  bottom: calc(var(--copy-pad) + 60px);
  z-index: -1;
  background: rgba(16, 16, 16, 0.9);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, rgba(0, 0, 0, 0.55) 68%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 12%, rgba(0, 0, 0, 0.55) 68%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 24%, #000 76%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
}

.stage-copy .lede {
  margin-top: 18px;
  max-width: 52ch;
}

.stage-copy .btn { margin-top: 26px; }

/* text treatment over stage photos — drop shadow is the site default
   (owner's choice). The tint box stays in the CSS in case of a mind
   change: remove the "txt-shadow" class added in js/main.js to restore it. */
body.txt-shadow .stage-tint { display: none; }

body.txt-shadow .stage-copy .title,
body.txt-shadow .stage-copy .lede {
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.95),
    0 0 14px rgba(0, 0, 0, 0.8),
    0 3px 30px rgba(0, 0, 0, 0.7);
}

/* ---------- demo style switcher (preview only) ---------- */

.demo-switch {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  max-width: calc(100vw - 28px);
  padding: 5px;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-switch button {
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--font);
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 7px 12px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.demo-switch button:hover { color: var(--ink); }

.demo-switch button.on { background: var(--accent); color: #1d1d1d; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(36px, 5.5vw, 72px);
  align-items: center;
}

.about-photo {
  position: relative;
  max-width: 420px;
}

.about-photo::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid rgba(154, 135, 163, 0.5);
  z-index: 0;
}

.about-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 714 / 1000;
  object-fit: cover;
}

.about-sign {
  width: 132px;
  height: auto;
  margin-top: 30px;
  opacity: 0.92;
}

/* ---------- contact ---------- */

.contact { background: var(--bg-deep); }

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/contact-banner.webp") center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: clamp(36px, 5.5vw, 72px);
  align-items: start;
}

.contact-list { margin-top: 30px; }

.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 1.02rem;
  color: var(--dim);
}

.contact-list li + li { border-top: 1px solid var(--line); }

.contact-list svg {
  width: 17px;
  height: 17px;
  flex: none;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
}

.contact-list a:hover { color: var(--ink); }

.contact-socials { margin-top: 26px; display: flex; gap: 20px; }

.contact-socials a {
  color: var(--faint);
  transition: color 0.25s ease, transform 0.25s ease;
}

.contact-socials a:hover { color: var(--accent); transform: translateY(-2px); }

.contact-socials svg { width: 17px; height: 17px; fill: currentColor; }

.cform { display: grid; gap: 26px; }

.field { display: grid; gap: 8px; }

.field label {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a9a9a;
}

.field input,
.field textarea {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  padding: 10px 2px;
  transition: border-color 0.3s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6d6d6d;
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field textarea { resize: vertical; min-height: 110px; }

.form-note {
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: var(--accent);
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 30px clamp(22px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #9a9a9a;
}

.footer .socials { gap: 16px; }

.footer .socials a { color: var(--faint); }

.footer a.foot-blog {
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  transition: color 0.25s ease;
}

.footer a.foot-blog:hover { color: var(--accent); }

/* ---------- page hero (gallery pages) ---------- */

.page-hero {
  position: relative;
  padding: 84px clamp(22px, 6vw, 72px) 44px;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 120% at 50% -20%, rgba(154, 135, 163, 0.14), transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
}

.page-hero .title { display: inline-block; }

.page-hero .title::after { margin: 18px auto 0; }

.page-lede {
  max-width: 60ch;
  margin: 26px auto 0;
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 1.6;
  color: #d9d9d9;
}

.page-body {
  max-width: 56ch;
  margin: 16px auto 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--dim);
}

.page-hero .btn { margin-top: 26px; }

/* ---------- masonry ---------- */

.masonry-wrap {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(14px, 4vw, 40px) clamp(48px, 7vw, 80px);
}

.masonry {
  columns: 2;
  column-gap: 12px;
}

.m-item {
  position: relative;
  display: block;
  margin: 0 0 12px;
  break-inside: avoid;
  overflow: hidden;
  background: #181818;
}

.m-item img {
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.m-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0);
  transition: background 0.4s ease;
}

.m-item:hover img,
.m-item:focus-visible img { transform: scale(1.04); }

.m-item:hover::after,
.m-item:focus-visible::after { background: rgba(20, 20, 20, 0.25); }

.m-item .zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.m-item .zoom svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }

.m-item:hover .zoom,
.m-item:focus-visible .zoom { opacity: 1; transform: none; }

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

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 12, 0.96);
}

.lb[hidden] { display: none; }

.lb figure {
  margin: 0;
  max-width: min(94vw, 1500px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb img {
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transition: opacity 0.3s ease;
}

.lb-count {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--faint);
}

.lb button {
  position: absolute;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, color 0.25s ease;
  z-index: 2;
}

.lb button:hover { border-color: var(--accent); color: var(--accent); }

.lb button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

.lb-close { top: 18px; right: 20px; width: 44px; height: 44px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; }

.lb-controls {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 2;
}

.lb-controls button { position: static; width: 44px; height: 44px; }

.lb-play .icon-pause { display: none; }
.lb-play.playing .icon-play { display: none; }
.lb-play.playing .icon-pause { display: block; }

.lb-full .icon-shrink { display: none; }
.lb.is-fullscreen .lb-full .icon-expand { display: none; }
.lb.is-fullscreen .lb-full .icon-shrink { display: block; }

.lb.is-fullscreen figure { max-height: 100vh; }
.lb.is-fullscreen img { max-height: calc(100vh - 96px); }

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

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal.d1 { transition-delay: 0.1s; }
.js .reveal.d2 { transition-delay: 0.2s; }
.js .reveal.d3 { transition-delay: 0.3s; }

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

@media (min-width: 640px) {
  .masonry { columns: 3; }
}

@media (min-width: 960px) {
  html { scroll-padding-top: 40px; }

  .side { display: flex; }

  .topbar { display: none; }

  .main { margin-left: var(--side-w); }

  .hero { min-height: 640px; }
}

@media (min-width: 1024px) {
  .masonry { columns: 4; }
}

@media (min-width: 1440px) {
  .masonry { columns: 5; }
}

@media (max-width: 959px) {
  html { scroll-padding-top: calc(var(--top-h) + 16px); }

  .section { padding-left: 20px; padding-right: 20px; }

  .page-hero { padding-top: calc(var(--top-h) + 40px); }

  .intro-grid,
  .intro-grid.flip {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .intro-grid .intro { order: 1; }
  .intro-grid .collage { order: 2; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-photo { margin: 0 auto; }

  .contact-grid { grid-template-columns: 1fr; }

  .stage { height: clamp(420px, 62vh, 560px); }

  .stage-copy .lede { font-size: 1.05rem; }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb button { width: 42px; height: 42px; }

  .lb-controls { bottom: 12px; gap: 10px; }
}

@media (max-width: 480px) {
  .collage { gap: 8px; }
  .hero-cue { display: none; }
}

/* ---------- wow touches (toggled theme options) ----------
   Each effect is gated on a body class the WP theme emits from
   Appearance → Photosparks. The static site can enable them all with ?wow. */

/* Landing-page hero effect (select): halftone / grain / vignette.
   The layer is an untransformed pseudo, so it stays fixed while the hero
   slides zoom/pan underneath. z1 = above the veil, below the copy. */

body.ps-hero-halftone .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(#000 25%, transparent 26%);
  background-size: 3px 3px;
  opacity: 0.5;
  pointer-events: none;
}

body.ps-hero-grain .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

body.ps-hero-vignette .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 120% 100% at 50% 42%, transparent 40%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.82) 100%);
  pointer-events: none;
}

/* Hero title spread: the H1 eases in from wide tracking to its resting
   spacing on load — a quiet "settle" rather than a fade. */
@keyframes ps-hero-spread {
  from { letter-spacing: 0.62em; opacity: 0; }
  to   { letter-spacing: 0.24em; opacity: 1; }
}
body.ps-hero-spread .hero-title {
  animation: ps-hero-spread 2.4s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* Line-mask reveals: section headings wipe in from the top as their
   .reveal parent enters (the parent still handles the rise + fade). */
body.ps-line-mask .reveal .title {
  clip-path: inset(0 0 102% 0);
  transition: clip-path 1s cubic-bezier(0.22, 1, 0.36, 1);
}
body.ps-line-mask .reveal.in .title {
  clip-path: inset(0 0 -12% 0);
}

/* Magnetic CTA: the buttons are nudged toward the cursor (JS); the CSS only
   declares will-change so the transform stays GPU-composited. */
body.ps-magnetic .btn { will-change: transform; }

/* Parallax drift: the about photo is nudged against scroll (JS); will-change
   keeps it on its own compositor layer. */
body.ps-parallax .about-photo img { will-change: transform; }

/* Photo change effects in the lightbox (theme option "Photo change effect").
   Crossfade is pure JS (opacity on .lb-img, 280ms out then swap in); slide
   animates the incoming photo from the swipe/navigation direction. */
.lb-img.lb-in-next { animation: ps-lb-in-next 0.45s ease; }
.lb-img.lb-in-prev { animation: ps-lb-in-prev 0.45s ease; }

@keyframes ps-lb-in-next {
  from { opacity: 0; transform: translateX(56px); }
  to   { opacity: 1; transform: none; }
}
@keyframes ps-lb-in-prev {
  from { opacity: 0; transform: translateX(-56px); }
  to   { opacity: 1; transform: none; }
}

/* Preloader: a full-screen brand mark that holds briefly, then lifts.
   Markup is emitted by the theme on load; JS adds .done to fade it out.
   Scoped to div: the body must never carry the "ps-preloader" class. */
div.ps-preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
div.ps-preloader img { width: 160px; opacity: 0; transform: translateY(6px); animation: ps-pl-in 0.9s ease 0.1s forwards; }
div.ps-preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes ps-pl-in { to { opacity: 1; transform: none; } }

/* Scroll progress: a 2px accent hairline along the top of the main area
   (it clears the fixed sidebar) that fills as you read the one-pager.
   Scoped to div: the body carries the "ps-progress" gate class, so this
   must not target the <body> itself. */
div.ps-progress {
  position: fixed;
  top: 0;
  left: var(--side-w);
  right: 0;
  height: 2px;
  z-index: 90;
  pointer-events: none;
}
div.ps-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}
@media (max-width: 959px) { div.ps-progress { left: 0; } }

/* Reduced-motion: drop the wow motion (keep the static results). */
@media (prefers-reduced-motion: reduce) {
  body.ps-hero-spread .hero-title { animation: none; }
  body.ps-line-mask .reveal .title { clip-path: none; transition: none; }
  .lb-img.lb-in-next,
  .lb-img.lb-in-prev { animation: none; }
  div.ps-preloader { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-slide { animation: none; }
  .hero-slide:first-child { opacity: 1; }

  .hero-cue { animation: none; }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .collage img,
  .m-item img { transition: none; }

  .scard,
  .scard .kb { transition: none !important; }
}
