:root {
  --green: #0b241b;
  --green-2: #12372a;
  --cream: #f1efe9;
  --paper: #faf9f6;
  --ink: #181b18;
  --muted: #6e736e;
  --copper: #b9875e;
  --line: rgba(24, 27, 24, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  height: 84px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: background .35s ease, color .35s ease, height .35s ease;
}
.topbar.scrolled {
  height: 68px;
  color: var(--ink);
  background: rgba(250,249,246,.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: block;
  width: clamp(150px, 13vw, 205px);
}
.brand img { width: 100%; height: auto; }
.topbar.scrolled .brand img { filter: invert(1); }
.nav { display: flex; align-items: center; gap: 2.4rem; font-size: .79rem; letter-spacing: .08em; text-transform: uppercase; }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: currentColor; transition: width .25s ease; }
.nav a:hover::after { width: 100%; }
.menu-toggle { display: none; }

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 46% 54%;
  position: relative;
  background: var(--green);
  color: #fff;
}
.hero-copy { padding: 18vh 6vw 12vh 7vw; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { margin: 0 0 1.5rem; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.dark { color: var(--green-2); }
.hero h1, h2 {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .93;
}
.hero h1 { margin: 0; font-size: clamp(4.5rem, 8.6vw, 9.8rem); }
.hero h1 em, h2 em { font-weight: 400; color: var(--copper); }
.hero-text { max-width: 33rem; margin: 2rem 0 0; color: rgba(255,255,255,.68); font-size: 1.05rem; }
.hero-actions { margin-top: 3rem; display: flex; align-items: center; gap: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; min-width: 210px; padding: 1rem 1.2rem; font-size: .75rem; letter-spacing: .09em; text-transform: uppercase; transition: transform .25s ease, background .25s ease; }
.button:hover { transform: translateY(-3px); }
.button-light { color: var(--green); background: var(--cream); }
.text-link { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: .78rem; letter-spacing: .06em; }
.dark-link { border-color: var(--line); }
.hero-visual { position: relative; min-height: 100svh; overflow: hidden; background: #18241e; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,36,27,.25), transparent 40%), linear-gradient(0deg, rgba(0,0,0,.3), transparent 30%); }
.hero-visual img { height: 100%; object-fit: cover; object-position: center 45%; transform: scale(1.01); animation: heroIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { transform: scale(1.09); opacity: .4; } to { transform: scale(1.01); opacity: 1; } }
.hero-caption { position: absolute; z-index: 2; left: 3vw; right: 3vw; bottom: 3vw; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-caption strong { text-align: center; font-size: .8rem; font-weight: 500; }
.hero-caption span:last-child { text-align: right; }
.scroll-cue { position: absolute; z-index: 3; left: 2.2vw; bottom: 2.5rem; writing-mode: vertical-rl; font-size: .63rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.scroll-cue span { width: 1px; height: 36px; display: inline-block; background: rgba(255,255,255,.35); margin-bottom: 10px; }

.section { position: relative; padding: 9rem 7vw; }
.section-index { position: absolute; top: 9.5rem; left: 3vw; font-size: .66rem; color: var(--muted); }
.manifesto { display: grid; grid-template-columns: 1.2fr .8fr; gap: 8vw; }
.manifesto h2, .project h2, .thesis h2, .team h2 { margin: 0; font-size: clamp(4rem, 7.3vw, 8.2rem); }
.manifesto-copy { padding-top: 4.5rem; max-width: 30rem; }
.manifesto-copy p:first-child { font-size: 1.35rem; color: var(--green); }
.manifesto-copy p:last-child { margin-top: 2rem; color: var(--muted); }

.same-side { min-height: 88vh; display: grid; grid-template-columns: 64% 36%; background: var(--green); color: #fff; }
.same-side > img { height: 88vh; object-fit: cover; }
.same-side-panel { padding: 8vw 5vw; display: flex; flex-direction: column; justify-content: center; }
.same-side-panel h2 { margin: 0; font-size: clamp(3.8rem, 6vw, 7rem); }
.same-side-panel h2 span { display: block; }
.same-side-support { max-width: 30rem; margin: 0 0 2.5rem; color: rgba(255,255,255,.78); font-family: "Instrument Serif", serif; font-size: clamp(2rem, 3vw, 3.4rem); line-height: 1.03; }

.project { display: grid; grid-template-columns: 1fr .6fr; gap: 6vw; }
.project-heading h2 { font-size: clamp(3.6rem, 6vw, 7rem); }
.project-intro { padding-top: 4.4rem; max-width: 30rem; color: var(--muted); }
.project-intro .text-link { display: inline-block; margin-top: 1.5rem; color: var(--ink); }
.project-stage { position: relative; grid-column: 1 / -1; min-height: 100vh; margin-top: 3rem; overflow: hidden; background: #d8d5cc; }
.project-stage > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.project-stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 38%, rgba(0,0,0,.18)); pointer-events: none; }
.project-stats { position: absolute; z-index: 1; left: 4vw; right: 4vw; bottom: 0; display: grid; grid-template-columns: repeat(4,1fr); background: rgba(11,36,27,.92); color: #fff; backdrop-filter: blur(10px); }
.project-stats div { padding: 1.5rem 2rem; border-right: 1px solid rgba(255,255,255,.13); }
.project-stats div:last-child { border: 0; }
.project-stats strong { display: block; font-family: "Instrument Serif", serif; font-size: 2.4rem; font-weight: 400; }
.project-stats span { font-size: .68rem; color: rgba(255,255,255,.58); letter-spacing: .08em; text-transform: uppercase; }

.experience { padding: 0 0 8rem; background: var(--green); color: #fff; }
.experience-lead { max-width: 72rem; }
.experience-lead h2 { margin: 0; font-size: clamp(4rem, 7vw, 8rem); }
.experience-lead h2 span { display: block; white-space: nowrap; }
.experience-lead > p:last-child { max-width: 36rem; margin: 2rem 0 0 auto; color: rgba(255,255,255,.65); }
.gallery { padding: 0 2vw; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.gallery figure { position: relative; margin: 0; height: 65vh; overflow: hidden; background: #18372b; }
.gallery .gallery-wide { grid-column: 1 / -1; height: 82vh; }
.gallery img { height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption { position: absolute; left: 1.5rem; bottom: 1.5rem; padding: .65rem .85rem; background: rgba(11,36,27,.9); font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; }
.gallery figcaption span { margin-right: 1rem; color: var(--copper); }

.view-feature { position: relative; min-height: 92vh; overflow: hidden; background: #10251b; color: #fff; }
.view-feature > img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.view-feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,20,13,.8), rgba(5,20,13,.08) 65%), linear-gradient(0deg, rgba(5,20,13,.42), transparent 45%); }
.view-caption { position: relative; z-index: 1; width: min(48rem, 86vw); padding: 12vw 7vw; }
.view-caption h2 { margin: 0; font-size: clamp(4rem, 7vw, 8rem); }
.view-caption h2 span { display: block; }
.view-caption > p:last-child { max-width: 30rem; margin-top: 2rem; color: rgba(255,255,255,.72); font-size: 1.05rem; }

.apartment-feature { min-height: 88vh; display: grid; grid-template-columns: 58% 42%; background: var(--cream); }
.apartment-image img { height: 100%; min-height: 88vh; object-fit: cover; }
.apartment-copy { padding: 8vw 6vw; display: flex; flex-direction: column; justify-content: center; }
.apartment-copy h2 { margin: 0; font-size: clamp(3.5rem, 5.5vw, 6.5rem); }
.apartment-copy > p:not(.eyebrow) { margin: 2rem 0; color: var(--muted); max-width: 34rem; }
.apartment-copy ul { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.apartment-copy li { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

.thesis { background: var(--paper); }
.thesis-heading { display: grid; grid-template-columns: 1fr 1fr; }
.thesis-heading .eyebrow { grid-column: 1 / -1; }
.thesis-heading h2 { grid-column: 1 / 2; }
.criteria { margin-top: 7rem; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); }
.criterion { min-height: 18rem; padding: 1.8rem 2rem 2rem 0; border-right: 1px solid var(--line); }
.criterion:not(:first-child) { padding-left: 2rem; }
.criterion:last-child { border: 0; }
.criterion > span { color: var(--copper); font-size: .68rem; }
.criterion h3 { margin: 5rem 0 .8rem; font-family: "Instrument Serif", serif; font-size: 2.2rem; font-weight: 400; }
.criterion p { margin: 0; color: var(--muted); font-size: .9rem; }

.team { display: grid; grid-template-columns: 55% 45%; padding-top: 0; background: var(--paper); }
.team-photo { min-height: 72vh; overflow: hidden; }
.team-photo img { height: 100%; object-fit: cover; object-position: center center; }
.team-copy { padding: 3vw 0 3vw 6vw; align-self: center; }
.team-copy h2 { font-size: clamp(3.4rem, 5vw, 6rem); }
.team-copy > p:not(.eyebrow) { max-width: 32rem; margin: 1.5rem 0 0; color: var(--muted); }
.contact { min-height: 84vh; position: relative; display: flex; align-items: center; background: var(--green); color: #fff; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,36,27,.98) 30%, rgba(11,36,27,.35)), url("assets/skybar.webp") center/cover; opacity: .88; }
.contact-inner { position: relative; width: 100%; padding: 10vw 7vw; }
.contact h2 { margin: 0; max-width: 60rem; font-size: clamp(4.2rem, 8vw, 9rem); }
.contact-links { margin-top: 3rem; display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.contact-channel { display: inline-flex; align-items: center; gap: .75rem; min-height: 3.2rem; padding: .65rem 1rem .65rem .65rem; border: 1px solid rgba(255,255,255,.3); font-size: .76rem; letter-spacing: .06em; transition: background .25s ease, color .25s ease, transform .25s ease; }
.contact-channel:hover { background: var(--cream); color: var(--green); transform: translateY(-2px); }
.contact-icon { width: 2rem; height: 2rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1rem; }
.contact-icon svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.contact-icon .icon-fill { fill: currentColor; stroke: none; }

footer { min-height: 18rem; padding: 4rem 7vw; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: end; background: #06150f; color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-brand { width: min(240px, 70vw); }

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

@media (max-width: 900px) {
  .topbar { height: 68px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 0; background: transparent; color: inherit; }
  .menu-toggle span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .25s ease; }
  .nav { position: fixed; inset: 68px 0 auto; display: none; padding: 2rem 6vw 2.5rem; flex-direction: column; align-items: flex-start; gap: 1.5rem; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 62svh; padding: 9rem 6vw 4rem; }
  .hero h1 { font-size: clamp(4.2rem, 20vw, 7rem); }
  .hero-visual { min-height: 72svh; }
  .hero-caption { left: 5vw; right: 5vw; bottom: 5vw; grid-template-columns: 1fr; gap: .35rem; }
  .hero-caption strong, .hero-caption span:last-child { text-align: left; }
  .scroll-cue { display: none; }
  .section { padding: 6.5rem 6vw; }
  .section-index { display: none; }
  .manifesto, .project, .team, .same-side, .apartment-feature { grid-template-columns: 1fr; }
  .manifesto-copy, .project-intro { padding-top: 0; }
  .same-side > img { height: 58vh; }
  .same-side-panel { min-height: 58vh; padding: 5rem 6vw; }
  .experience-lead h2 { font-size: clamp(3.1rem, 8.8vw, 5.2rem); }
  .project-stage { min-height: 82vh; }
  .project-stage > img { object-position: 52% center; }
  .project-stats { left: 4vw; right: 4vw; bottom: 0; grid-template-columns: 1fr 1fr; }
  .project-stats div:nth-child(2) { border-right: 0; }
  .project-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
  .experience-lead > p:last-child { margin-left: 0; }
  .gallery { grid-template-columns: 1fr; gap: .75rem; }
  .gallery .gallery-wide { grid-column: auto; height: 58vh; }
  .gallery figure { height: 48vh; }
  .apartment-image img { min-height: 58vh; }
  .apartment-copy { padding: 6rem 6vw; }
  .thesis-heading { grid-template-columns: 1fr; }
  .criteria { grid-template-columns: 1fr 1fr; }
  .criterion:nth-child(2) { border-right: 0; }
  .criterion:nth-child(3), .criterion:nth-child(4) { border-top: 1px solid var(--line); }
  .criterion:nth-child(3) { padding-left: 0; }
  .team-photo { min-height: 0; background: #111318; }
  .team-photo img { height: auto; object-fit: contain; }
  .team-copy { padding: 5rem 0 0; }
  footer { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 560px) {
  .hero-actions, .contact-links { align-items: flex-start; flex-direction: column; }
  .manifesto h2, .project h2, .thesis h2, .team h2, .same-side-panel h2, .experience-lead h2, .apartment-copy h2, .contact h2 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .experience-lead h2 { font-size: clamp(2.25rem, 10.7vw, 3.4rem); }
  .contact h2 { font-size: clamp(2.9rem, 13vw, 4.3rem); }
  .view-feature { min-height: 78vh; }
  .view-feature > img { object-position: 58% center; }
  .view-caption { padding: 7rem 6vw; }
  .contact-channel { width: 100%; }
  .project-stage { min-height: 74vh; }
  .project-stats { position: absolute; }
  .project-stats div { padding: 1rem; }
  .project-stats strong { font-size: 1.8rem; }
  .criteria { grid-template-columns: 1fr; }
  .criterion, .criterion:not(:first-child) { min-height: auto; padding: 1.5rem 0 2.5rem; border-right: 0; border-top: 1px solid var(--line); }
  .criterion h3 { margin: 2rem 0 .5rem; }
  footer { grid-template-columns: 1fr; }
}

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