:root {
  color-scheme: light;
  --paper: #f7f7f7;
  --ink: #141414;
  --muted: #5b5b5b;
  --line: #c9c9c9;
  --accent: #ff5f15;
  --accent-hover: #e6530d;
  --gutter: clamp(1.25rem, 4.7vw, 5rem);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; scrollbar-gutter: stable; }
body { margin: 0; font-size: 1rem; line-height: 1.4; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 1rem; top: -6rem; padding: .75rem 1rem; z-index: 10; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }
.site-header { display: grid; grid-template-columns: 1fr 3fr 1fr; align-items: center; gap: 1.5rem; padding: 1.25rem var(--gutter) 1.5rem; }
.wordmark { font-size: clamp(2rem, 3.2vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -.08em; width: fit-content; }
.wordmark:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 2rem; font-weight: 600; }
.contact-nav { justify-self: end; font-weight: 600; }
.intro, .work-section, .contact-section { margin-inline: var(--gutter); }
.intro { padding: 2.75rem 0 5.5rem; }
.section-label { font-size: .875rem; font-weight: 400; }
.intro h1 { font-size: clamp(2rem, 3.28vw, 3rem); letter-spacing: -.03em; line-height: .95; font-weight: 700; }
.intro a, .contact-links a, .motion-link a, .project-facts a, .back-link, .project-navigation a { color: var(--accent); }
.intro a:hover, .intro a:focus-visible, .contact-links a:hover, .contact-links a:focus-visible, .motion-link a:hover, .motion-link a:focus-visible, .project-facts a:hover, .project-facts a:focus-visible, .back-link:hover, .project-navigation a:hover { color: var(--accent-hover); }
.intro a:hover { text-decoration: none; }
.inspiration-preview { position: fixed; top: 0; left: 0; z-index: 5; width: 100px; pointer-events: none; }
.inspiration-preview img { aspect-ratio: 4 / 3; object-fit: contain; }
.section-heading { border-top: 1px solid var(--line); padding: 1.25rem 0 2.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.section-heading h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; }
.section-heading > span { font-size: .875rem; color: var(--muted); }
/* Native columns preserve the artwork's proportions without a layout script. */
.project-grid { columns: 2; column-gap: 1.5rem; }
.project-card { display: inline-block; width: 100%; margin-bottom: 2.5rem; vertical-align: top; break-inside: avoid; }
.project-link { display: block; }
.project-link:hover { text-decoration: none; }
.project-link:hover .project-title { color: var(--accent); }
.project-card-caption { padding-top: .875rem; }
.project-title { font-size: 1rem; font-weight: 600; }
.project-meta { color: var(--muted); font-size: .875rem; margin-top: .2rem; }
.contact-section { border-top: 1px solid var(--line); padding: 2rem 0 5rem; margin-top: 4rem; }
.contact-section h2 { margin: 3rem 0 2rem; font-size: clamp(2.8rem, 8.5vw, 10rem); letter-spacing: -.065em; line-height: .97; font-weight: 400; }
.contact-links { display: flex; gap: 1rem 2rem; flex-wrap: wrap; align-items: baseline; }
.email-link { font-size: clamp(1.125rem, 2vw, 2rem); }
.contact-pending { color: var(--muted); font-size: .875rem; }
.site-footer { margin: 0 var(--gutter); border-top: 1px solid var(--line); padding: 1.25rem 0 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .875rem; }
.draft-badge { color: var(--muted); }
.project-main { margin-inline: var(--gutter); padding-top: 2rem; }
.back-link { font-size: .875rem; }
.project-intro { padding: 2.5rem 0 clamp(3rem, 5vw, 5rem); }
.project-intro h1, .project-overview { max-width: 28ch; font-size: clamp(2rem, 4.2vw, 4.5rem); font-weight: 700; letter-spacing: -.03em; line-height: .98; }
.project-intro h1 { margin-bottom: .25em; }
.project-details { margin-top: clamp(2rem, 4vw, 3.5rem); }
.project-read-more { display: flex; align-items: center; gap: .75rem; width: fit-content; margin-inline: auto; padding: .8rem 1.5rem; border-radius: 999px; background: #ededed; font-size: 1.125rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; cursor: pointer; list-style: none; }
.project-read-more::-webkit-details-marker { display: none; }
.project-read-more:hover { background: #e3e3e3; }
.project-read-more span { font-size: 1.875rem; font-weight: 400; line-height: 1; }
.project-details[open] .project-read-more span { transform: rotate(45deg); }
.project-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; border-top: 1px solid var(--ink); padding: 1rem 0 2.5rem; }
.project-facts dt { color: var(--muted); font-size: .875rem; }
.project-facts dd { margin: 0; font-size: 1.125rem; font-weight: 600; line-height: 1.2; }
.project-facts ul { list-style: none; margin: 0; padding: 0; }
.project-gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: start; gap: 1.5rem; }
.project-gallery figure { min-width: 0; grid-column: 1 / -1; }
.project-gallery [data-span="half"] { grid-column: span 3; }
.project-gallery [data-span="third"] { grid-column: span 2; }
.project-gallery figcaption { padding-top: .5rem; color: var(--muted); font-size: .875rem; }
.project-story { max-width: 62ch; margin: 2rem auto 0; font-size: clamp(1.125rem, 1.8vw, 1.5rem); line-height: 1.45; }
.project-story .section-label { margin-bottom: 1rem; color: var(--muted); }
.motion-link { margin-top: 1.5rem; }
.project-navigation { margin-top: 4rem; border-top: 1px solid var(--line); padding: 2rem 0 4rem; display: flex; justify-content: space-between; gap: 2rem; }
.project-navigation a { max-width: 45%; font-size: clamp(1.125rem, 2vw, 1.75rem); font-weight: 600; line-height: 1.15; }
.project-navigation a:last-child { text-align: right; }
.project-navigation span { display: block; margin-bottom: .5rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.project-modal-open, .project-modal-open body { overflow: hidden; }
.project-dialog { --dialog-inset: clamp(1rem, 4vh, 3rem); position: fixed; inset: var(--dialog-inset) 0 auto; width: min(60rem, calc(100% - 3rem)); max-width: none; max-height: none; margin: 0 auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.project-dialog[open] { display: grid; grid-template-columns: minmax(0, 1fr) 4rem; align-items: start; gap: 1rem; }
.project-dialog::backdrop { background: rgb(20 20 20 / 15%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.project-dialog-card { max-height: calc(100dvh - 2 * var(--dialog-inset)); overflow-y: auto; overscroll-behavior: contain; padding: clamp(1.5rem, 4.5vw, 3.5rem); border-radius: 2.5rem; background: white; scrollbar-width: thin; }
.project-dialog-label { margin-bottom: 1rem; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -.03em; }
.project-dialog h2 { font-size: clamp(1.5rem, 2.7vw, 2.125rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.project-dialog-image { margin: 2.5rem 0; }
.project-dialog-image img { border-radius: .2rem; }
.project-dialog .project-story { margin: 0; font-size: clamp(1.125rem, 1.8vw, 1.375rem); }
.project-dialog .project-story .section-label { display: none; }
.project-dialog-close { display: grid; place-items: center; width: 4rem; height: 4rem; padding: 0; border: 0; border-radius: 50%; background: #f1f1f1; color: var(--ink); cursor: pointer; }
.project-dialog-close:hover { background: #e3e3e3; }
@media (prefers-reduced-motion: no-preference) {
  .project-dialog[open] { animation: project-popup .18s ease-out; }
  @keyframes project-popup { from { opacity: 0; transform: translateY(.5rem); } to { opacity: 1; transform: translateY(0); } }
}
@media (min-width: 1700px) {
  main, .site-header, .site-footer { max-width: 120rem; margin-inline: auto; }
  .site-footer, .project-main { padding-inline: var(--gutter); }
}
@media (max-width: 760px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 1rem; padding-top: 1.5rem; }
  .site-header nav { justify-content: center; gap: 1.25rem; font-size: .875rem; }
  .contact-nav { font-size: .875rem; }
  .intro { padding: 1.75rem 0 3rem; }
  .intro h1 { font-size: clamp(1.625rem, 4.8vw, 2rem); }
  .project-grid { columns: 1; }
  .project-card { margin-bottom: 2rem; }
  .contact-section { padding-bottom: 3rem; margin-top: 2rem; }
  .contact-section h2 { margin-top: 2rem; }
  .project-main { padding-top: 1rem; }
  .project-intro { padding: 2rem 0 3rem; }
  .project-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .project-facts > div:last-child { grid-column: 1 / -1; }
  .project-facts dd { font-size: 1rem; }
  .project-gallery { gap: 1rem; }
  .project-gallery [data-span] { grid-column: 1 / -1; }
  .project-dialog { width: calc(100% - 2rem); }
  .project-dialog[open] { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .project-dialog-card { padding-top: 4.5rem; border-radius: 1.5rem; }
  .project-dialog-image { margin: 1.75rem 0; }
  .project-dialog-close { position: absolute; top: .75rem; right: .75rem; width: 2.75rem; height: 2.75rem; }
  .project-dialog-close svg { width: 24px; height: 24px; }
}
@media (max-width: 360px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; }
  .contact-nav { grid-column: 2; grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
