:root {
  --bg: #f3f1ec;
  --text: #121212;
  --muted: #6c6a64;
  --line: #cfc7b5;
  --card: #ffffff;
  --primary: #756b52;
  --hero: #c9c1ad;
}

body[data-site="gart3"] {
  --bg: #050505;
  --text: #f1efe9;
  --muted: #9d9890;
  --line: #303030;
  --card: #101010;
  --primary: #b99758;
  --secondary: #8b1e16;
  --hero: #2a1715;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.identity__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}

.identity-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.switch-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.switch-btn.is-active {
  background: var(--text);
  color: var(--bg);
}

.switch-symbol {
  color: var(--muted);
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--primary);
}

.home {
  display: none;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
}

.home.is-active {
  display: block;
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 58px;
  align-items: center;
  padding: 64px 0 80px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 8vw, 118px);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 500;
}

.lead {
  max-width: 610px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--secondary {
  background: transparent;
  color: var(--text);
}

.hero__visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.image-placeholder {
  width: min(520px, 100%);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--hero);
}

.image-placeholder--gart3 {
  background: linear-gradient(135deg, #2a1715, #8b1e16 55%, #050505);
}

.image-placeholder--gian {
  background: linear-gradient(135deg, #c9c1ad, #756b52 70%, #f3f1ec);
}

.floating-card {
  position: absolute;
  right: 0;
  bottom: 86px;
  width: min(260px, 58%);
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.floating-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 13px;
  letter-spacing: 0.14em;
}

.content-section {
  padding: 56px 0 74px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 36px;
}

.section-heading h2,
.manifesto h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.section-heading p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.project-card {
  min-height: 430px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.project-card__image {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.project-card__image::after {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82), transparent);
}

.tone-1 { background: #756b52; }
.tone-2 { background: #9f9788; }
.tone-3 { background: #2a1715; }
.tone-4 { background: #121212; }

body[data-site="gart3"] .tone-1 { background: #8b1e16; }
body[data-site="gart3"] .tone-2 { background: #b99758; }
body[data-site="gart3"] .tone-3 { background: #231f1d; }
body[data-site="gart3"] .tone-4 { background: #0f0f0f; }

.project-card__body {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  color: #fff;
}

.project-card__body span {
  color: rgba(255,255,255,0.68);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-card__body h3 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.project-card__body p {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.76);
  font-size: 14px;
  line-height: 1.42;
}

.manifesto {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.manifesto p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.site-footer {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a:hover {
  color: var(--primary);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .manifesto {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 460px;
  }

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

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 16px;
  }
}

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .identity-switch {
    width: fit-content;
  }

  .floating-card {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .hero__visual {
    min-height: auto;
  }
}
