:root {
  --bg: #f3f1eb;
  --text: #1d1d1b;
  --muted: #747474;
  --line: #d7d4cc;
  --field: #f7f7f5;
  --field-border: #cfcfc9;
  --white: #ffffff;
  --accent: #e43d30;
  --link: #009fe3;
  --contact-bg: #ececea;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
}

/* HEADER */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  width: 100%;
  height: 76px;
  padding: 0 40px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  color: var(--white);
  background: transparent;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.site-header.is-scrolled {
  color: var(--text);
  background: rgba(243, 241, 235, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;

  width: 46px;
  height: 46px;

  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;

  transition: width 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-icon {
  display: block;

  width: 46px;
  height: 46px;

  flex-shrink: 0;
  object-fit: contain;

  filter: invert(1);
  transition: filter 0.3s ease;
}

.site-header.is-scrolled .brand-icon {
  filter: none;
}

.brand-wordmark {
  display: flex;
  align-items: center;

  width: 175px;
  height: 46px;
  margin-left: 14px;

  flex-shrink: 0;

  opacity: 0;
  transform: translateX(-18px);

  transition:
    opacity 0.35s ease,
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-wordmark-image {
  display: block;

  width: auto;
  height: 46px;
  max-width: none;

  filter: invert(1);
  transition: filter 0.3s ease;
}

.site-header.is-scrolled .brand-wordmark-image {
  filter: none;
}

@media (hover: hover) {
  .brand:hover {
    width: 235px;
  }

  .brand:hover .brand-wordmark {
    opacity: 1;
    transform: translateX(0);
  }
}

.brand:focus-visible {
  width: 235px;
}

.brand:focus-visible .brand-wordmark {
  opacity: 1;
  transform: translateX(0);
}

/* NAVIGATION */

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;

  color: inherit;
  text-decoration: none;
  text-transform: uppercase;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;

  transition: opacity 0.2s ease;
}

.site-nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 100%;
  height: 1px;

  background: currentColor;

  transform: scaleX(0);
  transform-origin: right;

  transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav a:hover {
  opacity: 0.65;
}

.nav-toggle {
  display: none;

  width: 40px;
  height: 40px;
  padding: 0;

  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;

  width: 22px;
  height: 1px;
  margin: 6px auto;

  background: currentColor;

  transition: transform 0.25s ease;
}

/* HERO */

.hero-slider {
  position: relative;

  width: 100%;
  height: 100svh;
  min-height: 620px;

  overflow: hidden;
  background: #111;
  touch-action: pan-y;
}

.hero-track {
  display: flex;

  width: 100%;
  height: 100%;

  transform: translate3d(-100%, 0, 0);

  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;

  flex: 0 0 100%;
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.5);
}

.hero-content,
.hero-content:visited {
  position: relative;
  z-index: 2;

  width: min(100% - 40px, 1320px);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  color: var(--white);
  text-align: center;
  text-decoration: none;
}

.hero-content h1,
.hero-content .project-category {
  color: var(--white);
  will-change: opacity, transform;
}

.hero-content .project-category {
  opacity: 1;
  transform: scale(1);

  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0s,
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

.hero-content h1 {
  opacity: 1;
  transform: scale(1);

  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.38s,
    transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.38s;
}

.hero-slider.is-text-hidden .hero-content {
  pointer-events: none;
}

.hero-slider.is-text-hidden .hero-content .project-category,
.hero-slider.is-text-hidden .hero-content h1 {
  opacity: 0;
  transform: scale(0.76);
}

.hero-slider.is-leaving .hero-content .project-category {
  transition:
    opacity 0.38s ease 0s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

.hero-slider.is-leaving .hero-content h1 {
  transition:
    opacity 0.4s ease 0s,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0s;
}

.hero-project-link {
  cursor: pointer;
}

.hero-project-link:hover h1 {
  opacity: 0.8;
}

.hero-project-link:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.85);
  outline-offset: 14px;
}

.project-category {
  margin: 0 0 20px;

  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 100%;
  margin: 0;

  font-size: clamp(34px, 4.2vw, 68px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

.slider-button {
  position: absolute;
  top: 50%;
  z-index: 5;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;
  padding: 0;

  border: 0;
  background: transparent;

  color: var(--white);
  cursor: pointer;

  transform: translateY(-50%);
  transition: opacity 0.2s ease;
}

.slider-button:hover {
  opacity: 0.6;
}

.slider-arrow {
  display: block;

  width: 32px;
  height: 32px;

  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-counter {
  position: absolute;
  bottom: 36px;
  left: 40px;
  z-index: 5;

  display: flex;
  align-items: center;
  gap: 12px;

  color: var(--white);

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.counter-line {
  width: 42px;
  height: 1px;

  background: rgba(255, 255, 255, 0.7);
}

/* HOME WORK */

.home-work-section {
  padding: 100px 40px 90px;
  border-bottom: 1px solid var(--line);
}

.home-work-heading {
  margin-bottom: 44px;
}

.home-work-heading h2 {
  margin: 0;

  font-size: clamp(64px, 10vw, 150px);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.home-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-work-card {
  position: relative;

  display: block;
  overflow: hidden;

  aspect-ratio: 1 / 1;
  background: #d7d7d3;

  color: var(--white);
  text-decoration: none;
}

.home-work-card img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  transform: scale(1);

  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-work-overlay {
  position: absolute;
  inset: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  padding: 28px;

  opacity: 0;
  background: rgba(0, 0, 0, 0);

  text-align: center;

  transition:
    opacity 0.35s ease,
    background 0.35s ease;
}

.home-work-overlay h3 {
  max-width: 90%;
  margin: 0 0 14px;

  font-size: clamp(24px, 2vw, 34px);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -0.045em;
}

.home-work-overlay p {
  margin: 0;

  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
}

.home-work-card:hover img,
.home-work-card:focus-visible img {
  transform: scale(1.25);
}

.home-work-card:hover .home-work-overlay,
.home-work-card:focus-visible .home-work-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.48);
}

.home-work-card:focus-visible {
  outline: none;
}

.home-work-footer {
  display: flex;
  justify-content: flex-end;

  margin-top: 38px;
}

.home-work-more {
  display: inline-flex;
  align-items: center;
  gap: 18px;

  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.home-work-more span {
  position: relative;

  display: block;
  width: 48px;
  height: 1px;

  background: var(--text);

  transition: width 0.25s ease;
}

.home-work-more span::after {
  content: "";

  position: absolute;
  top: 50%;
  right: 0;

  width: 8px;
  height: 8px;

  border-top: 1px solid var(--text);
  border-right: 1px solid var(--text);

  transform: translateY(-50%) rotate(45deg);
}

.home-work-more:hover span {
  width: 64px;
}

/* GENERAL */

.content-section {
  min-height: 100vh;
  padding: 150px 40px 60px;

  display: flex;
  align-items: flex-start;
  justify-content: flex-end;

  border-bottom: 1px solid var(--line);
}

.content-section h2 {
  margin: 0;

  font-size: clamp(60px, 10vw, 170px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.075em;
}

/* ABOUT */

.about-section {
  min-height: 100vh;
  padding: 150px 40px 80px;

  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(480px, 1.15fr);
  gap: 80px;

  border-bottom: 1px solid var(--line);
}

.about-top {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.about-top h2 {
  margin: 0;

  font-size: clamp(42px, 5vw, 78px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.about-top h2 span {
  display: block;
}

.about-top h2 span + span {
  margin-top: 10px;
}

.about-copy {
  align-self: end;
  max-width: 760px;
}

.about-copy p {
  margin: 0 0 30px;

  font-size: clamp(19px, 1.8vw, 29px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.035em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

/* PEOPLE */

.people-section {
  min-height: 100svh;
  padding: 150px 40px 100px;

  display: grid;
  grid-template-columns: minmax(360px, 560px) minmax(460px, 1fr);
  align-items: start;
  gap: clamp(60px, 8vw, 130px);

  border-bottom: 1px solid var(--line);
}

.people-sidebar {
  position: sticky;
  top: 108px;

  align-self: start;
  min-width: 0;
}

.people-head {
  max-width: 560px;
}

.people-head h2 {
  margin: 0;

  font-size: clamp(36px, 3.8vw, 58px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.people-head h2 span {
  display: block;
}

.people-head p {
  margin: 18px 0 0;

  font-size: clamp(18px, 1.3vw, 24px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.people-photo-wrap {
  width: min(420px, calc(100% - 24px));
  margin: 52px 0 0 18px;
}

.people-photo {
  display: block;

  width: 100%;
  aspect-ratio: 2 / 3;

  object-fit: cover;
  object-position: center top;

  filter: grayscale(1);
}

.people-right {
  max-width: 760px;
  padding-top: 230px;
}

.people-right p {
  margin: 0 0 28px;

  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.people-right p:last-child {
  margin-bottom: 0;
}

/* CONTACT */

.contact-section {
  min-height: 100svh;
  padding: 110px 40px 80px;

  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(70px, 8vw, 140px);

  background: var(--contact-bg);
  border-bottom: 1px solid #d8d8d2;
}

.contact-left {
  display: flex;
  flex-direction: column;
}

.contact-label {
  margin: 0 0 26px;

  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}

.contact-left h2 {
  max-width: 660px;
  margin: 0;

  font-size: clamp(46px, 5vw, 76px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.contact-left h2 span {
  display: block;
  white-space: nowrap;
}

.contact-intro {
  max-width: 650px;
  margin: 28px 0 0;

  color: var(--muted);

  font-size: clamp(18px, 1.22vw, 21px);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.02em;
}

.contact-info {
  margin-top: 32px;

  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-info-item h3,
.contact-info-item a {
  margin: 0;

  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.contact-info-item h3 {
  font-weight: 700;
  text-transform: uppercase;
}

.contact-info-item a {
  color: var(--link);
  font-weight: 400;
  text-decoration: none;
}

.contact-info-item a:hover {
  color: var(--text);
}

.contact-form {
  align-self: start;
  padding-top: 18px;

  display: flex;
  flex-direction: column;
  gap: 28px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-field label {
  margin-bottom: 14px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.form-field label span {
  color: var(--accent);
}

.name-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.name-input-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.form-field input,
.form-field textarea {
  width: 100%;

  border: 1px solid var(--field-border);
  outline: none;
  background: var(--field);
  color: var(--text);

  font-family: inherit;
  font-size: 18px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.form-field input {
  height: 64px;
  padding: 0 18px;
}

.form-field textarea {
  min-height: 170px;
  padding: 18px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  background: #ffffff;
  border-color: var(--text);
}

.form-field small {
  margin-top: 10px;

  color: #4f5660;

  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.submit-button {
  align-self: flex-end;

  display: flex;
  align-items: center;
  gap: 18px;

  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);

  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  cursor: pointer;
}

.submit-button span {
  position: relative;

  display: block;
  width: 48px;
  height: 1px;

  background: var(--text);
}

.submit-button span::after {
  content: "";

  position: absolute;
  right: 0;
  top: 50%;

  width: 8px;
  height: 8px;

  border-top: 1px solid var(--text);
  border-right: 1px solid var(--text);

  transform: translateY(-50%) rotate(45deg);
}

.submit-button:hover span {
  width: 64px;
}

/* TABLET */

@media (max-width: 1150px) {
  .home-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .people-section {
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 55px;
  }

  .people-head h2 {
    font-size: clamp(34px, 4.4vw, 52px);
  }

  .people-photo-wrap {
    width: min(360px, calc(100% - 16px));
    margin-left: 8px;
  }

  .people-right {
    padding-top: 210px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-form {
    max-width: 760px;
  }

  .hero-content h1 {
    font-size: clamp(28px, 3.8vw, 56px);
  }
}

/* MOBILE */

@media (max-width: 900px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .brand {
    width: 38px;
    height: 38px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-wordmark {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;

    width: 100%;
    padding: 20px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;

    color: var(--text);
    background: var(--bg);
    border-bottom: 1px solid var(--line);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);

    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    font-size: 12px;
  }

  .nav-toggle.is-open span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .nav-toggle.is-open span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .hero-slider {
    min-height: 580px;
  }

  .hero-content {
    width: min(100% - 40px, 680px);
  }

  .project-category {
    margin-bottom: 16px;
    font-size: 14px;
  }

  .hero-content h1 {
    font-size: clamp(22px, 4.8vw, 34px);
    white-space: nowrap;
  }

  .slider-button {
    width: 46px;
    height: 46px;
  }

  .slider-arrow {
    width: 28px;
    height: 28px;
  }

  .slider-prev {
    left: 8px;
  }

  .slider-next {
    right: 8px;
  }

  .slider-counter {
    bottom: 24px;
    left: 20px;
  }

  .home-work-section {
    padding: 76px 20px 60px;
  }

  .home-work-heading {
    margin-bottom: 30px;
  }

  .home-work-heading h2 {
    font-size: clamp(58px, 15vw, 88px);
  }

  .home-work-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-work-overlay h3 {
    max-width: 88%;
    font-size: clamp(22px, 6vw, 30px);
  }

  .home-work-overlay p {
    font-size: 14px;
  }

  .home-work-footer {
    margin-top: 28px;
  }

  .home-work-more {
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .home-work-more span {
    width: 34px;
  }

  .content-section {
    padding: 120px 20px 40px;
  }

  .about-section {
    min-height: auto;
    padding: 120px 20px 60px;

    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  .about-top h2 {
    font-size: clamp(42px, 11vw, 68px);
  }

  .about-copy p {
    margin-bottom: 24px;
    font-size: clamp(18px, 5vw, 24px);
  }

  .people-section {
    min-height: auto;
    padding: 120px 20px 60px;

    display: flex;
    flex-direction: column;
    gap: 42px;
  }

  .people-sidebar {
    position: static;
    width: 100%;
  }

  .people-head h2 {
    font-size: clamp(34px, 9vw, 48px);
  }

  .people-head p {
    margin-top: 16px;
    font-size: clamp(17px, 5vw, 22px);
  }

  .people-photo-wrap {
    width: min(80vw, 380px);
    margin: 42px 0 0;
  }

  .people-right {
    max-width: 100%;
    padding-top: 0;
  }

  .people-right p {
    margin-bottom: 22px;
    font-size: clamp(17px, 4.8vw, 21px);
  }

  .contact-section {
    min-height: auto;
    padding: 100px 20px 60px;

    display: flex;
    flex-direction: column;
    gap: 56px;
  }

  .contact-label {
    margin-bottom: 24px;
    font-size: 12px;
  }

  .contact-left h2 {
    font-size: clamp(42px, 12vw, 60px);
  }

  .contact-left h2 span {
    white-space: normal;
  }

  .contact-intro {
    font-size: 17px;
    line-height: 1.6;
  }

  .contact-info {
    margin-top: 30px;
    gap: 22px;
  }

  .contact-info-item h3,
  .contact-info-item a {
    font-size: clamp(16px, 4.6vw, 20px);
  }

  .name-inputs {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .contact-form {
    gap: 24px;
    padding-top: 0;
  }

  .form-field input {
    height: 58px;
    padding: 0 14px;
    font-size: 16px;
  }

  .form-field textarea {
    min-height: 160px;
    font-size: 16px;
  }

  .form-field small {
    font-size: 12px;
  }
}