:root {
  --bg: #f1f1ef;
  --surface: #ffffff;
  --surface-alt: #e8e8e4;
  --text: #111111;
  --text-soft: #5b5b57;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.18);
  --dark: #101010;
  --dark-soft: #1a1a1a;
  --light: #f7f7f4;
  --accent: #6f6a61;
  --container: 1240px;
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --font: "Montserrat", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 241, 235, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
}

.brand__image {
  display: block;
  width: auto;
  height: 42px;
  object-fit: contain;
}

.nav {
  position: relative;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__menu a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav__menu a:hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav__toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
}

.hero {
  padding: 0 0 72px;
}

.hero__stage {
  position: relative;
  min-height: min(88vh, 860px);
  overflow: hidden;
  background: #111111;
}

.hero__slides,
.hero__slide,
.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__slides {
  z-index: 0;
}

.hero__slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 900ms ease, transform 5s ease;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__overlay {
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 0, 0, 0.26) 42%, rgba(0, 0, 0, 0.14) 100%);
}

.hero__content {
  position: relative;
  z-index: 3;
  min-height: min(88vh, 860px);
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: 58px;
}

.hero__copy {
  max-width: 620px;
  padding: 0;
  color: #ffffff;
}

.hero__kicker,
.section-label,
.project-card__body span {
  margin: 0 0 14px;
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__kicker {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1,
.section-head h2,
.studio-copy h2,
.locations h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero__text,
.intro-block p,
.project-card p,
.project-detail p,
.studio-copy p,
.service-item p,
.process-item p,
.contact-copy p,
.contact-copy li,
.footer p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero__text {
  max-width: 520px;
  margin: 18px 0 0;
  font-size: 0.98rem;
}

.hero .hero__text,
.hero h1 {
  color: #ffffff;
}

.hero .hero__text {
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--dark);
  background: var(--dark);
  color: #fff;
  transition: 200ms ease;
}

.button:hover {
  background: var(--dark-soft);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button--ghost:hover {
  background: rgba(17, 17, 17, 0.04);
}

.button--ghost-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.button--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

.intro-block {
  padding: 0 0 90px;
}

.intro-block__grid,
.studio-grid,
.contact-grid,
.footer__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.intro-block__grid p {
  margin: 0;
  font-size: 1.15rem;
}

.section {
  padding: 124px 0;
}

.section--projects,
.section--contact {
  background: var(--surface);
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.section--locations {
  background: var(--surface-alt);
}

.section-head {
  max-width: 820px;
  margin-bottom: 54px;
}

.section-head--light .section-label,
.section-head--light h2,
.section--dark .service-item p,
.section--dark .service-item h3 {
  color: inherit;
}

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

.project-card__image {
  height: 380px;
  background-size: cover;
  background-position: center;
}

.projects-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.project-tile {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  cursor: pointer;
}

.project-tile__image,
.project-tile__overlay {
  position: absolute;
  inset: 0;
}

.project-tile__image {
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 450ms ease;
}

.project-tile__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.62) 100%);
  transition: background 300ms ease;
}

.project-tile__content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  color: #ffffff;
  transform: translateY(0);
  transition: transform 300ms ease;
}

.project-tile__content span {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.project-tile__content h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.08;
}

.project-tile__content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.project-tile:hover .project-tile__image {
  transform: scale(1.06);
}

.project-tile:hover .project-tile__overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.74) 100%);
}

.project-tile:hover .project-tile__content {
  transform: translateY(-8px);
}

.project-card__image--one {
  background-image: url("https://images.unsplash.com/photo-1511818966892-d7d671e672a2?auto=format&fit=crop&w=1400&q=80");
}

.project-card__image--two {
  background-image: url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1400&q=80");
}

.project-card__image--three {
  background-image: url("https://images.unsplash.com/photo-1552832230-c0197dd311b5?auto=format&fit=crop&w=1400&q=80");
}

.project-card__image--four {
  background-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1400&q=80");
}

.project-card__body {
  padding: 28px;
}

.projects-grid--continuous .project-card__body {
  padding: 18px 14px 0;
}

.project-card__body h3,
.project-detail h3,
.service-item h3,
.process-item h3 {
  margin: 0 0 10px;
  font-size: 1.55rem;
  line-height: 1.1;
}

.projects-grid--continuous .project-card__body h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.project-card__body p {
  margin: 0;
}

.project-detail {
  display: none;
  margin-top: 40px;
  padding: 34px;
  border: 1px solid var(--line);
  background: #f8f8f5;
}

.project-detail.is-visible {
  display: block;
}

.project-detail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-close {
  border: 0;
  background: transparent;
  color: var(--text-soft);
}

.project-detail__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.project-detail__list article,
.studio-notes article,
.process-item {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}

.project-detail__list strong {
  display: block;
  margin-bottom: 6px;
}

.project-detail__list span {
  color: var(--text-soft);
}

.studio-copy p {
  max-width: 640px;
}

.studio-notes {
  display: grid;
  gap: 24px;
  align-content: start;
}

.studio-notes article span,
.service-item span,
.process-item span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}

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

.service-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.locations {
  text-align: center;
}

.locations__row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.locations__row span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 999px;
  color: var(--text-soft);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}

.contact-copy ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 36px;
  background: #f8f8f5;
  border: 1px solid var(--line);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row--full,
.form-row--actions {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  outline: none;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--text);
}

.form-row input.is-error,
.form-row select.is-error,
.form-row textarea.is-error {
  border-color: #b14f4f;
}

.form-row--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-feedback {
  margin: 0;
  color: var(--text-soft);
}

.footer {
  padding: 26px 0 34px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.footer__inner {
  align-items: center;
}

.footer__links {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay {
  transition-delay: 140ms;
}

@media (max-width: 1100px) {
  .intro-block__grid,
  .studio-grid,
  .contact-grid,
  .footer__inner,
  .services-list,
  .process-list,
  .project-detail__list {
    grid-template-columns: 1fr;
  }

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

  .hero__stage,
  .hero__content {
    min-height: 720px;
  }
}

@media (max-width: 780px) {
  .header__inner {
    padding: 16px 0;
  }

  .brand__image {
    height: 34px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .nav__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
  }

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

  .hero__stage,
  .hero__content {
    min-height: 560px;
  }

  .hero__content {
    padding-top: 120px;
    padding-bottom: 40px;
  }

  .contact-form {
    padding: 24px;
  }

  .section {
    padding: 80px 0;
  }

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

  .form-row--actions {
    align-items: flex-start;
  }

  .projects-grid,
  .projects-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-tile {
    min-height: 360px;
  }

  .project-card__image {
    height: 280px;
  }

  .hero h1,
  .section-head h2,
  .studio-copy h2,
  .locations h2,
  .contact-copy h2 {
    line-height: 1.02;
  }
}
