@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("public/fonts/dm-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("public/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --paper: #f4f2ed;
  --ink: #121212;
  --line: rgba(18, 18, 18, 0.18);
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--ink);
  color: white;
  font-family: "Manrope", Arial, sans-serif;
}

html.is-light-section,
body.is-light-section {
  background: var(--paper);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 99;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--ink);
  background: white;
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  padding: 0 clamp(24px, 4.5vw, 78px);
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(170px, 1fr);
  align-items: center;
  gap: 32px;
  color: var(--ink);
  background: var(--paper);
}

.brand {
  width: fit-content;
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
}

.brand__name {
  display: block;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(17px, 1.35vw, 23px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.brand__role {
  display: block;
  margin-top: 8px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 32px);
}

.nav-category {
  position: relative;
  display: flex;
  justify-content: center;
}

.nav-item,
.mobile-menu button {
  position: relative;
  padding: 8px 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-item::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
}

.nav-item:hover::after,
.nav-item:focus-visible::after,
.nav-item.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-gallery-link {
  position: absolute;
  top: 30px;
  display: none;
  padding: 2px 0;
  border: 0;
  background: none;
  color: rgba(18, 18, 18, 0.55);
  cursor: pointer;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-category.is-active .nav-gallery-link {
  display: block;
}

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

.nav-gallery-link:hover,
.nav-gallery-link:focus-visible,
.nav-gallery-link.is-active {
  color: var(--ink);
}

.nav-gallery-link:hover::after,
.nav-gallery-link:focus-visible::after,
.nav-gallery-link.is-active::after {
  transform: scaleX(1);
}

.header-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.7vw, 28px);
}

.language-switch,
.social-nav {
  display: flex;
  align-items: center;
}

.language-switch {
  gap: 5px;
  color: rgba(18, 18, 18, 0.42);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.language-option {
  padding: 5px 1px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 180ms ease;
}

.language-option:hover,
.language-option:focus-visible,
.language-option.is-active {
  color: var(--ink);
}

.social-nav {
  gap: 16px;
}

.social-link {
  position: relative;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  opacity: 0.55;
  transform: translateY(-2px);
}

.social-link--facebook span {
  color: #000;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  transform: scaleX(0.82);
}

.social-link--flickr {
  width: 30px;
}

.social-link--instagram {
  width: 18px;
  height: 18px;
}

.social-link--flickr img,
.social-link--instagram img {
  display: block;
  width: 100%;
  height: auto;
}

.mobile-menu {
  display: none;
}

.portfolio {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: 540px;
  overflow: hidden;
  background: #1a1a1a;
}

.gallery-view {
  min-height: calc(100svh - var(--header-height));
  padding: clamp(44px, 5vw, 88px) clamp(20px, 4.5vw, 78px) 48px;
  color: var(--ink);
  background: var(--paper);
}

.gallery-view[hidden] {
  display: none;
}

.gallery-header,
.gallery-grid,
.gallery-credit {
  width: min(100%, 1680px);
  margin-right: auto;
  margin-left: auto;
}

.gallery-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(32px, 4vw, 64px);
}

.gallery-eyebrow {
  margin: 0 0 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gallery-header h1 {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(56px, 8vw, 138px);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.8;
}

.gallery-back {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(18, 18, 18, 0.45);
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: clamp(12px, 1.6vw, 28px);
  align-items: start;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #e9e6df;
  cursor: zoom-in;
  overflow: hidden;
}

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

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), opacity 300ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.008);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.gallery-credit {
  margin-top: 48px;
  margin-bottom: 0;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: clamp(18px, 3vw, 48px);
  border: 0;
  background: rgba(10, 10, 10, 0.97);
  color: white;
  overflow: hidden;
}

.gallery-lightbox[open] {
  display: grid;
  place-items: center;
}

.gallery-lightbox::backdrop {
  background: rgba(10, 10, 10, 0.96);
}

.gallery-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.gallery-lightbox__close {
  position: fixed;
  z-index: 2;
  top: 20px;
  right: 24px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.45);
  color: white;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

html.is-gallery-open,
body.is-gallery-open {
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
}

body.is-gallery-open .site-header {
  position: sticky;
  top: 0;
}

.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), visibility 700ms;
}

.slide.is-active {
  visibility: visible;
  opacity: 1;
}

.slide--about {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--ink);
  background: var(--paper);
}

.slide--publications,
.slide--webzines {
  overflow-y: auto;
  color: var(--ink);
  background: var(--paper);
}

.publications-layout,
.webzines-layout {
  min-height: 100%;
  padding: clamp(38px, 5vh, 64px) clamp(28px, 8vw, 140px) 110px;
}

.publications-header {
  display: block;
}

.webzines-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
  align-items: end;
  gap: clamp(36px, 6vw, 96px);
}

.webzines-intro {
  max-width: 390px;
  margin: 0 0 8px;
  color: rgba(18, 18, 18, 0.64);
  font-size: clamp(12px, 1.05vw, 16px);
  line-height: 1.55;
}

.slide--publications h2,
.slide--webzines h2 {
  font-size: clamp(58px, 7vw, 118px);
  line-height: 0.86;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 68px);
  margin-top: clamp(30px, 4vh, 48px);
  border-top: 1px solid var(--line);
}

.webzines-grid {
  display: grid;
  margin-top: clamp(30px, 4vh, 48px);
  border-top: 1px solid var(--line);
}

.webzine-feature {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  min-height: clamp(420px, 54vh, 540px);
  overflow: hidden;
  background: var(--ink);
  color: white;
  text-decoration: none;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 360ms ease;
}

.webzine-feature:hover,
.webzine-feature:focus-visible {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(18, 18, 18, 0.14);
}

.webzine-feature:focus-visible {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--ink), 0 18px 44px rgba(18, 18, 18, 0.14);
}

.webzine-feature__cover {
  min-height: inherit;
  margin: 0;
  overflow: hidden;
  background: #19161f;
}

.webzine-feature__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 360ms ease;
}

.webzine-feature:hover .webzine-feature__cover img,
.webzine-feature:focus-visible .webzine-feature__cover img {
  filter: saturate(1.04);
  transform: scale(1.018);
}

.webzine-feature__content {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: clamp(28px, 3.2vw, 52px);
}

.webzine-feature__issue,
.webzine-feature__kicker,
.webzine-feature__description {
  margin: 0;
}

.webzine-feature__issue,
.webzine-feature__kicker,
.webzine-feature__link {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.webzine-feature__issue,
.webzine-feature__kicker {
  color: rgba(255, 255, 255, 0.58);
}

.webzine-feature__kicker {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.74);
}

.webzine-feature h3 {
  max-width: 720px;
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(38px, 4.2vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.webzine-feature__description {
  max-width: 560px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(11px, 0.95vw, 15px);
  line-height: 1.55;
}

.webzine-feature__link {
  position: relative;
  width: fit-content;
  padding-bottom: 5px;
  color: white;
}

.webzine-feature__link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  transform-origin: left;
  transition: transform 260ms ease;
}

.webzine-feature:hover .webzine-feature__link::after,
.webzine-feature:focus-visible .webzine-feature__link::after {
  transform: scaleX(0.42);
}

.publication-card {
  position: relative;
  min-height: 116px;
  padding: 18px 42px 18px 32px;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 180ms ease, padding-left 180ms ease;
}

.publication-card:hover,
.publication-card:focus-visible {
  padding-left: 38px;
  background: rgba(18, 18, 18, 0.035);
  outline: none;
}

.publication-card--highlight {
  color: #666;
}

.publication-card--highlight:hover,
.publication-card--highlight:focus-visible {
  color: #4f4f4f;
}

.publication-card__number {
  position: absolute;
  top: 22px;
  left: 0;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.45;
}

.publication-card h3 {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.publication-card p {
  min-height: 28px;
  margin: 6px 0 8px;
  font-size: 9px;
  line-height: 1.45;
  opacity: 0.62;
}

.publication-card__link {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 48vw);
  width: 100%;
  height: 100%;
}

.about-copy {
  align-self: center;
  max-width: 760px;
  padding: 40px clamp(36px, 7vw, 120px) 110px clamp(28px, 8vw, 140px);
}

.slide--about h2 {
  font-size: clamp(58px, 7vw, 118px);
  line-height: 0.86;
}

.about-bio {
  max-width: 650px;
  margin-top: 38px;
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.75;
  opacity: 0;
  transform: translateY(14px);
}

.about-bio p {
  margin: 0;
}

.about-bio p + p {
  margin-top: 18px;
}

.about-bio a {
  color: inherit;
  text-decoration-color: rgba(18, 18, 18, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease;
}

.about-bio a:hover,
.about-bio a:focus-visible {
  text-decoration-color: currentColor;
}

.slide--about.is-active .about-bio {
  animation: enter 700ms 180ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-contact {
  max-width: 650px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(18, 18, 18, 0.18);
  opacity: 0;
  transform: translateY(14px);
}

.about-contact h3 {
  margin: 0 0 13px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-contact__details,
.contact-social-nav {
  display: flex;
  align-items: center;
}

.about-contact__details {
  justify-content: space-between;
  gap: 24px;
}

.contact-email {
  color: inherit;
  font-size: 13px;
  text-decoration-color: rgba(18, 18, 18, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 180ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  text-decoration-color: currentColor;
}

.contact-social-nav {
  gap: 14px;
}

.slide--about.is-active .about-contact {
  animation: enter 700ms 260ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.about-portrait {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
}

.slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  filter: saturate(0.78) contrast(1.03);
  transition: transform 8s cubic-bezier(0.2, 0.65, 0.25, 1), filter 800ms ease;
}

.slide.is-active > img {
  transform: scale(1);
  filter: saturate(0.92) contrast(1.02);
}

.portrait-carousel,
.street-carousel,
.travel-carousel,
.architecture-carousel,
.film-carousel {
  position: absolute;
  inset: 0;
}

.portrait-image,
.street-image,
.travel-image,
.architecture-image,
.film-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  opacity: 0;
  transform: scale(1.035);
  filter: saturate(0.78) contrast(1.03);
  transition:
    opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 900ms,
    transform 8s cubic-bezier(0.2, 0.65, 0.25, 1),
    filter 800ms ease;
}

.portrait-image.is-active,
.street-image.is-active,
.travel-image.is-active,
.architecture-image.is-active,
.film-image.is-active {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  filter: saturate(0.92) contrast(1.02);
}

.carousel-advance {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.carousel-advance:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -8px;
}

.portrait-image[data-portrait="12"] {
  object-position: 50% 28%;
}

.film-image[data-film="7"] {
  object-position: 50% 10%;
}

@media (min-width: 641px) {
  .street-image[data-street="1"] {
    object-position: 50% 84%;
  }

  .street-image[data-street="2"] {
    object-position: 50% 22%;
  }
}

.portrait-dots,
.street-dots,
.travel-dots,
.architecture-dots,
.film-dots {
  position: absolute;
  z-index: 5;
  bottom: 48px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.portrait-dot,
.street-dot,
.travel-dot,
.architecture-dot,
.film-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.portrait-dot::before,
.street-dot::before,
.travel-dot::before,
.architecture-dot::before,
.film-dot::before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin: auto;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: transparent;
  transition: background 180ms ease, transform 180ms ease;
}

.portrait-dot:hover::before,
.portrait-dot:focus-visible::before,
.portrait-dot.is-active::before,
.street-dot:hover::before,
.street-dot:focus-visible::before,
.street-dot.is-active::before,
.travel-dot:hover::before,
.travel-dot:focus-visible::before,
.travel-dot.is-active::before,
.architecture-dot:hover::before,
.architecture-dot:focus-visible::before,
.architecture-dot.is-active::before,
.film-dot:hover::before,
.film-dot:focus-visible::before,
.film-dot.is-active::before {
  background: white;
  transform: scale(1.5);
}

.slide__shade {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.slide__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(28px, 8vw, 140px);
  max-width: 760px;
  transform: translateY(-43%);
}

.eyebrow,
.intro,
.slide-gallery-link,
.slider-controls,
.photo-credit {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(12px);
}

.slide h1,
.slide h2 {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(68px, 9.4vw, 164px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(24px);
}

.intro {
  margin: 36px 0 14px;
  opacity: 0;
  transform: translateY(14px);
}

.slide-gallery-link {
  position: relative;
  display: block;
  width: fit-content;
  padding: 0 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateY(14px);
}

.slide-gallery-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: transform 220ms ease;
}

.slide-gallery-link:hover::after,
.slide-gallery-link:focus-visible::after {
  transform: scaleX(1);
}

.slide.is-active .eyebrow,
.slide.is-active h1,
.slide.is-active h2,
.slide.is-active .intro,
.slide.is-active .slide-gallery-link {
  animation: enter 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.slide.is-active h1,
.slide.is-active h2 {
  animation-delay: 90ms;
}

.slide.is-active .intro {
  animation-delay: 180ms;
}

.slide.is-active .slide-gallery-link {
  animation-delay: 240ms;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-controls {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4.5vw, 78px);
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.slider-controls p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.separator {
  width: 38px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.arrow {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.arrow:hover,
.arrow:focus-visible {
  background: white;
  color: var(--ink);
}

.portfolio.is-about .slider-controls,
.portfolio.is-about .photo-credit {
  color: var(--ink);
}

.portfolio.is-about .separator {
  background: rgba(18, 18, 18, 0.5);
}

.portfolio.is-about .arrow {
  border-color: rgba(18, 18, 18, 0.45);
}

.portfolio.is-about .arrow:hover,
.portfolio.is-about .arrow:focus-visible {
  color: white;
  background: var(--ink);
}

.photo-credit {
  position: absolute;
  z-index: 3;
  bottom: 45px;
  left: clamp(28px, 4.5vw, 78px);
  margin: 0;
  opacity: 0.65;
  font-size: 8px;
}

.cookie-banner {
  position: fixed;
  z-index: 50;
  right: clamp(18px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  width: min(720px, calc(100vw - 36px));
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid rgba(18, 18, 18, 0.18);
  color: var(--ink);
  background: rgba(244, 242, 237, 0.97);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner__eyebrow {
  margin: 0 0 8px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cookie-banner h2 {
  margin: 0 0 12px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.cookie-banner__content > p:not(.cookie-banner__eyebrow),
.cookie-banner__details p {
  max-width: 540px;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.cookie-banner__details {
  margin-top: 12px;
  font-size: 10px;
}

.cookie-banner__details summary {
  width: fit-content;
  cursor: pointer;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner__details p {
  margin-top: 10px;
  opacity: 0.72;
}

.cookie-banner__button {
  min-width: 108px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  color: white;
  background: var(--ink);
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease;
}

.cookie-banner__button:hover,
.cookie-banner__button:focus-visible {
  color: var(--ink);
  background: transparent;
}

@media (min-width: 981px) and (max-height: 950px) {
  .about-copy {
    padding-top: 24px;
    padding-bottom: 76px;
  }

  .slide--about h2 {
    font-size: clamp(52px, 6vw, 96px);
  }

  .about-bio {
    margin-top: 24px;
    font-size: clamp(12px, 0.9vw, 15px);
    line-height: 1.55;
  }

  .about-bio p + p {
    margin-top: 12px;
  }

  .about-contact {
    margin-top: 18px;
    padding-top: 14px;
  }
}

@media (max-width: 1280px) {
  :root {
    --header-height: 88px;
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
    gap: 20px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    position: relative;
    display: block;
  }

  .mobile-menu summary {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 9px 4px;
    cursor: pointer;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu summary span {
    display: block;
    height: 1px;
    background: var(--ink);
    transition: transform 220ms ease;
  }

  .mobile-menu[open] summary span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .mobile-menu[open] summary span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    padding: 28px;
    border-top: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-nav-category {
    display: grid;
  }

  .mobile-menu .mobile-gallery-link {
    display: none;
    justify-self: start;
    margin-top: -6px;
    padding: 0 0 12px 28px;
    color: rgba(18, 18, 18, 0.52);
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .mobile-menu .mobile-nav-category.is-expanded .mobile-gallery-link {
    display: block;
  }

  .mobile-menu button {
    padding: 14px 0;
    text-align: left;
    font-size: 15px;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 45vw);
  }

  .about-copy {
    padding-right: 36px;
  }

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

  .webzine-feature {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 20px;
    gap: 10px;
  }

  .header-tools {
    gap: 10px;
  }

  .social-nav {
    gap: 8px;
  }

  .language-switch {
    gap: 2px;
    font-size: 8px;
  }

  .brand__name {
    font-size: 15px;
  }

  .portfolio {
    min-height: 510px;
  }

  .gallery-view {
    padding: 36px 16px calc(36px + env(safe-area-inset-bottom));
  }

  .gallery-header {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
  }

  .gallery-header h1 {
    font-size: clamp(54px, 20vw, 84px);
  }

  .gallery-back {
    width: fit-content;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gallery-item,
  .gallery-item.is-landscape {
    grid-column: 1;
  }

  .gallery-credit {
    margin-top: 32px;
  }

  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-lightbox__close {
    top: 14px;
    right: 14px;
  }

  .slide > img,
  .portrait-image,
  .street-image,
  .travel-image,
  .architecture-image,
  .film-image {
    object-position: 58% center;
  }

  .portrait-image[data-portrait="0"],
  .portrait-image[data-portrait="3"],
  .portrait-image[data-portrait="4"] {
    object-position: center;
  }

  .portrait-image[data-portrait="12"] {
    object-position: 58% 28%;
  }

  .film-image[data-film="7"] {
    object-fit: contain;
    object-position: center;
    background: #111;
  }

  .slide[data-index="2"] > img {
    object-position: center;
  }

  .slide__content {
    top: 45%;
    right: 24px;
    left: 24px;
    transform: translateY(-40%);
  }

  .slide h1,
  .slide h2 {
    font-size: clamp(58px, 20vw, 92px);
  }

  .intro {
    max-width: 280px;
    line-height: 1.6;
  }

  .slider-controls {
    right: 20px;
    bottom: 24px;
  }

  .portrait-dots,
  .street-dots,
  .travel-dots,
  .architecture-dots,
  .film-dots {
    bottom: 72px;
    gap: 7px;
  }

  .photo-credit {
    bottom: 28px;
    left: 20px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-rows: min(56vw, 300px) max-content;
    height: auto;
    min-height: 0;
  }

  .portfolio.is-about-section {
    height: auto;
    min-height: calc(100svh - var(--header-height));
    overflow: visible;
    background: var(--paper);
  }

  .portfolio.is-about-section .slide--about {
    position: relative;
    inset: auto;
    min-height: calc(100svh - var(--header-height));
  }

  .about-portrait {
    grid-row: 1;
    height: auto;
  }

  .about-copy {
    grid-row: 2;
    align-self: stretch;
    padding: 24px 22px calc(128px + env(safe-area-inset-bottom));
  }

  .portfolio.is-about-section .slider-controls {
    bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .portfolio.is-about-section .photo-credit {
    bottom: calc(34px + env(safe-area-inset-bottom));
  }

  .slide--about .eyebrow {
    margin-bottom: 10px;
  }

  .slide--about h2 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 0.85;
  }

  .about-bio {
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.5;
  }

  .about-bio p + p {
    margin-top: 9px;
  }

  .about-contact {
    margin-top: 20px;
    padding-top: 16px;
  }

  .about-contact h3 {
    margin-bottom: 11px;
    font-size: 9px;
  }

  .about-contact__details {
    gap: 18px;
  }

  .contact-email {
    font-size: 11px;
  }

  .about-portrait img {
    object-position: 65% 38%;
  }

  .publications-layout,
  .webzines-layout {
    padding: 28px 22px 105px;
  }

  .webzines-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .webzines-intro {
    margin-bottom: 0;
    font-size: 11px;
  }

  .slide--publications h2,
  .slide--webzines h2 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .publications-grid,
  .webzines-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .publication-card {
    min-height: 104px;
  }

  .webzine-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .webzine-feature__cover {
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .webzine-feature__content {
    min-height: 280px;
    gap: 20px;
    padding: 26px 24px 28px;
  }

  .webzine-feature h3 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .webzine-feature__description {
    margin-top: 14px;
    font-size: 11px;
  }

  .cookie-banner {
    right: 12px;
    bottom: 12px;
    grid-template-columns: 1fr;
    gap: 16px;
    width: calc(100vw - 24px);
    padding: 20px;
  }

  .cookie-banner__button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
