/* ==========================================================================
   Boardroom Projects — one page, no navigation, photography first.
   ========================================================================== */

:root {
  --ground: #F5F2ED;
  --surface: #E8E3DA;
  --ink: #2F2C27;
  --muted: #8E8574;
  --brick: #8E4A3B;
  --rule: #D9D3C9;

  --sans: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(18px, 4vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --slow: 1.4s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
h2 { margin: 0; font-weight: 300; }
p { margin: 0; }
address { font-style: normal; }

.eyebrow {
  display: block;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px; font-weight: 400;
}

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity var(--slow) var(--ease), transform var(--slow) var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
figure[data-reveal] { transform: none; }
figure[data-reveal] img { transform: scale(1.08); transition: transform 1.8s var(--ease); }
figure[data-reveal].in img { transform: scale(1); }
figure { overflow: hidden; background: var(--surface); }
figure img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }

/* split text */
[data-split] .w { display: inline-block; opacity: 0; transform: translateY(.6em); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i) * 32ms); }
[data-split].in .w { opacity: 1; transform: none; }

/* parallax wrapper: the figure moves, image stays cover */
[data-parallax] { will-change: transform; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: var(--ink);
}
.hero-media { position: absolute; inset: -6% 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 60%;
  transform: scale(1.06); will-change: transform;
  animation: heroIn 2.4s var(--ease) both;
  filter: saturate(.92);
}
@keyframes heroIn { from { transform: scale(1.16); opacity: 0; } to { transform: scale(1.06); opacity: 1; } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(47,44,39,.22), rgba(47,44,39,0) 35%, rgba(47,44,39,0) 60%, rgba(47,44,39,.55)),
    radial-gradient(ellipse at center, rgba(47,44,39,.28), rgba(47,44,39,0) 70%);
}
.hero-logo {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 0 var(--gutter);
  animation: logoIn 1.8s .5s var(--ease) both;
}
.hero-logo img { width: clamp(280px, 52vw, 820px); height: auto; filter: drop-shadow(0 10px 40px rgba(0,0,0,.22)); }
@keyframes logoIn { from { opacity: 0; transform: translateY(18px) scale(.985); letter-spacing: .1em; } to { opacity: 1; transform: none; } }
.hero-foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; justify-content: space-between;
  color: rgba(245,242,237,.78); font-size: 11px; letter-spacing: .32em; text-transform: uppercase; font-weight: 400;
  animation: logoIn 1.6s 1.1s var(--ease) both;
}
.hero-cue {
  position: absolute; left: 50%; bottom: 22px; width: 1px; height: 48px; transform: translateX(-50%);
  background: rgba(245,242,237,.25); overflow: hidden; animation: logoIn 1.6s 1.4s var(--ease) both;
}
.hero-cue span { position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: rgba(245,242,237,.9); animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(-120%); } 60%, 100% { transform: translateY(260%); } }

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement {
  display: grid; place-items: center; align-content: center; gap: 36px;
  padding: clamp(80px, 14vh, 160px) var(--gutter); text-align: center;
}
.statement-line {
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.22;
  max-width: 30ch; letter-spacing: -0.01em;
}

/* ==========================================================================
   STRIP — vertical scroll drives horizontal drift
   ========================================================================== */
/* pull the strip up by the sticky frame's centering slack so the gap below the copy equals the gap above the mark */
.strip-wrap { height: 280vh; position: relative; margin-top: calc(-1 * (100svh - min(64svh, 640px)) / 2); }
.strip-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.strip-track {
  display: flex; gap: clamp(12px, 1.6vw, 24px); padding-left: var(--gutter);
  will-change: transform; width: max-content;
}
.strip-track figure { height: min(64svh, 640px); aspect-ratio: 4 / 5; flex: none; }
.strip-track figure:nth-child(3n) { height: min(50svh, 500px); align-self: flex-end; }
.strip-track figure:nth-child(3n+2) { height: min(58svh, 580px); align-self: flex-start; }
.strip-track figure img { transform: none; }
.strip-caption {
  position: absolute; left: var(--gutter); right: clamp(130px, 13vw, 220px); bottom: 28px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); font-weight: 400;
}
.strip-count { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.project { padding: clamp(80px, 14vh, 180px) var(--gutter) 0; }
.project-head { display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; align-items: baseline; margin-bottom: clamp(28px, 4vh, 48px); max-width: 1400px; margin-left: auto; margin-right: auto; }
.project-n { font-size: 11px; letter-spacing: .32em; color: var(--brick); font-weight: 400; }
.project-head h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.015em; line-height: 1; }
.project-head p { grid-column: 2; margin-top: 12px; max-width: 46ch; color: var(--muted); font-size: 15px; }

.spread { display: grid; gap: clamp(12px, 1.8vw, 28px); max-width: 1400px; margin: 0 auto; }
.spread figure { position: relative; }

/* A: big portrait left, three stacked right in an offset column */
.spread-a { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; }
.spread-a .f1 { grid-row: 1 / 3; aspect-ratio: 4 / 5; }
.spread-a .f2 { aspect-ratio: 4 / 5; width: 72%; margin-left: auto; }
.spread-a .f3 { aspect-ratio: 4 / 5; width: 86%; margin-top: -8%; }
.spread-a .f4 { grid-column: 1 / 3; aspect-ratio: 16 / 7; width: 70%; margin: clamp(12px, 2vw, 28px) auto 0; }

/* B: full-bleed landscape, then three in a row with staggered sizes */
.spread-b { grid-template-columns: repeat(3, 1fr); }
.spread-b .f1 { grid-column: 1 / 4; aspect-ratio: 16 / 8; margin: 0 calc(-1 * var(--gutter)); max-width: none; }
.spread-b .f2 { aspect-ratio: 4 / 5; }
.spread-b .f3 { aspect-ratio: 4 / 3; margin-top: 14%; }
.spread-b .f4 { aspect-ratio: 4 / 5; width: 78%; margin-left: auto; margin-top: -10%; }

/* C: wide landscape + narrow portrait, then two landscapes */
.spread-c { grid-template-columns: 8fr 4fr; }
.spread-c .f1 { aspect-ratio: 3 / 2; }
.spread-c .f2 { aspect-ratio: 4 / 5; align-self: end; margin-bottom: -14%; }
.spread-c .f3 { aspect-ratio: 16 / 9; width: 84%; margin-top: 6%; }
.spread-c .f4 { aspect-ratio: 4 / 3; margin-top: 22%; }

/* D: pin board portrait left, pots big right, two below */
.spread-d { grid-template-columns: 5fr 7fr; }
.spread-d .f1 { aspect-ratio: 4 / 5; margin-top: 18%; }
.spread-d .f2 { aspect-ratio: 4 / 5; }
.spread-d .f3 { aspect-ratio: 16 / 10; width: 90%; margin-left: auto; margin-top: -6%; }
.spread-d .f4 { aspect-ratio: 3 / 2; width: 84%; margin-top: 10%; }

/* ==========================================================================
   LIVED IN
   ========================================================================== */
.lived { padding: clamp(120px, 20vh, 240px) var(--gutter) 0; }
.lived-line {
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.2;
  max-width: 30ch; margin: 0 auto clamp(40px, 6vh, 72px); text-align: center; letter-spacing: -0.01em;
}
.lived-line em { font-style: italic; color: var(--brick); }
.lived-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 1.4vw, 20px); max-width: 1400px; margin: 0 auto; align-items: start; }
.lived-grid figure { aspect-ratio: 4 / 5; }
.lived-grid figure:nth-child(2) { margin-top: 24%; }
.lived-grid figure:nth-child(3) { margin-top: 8%; }
.lived-grid figure:nth-child(4) { margin-top: 32%; }
.lived-grid figure:nth-child(5) { margin-top: 4%; }
.lived-grid figure:nth-child(6) { margin-top: 20%; }

/* ==========================================================================
   LINDSEY
   ========================================================================== */
.lindsey {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); align-items: center;
  max-width: 1400px; margin: 0 auto; padding: clamp(120px, 20vh, 240px) var(--gutter);
}
.lindsey-img { aspect-ratio: 4 / 5; }
.lindsey-img img { filter: grayscale(1) contrast(1.02); }
.lindsey-line { font-family: var(--serif); font-weight: 300; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.25; letter-spacing: -0.01em; max-width: 26ch; }
.lindsey-body { margin-top: 28px; max-width: 50ch; }
.lindsey-body p { margin-top: 14px; font-size: 15.5px; line-height: 1.6; color: color-mix(in srgb, var(--ink) 82%, var(--ground)); }
.lindsey-body p:first-child { margin-top: 0; }
.lindsey-close { font-family: var(--serif); font-style: italic; font-size: 20px !important; line-height: 1.35 !important; color: var(--brick) !important; margin-top: 22px !important; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  background: var(--ink); color: var(--ground);
  padding: clamp(100px, 16vh, 200px) var(--gutter) 32px;
  display: grid; justify-items: center; text-align: center; gap: 28px;
}
.contact-logo { width: clamp(220px, 34vw, 520px); }
.contact-line { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 34px); max-width: 24ch; line-height: 1.25; margin-top: 12px; }
.contact-grid { display: grid; gap: 12px; margin-top: 12px; font-size: 15px; letter-spacing: .04em; }
.contact-grid a { border-bottom: 1px solid rgba(245,242,237,.28); padding-bottom: 2px; width: max-content; justify-self: center; transition: border-color .3s; }
.contact-grid a:hover { border-color: var(--ground); }
.contact-grid address { color: rgba(245,242,237,.7); line-height: 1.5; }
.contact-giving { max-width: 44ch; color: rgba(245,242,237,.55); font-size: 13.5px; margin-top: 24px; }
.contact-foot {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(48px, 8vh, 96px); padding: 18px clamp(130px, 13vw, 220px) 0 0; border-top: 1px solid rgba(245,242,237,.14);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: rgba(245,242,237,.5); font-weight: 400;
}
.contact-foot a:hover { color: var(--ground); }

/* ==========================================================================
   THE HOUSE THAT BUILDS ITSELF
   ========================================================================== */
.builder {
  position: fixed; right: clamp(14px, 2.4vw, 36px); bottom: clamp(12px, 2vh, 28px); z-index: 40;
  display: grid; justify-items: center; gap: 2px; pointer-events: none;
  opacity: 0; transform: translateY(10px); transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.builder.on { opacity: 1; transform: none; }
.builder svg { width: clamp(96px, 10vw, 160px); height: auto; overflow: visible; }
.builder .ink { stroke: var(--ink); stroke-width: 2.4; }
.builder .ink .thin { stroke-width: 1.4; }
.builder .ink .knob { stroke-width: 3.4; }
.builder path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.builder-label {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); font-weight: 400;
  height: 14px; overflow: hidden;
}
.builder-label span { display: inline-block; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.builder-label span.swap { opacity: 0; transform: translateY(8px); }
body.dark-end .builder .ink { stroke: var(--ground); }
body.dark-end .builder-label { color: rgba(245,242,237,.6); }

/* ==========================================================================
   MOTION PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], [data-split] .w { opacity: 1; transform: none; transition: none; }
  figure[data-reveal] img { transform: none; transition: none; }
  .hero-img, .hero-logo, .hero-foot, .hero-cue { animation: none; opacity: 1; transform: none; }
  .hero-cue span { animation: none; }
  .builder path { stroke-dashoffset: 0 !important; }
  .strip-wrap { height: auto; }
  .strip-sticky { position: static; height: auto; overflow-x: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .lived-grid { grid-template-columns: repeat(3, 1fr); }
  .lived-grid figure:nth-child(n) { margin-top: 0; }
  .lived-grid figure:nth-child(2), .lived-grid figure:nth-child(5) { margin-top: 18%; }
}
@media (max-width: 800px) {
  .hero-logo img { width: min(78vw, 420px); }
  .hero-foot { font-size: 10px; letter-spacing: .24em; }
  .statement { min-height: 0; }
  .strip-wrap { height: 220vh; }
  .strip-wrap { margin-top: calc(-1 * (100svh - min(52svh, 440px)) / 2); }
  .strip-track figure { height: min(52svh, 440px); }
  .strip-caption { right: 110px; }
  .project-head { grid-template-columns: 1fr; gap: 10px; }
  .project-head p { grid-column: 1; }
  .spread-a, .spread-b, .spread-c, .spread-d { grid-template-columns: 1fr 1fr; }
  .spread-a .f1 { grid-column: 1 / 3; grid-row: auto; }
  .spread-a .f2, .spread-a .f3 { width: 100%; margin: 0; }
  .spread-a .f4 { width: 100%; margin: 0; }
  .spread-b .f1 { grid-column: 1 / 3; aspect-ratio: 4 / 3; }
  .spread-b .f2, .spread-b .f3, .spread-b .f4 { margin: 0; width: 100%; }
  .spread-b .f4 { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
  .spread-c .f1 { grid-column: 1 / 3; }
  .spread-c .f2, .spread-c .f3, .spread-c .f4 { margin: 0; width: 100%; }
  .spread-c .f3 { grid-column: 1 / 3; }
  .spread-d .f2 { grid-column: 1 / 3; aspect-ratio: 4 / 3; order: -1; }
  .spread-d .f1, .spread-d .f3, .spread-d .f4 { margin: 0; width: 100%; }
  .spread-d .f3 { aspect-ratio: 4 / 5; }
  .lindsey { grid-template-columns: 1fr; }
  .lindsey-img { aspect-ratio: 4 / 5; width: 80%; }
  .builder svg { width: 84px; }
  .contact-foot { padding-right: 0; padding-bottom: 72px; }
  .builder-label { font-size: 9px; }
}
