:root {
  --paper: #f5f4ef;
  --ink: #11110f;
  --line: rgba(17, 17, 15, 0.24);
  --signal: #e83b24;
  --pad: 40px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 15px var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
}
.wordmark { font-weight: 700; }
.primary-nav { display: flex; gap: 28px; }
.primary-nav a, .footer-meta a { position: relative; }
.primary-nav a::after, .footer-meta a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -3px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}
.primary-nav a:hover::after, .footer-meta a:hover::after { transform: scaleX(1); transform-origin: left; }
.edition { justify-self: end; font-size: 11px; }

.hero {
  min-height: 100svh;
  padding: 72px var(--pad) 24px;
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--paper);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-portrait { position: absolute; inset: 0; margin: 0; background: #29434a; }
.hero-portrait img { object-position: center 42%; }
.hero-kicker { position: relative; z-index: 1; align-self: start; font-size: 11px; padding-top: 12px; text-shadow: 0 1px 18px rgba(0,0,0,.42); }
.hero h1 {
  position: relative;
  z-index: 1;
  align-self: end;
  margin: 0;
  max-width: 7ch;
  font-size: clamp(56px, 10vw, 158px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0;
  text-shadow: 0 1px 24px rgba(0,0,0,.28);
}
.hero-intro { position: relative; z-index: 1; margin: 0; align-self: end; font-size: clamp(18px, 2vw, 30px); text-shadow: 0 1px 18px rgba(0,0,0,.42); }
.scroll-cue { position: relative; z-index: 1; justify-self: end; align-self: end; display: flex; gap: 12px; font-size: 11px; text-shadow: 0 1px 18px rgba(0,0,0,.42); }
.scroll-cue span { font-size: 20px; line-height: 0.5; }

.work { padding: 90px var(--pad) 130px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0 0 10px; font-size: 13px; }
.section-heading p { margin: 0; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 18px 0 72px; }
.filter { border: 0; padding: 0; background: none; cursor: pointer; opacity: 0.42; }
.filter sup { font-size: 9px; vertical-align: super; }
.filter:hover, .filter.is-active { opacity: 1; }
.project-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 96px 24px; align-items: start; }
.project { grid-column: span 6; transition: opacity 200ms ease; }
.project.is-hidden { display: none; }
.profile-card { grid-column: 1 / -1; display: block; }
.profile-card.is-hidden { display: none; }
.profile-lead { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 64px; align-items: end; }
.profile-lead figure { aspect-ratio: 4 / 5; margin: 0; }
.profile-card-copy { padding-bottom: 2px; }
.profile-card-copy > p:first-child { margin: 0 0 clamp(50px, 9vw, 140px); font-size: 10px; }
.profile-card-copy h3 { max-width: none; margin: 0 0 30px; font-size: 40px; line-height: 1; white-space: nowrap; }
.profile-card-copy > p:not(:first-child) { max-width: 44ch; margin: 0 0 18px; font-size: 16px; line-height: 1.55; }
.profile-card-copy .profile-roles { max-width: none; margin-bottom: 54px; font-size: 17px; line-height: 1.35; white-space: nowrap; }
.profile-story { width: min(880px, 74%); margin: 130px 0 150px auto; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.48; }
.profile-story p { margin: 0 0 1.2em; }
.profile-section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; padding: 18px 0 60px; border-top: 1px solid var(--ink); }
.profile-section-heading p { margin: 0; font-size: 10px; }
.profile-section-heading h3 { margin: 0; font-size: clamp(36px, 5vw, 76px); font-weight: 400; }
.skills { margin-bottom: 150px; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-left: 33.333%; }
.skills-grid section { min-height: 330px; padding: 24px 0 60px; border-top: 1px solid var(--line); }
.skills-grid h4, .timeline h4 { margin: 0 0 24px; font-size: 20px; font-weight: 500; }
.skills-grid ul { margin: 0; padding: 0; list-style: none; font-size: 15px; line-height: 1.7; }
.skills-grid li::before { content: "— "; }
.timeline { margin-left: 33.333%; }
.timeline article { display: grid; grid-template-columns: minmax(125px, .65fr) 2fr; gap: 24px; padding: 25px 0 66px; border-top: 1px solid var(--line); }
.timeline time { font-size: 11px; }
.timeline h4 { margin-bottom: 5px; }
.timeline-role { margin: 0 0 25px; color: var(--signal); font-size: 12px; }
.timeline article div > p:last-child { max-width: 68ch; margin: 0; font-size: 15px; line-height: 1.65; }
.project-wide { grid-column: span 8; }
.project-portrait { grid-column: 9 / span 4; margin-top: 18vw; }
.project-square { grid-column: span 5; }
.project-landscape { grid-column: 7 / span 6; }
.project-tall { grid-column: span 4; }
.project-cmf-row { grid-column: 1 / -1; margin: 0; }
.project-content-row { grid-column: 1 / -1; margin: 0; }
.project-offset { margin-top: 10vw; }
.photo-pdf { grid-column: 1 / -1; }
.photo-pdf-pages { display: grid; gap: clamp(18px, 2.4vw, 36px); }
.photo-pdf-pages img { width: 100%; height: auto; aspect-ratio: 544.32 / 306; object-fit: contain; background: #fff; }
.project-open { display: block; width: 100%; border: 0; padding: 0; background: transparent; text-align: left; cursor: pointer; }
.project figure { margin: 0 0 11px; overflow: hidden; background: #ddd; }
.project-wide figure { aspect-ratio: 16 / 10; }
.project-portrait figure, .project-tall figure { aspect-ratio: 3 / 4; }
.project-square figure { aspect-ratio: 1; }
.project-landscape figure { aspect-ratio: 16 / 9; }
.project-cmf-row figure { aspect-ratio: 16 / 9; background: #efeee9; }
.project-cmf-row img { object-fit: contain; }
.project-content-row figure { aspect-ratio: 16 / 9; background: #080808; }
.project-content-row img { object-fit: contain; }
.project .project-document { aspect-ratio: 16 / 10; background: #eeede8; }
.project .project-document img { object-fit: contain; }
.project img { transition: transform 500ms cubic-bezier(.2,.75,.3,1); }
.project-open:hover img { transform: scale(1.025); }
.project-meta { display: flex; justify-content: space-between; font-size: 10px; }
.project h3 { margin: 5px 0 0; font-size: clamp(19px, 2.1vw, 34px); font-weight: 400; }

.about { border-top: 1px solid var(--line); padding: 24px var(--pad) 140px; }
.section-label { margin: 0 0 100px; font-size: 11px; }
.about-content { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.7fr); gap: 8vw; }
.about h2 { margin: 0; font-size: clamp(42px, 6.8vw, 108px); line-height: 0.91; font-weight: 500; }
.about-copy { align-self: end; font-size: 16px; line-height: 1.55; }
.about-copy > p { margin: 0 0 54px; }
dl { margin: 0; }
.about-copy dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
dt { font-size: 10px; margin-bottom: 10px; }
dd { margin: 0; }

footer { min-height: 92vh; padding: 70px var(--pad) 24px; background: var(--ink); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; }
footer > p { margin: 0; font-size: clamp(54px, 11vw, 180px); line-height: 0.78; font-weight: 700; }
footer em { color: var(--signal); font-style: normal; }
.footer-statement { max-width: 32ch; margin: 80px 0 80px auto; font-size: clamp(20px, 2.3vw, 34px); line-height: 1.35; font-weight: 400; }
.footer-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid rgba(245,244,239,.32); padding-top: 15px; font-size: 11px; }
.footer-meta > div { display: flex; gap: 22px; justify-self: center; }
.footer-meta > a:last-child { justify-self: end; }

.project-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; border: 0; padding: 0; overflow-y: auto; background: var(--paper); color: var(--ink); }
.project-dialog::backdrop { background: var(--ink); }
.dialog-close { position: fixed; z-index: 3; top: 18px; right: var(--pad); width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-layout { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(330px, .8fr); }
.dialog-layout figure { min-height: 100vh; margin: 0; background: #ddd; }
.project-dialog.has-case-study .dialog-layout figure img { object-fit: contain; background: #e5e4df; }
.project-dialog.is-photo-study .dialog-layout figure img { object-fit: cover; background: #e5e4df; }
.dialog-info { position: sticky; top: 0; align-self: start; min-height: 100vh; padding: 80px var(--pad) 36px; display: flex; flex-direction: column; }
.dialog-info > p:first-child { margin: 0 0 20vh; font-size: 11px; }
.dialog-info h2 { margin: 0 0 30px; font-size: clamp(40px, 5vw, 80px); line-height: .9; font-weight: 500; }
.dialog-info > p:not(:first-child) { max-width: 40ch; font-size: 16px; line-height: 1.55; }
.dialog-info dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: auto; padding-top: 50px; border-top: 1px solid var(--line); }
.dialog-info dd { font-size: 12px; }
.case-study[hidden] { display: none; }
.case-video[hidden] { display: none; }
.case-video { padding: 28px var(--pad) 110px; background: var(--ink); color: var(--paper); }
.case-video #dialog-videos { display: grid; gap: 60px; }
.case-video article { margin: 0; }
.case-video video { display: block; width: 100%; max-height: 90svh; background: #000; object-fit: contain; }
.case-video p { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid rgba(245,244,239,.35); font-size: 11px; }
.case-narrative { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 120px var(--pad) 150px; border-top: 1px solid var(--ink); }
.case-narrative article { padding-top: 14px; border-top: 1px solid var(--line); }
.case-narrative article > p:first-child, .case-heading > p { margin: 0 0 68px; font-size: 10px; }
.case-narrative h3 { margin: 0 0 28px; font-size: 26px; font-weight: 500; }
.case-narrative article > p:last-child { margin: 0; font-size: 15px; line-height: 1.7; }
.case-pages { padding: 28px var(--pad) 150px; background: #dfded8; }
.case-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: start; padding-bottom: 80px; }
.case-heading > p { margin-bottom: 0; }
.case-heading h3 { margin: 0; font-size: 42px; font-weight: 400; }
.case-gallery { width: min(1180px, 100%); margin: 0 auto; }
.case-gallery figure { margin: 0 0 90px; }
.case-gallery img { height: auto; object-fit: contain; background: #f5f4ef; }
.case-gallery figcaption { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 12px 0 0; border-top: 1px solid rgba(17,17,15,.42); font-size: 11px; line-height: 1.5; }
.case-gallery figcaption span:first-child { color: var(--signal); }
.project-dialog.is-photo-study .case-pages { background: var(--paper); }
.project-dialog.is-photo-study .case-gallery { width: min(1440px, 100%); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(56px, 8vw, 140px) 24px; align-items: start; }
.project-dialog.is-photo-study .case-gallery figure { margin: 0; }
.project-dialog.is-photo-study .case-gallery img { width: 100%; height: auto; background: transparent; }
.project-dialog.is-photo-study .gallery-full { grid-column: 1 / -1; }
.project-dialog.is-photo-study .gallery-wide-left { grid-column: 1 / span 8; }
.project-dialog.is-photo-study .gallery-wide-right { grid-column: 5 / -1; }
.project-dialog.is-photo-study .gallery-portrait-left { grid-column: 1 / span 4; }
.project-dialog.is-photo-study .gallery-portrait-right { grid-column: 9 / span 4; }
.project-dialog.is-photo-study .gallery-portrait-center { grid-column: 5 / span 4; }
.project-dialog.is-photo-study .gallery-small-center { grid-column: 4 / span 6; }
.project-dialog.is-photo-study .gallery-half-left { grid-column: 1 / span 6; }
.project-dialog.is-photo-study .gallery-half-right { grid-column: 7 / span 6; }

@media (max-width: 760px) {
  :root { --pad: 20px; }
  .site-header { grid-template-columns: 1fr auto; }
  .edition { display: none; }
  .primary-nav { gap: 14px; }
  .hero { min-height: 92svh; }
  .hero h1 { max-width: 6ch; font-size: clamp(54px, 18vw, 110px); line-height: .82; }
  .hero-portrait img { object-position: 40% center; }
  .hero-intro { grid-column: 1 / -1; font-size: 17px; }
  .scroll-cue { display: none; }
  .work { padding-top: 64px; padding-bottom: 90px; }
  .filters { gap: 12px 20px; padding-bottom: 52px; }
  .project-grid { display: block; }
  .profile-card, .profile-lead { display: block; }
  .profile-card.is-hidden { display: none; }
  .profile-lead figure { margin-bottom: 36px; }
  .profile-card-copy > p:first-child { margin-bottom: 50px; }
  .profile-card-copy h3 { font-size: 14px; line-height: 1.05; white-space: nowrap; }
  .profile-card-copy .profile-roles { margin-bottom: 38px; font-size: 10px; white-space: nowrap; }
  .profile-story { width: 100%; margin: 90px 0 110px; font-size: 20px; }
  .profile-section-heading { display: block; padding-bottom: 42px; }
  .profile-section-heading p { margin-bottom: 28px; }
  .skills { margin-bottom: 100px; }
  .skills-grid, .timeline { display: block; margin-left: 0; }
  .skills-grid section { min-height: 0; padding-bottom: 50px; }
  .timeline article { display: block; }
  .timeline time { display: block; margin-bottom: 18px; }
  .project, .project-wide, .project-portrait, .project-square, .project-landscape, .project-tall, .project-cmf-row, .project-content-row { margin: 0 0 66px; }
  .photo-pdf { margin-bottom: 0; }
  .photo-pdf-pages { gap: 12px; }
  .project-offset { margin-top: 0; }
  .project h3 { font-size: 24px; }
  footer { min-height: 70svh; }
  footer > p { font-size: 16vw; }
  .footer-statement { margin: 70px 0; font-size: 20px; }
  .footer-meta { grid-template-columns: 1fr auto; gap: 24px; }
  .footer-meta > div { justify-self: end; }
  .footer-meta > a:last-child { display: none; }
  .dialog-layout { display: block; }
  .dialog-layout figure { min-height: 0; height: 58vh; }
  .dialog-info { position: static; min-height: 42vh; padding-top: 34px; }
  .dialog-info > p:first-child { margin-bottom: 40px; }
  .dialog-info dl { margin-top: 54px; }
  .case-narrative { display: block; padding-top: 70px; padding-bottom: 90px; }
  .case-narrative article { margin-bottom: 70px; }
  .case-narrative article:last-child { margin-bottom: 0; }
  .case-narrative article > p:first-child { margin-bottom: 38px; }
  .case-heading { display: block; padding-bottom: 48px; }
  .case-heading > p { margin-bottom: 28px; }
  .case-heading h3 { font-size: 30px; }
  .case-pages { padding-bottom: 90px; }
  .case-video { padding-bottom: 70px; }
  .case-gallery figure { margin-bottom: 64px; }
  .project-dialog.is-photo-study .case-gallery { display: block; }
  .project-dialog.is-photo-study .case-gallery figure { margin-bottom: 64px; }
  .case-gallery figcaption { display: block; }
  .case-gallery figcaption span { display: block; }
  .case-gallery figcaption span:first-child { margin-bottom: 6px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  :root { --pad: 28px; }
  .profile-lead { gap: 40px; }
  .profile-card-copy h3 { font-size: 30px; }
  .profile-card-copy .profile-roles { font-size: 14px; }
}

@media (min-width: 761px) and (max-width: 820px) {
  .profile-lead { display: block; }
  .profile-lead figure { width: 54%; margin-bottom: 52px; }
}

@media (min-width: 360px) and (max-width: 760px) {
  .profile-card-copy h3 { font-size: 16px; }
  .profile-card-copy .profile-roles { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
