:root {
  --black: #050505;
  --black-soft: #0c0c0c;
  --white: #f4f3ef;
  --muted: #a3a3a0;
  --line: rgba(244, 243, 239, 0.2);
  --gutter: clamp(20px, 4.4vw, 72px);
  --section-y: clamp(88px, 12vw, 180px);
  --max: 1600px;
}

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

html {
  background: var(--black);
  color: var(--white);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

body.lightbox-open {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
}

::selection {
  background: var(--white);
  color: var(--black);
}

.sr-only {
  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: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--black);
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  display: flex;
  align-items: start;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(18px, 2vw, 30px) var(--gutter);
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  width: max-content;
  gap: 4px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark span {
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.34em;
  white-space: nowrap;
}

.wordmark small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.27em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  margin-left: auto;
  padding-top: 4px;
}

.site-nav a {
  position: relative;
  padding: 5px 0;
  color: #d7d7d4;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.text-link:hover::after,
.text-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: clamp(22px, 3vw, 48px);
  padding: 7px 0 7px clamp(22px, 3vw, 48px);
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.language-switcher a {
  color: var(--muted);
  text-decoration: none;
}

.language-switcher a:hover,
.language-switcher a:focus-visible,
.language-switcher [aria-current="page"] {
  color: var(--white);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 8px;
  border: 0;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.menu-button > span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 1px;
  margin: 7px 0;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.1) 30%, rgba(5, 5, 5, 0.84) 72%, #050505 100%);
  content: "";
  pointer-events: none;
}

.hero-portrait {
  position: absolute;
  z-index: -2;
  bottom: -1px;
  left: clamp(24px, 9.5vw, 150px);
  width: min(43vw, 720px);
  height: min(89svh, 940px);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left bottom;
  filter: saturate(0.48) contrast(1.03) brightness(0.94);
}

.hero-copy {
  position: absolute;
  top: 39%;
  right: 4vw;
  left: 37%;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: center;
}

.hero h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(24px, 3.3vw, 50px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: clamp(0.18em, 0.8vw, 0.32em);
  text-transform: uppercase;
  text-wrap: balance;
  white-space: nowrap;
}

.hero-subtitle {
  margin: 16px 0 0;
  color: #d0d0cd;
  font-size: clamp(9px, 0.85vw, 12px);
  font-weight: 400;
  letter-spacing: 0.8em;
  text-transform: uppercase;
}

.text-link {
  position: relative;
  display: inline-flex;
  gap: 12px;
  padding: 5px 0 9px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
}


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

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.6fr);
  column-gap: 40px;
  align-items: end;
  margin-bottom: clamp(50px, 7vw, 104px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 78px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-heading > p:last-child,
.about-copy > p:not(.eyebrow),
.contact-copy > p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 17px);
  line-height: 1.75;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 80px) clamp(14px, 2vw, 32px);
}

.work {
  min-width: 0;
  margin: 0;
}

.work-wide {
  grid-row: span 1;
}

.work-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
}

.work-link::after {
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  content: "";
  pointer-events: none;
  transition: border-color 180ms ease;
}

.work-link:hover::after,
.work-link:focus-visible::after {
  border-color: rgba(255, 255, 255, 0.55);
}

.work img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.96) contrast(1.04);
  transition: filter 260ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-link:hover img,
.work-link:focus-visible img {
  filter: grayscale(0.55) contrast(1.02);
  transform: scale(1.015);
}

.work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  color: #b5b5b1;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portfolio-more {
  margin-top: clamp(46px, 7vw, 90px);
}

.about {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 140px);
  min-height: 76svh;
  align-items: center;
  border-top: 1px solid var(--line);
}

.about-index {
  color: #262625;
  font-size: clamp(150px, 25vw, 380px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.1em;
  user-select: none;
}

.about-copy h2 {
  margin-bottom: 42px;
}

.about-copy .about-note {
  margin-top: 20px;
  color: #d2d2ce;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
  gap: clamp(50px, 9vw, 160px);
  align-items: end;
  min-height: 72svh;
  border-top: 1px solid var(--line);
}

.contact-copy h2 {
  margin-bottom: 28px;
}

.contact-links {
  border-top: 1px solid var(--line);
}

.contact-links a {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 100px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 180ms ease, background-color 180ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  padding-inline: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.contact-links span {
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-links small {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.contact-links b {
  font-size: 20px;
  font-weight: 400;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 28px var(--gutter) 42px;
  border-top: 1px solid var(--line);
  color: #777774;
  font-size: 9px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.not-found {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: var(--gutter);
}

.not-found main {
  text-align: center;
}

.not-found main > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.35em;
}

.not-found h1 {
  margin: 0 0 32px;
  font-size: clamp(36px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(16px, 3vw, 40px);
  border: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.97);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.lightbox::backdrop {
  background: #000;
}

.lightbox form {
  position: fixed;
  z-index: 1;
  top: 0;
  right: 0;
}

.lightbox button {
  min-width: 44px;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: rgba(5, 5, 5, 0.75);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
}

.lightbox-media {
  display: grid;
  width: 100%;
  min-height: calc(100dvh - 112px);
  place-items: center;
}

.lightbox-media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: pan-x pan-y pinch-zoom;
}

.lightbox > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

@media (min-width: 1700px) {
  .site-header {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: flex-start;
    row-gap: 18px;
  }

  .wordmark span {
    width: 110px;
    white-space: normal;
  }

  .menu-button {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: -8px;
    margin-right: -8px;
  }

  .language-switcher {
    position: relative;
    z-index: 2;
    grid-column: 3;
    margin-left: 0;
    margin-right: 10px;
    padding: 6px 0;
    border-left: 0;
  }

  .menu-open .menu-button > span:not(.sr-only):first-of-type {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-open .menu-button > span:not(.sr-only):last-of-type {
    transform: translateY(-4px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    z-index: 1;
    top: 78px;
    right: var(--gutter);
    left: var(--gutter);
    display: flex;
    align-items: center;
    gap: clamp(18px, 7vw, 42px);
    margin: 0;
    padding: 0;
    background: transparent;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 180ms ease;
  }

  .menu-open .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    padding: 100px var(--gutter);
    background: rgba(5, 5, 5, 0.98);
  }

  .site-nav a {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .menu-open .site-nav a {
    font-size: clamp(28px, 8vw, 54px);
    font-weight: 400;
    letter-spacing: 0.06em;
  }

  .hero-portrait {
    left: 50%;
    width: min(90vw, 680px);
    height: 82svh;
    transform: translateX(-50%);
  }

  .hero-portrait img {
    object-position: center bottom;
    filter: saturate(0.42) contrast(1.04) brightness(0.9);
  }

  .hero-copy {
    position: absolute;
    top: 53%;
    right: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0 var(--gutter);
  }

  .hero h1 {
    font-size: clamp(13px, 4vw, 18px);
    letter-spacing: 0.18em;
    white-space: nowrap;
  }

  .hero-subtitle {
    margin-top: 12px;
    font-size: 8px;
    letter-spacing: 0.55em;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about-index {
    position: absolute;
    z-index: -1;
    opacity: 0.7;
  }

  .about {
    position: relative;
    isolation: isolate;
  }
}

@media (max-width: 600px) {
  .wordmark {
    gap: 3px;
  }

  .wordmark span {
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .wordmark small {
    font-size: 7px;
  }

  .hero-portrait {
    width: 108vw;
    height: 82svh;
  }

  .hero-copy {
    top: 53%;
  }

  .hero h1 {
    font-size: clamp(13px, 4vw, 18px);
    line-height: 1.15;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .work img {
    aspect-ratio: auto;
  }

  .work figcaption {
    font-size: 9px;
  }

  .about {
    min-height: 70svh;
  }

  .about-index {
    top: 22%;
    right: var(--gutter);
    font-size: 180px;
  }

  .contact {
    min-height: auto;
  }

  .contact-links a {
    grid-template-columns: 1fr auto;
    min-height: 92px;
  }

  .contact-links small {
    grid-row: 2;
    grid-column: 1;
    margin-top: -20px;
  }

  .contact-links b {
    grid-row: 1 / 3;
    grid-column: 2;
  }

  .site-footer {
    flex-direction: column;
    line-height: 1.7;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-media {
    min-height: calc(100dvh - 90px);
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
