@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #fafaf8;
  --surface: #f0eee8;
  --surface-2: #e8e4da;
  --ink: #1a1a12;
  --muted: #72726b;
  --faint: #aaa79f;
  --line: rgba(26, 26, 18, 0.11);
  --white: #f8f7f2;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --page: min(1440px, 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
::selection { background: #d9d4c8; color: var(--ink); }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 248, .92);
  backdrop-filter: blur(18px);
}
.header-inner {
  width: var(--page);
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(22px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-cta, .button, .pdf-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  transition: background .25s, color .25s, transform .25s;
}
.header-cta:hover, .button:hover, .pdf-link:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}
.button--dark { background: var(--ink); color: var(--white); }
.button--dark:hover { background: #36362d; }
.menu-button { display: none; border: 0; background: none; padding: 8px; }

.page-shell { width: var(--page); margin: 0 auto; }
.section {
  padding: clamp(72px, 9vw, 132px) clamp(22px, 4vw, 64px);
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 40px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-head--single { grid-template-columns: 1fr; }
.section-head--compact { margin-bottom: 32px; }
.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  max-width: 920px;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.025em;
}
.section-intro {
  margin: 22px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  min-height: calc(100vh - 68px);
  padding: clamp(56px, 8vw, 112px) clamp(22px, 4vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .72fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: center;
}
.hero-copy { max-width: 800px; }
.hero-kicker { margin-bottom: 28px; }
.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 300;
  line-height: .86;
  letter-spacing: -.035em;
}
.hero h1 em { font-weight: 300; }
.hero-role {
  margin: 0 0 24px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-lead {
  max-width: 600px;
  margin: 0 0 32px;
  color: #4e4e48;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface-2);
}
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.image-note {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  background: rgba(250, 250, 248, .9);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 8vw, 128px);
}
.about-lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.08;
}
.about-copy { max-width: 620px; color: var(--muted); font-size: 15px; }
.about-copy p { margin: 0 0 18px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  padding: 7px 11px;
  background: var(--surface);
  border-radius: 2px;
  color: #56564f;
  font-size: 10px;
  letter-spacing: .04em;
}

.directions-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.direction {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  transition: background .3s var(--ease);
}
.direction:last-child { border-right: 0; }
.direction:hover { background: var(--surface); }
.direction-number { color: var(--faint); font-size: 10px; }
.direction h3 {
  margin: auto 0 12px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}
.direction p { margin: 0; color: var(--muted); font-size: 12px; }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 18px; }
.project-card { min-width: 0; }
.project-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .5s;
}
.project-image.contain img { object-fit: contain; padding: 7%; }
.project-image--dark { background: #10110e; }
.project-image:hover img { transform: scale(1.035); }
.project-image.contain:hover img { transform: scale(1.01); }
.project-index {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 8px;
  background: rgba(250, 250, 248, .85);
  font-size: 9px;
  letter-spacing: .12em;
}
.project-meta { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding-top: 18px; }
.project-meta h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.project-meta p { margin: 0; color: var(--muted); font-size: 11px; }
.project-meta .project-summary { max-width: 520px; margin-top: 11px; color: #505049; font-size: 12px; line-height: 1.62; }
.project-link {
  align-self: start;
  text-decoration: none;
  font-size: 11px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.tools-grid { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); }
.tool {
  min-height: 110px;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.tool:nth-child(5n) { border-right: 0; }
.tool-name { font-size: 13px; font-weight: 500; }
.tool-type { color: var(--faint); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }

.contact {
  padding: clamp(72px, 10vw, 140px) clamp(22px, 4vw, 64px);
  background: var(--ink);
  color: var(--white);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.contact h2 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 7vw, 96px); font-weight: 300; line-height: .95; }
.contact p { max-width: 480px; color: rgba(248, 247, 242, .58); }
.contact-links { display: grid; }
.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.16);
  text-decoration: none;
}
.contact-link:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-link span:first-child { color: rgba(248, 247, 242, .46); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.contact-link:hover span:last-child { transform: translateX(4px); }
.site-footer {
  padding: 20px clamp(22px, 4vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(248, 247, 242, .34);
  font-size: 10px;
}

/* Case pages */
.case-hero {
  position: relative;
  min-height: calc(86vh - 68px);
  padding: clamp(64px, 9vw, 120px) clamp(22px, 5vw, 80px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #171711;
  color: var(--white);
}
.case-hero--light { background: var(--surface); color: var(--ink); }
.case-hero-media, .case-hero-media::after { position: absolute; inset: 0; }
.case-hero-media::after { content: ''; background: linear-gradient(90deg, rgba(8,8,6,.82), rgba(8,8,6,.2) 65%), linear-gradient(0deg, rgba(8,8,6,.55), transparent 60%); }
.case-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.case-hero--light .case-hero-media::after { background: linear-gradient(90deg, rgba(250,250,248,.92), rgba(250,250,248,.24) 70%); }
.case-hero-content { position: relative; z-index: 2; max-width: 840px; }
.back-link { display: inline-block; margin-bottom: 56px; color: inherit; text-decoration: none; font-size: 11px; opacity: .7; }
.case-kicker { margin-bottom: 16px; opacity: .65; }
.case-hero h1 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(70px, 10vw, 146px); font-weight: 300; line-height: .78; letter-spacing: -.045em; }
.case-hero-lead { max-width: 680px; margin: 0; color: rgba(248,247,242,.72); font-size: clamp(15px, 1.5vw, 19px); }
.case-hero--light .case-hero-lead { color: #55554e; }
.case-meta { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 36px; }
.case-meta-item span { display: block; }
.case-meta-label { margin-bottom: 4px; opacity: .48; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.case-meta-value { font-size: 12px; }

.case-section {
  padding: clamp(72px, 9vw, 132px) clamp(22px, 5vw, 80px);
  border-top: 1px solid var(--line);
}
.case-section--tint { background: var(--surface); }
.case-section--dark { background: var(--ink); color: var(--white); }
.case-heading { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr; gap: 40px; margin-bottom: clamp(40px, 6vw, 76px); }
.case-heading h2 { margin: 0; max-width: 900px; font-family: var(--serif); font-size: clamp(44px, 6vw, 82px); font-weight: 300; line-height: .98; letter-spacing: -.025em; }
.case-heading p { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 15px; }
.case-section--dark .case-heading p { color: rgba(248,247,242,.55); }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 108px); }
.body-large { margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 52px); font-weight: 300; line-height: 1.08; }
.body-copy { color: var(--muted); }
.body-copy p { margin: 0 0 18px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.step { min-height: 230px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step span { color: var(--faint); font-size: 9px; letter-spacing: .1em; }
.step h3 { margin: auto 0 10px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1; }
.step p { margin: 0; color: var(--muted); font-size: 11px; }

.media-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.media-card { overflow: hidden; background: #e7e4dc; }
.media-card img { width: 100%; height: 100%; object-fit: cover; }
.media-card.contain img { object-fit: contain; padding: 3%; }
.media-card--12 { grid-column: span 12; aspect-ratio: 16 / 8; }
.media-card--8 { grid-column: span 8; aspect-ratio: 4 / 3; }
.media-card--7 { grid-column: span 7; aspect-ratio: 4 / 3; }
.media-card--6 { grid-column: span 6; aspect-ratio: 4 / 3; }
.media-card--5 { grid-column: span 5; aspect-ratio: 4 / 3; }
.media-card--4 { grid-column: span 4; aspect-ratio: 3 / 4; }
.media-caption { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.poster-feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.poster-feature + .poster-feature { margin-top: 100px; }
.poster-feature:nth-child(even) .poster-copy { order: 2; }
.poster-frame { max-width: 620px; margin: 0 auto; padding: 6%; background: #131411; }
.poster-frame img { width: 100%; }
.poster-copy .index { color: var(--faint); font-size: 10px; }
.poster-copy h3 { margin: 20px 0; font-family: var(--serif); font-size: clamp(40px, 5vw, 70px); font-weight: 300; line-height: .95; }
.poster-copy p { max-width: 520px; color: var(--muted); }

.pdf-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pdf-card { padding: 14px; border: 1px solid var(--line); background: var(--bg); }
.pdf-preview { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); }
.pdf-preview img { width: 100%; height: 100%; object-fit: cover; }
.pdf-info { padding: 20px 6px 6px; }
.pdf-info h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1; }
.pdf-info p { min-height: 42px; margin: 0 0 18px; color: var(--muted); font-size: 11px; }
.pdf-link { min-height: 38px; padding: 0 16px; }

.results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.results--two { grid-template-columns: repeat(2, 1fr); }
.result { min-height: 190px; padding: 26px; background: var(--surface); display: flex; flex-direction: column; }
.case-section--dark .result { background: rgba(255,255,255,.06); }
.result strong { margin-top: auto; font-family: var(--serif); font-size: clamp(34px, 4vw, 56px); font-weight: 300; line-height: 1; }
.result span { margin-top: 8px; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.case-section--dark .result span { color: rgba(248,247,242,.42); }

.next-case { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; padding: 56px clamp(22px, 5vw, 80px); border-top: 1px solid var(--line); text-decoration: none; transition: background .3s; }
.next-case:hover { background: var(--surface); }
.next-case span { color: var(--faint); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.next-case strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 300; }
.next-case b { font-size: 34px; font-weight: 300; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .directions-grid { grid-template-columns: 1fr 1fr; }
  .direction { border-bottom: 1px solid var(--line); }
  .direction:nth-child(2) { border-right: 0; }
  .direction:nth-child(n+3) { border-bottom: 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(n+3) { border-bottom: 0; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .tool { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tool:nth-child(2n) { border-right: 0; }
  .tool:nth-child(n+5) { border-bottom: 0; }
}

@media (max-width: 760px) {
  .site-nav { display: none; position: fixed; inset: 68px 0 0; padding: 42px 24px; background: var(--bg); flex-direction: column; align-items: flex-start; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-family: var(--serif); font-size: 34px; color: var(--ink); }
  .header-cta { display: none; }
  .menu-button { display: block; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-portrait { aspect-ratio: 4 / 3; }
  .section-head, .case-heading { grid-template-columns: 1fr; gap: 18px; }
  .about-grid, .contact-grid, .two-column, .poster-feature { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; gap: 48px; }
  .project-meta { grid-template-columns: 1fr; gap: 14px; }
  .project-link { justify-self: start; }
  .directions-grid, .tools-grid, .pdf-grid, .results, .steps { grid-template-columns: 1fr; }
  .direction, .tool, .step { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .direction:last-child, .tool:last-child, .step:last-child { border-bottom: 0 !important; }
  .tool { min-height: 88px; }
  .case-hero { min-height: 72vh; }
  .case-hero-media::after { background: linear-gradient(0deg, rgba(8,8,6,.86), rgba(8,8,6,.12)); }
  .case-hero--light .case-hero-media::after { background: linear-gradient(0deg, rgba(250,250,248,.9), rgba(250,250,248,.2)); }
  .poster-feature:nth-child(even) .poster-copy { order: initial; }
  .media-card--8, .media-card--7, .media-card--6, .media-card--5, .media-card--4 { grid-column: span 12; }
  .media-card--4 { aspect-ratio: 4 / 5; }
  .site-footer { flex-direction: column; }
}
