/* =========================================================
   NUNLARGER FILMS · Perry Williams IV
   Editorial / cinematic portfolio system
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:root {
  --bg: #F7F7F5;
  --bg-2: #EFEEEA;
  --bg-3: #E8E8E8;
  --ink: #050505;
  --ink-2: #222;
  --muted: #8A8A86;
  --line: rgba(5,5,5,0.10);
  --line-2: rgba(5,5,5,0.20);
  --accent: #B11226;
  --accent-dark: #8A0D1D;
  --white: #FFFFFF;
  --black: #050505;
  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 64px);
  --radius: 22px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.eyebrow-accent { color: var(--accent); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; color: var(--ink); }
h1 { font-size: clamp(48px, 8vw, 128px); line-height: 0.94; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 5.5vw, 72px); line-height: 1.02; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 32px); line-height: 1.15; }
p { color: var(--ink-2); }

.display-serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-style: italic;
}

code {
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  background: rgba(5,5,5,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

/* ---------- Loader (page reveal curtain) ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black);
  display: grid;
  place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  color: var(--white);
  font-family: 'Instrument Serif', serif;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(12px);
  animation: loaderIn 0.9s var(--ease-out) forwards;
}
.loader-mark small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.36em;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
  font-weight: 500;
}
@keyframes loaderIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, padding 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(247,247,245,0.85);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  padding: 14px var(--pad);
}
.nav.dark-nav {
  color: var(--white);
}
.nav.dark-nav .nav-logo,
.nav.dark-nav .nav-links a { color: var(--white); }
.nav.dark-nav .nav-toggle span { background: var(--white); }
.nav.dark-nav.scrolled {
  background: rgba(5,5,5,0.75);
  border-bottom-color: rgba(255,255,255,0.08);
}
.nav.dark-nav.scrolled .nav-logo,
.nav.dark-nav.scrolled .nav-links a { color: var(--white); }

.nav-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--accent); }
.nav-book {
  padding: 10px 22px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-book::after { display: none; }
.nav-book:hover { background: var(--accent-dark); transform: translateY(-1px); color: var(--white) !important; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
  gap: 10px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-ghost {
  border-color: var(--line-2);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-ghost.on-dark {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-ghost.on-dark:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 var(--pad) clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-brand {
  position: absolute;
  top: clamp(96px, 12vh, 140px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  color: var(--ink);
  pointer-events: none;
  will-change: opacity, transform;
}
.hero-brand .brand-mark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: clamp(22px, 2.6vw, 40px);
  letter-spacing: -0.005em;
  line-height: 1;
}

/* Perry Williams IV — vertical editorial label pinned to right edge */
.hero-name {
  position: absolute;
  top: 50%;
  right: clamp(16px, 3vw, 40px);
  transform: translateY(-50%) rotate(180deg);
  z-index: 3;
  writing-mode: vertical-rl;
  color: var(--ink-2);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 20px;
  will-change: opacity, transform;
}
.hero-name .hero-name-label {
  font-weight: 600;
  font-size: clamp(11px, 0.95vw, 13px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink);
}
.hero-name .hero-name-role {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(12px, 1vw, 15px);
  color: var(--muted);
  letter-spacing: 0.02em;
}
.hero-name::after {
  content: '';
  width: 1px;
  height: 44px;
  background: linear-gradient(to top, transparent, var(--line-2));
  margin-top: 8px;
}

.hero-headshot {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 1;
  will-change: opacity, transform;
}
.hero-headshot img {
  width: auto;
  height: 100vh;
  max-height: 108vh;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}

.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-title {
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
}
.hero-title .accent {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.hero-right {
  max-width: 460px;
  justify-self: end;
  text-align: left;
}
.hero-tagline {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 22px;
}
.hero-tagline strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.scroll-cue::after {
  content: '';
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); }
  50%  { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Sections ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 140px) var(--pad);
}
.section-narrow { max-width: 1080px; }
.section-full { max-width: none; padding-left: 0; padding-right: 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 56px); }
.section-head h2 { max-width: 22ch; }

/* ---------- CATEGORY CARDS (home) ---------- */
.categories {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cat-card {
  position: relative;
  display: block;
  height: 92vh;
  min-height: 620px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  border-top: 1px solid var(--line);
}
.cat-card:first-child { border-top: 0; }
.cat-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.cat-media img, .cat-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.8s var(--ease-out), filter 0.6s ease;
  filter: brightness(0.72) saturate(1.05);
}
.cat-card:hover .cat-media img,
.cat-card:hover .cat-media video {
  transform: scale(1.05);
  filter: brightness(0.85) saturate(1.15);
}
.cat-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 40%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.cat-inner {
  height: 100%;
  padding: clamp(40px, 6vw, 88px) var(--pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.cat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.cat-top .cat-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  letter-spacing: 0;
  color: var(--accent);
  text-transform: none;
}
.cat-middle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.cat-title {
  font-size: clamp(64px, 12vw, 200px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--white);
  text-transform: uppercase;
}
.cat-sub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.cat-sub span { position: relative; }
.cat-sub span + span::before {
  content: '·';
  position: absolute;
  left: -14px;
  color: var(--accent);
}
.cat-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cat-cta {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--accent);
  border-radius: 999px;
  transition: transform 0.3s var(--ease-out), background 0.3s ease;
}
.cat-cta:hover { background: var(--accent-dark); transform: translateY(-2px); }
.cat-cta .arrow { transition: transform 0.3s var(--ease-out); }
.cat-cta:hover .arrow { transform: translateX(4px); }
.cat-count {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,0.7);
}

/* ---------- FOUR AT A GLANCE (small strip on home) ---------- */
.disciplines {
  background: var(--black);
  color: var(--white);
  padding: clamp(60px, 8vw, 100px) var(--pad);
}
.disciplines-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
}
.disciplines h2 {
  color: var(--white);
  font-size: clamp(32px, 4.5vw, 60px);
}
.disciplines h2 .accent { color: var(--accent); font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.disc-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.disc-item {
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 20px;
}
.disc-item .num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 24px;
  display: block;
  margin-bottom: 12px;
}
.disc-item h4 {
  color: var(--white);
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.disc-item p {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  margin: 0;
}

/* ---------- ABOUT TEASER (home) ---------- */
.about-teaser {
  padding: clamp(80px, 10vw, 140px) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-teaser-text .eyebrow { color: var(--accent); }
.about-teaser-text h2 { margin-bottom: 28px; max-width: 18ch; }
.about-teaser-text p { font-size: 18px; margin: 0 0 20px; max-width: 52ch; }
.about-teaser-image {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #050505;
}
.about-teaser-image img,
.about-teaser-image video {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease-out);
  display: block;
}
.about-teaser:hover .about-teaser-image img,
.about-teaser:hover .about-teaser-image video { transform: scale(1.04); }

/* ---------- CATEGORY / PORTFOLIO PAGE ---------- */
.page-hero {
  position: relative;
  height: 92vh;
  min-height: 640px;
  overflow: hidden;
  color: var(--white);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.page-hero-media {
  position: absolute; inset: 0; z-index: -1;
}
.page-hero-media img, .page-hero-media video {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.65);
}
.page-hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, transparent 40%, rgba(0,0,0,0.75) 100%);
}
.page-hero-inner {
  padding: 0 var(--pad) clamp(48px, 6vw, 88px);
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}
.page-hero .breadcrumb {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}
.page-hero .breadcrumb a { color: var(--accent); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(64px, 12vw, 200px);
  font-weight: 600;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  line-height: 0.88;
}
.page-hero .lede {
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  max-width: 620px;
  margin-top: 24px;
}

.gallery-intro {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 10vw, 120px) var(--pad) clamp(32px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.gallery-intro .eyebrow { color: var(--accent); }
.gallery-intro h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  max-width: 20ch;
}
.gallery-intro p { font-size: 17px; max-width: 60ch; color: var(--ink-2); }

.gallery {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 40px) var(--pad) clamp(80px, 10vw, 140px);
  columns: 3 320px;
  column-gap: clamp(14px, 1.5vw, 22px);
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 clamp(14px, 1.5vw, 22px);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
  transition: transform 0.4s var(--ease-out);
}
.gallery figure:hover { transform: translateY(-3px); }
.gallery figure img,
.gallery figure video {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s var(--ease-out), filter 0.4s ease;
}
.gallery figure:hover img,
.gallery figure:hover video {
  transform: scale(1.04);
  filter: brightness(1.05);
}
.gallery figure.video-tile { cursor: pointer; }
.gallery figure.video-tile img.tile-poster-img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 0.35s ease, transform 0.8s var(--ease-out);
}
.gallery figure.video-tile.playing img.tile-poster-img { opacity: 0; }

/* Hover-preview video sits on top of the poster, same box */
.gallery figure.video-tile .tile-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 2;
  background: #050505;
}
.gallery figure.video-tile.playing .tile-hover-video { opacity: 1; }

.gallery figure.video-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.32) 0%, transparent 55%);
  opacity: 0.35;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.gallery figure.video-tile:hover::before { opacity: 0.15; }

.gallery figure.video-tile .play-mark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: 64px; height: 64px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-out), background 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.gallery figure.video-tile:hover .play-mark { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); }
.gallery figure.video-tile.playing .play-mark { opacity: 0; }
.gallery figure.video-tile .play-mark::after {
  content: '';
  width: 0; height: 0;
  border-left: 16px solid #050505;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 4px;
  transition: border-left-color 0.3s ease;
}
.gallery figure.video-tile:hover .play-mark::after { border-left-color: #fff; }

/* Lightbox video */
.lightbox-frame video {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  background: #000;
  display: block;
}
.gallery figure figcaption {
  position: absolute;
  left: 16px; bottom: 16px; right: 16px;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
  z-index: 2;
}
.gallery figure::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.gallery figure:hover::after { opacity: 1; }
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery figure figcaption .caption-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.gallery figure figcaption .caption-title {
  font-size: 16px;
  font-weight: 500;
}

/* ---------- ABOUT PAGE ---------- */
.about-hero {
  padding: clamp(160px, 20vw, 220px) var(--pad) clamp(60px, 8vw, 100px);
  max-width: var(--maxw);
  margin: 0 auto;
}
.about-hero .eyebrow { color: var(--accent); }
.about-hero h1 {
  font-size: clamp(48px, 7vw, 112px);
  max-width: 16ch;
  margin-bottom: 40px;
}
.about-hero h1 .accent { color: var(--accent); font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }

.about-split {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.about-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 110px;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-body h2 { margin-bottom: 20px; font-size: clamp(28px, 3vw, 40px); }
.about-body p { font-size: 17px; margin: 0 0 20px; max-width: 60ch; }
.about-body p strong { color: var(--ink); font-weight: 600; }
.about-block { margin-bottom: 56px; }
.about-block:last-child { margin-bottom: 0; }

.timeline {
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-year {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 22px;
}
.timeline-desc { color: var(--ink); font-size: 15px; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}

/* ---------- SERVICES PAGE ---------- */
.services-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 28px);
}
.svc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}
.svc:hover { transform: translateY(-4px); border-color: var(--line-2); }
.svc-tag {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 24px;
}
.svc h3 { font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; }
.svc p { color: var(--ink-2); font-size: 15px; margin: 0 0 24px; }
.svc-list {
  list-style: none;
  padding: 0; margin: 0 0 32px;
  border-top: 1px solid var(--line);
}
.svc-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 12px;
}
.svc-list li::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 999px;
}
.svc-price {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.svc-price small {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.svc-price strong {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- CONTACT PAGE ---------- */
.contact-hero {
  padding: clamp(160px, 20vw, 220px) var(--pad) clamp(48px, 6vw, 80px);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: left;
}
.contact-hero .eyebrow { color: var(--accent); }
.contact-hero h1 {
  font-size: clamp(48px, 7vw, 112px);
  max-width: 14ch;
  margin-bottom: 24px;
}
.contact-hero h1 .accent {
  color: var(--accent);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
}
.contact-hero p { font-size: 18px; max-width: 60ch; color: var(--ink-2); }

.contact-split {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad) clamp(80px, 10vw, 140px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  padding: 12px 0;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}
.contact-form button {
  width: 100%;
  margin-top: 12px;
  background: var(--black);
  color: var(--white);
  border: 0;
  padding: 18px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.25s ease, transform 0.25s ease;
}
.contact-form button:hover { background: var(--accent); transform: translateY(-1px); }

.contact-side { padding-top: 8px; }
.contact-side h3 { font-size: 22px; margin-bottom: 24px; }
.contact-side .link-row {
  display: flex;
  flex-direction: column;
}
.contact-side .link-row a {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  transition: color 0.2s ease, padding 0.25s ease;
}
.contact-side .link-row a:hover {
  color: var(--accent);
  padding-left: 8px;
}
.contact-side .link-row a small {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: clamp(64px, 8vw, 100px) var(--pad) 32px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer h4 {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-brand h3 {
  color: var(--white);
  font-size: clamp(32px, 3.5vw, 44px);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.footer-brand h3 em {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 36ch; font-size: 14px; }

.footer-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
}
.footer-col a { transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}
.back-top {
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.back-top:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.94);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 40px;
  animation: fadeIn 0.35s ease;
}
.lightbox[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  background: transparent;
  border: 0;
  color: var(--white);
  font-size: 36px;
  line-height: 1;
  padding: 6px 12px;
}
.lightbox-frame {
  width: min(100%, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-frame img,
.lightbox-frame iframe {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
}
.lightbox-frame iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  background: #000;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Reveal on scroll ----------
   "Cut the mustard": content is visible by default so any JS/observer
   failure leaves the page usable. JS adds `.js-reveal` to <html> only
   after confirming the IntersectionObserver is wired; only then do
   reveal targets start hidden and fade in via .in-view.
*/
.reveal, .reveal-stagger > * {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
}
html.js-reveal .reveal.in-view { opacity: 1; transform: translateY(0); }
html.js-reveal .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.js-reveal .reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
html.js-reveal .reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.05s; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.15s; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.25s; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.35s; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.45s; }
html.js-reveal .reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 24px;
  }
  .nav.open.dark-nav .nav-links { background: var(--black); }
  .nav.open .nav-links a { padding: 16px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav.open.dark-nav .nav-links a { border-color: rgba(255,255,255,0.08); }
  .nav.open .nav-book { margin-top: 12px; align-self: flex-start; padding: 12px 24px; }

  .hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .hero-right { justify-self: start; max-width: 100%; }
  .hero-headshot img { height: min(96vh, 780px); }
  /* Vertical name is fussy on narrow screens — hide it there */
  .hero-name { display: none; }

  .disciplines-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .disc-list { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  .about-teaser { grid-template-columns: 1fr; }
  .about-teaser-image { order: -1; max-width: 480px; }

  .gallery-intro { grid-template-columns: 1fr; gap: 20px; }
  .about-split { grid-template-columns: 1fr; }
  .about-portrait { position: static; max-width: 460px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 14px; text-align: center; }

  .cat-card { height: auto; min-height: 78vh; }
  .cat-title { font-size: clamp(48px, 16vw, 120px); }

  .timeline-row { grid-template-columns: 80px 1fr; gap: 16px; }
}

@media (max-width: 520px) {
  .disc-list { grid-template-columns: 1fr; }
  .cat-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}
