:root {
  --ink: #171612;
  --paper: #f1eee7;
  --paper-2: #e7e0d5;
  --stone: #b8aa98;
  --copper: #8e5e3b;
  --white: #fffdf8;
  --muted: #6c675f;
  --line: rgba(23, 22, 18, 0.18);
  --max: 1440px;
  --pad: clamp(22px, 5vw, 78px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--copper); color: var(--white); }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  height: 2px;
  background: transparent;
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad);
  color: var(--white);
  transition: background .35s ease, color .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  padding-top: 14px;
  padding-bottom: 14px;
  background: rgba(241, 238, 231, .9);
  color: var(--ink);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  font-family: "Playfair Display", serif;
  font-size: 15px;
  letter-spacing: .03em;
}
.brand-name { font-size: 13px; font-weight: 600; line-height: 1.05; letter-spacing: .02em; }
.brand-name small { font-weight: 400; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; opacity: .72; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); font-size: 12px; }
.site-nav > a { text-decoration: none; position: relative; }
.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}
.site-nav > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { border: 1px solid currentColor; padding: 12px 17px; transition: background .3s ease, color .3s ease; }
.nav-cta:hover { background: currentColor; color: var(--ink); }
.site-header.is-scrolled .nav-cta:hover { color: var(--paper); }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; }
.menu-toggle span { display: block; width: 28px; height: 1px; background: currentColor; margin: 6px 0; transition: transform .3s ease; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #26231e;
  color: var(--white);
}
.hero-media {
  position: absolute;
  inset: -6%;
  background: url("assets/hero.jpg") center 42% / cover no-repeat;
  will-change: transform;
  transform: scale(1.03);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 13, 11, .84) 0%, rgba(14, 13, 11, .52) 48%, rgba(14, 13, 11, .15) 100%),
    linear-gradient(0deg, rgba(14, 13, 11, .78) 0%, transparent 48%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image: linear-gradient(to right, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 25% 100%;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1020px, 78vw);
  padding: 180px var(--pad) clamp(86px, 10vw, 145px);
}
.eyebrow, .section-kicker {
  margin: 0 0 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  max-width: 980px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.15rem, 7.1vw, 8.2rem);
  line-height: .91;
  letter-spacing: -.065em;
  font-weight: 500;
  text-wrap: balance;
}
.hero h1 em {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  letter-spacing: -.04em;
}
.hero-copy {
  max-width: 610px;
  margin: 34px 0 0;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.65;
  color: rgba(255, 253, 248, .75);
}
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  padding: 0 24px;
  border: 1px solid currentColor;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .3s ease, color .3s ease, transform .3s ease;
}
.button:hover { transform: translateY(-2px); }
.button-light { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-light:hover { color: var(--white); background: transparent; }
.button-dark { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.button-dark:hover { color: var(--ink); background: transparent; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: gap .3s ease, opacity .3s ease;
}
.text-link:hover { gap: 22px; opacity: .72; }
.text-link-light { color: var(--white); }
.hero-index {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  top: 46%;
  display: flex;
  gap: 22px;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right center;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: rgba(255,255,255,.7);
}
.hero-note {
  position: absolute;
  z-index: 2;
  right: var(--pad);
  bottom: 54px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 16px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.hero-note span { border-left: 1px solid rgba(255,255,255,.42); padding-left: 16px; }
.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: rgba(255,255,255,.6);
}
.scroll-cue i { display: block; height: 42px; width: 1px; background: rgba(255,255,255,.46); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.35); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.section { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(88px, 11vw, 170px) var(--pad); }
.section-kicker { color: var(--copper); }
.manifesto {
  display: grid;
  grid-template-columns: .7fr 2.1fr;
  gap: clamp(32px, 7vw, 110px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.manifesto-copy .lead {
  margin: 0;
  max-width: 950px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 4vw, 4.3rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.manifesto-copy > p:last-child {
  max-width: 620px;
  margin: 45px 0 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}
.manifesto-signature {
  position: absolute;
  right: -20px;
  bottom: 5px;
  font-family: "Playfair Display", serif;
  font-size: clamp(3.5rem, 9vw, 9rem);
  font-style: italic;
  color: rgba(23,22,18,.035);
  white-space: nowrap;
}

.section-head {
  display: grid;
  grid-template-columns: 1.7fr .65fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 65px;
}
.section h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.65rem, 5vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
}
.section h2 em { font-family: "Playfair Display", serif; font-weight: 500; }
.section-head > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.practice-list { border-top: 1px solid var(--ink); }
.practice-row {
  display: grid;
  grid-template-columns: 60px 1fr 1.15fr 260px;
  gap: clamp(18px, 3vw, 46px);
  align-items: center;
  min-height: 215px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.practice-number { align-self: start; padding-top: 10px; font-size: 10px; letter-spacing: .18em; color: var(--copper); }
.practice-title h3 { margin: 0; font-family: "Playfair Display", serif; font-size: clamp(2rem, 3.2vw, 4rem); font-weight: 500; }
.practice-title small { display: block; margin-top: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.practice-row > p { max-width: 430px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.practice-row figure { margin: 0; height: 155px; overflow: hidden; }
.practice-row figure img { height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.practice-row:hover figure img { transform: scale(1.07); }

.process {
  max-width: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: var(--paper);
}
.process-visual { position: relative; min-height: 1100px; }
.process-photo { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.process-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.04) brightness(.72); }
.process-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,22,18,.55), transparent 55%); }
.process-photo span { position: absolute; z-index: 2; left: var(--pad); bottom: 45px; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; }
.process-content { padding: clamp(90px, 10vw, 160px) var(--pad); }
.process-content h2 { max-width: 760px; }
.process-intro { max-width: 560px; margin: 32px 0 55px; color: rgba(241,238,231,.62); line-height: 1.75; }
.process-steps { list-style: none; margin: 0 0 48px; padding: 0; border-top: 1px solid rgba(241,238,231,.18); }
.process-steps li { display: grid; grid-template-columns: 52px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid rgba(241,238,231,.18); }
.process-steps > li > span { font-size: 10px; letter-spacing: .16em; color: var(--stone); }
.process-steps h3 { margin: 0 0 8px; font-family: "Playfair Display", serif; font-size: 26px; font-weight: 500; }
.process-steps p { margin: 0; color: rgba(241,238,231,.58); line-height: 1.7; font-size: 13px; }

.projects { max-width: none; padding-left: var(--pad); padding-right: var(--pad); }
.projects-head { max-width: var(--max); margin: 0 auto 72px; display: grid; grid-template-columns: .7fr 2fr; align-items: end; gap: 50px; }
.project-mosaic {
  max-width: 1680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .7fr 1fr;
  grid-template-rows: 550px 370px;
  gap: 16px;
}
.project { position: relative; margin: 0; overflow: hidden; background: var(--paper-2); }
.project-a { grid-row: 1 / span 2; }
.project-b { grid-column: 2 / span 2; }
.project-c { grid-column: 2; }
.project-d { grid-column: 3; }
.project img { height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1), filter .7s ease; filter: saturate(.86); }
.project:hover img { transform: scale(1.035); filter: saturate(1); }
.project::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg, rgba(13,12,10,.76), transparent); }
.project figcaption { position: absolute; z-index: 2; left: 24px; bottom: 22px; color: var(--white); }
.project figcaption span { display: block; margin-bottom: 7px; font-size: 9px; text-transform: uppercase; letter-spacing: .18em; opacity: .7; }
.project figcaption strong { font-family: "Playfair Display", serif; font-size: 24px; font-weight: 500; }
.projects-footer { max-width: var(--max); margin: 36px auto 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.projects-footer p { max-width: 660px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }

.studio {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(50px, 9vw, 145px);
  align-items: center;
  border-top: 1px solid var(--line);
}
.studio-photo { position: relative; min-height: 720px; overflow: hidden; }
.studio-photo img { position: absolute; inset: 0; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.03); }
.studio-photo::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.25); margin: 18px; pointer-events: none; }
.studio-photo-label { position: absolute; z-index: 2; left: 36px; bottom: 34px; padding: 14px 16px; color: var(--white); border-left: 1px solid rgba(255,255,255,.7); font-family: "Playfair Display", serif; font-size: 22px; line-height: 1.1; }
.studio-copy h2 { font-size: clamp(2.4rem, 4.2vw, 5rem); }
.studio-copy > p:not(.section-kicker):not(.studio-note) { max-width: 620px; margin: 32px 0; color: var(--muted); line-height: 1.8; }
.studio-names { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.studio-names span { padding: 20px 0; font-family: "Playfair Display", serif; font-size: 20px; }
.studio-names span + span { border-left: 1px solid var(--line); padding-left: 28px; }
.studio-note { max-width: 620px; margin: 28px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }

.contact {
  max-width: none;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: var(--paper-2);
}
.contact-grid { position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(to right, rgba(23,22,18,.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(23,22,18,.09) 1px, transparent 1px); background-size: 20% 100%, 100% 50%; }
.contact > *:not(.contact-grid) { position: relative; z-index: 2; }
.contact h2 { max-width: 1100px; }
.contact > p:not(.section-kicker) { max-width: 570px; margin: 32px 0 0; color: var(--muted); line-height: 1.75; }
.contact-actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }

.site-footer {
  display: grid;
  grid-template-columns: 1.1fr .8fr 1.8fr auto;
  gap: 34px;
  align-items: end;
  padding: 42px var(--pad);
  background: var(--ink);
  color: var(--paper);
}
.footer-brand { align-self: center; }
.site-footer p { margin: 0; color: rgba(241,238,231,.58); font-size: 10px; line-height: 1.6; }
.preview-note { max-width: 520px; }
.back-top { text-decoration: none; font-size: 10px; border-bottom: 1px solid rgba(241,238,231,.4); padding-bottom: 5px; }
.mobile-whatsapp { display: none; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .site-nav { gap: 18px; }
  .site-nav > a:not(.nav-cta) { display: none; }
  .practice-row { grid-template-columns: 46px 1fr 1fr 210px; }
  .project-mosaic { grid-template-rows: 460px 320px; }
  .studio-photo { min-height: 640px; }
}

@media (max-width: 820px) {
  .site-header { padding: 17px 22px; }
  .brand-mark { width: 38px; height: 38px; }
  .menu-toggle { display: block; z-index: 102; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 90px 28px;
    background: var(--paper);
    color: var(--ink);
    transform: translateX(100%);
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav > a:not(.nav-cta) { display: block; font-family: "Playfair Display", serif; font-size: 34px; }
  .nav-cta { margin-top: 12px; font-size: 11px; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .site-header.is-scrolled .menu-toggle[aria-expanded="true"], .menu-toggle[aria-expanded="true"] { color: var(--ink); }

  .hero { min-height: 780px; }
  .hero-media { inset: -2%; background-position: 58% 35%; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,13,11,.87) 0%, rgba(14,13,11,.58) 65%, rgba(14,13,11,.2)); }
  .hero-grid { background-size: 50% 100%; }
  .hero-content { width: 100%; padding: 140px 22px 110px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 5.6rem); line-height: .93; }
  .hero-copy { max-width: 520px; font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .hero-index, .hero-note { display: none; }
  .scroll-cue { left: auto; right: 22px; transform: none; }

  .section { padding: 88px 22px; }
  .manifesto { grid-template-columns: 1fr; gap: 18px; }
  .manifesto-copy > p:last-child { margin: 32px 0 0; }
  .manifesto-signature { font-size: 16vw; }
  .section-head, .projects-head { grid-template-columns: 1fr; gap: 26px; }
  .practice-row { grid-template-columns: 35px 1fr; padding: 30px 0; }
  .practice-title { padding-right: 10px; }
  .practice-row > p { grid-column: 2; }
  .practice-row figure { grid-column: 2; height: 250px; }
  .process { grid-template-columns: 1fr; }
  .process-visual { min-height: auto; }
  .process-photo { position: relative; height: 72vw; min-height: 420px; }
  .process-content { padding: 88px 22px; }
  .projects { padding-left: 12px; padding-right: 12px; }
  .projects-head, .projects-footer { padding-left: 10px; padding-right: 10px; }
  .project-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 520px 330px 330px; gap: 10px; }
  .project-a { grid-column: 1 / span 2; grid-row: 1; }
  .project-b { grid-column: 1 / span 2; grid-row: 2; }
  .project-c { grid-column: 1; grid-row: 3; }
  .project-d { grid-column: 2; grid-row: 3; }
  .projects-footer { flex-direction: column; align-items: flex-start; }
  .studio { grid-template-columns: 1fr; gap: 48px; }
  .studio-photo { min-height: 670px; }
  .contact { min-height: 650px; }
  .site-footer { grid-template-columns: 1fr 1fr; align-items: start; }
  .preview-note { grid-column: 1 / span 2; }
  .back-top { justify-self: end; }
  .mobile-whatsapp {
    position: fixed;
    z-index: 90;
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 12px 35px rgba(0,0,0,.2);
  }
  .site-footer { padding-bottom: 92px; }
}

@media (max-width: 520px) {
  .hero { min-height: 740px; }
  .hero h1 { font-size: clamp(2.75rem, 14vw, 4.35rem); }
  .button { width: 100%; }
  .practice-row figure { height: 210px; }
  .project-mosaic { grid-template-columns: 1fr; grid-template-rows: repeat(4, 380px); }
  .project-a, .project-b, .project-c, .project-d { grid-column: 1; }
  .project-a { grid-row: 1; }
  .project-b { grid-row: 2; }
  .project-c { grid-row: 3; }
  .project-d { grid-row: 4; }
  .studio-photo { min-height: 540px; }
  .studio-names { grid-template-columns: 1fr; }
  .studio-names span + span { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .contact-actions { width: 100%; flex-direction: column; }
  .contact-actions .text-link { align-self: center; }
  .site-footer { grid-template-columns: 1fr; }
  .preview-note { grid-column: 1; }
  .back-top { justify-self: start; }
}
