@import url("https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,ital,wght@6..96,400;6..96,500;6..96,600;6..96,400&family=Hanken+Grotesk:wght@300;400;500&family=Prata&display=swap");

@font-face {
  font-family: "Montserrat Cyrillic";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("fonts/montserrat-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-052F, U+1C80-1C8A, U+2116;
}

:root {
  --paper: #e9e2d4;
  --bone: #f4efe6;
  --linen: #ddd3c2;
  --clay: #b9a589;
  --taupe: #8c7d68;
  --umber: #6a5a47;
  --ink: #211c16;
  --ink-soft: #4a4136;
  --rust: #9c5a3c;
  --wine: #350b15;
  --green: #0b2b24;
  --line: rgba(33, 28, 22, 0.15);
  --font-display: "Bodoni Moda", "Prata", "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Montserrat Cyrillic", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

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

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

button,
input,
select {
  border-radius: 0;
  font: inherit;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  padding: 18px 32px;
  background: rgba(233, 226, 212, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: flex;
  width: max-content;
}

.wordmark img {
  display: block;
  width: 142px;
  height: auto;
  filter: invert(1);
}

.topbar nav {
  display: flex;
  gap: 28px;
}

.topbar nav a,
.contact-link,
.section-no,
.project-caption span,
.project-link,
.hero-index,
.manifest-line,
.about-portrait figcaption,
.stats span,
.contacts,
footer,
.guide-types span {
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.topbar nav a,
.contact-link {
  position: relative;
  color: rgba(33, 28, 22, 0.7);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.topbar nav a::after,
.contact-link::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--rust);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.topbar nav a:hover::after,
.contact-link:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.contact-link {
  justify-self: end;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 150px 32px 32px;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
}

.hero > img {
  position: relative;
  z-index: 1;
  grid-row: 2;
  width: 100%;
  height: clamp(420px, 62vw, 790px);
  margin-top: 64px;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  display: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  padding: 0;
}

.hero h1,
.definition h2,
.formats h2,
.manifest-big,
.projects h2,
.backstage h2,
.about h2,
.contact h2,
dialog h2 {
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: clamp(3.7rem, 7vw, 6.3rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.hero h1 i,
.manifest-big i,
.backstage h2 i,
.about h2 i,
.contact h2 i {
  color: var(--rust);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  max-width: 580px;
  margin: 32px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.625;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 36px;
}

.button,
.outline-button,
.contact form button,
dialog form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 16px 36px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
}

.button.light {
  background: var(--ink);
  color: var(--paper);
}

.button:hover,
.outline-button:hover,
.contact form button:hover,
dialog form button:hover {
  background: var(--ink-soft);
}

.text-link {
  position: relative;
  color: var(--rust);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero-index {
  position: absolute;
  z-index: 3;
  top: 160px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--umber);
  text-align: right;
}

.section-pad {
  padding: 120px 32px;
}

.section-no {
  margin: 0;
  color: var(--rust);
}

.definition {
  background: var(--bone);
}

.definition-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: end;
}

.definition h2,
.formats h2,
.projects h2,
.about h2 {
  max-width: 980px;
  font-size: clamp(3rem, 6vw, 5.6rem);
}

.definition-copy {
  max-width: 520px;
  padding: 0 0 8px;
  color: var(--ink-soft);
}

.lead {
  color: var(--ink);
  font-size: 1.05rem;
}

.definition blockquote {
  margin: 36px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
}

.formats {
  background: var(--paper);
}

.formats-head {
  padding-bottom: 76px;
}

.format-list {
  border-top: 1px solid var(--line);
}

.format-row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr 30px;
  align-items: center;
  width: 100%;
  padding: 30px 32px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.format-row > span,
.format-row > b {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.format-row strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
}

.format-row em {
  color: var(--umber);
  font-size: 0.82rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.format-row b {
  justify-self: end;
  font-size: 1.4rem;
  font-weight: 300;
}

.format-detail {
  display: none;
  grid-template-columns: minmax(0, 650px) auto;
  gap: 42px;
  align-items: end;
  padding: 38px 32px 52px 20%;
  border-bottom: 1px solid var(--line);
  background: var(--linen);
  color: var(--ink-soft);
}

.format-detail.open {
  display: grid;
}

.format-detail p {
  margin: 0;
}

.format-detail a {
  color: var(--rust);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.manifest {
  padding: 110px 32px;
  background: var(--green);
  color: var(--paper);
}

.manifest-line {
  color: rgba(233, 226, 212, 0.7);
}

.manifest-big {
  max-width: 1250px;
  margin: 54px 0 64px;
  font-size: clamp(4.8rem, 10vw, 10.5rem);
}

.manifest-parts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(233, 226, 212, 0.25);
}

.manifest-parts span {
  padding: 18px 12px 18px 0;
  border-right: 1px solid rgba(233, 226, 212, 0.25);
  color: rgba(233, 226, 212, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects {
  background: var(--paper);
}

.projects-title {
  display: grid;
  grid-template-columns: 3fr 6fr 3fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}

.projects-title h2 {
  margin: 0;
}

.projects-intro {
  max-width: 360px;
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.6;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 80px 32px;
  align-items: start;
}

.project-card {
  display: block;
  min-width: 0;
}

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

.project-card--two {
  grid-column: span 5;
  margin-top: 96px;
}

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

.project-card--four {
  grid-column: span 7;
  margin-top: -48px;
}

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

.project-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--linen);
}

.project-media--portrait {
  aspect-ratio: 4 / 5;
}

.project-media--landscape {
  aspect-ratio: 4 / 3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease-out;
}

.project-card--one img {
  object-position: center 55%;
}

.project-card--two img {
  object-position: 66% center;
}

.project-card:hover .project-media img {
  transform: scale(1.04);
}

.project-number {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--paper);
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.project-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  min-height: 64px;
  margin-top: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.project-caption h3 {
  max-width: 56%;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
}

.project-caption span {
  max-width: 48%;
  color: var(--umber);
  text-align: right;
}

.project-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--rust);
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.project-link b {
  font-weight: 400;
}

.project-card:hover .project-link {
  opacity: 1;
}

.backstage {
  display: grid;
  grid-template-columns: 7fr 5fr;
  min-height: 780px;
  background: var(--bone);
  color: var(--ink);
}

.backstage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.backstage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 7vw;
}

.backstage h2 {
  font-size: clamp(3rem, 5.5vw, 5.6rem);
}

.backstage-copy > p:not(.section-no) {
  max-width: 520px;
  margin-top: 34px;
  color: var(--ink-soft);
}

.outline-button {
  width: max-content;
  margin-top: 28px;
}

.process {
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.process-grid > div {
  min-height: 245px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid b {
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
}

.process-grid h3 {
  margin: 46px 0 18px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.2;
}

.process-grid p {
  margin: 0;
  color: var(--ink-soft);
}

.about {
  display: grid;
  grid-template-columns: 5fr 2.4fr 4.6fr;
  gap: 32px;
  align-items: end;
  background: var(--bone);
}

.about-statement {
  align-self: start;
}

.about-portrait {
  width: 100%;
  max-width: 280px;
  margin: 0;
  justify-self: center;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-portrait figcaption {
  margin-top: 14px;
  color: var(--umber);
}

.about-copy {
  max-width: 520px;
  color: var(--ink-soft);
}

.about-copy p:first-child {
  color: var(--ink);
  font-size: 1.05rem;
}

.stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
  border-top: 1px solid var(--line);
}

.stats div {
  min-height: 130px;
  padding: 22px 22px 22px 0;
  border-right: 1px solid var(--line);
}

.stats b {
  display: block;
  margin-bottom: 18px;
  color: var(--rust);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}

.stats span {
  color: var(--umber);
}

.contact {
  padding: 120px 32px 64px;
  background: var(--wine);
  color: var(--paper);
}

.contact .section-no {
  color: #c88b70;
}

.contact h2 {
  margin: 46px 0 34px;
  font-size: clamp(5rem, 13vw, 12rem);
}

.contact > p:not(.section-no) {
  max-width: 700px;
  color: rgba(233, 226, 212, 0.75);
  font-size: 1.05rem;
}

.contact form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  margin-top: 64px;
  border-top: 1px solid rgba(233, 226, 212, 0.25);
  border-bottom: 1px solid rgba(233, 226, 212, 0.25);
}

.contact label {
  padding: 18px;
  border-right: 1px solid rgba(233, 226, 212, 0.25);
  color: rgba(233, 226, 212, 0.65);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.contact input,
.contact select {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
}

.contact select option {
  color: var(--ink);
}

.contact form button {
  background: var(--paper);
  color: var(--ink);
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 32px;
  color: rgba(233, 226, 212, 0.72);
}

.contacts a:hover {
  color: var(--paper);
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 32px;
  background: var(--ink);
  color: rgba(233, 226, 212, 0.72);
}

footer .wordmark img {
  filter: none;
}

dialog {
  width: min(820px, calc(100% - 32px));
  max-width: none;
  padding: 54px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(33, 28, 22, 0.8);
}

dialog h2 {
  margin: 32px 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 2.2rem;
}

.guide-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.guide-types span {
  padding: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--umber);
  text-align: center;
}

dialog form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--line);
}

dialog input {
  min-width: 0;
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
}

@media (max-width: 1050px) {
  .topbar nav {
    gap: 18px;
  }

  .projects-title {
    grid-template-columns: 3fr 9fr;
  }

  .projects-intro {
    grid-column: 2;
  }

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

  .about-statement,
  .stats {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 70px;
    padding: 15px 20px;
  }

  .topbar nav {
    display: none;
  }

  .contact-link {
    font-size: 0.62rem;
  }

  .wordmark img {
    width: 116px;
  }

  .hero {
    padding: 120px 20px 20px;
  }

  .hero-index {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .hero > img {
    height: 68vh;
    margin-top: 48px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .section-pad {
    padding: 82px 20px;
  }

  .definition-grid,
  .backstage,
  .about {
    grid-template-columns: 1fr;
  }

  .definition-copy {
    margin-top: 42px;
  }

  .format-row {
    grid-template-columns: 42px 1fr 24px;
    padding: 24px 20px;
  }

  .format-row em {
    display: none;
  }

  .format-detail {
    grid-template-columns: 1fr;
    padding: 28px 20px 38px;
  }

  .manifest {
    padding: 82px 20px;
  }

  .manifest-big {
    font-size: 17vw;
  }

  .manifest-parts {
    grid-template-columns: 1fr 1fr;
  }

  .projects-title {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .projects-intro {
    grid-column: auto;
  }

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

  .project-card--one,
  .project-card--two,
  .project-card--three,
  .project-card--four,
  .project-card--five {
    grid-column: auto;
    margin-top: 0;
  }

  .project-media--landscape {
    aspect-ratio: 4 / 5;
  }

  .project-caption {
    align-items: flex-start;
  }

  .project-caption h3 {
    max-width: 62%;
  }

  .backstage {
    min-height: 0;
  }

  .backstage > img {
    height: 58vh;
  }

  .backstage-copy {
    padding: 72px 20px;
  }

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

  .about-statement,
  .stats {
    grid-column: auto;
  }

  .about-portrait {
    max-width: 260px;
    justify-self: start;
  }

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

  .contact {
    padding: 84px 20px 44px;
  }

  .contact h2 {
    font-size: 22vw;
  }

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

  .contact label {
    border-right: 0;
    border-bottom: 1px solid rgba(233, 226, 212, 0.25);
  }

  .contact form button {
    min-height: 64px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding: 30px 20px;
  }

  dialog {
    padding: 42px 22px;
  }

  dialog form {
    grid-template-columns: 1fr;
  }

  dialog input {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 15vw;
  }

  .project-caption {
    min-height: 0;
  }

  .project-caption h3 {
    font-size: 1.6rem;
  }

  .project-caption span {
    font-size: 0.56rem;
    letter-spacing: 0.24em;
  }

  .process-grid,
  .stats,
  .guide-types {
    grid-template-columns: 1fr;
  }
}

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

  .project-media img {
    transition: none;
  }
}
