:root {
  --ink: #272727;
  --muted: #747474;
  --paper: #f3f1ed;
  --panel: #ffffff;
  --accent: #d9482f;
  --line: rgba(39, 39, 39, 0.16);
  --header-height: 92px;
  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; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

img { display: block; max-width: 100%; }

button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 18px clamp(22px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 241, 237, 0.95);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.brand strong { font-size: 1.03rem; }
.brand strong:nth-child(2) { color: var(--accent); }
.brand span { font-size: 0.94rem; font-weight: 300; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 9px 11px;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.69rem;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  outline: none;
}

.page-shell {
  width: min(1320px, calc(100% - clamp(28px, 8vw, 120px)));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - var(--header-height));
  overflow: hidden;
  place-items: end start;
  background: #303030 center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(80deg, rgba(0,0,0,0.62), rgba(0,0,0,0.06) 68%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 88%);
  padding: clamp(42px, 8vw, 100px);
  color: white;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-heading h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5.8rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  line-height: 1.65;
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(50px, 8vw, 112px) 0 clamp(34px, 5vw, 72px);
}

.page-heading p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 38px);
  padding-bottom: 90px;
}

.project-card {
  position: relative;
  min-height: clamp(290px, 42vw, 560px);
  overflow: hidden;
  background: #ddd;
  color: white;
  text-decoration: none;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(.2,.7,.2,1);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.58), transparent 52%);
  content: "";
}

.project-card span {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 24px;
  left: 26px;
  font-size: clamp(1.3rem, 2.6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.project-card:hover img,
.project-card:focus-visible img { transform: scale(1.035); }
.project-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.project-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(46px, 7vw, 92px) 0 28px;
}

.project-intro h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.9rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.back-link {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link:hover { color: var(--accent); }

.gallery {
  position: relative;
  margin-bottom: 90px;
  background: #dedbd5;
}

.gallery-viewport { overflow: hidden; }

.gallery-track {
  display: flex;
  transition: transform 450ms cubic-bezier(.2,.7,.2,1);
}

.gallery-slide {
  display: grid;
  margin: 0;
  min-width: 100%;
  height: min(69vh, 720px);
  min-height: 420px;
  place-items: center;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 12px 0 22px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.gallery-status {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .16em;
}

.gallery-buttons { display: flex; gap: 4px; }

.gallery-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.1rem;
}

.gallery-button:hover,
.gallery-button:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }

.content-panel {
  display: grid;
  grid-template-columns: minmax(240px, .72fr) minmax(320px, 1.28fr);
  gap: clamp(36px, 7vw, 100px);
  margin-bottom: 90px;
  padding: clamp(28px, 5vw, 72px);
  background: var(--panel);
}

.content-panel h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
}

.prose { color: #454545; font-size: 1rem; line-height: 1.85; }
.prose p:first-child { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }
.portrait { width: 100%; max-width: 420px; }

.press-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 90px;
  background: var(--line);
  border: 1px solid var(--line);
}

.press-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 26px 30px;
  background: var(--panel);
  text-decoration: none;
}

.press-item strong { display: block; font-weight: 400; font-size: 1.2rem; }
.press-item span { color: var(--muted); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.press-item::after { color: var(--accent); content: "PDF  ↗"; font-size: .72rem; letter-spacing: .12em; }
.press-item:hover strong { color: var(--accent); }

.contact-layout { align-items: start; }
.contact-details a { color: var(--accent); text-decoration: none; }
.contact-details a:hover { text-decoration: underline; }

.map-frame {
  width: 100%;
  min-height: 440px;
  border: 0;
  filter: grayscale(1) contrast(.92);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 30px clamp(22px, 5vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
}
.skip-link:focus { transform: none; }

@media (max-width: 980px) {
  :root { --header-height: 81px; }
  .site-header {
    min-height: var(--header-height);
    backdrop-filter: none;
  }
  .brand span { display: none; }
  .brand, .menu-toggle { position: relative; z-index: 51; }
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed;
    z-index: 49;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    height: calc(100dvh - var(--header-height));
    visibility: hidden;
    transform: translateY(-14px);
    opacity: 0;
    background: var(--paper);
    transition: 180ms ease;
  }
  .menu-open .main-nav { visibility: visible; transform: none; opacity: 1; }
  .main-nav ul { display: grid; align-content: center; height: 100%; gap: 8px; padding: 30px; }
  .main-nav a { padding: 14px; text-align: center; font-size: .88rem; }
  .page-heading, .project-intro { align-items: start; flex-direction: column; }
  .content-panel { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { padding-inline: 18px; }
  .page-shell { width: min(100% - 32px, 1320px); }
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero-content { width: 100%; padding: 34px 24px 48px; }
  .page-heading { padding-top: 52px; }
  .collection-grid, .press-list { grid-template-columns: 1fr; }
  .project-card { min-height: 390px; }
  .project-intro { padding-top: 48px; }
  .gallery-slide { height: 58vh; min-height: 340px; }
  .content-panel { padding: 26px; }
  .map-frame { min-height: 340px; }
  .site-footer { flex-direction: column; }
}

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