:root {
  color-scheme: dark;

  --ground: #0B0B0A;
  --ink: #ECE6DA;
  --muted: #A8A196;
  --line: rgba(236, 230, 218, 0.14);
  --fallback: #151513;

  --font-serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1200px;
  --measure: 640px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ground);
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

main:focus,
main:focus-visible {
  outline: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

::selection {
  background: var(--ink);
  color: var(--ground);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5rem);
}

.display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.em,
em {
  font-style: italic;
  font-weight: 300;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(0.6875rem, 0.65rem + 0.1vw, 0.75rem);
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

.page-head {
  padding-block: clamp(3.5rem, 11vh, 9rem) clamp(2.5rem, 7vh, 6rem);
}

.page-head h1 {
  margin-bottom: 1rem;
}

.page-sub {
  color: var(--muted);
}

.site-head {
  position: relative;
  z-index: 20;
}

.site-head--overlay {
  position: absolute;
  inset: 0 0 auto 0;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(18px, 3.2vw, 32px);
}

.wordmark {
  flex: 0 0 auto;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

.site-head--overlay .nav-link {
  color: var(--ink);
}

.site-head--overlay .wordmark,
.site-head--overlay .nav-link {
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 2px 18px rgba(0, 0, 0, 0.85);
}

.site-foot {
  margin-top: clamp(4rem, 12vh, 9rem);
  border-top: 1px solid var(--line);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(1.5rem, 4vw, 2.5rem);
}

.foot-meta {
  color: var(--muted);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.foot-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.foot-social:hover,
.foot-social:focus-visible {
  color: var(--ink);
}

.foot-top {
  color: var(--ink);
  text-decoration: none;
}

.foot-top:hover,
.foot-top:focus-visible {
  color: var(--muted);
}

.wordmark,
.nav-link,
.foot-link,
.foot-top,
.contact-social,
.page-sub-link {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.nav-link,
.foot-link,
.foot-top,
.contact-social,
.page-sub-link {
  min-width: 24px;
}

@media (pointer: coarse) {
  .nav-link,
  .foot-link,
  .contact-social,
  .page-sub-link {
    padding-block: calc((44px - 1.4em) / 2);
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: var(--gutter);
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--ground);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-120%);
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript {
  padding: 1rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 600ms var(--ease),
    transform 600ms var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.is-imgless {
  background-color: var(--fallback);
}

:where(a, button, [tabindex]):focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

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

  .hero-img {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .panel:hover .panel-img,
  .panel:focus-visible .panel-img {
    transform: none;
  }

  .shot-img {
    opacity: 1;
  }
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ground);

  --frame: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}

.hero.is-imgless {
  background: var(--ground);
}

.hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero-img.is-loaded {
  opacity: 1;
  animation: hero-settle 2.4s cubic-bezier(0.2, 0.6, 0.2, 1) both;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 22%),
    linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 14%, rgba(0, 0, 0, 0.25) 34%, transparent 55%);
}

.hero-content {
  position: absolute;
  left: var(--frame);
  right: var(--frame);
  bottom: 0;
  z-index: 2;
  padding: 0 0 clamp(28px, 5vh, 56px);
}

.hero-name {
  margin: 0;
  font-size: clamp(3.5rem, 11vw, 10rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero-tagline,
.hero-cue {
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 1px 3px rgba(0, 0, 0, 0.8),
    0 2px 18px rgba(0, 0, 0, 0.85);
}

.hero-tagline {
  margin-top: 0;
  font-size: clamp(0.8125rem, 1vw, 0.9375rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
}

.hero-cue {
  position: absolute;
  right: var(--frame);
  bottom: clamp(28px, 5vh, 56px);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.hero-cue::after {
  content: "";
  width: 1px;
  height: 48px;
  background: #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ground);
}

.panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 85vh;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}

.panel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.panel-media.is-imgless {
  background: var(--fallback);
}

.panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 60%);
}

.panel-text {
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: clamp(64px, 12vh, 120px);
  z-index: 2;
  padding: 0 var(--gutter);
  text-align: center;
}

.panel-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.panel-caption {
  max-width: min(34ch, 86%);
  margin: 0.75rem auto 0;
  line-height: 1.6;
  min-height: calc(2 * 1.6em);
  color: var(--ink);
}

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

.panel:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: -6px;
}

@media (max-width: 899.98px) {
  .panels {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 70svh;
  }
}

@media (max-width: 639.98px) {
  .hero-content {
    text-align: center;
  }

  .hero-cue {
    display: none;
  }
}

.page-sub a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.gallery-empty {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
  padding-block: clamp(4rem, 14vh, 8rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

@media (min-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:not(.gallery-item--feature) .shot-frame {
    aspect-ratio: 8 / 5;
  }
}

.gallery-item--feature {
  grid-column: 1 / -1;
}

.shot {
  display: block;
  width: 100%;
  text-align: left;
}

.shot-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ratio, 1.5);
  overflow: hidden;
  background: var(--fallback);
}

.shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 600ms var(--ease), transform 0.8s var(--ease);
}

.shot-img.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .shot:hover .shot-img,
  .shot:focus-visible .shot-img {
    transform: scale(1.02);
  }
}

.shot-cap {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  opacity: 1;
}

html.is-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  background: rgb(8, 8, 7);
}

.lb-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 92vw;
  max-height: 88vh;
  margin: 0;
}

.lb-figure {
  position: relative;
}

#lb-img {
  aspect-ratio: var(--lb-ratio, 1.5);
  width: min(92vw, calc(82vh * var(--lb-ratio, 1.5)));
  height: auto;
  max-width: 92vw;
  max-height: 82vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.35s ease;
}

#lb-img.is-loading {
  opacity: 0;
  transition: none;
}

.lb-figure,
#lb-img {
  touch-action: pan-y;
}

.lightbox.is-loading .lb-figure::before {
  content: "Loading";
  position: absolute;
  top: calc(50% - 1.5rem);
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.lb-cap {
  text-align: center;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.lb-count {
  margin-left: 2.5em;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lb-close {
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
}

.lb-prev {
  left: clamp(16px, 3vw, 32px);
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: clamp(16px, 3vw, 32px);
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 639.98px) {
  .lb-prev {
    top: auto;
    bottom: 16px;
    left: 16px;
    transform: none;
  }

  .lb-next {
    top: auto;
    bottom: 16px;
    right: 16px;
    transform: none;
  }
}

#work,
#contact {
  scroll-margin-top: 24px;
}

#about-main {
  padding-bottom: clamp(80px, 14vh, 160px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(48px, 10vh, 120px);
}

.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--fallback);
}

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

.about-text {
  min-width: 0;
}

.about-title {
  margin: 0 0 clamp(1.5rem, 3vh, 2.5rem);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
}

.about-para {
  margin: 0 0 1.5em;
  max-width: 34em;
  font-size: clamp(1.2rem, 1.6vw, 1.375rem);
  line-height: 1.6;
}

.about-now {
  margin-top: 2.5rem;
  color: var(--ink);
}

.about-now-label {
  margin-right: 1.25rem;
  color: var(--muted);
}

@media (max-width: 899.98px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: clamp(32px, 6vw, 64px);
  }

  .about-photo {
    width: 100%;
    max-height: 70svh;
  }

  .about-photo.is-imgless {
    display: none;
  }
}

.measure-wide {
  max-width: 900px;
  margin-inline: auto;
}

.work {
  padding-block: clamp(80px, 14vh, 160px);
  border-top: 1px solid var(--line);
}

.section-label {
  color: var(--muted);
}

.quote {
  margin: clamp(2rem, 5vh, 4rem) 0 0;
}

.quote-text {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.quote-cite {
  margin-top: 1.5rem;
  color: var(--muted);
}

.work-text {
  max-width: 38em;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  color: var(--ink);
}

.contact {
  padding-block: clamp(80px, 14vh, 160px);
  border-top: 1px solid var(--line);
}

.contact-title {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
}

.contact-lede {
  font-family: var(--font-serif);
  color: var(--muted);
  max-width: 34em;
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 2.5rem;
}

.contact-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-social:hover,
.contact-social:focus-visible {
  color: var(--ink);
}

.social-icon {
  width: 20px;
  height: 20px;
  flex: none;
}
