:root {
  --ink: #171717;
  --paper: #ffffff;
  --soft: #f1f0ec;
  --muted: #595956;
  --line: #d8d8d3;
  --accent: #a91d17;
  --page-gutter: clamp(1.25rem, 4vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Archivo", sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
img { display: block; width: 100%; height: auto; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 50; padding: 1rem; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 5.75rem; padding: .85rem var(--page-gutter); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.brand-link { display: block; width: clamp(5.5rem, 8vw, 7.5rem); }
.menu-trigger { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 2.8rem; padding: .65rem 1.15rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer; font-size: .82rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.menu-trigger:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.menu-arrow { width: 0; height: 0; border-left: .55rem solid transparent; border-right: .55rem solid transparent; border-top: .75rem solid currentColor; transition: transform 240ms ease; }
.menu-open .menu-arrow { transform: rotate(180deg); }
.header-contact { justify-self: end; font-size: .85rem; text-decoration: none; }
.header-contact span { margin-left: .75rem; }
.menu-panel { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(255,255,255,.98); opacity: 0; visibility: hidden; transition: opacity 220ms ease; }
.menu-open .menu-panel { opacity: 1; visibility: visible; }
.menu-panel nav { display: grid; justify-items: center; gap: 1.25rem; }
.menu-panel a { text-decoration: none; font-size: clamp(2.4rem, 7vw, 6rem); font-weight: 300; line-height: 1.1; }
.menu-panel a:hover { text-decoration: underline; text-underline-offset: .15em; }
.project { max-width: 112rem; margin: auto; padding: 2rem var(--page-gutter) 4rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .8rem; color: var(--muted); font-size: .75rem; }
.breadcrumbs a { text-underline-offset: .25rem; }
.project-heading { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; padding-block: clamp(3rem, 6vw, 6rem); }
.eyebrow { margin: 0 0 1.3rem; font-size: .73rem; font-weight: 600; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3.25rem, 7.7vw, 8.5rem); font-weight: 300; letter-spacing: -.065em; line-height: .96; }
.heading-dot { color: var(--accent); }
.project-intro { max-width: 27rem; justify-self: end; }
.project-intro p { margin: 0 0 2rem; font-size: clamp(1.15rem, 1.7vw, 1.65rem); line-height: 1.45; }
.text-link { display: inline-flex; align-items: center; gap: 1rem; font-size: .85rem; font-weight: 500; text-decoration: underline; text-underline-offset: .35rem; }
.text-link span { transition: transform 180ms ease; }
.text-link:hover span { transform: translateX(3px); }
.hero-image { margin: 0; }
.hero-image img { aspect-ratio: 2.35; object-fit: cover; object-position: center 55%; background: var(--soft); }
.hero-image figcaption { display: flex; justify-content: space-between; gap: 1rem; padding-top: .85rem; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.project-facts { display: grid; grid-template-columns: 1.2fr 1fr 1fr; margin: clamp(2rem, 4vw, 4rem) 0 0; padding: 2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-facts > div { padding-inline: 2rem; border-left: 1px solid var(--line); }
.project-facts > div:first-child { padding-left: 0; border-left: 0; }
.project-facts dt { margin-bottom: 1rem; color: var(--muted); font-size: .75rem; }
.project-facts dd { margin: 0; font-size: clamp(1.75rem, 3vw, 3rem); font-weight: 300; letter-spacing: -.045em; }
.project-facts dd span { display: block; margin-top: .5rem; font-size: .9rem; font-weight: 400; letter-spacing: 0; }
.project-facts > div:first-child dd span { display: inline; font-size: 1.25rem; }
.project-overview { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 8rem); padding-block: clamp(4rem, 8vw, 8rem); }
.project-overview--divided { border-top: 1px solid var(--line); }
.project-index { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-index a { padding: 1.75rem 1.5rem; border-left: 1px solid var(--line); text-decoration: none; font-size: 1.05rem; line-height: 1.5; }
.project-index a:first-child { padding-left: 0; border-left: 0; }
.project-index a:hover { color: var(--accent); }
.project-index a > span:first-child { display: block; margin-bottom: .75rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.project-index a > span:last-child { margin-left: .5rem; }
h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 4rem); font-weight: 300; letter-spacing: -.05em; line-height: 1.08; }
.project-copy p { margin: 0 0 1.4rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.project-copy .lead-copy { color: var(--ink); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.55; }
.project-copy .text-link { margin-top: .75rem; }
.project-gallery { padding-block: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line); }
.gallery-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3rem; }
.gallery-heading > p { max-width: 28rem; margin: 0; font-size: .95rem; line-height: 1.65; color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: clamp(1rem, 2.5vw, 2.5rem); align-items: start; }
.gallery figure { min-width: 0; margin: 2.5rem 0 0; }
.gallery figure:nth-child(2) { margin-top: 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.gallery figure:nth-child(2) img { aspect-ratio: .88; }
.gallery--visualisations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--visualisations figure { margin: 0; }
.gallery--visualisations img, .gallery--visualisations figure:nth-child(2) img { aspect-ratio: 1.8; }
.gallery--visualisations figure:last-child { grid-column: 1 / -1; }
.gallery--visualisations figure:last-child img { aspect-ratio: 2.35; }
.gallery figcaption { padding-top: 1rem; font-size: .8rem; line-height: 1.5; }
.gallery figcaption span { margin-right: .65rem; color: var(--muted); font-size: .7rem; }
.project-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: end; margin-top: clamp(2rem, 4vw, 4rem); padding: clamp(2rem, 5vw, 5rem); color: var(--paper); background: var(--ink); }
.project-contact .eyebrow { color: #c9c9c4; }
.project-contact > div:last-child { justify-self: end; }
.project-contact p:not(.eyebrow) { margin: 0 0 1.5rem; font-size: .95rem; line-height: 1.5; }
.contact-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 2rem; min-height: 3.25rem; padding: .9rem 1.5rem; border: 1px solid var(--paper); text-decoration: none; font-size: .85rem; transition: background 180ms ease, color 180ms ease; }
.contact-button:hover { background: var(--paper); color: var(--ink); }
.project-navigation { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; padding-top: 3rem; }
.site-footer { display: flex; justify-content: space-between; gap: 3rem; align-items: center; padding: 2.5rem var(--page-gutter); background: var(--soft); font-size: .9rem; }
.site-footer p { margin: 0; }
.footer-legal { display: grid; justify-items: end; gap: .7rem; text-align: right; font-size: .8rem; }
.footer-legal a { text-underline-offset: .3rem; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 5.25rem; }
  .header-contact { display: none; }
  .project-heading { grid-template-columns: 1fr; gap: 2rem; }
  .project-intro { max-width: 35rem; justify-self: start; }
  .project-intro p { margin-bottom: 1.25rem; }
  .hero-image img { aspect-ratio: 1.8; }
  .project-overview { grid-template-columns: 1fr; }
  .gallery-heading { align-items: start; flex-direction: column; gap: 1.5rem; }
  .project-facts > div { padding-inline: 1rem; }
  .project-contact { grid-template-columns: 1fr; }
  .project-contact > div:last-child { justify-self: start; }
}

@media (max-width: 560px) {
  .brand-link { width: 5.25rem; }
  .menu-trigger { gap: .4rem; min-height: 2.35rem; padding: .55rem .7rem; font-size: .65rem; }
  .menu-arrow { border-left-width: .38rem; border-right-width: .38rem; border-top-width: .52rem; }
  .project { padding-top: 1.5rem; }
  h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
  .eyebrow { font-size: .67rem; }
  .hero-image img { aspect-ratio: 1.25; }
  .hero-image figcaption { flex-direction: column; gap: .25rem; }
  .project-facts { grid-template-columns: 1fr; padding-block: 0; }
  .project-index { grid-template-columns: 1fr; }
  .project-index a, .project-index a:first-child { padding: 1.5rem 0; border-left: 0; }
  .project-index a + a { border-top: 1px solid var(--line); }
  .project-facts > div, .project-facts > div:first-child { padding: 1.5rem 0; border-left: 0; }
  .project-facts > div + div { border-top: 1px solid var(--line); }
  .project-facts dt { margin-bottom: .65rem; }
  .gallery { grid-template-columns: 1fr; gap: 2rem; }
  .gallery figure { margin: 0; }
  .gallery figure:nth-child(2) img { aspect-ratio: 1; }
  .gallery--visualisations img, .gallery--visualisations figure:nth-child(2) img, .gallery--visualisations figure:last-child img { aspect-ratio: 1.8; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 2rem; }
  .footer-legal { justify-items: start; text-align: left; }
}

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