:root {
  --paper: #fcfcfd;
  --ink: #2d242b;
  --muted: #635761;
  --accent: #75283f;
  --oxblood: #481e2d;
  --rule: #dcd4d9;
  --art-paper: #f0eff2;
  --display: Georgia, 'Times New Roman', serif;
  --gutter: clamp(1.15rem, 5vw, 5rem);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .26em; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; width: 100%; height: auto; }
button:focus-visible, a:focus-visible { outline: 2px solid #337084; outline-offset: 4px; }
.top, .hero, .work, .process {
  width: min(100%, 104rem);
  margin-inline: auto;
}
.top, .work, .process, .about, footer { padding-inline: var(--gutter); }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 4.25rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.brand-mark { width: 2.85rem; }
.top .wordmark { gap: clamp(.5rem, 1.2vw, .9rem); }
.brand-header-art { width: clamp(2.3rem, 6vw, 3rem); flex: none; }
.top nav { display: flex; gap: clamp(.9rem, 3.4vw, 3rem); }
.top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .86rem;
  font-weight: 700;
  text-decoration: none;
}
.top nav a:hover { text-decoration: underline; }
h1, h2, h3, .card strong {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
}
h1, h2 { letter-spacing: -.075em; line-height: .99; }
h2 { font-size: clamp(3rem, 6.4vw, 6.8rem); }
.label {
  font-size: .82rem;
  line-height: 1.4;
  letter-spacing: .13em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.hero { padding-inline: var(--gutter); }
.hero-copy {
  text-align: center;
  padding: clamp(2.25rem, 5.5vw, 5.8rem) .5rem clamp(1.7rem, 4vw, 4.2rem);
  border-top: 1px solid var(--rule);
}
.hero-copy .label { margin: 0 0 1.05rem; }
h1 { font-size: clamp(3.5rem, 9.4vw, 10.4rem); }
.hero h1 em { color: var(--oxblood); }
.hero-spread { margin: 0; }
.hero-images {
  display: grid;
  grid-template-columns: .84fr 1fr;
  gap: 2px;
  height: clamp(24rem, 40vw, 41rem);
  background: var(--paper);
}
.hero-panel { min-width: 0; min-height: 0; overflow: hidden; }
.hero-images img { height: 100%; min-height: 0; object-fit: cover; }
.hero-detail { object-position: center 36%; }
.hero-look { object-position: center 9%; }
.hero-spread figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1.5rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: .9rem;
}
.hero-spread a { color: var(--accent); font-weight: 700; }
.work, .process { padding-block: clamp(3.5rem, 7.5vw, 7.5rem); }
.work-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.filters { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.filters button {
  min-height: 44px;
  padding: .5rem 0;
  color: var(--muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-size: .9rem;
}
.filters button[aria-pressed=true], .filters button:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}
.work-intro {
  max-width: 58ch;
  margin: 1.25rem 0 clamp(1.5rem, 3vw, 2.75rem);
  color: var(--muted);
  line-height: 1.65;
}
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.8rem, 4vw, 4rem) clamp(.9rem, 2.1vw, 2.3rem);
}
.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.card-image {
  display: block;
  overflow: hidden;
  flex: none;
  width: 100%;
  aspect-ratio: 5 / 4;
  background: var(--art-paper);
}
.card img { height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover img, .card:focus-visible img { transform: scale(1.035); }
.card[data-cover="49"] img { object-position: center 10%; }
.card.drawing img, .card[data-cover="33"] img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
.card.drawing img { padding: .85rem; }
.card-copy {
  display: grid;
  width: 100%;
  gap: .4rem;
  padding: .9rem 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}
.card strong { font-size: clamp(1.55rem, 3vw, 2.8rem); line-height: 1.02; letter-spacing: -.05em; }
.card .view { font-size: .9rem; color: var(--muted); }
.card:hover .view, .card:focus-visible .view { text-decoration: underline; text-underline-offset: .28em; }
.card[data-featured=true] {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-column: 1 / -1;
  background: #f2edf0;
}
.card[data-featured=true] .card-image { aspect-ratio: 1.4; }
.card[data-featured=true] img { object-position: center 15%; }
.card[data-featured=true] .card-copy {
  align-content: center;
  gap: .95rem;
  border: 0;
  padding: clamp(1.5rem, 4vw, 4.8rem);
}
.card[data-featured=true] strong { font-size: clamp(2.7rem, 5.2vw, 6rem); }
.project-teaser { max-width: 34ch; line-height: 1.6; color: var(--muted); }
.card[data-featured=true] .view { font-weight: 700; color: var(--accent); }
.process { border-top: 1px solid var(--rule); }
.process-grid, .project-story {
  display: grid;
  gap: 1.5rem clamp(1.5rem, 4vw, 4rem);
}
.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(1.7rem, 4vw, 3.5rem);
}
.process-grid article {
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}
.process-grid h3, .project-story h3 { font-size: 1.65rem; line-height: 1.15; letter-spacing: -.035em; }
.process-grid p, .project-story p {
  max-width: 58ch;
  margin: .55rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.about, footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(3.5rem, 7.5vw, 7.5rem);
}
.about {
  grid-template-columns: 1fr 1fr minmax(8rem, .55fr);
  background: #f0ebef;
}
.about p:not(.label) { line-height: 1.7; max-width: 54ch; }
.brand-illustration { max-width: 15rem; justify-self: end; }
footer { background: var(--oxblood); color: #fcf5f8; }
footer .label { color: #f3d6d9; }
.pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .65rem 1rem;
  border: 1px solid currentColor;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}
.pill:hover { color: var(--oxblood); background: #fcf5f8; }
dialog {
  width: min(78rem, calc(100% - 2rem));
  max-height: 93dvh;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 .9rem 4rem #24141e40;
  overscroll-behavior: contain;
}
dialog::backdrop { background: #281421a8; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 5%;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.close, .project-actions button {
  min-height: 44px;
  padding: .55rem .8rem;
  border: 1px solid var(--rule);
  background: transparent;
  font-size: .9rem;
}
.close:hover, .project-actions button:hover { border-color: var(--accent); }
.dialog-copy { padding: clamp(1.5rem, 4vw, 3.5rem) 5% 1.2rem; }
.dialog-copy p:not(.label) { max-width: 61ch; line-height: 1.65; }
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .9rem; }
.project-story {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 5% 2.3rem;
  padding: 1.2rem 0;
  border-block: 1px solid var(--rule);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 2rem clamp(1rem, 3vw, 2.6rem);
  padding: 0 5% 2.6rem;
}
.gallery-grid figure { margin: 0; }
.gallery-grid .on-paper { background: var(--art-paper); }
.gallery-grid .on-paper img { mix-blend-mode: multiply; }
.gallery-grid figcaption {
  padding: .75rem 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  color: var(--muted);
}
.caption-title { display: block; font: 1.25rem/1.2 var(--display); color: var(--ink); }
.caption-note { max-width: 46ch; margin: .5rem 0 .1rem; line-height: 1.55; }
@media (max-width: 820px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr 1fr; }
  .brand-illustration { justify-self: start; max-width: 12rem; }
}
@media (max-width: 650px) {
  .hero-copy { padding-inline: 0; }
  h1 { font-size: clamp(3.65rem, 12vw, 5.65rem); }
  .hero-images {
    grid-template-columns: .67fr 1fr;
    height: clamp(15rem, 80vw, 31rem);
  }
  .hero-look { object-position: 60% 10%; }
  .hero-detail { object-position: 46% center; }
  .card[data-featured=true], .process-grid, .project-story, .gallery-grid, .about, footer { grid-template-columns: 1fr; }
  .card[data-featured=true] .card-copy { padding: 1.5rem; }
  footer .pill { justify-self: start; }
}
@media (max-width: 365px) {
  .projects { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  :root {
    --cinematic-ease: cubic-bezier(.22, .68, .24, 1);
  }
  @keyframes title-reveal {
    from { transform: translateY(112%); }
    to { transform: translateY(0); }
  }
  @keyframes panel-reveal {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
  }
  @keyframes camera-settle {
    from { transform: scale(1.105); }
    to { transform: scale(1); }
  }
  @keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero h1 { overflow: hidden; padding-bottom: .15em; margin-bottom: -.15em; }
  .hero h1 > span { display: block; animation: title-reveal .85s var(--cinematic-ease) .06s both; }
  .hero-copy .label, .hero-spread figcaption { animation: rise-in .65s var(--cinematic-ease) both; }
  .hero-spread figcaption { animation-delay: .55s; }
  .hero-panel { animation: panel-reveal .82s var(--cinematic-ease) .14s both; }
  .hero-panel + .hero-panel { animation-delay: .25s; }
  .hero-images img { animation: camera-settle 1.35s var(--cinematic-ease) both; }

  [data-reveal], .projects:not(.projects-enter) .card {
    transition: opacity .55s var(--cinematic-ease), transform .65s var(--cinematic-ease);
    transition-delay: var(--stagger, 0ms);
  }
  .awaiting-reveal:not(:focus-within) {
    opacity: 0;
    transform: translateY(22px);
  }
  .projects-enter .card { animation: rise-in .4s var(--cinematic-ease) var(--stagger) both; }

  dialog {
    opacity: 0;
    transform: translateY(20px) scale(.985);
    transition: opacity .32s ease, transform .38s var(--cinematic-ease);
    transition: opacity .32s ease, transform .38s var(--cinematic-ease),
      overlay .38s allow-discrete, display .38s allow-discrete;
  }
  dialog[open] { opacity: 1; transform: none; }
  dialog::backdrop {
    opacity: 0;
    transition: opacity .32s ease, overlay .38s allow-discrete, display .38s allow-discrete;
  }
  dialog[open]::backdrop { opacity: 1; }
  @starting-style {
    dialog[open] { opacity: 0; transform: translateY(20px) scale(.985); }
    dialog[open]::backdrop { opacity: 0; }
  }
  dialog[open] .dialog-copy { animation: rise-in .5s var(--cinematic-ease) .08s both; }
  dialog[open] .project-story { animation: rise-in .5s var(--cinematic-ease) .14s both; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card img { transition: none; }
  .card:hover img, .card:focus-visible img { transform: none; }
}
