:root {
  --page-bg: #d9d6d1;
  --panel-bg: #f7f4ee;
  --text: #111111;
  --muted: #55514a;
  --accent-sepia: #80624b;
  --line: rgba(17, 17, 17, 0.26);
  --radius: 2rem;
  --shadow: 0 20px 70px rgba(17, 17, 17, 0.08);
  --feature-image-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 28%),
    var(--page-bg);
  color: var(--text);
}

body.lightbox-open {
  overflow: hidden;
}

body.text-page-open .site-header,
body.text-page-open .site-content {
  display: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100% - 1rem, 1580px);
  margin: 0.5rem auto;
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.5rem 3rem;
}

.site-header {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem 2rem;
}

.brand {
  font-family: Cambria, Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--accent-sepia);
  text-align: left;
  justify-self: start;
  margin-left: 5cm;
}

.brand-main,
.brand-subtitle {
  display: block;
}

.brand-main {
  font-size: clamp(2.15rem, 5.1vw, 3.75rem);
  line-height: 1.08;
}

.brand-subtitle {
  margin-top: 0.3rem;
  font-size: clamp(1rem, 2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding-top: 0.35rem;
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  white-space: nowrap;
  color: var(--muted);
  padding: 0.25rem 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch-label {
  margin-right: 0.15rem;
  font-size: 0.74rem;
  color: var(--muted);
}

.language-switch a {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.32rem;
  border-radius: 999px;
  padding-bottom: 0.18rem;
  font-size: 0.88rem;
}

.language-switch a.is-active {
  color: var(--text);
  font-weight: 700;
  background: rgba(17, 17, 17, 0.06);
}

.flag-icon {
  display: inline-block;
  width: 1rem;
  height: 0.72rem;
  border-radius: 0.12rem;
  border: 1px solid rgba(17, 17, 17, 0.14);
  overflow: hidden;
  flex: 0 0 auto;
}

.flag-nl {
  background:
    linear-gradient(
      to bottom,
      #ae1c28 0 33.33%,
      #ffffff 33.33% 66.66%,
      #21468b 66.66% 100%
    );
}

.flag-uk {
  background:
    linear-gradient(to bottom, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(to right, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(33deg, transparent 43%, #ffffff 43% 49%, transparent 49% 51%, #ffffff 51% 57%, transparent 57%),
    linear-gradient(-33deg, transparent 43%, #ffffff 43% 49%, transparent 49% 51%, #ffffff 51% 57%, transparent 57%),
    #012169;
}

.flag-es {
  background:
    linear-gradient(
      to bottom,
      #aa151b 0 25%,
      #f1bf00 25% 75%,
      #aa151b 75% 100%
    );
}

.site-nav a.hidden-nav-link {
  display: none;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.hero {
  min-height: min(70vh, 760px);
  padding: 5rem 0 1rem;
}

.hero-panorama {
  width: 100%;
  margin: 0;
}

.portrait-card {
  justify-self: center;
  width: min(100%, 50%);
}

.project-cover {
  width: min(100%, 50%);
  margin: 0;
}

.project-side {
  align-self: stretch;
  justify-self: start;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  width: 100%;
}

.project-side .contact-card {
  align-self: end;
}

.section-divider {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  margin-top: 0.9rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 2.4fr) minmax(240px, 0.8fr);
  gap: 1.5rem 2rem;
  align-items: start;
  min-height: 17rem;
}

.about-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  font-size: 1.12rem;
  line-height: 1.35;
  max-width: 588px;
}

.about-copy p,
.contact-card p,
.archive-copy p {
  margin: 0;
}

.about-inline-note {
  max-width: 588px;
}

.intro-page {
  grid-template-columns: minmax(120px, 0.7fr) minmax(0, 2.4fr);
  min-height: 22rem;
}

.intro-page .about-copy {
  max-width: 980px;
}

.intro-image-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  gap: 1.5rem;
  align-items: start;
}

.intro-image-row .project-cover {
  width: auto;
}

.intro-image-row .project-cover img {
  width: auto;
  height: 360px;
  max-width: 100%;
}

.text-toggle,
.text-return {
  justify-self: start;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.2;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  cursor: pointer;
}

.extra-text {
  display: grid;
  gap: 1.25rem;
}

.text-page {
  min-height: 100vh;
  padding-top: 2rem;
}

.text-page[hidden] {
  display: none;
}

.text-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 320px);
  gap: 2rem;
  align-items: start;
  margin-left: min(5cm, 12vw);
}

.text-page-copy {
  display: grid;
  gap: 1.5rem;
  font-size: 1.12rem;
  line-height: 1.45;
}

.text-page-copy p {
  margin: 0;
}

.text-page-image {
  margin: 0;
  width: 100%;
}

.contact-card {
  align-self: end;
  display: grid;
  gap: 0.6rem;
  font-size: 1rem;
}

.contact-label {
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.contact-card a {
  font-weight: 700;
}

.featured-story {
  margin-top: 3rem;
}

.story-header {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: start;
}

.story-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 1.5rem;
  align-items: end;
  width: 100%;
}

.story-meta span,
.archive-title span {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-align: left;
}

.story-meta h2,
.archive-title h2,
.season-mark {
  margin: 0;
  font-size: clamp(2.0rem, 4.6vw, 3.15rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.story-meta h2 {
  font-weight: 500;
  white-space: nowrap;
  text-align: left;
  justify-self: start;
  max-width: 100%;
}

.story-link {
  justify-self: end;
  align-self: center;
  border: 2px solid var(--text);
  border-radius: 999px;
  padding: 0.9rem 2rem;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.photo-card {
  margin: 0;
}

.photo-card-group {
  display: grid;
  gap: 0.6rem;
}

.photo-overline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.archive {
  margin-top: 3rem;
}

.archive-head {
  display: grid;
  grid-template-columns: minmax(100px, 0.45fr) 1fr;
  gap: 1rem 2rem;
  align-items: start;
}

.archive-title {
  align-items: end;
}

.photo-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 2rem;
}

.photo-stack {
  display: grid;
  justify-items: start;
  gap: 5rem;
  width: fit-content;
  max-width: 100%;
}

.photo-row {
  display: grid;
  grid-template-columns: minmax(420px, var(--feature-image-width)) minmax(288px, 416px);
  gap: 1.25rem;
  align-items: end;
  width: 100%;
}

.archive-copy {
  display: grid;
  gap: 1rem;
  max-width: 420px;
  font-size: 0.98rem;
  line-height: 1.45;
}

.photo-caption {
  margin: 0;
  max-width: 512px;
  font-size: 0.9rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  color: var(--muted);
  align-self: end;
}

.season-mark {
  font-size: clamp(2.8rem, 6vw, 4rem);
}

.archive-story {
  margin-top: 2.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(17, 17, 17, 0.92);
  cursor: zoom-out;
}

.lightbox-image {
  max-width: min(94vw, 1600px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
}

.photo-card img {
  cursor: zoom-in;
  touch-action: manipulation;
}

.hero-panorama img,
.project-cover img,
.text-page-image img {
  touch-action: manipulation;
}

@media (max-width: 1100px) {
  .site-header,
  .about-grid,
  .story-header,
  .archive-head,
  .archive-title {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .portrait-card {
    justify-self: start;
  }

  .project-cover {
    width: min(100%, 260px);
  }

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

  .story-link {
    justify-self: start;
  }

  .photo-story {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .story-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }

  .story-meta h2 {
    white-space: normal;
    text-align: left;
    justify-self: start;
  }

  .photo-row {
    grid-template-columns: 1fr;
  }

  .text-page-layout {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .text-page-image {
    max-width: 320px;
  }

  .intro-image-row {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .intro-image-row .project-cover img {
    height: 260px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 0.5rem, 100%);
    margin: 0.25rem auto;
    border-radius: 1.3rem;
    padding: 1rem 1rem 2rem;
  }

  .brand {
    font-size: clamp(2.6rem, 16vw, 4rem);
  }

  .site-nav {
    font-size: 0.92rem;
    gap: 0.8rem 1.2rem;
  }

  .hero {
    padding-top: 2rem;
    gap: 1rem;
  }

  .portrait-card {
    width: min(100%, 260px);
  }

  .intro-image-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .intro-image-row .project-cover img {
    width: 100%;
    height: auto;
    max-width: 260px;
  }

  .project-cover {
    width: min(100%, 220px);
  }

  .story-meta span,
  .archive-title span {
    font-size: 2.7rem;
  }

  .story-meta h2,
  .archive-title h2,
  .season-mark {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .story-link {
    width: 100%;
    text-align: center;
    padding-inline: 1rem;
    font-size: 1.4rem;
  }

  .contact-card {
    align-self: start;
  }

  .photo-stack {
    gap: 1rem;
  }
}
