:root {
  --bg: #0d0c0a;
  --fg: #f3eee5;
  --muted: #b8b0a3;
  --faint: rgba(243, 238, 229, .1);
  --line: rgba(243, 238, 229, .16);
  --accent: #b99152;
  --panel: rgba(13, 12, 10, .72);
  --header-h: 82px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Jost", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body[data-theme="light"] {
  --bg: #f5f1e9;
  --fg: #171513;
  --muted: #6f685e;
  --faint: rgba(23, 21, 19, .08);
  --line: rgba(23, 21, 19, .16);
  --panel: rgba(245, 241, 233, .76);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  overflow: hidden;
  background: rgba(13, 12, 10, .62);
  border-bottom: 1px solid rgba(243, 238, 229, .08);
}
body[data-theme="light"] .site-header { background: rgba(245, 241, 233, .72); }
.nav {
  width: min(100% - 64px, 1480px);
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr 190px;
  gap: 34px;
  align-items: center;
}
.logo {
  width: 184px;
  height: 100%;
  display: inline-flex;
  align-items: center;
}
.logo img {
  width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: brightness(1.55);
}
body[data-theme="light"] .logo img { filter: none; }
.links {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 58px);
}
.links a,
.language-select,
.text-link,
.label {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.links a {
  color: rgba(243, 238, 229, .84);
  transition: color .25s ease;
}
body[data-theme="light"] .links a { color: rgba(23, 21, 19, .7); }
.links a:hover,
.links a.active,
.language-select a:first-child,
.text-link,
.label { color: var(--accent); }
.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.language-select {
  display: inline-flex;
  gap: 9px;
  color: var(--muted);
}
.language-select a { transition: color .25s ease; }
.language-select a:hover { color: var(--fg); }
.theme-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 238, 229, .6);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
body[data-theme="light"] .theme-toggle { border-color: rgba(23, 21, 19, .28); }

.hero-home {
  height: 100svh;
  min-height: 720px;
  position: relative;
  overflow: hidden;
  padding: var(--header-h) 0 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.86) contrast(1.08) brightness(.78);
}
body[data-theme="light"] .hero-bg { filter: saturate(.8) brightness(.92); }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,4,.62) 0%, rgba(5,5,4,.42) 32%, rgba(5,5,4,.08) 64%, rgba(5,5,4,.2) 100%),
    linear-gradient(180deg, rgba(5,5,4,.14) 0%, rgba(5,5,4,.02) 48%, rgba(5,5,4,.42) 100%);
}
body[data-theme="light"] .hero-shade { background: rgba(245, 241, 233, .18); }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(580px, calc(100% - 64px));
  margin-left: clamp(32px, 9vw, 142px);
  padding-top: clamp(48px, 7.4vh, 78px);
}
.label { margin-bottom: 16px; }
.hero-content h1,
.page-hero h1,
.manifesto-page h1,
.contact-page h1,
.detail-copy h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 300;
  line-height: .96;
}
.hero-content h1 {
  font-size: clamp(3.25rem, 4.6vw, 5.5rem);
  max-width: 580px;
}
.hero-content h1 em {
  display: inline;
  color: var(--accent);
  font-style: normal;
}
.hero-content h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  background: var(--accent);
  margin: 16px 0 12px;
}
.hero-text {
  max-width: 540px;
  color: rgba(243, 238, 229, .82);
  font-size: .95rem;
  font-weight: 300;
}
body[data-theme="light"] .hero-text { color: var(--muted); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 164px;
  min-height: 48px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.btn.filled {
  background: var(--accent);
  color: #14110d;
}
.btn.outline::after {
  content: "→";
  margin-left: 16px;
}

.selected-projects {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 2;
  width: min(1220px, calc(100% - 64px));
  margin: 0;
}
.selected-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 14px;
}
.selected-head .label { margin-bottom: 0; }
.selected-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 185px;
  background: #17130f;
}
.project-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) brightness(.82);
  transform: scale(1.01);
  transition: transform .7s ease, filter .7s ease;
}
.project-card:hover .project-media img {
  transform: scale(1.055);
  filter: saturate(.9) brightness(.9);
}
.project-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 4, .72));
}
.project-card h2,
.project-card p {
  position: relative;
  z-index: 1;
  margin-left: 22px;
  margin-right: 22px;
}
.project-card h2 {
  margin-top: 132px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.3;
  text-transform: uppercase;
}
.project-card p {
  color: var(--muted);
  font-size: .6rem;
  letter-spacing: .14em;
  padding-bottom: 12px;
  text-transform: uppercase;
}
.project-card.hide { display: none; }
.selected-grid .project-card {
  min-height: 172px;
}
.selected-grid .project-card h2 {
  margin-top: 122px;
  font-size: .76rem;
}
.selected-grid .project-card p {
  font-size: .58rem;
}
.whatsapp-pill {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 45;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #15120e;
  box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
  transition: transform .25s ease, background .25s ease;
}
.whatsapp-pill:hover {
  transform: translateY(-2px);
  background: #caa56b;
}
.whatsapp-pill svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}
.whatsapp-pill svg path:last-child {
  fill: currentColor;
  stroke: none;
}

main:not(:has(.hero-home)) {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) 0 76px;
}
.page-hero {
  max-width: 820px;
  margin-bottom: 42px;
}
.page-hero h1 { font-size: clamp(2.75rem, 4.5vw, 4.7rem); }
.manifesto-page h1 { font-size: clamp(2.95rem, 4.8vw, 5rem); }
.contact-page h1 { font-size: clamp(2.65rem, 4.2vw, 4.75rem); }
.project-index {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .66rem;
  letter-spacing: .16em;
  padding: 8px 12px;
  text-transform: uppercase;
}
.filter-btn.active,
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.projects-grid .project-card {
  min-height: 365px;
}
.projects-grid .project-card h2 {
  margin-top: 282px;
  font-size: .98rem;
}

.manifesto-page {
  max-width: 760px;
}
.manifesto-columns {
  max-width: 700px;
  color: var(--muted);
  font-weight: 300;
  margin-top: 18px;
}
.manifesto-columns p {
  margin: 0 0 15px;
  line-height: 1.82;
}
blockquote {
  max-width: 780px;
  border-top: 1px solid var(--accent);
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin-top: 52px;
  padding-top: 22px;
}
.services-band,
.founder-section {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 34px;
}
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-list div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.service-list span {
  color: var(--accent);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
}
.service-list h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 300;
  line-height: 1.1;
  margin: 14px 0;
}
.service-list p,
.founder-copy p {
  color: var(--muted);
  font-weight: 300;
}
.founder-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 700px);
  gap: 52px;
  align-items: start;
}
.founder-photo {
  overflow: hidden;
  background: #17130f;
}
.founder-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) brightness(.82);
}
.founder-name {
  color: var(--fg) !important;
  font-size: .86rem;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.founder-role {
  color: var(--accent) !important;
  font-size: .76rem;
  letter-spacing: .18em;
  margin: 5px 0 28px;
  text-transform: uppercase;
}

.contact-page {
  max-width: none;
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
  gap: 54px;
  align-items: stretch;
}
.contact-details {
  min-height: clamp(340px, 46vh, 420px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-list {
  border-top: 1px solid var(--line);
  margin-top: 0;
}
.contact-list a,
.contact-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.contact-list span,
.detail-info dt {
  color: var(--accent);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.contact-list strong,
.detail-info dd {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.08rem, 1.45vw, 1.55rem);
  font-weight: 300;
}
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.social-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: border-color .25s ease, color .25s ease;
}
.social-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.social-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.social-icon svg path {
  fill: currentColor;
  stroke: none;
}
.contact-map {
  margin-top: 0;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #17130f;
  height: clamp(340px, 46vh, 420px);
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(.95) brightness(.78);
}

.detail-hero {
  position: relative;
  min-height: 76svh;
  margin: calc(var(--header-h) * -1 - 76px) calc(50% - 50vw) 0;
  overflow: hidden;
}
.detail-hero > img {
  width: 100%;
  height: 100%;
  min-height: 76svh;
  object-fit: cover;
  filter: saturate(.74) brightness(.58);
}
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 4, .48);
}
.detail-copy {
  position: absolute;
  z-index: 1;
  left: max(32px, calc((100vw - 1280px) / 2));
  bottom: 70px;
  max-width: 760px;
}
.detail-copy h1 {
  font-size: clamp(3rem, 5.4vw, 5.6rem);
}
.detail-copy p:not(.label) {
  max-width: 680px;
  color: var(--muted);
  font-weight: 300;
  margin-top: 18px;
}
.detail-info {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 680px);
  gap: 58px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 48px;
}
.detail-info dl {
  display: grid;
  gap: 18px;
}
.detail-info p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(.8) brightness(.78);
}
.detail-gallery img:first-child {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1050px) {
  .nav {
    width: min(100% - 32px, 1480px);
    grid-template-columns: 140px 1fr auto;
    gap: 18px;
  }
  .links { gap: 18px; }
  .projects-grid,
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .selected-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .manifesto-columns,
  .founder-grid,
  .detail-info {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  :root { --header-h: 122px; }
  .site-header { height: auto; min-height: var(--header-h); overflow: visible; }
  .nav {
    grid-template-columns: 1fr auto;
    padding: 16px 0 12px;
  }
  .logo { width: 148px; }
  .links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .links a { white-space: nowrap; }
  .hero-content {
    width: min(100% - 32px, 760px);
    margin: 0 auto;
    padding-top: 58px;
  }
  .hero-content h1 { font-size: clamp(2.85rem, 11vw, 4.4rem); }
  .hero-home {
    height: auto;
    min-height: 100svh;
    padding-bottom: 32px;
  }
  .selected-projects {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: min(100% - 32px, 1220px);
    margin: 42px auto 0;
  }
  .selected-head { align-items: start; flex-direction: column; }
  .selected-grid,
  .projects-grid,
  .service-list,
  .detail-gallery { grid-template-columns: 1fr; }
  .project-card,
  .projects-grid .project-card { min-height: 300px; }
  .project-card h2,
  .projects-grid .project-card h2 { margin-top: 210px; }
  main:not(:has(.hero-home)) {
    width: min(100% - 32px, 1280px);
    padding-top: calc(var(--header-h) + 38px);
  }
  .page-hero h1,
  .manifesto-page h1,
  .contact-page h1 { font-size: clamp(2.45rem, 10.5vw, 4rem); }
  .contact-list a,
  .contact-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-details {
    min-height: auto;
  }
  .contact-map {
    height: 320px;
  }
  .contact-map iframe {
    height: 100%;
  }
  .detail-gallery img:first-child { grid-column: auto; }
}
