/* Jost variable font, self-hosted (was Google Fonts) */
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Jost';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #111;
  --grey: #888;
  --line: #e5e5e5;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --slide-ms: 5600ms;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  /* stop iOS Safari from inflating text sizes */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@view-transition { navigation: auto; }
body {
  font-family: 'Jost', 'Helvetica Neue', sans-serif;
  color: var(--ink);
  background: #fff;
  font-weight: 300;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 26px var(--pad) 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}
.brand { display: inline-block; line-height: 1; }
.brand-name {
  display: block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-sub {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .82em;
  text-transform: uppercase;
  color: var(--grey);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-top: 8px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-link {
  position: relative;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  inset: -8px -6px;
}
.nav-link:hover, .nav-link.active { border-bottom-color: currentColor; }
.nav-social { display: flex; gap: 14px; margin-left: 8px; }
.nav-social a {
  position: relative;
  display: flex;
  width: 40px; height: 40px;
  margin: -12px;
  align-items: center;
  justify-content: center;
}
.nav-social svg {
  width: 16px; height: 16px;
  fill: currentColor;
  opacity: .75;
  transition: opacity .25s var(--ease), scale .15s ease-out;
}
.nav-social a:hover svg { opacity: 1; }
.nav-social a:active svg { scale: 0.96; }
.nav-toggle { display: none; }

/* dropdown under Galleries — frosted glass, adapts to page */
.nav-item { position: relative; }
.sub-menu {
  position: absolute;
  top: calc(100% + 6px); left: -14px;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  color: var(--ink);
  text-shadow: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.05),
    0 2px 6px rgba(0, 0, 0, 0.05),
    0 16px 40px rgba(0, 0, 0, 0.13);
  opacity: 0;
  transform: translateY(6px) scale(0.98);
  transform-origin: top left;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 20;
}
.nav-item:hover .sub-menu,
.nav-item.open .sub-menu,
.nav-item:focus-within .sub-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}
.sub-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .03em;
  text-transform: none;
  transition: background-color .18s var(--ease);
}
.sub-menu a:hover { background: rgba(0, 0, 0, 0.055); }
.sub-count {
  font-size: 11px;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

/* header over hero: transparent, scrolls away with the hero.
   Color adapts to the current slide (body.hero-light = bright photo → dark text). */
.home .site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: color .7s var(--ease), text-shadow .7s var(--ease);
}
.home .brand-sub { color: rgba(255,255,255,.75); transition: color .7s var(--ease); }
.home .nav-social svg { filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.home.hero-light .site-header { color: var(--ink); text-shadow: none; }
.home.hero-light .brand-sub { color: rgba(0, 0, 0, 0.55); }
.home.hero-light .nav-social svg { filter: none; }
.home:not(.hero-light) .sub-menu {
  background: rgba(18, 18, 18, 0.55);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 16px 40px rgba(0, 0, 0, 0.35);
}
.home:not(.hero-light) .sub-menu a:hover { background: rgba(255, 255, 255, 0.1); }
.home:not(.hero-light) .sub-count { color: rgba(255, 255, 255, 0.55); }

/* staggered first-load enter — home only */
.home .brand-name, .home .brand-sub, .home .site-nav {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  animation: fadeInUp 500ms var(--ease) forwards;
}
.home .brand-sub { animation-delay: 100ms; }
.home .site-nav { animation-delay: 200ms; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 540px;
  background: #000;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 190px;
  background: linear-gradient(to bottom, rgba(0,0,0,.62), rgba(0,0,0,.28) 55%, transparent);
  pointer-events: none;
  z-index: 1;
  transition: opacity .8s ease;
}
/* bright slide → dark header text → the protective scrim must go */
.hero-light .hero::after { opacity: 0; }
.hero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 280px;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  pointer-events: none;
  z-index: 1;
  transition: opacity .8s ease;
}
.slide-text, .slide-idx, .slide-title, .slide-cta, .scroll-cue { transition: color .7s var(--ease), text-shadow .7s var(--ease); }
.hero-bars .bar::before, .hero-bars .bar span { transition: background-color .7s var(--ease); }
/* bright lower region → slide text goes dark, bottom scrim goes away */
.hero-bottom-light .hero::before { opacity: 0; }
.hero-bottom-light .slide-text { color: #111; }
.hero-bottom-light .slide-idx { color: rgba(0, 0, 0, 0.55); }
.hero-bottom-light .slide-title { text-shadow: none; }
.hero-bottom-light .slide-cta { color: rgba(0, 0, 0, 0.75); }
.hero-bottom-light .slide:hover .slide-cta { color: #111; }
.hero-bottom-light .hero-bars .bar::before { background: rgba(0, 0, 0, 0.25); }
.hero-bottom-light .hero-bars .bar span { background: #111; }
.hero-bottom-light .scroll-cue { color: rgba(0, 0, 0, 0.65); }
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
  overflow: hidden;
}
.slide.current { opacity: 1; }
/* Ken Burns on the photo layer only — text must never scale */
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.slide.current .slide-bg { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.06); }
}
.slide-text {
  position: absolute;
  left: var(--pad);
  bottom: clamp(64px, 12vh, 110px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  max-width: min(80vw, 760px);
}
.slide-idx {
  font-size: 12px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.7);
  font-variant-numeric: tabular-nums;
}
.slide-title {
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .2s var(--ease);
}
.slide-cta svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.slide:hover .slide-cta { color: #fff; }
.slide:hover .slide-cta svg { transform: translateX(5px); }
.slide-text > * {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
  animation: fadeInUp 500ms var(--ease) forwards;
}
.slide-text > :nth-child(2) { animation-delay: 90ms; }
.slide-text > :nth-child(3) { animation-delay: 180ms; }
.slide:not(.current) .slide-text > * { animation: none; opacity: 0; }

/* slideshow progress bars */
.hero-bars {
  position: absolute;
  right: var(--pad);
  bottom: clamp(64px, 12vh, 110px);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-bars .bar {
  position: relative;
  width: 44px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
}
.hero-bars .bar::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 12px;
  height: 2px;
  background: rgba(255,255,255,.32);
}
.hero-bars .bar span {
  position: absolute;
  left: 0; top: 12px;
  height: 2px;
  width: 0;
  background: #fff;
}
.hero-bars .bar.current span { animation: barfill var(--slide-ms) linear forwards; }
@keyframes barfill { from { width: 0 } to { width: 100% } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  animation: cueFloat 2.4s ease-in-out infinite;
}
.scroll-cue svg { width: 22px; height: 22px; }
@keyframes cueFloat {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- home sections ---------- */
.sec-title, .memento-heading {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -.01em;
}
.home-galleries { padding: clamp(56px, 9vh, 110px) var(--pad) 30px; }
.home-galleries .sec-title { margin-bottom: 34px; }
.g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  gap: 18px;
}
.g-card { display: block; }
.g-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f2f2f2;
  position: relative;
}
.g-img::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.g-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.g-card:hover .g-img img { transform: scale(1.04); }
.g-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 0;
}
.g-name { font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.g-count { font-size: 12px; color: var(--grey); letter-spacing: .12em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

.home-about {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(300px, 560px);
  gap: clamp(30px, 5vw, 70px);
  justify-content: center;
  align-items: center;
  padding: clamp(56px, 10vh, 120px) var(--pad);
}
.ha-photo img { outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.ha-heading { font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.01em; margin-bottom: 16px; }
.ha-text > p { font-size: 16px; line-height: 1.75; color: #444; margin-bottom: 22px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 0;
  color: var(--ink);
}
.text-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(5px); }

/* ---------- gallery pages ---------- */
.gallery-page { padding: 10px var(--pad) 80px; }
.page-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin: 18px 0 28px;
}
.page-title em { font-style: normal; color: var(--grey); }
.grid { display: flex; flex-wrap: wrap; gap: 10px; }
.ph {
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * 260px);
  position: relative;
  cursor: zoom-in;
  overflow: hidden;
  background: #f2f2f2;
}
.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: var(--r);
  transition: transform .6s var(--ease);
}
.ph:hover img { transform: scale(1.025); }

/* scroll reveal — JS adds .in; --d is stagger delay */
.js .ph, .js .rv {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(4px);
}
.js .ph.in, .js .rv.in {
  animation: fadeInUp 500ms var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8,8,8,.96);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lb-img {
  max-width: 92vw;
  max-height: 84vh;
  box-shadow: 0 10px 60px rgba(0,0,0,.6);
  transform: scale(0.96);
  filter: blur(4px);
  opacity: 0;
  transition: transform .3s var(--ease), filter .3s var(--ease), opacity .3s var(--ease);
}
.lightbox.open .lb-img.shown { transform: scale(1); filter: blur(0); opacity: 1; }
.lightbox button {
  position: absolute;
  background: none; border: none;
  color: rgba(255,255,255,.85);
  font-size: 42px;
  font-family: inherit;
  cursor: pointer;
  padding: 18px;
  line-height: 1;
  min-width: 44px; min-height: 44px;
  transition: color .2s var(--ease), scale .15s ease-out;
  z-index: 2;
}
.lightbox button:hover { color: #fff; }
.lightbox button:active { scale: 0.96; }
.lb-close { top: 12px; right: 18px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-bar {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
}
.lb-count { font-size: 11px; letter-spacing: .25em; font-variant-numeric: tabular-nums; }

/* ---------- memento index ---------- */
.memento-page { padding: 24px var(--pad) 90px; }
.memento-heading { max-width: 640px; margin: 0 0 50px; }
/* uniform card grid — every post identical, all edges aligned */
.essay-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr));
  gap: 56px 22px;
}
.essay-card { display: block; }
.essay-img {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #f2f2f2;
  position: relative;
}
.essay-img::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.essay-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.essay-card:hover .essay-img img { transform: scale(1.035); }
.essay-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}
.essay-date {
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--grey);
}
.essay-title { font-size: 21px; font-weight: 500; letter-spacing: -.005em; }
.essay-excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.essay-meta .text-link { margin-top: 4px; }

/* ---------- memento post ---------- */
.post-page { padding-bottom: 90px; }
.post-hero {
  height: min(68svh, 720px);
  background-size: cover;
  background-position: center;
  background-color: #111;
}
.post-head {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 70px) var(--pad) 8px;
  text-align: center;
}
.post-head .contact-eyebrow { margin-bottom: 16px; }
.post-heading { font-size: clamp(30px, 4vw, 46px); font-weight: 500; letter-spacing: -.01em; }
.post-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 26px var(--pad) 30px;
}
.post-body p { font-size: 16.5px; line-height: 1.85; margin-bottom: 20px; color: #333; }
.post-photos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.post-img { outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.back-link {
  margin: 50px auto 0;
  max-width: 1100px;
  padding: 0 var(--pad);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.back-link a { padding: 10px 0; }
.back-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- contact + about split ---------- */
.contact-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.contact-visual {
  background-size: cover;
  background-position: center;
  background-color: #111;
  min-height: calc(100svh - 110px);
}
.about-split .contact-visual {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 0;
  /* full-bleed cover like the contact page; bias right to keep face + camera */
  background-position: 55% center;
}
.contact-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 6vw, 90px);
  max-width: 680px;
}
.about-split .contact-panel { padding-top: clamp(40px, 8vh, 80px); padding-bottom: clamp(40px, 8vh, 80px); }
.contact-eyebrow {
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeInUp 500ms var(--ease) forwards;
}
.contact-heading {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 14px;
  opacity: 0;
  animation: fadeInUp 500ms 80ms var(--ease) forwards;
}
.about-kicker {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 26px;
  opacity: 0;
  animation: fadeInUp 500ms 140ms var(--ease) forwards;
}
.about-body {
  opacity: 0;
  animation: fadeInUp 500ms 220ms var(--ease) forwards;
}
.about-body p { font-size: 15.5px; line-height: 1.85; color: #333; margin-bottom: 18px; }
.contact-lede {
  color: #555;
  line-height: 1.7;
  margin-bottom: 38px;
  opacity: 0;
  animation: fadeInUp 500ms 160ms var(--ease) forwards;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  animation: fadeInUp 500ms 240ms var(--ease) forwards;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #777;
}
.contact-form input, .contact-form textarea {
  font-family: inherit; font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f4f4f4;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #aaa; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form button {
  align-self: flex-start;
  font-family: inherit;
  font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  padding: 15px 42px;
  background: var(--ink); color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s var(--ease), scale .15s ease-out;
}
.contact-form button:hover { background: #2e2e2e; }
.contact-form button:active { scale: 0.96; }
.contact-form button:disabled { background: #777; cursor: default; }
.form-status { font-size: 14.5px; line-height: 1.6; }
.form-status.ok { color: #1a6b35; }
.form-status.err { color: #a03333; }
.contact-social {
  margin-top: 36px;
  display: flex;
  gap: 26px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #777;
  opacity: 0;
  animation: fadeInUp 500ms 320ms var(--ease) forwards;
}
.contact-social a { padding: 8px 0; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease); }
.contact-social a:hover { color: var(--ink); border-bottom-color: currentColor; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px var(--pad) 30px;
  background: #fff;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(110px, auto));
  gap: 30px clamp(28px, 6vw, 90px);
  align-items: start;
  max-width: 1360px;
}
.footer-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-tag { display: block; margin-top: 8px; font-size: 12.5px; line-height: 1.65; color: var(--grey); }
.footer-col { display: flex; flex-direction: column; }
.footer-label {
  font-size: 10.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .02em;
  color: #444;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-copy {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: #999;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .home-about { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-visual { min-height: 0; aspect-ratio: 3 / 2; order: -1; }
  /* mobile: 3:2 matches the photo's own aspect — full frame, no crop */
  .about-split .contact-visual { position: static; height: auto; aspect-ratio: 3 / 2; max-height: none; margin-left: 0; background-size: cover; background-position: center; }
  .contact-panel { max-width: 640px; }
}
body.nav-open { overflow: hidden; }

@media (max-width: 760px) {
  .brand, .nav-toggle { position: relative; z-index: 13; }
  /* backdrop-filter on the header would become the containing block for the
     fixed overlay below — drop it while the menu is open */
  .nav-open .site-header {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    top: 24px; right: var(--pad);
    width: 44px; height: 44px;
    background: none; border: none;
    color: inherit;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    margin: 4px auto;
    background: currentColor;
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* full-screen overlay menu */
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 12;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 10px;
    padding: 130px var(--pad) 50px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.93);
    -webkit-backdrop-filter: blur(22px) saturate(1.4);
    backdrop-filter: blur(22px) saturate(1.4);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }
  .nav-open .site-nav > :nth-child(1) { transition-delay: 60ms; }
  .nav-open .site-nav > :nth-child(2) { transition-delay: 120ms; }
  .nav-open .site-nav > :nth-child(3) { transition-delay: 180ms; }
  .nav-open .site-nav > :nth-child(4) { transition-delay: 240ms; }
  .nav-open .site-nav > :nth-child(5) { transition-delay: 300ms; }
  .nav-open .site-nav > * { opacity: 1; transform: translateY(0); }

  .home .site-nav {
    background: rgba(10, 10, 10, 0.88);
    text-shadow: none;
  }
  .home .site-nav { animation: none; filter: none; transform: none; }
  /* overlay menu is always dark glass — keep header chrome white while open,
     even when the slide behind is bright */
  .home.nav-open .site-header { color: #fff; text-shadow: none; }
  .home.nav-open .brand-sub { color: rgba(255,255,255,.75); }

  .sub-menu {
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    box-shadow: none !important;
    background: none !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    color: inherit;
    min-width: 0;
    padding: 6px 0 10px 18px;
    border-radius: 0;
    transition: none;
  }
  .sub-menu a { padding: 9px 0; border-radius: 0; font-size: 15px; }
  .sub-menu a:hover { background: none; }
  .sub-count { color: inherit; opacity: .5; }
  .nav-social { margin-left: 0; margin-top: 14px; }
  .hero-bars { right: auto; left: var(--pad); bottom: 26px; }
  .slide-text { bottom: 76px; max-width: calc(100vw - 2 * var(--pad)); }
  .scroll-cue { display: none; }
  .post-hero { height: 52svh; }
  .form-row { grid-template-columns: 1fr; }
  .ph { flex-basis: calc(var(--r) * 150px); }
  .memento-page, .gallery-page { padding-bottom: 44px; }
  .post-page { padding-bottom: 44px; }
  .memento-heading { margin-bottom: 34px; }
  .essay-list { gap: 44px; }
  .site-footer { padding: 34px var(--pad) 26px; }
  /* brand on top, then the three labelled columns side by side */
  .footer-inner { grid-template-columns: repeat(3, 1fr); gap: 26px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-copy { margin-top: 28px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.current,
  .home .brand-name, .home .brand-sub, .home .site-nav,
  .slide-text > *, .scroll-cue { animation: none; opacity: 1; transform: none; filter: none; }
  .scroll-cue { transform: translateX(-50%); }
  .hero-bars .bar.current span { animation: none; width: 100%; }
  .js .ph, .js .rv { opacity: 1; transform: none; filter: none; }
  .js .ph.in, .js .rv.in { animation: none; }
  .contact-eyebrow, .contact-heading, .contact-lede, .contact-form, .contact-social,
  .about-kicker, .about-body { animation: none; opacity: 1; }
  .ph img, .slide, .lightbox, .lb-img, .g-img img, .essay-img img { transition: none; }
  .lightbox .lb-img { transform: none; filter: none; opacity: 1; }
  .sub-menu { transition: none; }
}
