@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-extrabold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Outfit ExtraLight";
  src: url("../fonts/outfit-extralight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Veskop Helvetica";
  src: url("../fonts/helvetica-roman.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Veskop Helvetica";
  src: url("../fonts/helvetica-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --black: #000;
  --gray: #9f9e9e;
  --dark-gray: #333;
  --page-pad: clamp(24px, 2.65vw, 42px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--black);
  font-family: "Outfit", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 198px;
  padding: 22px var(--page-pad) 18px;
  background: rgba(255, 255, 255, 0.98);
}

.brand {
  align-self: start;
  width: max-content;
  font-family: "Veskop Helvetica", Arial, sans-serif;
  font-size: clamp(68px, 7.7vw, 112px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.015em;
}

.header-right {
  justify-self: end;
  text-align: right;
}

.studio-link {
  display: block;
  margin-right: -0.2em;
  font-family: "Veskop Helvetica", Arial, sans-serif;
  font-size: clamp(58px, 7.2vw, 104px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.22em;
}

.desktop-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin-top: 18px;
  color: var(--gray);
  font-family: "Veskop Helvetica", Arial, sans-serif;
  font-size: clamp(18px, 1.7vw, 30px);
  font-weight: 700;
}

.desktop-nav a,
.project-name,
.contact-links a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.contact-links a:hover,
.contact-links a:focus-visible {
  color: var(--black);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.projects {
  width: min(981px, calc(100% - 80px));
  margin: 22px auto 72px;
  scroll-margin-top: 30px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 15px;
}

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

.project-image {
  overflow: hidden;
  aspect-ratio: 472 / 464;
  background: #f2f2f2;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.22, 1, 0.36, 1), filter 250ms ease;
}

.project-card:hover .project-image img,
.project-card:focus-visible .project-image img {
  transform: scale(1.025);
  filter: brightness(0.94);
}

.project-name {
  margin: 13px 5px 0;
  color: var(--gray);
  font-family: "Veskop Helvetica", Arial, sans-serif;
  font-size: clamp(17px, 1.45vw, 22px);
  font-weight: 700;
}

.project-card:hover .project-name,
.project-card:focus-visible .project-name {
  color: var(--black);
}

.content-page {
  min-height: calc(100vh - 198px);
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 8vw;
  padding: clamp(170px, 14.5vw, 225px) var(--page-pad) 120px;
}

.display-title {
  margin: 0;
  align-self: start;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(64px, 7vw, 106px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0.13em;
}

.about-copy {
  max-width: 470px;
  margin: 26px 2vw 0 0;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.28;
  letter-spacing: 0.09em;
}

.studio-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10vw;
  padding: 70px var(--page-pad) 90px;
  border-top: 1px solid #dedede;
}

.info-block h2 {
  margin: 0 0 26px;
  color: var(--gray);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.info-block p {
  max-width: 590px;
  margin: 0;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.48;
  letter-spacing: 0.045em;
}

.studio-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px var(--page-pad) 38px;
  color: #777;
  font-size: 14px;
  border-top: 1px solid #dedede;
}

.contact-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(370px, 0.85fr);
  padding-top: clamp(160px, 16vw, 250px);
}

.contact-title span {
  display: block;
}

.contact-panel {
  max-width: 450px;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.field {
  position: relative;
}

.field input,
.field textarea {
  width: 100%;
  padding: 7px 12px 9px;
  color: #222;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #777;
  border-radius: 0;
  outline: 0;
  resize: vertical;
}

.field textarea {
  min-height: 92px;
}

.field input:focus,
.field textarea:focus {
  border-color: #000;
  box-shadow: 0 1px 0 #000;
}

.submit-button {
  width: 150px;
  min-height: 42px;
  padding: 10px 20px;
  color: #fff;
  background: #000;
  border: 1px solid #000;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.submit-button:hover,
.submit-button:focus-visible {
  color: #000;
  background: #fff;
}

.form-status {
  min-height: 22px;
  margin: -10px 0 0;
  color: #555;
  font-size: 14px;
}

.contact-links {
  display: grid;
  gap: 6px;
  margin-top: 95px;
  font-family: "Outfit ExtraLight", "Outfit", sans-serif;
  font-size: clamp(29px, 3.1vw, 48px);
  line-height: 1.18;
  letter-spacing: 0.06em;
}

.socials {
  display: flex;
  gap: 31px;
  margin-top: 78px;
}

.socials a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
}

.socials svg {
  width: 32px;
  height: 32px;
}

.project-page {
  color: var(--dark-gray);
}

.project-page .brand,
.project-page .studio-link {
  color: var(--black);
}

.project-intro {
  position: relative;
  min-height: 646px;
  padding: 43px 4.1vw 42px;
}

.project-detail-title {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--gray);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
}

.project-meta {
  display: grid;
  max-width: 610px;
  gap: 28px;
  margin: 0;
}

.project-meta div {
  display: grid;
  gap: 2px;
}

.project-meta dt {
  font-size: clamp(18px, 1.5vw, 23px);
  font-weight: 800;
}

.project-meta dd {
  margin: 0;
  white-space: pre-line;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.28;
}

.project-back {
  position: absolute;
  top: 48px;
  right: var(--page-pad);
  color: var(--gray);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-back:hover,
.project-back:focus-visible {
  color: #000;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 15px;
}

.gallery-button {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #eee;
  border: 0;
  cursor: zoom-in;
}

.gallery-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 250ms ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
  transform: scale(1.025);
  filter: brightness(0.9);
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lightbox-close {
  top: 15px;
  right: 20px;
  font-size: 42px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  padding: 18px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 112px;
    padding: 24px 22px;
  }

  .brand {
    font-size: clamp(48px, 15vw, 62px);
  }

  .header-right {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    z-index: 40;
    top: 29px;
    right: 16px;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 10px 7px;
    place-content: center;
    gap: 7px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 31px;
    height: 2px;
    background: #000;
  }

  .menu-toggle::after {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 31px;
    line-height: 1;
    content: "☰";
  }

  .menu-toggle span {
    visibility: hidden;
  }

  .mobile-nav {
    position: fixed;
    z-index: 15;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    padding: 112px 24px 40px;
    background: #fff;
    font-size: clamp(42px, 14vw, 68px);
    font-weight: 800;
    transform: translateY(-105%);
    transition: transform 320ms ease;
  }

  .mobile-nav.is-open {
    transform: translateY(0);
  }

  .projects {
    width: calc(100% - 32px);
    margin-top: 18px;
  }

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

  .project-name {
    font-size: 18px;
  }

  .split-hero,
  .contact-hero {
    grid-template-columns: 1fr;
    gap: 62px;
    padding: 84px 24px 80px;
  }

  .display-title {
    font-size: clamp(53px, 16vw, 82px);
  }

  .about-copy {
    margin: 0;
    font-size: 19px;
  }

  .studio-lower {
    grid-template-columns: 1fr;
    gap: 70px;
    padding: 60px 24px 70px;
  }

  .studio-footer {
    flex-direction: column;
    padding-inline: 24px;
  }

  .contact-panel {
    max-width: none;
  }

  .contact-links {
    margin-top: 65px;
    font-size: clamp(27px, 8.6vw, 39px);
  }

  .project-intro {
    min-height: 0;
    padding: 34px 24px 60px;
  }

  .project-detail-title {
    padding-right: 0;
    margin-top: 58px;
  }

  .project-back {
    top: 24px;
    right: 24px;
  }

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

  .lightbox {
    padding: 56px 14px;
  }
}

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