/* ============================================================
   William Bruno Portfolio — portfolio.css
   Clean, purpose-built. Instrument-inspired editorial design.
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #F4F3EF;
  --dark:     #0C0F14;
  --ink:      #111216;
  --muted:    #686D77;
  --line:     rgba(0,0,0,0.08);
  --line-dk:  rgba(255,255,255,0.08);
  --serif:    "Instrument Serif", Georgia, serif;
  --sans:     "Inter", system-ui, sans-serif;
  --max-w:    1280px;
  --gut:      clamp(24px, 4.5vw, 72px);
  --radius:   10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Page-transition support (script.js adds html.js + body.is-ready) */
html.js body         { opacity: 0; }
html.js body.is-ready  { opacity: 1; transition: opacity 0.3s ease; }
html.js body.is-leaving { opacity: 0; pointer-events: none; }

img { display: block; width: 100%; height: auto; }
a   { color: inherit; }

/* ── Layout helpers ───────────────────────────────────────── */
.wrap {
  width: min(calc(100% - var(--gut) * 2), var(--max-w));
  margin-inline: auto;
}

/* ── Reveal animations (script.js adds .is-visible) ───────── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.56s ease, transform 0.64s cubic-bezier(0.22,0.61,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ── Eyebrow label ─────────────────────────────────────────── */
.label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.label--light { color: rgba(255,255,255,0.52); margin-bottom: 16px; }

/* ── Screen-reader utility ───────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background 0.26s ease, box-shadow 0.26s ease;
}

.site-header.is-scrolled {
  background: rgba(244,243,239,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.375rem;  /* 22px */
  font-weight: 400;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9375rem;  /* 15px */
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.46;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.is-active { opacity: 1; }

/* ============================================================
   HERO — Home
   ============================================================ */
.hero {
  padding-top: 152px;
  padding-bottom: 80px;
}

.hero-eyebrow { margin-bottom: 28px; }

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 9.2vw, 136px);
  line-height: 0.89;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 52px;
}

.hero-headline em {
  font-style: italic;
  color: var(--muted);
}

.hero-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: end;
  max-width: 800px;
}

.hero-sub {
  font-size: 1.0625rem;
  line-height: 1.64;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}



/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: #2c2f36;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.16);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(0,0,0,0.16);
}
.btn-ghost:hover {
  border-color: rgba(0,0,0,0.34);
  transform: translateY(-1px);
}

/* ============================================================
   WORK SECTION — dark, cinematic
   ============================================================ */
.work-stage {
  background: var(--dark);
  padding: 88px 0 104px;
}

.work-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-dk);
}

.work-stage-head .label { margin-bottom: 0; }

.work-count {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.46);
}

/* ── Project card shared ─────────────────────── */
.proj-img {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 400ms ease;
  will-change: transform;
}

.proj-img:hover img { transform: scale(1.02); }

/* ── Project 1 — Cinematic full-width ──────────── */
.proj-hero {
  margin-bottom: 44px;
}

.proj-hero .proj-img {
  aspect-ratio: 21 / 9;
}

.proj-hero-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
}

/* ── Projects 2 & 3 — side-by-side ──────────── */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 44px;
}

.proj-grid .proj-img {
  aspect-ratio: 4 / 3;
}

.proj-card-foot {
  padding-top: 18px;
}

/* ── Project text elements ──────────────────── */
.proj-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 10px;
}

.proj-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.0;
  color: rgba(255,255,255,0.94);
}
.proj-title a { text-decoration: none; color: inherit; }

.proj-hero .proj-title { font-size: clamp(26px, 3vw, 44px); }
.proj-grid .proj-title { font-size: clamp(20px, 1.8vw, 26px); }

.proj-type {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.56);
  margin-top: 8px;
  line-height: 1.48;
}

.proj-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.56);
  white-space: nowrap;
  padding-top: 4px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.proj-link:hover { color: rgba(255,255,255,0.88); }

.work-stage-foot {
  border-top: 1px solid var(--line-dk);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.see-all {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,0.56);
  transition: color 0.2s;
}
.see-all:hover { color: rgba(255,255,255,0.88); }

/* ── Sibling dimming ─────────────────────────── */
.proj-grid:has(.proj-card:hover) .proj-card:not(:hover) .proj-img,
.add-grid:has(.add-card:hover) .add-card:not(:hover) .add-img {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* ============================================================
   ADDITIONAL WORK — light
   ============================================================ */
.add-section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.add-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.add-head-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  opacity: 0.72;
  transition: opacity 0.2s;
}
.add-head-link:hover { opacity: 1; }

.add-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.add-img {
  display: block;
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  margin-bottom: 14px;
  transition: opacity 0.3s ease;
}

.add-img img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 400ms ease, opacity 0.3s ease;
}

.add-card:hover .add-img img { transform: scale(1.02); }
.add-card a { text-decoration: none; }

.add-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.72;
  margin-bottom: 5px;
}

.add-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: 5px;
}
.add-title a { text-decoration: none; color: var(--ink); }

.add-type {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.48;
}

/* ============================================================
   APPROACH — 2-col editorial
   ============================================================ */
.approach {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}

.approach-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}

.approach-title {
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 54px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.024em;
  margin-top: 14px;
}
.approach-title em { font-style: italic; color: var(--muted); }

.approach-steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.step-n {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  opacity: 0.48;
  padding-top: 3px;
}

.step h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 5px; }
.step p  { font-size: 0.875rem; color: var(--muted); line-height: 1.56; }

/* ============================================================
   PRINCIPLES BAND — 4-col inline
   ============================================================ */
/* ============================================================
   CTA BAND — dark
   ============================================================ */
.cta-band {
  background: var(--dark);
  padding: 96px 0;
}

.cta-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.cta-hed {
  font-family: var(--serif);
  font-size: clamp(36px, 4.2vw, 68px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.96);
  margin: 14px 0 12px;
}

.cta-sub {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.52);
}

.cta-email {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 38px);
  font-weight: 400;
  color: rgba(255,255,255,0.78);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(255,255,255,0.18);
  white-space: nowrap;
  transition: color 0.22s, text-decoration-color 0.22s;
}
.cta-email:hover {
  color: rgba(255,255,255,0.94);
  text-decoration-color: rgba(255,255,255,0.46);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 32px 0 40px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.foot-name {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  margin-bottom: 3px;
}

.foot-tag {
  font-size: 11px;
  color: rgba(255,255,255,0.46);
  letter-spacing: 0.04em;
}

.foot-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.foot-nav a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.56);
  text-decoration: none;
  transition: color 0.2s;
}
.foot-nav a:hover { color: rgba(255,255,255,0.86); }

.foot-copy {
  font-size: 11px;
  color: rgba(255,255,255,0.42);
}

/* ============================================================
   WORK PAGE
   ============================================================ */
.work-hero {
  padding-top: 152px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--line);
}

.work-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7.5vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 20px 0 28px;
  max-width: 680px;
}

.work-hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.6;
}

/* Work browse grid */
.work-browse { padding: 72px 0 88px; }

.work-group,
.browse-section { margin-bottom: 72px; }

.work-group-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.work-group-hd .label { opacity: 0.72; }
.work-group-hd .work-count { color: var(--muted); opacity: 0.56; }

.browse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.browse-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.browse-img {
  aspect-ratio: 3 / 2;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  margin-bottom: 16px;
  display: block;
  transition: opacity 0.3s ease;
}

.browse-img img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transition: transform 400ms ease;
}

.browse-card:hover .browse-img img { transform: scale(1.02); }

.browse-grid:has(.browse-card:hover) .browse-card:not(:hover) .browse-img {
  opacity: 0.85;
}

.browse-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.72;
  margin-bottom: 6px;
}

.browse-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.24;
  margin-bottom: 5px;
}
.browse-title a { text-decoration: none; color: var(--ink); }

.browse-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.48;
  margin-bottom: 10px;
}

.browse-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  opacity: 0.72;
  margin-top: auto;
  transition: opacity 0.2s;
}
.browse-link:hover { opacity: 1; }

/* Archive */
/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-hero {
  padding-top: 152px;
  padding-bottom: 72px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.about-portrait {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
}

.about-portrait img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.about-copy { max-width: 560px; padding-top: 8px; }

.about-copy .label { margin-bottom: 20px; }

.about-sub {
  font-size: 1.0625rem;
  line-height: 1.64;
  color: var(--muted);
  margin-bottom: 28px;
}

/* About sections */
.about-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.about-sec-head { margin-bottom: 32px; }

/* Experience */
.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 56px;
}

.exp-item {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.exp-item h3 {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.2;
}

.exp-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.68;
  margin-bottom: 10px;
}

.exp-item p:last-child {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.52;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-body       { grid-template-columns: 1fr; }
  .hero-actions    { justify-content: flex-start; }
  .approach-inner  { grid-template-columns: 1fr; gap: 40px; }
  .cta-inner       { flex-direction: column; align-items: flex-start; gap: 32px; }
}

@media (max-width: 680px) {
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-portrait  { max-width: 280px; }
  .proj-grid       { grid-template-columns: 1fr; }
  .add-grid        { grid-template-columns: 1fr; }
  .browse-grid     { grid-template-columns: 1fr; }
  .exp-grid        { grid-template-columns: 1fr; }
  .about-hero-grid { gap: 28px; }
  .hero-headline   { font-size: clamp(52px, 14vw, 78px); }
  .work-hero h1    { font-size: clamp(44px, 13vw, 72px); }
  .foot-inner      { flex-direction: column; align-items: flex-start; gap: 24px; }
}

/* ============================================================
   CASE STUDY PAGES
   ============================================================ */

/* Back nav bar */
.cs-back-bar { padding: 128px 0 0; }
.cs-back {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  opacity: 0.52;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: opacity 0.2s;
}
.cs-back:hover { opacity: 1; }

/* Hero */
.cs-hero { padding-top: 48px; padding-bottom: 48px; }
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: end;
}

.cs-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 14px 0 24px;
  grid-column: 1 / -1;
}

.cs-intro {
  font-size: 1.0625rem;
  line-height: 1.64;
  color: var(--muted);
}

/* Hero image */
.cs-img {
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(0,0,0,0.06);
  margin-bottom: 0;
}
.cs-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.cs-img--wide img { aspect-ratio: auto; }

/* Meta strip */
.cs-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 32px;
  margin-top: 48px;
}

.cs-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.72;
  margin-bottom: 6px;
  display: block;
}
.cs-meta-val {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Outcomes — dark band */
.cs-outcomes {
  background: var(--dark);
  padding: 80px 0;
}
.cs-outcomes-head {
  padding-bottom: 12px;
  border-bottom: none;
  margin-bottom: 20px;
}
.cs-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: none;
}
.cs-outcome {
  padding: 0;
  border-right: none;
  border-top: none;
  padding-top: 0;
}
.cs-outcome:last-child  { border-right: 0; padding-right: 0; }
.cs-outcome:not(:first-child) { padding-left: 0; }
.cs-outcome h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: rgba(255,255,255,0.88);
  margin-bottom: 10px;
}
.cs-outcome p { font-size: 14px; color: rgba(255, 255, 255, 0.72); line-height: 1.6; }

/* General case section */
.cs-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.cs-sec-head  { margin-bottom: 32px; }
.cs-sec-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin-top: 0;
  margin-bottom: 20px;
}
.cs-sec-intro {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 600px;
  margin-top: 14px;
}

/* Visual galleries */
.cs-gallery + .cs-gallery {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}
.cs-gallery-head { margin-bottom: 22px; }
.cs-gallery-kicker {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.72;
  margin-bottom: 8px;
  display: block;
}
.cs-gallery-head h3 {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cs-gallery-head p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.56;
  max-width: 560px;
}
.cs-compare + .cs-compare,
.cs-stagger-grid + .cs-stagger-grid { margin-top: 16px; }
.cs-compare  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cs-triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cs-fig-frame {
  border-radius: 8px;
  overflow: visible;
  background: rgba(0,0,0,0.06);
  height: auto;
  min-height: 0;
}
.cs-fig-frame img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.cs-fig-frame--wide img,
.cs-parallax.cs-fig-frame--wide img,
.cs-scale-reveal.cs-fig-frame--wide img,
.cs-clip-reveal.cs-fig-frame--wide img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: top center;
}
.cs-fig-frame.cs-scale-reveal,
.cs-fig-frame.cs-clip-reveal,
.cs-fig-frame--wide.cs-scale-reveal,
.cs-fig-frame--wide.cs-clip-reveal {
  overflow: visible !important;
  height: auto !important;
  min-height: 0;
}
.cs-fig-frame.cs-scale-reveal img,
.cs-fig-frame.cs-clip-reveal img,
.cs-fig-frame--wide.cs-scale-reveal img,
.cs-fig-frame--wide.cs-clip-reveal img {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}
.cs-fig-cap { padding-top: 11px; }
.cs-fig-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.72;
  margin-bottom: 4px;
}
.cs-fig-cap p { font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }

/* Coming soon placeholder */
.cs-coming-soon { text-align: center; padding: 80px 0 100px; }
.cs-coming-soon .label { margin-bottom: 24px; }
.cs-coming-soon h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin-bottom: 16px;
}
.cs-coming-soon p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
}
.cs-coming-soon .browse-link { margin-top: 40px; display: inline-block; }

/* Next case study label */
.cs-next-label { margin-bottom: 20px; }

/* Next case link */
.cs-next { padding: 72px 0; border-top: 1px solid var(--line); }
.cs-next-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cs-next-card:hover {
  border-color: rgba(0,0,0,0.2);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.cs-next-img {
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.06);
}
.cs-next-img img { aspect-ratio: 3 / 2; object-fit: cover; }
.cs-next-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.72;
  display: block;
  margin-bottom: 10px;
}
.cs-next-title {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.cs-next-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.52;
}

/* ── Spacing & typography overrides ─────────────── */
.cs-section h2 { margin-top: 0; margin-bottom: 20px; }
.cs-section p { margin-bottom: 32px; line-height: 1.75; }
.cs-section > .wrap > figure,
.cs-section figure:not(.cs-tilt):not(.cs-tg-full) { margin-top: 48px; margin-bottom: 16px; }
.cs-section .wrap .cs-parallax { margin-top: 48px; margin-bottom: 16px; }
.cs-section .cs-fig-frame { margin-top: 0; margin-bottom: 0; }
.cs-section img { margin-top: 0; margin-bottom: 0; }
.cs-hero + .cs-section { padding-top: 64px; }
.cs-kicker { grid-column: 1; margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }
.cs-outcomes-head { border: none; }
.cs-outcomes-grid { border: none; }
hr { display: none; }
figcaption { font-size: 14px; color: #888; line-height: 1.5; margin-top: 12px; margin-bottom: 56px; font-style: normal; }
.cs-anim-label { margin-bottom: 16px; display: block; }
.cs-outcomes .label,
.cs-outcomes .cs-anim-label,
.cs-outcomes [class*="label"] { color: rgba(255, 255, 255, 0.6); margin-bottom: 32px; display: block; }
.exp-item { margin-bottom: 48px; }
.exp-item:last-of-type { margin-bottom: 0; }
.cs-meta-item { overflow: hidden; min-width: 0; }
.cs-hscroll__counter, .cs-hscroll__dots, .cs-hscroll__nav, .cs-hscroll__arrow { display: none; }
/* ── Case study responsive ──────────────────────── */
@media (max-width: 900px) {
  .cs-hero-grid         { grid-template-columns: 1fr; gap: 24px; }
  .cs-title             { grid-column: auto; }
  .cs-meta              { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cs-outcomes-grid     { grid-template-columns: 1fr; }
  .cs-outcome, .cs-outcome:not(:first-child), .cs-outcome:last-child {
    border-right: 0; padding: 0; border-top: none;
  }
  .cs-outcome:first-child { padding-top: 0; border-top: 0; }
  .cs-next-card         { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .cs-meta              { grid-template-columns: 1fr; }
  .cs-compare, .cs-triptych { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE NAV + RESPONSIVE OVERRIDES
   Hamburger breakpoint mirrors script.js: max-width 980px
   ============================================================ */

/* Hamburger button — hidden on desktop */
.nav-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  color: var(--ink);
  position: relative;
  z-index: 101;
}

.nav-menu-toggle__icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav-menu-toggle__icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.18s ease;
  transform-origin: center;
}

/* Morph to × when open */
.site-header.is-menu-open .nav-menu-toggle__icon span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-header.is-menu-open .nav-menu-toggle__icon span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.site-header.is-menu-open .nav-menu-toggle__icon span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 980px) {
  /* Show hamburger */
  .nav-menu-toggle { display: flex; }

  /* Nav becomes a full-screen overlay */
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 88px var(--gut) 48px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 99;
  }

  .site-header.is-menu-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links a {
    font-family: var(--serif);
    font-size: clamp(28px, 7vw, 44px);
    font-weight: 400;
    opacity: 0.86;
    letter-spacing: -0.01em;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    display: block;
    text-decoration: none;
  }
  .nav-links a:hover { opacity: 1; }

  /* Hide theme/palette toggles injected by JS inside mobile overlay */
  .nav-links .theme-toggle,
  .nav-links .look-toggle { display: none; }
}

/* ── Layout: tablet (≤900px) already handled above ── */

/* ── Layout: mobile (≤768px) ──────────────────────── */
@media (max-width: 768px) {

  /* Hero */
  .hero { padding-top: 120px; padding-bottom: 52px; }

  /* Work stage */
  .proj-hero .proj-img { aspect-ratio: 16 / 9; }
  .work-stage-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .work-stage-foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .work-stage { padding: 64px 0 72px; }

  /* Additional work */
  .add-section { padding: 52px 0 56px; }

  /* Approach */
  .approach  { padding: 52px 0 56px; }

  /* Work page hero */
  .work-hero { padding-top: 120px; padding-bottom: 44px; }

  /* About page */
  .about-hero    { padding-top: 120px; padding-bottom: 48px; }
  .about-section { padding: 44px 0; }

  /* CTA band */
  .cta-band { padding: 56px 0 60px; }

  /* Footer */
  .site-footer { padding: 24px 0 32px; }

  /* Case study pages */
  .cs-back-bar           { padding-top: 96px; }
  .cs-hero               { padding-top: 20px; padding-bottom: 36px; }
  .cs-title              { font-size: clamp(34px, 10vw, 60px); }
  .cs-meta               { grid-template-columns: 1fr 1fr; gap: 16px; }
  .cs-img--wide img      { aspect-ratio: auto; }
  .cs-outcomes           { padding: 64px 0; }
  .cs-section            { padding: 44px 0; }
  .cs-next               { padding: 44px 0; }
  .cs-next-card          { padding: 20px; gap: 20px; }
  .work-browse           { padding: 44px 0 56px; }
}

/* ── Layout: small mobile (≤480px) ───────────────── */
@media (max-width: 480px) {
  .hero-headline  { font-size: clamp(40px, 15vw, 60px); }
  .cta-hed        { font-size: clamp(28px, 10vw, 44px); }
  .cta-email      { font-size: clamp(18px, 5.5vw, 26px); }

  .work-hero h1   { font-size: clamp(34px, 13vw, 52px); }

  .cs-title       { font-size: clamp(30px, 11vw, 48px); }
  .cs-meta        { grid-template-columns: 1fr; }
}

/* ============================================================
   ORB — floating glassmorphism bubble, top-right
   Script animates: --page-orb-shift-x/y, --page-orb-scale,
   --page-orb-rotate, --page-orb-pointer-x/y on body
   ============================================================ */

/* Default orb position & size vars */
body {
  --page-orb-x:        80%;
  --page-orb-y:        14vh;
  --page-orb-width:    clamp(820px, 88vw, 1400px);
  --page-orb-height:   clamp(680px, 74vw, 1200px);
  --page-orb-opacity:  0.36;
  --page-orb-shift-x:  0px;
  --page-orb-shift-y:  0px;
  --page-orb-pointer-x:0px;
  --page-orb-pointer-y:0px;
  --page-orb-scale:    1;
  --page-orb-rotate:   0deg;
}

body::before {
  content: "";
  position: fixed;
  left:   var(--page-orb-x);
  top:    var(--page-orb-y);
  width:  var(--page-orb-width);
  height: var(--page-orb-height);
  transform:
    translate3d(
      calc(-50% + var(--page-orb-shift-x) + var(--page-orb-pointer-x)),
      calc(-50% + var(--page-orb-shift-y) + var(--page-orb-pointer-y)),
      0
    )
    scale(var(--page-orb-scale))
    rotate(var(--page-orb-rotate));
  border-radius: 58% 42% 45% 55% / 58% 48% 52% 42%;
  pointer-events: none;
  z-index: 0;
  opacity: var(--page-orb-opacity);

  /* Glassy sphere — highlights, depth, texture */
  background:
    linear-gradient(136deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 44%, rgba(28,32,40,0.12) 100%),
    radial-gradient(circle at 26% 20%, rgba(255,255,255,0.82), rgba(255,255,255,0.10) 36%, rgba(255,255,255,0) 58%),
    radial-gradient(circle at 72% 66%, rgba(80,86,98,0.62), rgba(80,86,98,0) 64%),
    radial-gradient(circle at 36% 80%, rgba(160,165,174,0.58), rgba(160,165,174,0) 68%),
    conic-gradient(
      from 166deg at 54% 42%,
      rgba(218,224,234,0.30) 0deg,
      rgba(170,174,182,0.22) 90deg,
      rgba(102,108,120,0.22) 210deg,
      rgba(208,212,220,0.28) 360deg
    ),
    linear-gradient(136deg, rgba(255,255,255,0.30), rgba(172,178,188,0.28));

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.72),
    inset 0 -24px 48px -20px rgba(52,64,88,0.44),
    inset 24px -20px 60px -44px rgba(48,60,84,0.28),
    0 40px 80px -40px rgba(24,34,52,0.48);

  filter: blur(1.2px) saturate(118%) contrast(110%) hue-rotate(var(--page-orb-hue, 0deg));
  will-change: transform, border-radius;
  transition: transform 140ms cubic-bezier(0.22,0.61,0.36,1);
  animation: pageOrbDrift 14s cubic-bezier(0.42,0.04,0.58,0.96) infinite alternate;
}

/* Ensure page content sits above the orb */
body > header,
body > section,
body > footer,
body > main { position: relative; z-index: 1; }

@keyframes pageOrbDrift {
  0%   { border-radius: 58% 42% 45% 55% / 58% 48% 52% 42%; }
  25%  { border-radius: 46% 54% 52% 48% / 44% 62% 38% 56%; }
  50%  { border-radius: 40% 60% 57% 43% / 52% 58% 42% 48%; }
  75%  { border-radius: 64% 36% 48% 52% / 54% 40% 60% 46%; }
  100% { border-radius: 52% 48% 42% 58% / 62% 38% 56% 44%; }
}

/* Tone down on dark sections so orb doesn't bleed through */
.work-stage  { position: relative; z-index: 1; }
.cta-band    { position: relative; z-index: 1; }
.site-footer { position: relative; z-index: 1; }

/* ============================================================
   THEME TOGGLE & LOOK TOGGLE — injected by script.js
   ============================================================ */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  font-size: 0.875rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.46;
  transition: opacity 0.2s;
}
.theme-toggle:hover { opacity: 1; }

.look-toggle {
  display: flex;
  gap: 5px;
}
.look-toggle__btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--muted);
  opacity: 0.56;
  transition: opacity 0.2s, border-color 0.2s;
}
.look-toggle__btn:hover,
.look-toggle__btn.is-active { opacity: 1; border-color: var(--ink); color: var(--ink); }

/* ============================================================
   WARM PALETTE — [data-palette="warm"] set on <html> by script.js
   Parchment/cream tones inspired by simonsarris.com
   ============================================================ */
[data-palette="warm"] {
  --bg:       #F0EAE0;
  --dark:     #1A1610;
  --ink:      #2B2520;
  --muted:    #6F6558;
  --line:     rgba(80, 60, 35, 0.10);
  --line-dk:  rgba(255, 240, 210, 0.08);
}

/* Scrolled header — warm tinted glass */
[data-palette="warm"] .site-header.is-scrolled {
  background: rgba(240, 234, 224, 0.92);
}

/* Buttons */
[data-palette="warm"] .btn-primary { background: var(--ink); }
[data-palette="warm"] .btn-primary:hover { background: #3D352E; }
[data-palette="warm"] .btn-ghost { border-color: rgba(80, 60, 35, 0.22); }
[data-palette="warm"] .btn-ghost:hover { border-color: rgba(80, 60, 35, 0.48); }

/* Light-label on dark sections — warm tint */
[data-palette="warm"] .label--light { color: rgba(255, 240, 218, 0.52); }

/* Work stage — warm dark instead of cool dark */
[data-palette="warm"] .work-count { color: rgba(255, 240, 218, 0.46); }

/* Orb — warm amber/sienna tones */
[data-palette="warm"] body::before {
  background:
    linear-gradient(138deg, rgba(200, 165, 110, 0.14) 8%, rgba(180, 140, 90, 0) 44%, rgba(90, 60, 30, 0.18) 100%),
    radial-gradient(circle at 28% 20%, rgba(245, 228, 200, 0.82), rgba(230, 205, 170, 0.24) 24%, rgba(220, 190, 150, 0) 52%),
    radial-gradient(62% 66% at 108% 18%, rgba(160, 120, 80, 0.56), rgba(140, 100, 65, 0)),
    radial-gradient(48% 52% at 18% 14%, rgba(210, 185, 150, 0.38), rgba(195, 168, 130, 0)),
    radial-gradient(42% 48% at 74% 84%, rgba(140, 105, 68, 0.32), rgba(120, 90, 55, 0));

  box-shadow:
    inset 0 1px 1px rgba(255, 240, 210, 0.6),
    inset -42px -34px 92px -44px rgba(100, 70, 40, 0.42),
    0 78px 148px -42px rgba(60, 40, 20, 0.54);
}

/* ============================================================
   DARK MODE — [data-theme="dark"] set on <html> by script.js
   ============================================================ */
[data-theme="dark"] {
  --bg:       #111318;
  --dark:     #1a1e28;  /* slightly lighter than bg — elevated dark sections */
  --ink:      #E3E1DA;
  --muted:    rgba(200,198,190,0.68);
  --line:     rgba(255,255,255,0.10);
  --line-dk:  rgba(255,255,255,0.07);
}

/* Scrolled header gets dark glass */
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(17,19,24,0.92);
}

/* Image placeholder backgrounds — flip dark-on-light to light-on-dark */
[data-theme="dark"] .add-img,
[data-theme="dark"] .browse-img,
[data-theme="dark"] .about-portrait,
[data-theme="dark"] .cs-img,
[data-theme="dark"] .cs-fig-frame,
[data-theme="dark"] .proj-img { background: rgba(255,255,255,0.05); }

/* Ghost button — dark border on dark bg is invisible */
[data-theme="dark"] .btn-ghost {
  border-color: rgba(255,255,255,0.18);
}
[data-theme="dark"] .btn-ghost:hover {
  border-color: rgba(255,255,255,0.38);
}

/* Primary button — --ink becomes warm white in dark mode, need dark text */
[data-theme="dark"] .btn-primary { color: #111318; }
[data-theme="dark"] .btn-primary:hover { background: #c8c5bd; }

/* Orb — lower opacity, cool blue tint against dark bg */
[data-theme="dark"] body { --page-orb-opacity: 0.22; }

[data-theme="dark"] body::before {
  background:
    linear-gradient(136deg, rgba(80,110,200,0.12) 0%, rgba(60,90,180,0) 44%, rgba(8,12,24,0.14) 100%),
    radial-gradient(circle at 26% 20%, rgba(120,150,240,0.38), rgba(80,120,220,0.04) 36%, rgba(60,100,200,0) 58%),
    radial-gradient(circle at 72% 66%, rgba(40,52,110,0.60), rgba(30,40,80,0) 64%),
    radial-gradient(circle at 36% 80%, rgba(60,80,150,0.46), rgba(40,60,120,0) 68%),
    conic-gradient(
      from 166deg at 54% 42%,
      rgba(80,110,200,0.18) 0deg,
      rgba(60,80,160,0.12) 90deg,
      rgba(30,40,90,0.14) 210deg,
      rgba(70,100,190,0.16) 360deg
    ),
    linear-gradient(136deg, rgba(80,110,200,0.16), rgba(40,60,130,0.14));

  box-shadow:
    inset 0 1px 0 rgba(120,150,255,0.14),
    inset 0 -24px 48px -20px rgba(8,18,56,0.52),
    inset 24px -20px 60px -44px rgba(16,28,72,0.28),
    0 40px 80px -40px rgba(4,8,24,0.56);
}

/* ============================================================
   WARM + DARK MODE
   ============================================================ */
[data-theme="dark"][data-palette="warm"] {
  --bg:       #16120E;
  --dark:     #1E1914;
  --ink:      #E8E0D4;
  --muted:    rgba(200, 186, 166, 0.68);
  --line:     rgba(220, 195, 160, 0.10);
  --line-dk:  rgba(220, 195, 160, 0.07);
}

[data-theme="dark"][data-palette="warm"] .site-header.is-scrolled {
  background: rgba(22, 18, 14, 0.92);
}

[data-theme="dark"][data-palette="warm"] .btn-primary { color: #16120E; }
[data-theme="dark"][data-palette="warm"] .btn-primary:hover { background: #C8BBAA; }

[data-theme="dark"][data-palette="warm"] .btn-ghost {
  border-color: rgba(220, 195, 160, 0.18);
}
[data-theme="dark"][data-palette="warm"] .btn-ghost:hover {
  border-color: rgba(220, 195, 160, 0.38);
}

/* Orb — warm amber glow against warm dark bg */
[data-theme="dark"][data-palette="warm"] body::before {
  background:
    linear-gradient(136deg, rgba(180, 130, 70, 0.12) 0%, rgba(150, 110, 60, 0) 44%, rgba(24, 16, 8, 0.14) 100%),
    radial-gradient(circle at 26% 20%, rgba(200, 160, 100, 0.34), rgba(170, 130, 80, 0.04) 36%, rgba(140, 100, 60, 0) 58%),
    radial-gradient(circle at 72% 66%, rgba(100, 70, 40, 0.54), rgba(70, 50, 30, 0) 64%),
    radial-gradient(circle at 36% 80%, rgba(140, 100, 60, 0.40), rgba(110, 80, 50, 0) 68%),
    conic-gradient(
      from 166deg at 54% 42%,
      rgba(180, 130, 70, 0.16) 0deg,
      rgba(150, 110, 60, 0.10) 90deg,
      rgba(80, 55, 30, 0.12) 210deg,
      rgba(170, 120, 65, 0.14) 360deg
    ),
    linear-gradient(136deg, rgba(180, 130, 70, 0.14), rgba(110, 75, 40, 0.12));

  box-shadow:
    inset 0 1px 0 rgba(220, 180, 120, 0.12),
    inset 0 -24px 48px -20px rgba(40, 24, 10, 0.52),
    inset 24px -20px 60px -44px rgba(60, 36, 16, 0.28),
    0 40px 80px -40px rgba(20, 12, 4, 0.56);
}

/* ============================================================
   WRITING / THOUGHTS PAGE
   ============================================================ */

.writing-hero {
  padding-top: 152px;
  padding-bottom: 72px;
}

.writing-hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 7.5vw, 108px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 18px 0 24px;
}

.writing-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.64;
}

/* Main container */
.writing-main { padding: 72px 0 96px; }

.writing-inner {
  max-width: 720px;
}

/* Mobile */
@media (max-width: 768px) {
  .writing-hero       { padding-top: 120px; padding-bottom: 48px; }
  .writing-divider    { margin: 36px 0 0; }
}
