:root {
  --bg: #0c0c0c;
  --surface: #141414;
  --line: #222222;
  --text: #ffffff;
  --muted: #c4c4c4;
  --dim: #5c5c5c;
  --pill: rgba(25, 25, 25, 0.7);
  --gutter: clamp(20px, 4.24vw, 61px);
  --gap: clamp(12px, 1.46vw, 21px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
header.site { position: relative; z-index: 10; padding-top: 44px; }
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.brand-name { font-weight: 600; font-size: 16px; line-height: 1.2; }
.brand-loc { font-size: 12px; color: var(--dim); margin-top: 2px; }
.nav {
  display: flex; align-items: center; gap: 4px;
  height: 40px; padding: 4px; margin-top: -2px;
  border-radius: 40px; background: var(--pill);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
}
.nav a {
  font-size: 11px; font-weight: 500;
  height: 32px; min-width: 67px; padding: 0 18px;
  display: grid; place-items: center; border-radius: 67px;
  transition: background .25s, color .25s;
}
.nav a:hover { background: rgba(255,255,255,.1); }
.nav a.active { background: #fff; color: #000; }
.social { justify-self: end; text-align: right; font-size: 12px; }
.social-label { color: var(--dim); }
.social-links { display: flex; gap: 11px; justify-content: flex-end; margin-top: 7px; font-weight: 500; }
.social-links a, .link-hover { transition: color .2s; }
.social-links a:hover, .link-hover:hover { color: var(--dim); }

/* ---------- Shared type ---------- */
.eyebrow { font-size: 12px; color: var(--dim); }
.page-title {
  font-weight: 500; font-size: clamp(40px, 5vw, 72px); line-height: 1.2;
  letter-spacing: -0.005em; max-width: 13em;
}
.page-head { padding-top: clamp(40px, 5vw, 70px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-head .lead { margin-top: 24px; max-width: 520px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.section-title { font-weight: 500; font-size: 24px; line-height: 1.2; }
.arrow { display: inline-block; height: 0.64em; width: auto; margin-left: 0.2em; vertical-align: -0.02em; }

/* Two-column section: label left, content right (same split as the home hero) */
.split {
  display: grid; grid-template-columns: minmax(0, 497fr) minmax(0, 821fr);
  padding: 48px 0; border-top: 1px solid var(--line);
}
.split > h2 { font-size: 12px; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; padding-top: 4px; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--muted); }
.prose p + p { margin-top: 16px; }
.prose p.big { font-size: clamp(20px, 2vw, 28px); line-height: 1.45; color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 40px;
  font-size: 12px; font-weight: 500;
  background: #fff; color: #000; transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid #333; }
.btn.ghost:hover { border-color: #666; opacity: 1; }

/* ---------- Cards ---------- */
.card { position: relative; display: block; overflow: hidden; border-radius: 16px; background: #191919; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover img { transform: scale(1.03); }
.card .label {
  position: absolute; left: 16px; bottom: 16px;
  font-size: 12px; font-weight: 500; padding: 8px 14px; border-radius: 40px;
  background: var(--pill); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.card:hover .label { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
footer.site { margin-top: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.foot-cta { padding: clamp(56px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); }
.foot-cta h2 { font-weight: 500; font-size: clamp(36px, 5vw, 72px); line-height: 1.15; letter-spacing: -0.005em; }
.foot-cta h2 span { color: var(--dim); }
.foot-mail {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 32px;
  font-size: clamp(16px, 1.6vw, 22px); font-weight: 500;
  border-bottom: 1px solid #444; padding-bottom: 6px; transition: border-color .2s;
}
.foot-mail:hover { border-color: #fff; }
.foot-mail .arrow { height: .8em; transform: rotate(-90deg); margin: 0; transition: transform .35s cubic-bezier(.65, 0, .25, 1); }
.foot-mail:hover .arrow, .foot-mail:focus-visible .arrow { transform: translateX(4px) rotate(-45deg); }
.foot-cols {
  display: grid; grid-template-columns: minmax(0, 497fr) repeat(3, minmax(0, 273fr));
  gap: 24px; padding: 40px 0; border-top: 1px solid var(--line); font-size: 12px;
}
.foot-cols h3 { font-size: 12px; font-weight: 500; color: var(--dim); margin-bottom: 14px; }
.foot-cols ul { list-style: none; display: grid; gap: 10px; }
.foot-cols .blurb { color: var(--muted); line-height: 1.5; max-width: 220px; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim);
}
.to-top { color: var(--muted); }
.to-top:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  header.site { padding-top: 24px; }
  .header-row { grid-template-columns: 1fr auto; row-gap: 16px; }
  .nav { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .social { grid-column: 2; grid-row: 1; }
  .split { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .card .label { display: none; }
  br.lg { display: none; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .foot-cols .about-col { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .nav a { min-width: 0; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Sliding menu pill ---------- */
.nav { position: relative; }
.nav-pill {
  position: absolute; top: 4px; left: 4px; height: 32px; width: 0;
  border-radius: 67px; background: #fff; opacity: 0;
  transition: transform .42s cubic-bezier(.65, 0, .25, 1), width .42s cubic-bezier(.65, 0, .25, 1);
}
.nav-pill.ready { opacity: 1; }
.nav.has-pill a { position: relative; z-index: 1; transition: color .3s; }
.nav.has-pill a.active { background: transparent; color: #fff; }
.nav.has-pill a.on { color: #000; }
.nav.has-pill a.on:hover { background: transparent; }

/* Soft cross-fade between pages in browsers that support it */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Next projects (2 per row) ---------- */
.next2 { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.next-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: 20px; }
.next-card .card { aspect-ratio: 16 / 10; }
.next-card .card img { object-position: center top; }
.next-card h3 { font-weight: 500; font-size: clamp(20px, 1.8vw, 26px); margin-top: 16px; transition: color .2s; }
.next-card p { font-size: 13px; color: var(--dim); margin-top: 6px; }
.next-card:hover h3 { color: var(--muted); }
@media (max-width: 640px) { .next-grid { grid-template-columns: 1fr; } }
