:root {
  color-scheme: light;
  --ink: #111;
  --muted: #646b67;
  --rule: #d9dedb;
  --paper: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Lucida Sans', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #6a7a70; outline-offset: 5px; }

.site-header { position: absolute; z-index: 10; top: 0; left: 0; display: flex; width: 100%; align-items: flex-start; justify-content: space-between; padding: 32px 40px; color: #fff; }
.site-brand { color: inherit; font-family: var(--sans); font-size: 1.05rem; font-weight: 900; letter-spacing: .055em; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.corner-menu { position: fixed; z-index: 20; top: 15px; right: 19px; width: 52px; height: 52px; }
.menu-toggle { position: absolute; z-index: 2; top: 21px; right: 21px; display: grid; width: 10px; height: 10px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #fff; cursor: pointer; transition: width .25s ease, height .25s ease, top .25s ease, right .25s ease; }
.menu-toggle:hover { transform: scale(1.2); }
.menu-toggle-icon, .menu-toggle-icon::after { position: absolute; display: block; width: 16px; height: 1px; background: currentColor; opacity: 0; transition: transform .28s ease, opacity .18s ease; content: ''; }
.menu-toggle-icon::after { transform: rotate(90deg); }
.corner-menu.is-open .menu-toggle { top: 15px; right: 15px; width: 22px; height: 22px; background: transparent; }
.corner-menu.is-open .menu-toggle-icon { opacity: 1; transform: rotate(45deg); }
.corner-menu.is-open .menu-toggle-icon::after { opacity: 1; transform: rotate(90deg); }
.menu-options { position: absolute; top: 55px; right: 0; display: grid; grid-template-columns: 1fr; width: 210px; padding: 5px 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .24s ease, visibility .24s ease, transform .28s ease; }
.menu-options::after { position: absolute; top: calc(var(--indicator-center, 20px) - 2px); right: 5px; color: #fff; content: '‹'; font: 400 1rem/1 var(--sans); text-shadow: 0 1px 6px rgba(0,0,0,.42); transform: translateY(-50%); transition: top .22s cubic-bezier(.22,.72,.24,1); pointer-events: none; }
.corner-menu.is-open .menu-options { opacity: 1; visibility: visible; transform: translateY(0); }
.menu-option { display: block; padding: 13px 22px 13px 7px; color: #fff; font: 700 .62rem/1.3 var(--sans); letter-spacing: .08em; text-align: right; text-decoration: none; text-shadow: 0 1px 6px rgba(0,0,0,.42); white-space: nowrap; transition: padding-right .18s ease, transform .12s ease; }
.menu-option:last-child { border-bottom: 0; }
.menu-option:hover, .menu-option:focus-visible { padding-right: 12px; }
.menu-option:active { transform: scale(.98); }
.menu-option:focus-visible, .menu-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.hero { position: relative; display: grid; min-height: 100svh; place-items: center; overflow: hidden; padding: 120px 7vw 90px; background: #111 url('assets/justinhedgehero.jpg') center 54% / cover no-repeat; color: #fff; text-align: center; }
.hero::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(180deg, rgba(5,9,10,.25), rgba(5,9,10,.12) 42%, rgba(5,9,10,.34)); content: ''; }
.hero::after { position: absolute; z-index: 0; inset: 0; background: var(--preview-image) center 54% / cover no-repeat; content: ''; opacity: 0; transition: opacity .65s ease; }
.hero.has-preview::after { opacity: 1; }
.hero-content { position: relative; z-index: 2; width: min(1100px, 100%); }
.hero h1 { margin: 0; font-family: var(--sans); font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 900; line-height: .96; letter-spacing: -.055em; text-shadow: 0 1px 3px rgba(0,0,0,.2); }
.home-page .site-brand { visibility: hidden; }
.home-page .corner-menu { visibility: hidden; }
.home-navigation { display: flex; flex-direction: column; align-items: center; margin-top: 25px; }
.home-orbit-toggle { position: relative; display: grid; width: 24px; height: 24px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.home-orbit-toggle::before { position: absolute; inset: 5px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; animation: orbit-pulse 2.4s ease-out infinite; content: ''; }
.home-orbit-toggle span { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 1px 7px rgba(0,0,0,.4); transition: transform .3s ease; }
.home-orbit-toggle:hover span, .home-orbit-toggle[aria-expanded='true'] span { transform: scale(1.25); }
@keyframes orbit-pulse { 0% { transform: scale(.65); opacity: .78; } 75%, 100% { transform: scale(1.8); opacity: 0; } }
.hero-categories { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: 'first second third'; align-items: start; column-gap: 18px; width: min(520px, 100%); margin: 0 auto; padding-top: 0; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-7px); transition: opacity .24s ease, transform .28s cubic-bezier(.22,.72,.24,1), visibility .24s; }
.home-navigation.is-open .hero-categories { margin-top: 14px; visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
.hero-categories a { display: block; padding: 4px 0; color: #fff; font: 400 clamp(1rem, 1.4vw, 1.15rem)/1.35 var(--serif); letter-spacing: .01em; text-align: center; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.36); white-space: nowrap; opacity: 0; transition: transform .4s cubic-bezier(.2,.75,.25,1), opacity .28s ease; }
.hero-categories a:nth-child(1) { grid-area: first; justify-self: start; }
.hero-categories a:nth-child(2) { grid-area: second; justify-self: center; transform: translateY(1cm); }
.hero-categories a:nth-child(3) { grid-area: third; justify-self: end; }
.hero-categories a:nth-child(1) { transform: translate(24px, -11px) scale(.9); transform-origin: right center; }
.hero-categories a:nth-child(2) { transform: translateY(-22px) scale(.9); transform-origin: center center; }
.hero-categories a:nth-child(3) { transform: translate(-24px, -11px) scale(.9); transform-origin: left center; }
.home-navigation.is-open .hero-categories a { opacity: 1; }
.home-navigation.is-open .hero-categories a:nth-child(1) { transform: translate(0, 0) scale(1); transition-delay: .03s; }
.home-navigation.is-open .hero-categories a:nth-child(2) { transform: translateY(1cm) scale(1); transition-delay: .13s; }
.home-navigation.is-open .hero-categories a:nth-child(3) { transform: translate(0, 0) scale(1); transition-delay: .07s; }
.home-navigation.is-open .hero-categories a:hover, .home-navigation.is-open .hero-categories a:focus-visible { opacity: .86; }
.home-navigation.is-open .hero-categories a:nth-child(1):hover, .home-navigation.is-open .hero-categories a:nth-child(1):focus-visible { transform: translateX(4px); }
.home-navigation.is-open .hero-categories a:nth-child(2):hover, .home-navigation.is-open .hero-categories a:nth-child(2):focus-visible { transform: translateY(1cm) translateX(4px); }
.home-navigation.is-open .hero-categories a:nth-child(3):hover, .home-navigation.is-open .hero-categories a:nth-child(3):focus-visible { transform: translateX(-4px); }
.home-about-link { position: absolute; z-index: 3; bottom: 30px; left: 50%; color: rgba(255,255,255,.72); font: 400 .62rem/1.4 var(--serif); letter-spacing: .04em; text-decoration: none; text-shadow: 0 1px 7px rgba(0,0,0,.4); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 5px); transition: opacity .28s ease, visibility .28s ease, transform .3s ease, color .2s ease; }
.hero.has-open-navigation .home-about-link { opacity: .82; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); transition-delay: .2s; }
.home-about-link:hover, .home-about-link:focus-visible { color: #fff; opacity: 1; }

.page-hero { position: relative; display: flex; min-height: 56svh; align-items: flex-end; padding: 150px max(40px, calc((100% - 1100px)/2)) 64px; background-color: #171a19; background-image: var(--page-image, url('assets/justinhedgehero.jpg')); background-position: center 54%; background-size: cover; background-repeat: no-repeat; color: #fff; }
.page-hero::before { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.45)); content: ''; }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { margin: 0; font: 900 clamp(2.7rem, 7vw, 6rem)/.98 var(--sans); letter-spacing: -.04em; }
.page-body { width: min(1100px, calc(100% - 80px)); min-height: 25vh; margin: 0 auto; padding: 42px 0 110px; }
.cinematography-project-title { margin: 0 0 12px; color: #646b67; font: 400 1rem/1.4 var(--serif); }
.cinematography-video { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.cinematography-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.cinematography-project-credit { margin: 11px 0 0; color: #646b67; font: 400 .78rem/1.5 var(--serif); }
.score-collection { width: 100%; }
.score-collection-title { margin: 0 0 22px; color: #646b67; font: 400 1rem/1.4 var(--serif); }
.score-video-title { margin: 0 0 12px; color: #646b67; font: 400 .82rem/1.4 var(--sans); letter-spacing: .08em; }
.score-video { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #111; }
.score-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.score-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-top: 12px; }
.score-step { width: 34px; height: 34px; padding: 0; border: 0; background: transparent; color: #111; font-size: 1.2rem; cursor: pointer; transition: color .2s ease, transform .18s ease; }
.score-step:first-child { justify-self: end; }
.score-step:last-child { justify-self: start; }
.score-step:hover { color: #69777d; transform: scale(1.08); }
.score-count { color: #646b67; font: 400 .7rem/1.4 var(--sans); font-variant-numeric: tabular-nums; }

@media (max-width: 650px) {
  .site-header { padding: 22px 20px; }
  .site-brand { font-size: .9rem; white-space: nowrap; }
  .corner-menu { top: 5px; right: 1px; }
  .menu-options { top: 48px; right: -1px; width: 190px; padding: 4px 10px; }
  .menu-option { padding: 12px 22px 12px 6px; font-size: .58rem; }
  .hero { min-height: 100svh; padding: 100px 22px 65px; }
  .home-about-link { bottom: 18px; font-size: .6rem; }
  .home-navigation { margin-top: 20px; }
  .home-navigation.is-open .hero-categories { margin-top: 10px; }
  .hero-categories { column-gap: 8px; width: 100%; }
  .hero-categories a { font-size: .7rem; }
  .hero h1 { font-size: clamp(3.2rem, 13vw, 5.5rem); }
  .page-hero { min-height: 48svh; padding: 125px 20px 42px; }
  .page-body { padding: 42px 0 75px; }
  .score-video-title { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; } }

/* Gentle content transitions work in the local file preview as well as on a server. */
@keyframes page-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
body.page-arriving .hero-content,
body.page-arriving .site-header,
body.page-arriving .page-hero-inner { animation: page-arrive .38s cubic-bezier(.22,.72,.24,1) both; }
body.page-leaving .hero-content,
body.page-leaving .site-header,
body.page-leaving .page-hero,
body.page-leaving .page-body { opacity: 0; transform: translateY(-4px); transition: opacity .16s ease, transform .18s ease; }
.transition-orbit { position: fixed; z-index: 1000; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255,255,255,.14), 0 1px 8px rgba(0,0,0,.25); pointer-events: none; }
.wordmark-flight { position: fixed; z-index: 1001; top: 0; left: 0; display: block; color: #fff; font-family: var(--sans); font-weight: 900; white-space: nowrap; text-shadow: 0 1px 3px rgba(0,0,0,.2); pointer-events: none; }

/* Spacious, text-led About page inspired by the Jazz Club Films About layout. */
.about-page { background: #fff; color: #111; }
.about-page .site-header { position: absolute; height: 70px; padding: 0; color: #111; }
.about-page .site-brand { top: 0; left: 0; color: #111; text-shadow: none; }
.about-page .corner-menu { top: 0; right: 0; }
.about-page .menu-toggle { background: #111; }
.about-page .menu-toggle-icon, .about-page .menu-toggle-icon::after { background: #111; }
.about-page .menu-option { color: #111; text-shadow: none; }
.about-page .menu-options::after { color: #111; text-shadow: none; }
.about-hero { position: relative; height: 230px; background: #171a19 url('assets/justinhedgehero.jpg') center 54% / cover no-repeat; }
.about-hero::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.25)); content: ''; }
.about-content { width: min(1100px, calc(100% - 80px)); min-height: calc(100vh - 230px); margin: 0 auto; padding: 70px 0 110px; }
.about-section { margin: 0 0 46px; }
.about-section h1, .about-section h2 { margin: 0 0 14px; color: #69777d; font: 700 .68rem/1.4 var(--sans); letter-spacing: .18em; }
.about-section p { max-width: 900px; color: #111; font: clamp(1.4rem, 3.2vw, 2.15rem)/1.35 var(--serif); }
.about-section a { color: inherit; text-decoration: none; }
.about-section a:hover, .about-section a:focus-visible { color: #69777d; }
@media (max-width: 650px) {
  .about-page .site-header { height: 60px; padding: 0; }
  .about-page .site-brand { top: 0; left: 0; }
  .about-page .corner-menu { top: 0; right: 0; }
  .about-hero { height: 170px; }
  .about-content { width: calc(100% - 40px); min-height: calc(100svh - 170px); padding: 48px 0 75px; }
  .about-section { margin-bottom: 36px; }
}

/* Photography gallery: swipe on phones, step through images on desktop. */
.photo-gallery { width: 100%; }
.photo-track { display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.photo-track::-webkit-scrollbar { display: none; }
.photo-slide { display: grid; flex: 0 0 100%; height: min(68vh, 760px); place-items: center; overflow: hidden; padding: 0; border: 0; background: #f4f3f1; cursor: zoom-in; scroll-snap-align: start; }
.photo-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-slide:focus-visible, .photo-step:focus-visible, .photo-lightbox button:focus-visible { outline: 2px solid #69777d; outline-offset: 4px; }
.photo-controls { display: flex; align-items: center; justify-content: center; gap: 22px; padding-top: 20px; }
.photo-step { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #111; font-size: 1.2rem; cursor: pointer; transition: background .2s ease; }
.photo-step:hover { background: #f0f0ed; }
.photo-count { min-width: 54px; color: #646b67; font: 600 .62rem/1 var(--sans); letter-spacing: .12em; text-align: center; }
.photo-lightbox { position: fixed; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 48px 72px; border: 0; background: rgba(10, 11, 11, .97); color: #fff; }
.photo-lightbox[open] { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; justify-items: center; }
.photo-lightbox::backdrop { background: rgba(10, 11, 11, .97); }
.lightbox-image { grid-column: 2; grid-row: 1; width: 100%; height: 100%; object-fit: contain; }
.photo-lightbox button { z-index: 1; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font: 300 1.5rem/1 var(--sans); cursor: pointer; transition: background .18s ease; }
.photo-lightbox button:hover { background: rgba(255,255,255,.16); }
.lightbox-prev { grid-column: 1; grid-row: 1; }
.lightbox-next { grid-column: 3; grid-row: 1; }
@media (max-width: 650px) {
  .photo-track { gap: 12px; padding-right: 14vw; padding-bottom: 2px; scroll-padding-left: 0; }
  .photo-slide { flex-basis: 86%; height: min(62svh, 620px); }
  .photo-controls { display: none; }
  .photo-lightbox { padding: 56px 12px 24px; }
  .photo-lightbox[open] { grid-template-columns: 38px minmax(0, 1fr) 38px; }
  .photo-lightbox button { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .photo-track { scroll-behavior: auto; } }

/* A quiet, unlisted notes page reached through the home-page Easter egg. */
.notes-page { background: #fff; color: #111; }
.notes-page .site-header { position: absolute; height: 70px; padding: 0; color: #111; }
.notes-page .site-brand { top: 0; left: 0; color: #111; text-shadow: none; }
.notes-page .corner-menu { top: 0; right: 0; }
.notes-page .menu-toggle { background: #111; }
.notes-page .menu-toggle-icon, .notes-page .menu-toggle-icon::after { background: #111; }
.notes-page .menu-option { color: #111; text-shadow: none; }
.notes-page .menu-options::after { color: #111; text-shadow: none; }
.notes-content { width: min(1100px, calc(100% - 80px)); min-height: 100vh; margin: 0 auto; padding: max(230px, 28vh) 0 110px; }
.notes-content h1 { margin: 0 0 18px; font: 700 .68rem/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: #69777d; }
.notes-intro { max-width: 850px; font: clamp(1.4rem, 3.2vw, 2.15rem)/1.35 var(--serif); }
@media (max-width: 650px) {
  .notes-page .site-header { height: 60px; padding: 0; }
  .notes-page .site-brand { top: 0; left: 0; }
  .notes-page .corner-menu { top: 0; right: 0; }
  .notes-content { width: calc(100% - 40px); padding: 190px 0 75px; }
}

.note-entry { max-width: 760px; margin-top: 100px; padding-top: 22px; border-top: 1px solid rgba(17,17,17,.1); }
.note-entry h2 { margin: 0 0 14px; color: #69777d; font: 700 .68rem/1.4 var(--sans); letter-spacing: .18em; }
.note-entry p { font: 1.05rem/1.7 var(--serif); color: #444; }
@media (max-width: 650px) { .note-entry { margin-top: 72px; } }

/* Let each photograph keep its own proportions, with the next frame peeking in. */
.photo-track { height: min(68vh, 760px); align-items: center; gap: 18px; padding-right: 0; }
.photo-slide { display: flex; flex: 0 0 auto; width: auto; height: auto; flex-direction: column; align-items: center; overflow: visible; background: transparent; cursor: pointer; }
.photo-slide img { width: auto; height: auto; max-width: min(calc(100vw - 180px), 1000px); max-height: min(62vh, 680px); object-fit: contain; box-shadow: 0 0 0 rgba(0,0,0,0); transition: transform .28s cubic-bezier(.22,.72,.24,1), box-shadow .28s ease; }
.photo-title { display: block; width: 100%; padding-top: 12px; color: #646b67; font: 400 .82rem/1.4 var(--serif); text-align: center; }
@media (hover: hover) and (pointer: fine) {
  .photo-slide:hover img { transform: scale(1.012); box-shadow: 0 10px 26px rgba(0,0,0,.12); }
}
.photo-lightbox { touch-action: pan-y; }
.lightbox-image { touch-action: pan-y; }
@media (max-width: 650px) {
  .photo-track { height: min(62svh, 620px); gap: 12px; padding-right: 0; }
  .photo-slide { flex-basis: auto; height: auto; }
  .photo-slide img { max-width: 80vw; max-height: min(52svh, 500px); }
  .photo-title { padding-top: 10px; font-size: .78rem; }
}

/* Match the portfolio header spacing while keeping the secret page's dot-only mark. */
.notes-page .site-header { position: absolute; height: auto; padding: 32px 40px; }
.notes-page .site-brand { position: static; color: #111; text-shadow: none; }
.notes-dot { position: fixed; z-index: 20; top: 36px; right: 35px; width: 10px; height: 10px; border-radius: 50%; background: #111; }
@media (max-width: 650px) {
  .notes-page .site-header { height: auto; padding: 22px 20px; }
  .notes-page .site-brand { position: static; }
  .notes-dot { top: 26px; right: 22px; }
}

/* Layered photo stack: the next image reads as a separate print beneath the front one. */
.photo-track { position: relative; display: block; height: auto; min-height: 0; overflow: visible; padding: 0 26px 24px 0; touch-action: pan-y; }
.photo-slide { position: absolute; inset: 0 auto auto 0; z-index: 0; display: flex; width: 100%; height: auto; flex-direction: column; align-items: center; overflow: visible; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(0, 0); transition: opacity .3s ease, transform .38s cubic-bezier(.22,.72,.24,1), visibility .3s ease; }
.photo-slide.is-active { position: relative; z-index: 2; opacity: 1; visibility: visible; pointer-events: auto; }
.photo-slide.is-next { z-index: 1; opacity: 1; visibility: visible; transform: translate(18px, 16px) scale(.985); }
.photo-slide img { width: auto; height: auto; max-width: min(calc(100vw - 180px), 1000px); max-height: min(62vh, 680px); object-fit: contain; box-shadow: 0 8px 24px rgba(0,0,0,.13); transition: transform .28s cubic-bezier(.22,.72,.24,1), box-shadow .28s ease; }
.photo-slide.is-next img { box-shadow: 0 6px 18px rgba(0,0,0,.11); }
.photo-slide.is-next .photo-title { visibility: hidden; }
@media (hover: hover) and (pointer: fine) {
  .photo-slide.is-active:hover img { transform: scale(1.012); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
}
@media (max-width: 650px) {
  .photo-track { padding: 0 22px 22px 0; }
  .photo-slide img { max-width: min(calc(100vw - 72px), 1000px); max-height: min(56svh, 520px); }
}
@media (prefers-reduced-motion: reduce) {
  .photo-slide, .photo-slide img { transition-duration: .01ms !important; }
}

/* Keep the preview print within the active photo's height; let desktop users drag too. */
.photo-track { user-select: none; }
.photo-slide.is-next { transform: translate(10px, 9px) scale(.992); }
.photo-slide.is-next img { box-shadow: 0 4px 12px rgba(0,0,0,.09); }
.photo-track.is-dragging, .photo-track.is-dragging .photo-slide { cursor: grabbing; }
@media (max-width: 650px) {
  .photo-slide.is-next { transform: translate(8px, 7px) scale(.994); }
}

/* Airier full-screen viewing: retain a trace of the page behind the photograph. */
.photo-lightbox { background: rgba(10, 11, 11, .90); }
.photo-lightbox::backdrop { background: rgba(10, 11, 11, .90); }
.photo-lightbox button.lightbox-step { width: 42px; height: 42px; border-radius: 0; background: transparent; color: rgba(255,255,255,.86); font-size: 1.35rem; }
.photo-lightbox button.lightbox-step:hover { background: transparent; color: #fff; }
@media (max-width: 650px) {
  .photo-lightbox button.lightbox-step { width: 34px; height: 34px; }
}

/* Photography now shows one frame at a time; the controls and swipes change the image. */
.photo-track { padding: 0 0 24px; }
.photo-slide.is-next { display: none; }
.photo-slide.is-active { transform: none; }
.photo-slide.is-active img { box-shadow: 0 0 0 rgba(0,0,0,0); }
@media (hover: hover) and (pointer: fine) {
  .photo-slide.is-active:hover img { box-shadow: 0 10px 24px rgba(0,0,0,.12); }
}

.photo-track { padding-bottom: 8px; }
.photo-controls { padding-top: 8px; }

/* Keep the image, its date, and the selector on one shared center line. */
.photo-gallery { width: min(100%, 1000px); margin-inline: auto; }
.photo-track { width: 100%; }
.photo-slide { right: 0; left: 0; width: 100%; margin-inline: auto; }
.photo-slide img { align-self: center; margin-inline: auto; }
.photo-title { align-self: stretch; text-align: center; }
.photo-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 0; width: 100%; margin-inline: auto; }
.photo-controls [data-photo-prev] { justify-self: end; }
.photo-controls [data-photo-next] { justify-self: start; }

/* Reserve enough viewport height below the photo for its date and selectors. */
.photo-slide img { max-height: min(62svh, 680px, calc(100svh - 180px)); }
.photo-gallery { scroll-margin-top: 18px; }
@media (max-width: 650px) {
  .photo-slide img { max-height: min(52svh, 520px, calc(100svh - 180px)); }
}

.photo-slide { flex-direction: column; }
.photo-title { order: -1; padding: 0 0 12px; }
@media (max-width: 650px) { .photo-title { padding: 0 0 10px; } }

/* The dismissible area follows the photo's real dimensions, not its full grid cell. */
.photo-lightbox .lightbox-image { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.about-page .site-header { position: absolute; height: 150px; min-height: 150px; padding: 32px 40px; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.44), rgba(0,0,0,.18) 58%, transparent); }
.about-page .site-brand { position: static; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.about-page .menu-toggle { background: #fff; color: #fff; }
.about-page .menu-toggle-icon, .about-page .menu-toggle-icon::after { background: #fff; }
.about-page .menu-option { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.42); }
.about-page .menu-options::after { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.42); }
.about-page .corner-menu { top: 15px; right: 19px; }
@media (max-width: 650px) {
  .about-page .site-header { height: 125px; min-height: 125px; padding: 22px 20px; }
  .about-page .site-brand { position: static; }
  .about-page .corner-menu { top: 5px; right: 1px; }
}

.collection-index { position: sticky; top: 0; z-index: 8; display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: -12px 0 34px; padding: 12px 0; }
.collection-index-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 7px 0; border: 0; background: transparent; color: #646b67; font: 400 .85rem/1.4 var(--serif); cursor: pointer; }
.collection-index-indicator { position: absolute; top: 50%; left: 0; width: 6px; height: 6px; border-right: 1px solid #7a837e; border-bottom: 1px solid #7a837e; transform: translate(-50%, -70%) rotate(45deg); transition: left .34s cubic-bezier(.22,.72,.24,1), top .34s cubic-bezier(.22,.72,.24,1), transform .22s ease; pointer-events: none; }
.collection-index-indicator::before { position: absolute; inset: 0; display: none; color: #7a837e; content: '‹'; font: 400 14px/1 var(--sans); place-items: center; text-align: center; }
.collection-index.is-open .collection-index-indicator { width: 12px; height: 14px; border: 0; transform: translate(-50%, -50%); }
.collection-index.is-open.has-hovered-collection .collection-index-indicator::before { display: grid; }
.collection-index-links { display: grid; width: max-content; min-width: max-content; gap: 5px; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-5px); transition: max-height .3s ease, opacity .2s ease, transform .2s ease, visibility .2s ease; }
.collection-index.is-open .collection-index-links { max-height: 180px; margin-top: 5px; opacity: 1; visibility: visible; transform: translateY(0); }
.collection-index-links::-webkit-scrollbar { display: none; }
.collection-index-links a { padding: 4px 24px 4px 0; color: #646b67; font: 400 .85rem/1.5 var(--serif); text-decoration: none; white-space: nowrap; transition: color .2s ease, transform .18s ease; }
.collection-index-links a:hover, .collection-index-links a:focus-visible { transform: translateX(3px); }
.collection-index-links a:hover, .collection-index-links a:focus-visible, .collection-index-links a[aria-current="location"] { color: #111; }
.photo-collection { scroll-margin-top: 76px; margin: 0 0 90px; }
.collection-title { width: min(100%, 1000px); margin: 0 auto 16px; color: #646b67; font: 400 .88rem/1.4 var(--serif); text-align: center; }
.photography-page .page-hero, .cinematography-page .page-hero, .film-scoring-page .page-hero { min-height: 230px; padding: 112px max(40px, calc((100% - 1100px)/2)) 26px; }
.photography-page .page-hero h1, .cinematography-page .page-hero h1, .film-scoring-page .page-hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 650px) {
  .collection-index { margin: -10px 0 28px; padding: 10px 0; }
  .collection-index-links a { font-size: .78rem; }
  .photo-collection { margin-bottom: 64px; }
  .collection-title { margin-bottom: 12px; }
  .photography-page .page-hero, .cinematography-page .page-hero, .film-scoring-page .page-hero { min-height: 170px; padding: 94px 20px 20px; }
  .photography-page .page-hero h1, .cinematography-page .page-hero h1, .film-scoring-page .page-hero h1 { font-size: clamp(2.35rem, 11vw, 3.5rem); }
}
