@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@300;400;500;600;700&family=Cutive+Mono&family=Space+Grotesk:wght@700&display=swap");

:root {
  --bg: #fbfbf8;
  --text: #111111;
  --muted: #707070;
  --line: rgba(17, 17, 17, 0.08);
  --accent: #111111;
  --accent-line: rgba(17, 17, 17, 0.18);
  --max-width: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Cutive Mono", "Courier New", monospace;
  font-weight: 400;
}

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

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

.project-frame {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 22px 30px 40px;
}

.project-header,
.project-hero,
.project-info,
.project-gallery,
.project-text,
.project-footer {
  padding-top: 26px;
}

.project-hero,
.project-footer {
  position: relative;
}

.project-header,
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.project-back,
.project-nav {
  font-size: 0.92rem;
}

.project-back,
.project-footer a,
.project-nav {
  position: relative;
}

.project-back::after,
.project-footer a::after,
.project-nav::after {
  display: none;
}

.project-back,
.project-nav {
  color: var(--accent);
}

.project-name {
  margin: 0;
  font-family: "Akzidenz-Grotesk BQ", "Akzidenz-Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
}

.project-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-top: 48px;
}

.project-symbol {
  display: none;
  position: absolute;
  z-index: 1;
  color: rgba(17, 17, 17, 0.15);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.project-symbol-main {
  top: 10px;
  right: 4%;
}

.project-symbol-alt {
  top: 142px;
  left: 4%;
}

.project-symbol-soft {
  top: 84px;
  right: 20%;
}

.project-symbol-extra {
  top: 176px;
  right: 16%;
}

.project-symbol-footer {
  top: 10px;
  right: 10%;
}

.project-symbol-footer-alt {
  top: 20px;
  left: 26%;
}

.project-eyebrow {
  margin: 0 0 26px;
  color: var(--accent);
  font-family: "Cutive Mono", "Courier New", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 3rem);
  line-height: 1.18;
  color: var(--accent);
  text-decoration: none;
}

.project-lead {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.58;
  font-weight: 400;
  white-space: pre-line;
}

.project-lead-secondary {
  margin-top: 14px;
}

.project-info {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  padding-top: 96px;
}

.info-block p,
.info-block span {
  margin: 0;
}

.info-block p {
  color: var(--accent);
  font-family: "Cutive Mono", "Courier New", monospace;
  font-size: 0.78rem;
  margin-bottom: 8px;
  text-decoration: none;
}

.info-block span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding-top: 40px;
  align-items: start;
}

.gallery-stack {
  display: contents;
}

.project-gallery img {
  width: 100%;
  background: #efefe9;
  object-fit: cover;
}

.gallery-main {
  max-width: none;
  width: 100%;
  aspect-ratio: 1 / 1.22;
}

.gallery-secondary {
  max-width: none;
  width: 100%;
  aspect-ratio: 1 / 1.22;
}

.gallery-detail {
  max-width: none;
  width: 100%;
  aspect-ratio: 1 / 1.22;
}

.gallery-extra {
  max-width: none;
  width: 100%;
  aspect-ratio: 1 / 1.22;
  object-fit: cover;
}

.project-footer {
  padding-top: 64px;
}

.project-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.project-footer a {
  font-size: 0.78rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

@media (max-width: 980px) {
  .project-hero,
  .project-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main,
  .gallery-secondary,
  .gallery-detail {
    max-width: 100%;
  }

  .project-info {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
    padding-top: 64px;
  }
}

@media (max-width: 760px) {
  .project-frame {
    width: min(calc(100% - 20px), var(--max-width));
    padding: 18px 12px 30px;
  }

  .project-header,
  .project-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-header,
  .project-hero,
  .project-info,
  .project-gallery,
  .project-footer {
    padding-top: 18px;
  }

  .project-symbol {
    font-size: 0.98rem;
  }

  .project-symbol-main,
  .project-symbol-alt,
  .project-symbol-soft,
  .project-symbol-extra,
  .project-symbol-footer,
  .project-symbol-footer-alt {
    top: 8px;
    right: 12px;
    left: auto;
  }

  .project-symbol-alt {
    right: 28%;
  }

  .project-symbol-soft {
    right: 44%;
  }

  .project-symbol-extra {
    right: 58%;
  }

  .project-name {
    font-size: 1rem;
  }

  .project-eyebrow {
    margin-bottom: 16px;
    font-size: 0.72rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(1.2rem, 8vw, 1.8rem);
    line-height: 1.14;
    text-underline-offset: 8px;
  }

  .project-lead {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .project-lead-secondary {
    margin-top: 10px;
  }

  .project-info {
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    padding-top: 48px;
  }

  .info-block p {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .info-block span {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-top: 28px;
  }

  .gallery-stack {
    display: grid;
    gap: 4px;
  }

  .gallery-main,
  .gallery-secondary,
  .gallery-detail {
    aspect-ratio: 4 / 5;
  }

  .project-footer {
    gap: 12px;
    padding-top: 40px;
  }
}
