:root {
  --ink: #151411;
  --muted: #736f68;
  --paper: #eee9df;
  --paper-soft: #faf7ef;
  --line: rgba(21, 20, 17, 0.12);
  --smoke: rgba(247, 243, 235, 0.72);
  --shadow: 0 18px 60px rgba(22, 18, 14, 0.12);
  --type: "Geist", "Avenir Next", "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 2%, rgba(255, 255, 255, 0.82), transparent 26rem),
    linear-gradient(135deg, var(--paper-soft), var(--paper) 58%, #e3dccf);
  font-family: var(--type);
  text-rendering: optimizeLegibility;
}

body.view-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 3.5vw, 54px);
  backdrop-filter: blur(22px);
  background: rgba(250, 247, 239, 0.82);
  border-bottom: 1px solid rgba(21, 20, 17, 0.07);
}

.brand {
  flex: 0 0 auto;
  font-family: var(--type);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 32px);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(21, 20, 17, 0.11);
  border-radius: 999px;
  background: rgba(238, 233, 223, 0.58);
}

.language-button {
  min-width: 34px;
  min-height: 25px;
  padding: 5px 9px 4px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.language-button:hover {
  color: var(--ink);
}

.language-button.is-active {
  color: var(--ink);
  background: rgba(255, 252, 245, 0.9);
  box-shadow: 0 6px 18px rgba(21, 20, 17, 0.07);
}

main {
  isolation: isolate;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(18px, 3vw, 46px);
  padding: 78px clamp(18px, 3.5vw, 54px) 12px;
}

.hero-copy {
  max-width: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-family: var(--type);
  font-weight: 500;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 5.4rem);
  line-height: 0.94;
}

.hero-meta {
  display: grid;
  gap: 0;
  max-width: none;
}

.hero-line,
.studio-copy p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(0.88rem, 0.95vw, 0.98rem);
  font-weight: 400;
  line-height: 1.45;
}

.hero-line {
  max-width: 860px;
}

.text-link {
  display: none;
  width: fit-content;
  padding-bottom: 7px;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 8px 11px 7px;
  border: 1px solid rgba(21, 20, 17, 0.13);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(250, 247, 239, 0.5);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.hero-actions a:hover {
  border-color: rgba(21, 20, 17, 0.28);
  background: rgba(255, 252, 245, 0.86);
  transform: translateY(-1px);
}

.project-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.project-strip span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.project-strip span + span {
  border-left: 1px solid var(--line);
}

.projects-section,
.studio-section,
.contact-section {
  padding: clamp(70px, 9vw, 132px) clamp(18px, 3.5vw, 54px);
}

.projects-section {
  padding-top: 0;
  padding-bottom: clamp(52px, 7vw, 92px);
}

.projects-section .section-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 70px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.15vw, 18px);
}

.project-card {
  position: relative;
  min-height: clamp(270px, 30vw, 500px);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: #d8d2c7;
  border: 1px solid rgba(21, 20, 17, 0.08);
  box-shadow: none;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  filter: saturate(0.72) contrast(1.04) brightness(0.95);
  transition: transform 950ms cubic-bezier(0.19, 1, 0.22, 1), filter 950ms ease;
}

.project-card:hover .project-card__image,
.project-card:focus-visible .project-card__image {
  filter: saturate(0.88) contrast(1.06) brightness(1);
  transform: scale(1.055);
}

.project-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), transparent 28%),
    linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.project-card__copy {
  position: absolute;
  left: clamp(15px, 1.7vw, 24px);
  right: clamp(15px, 1.7vw, 24px);
  bottom: clamp(15px, 1.7vw, 24px);
  display: grid;
  gap: 10px;
  color: #fffaf0;
  text-align: left;
}

.project-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-card__title {
  margin: 0;
  font-family: var(--type);
  font-size: clamp(1.35rem, 2.35vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.project-card__scope {
  max-width: 92%;
  color: rgba(255, 250, 240, 0.68);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.project-card__index {
  position: absolute;
  top: clamp(14px, 1.6vw, 22px);
  left: clamp(14px, 1.6vw, 22px);
  z-index: 1;
  color: rgba(255, 250, 240, 0.76);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.studio-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: clamp(36px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.studio-copy {
  display: grid;
  gap: 22px;
  align-content: end;
}

.contact-section {
  min-height: 58vh;
  display: grid;
  align-content: center;
  gap: 28px;
  color: #fff8ec;
  background:
    linear-gradient(rgba(23, 21, 18, 0.56), rgba(23, 21, 18, 0.66)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2200&q=82") center / cover;
}

.contact-section h2 {
  max-width: 960px;
}

.contact-section a {
  width: fit-content;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  letter-spacing: 0.06em;
}

.project-view {
  position: fixed;
  z-index: 100;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: #080807;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.project-view.is-open {
  visibility: visible;
  opacity: 1;
}

.project-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.project-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080807;
}

.project-caption {
  position: absolute;
  left: clamp(18px, 3vw, 48px);
  bottom: clamp(18px, 3vw, 48px);
  max-width: min(470px, calc(100vw - 36px));
  padding: clamp(16px, 1.7vw, 22px);
  color: #fff9ef;
  background: rgba(8, 8, 7, 0.26);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 249, 239, 0.12);
}

.project-caption h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 4.8rem);
  letter-spacing: -0.07em;
}

.project-caption p {
  margin: 0;
  color: rgba(255, 249, 239, 0.78);
  line-height: 1.55;
}

.project-count {
  margin-bottom: 10px !important;
  font-size: 0.58rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-details {
  margin-top: 14px !important;
  color: rgba(255, 249, 239, 0.7) !important;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.close-project,
.project-arrow {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 249, 239, 0.36);
  color: #fff9ef;
  background: rgba(8, 8, 7, 0.32);
  backdrop-filter: blur(16px);
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease;
}

.close-project:hover,
.project-arrow:hover {
  border-color: rgba(255, 249, 239, 0.84);
  background: rgba(8, 8, 7, 0.58);
}

.close-project {
  top: clamp(16px, 2.4vw, 34px);
  right: clamp(16px, 2.4vw, 34px);
  padding: 10px 13px;
  font-size: 0.58rem;
}

.project-arrow {
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 0.54rem;
  transform: translateY(-50%);
}

.project-arrow--prev {
  left: clamp(14px, 2.4vw, 34px);
}

.project-arrow--next {
  right: clamp(14px, 2.4vw, 34px);
}

@media (max-width: 900px) {
  .site-header {
    position: sticky;
    padding-block: 16px;
  }

  .hero,
  .studio-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .hero-line {
    white-space: normal;
  }

  .project-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-strip span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .project-strip span:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .project-card,
  .project-card:nth-child(n) {
    grid-column: auto;
    min-height: 46vw;
  }

  .project-caption {
    right: 18px;
  }
}

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

  .site-header {
    gap: 10px;
  }

  .language-button {
    min-width: 31px;
    padding-inline: 8px;
  }

  .hero {
    padding-inline: 14px;
  }

  .projects-section,
  .studio-section,
  .contact-section {
    padding-inline: 14px;
  }

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

  .project-card,
  .project-card:nth-child(n) {
    min-height: 112vw;
  }

  .project-strip {
    grid-template-columns: 1fr;
  }

  .project-strip span,
  .project-strip span:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .project-strip span:first-child {
    border-top: 0;
  }

  .project-arrow {
    top: auto;
    bottom: 18px;
    width: 58px;
    height: 58px;
  }

  .project-caption {
    left: 14px;
    right: 14px;
    bottom: 94px;
  }

  .project-caption p:not(.project-count):not(.project-details) {
    display: none;
  }
}

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