:root {
  --bg: #fafaf8;
  --text: #111111;
  --void: #0a0a0a;
  --display: "Cormorant Garamond", "Times New Roman", Times, serif;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(4.5rem + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.nav-open,
body.lightbox-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a,
a:hover,
a:active,
a:focus,
a:visited {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
p,
ol,
dl,
dt,
dd {
  margin: 0;
}

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

.label,
.section__label,
.nav__links a,
.nav__brand,
.nav__toggle,
.stats__row dt,
.stats__row dd,
.work__year,
.print__note,
.print__size,
.print__price,
.print__buy,
.lightbox__close,
.lightbox__prev,
.lightbox__next,
.lightbox__credit,
.footer .label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .label,
  .section__label,
  .nav__links a,
  .nav__brand,
  .nav__toggle,
  .stats__row dt,
  .stats__row dd,
  .work__year,
  .print__note,
  .print__size,
  .print__price,
  .print__buy,
  .lightbox__close,
  .lightbox__prev,
  .lightbox__next,
  .lightbox__credit,
  .footer .label {
    font-size: 12px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1.25rem;
  top: -4rem;
  z-index: 80;
  background: var(--bg);
  color: var(--text);
  padding: 0.6rem 0.9rem;
}

.skip-link:focus {
  top: 1rem;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.lightbox :focus-visible,
.nav--hero .nav__brand:focus-visible,
.nav--hero .nav__toggle:focus-visible,
.nav--hero .nav__links a:focus-visible {
  outline-color: var(--bg);
}

body.nav-open :focus-visible {
  outline-color: var(--text);
}

.nav__links a:hover,
.contact__link:hover,
.nav__brand:hover,
.print__buy:hover {
  text-decoration: none;
}

/* Reveal — hidden only when JS is available */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

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

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

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

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.85rem + env(safe-area-inset-top, 0px)) max(1.25rem, env(safe-area-inset-right, 0px)) 0.85rem max(1.25rem, env(safe-area-inset-left, 0px));
  background: transparent;
  color: var(--bg);
  transition: background-color 240ms ease-out, color 240ms ease-out;
}

.nav--solid {
  background: var(--bg);
  color: var(--text);
}

.nav__brand {
  position: relative;
  z-index: 42;
}

.nav__toggle {
  position: relative;
  z-index: 42;
  width: 44px;
  height: 44px;
}

.nav__toggle-line {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  position: absolute;
  left: 11px;
  transition: transform 240ms ease-out;
}

.nav__toggle-line:first-child {
  top: 18px;
}

.nav__toggle-line:last-child {
  bottom: 18px;
}

body.nav-open .nav__toggle-line:first-child {
  top: 21.5px;
  transform: rotate(45deg);
}

body.nav-open .nav__toggle-line:last-child {
  bottom: 21.5px;
  transform: rotate(-45deg);
}

.nav__panel {
  display: none;
}

.nav__links {
  display: flex;
  gap: 1.35rem;
}

@media (max-width: 1023px) {
  .nav__panel {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--bg);
    color: var(--text);
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 240ms ease-out, visibility 240ms ease-out;
  }

  body.nav-open .nav__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .nav {
    color: var(--text);
  }

  .nav__links {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .nav__links a {
    font-size: 12px;
    padding: 0.95rem 1.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .nav {
    padding: 1.6rem 3vw;
  }

  .nav__toggle {
    display: none;
  }

  .nav__panel {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  background: var(--void);
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 78% 18%;
}

.hero__copy {
  position: absolute;
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.8rem, calc(1.1rem + env(safe-area-inset-bottom, 0px)));
  z-index: 2;
  color: var(--bg);
}

.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.85rem, 14vw, 8.2rem);
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.hero .label {
  margin-top: 0.85rem;
}

@media (min-width: 768px) {
  .hero__copy {
    left: 3vw;
    bottom: 3.4rem;
  }

  .hero__media img {
    object-position: 58% 28%;
  }
}

@media (min-width: 1440px) {
  .hero__media img {
    object-position: 52% 32%;
  }
}

@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: 100svh;
  }

  .hero__media img {
    object-position: 62% 22%;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 8vw, 4rem);
  }
}

/* Sections */
.section {
  padding: 12vh max(1.25rem, env(safe-area-inset-right, 0px)) 14vh max(1.25rem, env(safe-area-inset-left, 0px));
}

.section__label {
  margin-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-left: 3vw;
    padding-right: 3vw;
  }
}

@media (min-width: 1024px) {
  .section {
    padding-top: 14vh;
    padding-bottom: 15vh;
  }
}

/* Portfolio */
.portfolio {
  display: flex;
  flex-direction: column;
  gap: 10vh;
}

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

.shot__open img {
  width: 100%;
}

.shot--bleed,
.shot--rail,
.shot--wide,
.shot--col,
.shot--small,
.shot--tiny {
  width: 100%;
}

.shot-row {
  display: flex;
  flex-direction: column;
  gap: 10vh;
}

@media (max-width: 767px) {
  .section.portfolio {
    padding-left: 0;
    padding-right: 0;
  }

  .portfolio .section__label {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  }

  .shot {
    width: 100%;
  }

  .shot__open img {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .portfolio {
    gap: 12vh;
  }

  .shot-row {
    gap: 12vh;
  }

  .shot-row--cluster,
  .shot-row--end {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4vw;
  }

  .shot--small {
    width: calc(50% - 2vw);
  }

  .shot--tiny {
    width: calc(32% - 1.5vw);
  }
}

@media (min-width: 1024px) {
  .shot--bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .shot--bleed img {
    width: 100%;
    height: auto;
  }

  .shot-row--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .shot--col {
    width: 42%;
  }

  .shot--wide {
    width: 58%;
    margin-left: auto;
  }

  .shot--rail {
    width: 46%;
  }

  .shot--offset {
    margin-top: 18vh;
  }

  .shot-row--end {
    justify-content: flex-end;
    gap: 3vw;
  }

  .shot-row--cluster {
    justify-content: space-between;
    align-items: flex-start;
  }

  .shot--small {
    width: 28%;
  }

  .shot--tiny {
    width: 22%;
  }

  .shot--tiny img,
  .shot--small img {
    width: 100%;
  }
}

@media (min-width: 1440px) {
  .shot--col {
    width: 38%;
  }

  .shot--wide {
    width: 52%;
  }

  .shot--rail {
    width: 40%;
  }
}

/* Prints */
.prints__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10vh;
}

.print__media img {
  width: 100%;
}

.print__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding-top: 1.15rem;
}

.print__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.print__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.print__size {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  opacity: 0.35;
}

.print__size:has(input:checked) {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.4em;
}

.print__size:focus-within {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

.print__size input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  appearance: none;
}

.print__cta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--text);
}

.print__price--lg,
.print__buy--lg {
  display: none;
}

.print:has([value="lg"]:checked) .print__price--sm,
.print:has([value="lg"]:checked) .print__buy--sm {
  display: none;
}

.print:has([value="lg"]:checked) .print__price--lg,
.print:has([value="lg"]:checked) .print__buy--lg {
  display: revert;
}

.print__buy {
  opacity: 0.45;
}

a.print__buy {
  opacity: 1;
}

@media (min-width: 768px) {
  .prints__grid {
    gap: 12vh;
  }
}

@media (min-width: 1024px) {
  .prints__grid {
    grid-template-columns: 1fr 1fr;
    column-gap: 8vw;
    row-gap: 14vh;
    align-items: start;
  }

  .print:nth-child(even) {
    margin-top: 8vh;
  }
}

/* Digitals */
.digitals__sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.digital img {
  width: 100%;
}

.stats {
  margin-top: 4.5rem;
  max-width: 28rem;
}

.stats__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--text);
}

.stats__row:first-child {
  border-top: 1px solid var(--text);
}

@media (min-width: 768px) {
  .digitals__sheet {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }

  .stats {
    margin-top: 5.5rem;
  }
}

/* Work */
.work__list {
  max-width: 52rem;
}

.work__item {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1.25rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--text);
  align-items: baseline;
}

.work__item:first-child {
  border-top: 1px solid var(--text);
}

.work__entry {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: 0.01em;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .work__item {
    grid-template-columns: 5.5rem 1fr;
    gap: 2.5rem;
    padding: 1.35rem 0;
  }
}

/* Info */
.info__layout {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.info__bio {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.45;
  max-width: 36ch;
}

.info__bio p + p {
  margin-top: 1.15em;
}

.info__sign {
  font-style: italic;
}

.info__portrait {
  width: min(100%, 22rem);
}

@media (min-width: 1024px) {
  .info__layout {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8vw;
  }

  .info__bio {
    padding-top: 1rem;
  }

  .info__portrait {
    width: min(36vw, 26rem);
  }
}

/* Contact */
.contact {
  text-align: center;
}

.contact__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.contact__link {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.25rem, 6.4vw, 4.2rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  padding: 0.35rem 0.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Footer */
.footer {
  padding: 0 max(1.25rem, env(safe-area-inset-right, 0px)) calc(2.8rem + env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer p:first-child {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .footer {
    padding: 0 3vw 4rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--void);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  width: min(92vw, calc(72svh * 0.68));
  max-height: 72svh;
}

.lightbox__figure img {
  width: 100%;
  height: auto;
  max-height: 72svh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox__credit {
  position: absolute;
  left: max(1.25rem, env(safe-area-inset-left, 0px));
  bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  margin: 0;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--bg);
  padding: 0.85rem;
  min-width: 44px;
  min-height: 44px;
}

.lightbox__close {
  top: max(0.7rem, env(safe-area-inset-top, 0px));
  right: max(0.7rem, env(safe-area-inset-right, 0px));
}

.lightbox__prev {
  left: max(0.2rem, env(safe-area-inset-left, 0px));
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: max(0.2rem, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 768px) {
  .lightbox__close {
    top: 1.8rem;
    right: 2rem;
  }

  .lightbox__prev {
    left: 1.6rem;
  }

  .lightbox__next {
    right: 1.6rem;
  }
}
