:root {
  --bg: #f2eee7;
  --bg-soft: #f7f3ed;
  --surface: #f5f0e8;
  --surface-2: #e9e1d5;
  --text: #292520;
  --muted: #6a6258;
  --line: #d7ccbe;
  --wood: #9a7a5e;
  --shadow: 0 24px 56px rgba(47, 39, 31, 0.08);
  --radius: 20px;
  --container: min(1200px, calc(100% - 40px));
  --section-gap: clamp(72px, 11vw, 136px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 252, 0.65) 0%, rgba(255, 255, 252, 0) 38%),
    radial-gradient(circle at 82% 4%, rgba(233, 225, 213, 0.55) 0%, rgba(233, 225, 213, 0) 35%),
    linear-gradient(125deg, #f7f2ea 0%, var(--bg-soft) 38%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.kicker {
  display: inline-block;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

h1,
h2,
h3,
.brand__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.35rem, 8vw, 5.3rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.9rem, 5vw, 3.35rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  line-height: 1.08;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  color: #f4efe8;
  transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header.is-hidden {
  transform: translateY(-100%);
}

.header.is-solid {
  backdrop-filter: blur(10px);
  background: rgba(247, 242, 234, 0.88);
  color: var(--text);
  border-bottom-color: rgba(215, 204, 190, 0.68);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 82px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand__name {
  font-size: 1.7rem;
}

.brand__city {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.72;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: currentColor;
  opacity: 0.92;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(244, 239, 232, 0.38);
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header__cta:hover {
  background: rgba(255, 255, 255, 0.14);
}

.header.is-solid .header__cta {
  border-color: #cdbfad;
  background: transparent;
}

.header.is-solid .header__cta:hover {
  background: #2a2520;
  color: #f9f3eb;
}

.hero {
  min-height: 100svh;
  padding: 0;
  background: #d8cec0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px solid transparent;
  transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: #2a2520;
  color: #f6f1ea;
  border-color: #2a2520;
}

.btn--ghost {
  border-color: #cdbfad;
  color: #38322c;
  background: rgba(255, 255, 255, 0.28);
}

.hero__visual {
  margin: 0;
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #dbd2c4;
}

.hero__visual img,
.project img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.78) contrast(0.95) brightness(0.97) sepia(0.06);
}

.hero__visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  filter: saturate(0.72) contrast(0.9) brightness(0.72) sepia(0.1);
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 20, 17, 0.72) 0%, rgba(24, 20, 17, 0.42) 34%, rgba(24, 20, 17, 0.14) 60%, rgba(24, 20, 17, 0.08) 100%),
    linear-gradient(180deg, rgba(18, 15, 13, 0.18) 0%, rgba(18, 15, 13, 0.06) 18%, rgba(18, 15, 13, 0.42) 100%);
}

.hero__layout {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  align-content: end;
  gap: 24px;
  padding-top: 130px;
  padding-bottom: 42px;
}

.hero__copy {
  max-width: min(760px, 72vw);
  color: #f4efe8;
}

.hero .kicker {
  color: rgba(244, 239, 232, 0.76);
}

.hero__lead {
  margin-top: 18px;
  max-width: 38ch;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  color: rgba(244, 239, 232, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .btn--primary {
  background: rgba(20, 18, 16, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #f6f1ea;
  background: rgba(255, 255, 255, 0.08);
}

.hero__caption {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.66);
}

.manifesto__panel {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 36px) 0 0;
  text-align: center;
}

.manifesto__panel p {
  margin-top: 18px;
  max-width: 60ch;
  margin-inline: auto;
}

.manifesto__cta {
  display: grid;
  place-items: center;
  margin-bottom: clamp(84px, 10vw, 150px);
}

.manifesto__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(320px, 100%);
  height: 58px;
  padding: 0 28px;
  border: 1px solid #908477;
  border-radius: 999px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2f2924;
  background: transparent;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.manifesto__button:hover {
  transform: translateY(-1px);
  background: #2a2520;
  color: #f8f3ec;
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 40px;
}

.section__head--center {
  justify-items: center;
  text-align: center;
}

.projects__scroller {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: #b9ac9b transparent;
}

.projects__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(286px, 34vw);
  gap: 24px;
  align-items: start;
}

.project {
  margin: 0;
  min-width: 0;
  scroll-snap-align: start;
}

.projects__scroller {
  scroll-snap-type: x proximity;
}

.project img {
  border-radius: 3px;
}

.project figcaption {
  display: grid;
  gap: 8px;
  padding: 16px 2px 0;
  background: transparent;
}

.project figcaption strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  color: var(--text);
  font-weight: 600;
}

.project figcaption span {
  max-width: 34ch;
  color: var(--muted);
  line-height: 1.6;
}

.principles__list {
  display: grid;
  gap: 14px;
}

.principle {
  padding: 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(247, 242, 235, 0.72);
}

.principle p {
  margin-top: 10px;
  max-width: 52ch;
}

.directions__grid {
  display: grid;
  gap: 26px;
}

.directions {
  padding-top: clamp(44px, 6vw, 88px);
}

.projects {
  padding-top: clamp(92px, 10vw, 150px);
}

.direction {
  display: grid;
  gap: 14px;
  padding: 26px;
  border: 1px solid rgba(205, 191, 173, 0.78);
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0) 26%),
    linear-gradient(150deg, rgba(248, 243, 236, 0.94) 0%, rgba(233, 223, 209, 0.82) 100%);
  box-shadow: 0 18px 34px rgba(45, 38, 32, 0.06);
}

.direction__stage {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 180px;
  padding: 18px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(54, 46, 38, 0.96), rgba(26, 23, 20, 0.94));
}

.direction__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(203, 172, 130, 0.3) 0%, rgba(203, 172, 130, 0) 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 38%);
}

.direction__stage::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 38%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(217, 191, 154, 0.75));
}

.direction__stage--storage {
  background: linear-gradient(145deg, rgba(122, 95, 70, 0.96), rgba(61, 46, 34, 0.96));
}

.direction__stage--interior {
  background: linear-gradient(145deg, rgba(71, 68, 62, 0.96), rgba(35, 32, 28, 0.96));
}

.direction__index,
.direction__accent {
  position: relative;
  z-index: 1;
}

.direction__index {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.4rem;
  line-height: 0.9;
  color: rgba(248, 243, 236, 0.94);
}

.direction__accent {
  align-self: end;
  max-width: 14ch;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 243, 236, 0.62);
}

.direction h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.direction p {
  max-width: 34ch;
}

.contact {
  padding-bottom: clamp(70px, 10vw, 130px);
}

.contact__panel {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid #d6cab9;
  border-radius: 20px;
  background: linear-gradient(145deg, #f8f4ed 0%, #e9dfd1 100%);
  box-shadow: var(--shadow);
}

.contact__copy p {
  margin-top: 14px;
  max-width: 64ch;
}

.contact__links {
  display: grid;
  gap: 10px;
}

.contact__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid #d6cab9;
  padding: 0 18px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4a433b;
  background: rgba(250, 246, 239, 0.72);
  transition: background-color 0.28s ease, border-color 0.28s ease;
}

.contact__links a:hover {
  background: rgba(238, 230, 220, 0.82);
  border-color: #bba991;
}

.footer {
  padding-bottom: 34px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a7268;
}

[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.68s ease, transform 0.68s ease;
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.media-zoom {
  overflow: clip;
}

.media-zoom img {
  transform: scale(1);
  transition: transform 1.4s ease;
}

.media-zoom.is-active img {
  transform: scale(1.04);
}

@media (min-width: 760px) {
  .header__nav {
    display: inline-flex;
  }

  .hero__layout {
    align-content: end;
    padding-bottom: 54px;
  }

  .projects__track {
    grid-auto-columns: minmax(360px, 30vw);
  }

  .principles__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

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

  .contact__panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    align-items: center;
  }
}

@media (max-width: 759px) {
  .header__inner {
    min-height: 76px;
  }

  .header__cta {
    height: 38px;
    padding: 0 14px;
    font-size: 0.68rem;
  }

  .header__nav {
    display: none;
  }

  h1 {
    max-width: 9ch;
  }

  .hero__layout {
    padding-top: 110px;
    padding-bottom: 28px;
  }

  .hero__copy {
    max-width: none;
  }

  .manifesto__button {
    min-width: 100%;
  }

  .projects__track {
    grid-auto-columns: minmax(82vw, 82vw);
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .media-zoom img {
    transform: none !important;
  }
}

.error-page {
  min-height: calc(100vh - 170px);
  display: grid;
  align-items: center;
}

.error-page__card {
  max-width: 680px;
  padding: clamp(30px, 5vw, 52px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(247, 242, 235, 0.74);
}

.error-page__lead {
  margin-top: 12px;
  max-width: 54ch;
}
