/* =========================
   GLOBAL
========================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  color: #111;
  background: #fff;

  font-family:
    "Helvetica Neue",
    Arial,
    sans-serif;

  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}


/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;

  display: flex;
  justify-content: space-between;
  align-items: center;

  min-height: 66px;

  padding:
    12px
    56px;

  background:
    rgba(255, 255, 255, 0.97);

  backdrop-filter: blur(14px);

  border-bottom:
    1px solid #dedede;
}


/* =========================
   LOGO
========================= */

.brand {
  display: flex;
  align-items: center;

  margin: 0;
  padding: 0;

  line-height: 0;
}

.logo-image {
  display: block;

  width: 54px;
  height: auto;

  margin: 0;
}


/* =========================
   DESKTOP NAVIGATION
========================= */

.main-navigation {
  display: flex;
  align-items: center;

  gap: 38px;

  margin: 0;
  padding: 0;

  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.main-navigation a {
  position: relative;
}

.main-navigation a::after {
  content: "";

  position: absolute;

  left: 0;
  right: 100%;
  bottom: -6px;

  height: 1px;

  background: #111;

  transition:
    right
    0.25s ease;
}

.main-navigation a:hover::after {
  right: 0;
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
  display: none;

  width: 30px;
  height: 28px;

  margin: 0;
  padding: 0;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.menu-toggle span {
  display: block;

  width: 26px;
  height: 1px;

  margin: 3px 0;

  background: #111;

  opacity: 1;

  transform-origin: center;

  transition:
    transform
    0.3s ease,
    opacity
    0.2s ease;
}


/* =========================
   PROJECTS
========================= */

.work {
  padding:
    24px
    14px
    105px;
}

.project-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 14px;
}

.project-card {
  position: relative;

  width: 100%;

  aspect-ratio:
    9 / 16;

  padding: 0;
  border: 0;

  overflow: hidden;

  background: #eee;

  cursor: pointer;
}

.project-card img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition:
    transform
    0.75s
    cubic-bezier(0.22, 1, 0.36, 1);
}

.project-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.26);

  transition:
    background
    0.35s ease;
}

.project-title {
  position: absolute;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 22px;

  color: #fff;

  text-align: center;

  font-size:
    clamp(27px, 2.65vw, 49px);

  font-weight: 500;

  letter-spacing:
    -0.04em;

  line-height: 0.95;
}

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

.project-card:hover .project-overlay {
  background:
    rgba(0, 0, 0, 0.15);
}

.loading-state {
  grid-column:
    1 / -1;

  min-height:
    65vh;

  display: grid;
  place-items: center;

  font-size: 11px;

  letter-spacing:
    0.14em;

  text-transform:
    uppercase;
}

.project-error {
  padding:
    60px
    20px;

  color: #666;

  text-align:
    center;
}


/* =========================
   ABOUT
========================= */

.about {
  display: grid;

  grid-template-columns:
    1fr
    1fr;

  gap: 8vw;

  align-items: center;

  padding:
    110px
    6vw;

  border-top:
    1px solid #dedede;
}

.about-image {
  aspect-ratio:
    4 / 5;

  overflow: hidden;

  background: #eee;
}

.about-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position:
    center
    20%;
}

.section-label {
  color: #707070;

  font-size: 10px;

  font-weight: 500;

  letter-spacing:
    0.16em;
}

.about-copy h1 {
  margin:
    24px
    0
    32px;

  font-size:
    clamp(52px, 6vw, 96px);

  font-weight: 500;

  line-height:
    0.92;

  letter-spacing:
    -0.05em;
}

.about-copy p {
  max-width:
    600px;

  color: #555;

  font-size: 18px;

  line-height:
    1.72;
}


/* =========================
   CONTACT
========================= */

.contact {
  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(340px, 0.85fr);

  gap: 8vw;

  align-items:
    start;

  padding:
    120px
    6vw;

  border-top:
    1px solid #dedede;
}

.contact-heading h2 {
  max-width:
    900px;

  margin:
    28px
    0
    55px;

  font-size:
    clamp(64px, 8vw, 130px);

  font-weight:
    500;

  line-height:
    0.86;

  letter-spacing:
    -0.06em;
}

.contact-email {
  display:
    inline-flex;

  align-items:
    center;

  gap: 8px;

  padding-bottom:
    7px;

  border-bottom:
    1px solid #111;

  font-size:
    11px;

  font-weight:
    500;

  letter-spacing:
    0.14em;

  text-transform:
    uppercase;
}

.email-arrow {
  display:
    inline-block;

  color:
    #111;

  font-size:
    15px;

  font-weight:
    300;

  line-height:
    1;

  transform:
    translateY(-1px);

  transition:
    transform
    0.25s ease;
}

.contact-email:hover .email-arrow {
  transform:
    translate(3px, -1px);
}


/* =========================
   CONTACT FORM
========================= */

.contact-form {
  width:
    100%;

  padding-top:
    28px;
}

.form-field {
  margin-bottom:
    30px;
}

.form-field label {
  display:
    block;

  margin-bottom:
    10px;

  color:
    #666;

  font-size:
    9px;

  font-weight:
    500;

  letter-spacing:
    0.16em;
}

.form-field input,
.form-field textarea {
  display:
    block;

  width:
    100%;

  padding:
    10px
    0
    13px;

  border:
    0;

  border-bottom:
    1px solid #aaa;

  border-radius:
    0;

  outline:
    none;

  background:
    transparent;

  color:
    #111;

  font-family:
    inherit;

  font-size:
    17px;

  line-height:
    1.5;

  resize:
    vertical;

  transition:
    border-color
    0.25s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color:
    #111;
}

.form-submit {
  padding:
    14px
    22px;

  border:
    1px solid #111;

  background:
    #111;

  color:
    #fff;

  font-size:
    10px;

  font-weight:
    500;

  letter-spacing:
    0.16em;

  cursor:
    pointer;

  transition:
    background
    0.25s ease,
    color
    0.25s ease;
}

.form-submit:hover {
  background:
    #fff;

  color:
    #111;
}

.form-submit:disabled {
  opacity:
    0.5;

  cursor:
    wait;
}

.form-status {
  min-height:
    22px;

  margin:
    16px
    0
    0;

  color:
    #555;

  font-size:
    13px;

  line-height:
    1.5;
}


/* =========================
   FOOTER
========================= */

footer {
  display:
    flex;

  align-items:
    center;

  justify-content:
    flex-start;

  padding:
    24px
    56px;

  border-top:
    1px solid #dedede;

  color:
    #777;

  font-size:
    11px;
}


/* =========================
   VIDEO MODAL
========================= */

.modal {
  position:
    fixed;

  inset:
    0;

  z-index:
    100;

  display:
    none;

  padding:
    72px
    28px
    28px;

  overflow:
    auto;

  background:
    rgba(255, 255, 255, 0.985);
}

.modal.open {
  display:
    block;
}

.modal-close {
  position:
    fixed;

  top:
    17px;

  right:
    25px;

  z-index:
    101;

  border:
    0;

  background:
    transparent;

  font-size:
    44px;

  font-weight:
    300;

  cursor:
    pointer;
}

.modal-content {
  width:
    min(1080px, 100%);

  margin:
    0 auto;
}

.modal-heading {
  display:
    flex;

  justify-content:
    space-between;

  align-items:
    flex-end;

  gap:
    30px;

  margin-bottom:
    20px;
}

.modal-heading h2 {
  margin:
    0;

  font-size:
    clamp(44px, 6vw, 88px);

  font-weight:
    500;

  letter-spacing:
    -0.05em;
}

.modal-heading p {
  max-width:
    470px;

  margin:
    0;

  color:
    #666;

  font-size:
    12px;

  line-height:
    1.5;
}

.modal-video-wrap {
  display:
    flex;

  justify-content:
    center;

  align-items:
    center;

  min-height:
    65vh;

  background:
    #fff;
}

.modal-video-wrap video {
  display:
    block;

  width:
    min(100%, 540px);

  height:
    auto;

  max-height:
    82vh;

  object-fit:
    contain;

  background:
    transparent;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

  .site-header {
    padding-left:
      28px;

    padding-right:
      28px;
  }

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

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

    padding:
      80px
      24px;
  }

  .about-copy {
    order:
      -1;
  }

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

    gap:
      55px;
  }

  .modal-heading {
    display:
      block;
  }

  .modal-heading p {
    margin-top:
      14px;
  }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

  /* HEADER */

  .site-header {
    min-height:
      60px;

    padding:
      10px
      18px;
  }


  /* LOGO */

  .logo-image {
    width:
      56px;

    height:
      auto;
  }


  /* HAMBURGER */

  .menu-toggle {
    position:
      relative;

    z-index:
      42;

    display:
      flex;

    flex-direction:
      column;

    justify-content:
      center;

    align-items:
      center;

    width:
      30px;

    height:
      28px;

    margin:
      0;

    padding:
      0;

    border:
      0;

    background:
      transparent;
  }

  .menu-toggle span {
    display:
      block;

    width:
      26px;

    height:
      1px;

    margin:
      3px
      0;

    background:
      #111;

    opacity:
      1;

    transform-origin:
      center;
  }


  /* HAMBURGER → X */

  .menu-toggle.open span:nth-child(1) {
    transform:
      translateY(7px)
      rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity:
      0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform:
      translateY(-7px)
      rotate(-45deg);
  }


  /* MOBILE NAV */

  .main-navigation {
    position:
      absolute;

    top:
      100%;

    left:
      0;

    right:
      0;

    z-index:
      40;

    display:
      flex;

    flex-direction:
      column;

    align-items:
      stretch;

    gap:
      0;

    visibility:
      hidden;

    opacity:
      0;

    transform:
      translateY(-10px);

    padding:
      0
      18px;

    background:
      rgba(255, 255, 255, 0.99);

    border-bottom:
      1px solid #dedede;

    transition:
      opacity
      0.25s ease,
      transform
      0.25s ease,
      visibility
      0.25s ease;
  }

  .main-navigation.open {
    visibility:
      visible;

    opacity:
      1;

    transform:
      translateY(0);
  }

  .main-navigation a {
    padding:
      18px
      0;

    border-bottom:
      1px solid #e7e7e7;

    font-size:
      16px;

    font-weight:
      400;

    letter-spacing:
      0;
  }

  .main-navigation a:last-child {
    border-bottom:
      0;
  }

  .main-navigation a::after {
    display:
      none;
  }


  /* PROJECTS */

  .work {
    padding:
      10px
      8px
      60px;
  }

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

    gap:
      8px;
  }

  .project-title {
    padding:
      8px;

    font-size:
      17px;

    line-height:
      1;
  }


  /* ABOUT */

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

    gap:
      40px;

    padding:
      70px
      18px;
  }

  .about-copy {
    order:
      -1;
  }

  .about-copy h1 {
    font-size:
      48px;
  }

  .about-copy p {
    font-size:
      16px;
  }


  /* CONTACT */

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

    gap:
      55px;

    padding:
      90px
      18px;
  }

  .contact-heading h2 {
    margin-bottom:
      40px;

    font-size:
      clamp(54px, 17vw, 78px);
  }

  .contact-form {
    padding-top:
      0;
  }

  .contact-email {
    gap:
      6px;

    font-size:
      10px;

    letter-spacing:
      0.11em;
  }

  .email-arrow {
    font-size:
      14px;
  }


  /* FOOTER */

  footer {
    padding:
      22px
      18px;
  }


  /* MODAL */

  .modal {
    padding:
      70px
      14px
      20px;
  }

  .modal-video-wrap {
    min-height:
      auto;
  }

}
/* Keep line breaks in project titles */
.project-title {
  white-space: pre-line;
}