/* ---------- tokens ---------- */
:root {
  --paper: #F4F1EA;
  --paper-deep: #EDE8DD;
  --ink: #1A1714;
  --ink-soft: #5A544D;
  --ink-faint: #A39B8E;
  --rule: rgba(26, 23, 20, 0.14);
  --accent: #E0563A;             /* lobster shell */
  --accent-soft: #F5C6B8;
  --max: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Geist", ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* hide native cursor on capable pointers */
@media (hover: hover) and (pointer: fine) {
  html, body, a, button, [role=button] { cursor: none; }
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; }
img { display: block; max-width: 100%; }

/* ---------- selection ---------- */
::selection { background: var(--accent); color: var(--paper); }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: var(--mono);  font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; }
.italic { font-style: italic; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- layout ---------- */
.page { min-height: 100vh; padding-top: 84px; }
.section { padding: clamp(64px, 10vw, 140px) var(--gutter); }
.wrap { max-width: var(--max); margin: 0 auto; }
.rule { height: 1px; background: var(--rule); width: 100%; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  mix-blend-mode: difference;
  color: #F4F1EA;
}
.nav .brand { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.nav .brand em { font-style: italic; font-weight: 400; }
.nav-links { display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; }
.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: currentColor;
  transition: right .35s cubic-bezier(.7,0,.2,1);
}
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.nav-link.active { opacity: 1; }
.nav-clock { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; opacity: .7; }

/* ---------- cursor ---------- */
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 16px; height: 16px;
  border-radius: 999px;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
  transition: width .25s cubic-bezier(.7,0,.2,1),
              height .25s cubic-bezier(.7,0,.2,1),
              background .35s ease,
              opacity .25s ease;
  will-change: transform;
}
.cursor-dot.is-link { width: 56px; height: 56px; mix-blend-mode: difference; background: #F4F1EA; }
.cursor-dot.is-text { width: 4px; height: 24px; border-radius: 2px; }
.cursor-dot.on-dark { mix-blend-mode: screen; }
@media (hover: none), (pointer: coarse) { .cursor-dot { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; padding: 120px var(--gutter) 80px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-top .col { display: flex; flex-direction: column; gap: 6px; }
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(56px, 11.5vw, 188px);
  line-height: .95;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: clamp(40px, 8vh, 80px) 0;
}
.hero-tagline .accent { color: var(--accent); font-style: italic; }
.hero-tagline .indent { display: inline-block; padding-left: 1.5em; }
.hero-bot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.hero-bot p { max-width: 36ch; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.hero-scroll { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.hero-scroll .arrow { display: inline-block; transform: rotate(90deg); margin-right: 6px; }

/* ---------- selected work ---------- */
.work-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.work-head h2 { font-family: var(--serif); font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.02em; font-weight: 400; }
.work-head h2 em { font-style: italic; color: var(--accent); }
.work-head .count { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

.proj-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 0.8fr 0.6fr 28px;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .4s ease, padding .4s ease;
  cursor: none;
  position: relative;
}
.proj-row:hover { background: transparent; }
.proj-row .num { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--ink-faint); }
.proj-row .ttl { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 400; transition: transform .5s cubic-bezier(.7,0,.2,1), color .4s ease; transform-origin: left; }
.proj-row .ttl em { font-style: italic; }
.proj-row:hover .ttl { transform: translateX(18px); color: var(--accent); }
.proj-row .cat { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.proj-row .yr  { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); text-align: right; }
.proj-row .arr { font-family: var(--serif); font-size: 24px; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.proj-row:hover .arr { transform: translateX(8px); }

/* hover-preview thumb that follows cursor on the work list */
.proj-preview {
  position: fixed;
  width: 320px; height: 400px;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .3s ease, transform .4s cubic-bezier(.7,0,.2,1);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26,23,20,0.25);
}
.proj-preview.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* selected-work image grid (home) */
.sel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px);
  row-gap: clamp(48px, 6vw, 80px);
}
.sel-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sel-card:nth-child(3n+2) { transform: translateY(clamp(20px, 4vw, 60px)); }
.sel-img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.sel-img > .ph {
  position: absolute; inset: 0;
  transition: transform .9s cubic-bezier(.16,1,.3,1), filter .5s ease;
}
.sel-card:hover .sel-img > .ph { transform: scale(1.04); filter: brightness(.78); }
.sel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 18px 20px;
  color: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.16,1,.3,1);
  z-index: 2;
  pointer-events: none;
}
.sel-card:hover .sel-overlay { opacity: 1; transform: translateY(0); }
.sel-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(244,241,234,0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border: 1px solid rgba(244,241,234,0.3);
  border-radius: 999px;
}
.sel-arr { font-family: var(--serif); font-size: 28px; line-height: 1; }
.sel-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.sel-ttl {
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.012em;
  font-weight: 400;
  transition: color .3s ease;
}
.sel-ttl em { font-style: italic; }
.sel-card:hover .sel-ttl { color: var(--accent); }
.sel-cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .sel-grid { grid-template-columns: 1fr; }
  .sel-card:nth-child(3n+2) { transform: none; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .sel-grid { grid-template-columns: repeat(2, 1fr); }
  .sel-card:nth-child(3n+2) { transform: none; }
  .sel-card:nth-child(2n) { transform: translateY(clamp(20px, 4vw, 60px)); }
}

/* ---------- placeholders ---------- */
.ph {
  position: relative; width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, var(--paper-deep) 0 12px, #E5DFD2 12px 24px);
  display: flex; align-items: flex-end; padding: 16px;
  overflow: hidden;
}
.ph .ph-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper);
  padding: 4px 8px;
  border: 1px solid var(--rule);
}
.ph.tone-1 { background: repeating-linear-gradient(135deg, #E8DFCE 0 12px, #DFD4BD 12px 24px); }
.ph.tone-2 { background: repeating-linear-gradient(135deg, #DCD6C7 0 12px, #CFC8B5 12px 24px); }
.ph.tone-3 { background: repeating-linear-gradient(135deg, #E0CFC0 0 12px, #D2BFAA 12px 24px); }
.ph.tone-4 { background: repeating-linear-gradient(135deg, #E8E0D4 0 12px, #D9CFBF 12px 24px); }
.ph.tone-5 { background: repeating-linear-gradient(135deg, #D8CCB8 0 12px, #C8B89F 12px 24px); }
.ph.tone-6 { background: repeating-linear-gradient(135deg, #EAD7CC 0 12px, #DCC4B5 12px 24px); }
.ph.tone-coral { background: repeating-linear-gradient(135deg, #F1C5B5 0 12px, #E8B19D 12px 24px); }
.ph.tone-sage { background: repeating-linear-gradient(135deg, #CCD3C2 0 12px, #B7C0AB 12px 24px); }
.ph.tone-ink { background: repeating-linear-gradient(135deg, #2A2622 0 12px, #1F1B18 12px 24px); }
.ph.tone-ink .ph-tag { color: #F4F1EA; background: rgba(244,241,234,0.08); border-color: rgba(244,241,234,0.2); }
.ph.has-img { padding: 0; background: var(--paper-deep); }
.ph.has-img > img,
.ph.has-img > video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- color block sections ---------- */
.block-coral { background: var(--accent); color: var(--paper); }
.block-coral .ink-soft, .block-coral .eyebrow { color: rgba(244,241,234,0.7); }
.block-ink   { background: var(--ink); color: var(--paper); }
.block-ink .eyebrow { color: rgba(244,241,234,0.6); }

/* ---------- big CTA ---------- */
.cta-block {
  padding: clamp(80px, 14vw, 200px) var(--gutter);
  text-align: center;
  position: relative;
}
.cta-block .eyebrow { margin-bottom: 32px; display: block; }
.cta-block h2 {
  font-family: var(--serif);
  font-size: clamp(64px, 14vw, 220px);
  line-height: .9;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.cta-block h2 em { font-style: italic; }
.cta-block .underlined {
  display: inline-block; position: relative; padding-bottom: 8px;
}
.cta-block .underlined::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: currentColor; transform-origin: left; transform: scaleX(0);
  transition: transform 1s cubic-bezier(.7,0,.2,1);
}
.cta-block:hover .underlined::after { transform: scaleX(1); }
.cta-block a { display: inline-block; }
.cta-block .email {
  margin-top: 48px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .14em;
}

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--rule);
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.foot .center { text-align: center; }
.foot .right  { text-align: right; }
.foot a:hover { color: var(--accent); }

/* ---------- about ---------- */
.about-hero { padding: 0 !important; }
.about-hero-eyebrow {
  padding: clamp(100px, 12vw, 160px) var(--gutter) clamp(20px, 3vw, 36px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.about-hero-img {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  aspect-ratio: 16/9;
  position: relative;
  background: var(--paper-deep);
  overflow: hidden;
}
.about-hero-img > .ph { position: absolute; inset: 0; }
.about-hero-img > .ph > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-hero-text {
  padding: clamp(60px, 10vw, 120px) var(--gutter) clamp(40px, 6vw, 60px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.about-hero-text h1 { font-family: var(--serif); font-size: clamp(48px, 9vw, 156px); line-height: 0.95; letter-spacing: -0.025em; font-weight: 400; max-width: 14ch; }
.about-hero-text h1 em { font-style: italic; color: var(--accent); }

.lobster blockquote { font-size: clamp(18px, 1.6vw, 22px) !important; line-height: 1.45 !important; }

.lobster {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  padding: clamp(60px, 10vw, 120px) var(--gutter);
}
.lobster .label-col { display: flex; flex-direction: column; gap: 24px; }
.lobster .label-col .num { font-family: var(--serif); font-size: 88px; line-height: 1; font-style: italic; color: var(--accent); }
.lobster blockquote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 400;
  text-wrap: pretty;
}
.lobster blockquote .em { font-style: italic; }
.lobster blockquote .accent { color: var(--accent); font-style: italic; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats .stat { padding: 32px 24px; border-right: 1px solid var(--rule); }
.stats .stat:last-child { border-right: 0; }
.stats .num { font-family: var(--serif); font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -0.02em; font-weight: 400; }
.stats .num em { font-style: italic; color: var(--accent); }
.stats .lbl { margin-top: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); max-width: 22ch; }

.cv {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px clamp(24px, 6vw, 60px);
  padding: clamp(60px, 10vw, 120px) var(--gutter);
}
.cv h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; font-style: italic; color: var(--ink-soft); }
.cv-list { display: flex; flex-direction: column; }
.cv-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  align-items: baseline;
}
.cv-row:last-child { border-bottom: 1px solid var(--rule); }
.cv-row .yr { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-soft); }
.cv-row .role { font-family: var(--serif); font-size: clamp(20px, 2vw, 26px); line-height: 1.15; }
.cv-row .role em { font-style: italic; color: var(--accent); }
.cv-row .org { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); text-align: right; }

.expertise {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.expertise .ex {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
}
.expertise .ex h4 { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; }
.expertise .ex h4 em { font-style: italic; }
.expertise .ex p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-soft); max-width: 30ch; }

/* ---------- work page ---------- */
.work-page-head {
  padding: clamp(80px, 14vw, 180px) var(--gutter) clamp(40px, 6vw, 80px);
}
.work-page-head h1 { font-family: var(--serif); font-size: clamp(56px, 12vw, 220px); line-height: 0.92; letter-spacing: -0.025em; font-weight: 400; }
.work-page-head h1 em { font-style: italic; color: var(--accent); }
.work-page-head .meta { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 40px; flex-wrap: wrap; }
.work-page-head p { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.4; max-width: 32ch; color: var(--ink-soft); }

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 9vw, 140px);
  padding: 0 var(--gutter) clamp(80px, 12vw, 160px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.work-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(20px, 3vw, 40px);
  row-gap: 24px;
  align-items: start;
}
.work-item .work-item-img {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.work-item .work-item-img > .ph { position: absolute; inset: 0; }
.work-item .work-item-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
}
.work-item .cat {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.work-item .ttl {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.work-item .ttl em { font-style: italic; }
.work-item .desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 6px;
}

/* layout variants */
.work-item.left  .work-item-img  { grid-column: 1 / 9; }
.work-item.left  .work-item-meta { grid-column: 9 / 13; }

.work-item.right .work-item-img  { grid-column: 5 / 13; grid-row: 1; }
.work-item.right .work-item-meta { grid-column: 1 / 5;  grid-row: 1; }

.work-item.center .work-item-img  { grid-column: 3 / 11; }
.work-item.center .work-item-meta { grid-column: 3 / 9; }

.work-item.full .work-item-img  { grid-column: 1 / 13; }
.work-item.full .work-item-meta { grid-column: 1 / 8; }

/* ---------- project detail page ---------- */
.proj-crumb {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 100px var(--gutter) 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.proj-crumb a:hover { color: var(--accent); }

.proj-head {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(40px, 6vw, 60px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.proj-meta-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
}
.proj-title {
  font-family: var(--serif);
  font-size: clamp(56px, 12vw, 200px);
  line-height: .92;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.proj-title em { font-style: italic; color: var(--accent); }
.proj-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-top: 28px;
}

.proj-hero-img {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  aspect-ratio: 16/9;
}
.proj-hero-img > .ph { position: absolute; inset: 0 var(--gutter); }

.proj-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(60px, 10vw, 120px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.proj-body-left { display: flex; flex-direction: column; }
.proj-body-left .eyebrow { color: var(--ink-soft); }
.proj-role { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 4px; }
.proj-role li { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.proj-body-text {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  text-wrap: pretty;
  letter-spacing: -0.005em;
}
.proj-body-note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 50ch;
}

/* video */
.proj-video {
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.proj-video-frame {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background: var(--paper-deep);
}
.proj-video-frame > .ph { position: absolute; inset: 0; }
.proj-video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border-radius: 999px;
  background: rgba(244,241,234,0.92);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  z-index: 2;
  pointer-events: none;
}
.proj-video-cap {
  display: block;
  margin-top: 12px;
  color: var(--ink-soft);
}

/* gallery — alternating asymmetric layout */
.proj-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: 0 var(--gutter) clamp(60px, 10vw, 120px);
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.proj-gal-item { display: flex; flex-direction: column; gap: 10px; position: relative; }
.proj-gal-item > .ph { position: relative; aspect-ratio: 4/5; }
.proj-gal-cap { color: var(--ink-soft); }

.proj-gal-item.gi-0 { grid-column: 1 / 8; }
.proj-gal-item.gi-1 { grid-column: 8 / 13; margin-top: clamp(40px, 6vw, 100px); }
.proj-gal-item.gi-2 { grid-column: 3 / 11; }
.proj-gal-item.gi-0 > .ph { aspect-ratio: 16/10; }
.proj-gal-item.gi-2 > .ph { aspect-ratio: 16/10; }

/* vertical-4 layout — 2 images + 2 video placeholders, all 9:16 */
.proj-gallery.gallery-v4 { grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); row-gap: clamp(40px, 5vw, 60px); }
.proj-gallery.gallery-v4 .proj-gal-item { grid-column: span 1; margin-top: 0; }
.proj-gallery.gallery-v4 .proj-gal-item.vi-1 { margin-top: clamp(30px, 5vw, 80px); }
.proj-gallery.gallery-v4 .proj-gal-item.vi-3 { margin-top: clamp(30px, 5vw, 80px); }
.proj-gallery.gallery-v4 .proj-gal-item > .ph { aspect-ratio: 9/16; }

/* stacked full-width gallery */
.proj-gallery.gallery-stack { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 48px); }
.proj-gallery.gallery-stack .proj-gal-item { grid-column: 1 / -1; margin-top: 0; }
.proj-gallery.gallery-stack .proj-gal-item > .ph { aspect-ratio: 16/9; }

/* triptych + video — 3 vertical (4:5) side-by-side then a full-width 16:9 video below */
.proj-gallery.gallery-tv { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); row-gap: clamp(24px, 4vw, 48px); }
.proj-gallery.gallery-tv .proj-gal-item { grid-column: span 1; margin-top: 0; }
.proj-gallery.gallery-tv .proj-gal-item > .ph { aspect-ratio: 4/5; }
.proj-gallery.gallery-tv .proj-gal-item.tv-3 { grid-column: 1 / -1; }
.proj-gallery.gallery-tv .proj-gal-item.tv-3 > .ph { aspect-ratio: 16/9; }

/* charms - project 01: two vertical 4:5 then a full-width 16:9 */
.proj-gallery.gallery-ch .proj-gal-item { margin-top: 0; }
.proj-gallery.gallery-ch .proj-gal-item.ch-0 { grid-column: 1 / 7; }
.proj-gallery.gallery-ch .proj-gal-item.ch-1 { grid-column: 7 / 13; }
.proj-gallery.gallery-ch .proj-gal-item.ch-0 > .ph,
.proj-gallery.gallery-ch .proj-gal-item.ch-1 > .ph { aspect-ratio: 4/5; }
.proj-gallery.gallery-ch .proj-gal-item.ch-2 { grid-column: 1 / -1; }
.proj-gallery.gallery-ch .proj-gal-item.ch-2 > .ph { aspect-ratio: 16/9; }

/* swapfiets - 2 full-width 3:2, 1 vertical 4:5 centered, 1 IG story 9:16 centered */
.proj-gallery.gallery-sf { grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 48px); row-gap: clamp(32px, 5vw, 64px); }
.proj-gallery.gallery-sf .proj-gal-item { margin-top: 0; }
.proj-gallery.gallery-sf .proj-gal-item.sf-0,
.proj-gallery.gallery-sf .proj-gal-item.sf-1 { grid-column: 1 / -1; }
.proj-gallery.gallery-sf .proj-gal-item.sf-0 > .ph,
.proj-gallery.gallery-sf .proj-gal-item.sf-1 > .ph { aspect-ratio: 3975 / 2655; }
.proj-gallery.gallery-sf .proj-gal-item.sf-2 { grid-column: 5 / 9; }
.proj-gallery.gallery-sf .proj-gal-item.sf-2 > .ph { aspect-ratio: 4/5; }
.proj-gallery.gallery-sf .proj-gal-item.sf-3 { grid-column: 5 / 9; }
.proj-gallery.gallery-sf .proj-gal-item.sf-3 > .ph { aspect-ratio: 9/16; }

/* play overlay on video gallery items */
.proj-gal-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(244,241,234,0.85);
  color: var(--ink);
  font-size: 18px;
  padding-left: 4px;
  pointer-events: none;
  z-index: 2;
  transition: transform .35s cubic-bezier(.7,0,.2,1), background .3s ease;
}
.proj-gal-item:hover .proj-gal-play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent); color: var(--paper); }

/* next-project block */
.proj-next {
  padding: clamp(80px, 14vw, 200px) var(--gutter);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.proj-next .eyebrow { display: block; margin-bottom: 24px; }
.proj-next h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 10vw, 160px);
  line-height: .9;
  letter-spacing: -0.03em;
  font-weight: 400;
}
.proj-next h2 em { font-style: italic; color: var(--accent); }
.proj-next-arr { display: inline-block; transition: transform .5s cubic-bezier(.7,0,.2,1); }
.proj-next-link:hover .proj-next-arr { transform: translateX(16px); }
.proj-next-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.proj-next-meta a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .proj-body { grid-template-columns: 1fr; }
  .proj-gallery { grid-template-columns: 1fr; }
  .proj-gal-item.gi-0, .proj-gal-item.gi-1, .proj-gal-item.gi-2 {
    grid-column: 1 / -1; margin-top: 0;
  }
  .proj-gallery.gallery-v4 { grid-template-columns: repeat(2, 1fr); }
  .proj-gallery.gallery-v4 .proj-gal-item.vi-1,
  .proj-gallery.gallery-v4 .proj-gal-item.vi-3 { margin-top: 0; }
  .proj-gallery.gallery-tv { grid-template-columns: 1fr; }
  .proj-gallery.gallery-tv .proj-gal-item.tv-3 { grid-column: 1 / -1; }
  .proj-gallery.gallery-sf { grid-template-columns: 1fr; }
  .proj-gallery.gallery-sf .proj-gal-item.sf-0,
  .proj-gallery.gallery-sf .proj-gal-item.sf-1,
  .proj-gallery.gallery-sf .proj-gal-item.sf-2,
  .proj-gallery.gallery-sf .proj-gal-item.sf-3 { grid-column: 1 / -1; }
  .proj-gallery.gallery-ch .proj-gal-item.ch-0,
  .proj-gallery.gallery-ch .proj-gal-item.ch-1 { grid-column: 1 / -1; }
}

/* ---------- contact ---------- */
.contact {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 0;
}
.contact-hero { padding: clamp(80px, 14vw, 180px) var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 48px; }
.contact-hero .eyebrow { display: block; }
.contact-hero h1 {
  font-family: var(--serif);
  font-size: clamp(56px, 12vw, 200px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.contact-hero h1 em { font-style: italic; color: var(--accent); }
.contact-hero .email-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.1;
  position: relative;
  padding-bottom: 6px;
}
.contact-hero .email-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transition: opacity .3s;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding: 0 var(--gutter) clamp(40px, 6vw, 80px);
}
.contact-grid.two-col { grid-template-columns: 1fr 1fr; max-width: 760px; }
.contact-grid .col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.contact-grid .col a { font-family: var(--serif); font-size: 22px; line-height: 1.3; display: block; padding: 4px 0; transition: color .25s, transform .35s ease; }
.contact-grid .col a em { font-style: italic; }
.contact-grid .col a:hover { color: var(--accent); transform: translateX(6px); }

/* ---------- transitions ---------- */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 200;
  pointer-events: none;
  transform: translateY(100%);
}
.page-transition.in {
  animation: pt-in .7s cubic-bezier(.8,0,.2,1) forwards;
}
.page-transition.out {
  animation: pt-out .7s cubic-bezier(.8,0,.2,1) forwards;
}
@keyframes pt-in {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes pt-out {
  from { transform: translateY(0); }
  to { transform: translateY(-100%); }
}

.page-fade {
  animation: page-fade-in .9s cubic-bezier(.16,1,.3,1) both;
}
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* per-line reveal */
.reveal-line { display: block; overflow: hidden; padding: 0.16em 0 0.16em; margin: -0.12em 0; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-rise 1.1s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes line-rise {
  to { transform: translateY(0); }
}

/* marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; }
.marquee .track { display: flex; gap: 60px; white-space: nowrap; animation: marquee 40s linear infinite; }
.marquee .track span { font-family: var(--serif); font-size: clamp(40px, 6vw, 80px); line-height: 1; }
.marquee .track span em { font-style: italic; color: var(--accent); }
.marquee .track .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .work-head { grid-template-columns: 1fr; }
  .proj-row { grid-template-columns: 32px 1fr 24px; gap: 16px; }
  .proj-row .cat, .proj-row .yr { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(2) { border-right: 0; }
  .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .cv { grid-template-columns: 1fr; }
  .cv-row { grid-template-columns: 60px 1fr; }
  .cv-row .org { grid-column: 2; text-align: left; }
  .expertise { grid-template-columns: 1fr; }
  .lobster { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .work-item, .work-item.left, .work-item.right, .work-item.center, .work-item.full {
    grid-template-columns: 1fr;
  }
  .work-item .work-item-img,
  .work-item .work-item-meta { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .nav-links { gap: 16px; }
  .nav-clock { display: none; }
}
