:root {
  --paper: #fffaf4;
  --ink: #040404;
  --blue: #073a86;
  --line: rgba(4, 4, 4, 0.18);
  --serif: "Lora", Georgia, serif;
  --name-serif: "Playfair Display", Georgia, serif;
  --sans: "Avenir Next", Avenir, ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(7, 58, 134, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 58, 134, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}

a { color: var(--blue); }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.94);
  backdrop-filter: blur(14px);
}

.site-header nav { display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.6rem); }
.site-header nav a { color: var(--ink); font-size: 0.78rem; text-transform: uppercase; text-decoration: none; }
.site-header nav a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  width: 2.4rem; height: 2.4rem;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--paper);
  color: var(--blue);
  cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle span { display: block; width: 1.05rem; height: 2px; background: currentColor; position: relative; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.mobile-nav {
  display: none;
  position: sticky; top: 4.2rem; z-index: 19;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(7, 58, 134, 0.14);
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: 0.85rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(4,4,4,0.12); }
.mobile-nav a:last-child { border-bottom: 0; }

main { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
h1, h2, h3, p { margin-top: 0; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(280px, 0.7fr);
  column-gap: clamp(1.4rem, 3.2vw, 2.75rem);
  row-gap: clamp(1.15rem, 2.2vw, 1.9rem);
  padding: clamp(2.4rem, 5vw, 4.6rem) 0 clamp(1.9rem, 3.5vw, 3rem);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
h1 { max-width: 680px; margin: 0.55rem 0 1rem; font-family: var(--name-serif); font-size: clamp(2.55rem, 4.6vw, 4.4rem); font-weight: 500; line-height: 1; }
.hero-bio { max-width: 690px; margin-bottom: 1.35rem; }
.hero-bio p { margin: 0 0 0.85rem; font-size: clamp(1rem, 1.3vw, 1.14rem); line-height: 1.58; }
.hero-bio p:last-child { margin-bottom: 0; }
.portrait { align-self: center; margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 3.35; object-fit: cover; object-position: 28% 50%; filter: contrast(1.05); }

.mark-strip { grid-column: 1 / -1; display: flex; flex-wrap: nowrap; align-items: center; gap: 1rem; width: 100%; margin-top: -0.45rem; overflow-x: auto; padding-bottom: 0.2rem; }
.mark-strip span { color: var(--blue); font-size: clamp(1rem, 1.7vw, 1.28rem); }
.mark-strip .divider { width: clamp(1.8rem, 4vw, 3rem); height: 1px; background: rgba(7, 58, 134, 0.32); }

section.work, section.photos, section.writing { position: relative; padding: clamp(2.5rem, 4.8vw, 4.1rem) 0; margin-top: clamp(0.7rem, 1.6vw, 1.35rem); }
section.work { padding-top: clamp(2rem, 3.6vw, 3rem); }

.section-title { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.15rem; flex-wrap: wrap; }
.section-title .label { color: var(--blue); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }

.work-list { background: rgba(255, 250, 244, 0.76); box-shadow: 0 0 0 1rem rgba(255, 250, 244, 0.76); padding: 0.4rem 0; }
.work-row { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid rgba(4,4,4,0.1); align-items: flex-start; }
.work-row:hover { background: rgba(7, 58, 134, 0.04); }
.work-logo-slot { width: 4.4rem; height: 4.4rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.work-logo-slot a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.work-logo-slot img { max-width: 100%; max-height: 100%; object-fit: contain; }
.work-role { font-size: 0.78rem; color: var(--blue); font-weight: 800; text-transform: uppercase; margin-bottom: 0.3rem; }
.work-row p { margin: 0; font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: rgba(4,4,4,0.78); line-height: 1.55; }

/* Photos: desktop hover-scrub */
.photo-desktop { background: rgba(255, 250, 244, 0.9); box-shadow: 0 0 0 1rem rgba(255, 250, 244, 0.76); padding: 1.2rem; }
.hero-frame { position: relative; }
.hero-frame img { width: 100%; aspect-ratio: 16/9; object-fit: contain; display: block; background: #040404; }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border: 1px solid rgba(255,250,244,0.4); background: rgba(4,4,4,0.4); color: #fffaf4; font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.hero-nav-prev { left: 0.6rem; }
.hero-nav-next { right: 0.6rem; }
.hero-caption { margin: 1rem 0; color: rgba(4,4,4,0.68); font-size: 0.95rem; line-height: 1.5; min-height: 1.5em; }
.thumb-row { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.2rem; }
.thumb-row button { flex: 0 0 5.2rem; height: 3.6rem; padding: 0; border: 2px solid transparent; background: transparent; cursor: pointer; opacity: 0.55; }
.thumb-row button.is-active { border-color: var(--blue); opacity: 1; }
.thumb-row img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Photos: mobile story swipe */
.photo-mobile { display: none; position: relative; width: 100%; aspect-ratio: 3/4; background: #040404; overflow: hidden; box-shadow: 0 0 0 1rem rgba(255, 250, 244, 0.76); }
.story-dots { position: absolute; top: 0.7rem; left: 0.7rem; right: 0.7rem; display: flex; gap: 0.3rem; z-index: 3; }
.story-dots span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,250,244,0.35); }
.story-dots span.is-active { background: #fffaf4; }
.photo-mobile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-scrim { position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0) 55%, rgba(0,0,0,0.82) 100%); }
.story-zone { position: absolute; top: 0; bottom: 0; width: 35%; border: 0; background: transparent; }
.story-zone-prev { left: 0; }
.story-zone-next { right: 0; }
.story-caption { position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem; margin: 0; color: #fffaf4; font-size: 0.92rem; line-height: 1.45; z-index: 2; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip { padding: 0.35rem 0.85rem; border: 1px solid var(--blue); background: transparent; color: var(--blue); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; border-radius: 999px; cursor: pointer; }
.filter-chip.is-active { background: var(--blue); color: var(--paper); }

.list { border-top: 1px solid var(--line); }
.list-row { padding: 0.9rem 0; border-bottom: 1px solid var(--line); font-size: clamp(0.95rem, 1.2vw, 1.05rem); line-height: 1.55; color: var(--ink); }
.list-row .tag { color: var(--blue); font-weight: 800; text-transform: uppercase; font-size: 0.78rem; }
.list-row a { color: inherit; text-decoration: underline; text-decoration-color: var(--blue); }

.contact { display: flex; justify-content: center; gap: 0.85rem; align-items: center; min-height: 7rem; padding: clamp(2.5rem, 4.8vw, 4.1rem) 0; margin-top: clamp(0.7rem, 1.6vw, 1.35rem); background: rgba(255, 250, 244, 0.76); box-shadow: 0 0 0 1rem rgba(255, 250, 244, 0.76); }
.contact a { color: var(--ink); text-decoration: none; }
.contact a:hover { color: var(--blue); }
.contact-divider { color: var(--blue); font-size: 0.95rem; }

@media (max-width: 840px) {
  .site-header nav { display: none; }
  .menu-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 1.8rem 0 1.2rem; }
  .work-row { flex-direction: column; gap: 0.6rem; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .photo-desktop { display: none; }
  .photo-mobile { display: block; }
  .contact { padding-left: 1rem; padding-right: 1rem; flex-wrap: wrap; }
}
