/* ------------------------------------------------------------------
   Polly Harbison Design — site styles
   ------------------------------------------------------------------ */

:root {
  --bg: #f2efe9;
  --bg-soft: #e9e4da;
  --ink: #1b1a17;
  --muted: #6e685e;
  --line: rgba(27, 26, 23, 0.16);
  --line-strong: rgba(27, 26, 23, 0.32);
  --cream: #f8f6f1;
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 86px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

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

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 300;
  padding: 0.75rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.8rem;
  transition: top 0.2s ease;
}

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

.wrap {
  width: min(1400px, 100% - clamp(2.5rem, 8vw, 7rem));
  margin-inline: auto;
}

.section {
  padding-block: clamp(5.5rem, 11vw, 10rem);
}

.section--tight {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.section--alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.6rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label::after {
  content: "";
  width: 3.2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section-title {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 340;
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.lead {
  max-width: 42rem;
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.7;
  color: var(--muted);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.35rem;
  transition: gap 0.3s var(--ease), border-color 0.3s ease;
}

.link-arrow:hover {
  gap: 1rem;
  border-color: var(--ink);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--nav-h);
  color: var(--cream);
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
body.page-solid .site-header {
  background: rgba(242, 239, 233, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 420;
  letter-spacing: 0.01em;
}

.brand small {
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  opacity: 0.66;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.nav-links a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 0.7rem 1.25rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-cta:hover {
  background: currentColor;
  color: var(--bg);
}

.lang-switch {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.lang-current:hover {
  background: currentColor;
  color: var(--bg);
}

.styles-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.styles-link:hover {
  background: currentColor;
  color: var(--bg);
}

.lang-current::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.lang-options {
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 0;
  z-index: 30;
  min-width: 9rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 16px 38px rgba(20, 18, 14, 0.18);
  display: none;
}

.lang-switch.open .lang-options {
  display: block;
}

.lang-options button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.8rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--ink);
  border-radius: 4px;
}

.lang-options button:hover,
.lang-options button[aria-selected="true"] {
  background: var(--bg-soft);
}

.mobile-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.mobile-langs button {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.08em;
}

.mobile-langs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -0.34rem;
}

.menu-toggle span::after {
  top: 0.34rem;
}

body.menu-open .menu-toggle span {
  background: transparent;
}

body.menu-open .menu-toggle span::before {
  transform: translateY(0.34rem) rotate(45deg);
}

body.menu-open .menu-toggle span::after {
  transform: translateY(-0.34rem) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 2rem) 2rem 3rem;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  display: block;
  padding: 0.65rem 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3.2rem);
  font-weight: 340;
  line-height: 1.1;
  border-bottom: 1px solid var(--line);
}

.mobile-menu .menu-foot {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #16140f;
  color: var(--cream);
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  opacity: 0.86;
  transform: scale(1.06);
  animation: hero-in 2.4s var(--ease) forwards;
}

@keyframes hero-in {
  to {
    transform: scale(1);
    opacity: 0.92;
  }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.28) 0%, rgba(12, 11, 9, 0.05) 42%, rgba(12, 11, 9, 0.66) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1400px, 100% - clamp(2.5rem, 8vw, 7rem));
  margin-inline: auto;
  padding-bottom: clamp(3.5rem, 8vw, 7rem);
}

.hero-kicker {
  margin: 0 0 1.4rem;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.78;
}

.hero h1 {
  max-width: 15em;
  margin: 0 0 1.8rem;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 7vw, 6.4rem);
  font-weight: 320;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 35rem;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.86;
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(3rem, 7vw, 6rem);
}

.hero-meta small {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.62;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.72;
}

.scroll-cue::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  animation: cue 2s ease-in-out infinite;
}

@keyframes cue {
  50% {
    transform: scaleX(1.7);
    transform-origin: left;
  }
}

/* Intro ------------------------------------------------------------------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.intro-grid .section-title {
  margin-bottom: 1.5rem;
}

.intro-copy p {
  margin: 0 0 1.4rem;
  color: #3d3a34;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.72;
}

.intro-copy .small {
  display: block;
  margin-top: 2.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Project grid ------------------------------------------------------------ */

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem) clamp(1rem, 2.5vw, 2.2rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.project-card {
  position: relative;
  overflow: hidden;
}

.project-card.span-12 {
  grid-column: span 12;
}

.project-card.span-7 {
  grid-column: span 7;
}

.project-card.span-6 {
  grid-column: span 6;
}

.project-card.span-5 {
  grid-column: span 5;
}

.project-card .frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--bg-soft);
}

.project-card .frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-card .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 14, 0);
  transition: background 0.45s ease;
}

.project-card:hover .frame::after {
  background: rgba(20, 18, 14, 0.1);
}

.project-card figcaption {
  display: block;
  padding-top: 1rem;
}

.project-card h3 {
  margin: 0;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 420;
  line-height: 1.15;
  text-wrap: balance;
}

.project-card .meta {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-card .index {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: auto;
}

/* Studio ------------------------------------------------------------------ */

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
}

.studio-figure {
  position: relative;
}

.studio-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.studio-figure figcaption {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-copy p {
  margin: 0 0 1.3rem;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.72;
  color: #3d3a34;
}

.press-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2.2rem;
  margin: 2.6rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.press-list li {
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.press-label {
  display: block;
  margin-top: 2.4rem;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Awards ------------------------------------------------------------------ */

.award-list {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  border-top: 1px solid var(--line);
}

.award-row {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.award-row .year {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 420;
}

.award-row .award {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3d3a34;
}

/* People ------------------------------------------------------------------ */

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
}

.person {
  border-top: 1px solid var(--line-strong);
  padding-top: 1.5rem;
}

.person-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.person h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
}

.person .role {
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.person .registration {
  margin: 0.15rem 0 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.person p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.68;
  color: #4a463f;
}

/* Contact ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-details .k {
  display: block;
  font-size: 0.66rem;
  font-weight: 550;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.contact-details .v {
  font-size: 1.02rem;
  line-height: 1.5;
}

.contact-details a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.contact-form {
  display: grid;
  gap: 1.1rem;
}

.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.66rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  min-height: 9rem;
  resize: vertical;
}

.contact-form .submit {
  justify-self: start;
  padding: 1rem 2rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact-form .submit:hover {
  background: var(--ink);
  color: var(--bg);
}

.form-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Page hero (inner pages) --------------------------------------------------- */

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(3.5rem, 9vw, 8rem)) 0 clamp(3rem, 6vw, 5rem);
  color: var(--cream);
  overflow: hidden;
}

.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.38), rgba(12, 11, 9, 0.12) 45%, rgba(12, 11, 9, 0.5));
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 320;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.page-hero p {
  max-width: 38rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
  opacity: 0.86;
}

/* Projects archive ----------------------------------------------------------- */

.archive-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.archive-intro .count {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem) clamp(1rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.archive-grid .project-card.span-12 {
  grid-column: 1 / -1;
}

/* Project modal -------------------------------------------------------------- */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  overflow-y: auto;
  background: var(--bg);
}

.project-modal.open {
  display: block;
}

.modal-inner {
  width: min(1240px, 100% - clamp(2rem, 6vw, 5rem));
  margin-inline: auto;
  padding: clamp(5.5rem, 9vw, 8rem) 0 4rem;
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.modal-top .label {
  margin: 0 0 0.8rem;
  font-size: 0.68rem;
  font-weight: 550;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-top h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 340;
  line-height: 1.05;
}

.modal-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease);
}

.modal-close:hover {
  background: var(--ink);
  color: var(--bg);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.65fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.modal-description p {
  margin: 0 0 1.35rem;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.72;
  color: #3d3a34;
}

.modal-meta {
  border-top: 1px solid var(--line-strong);
}

.modal-meta .meta-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-meta .meta-row b {
  display: block;
  font-size: 0.64rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.8rem, 1.8vw, 1.5rem);
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.modal-gallery figure {
  margin: 0;
}

.modal-gallery figure:first-child {
  grid-column: 1 / -1;
}

.modal-gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

.modal-gallery img:hover {
  opacity: 0.88;
}

.modal-gallery figcaption {
  margin-top: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.modal-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.modal-nav button {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.8rem 0;
}

.modal-nav button:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.modal-nav button:disabled {
  opacity: 0.32;
  cursor: default;
  text-decoration: none;
}

/* Lightbox ------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 2rem;
  background: rgba(16, 15, 12, 0.96);
  color: var(--cream);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1500px);
  max-height: 82svh;
  object-fit: contain;
}

.lightbox .lb-caption {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
  text-align: center;
}

.lightbox .lb-close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(248, 246, 241, 0.5);
  border-radius: 50%;
  font-size: 1.3rem;
}

.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid rgba(248, 246, 241, 0.4);
  border-radius: 50%;
  font-size: 1.1rem;
}

.lightbox .lb-prev {
  left: 1.2rem;
}

.lightbox .lb-next {
  right: 1.2rem;
}

.lightbox button:hover {
  background: var(--cream);
  color: var(--ink);
}

/* Footer ------------------------------------------------------------------- */

.site-footer {
  padding: clamp(4rem, 8vw, 7rem) 0 2.5rem;
  background: var(--ink);
  color: var(--cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.footer-brand {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-weight: 320;
  line-height: 1.04;
  max-width: 12em;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.66rem;
  font-weight: 550;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  opacity: 0.86;
}

.footer-col a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(248, 246, 241, 0.18);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.66;
}

.to-top {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Reveal ------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

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

/* Responsive ---------------------------------------------------------------- */

@media (max-width: 1080px) {
  .intro-grid,
  .studio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .project-card.span-12,
  .project-card.span-7,
  .project-card.span-6,
  .project-card.span-5 {
    grid-column: span 12;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

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

  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    grid-template-columns: 1fr;
  }

  .modal-gallery figure:first-child {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .award-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

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

/* Style switcher page -------------------------------------------------------- */

.style-intro {
  max-width: 46rem;
}

.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.style-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--cream);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}

.style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(20, 18, 14, 0.12);
  border-color: var(--line-strong);
}

.style-card .preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.style-card .preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.style-card:hover .preview img {
  transform: scale(1.03);
}

.style-card .body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.3rem 1.4rem 1.5rem;
}

.style-card .head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.style-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 420;
  line-height: 1.15;
}

.style-card .badge {
  flex: none;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.style-card .badge.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.style-card p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

.style-card .use {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.7rem 1.3rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.style-card .use:hover {
  background: var(--ink);
  color: var(--bg);
}

.style-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.style-back:hover {
  color: var(--ink);
}

/* Theme: Original (default) --------------------------------------------------- */

body[data-theme="original"] {
  --bg: #f2efe9;
  --bg-soft: #e9e4da;
  --ink: #1b1a17;
  --muted: #6e685e;
  --line: rgba(27, 26, 23, 0.16);
  --line-strong: rgba(27, 26, 23, 0.32);
  --cream: #f8f6f1;
  --serif: "Fraunces", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Theme: Classic — white gallery, inspired by the official site ------------------ */

body[data-theme="classic"] {
  --bg: #ffffff;
  --bg-soft: #f4f4f1;
  --ink: #111111;
  --muted: #6f6f6f;
  --line: rgba(17, 17, 17, 0.16);
  --line-strong: rgba(17, 17, 17, 0.34);
  --cream: #ffffff;
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body[data-theme="classic"] .site-header.scrolled,
body[data-theme="classic"].page-solid .site-header {
  background: rgba(255, 255, 255, 0.92);
}

body[data-theme="classic"] .hero {
  background: #e9e9e9;
}

body[data-theme="classic"] .hero h1 {
  font-weight: 500;
  letter-spacing: -0.025em;
}

body[data-theme="classic"] .section-title {
  font-weight: 500;
  letter-spacing: -0.02em;
}

body[data-theme="classic"] .project-card .frame {
  border: 1px solid var(--line);
}

body[data-theme="classic"] .project-card .meta {
  letter-spacing: 0.12em;
}

body[data-theme="classic"] .nav-cta,
body[data-theme="classic"] .styles-link,
body[data-theme="classic"] .lang-current,
body[data-theme="classic"] .contact-form .submit,
body[data-theme="classic"] .modal-close,
body[data-theme="classic"] .lightbox button {
  border-radius: 0;
}

body[data-theme="classic"] .site-footer {
  background: #ffffff;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

body[data-theme="classic"] .footer-bottom {
  border-top-color: var(--line);
  opacity: 0.75;
}

/* Theme: Concrete — raw, structural, brutalist ---------------------------------- */

body[data-theme="concrete"] {
  --bg: #e9e5dd;
  --bg-soft: #d9d3c8;
  --ink: #16130f;
  --muted: #6c6559;
  --line: rgba(22, 19, 15, 0.26);
  --line-strong: rgba(22, 19, 15, 0.5);
  --cream: #f2efe8;
  --serif: "Archivo Black", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body[data-theme="concrete"] .site-header.scrolled,
body[data-theme="concrete"].page-solid .site-header {
  background: rgba(233, 229, 221, 0.92);
}

body[data-theme="concrete"] .hero::after {
  background: linear-gradient(180deg, rgba(10, 9, 7, 0.45), rgba(10, 9, 7, 0.12) 45%, rgba(10, 9, 7, 0.72));
}

body[data-theme="concrete"] .hero h1 {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

body[data-theme="concrete"] .hero-kicker {
  font-weight: 700;
  letter-spacing: 0.28em;
}

body[data-theme="concrete"] .section-label {
  font-weight: 700;
  letter-spacing: 0.24em;
}

body[data-theme="concrete"] .section-title {
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

body[data-theme="concrete"] .project-card .frame {
  border: 2px solid var(--ink);
}

body[data-theme="concrete"] .project-card h3 {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

body[data-theme="concrete"] .award-list {
  border-top: 2px solid var(--ink);
}

body[data-theme="concrete"] .award-row {
  border-bottom: 2px solid var(--line);
}

body[data-theme="concrete"] .person {
  border-top: 2px solid var(--ink);
}

body[data-theme="concrete"] .nav-cta,
body[data-theme="concrete"] .styles-link,
body[data-theme="concrete"] .lang-current,
body[data-theme="concrete"] .contact-form .submit,
body[data-theme="concrete"] .modal-close,
body[data-theme="concrete"] .lightbox button {
  border-radius: 0;
  border-width: 2px;
}

body[data-theme="concrete"] .site-footer {
  background: var(--ink);
  color: var(--cream);
}

/* Theme: Editorial — refined magazine serif ------------------------------------ */

body[data-theme="editorial"] {
  --bg: #faf7f2;
  --bg-soft: #f0ebe1;
  --ink: #211d17;
  --muted: #8a7d6b;
  --line: rgba(33, 29, 23, 0.16);
  --line-strong: rgba(33, 29, 23, 0.34);
  --cream: #fffdf8;
  --accent: #9c6b4a;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body[data-theme="editorial"] .site-header.scrolled,
body[data-theme="editorial"].page-solid .site-header {
  background: rgba(250, 247, 242, 0.92);
}

body[data-theme="editorial"] .section-label {
  color: var(--accent);
  letter-spacing: 0.22em;
}

body[data-theme="editorial"] .section-label::after {
  background: var(--accent);
}

body[data-theme="editorial"] .hero h1 {
  font-weight: 500;
  letter-spacing: -0.015em;
}

body[data-theme="editorial"] .section-title {
  font-weight: 500;
  letter-spacing: -0.01em;
}

body[data-theme="editorial"] .project-card h3,
body[data-theme="editorial"] .person h3 {
  font-style: italic;
  font-weight: 500;
}

body[data-theme="editorial"] .project-card .meta {
  letter-spacing: 0.16em;
}

body[data-theme="editorial"] .award-row .year {
  color: var(--accent);
}

body[data-theme="editorial"] .site-footer {
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--line-strong);
}

body[data-theme="editorial"] .footer-bottom {
  border-top-color: var(--line);
  opacity: 0.75;
}

/* Theme: Coastal — light, airy, sea-glass -------------------------------------- */

body[data-theme="coastal"] {
  --bg: #f7faf8;
  --bg-soft: #e9f1ef;
  --ink: #21323a;
  --muted: #6d7f88;
  --line: rgba(33, 50, 58, 0.16);
  --line-strong: rgba(33, 50, 58, 0.34);
  --cream: #ffffff;
  --serif: "Outfit", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body[data-theme="coastal"] .site-header.scrolled,
body[data-theme="coastal"].page-solid .site-header {
  background: rgba(247, 250, 248, 0.92);
}

body[data-theme="coastal"] .hero {
  background: #cfe0dd;
}

body[data-theme="coastal"] .hero::after {
  background: linear-gradient(180deg, rgba(30, 54, 60, 0.18), rgba(30, 54, 60, 0.06) 45%, rgba(30, 54, 60, 0.5));
}

body[data-theme="coastal"] .hero h1 {
  font-weight: 300;
  letter-spacing: -0.01em;
}

body[data-theme="coastal"] .section-title {
  font-weight: 320;
}

body[data-theme="coastal"] .project-card h3 {
  font-weight: 450;
}

body[data-theme="coastal"] .project-card .frame,
body[data-theme="coastal"] .studio-figure img,
body[data-theme="coastal"] .modal-gallery img {
  border-radius: 10px;
}

body[data-theme="coastal"] .modal-gallery img {
  border-radius: 8px;
}

body[data-theme="coastal"] .nav-cta,
body[data-theme="coastal"] .styles-link,
body[data-theme="coastal"] .lang-current,
body[data-theme="coastal"] .contact-form .submit,
body[data-theme="coastal"] .modal-close {
  border-radius: 999px;
}

body[data-theme="coastal"] .contact-form input,
body[data-theme="coastal"] .contact-form textarea {
  border-radius: 6px;
  background: #ffffff;
}

body[data-theme="coastal"] .award-row .year {
  color: #4d7f8b;
}

body[data-theme="coastal"] .site-footer {
  background: #1d2b33;
  color: #f2f7f5;
}

body[data-theme="coastal"] .footer-bottom {
  border-top-color: rgba(242, 247, 245, 0.18);
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Theme layouts — genuinely different page structures per theme
   -------------------------------------------------------------------------- */

/* Classic: white gallery, official-site inspired ---------------------------- */

body[data-theme="classic"] .nav-cta {
  display: none;
}

body[data-theme="classic"] .brand {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-theme="classic"] .brand small {
  display: none;
}

body[data-theme="classic"] .nav-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

body[data-theme="classic"] .hero {
  min-height: 0;
  display: block;
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="classic"] .hero img {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: cover;
  opacity: 1;
  transform: none;
  animation: none;
}

body[data-theme="classic"] .hero::after {
  display: none;
}

body[data-theme="classic"] .hero-content {
  position: static;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  width: min(1400px, 100% - clamp(2.5rem, 8vw, 7rem));
  margin-inline: auto;
  padding: 1.4rem 0 3rem;
}

body[data-theme="classic"] .hero-kicker {
  order: 2;
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  opacity: 0.6;
}

body[data-theme="classic"] .hero h1 {
  max-width: none;
  margin: 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body[data-theme="classic"] .hero p,
body[data-theme="classic"] .hero-meta {
  display: none;
}

body[data-theme="classic"] .section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

body[data-theme="classic"] .section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

body[data-theme="classic"] .section-label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
}

body[data-theme="classic"] .project-grid {
  display: block;
  columns: 3;
  column-gap: 1.2rem;
  margin-top: 2rem;
}

body[data-theme="classic"] .project-card {
  grid-column: auto !important;
  break-inside: avoid;
  margin-bottom: 1.6rem;
}

body[data-theme="classic"] .project-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-theme="classic"] .project-card .meta {
  font-size: 0.62rem;
}

body[data-theme="classic"] .people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

body[data-theme="classic"] .person p {
  font-size: 0.82rem;
}

body[data-theme="classic"] .award-row {
  grid-template-columns: 4rem minmax(0, 1fr);
  padding: 0.8rem 0;
}

body[data-theme="classic"] .footer-brand {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-theme="classic"] .modal-top h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-theme="classic"] .modal-gallery {
  grid-template-columns: 1fr;
  max-width: 920px;
  margin-inline: auto;
}

body[data-theme="classic"] .archive-grid {
  display: block;
  columns: 3;
  column-gap: 1.2rem;
}

body[data-theme="classic"] .archive-grid .project-card {
  grid-column: auto !important;
  break-inside: avoid;
  margin-bottom: 1.6rem;
}

body[data-theme="classic"] .page-hero {
  padding: calc(var(--nav-h) + 2.5rem) 0 1.5rem;
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="classic"] .page-hero img {
  position: relative;
  height: 56vh;
  opacity: 1;
}

body[data-theme="classic"] .page-hero::after {
  display: none;
}

/* Concrete: split hero, numbered project list -------------------------------- */

body[data-theme="concrete"] .brand {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

body[data-theme="concrete"] .brand small {
  display: none;
}

body[data-theme="concrete"] .nav-links a {
  font-weight: 700;
  letter-spacing: 0.22em;
}

body[data-theme="concrete"] .hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 92svh;
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="concrete"] .hero img {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: none;
  animation: none;
}

body[data-theme="concrete"] .hero::after {
  display: none;
}

body[data-theme="concrete"] .hero-content {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  width: auto;
  margin: 0;
  padding: 3rem clamp(2rem, 5vw, 4rem);
}

body[data-theme="concrete"] .hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

body[data-theme="concrete"] .hero p {
  max-width: 28rem;
}

body[data-theme="concrete"] .hero-meta {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 3rem;
}

body[data-theme="concrete"] .project-grid {
  display: block;
  counter-reset: proj;
  margin-top: 2rem;
}

body[data-theme="concrete"] .project-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(200px, 340px);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 2px solid var(--ink);
}

body[data-theme="concrete"] .project-card::before {
  counter-increment: proj;
  content: "0" counter(proj);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

body[data-theme="concrete"] .project-card .frame {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
}

body[data-theme="concrete"] .project-card figcaption {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

body[data-theme="concrete"] .project-card h3 {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
}

body[data-theme="concrete"] .project-card .meta {
  display: block;
  margin-top: 0.4rem;
}

body[data-theme="concrete"] .archive-grid {
  display: block;
  counter-reset: proj;
}

body[data-theme="concrete"] .archive-grid .project-card {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(200px, 340px);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  align-items: center;
  padding: 1.6rem 0;
  border-bottom: 2px solid var(--ink);
}

body[data-theme="concrete"] .archive-grid .project-card::before {
  counter-increment: proj;
  content: "0" counter(proj);
  grid-column: 1;
  grid-row: 1;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

body[data-theme="concrete"] .archive-grid .project-card .frame {
  grid-column: 3;
  grid-row: 1;
  width: 100%;
}

body[data-theme="concrete"] .archive-grid .project-card figcaption {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

body[data-theme="concrete"] .studio-grid {
  grid-template-columns: 1fr;
  gap: 2rem;
}

body[data-theme="concrete"] .studio-figure {
  order: 2;
}

body[data-theme="concrete"] .studio-copy {
  order: 1;
}

body[data-theme="concrete"] .studio-copy .section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

body[data-theme="concrete"] .award-row .year {
  font-size: 1.8rem;
}

body[data-theme="concrete"] .site-footer .footer-brand {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  text-transform: uppercase;
}

body[data-theme="concrete"] .page-hero h1 {
  text-transform: uppercase;
}

/* Editorial: magazine cover + contents list ----------------------------------- */

body[data-theme="editorial"] .brand {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 500;
}

body[data-theme="editorial"] .brand small {
  display: none;
}

body[data-theme="editorial"] .nav-links a {
  letter-spacing: 0.12em;
}

body[data-theme="editorial"] .hero {
  min-height: 0;
  display: block;
  padding-top: var(--nav-h);
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="editorial"] .hero img {
  position: relative;
  width: 100%;
  height: 74vh;
  object-fit: cover;
  opacity: 1;
  transform: none;
  animation: none;
}

body[data-theme="editorial"] .hero::after {
  display: none;
}

body[data-theme="editorial"] .hero-content {
  position: relative;
  width: min(1080px, 100% - clamp(1.5rem, 5vw, 4rem));
  margin: -3.5rem auto 0;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem) 3rem;
  background: var(--cream);
}

body[data-theme="editorial"] .hero-kicker {
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.18em;
}

body[data-theme="editorial"] .hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  font-style: italic;
  letter-spacing: -0.015em;
}

body[data-theme="editorial"] .hero p {
  max-width: 40rem;
}

body[data-theme="editorial"] .intro-copy p:first-of-type::first-letter {
  float: left;
  padding: 0.06em 0.14em 0 0;
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: 0.82;
  color: var(--accent);
}

body[data-theme="editorial"] .project-grid {
  display: block;
  counter-reset: proj;
}

body[data-theme="editorial"] .project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
}

body[data-theme="editorial"] .project-card .frame {
  grid-column: 1;
  grid-row: 1;
}

body[data-theme="editorial"] .project-card figcaption {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

body[data-theme="editorial"] .project-card figcaption::before {
  counter-increment: proj;
  content: "0" counter(proj);
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
}

body[data-theme="editorial"] .project-card h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

body[data-theme="editorial"] .project-card .meta {
  letter-spacing: 0.14em;
}

body[data-theme="editorial"] .archive-grid {
  display: block;
  counter-reset: proj;
}

body[data-theme="editorial"] .archive-grid .project-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line-strong);
}

body[data-theme="editorial"] .archive-grid .project-card .frame {
  grid-column: 1;
  grid-row: 1;
}

body[data-theme="editorial"] .archive-grid .project-card figcaption {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

body[data-theme="editorial"] .studio-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
}

body[data-theme="editorial"] .people-grid {
  grid-template-columns: 1fr 1fr;
}

body[data-theme="editorial"] .person h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
}

body[data-theme="editorial"] .award-row {
  grid-template-columns: 6rem minmax(0, 1fr);
  padding: 1.2rem 0;
}

body[data-theme="editorial"] .footer-brand {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-style: italic;
}

body[data-theme="editorial"] .modal-top h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
}

body[data-theme="editorial"] .page-hero h1 {
  font-style: italic;
}

/* Coastal: floating pill header, centered hero, horizontal project strip ------- */

body[data-theme="coastal"] .site-header {
  top: 1rem;
  right: auto;
  left: 50%;
  width: min(1200px, 100% - 2rem);
  height: auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink);
  transform: translateX(-50%);
}

body[data-theme="coastal"] .site-header.scrolled,
body[data-theme="coastal"].page-solid .site-header {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 34px rgba(33, 50, 58, 0.1);
}

body[data-theme="coastal"] .nav {
  height: 64px;
  padding-inline: 1.2rem;
}

body[data-theme="coastal"] .nav-cta {
  background: var(--ink);
  color: #ffffff;
}

body[data-theme="coastal"] .nav-cta:hover {
  background: transparent;
  color: var(--ink);
}

body[data-theme="coastal"] .hero {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--nav-h) + 2.5rem) 1rem 0;
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="coastal"] .hero img {
  position: relative;
  width: min(1200px, 100%);
  height: 72vh;
  border-radius: 28px;
  object-fit: cover;
  opacity: 1;
  transform: none;
  animation: none;
}

body[data-theme="coastal"] .hero::after {
  display: none;
}

body[data-theme="coastal"] .hero-content {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto;
  padding: 3.5rem 1rem 4rem;
  text-align: center;
}

body[data-theme="coastal"] .hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
}

body[data-theme="coastal"] .hero p {
  margin-inline: auto;
}

body[data-theme="coastal"] .hero-meta {
  justify-content: center;
}

body[data-theme="coastal"] .hero-meta small {
  display: none;
}

body[data-theme="coastal"] .project-grid {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

body[data-theme="coastal"] .project-card {
  grid-column: auto !important;
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
}

body[data-theme="coastal"] .project-card .frame {
  border-radius: 18px;
}

body[data-theme="coastal"] .project-card h3 {
  font-size: 1.25rem;
}

body[data-theme="coastal"] .archive-grid {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

body[data-theme="coastal"] .archive-grid .project-card {
  grid-column: auto !important;
  flex: 0 0 min(340px, 78vw);
  scroll-snap-align: start;
}

body[data-theme="coastal"] .studio-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}

body[data-theme="coastal"] .studio-figure img {
  border-radius: 24px;
}

body[data-theme="coastal"] .people-grid {
  grid-template-columns: 1fr 1fr;
}

body[data-theme="coastal"] .person {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--cream);
}

body[data-theme="coastal"] .contact-form {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--cream);
}

body[data-theme="coastal"] .site-footer {
  margin-top: 3rem;
  border-radius: 32px 32px 0 0;
}

body[data-theme="coastal"] .page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
}

/* Responsive adjustments for the theme layouts -------------------------------- */

@media (max-width: 1080px) {
  body[data-theme="classic"] .project-grid {
    columns: 2;
  }

  body[data-theme="classic"] .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="editorial"] .studio-grid,
  body[data-theme="coastal"] .studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body[data-theme="classic"] .project-grid {
    columns: 1;
  }

  body[data-theme="classic"] .archive-grid {
    columns: 1;
  }

  body[data-theme="classic"] .hero-content {
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 1rem;
  }

  body[data-theme="classic"] .hero-kicker {
    order: 0;
  }

  body[data-theme="concrete"] .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-theme="concrete"] .hero img {
    grid-column: 1;
    grid-row: 1;
    height: 52vh;
  }

  body[data-theme="concrete"] .hero-content {
    grid-column: 1;
    grid-row: 2;
    padding: 2.5rem 1.25rem 3rem;
  }

  body[data-theme="concrete"] .project-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.2rem 0;
  }

  body[data-theme="concrete"] .project-card::before {
    display: none;
  }

  body[data-theme="concrete"] .project-card .frame {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-theme="concrete"] .project-card figcaption {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-theme="concrete"] .archive-grid .project-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.2rem 0;
  }

  body[data-theme="concrete"] .archive-grid .project-card::before {
    display: none;
  }

  body[data-theme="concrete"] .archive-grid .project-card .frame {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-theme="concrete"] .archive-grid .project-card figcaption {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-theme="editorial"] .hero img {
    height: 58vh;
  }

  body[data-theme="editorial"] .hero-content {
    margin: -2rem auto 0;
    padding: 2rem 1.25rem;
  }

  body[data-theme="editorial"] .project-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-theme="editorial"] .project-card .frame {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-theme="editorial"] .project-card figcaption {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-theme="editorial"] .archive-grid .project-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  body[data-theme="editorial"] .archive-grid .project-card .frame {
    grid-column: 1;
    grid-row: 1;
  }

  body[data-theme="editorial"] .archive-grid .project-card figcaption {
    grid-column: 1;
    grid-row: 2;
  }

  body[data-theme="coastal"] .site-header {
    top: 0.6rem;
    width: calc(100% - 1.2rem);
  }

  body[data-theme="coastal"] .nav {
    padding-inline: 0.7rem;
  }

  body[data-theme="coastal"] .hero {
    padding-inline: 0.6rem;
  }

  body[data-theme="coastal"] .hero img {
    height: 56vh;
    border-radius: 20px;
  }
}

/* Gallery: faithful Cargo-style take on the official site ---------------------- */

body[data-theme="gallery"] {
  --bg: #ffffff;
  --bg-soft: #f2f2f2;
  --ink: #0a0a0a;
  --muted: #666666;
  --line: rgba(10, 10, 10, 0.14);
  --line-strong: rgba(10, 10, 10, 0.3);
  --cream: #ffffff;
  --serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body[data-theme="gallery"] .site-header {
  background: #ffffff;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

body[data-theme="gallery"] .site-header.scrolled,
body[data-theme="gallery"].page-solid .site-header {
  background: #ffffff;
  border-bottom-color: var(--ink);
}

body[data-theme="gallery"] .brand {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-theme="gallery"] .brand small {
  display: none;
}

body[data-theme="gallery"] .nav-links a {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
}

body[data-theme="gallery"] .nav-cta {
  display: none;
}

body[data-theme="gallery"] .styles-link,
body[data-theme="gallery"] .lang-current {
  border: 0;
  border-radius: 0;
  padding: 0.5rem 0.6rem;
  letter-spacing: 0.16em;
}

body[data-theme="gallery"] .styles-link:hover,
body[data-theme="gallery"] .lang-current:hover {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

body[data-theme="gallery"] .lang-current::after {
  display: none;
}

body[data-theme="gallery"] .hero {
  min-height: 100svh;
  display: block;
  background: #000000;
  color: #ffffff;
}

body[data-theme="gallery"] .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: none;
  animation: none;
}

body[data-theme="gallery"] .hero::after {
  display: none;
}

body[data-theme="gallery"] .hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  width: auto;
  margin: 0;
  padding: 3rem clamp(1.25rem, 4vw, 3.5rem) 1.6rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.62));
}

body[data-theme="gallery"] .hero-kicker {
  order: 2;
  margin: 0;
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  opacity: 0.8;
}

body[data-theme="gallery"] .hero h1 {
  max-width: none;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body[data-theme="gallery"] .hero p,
body[data-theme="gallery"] .hero-meta {
  display: none;
}

body[data-theme="gallery"] .section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

body[data-theme="gallery"] .section-label {
  font-size: 0.6rem;
  letter-spacing: 0.26em;
}

body[data-theme="gallery"] .section-title {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-theme="gallery"] .project-grid,
body[data-theme="gallery"] .archive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 2rem;
  border: 1px solid var(--line);
  background: var(--line);
}

body[data-theme="gallery"] .project-card {
  position: relative;
  grid-column: auto !important;
  margin: 0;
  background: #ffffff;
}

body[data-theme="gallery"] .project-card .frame {
  border: 0;
}

body[data-theme="gallery"] .project-card .frame::after {
  display: none;
}

body[data-theme="gallery"] .project-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body[data-theme="gallery"] .project-card:hover figcaption {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  body[data-theme="gallery"] .project-card figcaption {
    opacity: 1;
    transform: none;
  }
}

body[data-theme="gallery"] .project-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body[data-theme="gallery"] .project-card .meta {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

body[data-theme="gallery"] .studio-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
}

body[data-theme="gallery"] .studio-copy p {
  font-size: 0.95rem;
}

body[data-theme="gallery"] .people-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

body[data-theme="gallery"] .person {
  border-top: 1px solid var(--ink);
}

body[data-theme="gallery"] .person p {
  font-size: 0.8rem;
}

body[data-theme="gallery"] .award-row {
  grid-template-columns: 4rem minmax(0, 1fr);
  padding: 0.8rem 0;
}

body[data-theme="gallery"] .award-row .year {
  font-size: 1rem;
}

body[data-theme="gallery"] .contact-form input,
body[data-theme="gallery"] .contact-form textarea {
  border-radius: 0;
  border-color: var(--ink);
  background: #ffffff;
}

body[data-theme="gallery"] .contact-form .submit {
  border-radius: 0;
}

body[data-theme="gallery"] .site-footer {
  background: #0a0a0a;
  color: #ffffff;
}

body[data-theme="gallery"] .footer-brand {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-theme="gallery"] .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.18);
  opacity: 0.75;
}

body[data-theme="gallery"] .modal-top h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body[data-theme="gallery"] .modal-gallery {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

body[data-theme="gallery"] .modal-gallery figure {
  background: #ffffff;
}

body[data-theme="gallery"] .modal-close {
  border-radius: 0;
}

body[data-theme="gallery"] .page-hero {
  padding: calc(var(--nav-h) + 2rem) 0 1.2rem;
  background: #ffffff;
  color: var(--ink);
}

body[data-theme="gallery"] .page-hero img {
  position: relative;
  height: 62vh;
  opacity: 1;
}

body[data-theme="gallery"] .page-hero::after {
  display: none;
}

body[data-theme="gallery"] .page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 1080px) {
  body[data-theme="gallery"] .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-theme="gallery"] .studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body[data-theme="gallery"] .project-grid,
  body[data-theme="gallery"] .archive-grid {
    grid-template-columns: 1fr;
  }

  body[data-theme="coastal"] .project-grid,
  body[data-theme="coastal"] .archive-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  body[data-theme="coastal"] .project-card {
    flex: none;
    width: 100%;
  }

  body[data-theme="gallery"] .hero {
    min-height: 78svh;
  }

  body[data-theme="gallery"] .hero-content {
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 2rem;
  }

  body[data-theme="gallery"] .hero-kicker {
    order: 0;
  }
}
