:root {
  --warm-white: #f7f5f1;
  --bone: #ece6db;
  --cream: #fbfaf6;
  --ink: #171716;
  --charcoal: #30302d;
  --muted: #706a60;
  --taupe: #a29584;
  --burgundy: #6f2528;
  --olive: #4c513e;
  --line: rgba(23, 23, 22, 0.16);
  --max: 1520px;
  --gutter: clamp(20px, 4vw, 72px);
  --section: clamp(86px, 13vw, 190px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--warm-white);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

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

p {
  margin: 0;
  color: var(--charcoal);
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--ink);
}

h1 {
  max-width: 11ch;
  font-size: clamp(4.5rem, 11vw, 12.25rem);
  line-height: 0.82;
}

h2 {
  max-width: 980px;
  font-size: clamp(2.3rem, 5.4vw, 6rem);
  line-height: 0.96;
}

h3 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 241, 0.9);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand,
.nav-links {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.brand {
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.3vw, 42px);
  color: var(--muted);
}

.nav-menu {
  position: relative;
  padding: 18px 0;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: -18px;
  width: min(320px, calc(100vw - 40px));
  padding: 14px 18px 16px;
  display: grid;
  gap: 14px;
  background: rgba(247, 245, 241, 0.96);
  border: 1px solid var(--line);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  color: var(--charcoal);
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: none;
}

.nav-links a,
.text-link {
  position: relative;
}

.nav-links a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}

.nav-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero,
.statement-band,
.split-section,
.research-section,
.method-section,
.audience-section,
.offerings-section,
.proof-section,
.contact-section,
.site-footer {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin: 0 auto;
}

.hero {
  min-height: calc(82vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(64px, 9vw, 132px) 0 clamp(30px, 5vw, 80px);
}

.portfolio-hero h1 {
  max-width: 12ch;
}

.hero-copy {
  display: grid;
  gap: clamp(28px, 4vw, 54px);
}

.eyebrow {
  color: var(--burgundy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mission {
  max-width: 920px;
  color: var(--charcoal);
  font-size: clamp(1.16rem, 1.55vw, 1.55rem);
  line-height: 1.54;
}

.statement-band,
.split-section,
.audience-section,
.proof-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 128px);
}

.statement-band {
  padding: var(--section) 0;
}

.statement-copy {
  display: grid;
  gap: 34px;
}

.statement-copy h2 {
  max-width: 860px;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  font-weight: 400;
  line-height: 1.72;
}

.statement-copy p {
  max-width: 680px;
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.split-section,
.research-section,
.method-section,
.project-section,
.offerings-section,
.proof-section,
.contact-section {
  padding: var(--section) 0;
}

.section-label {
  padding-top: 0.7rem;
}

.text-column {
  max-width: 920px;
  display: grid;
  gap: 30px;
}

.text-column p {
  max-width: 780px;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
}

.plain-list {
  max-width: 820px;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.bullet-list {
  padding-left: 1.15em;
  list-style: disc;
}

.plain-list li {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--charcoal);
  line-height: 1.65;
}

.problem-section {
  background:
    linear-gradient(90deg, transparent 0, transparent 52%, rgba(76, 81, 62, 0.08) 52%, rgba(76, 81, 62, 0.08) 100%);
}

.section-intro {
  display: grid;
  gap: 24px;
  margin-bottom: clamp(44px, 7vw, 92px);
}

.section-intro p:not(.eyebrow) {
  max-width: 850px;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

.section-intro.narrow {
  max-width: 1060px;
}

.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.48fr);
  gap: clamp(36px, 8vw, 134px);
  align-items: start;
}

.large-text p {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 4.6vw, 5.25rem);
  line-height: 0.98;
  color: var(--ink);
}

.research-notes {
  display: grid;
  gap: 28px;
  padding-top: 0.8rem;
}

.research-notes p {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.study-carousel {
  display: grid;
  grid-auto-columns: minmax(280px, 420px);
  grid-auto-flow: column;
  gap: clamp(18px, 3vw, 34px);
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x proximity;
}

.compact-carousel {
  max-width: min(100%, 1080px);
  margin-top: 20px;
}

.study-card {
  min-height: 430px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
  transition: background 240ms ease, transform 240ms ease;
}

.project-section {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin: 0 auto;
}

.project-carousel {
  display: grid;
  grid-auto-columns: minmax(300px, 460px);
  grid-auto-flow: column;
  gap: clamp(18px, 3vw, 34px);
  overflow-x: auto;
  padding: 4px 0 20px;
  scroll-snap-type: x proximity;
}

.project-card {
  min-height: 460px;
  padding: 26px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  scroll-snap-align: start;
  transition: background 240ms ease, transform 240ms ease;
}

.project-card:hover {
  background: rgba(236, 230, 219, 0.45);
  transform: translateY(-2px);
}

.project-number {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(76, 81, 62, 0.2), transparent 48%),
    var(--bone);
  color: var(--olive);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.82;
}

.project-card strong {
  max-width: 13ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 400;
  line-height: 0.96;
}

.project-card span:last-child {
  color: var(--charcoal);
  line-height: 1.55;
}

.project-hero {
  min-height: auto;
  padding-bottom: clamp(52px, 8vw, 110px);
}

.project-hero h1 {
  max-width: 13ch;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.project-meta span,
.prototype-link {
  min-height: 40px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.84rem;
  line-height: 1.35;
}

.prototype-link {
  width: fit-content;
  color: var(--burgundy);
  font-weight: 600;
}

.project-detail-section {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 140px) 0;
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 128px);
  border-top: 1px solid var(--line);
}

.project-detail-body {
  max-width: 980px;
  display: grid;
  gap: 28px;
}

.project-detail-body h2 {
  max-width: 760px;
  font-size: clamp(2.3rem, 5vw, 5.4rem);
}

.project-detail-body p {
  max-width: 820px;
  font-size: clamp(1rem, 1.22vw, 1.2rem);
}

.project-facts {
  max-width: 940px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.project-facts article {
  min-height: 160px;
  padding: 24px;
  display: grid;
  align-content: end;
  gap: 14px;
  background: var(--warm-white);
}

.project-facts strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 2.5vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
}

.project-facts p {
  font-size: 0.96rem;
}

.path-list {
  max-width: 900px;
  display: grid;
  gap: 10px;
}

.path-list a,
.path-list span {
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
}

.path-list a {
  color: var(--burgundy);
}

.next-projects {
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 140px) 0;
  border-top: 1px solid var(--line);
}

.next-projects .section-intro {
  margin-bottom: 34px;
}

.study-card:hover {
  background: rgba(236, 230, 219, 0.45);
  transform: translateY(-2px);
}

.study-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(111, 37, 40, 0.18), transparent 48%),
    var(--bone);
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.82;
}

.study-meta {
  color: var(--burgundy);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.study-card strong {
  max-width: 12ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.9rem, 3vw, 3.1rem);
  font-weight: 400;
  line-height: 0.96;
}

.study-card span:last-child {
  color: var(--charcoal);
  line-height: 1.55;
}

.method-list,
.offering-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 44px);
}

.method-list article,
.offering-list article {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  align-content: start;
  gap: 18px;
}

.method-list span,
.offering-kicker {
  color: var(--burgundy);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.method-list h3,
.offering-list h3 {
  max-width: 11ch;
}

.audience-section {
  align-items: start;
  padding: calc(var(--section) * 0.78) 0;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.audience-list p {
  min-height: 142px;
  padding: 28px;
  display: flex;
  align-items: flex-end;
  background: var(--warm-white);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3.3vw, 4rem);
  line-height: 0.98;
  color: var(--ink);
}

.offerings-section {
  background:
    linear-gradient(180deg, rgba(236, 230, 219, 0.48), rgba(236, 230, 219, 0));
}

.offering-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-section {
  align-items: start;
}

.proof-copy {
  display: grid;
  gap: 22px;
}

.proof-copy h2 {
  max-width: 560px;
  font-size: clamp(2.4rem, 4.6vw, 5.2rem);
}

.proof-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding-left: 1.15em;
}

.proof-list li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--charcoal);
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.65;
}

.proof-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.contact-section {
  align-items: start;
  padding-bottom: clamp(80px, 11vw, 150px);
}

.contact-section h2 {
  margin-top: 18px;
}

.contact-copy {
  max-width: 760px;
  display: grid;
  gap: 32px;
}

.text-link {
  width: fit-content;
  color: var(--burgundy);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

@media (max-width: 980px) {
  .nav-shell {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 48px;
  }

  h1 {
    max-width: 10ch;
  }

  .statement-band,
  .split-section,
  .audience-section,
  .proof-section,
  .contact-section,
  .project-detail-section,
  .research-grid {
    grid-template-columns: 1fr;
  }

  .offering-list {
    grid-template-columns: 1fr;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .problem-section {
    background: transparent;
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 20px;
    --section: 76px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.72rem;
  }

  .nav-menu {
    padding: 0;
  }

  .nav-dropdown {
    left: 0;
  }

  h1 {
    font-size: clamp(3.8rem, 18vw, 6.2rem);
  }

  .mission {
    font-size: 1.08rem;
  }

  .audience-list {
    grid-template-columns: 1fr;
  }

  .audience-list p {
    min-height: 110px;
    padding: 22px 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}
