:root {
  --ink: #121212;
  --paper: #f2f0eb;
  --white: #faf9f6;
  --line: rgba(18, 18, 18, 0.22);
  --muted: #706f6a;
  --accent: #ff5c35;
  --pad: clamp(1.25rem, 3.2vw, 4rem);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { color: inherit; font: inherit; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 var(--pad);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  mix-blend-mode: difference;
}

.site-header.on-paper { color: var(--ink); mix-blend-mode: normal; border-color: var(--line); background: rgba(242, 240, 235, 0.93); backdrop-filter: blur(14px); }
.site-header.home-header { position: absolute; color: #fff; mix-blend-mode: normal; }
.brand { font-weight: 800; font-size: clamp(1rem, 1.4vw, 1.35rem); letter-spacing: -0.04em; }
.brand-mark { display: inline-block; width: 0.56em; height: 0.56em; margin-right: 0.12em; border-radius: 50%; background: var(--accent); }
.desktop-nav { display: flex; gap: 2rem; font-size: 0.73rem; text-transform: uppercase; letter-spacing: 0.12em; }
.desktop-nav a { position: relative; padding: 0.3rem 0; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .25s ease; }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { right: 0; }
.header-place { justify-self: end; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; }
.menu-toggle { display: none; justify-self: end; border: 0; padding: .5rem 0; background: none; text-transform: uppercase; font-size: .72rem; letter-spacing: .12em; }

.mobile-nav { position: fixed; inset: 0; z-index: 15; display: grid; align-content: center; gap: 1rem; padding: var(--pad); background: var(--ink); color: #fff; visibility: hidden; opacity: 0; transition: .25s ease; }
.mobile-nav a { font-family: var(--serif); font-size: clamp(2.6rem, 12vw, 5rem); line-height: 1; }
.menu-open .mobile-nav { visibility: visible; opacity: 1; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; background: #252525; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { height: 100%; object-fit: cover; object-position: center; filter: saturate(.72) contrast(1.02); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,8,8,.48) 0%, rgba(8,8,8,.08) 24%, transparent 42%), linear-gradient(90deg, rgba(10,10,10,.48) 0%, rgba(10,10,10,.05) 55%, rgba(10,10,10,.22) 100%); }
.hero-copy { position: relative; z-index: 1; padding: 9rem var(--pad) 2.2rem; }
.eyebrow { margin: 0 0 1.2rem; font-size: .69rem; text-transform: uppercase; letter-spacing: .16em; }
.hero h1 { max-width: 8ch; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(4.2rem, 11vw, 10rem); line-height: .76; letter-spacing: -.075em; }
.hero-bottom { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; padding: 1.6rem var(--pad) 2.4rem; border-top: 1px solid rgba(255,255,255,.3); }
.hero-note { max-width: 26rem; margin: 0; font-size: clamp(.9rem, 1.3vw, 1.05rem); }
.hero-index { justify-self: center; font-family: var(--serif); font-style: italic; }
.round-link { justify-self: end; display: grid; place-items: center; width: 5.7rem; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; transition: background .25s, color .25s; }
.round-link:hover { background: #fff; color: var(--ink); }

.section { padding: clamp(5.5rem, 10vw, 10rem) var(--pad); }
.section-rule { border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(10rem, 1fr) 3fr; gap: 2rem; align-items: start; margin-bottom: clamp(3rem, 7vw, 7rem); }
.section-heading h2, .display-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(3.3rem, 8vw, 7.4rem); line-height: .88; letter-spacing: -.06em; }
.section-heading .eyebrow { padding-top: .65rem; }

.work-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.work-card { display: block; }
.work-card:nth-child(2) { margin-top: clamp(4rem, 12vw, 11rem); }
.image-wrap { overflow: hidden; background: #d7d4cd; }
.image-wrap img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.work-card:hover img, .project-tile:hover img { transform: scale(1.025); }
.work-card--wide .image-wrap { aspect-ratio: 3/2; }
.work-card--portrait .image-wrap { aspect-ratio: 2/3; }
.work-meta { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0 0; border-top: 1px solid var(--ink); font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; }
.work-meta span:last-child { color: var(--muted); }

.statement { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; }
.statement p { max-width: 17ch; margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }
.text-link { display: inline-flex; gap: 1rem; align-items: center; margin-top: 2rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; }
.text-link::after { content: "↗"; font-size: 1.05rem; }

.page-hero { min-height: 72vh; padding: clamp(9rem, 16vw, 13rem) var(--pad) 3rem; display: grid; align-content: end; border-bottom: 1px solid var(--line); }
.page-hero .display-title { max-width: 10ch; }
.page-kicker { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem; margin-bottom: 2.2rem; }
.page-kicker p { margin: 0; max-width: 33rem; }

.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); padding: var(--pad); }
.project-tile { grid-column: span 7; margin-bottom: clamp(3rem, 8vw, 8rem); }
.project-tile:nth-child(2) { grid-column: 9 / span 4; padding-top: 8rem; }
.project-tile:nth-child(3) { grid-column: 3 / span 8; }
.project-tile .image-wrap { aspect-ratio: 3/2; }
.project-tile:nth-child(2) .image-wrap { aspect-ratio: 2/3; }
.project-caption { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding-top: .85rem; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; }
.project-caption span:last-child { color: var(--muted); }

.about-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.about-image { position: sticky; top: 7rem; aspect-ratio: 4/5; overflow: hidden; }
.about-image img { height: 100%; object-fit: cover; object-position: 69% center; filter: grayscale(1); }
.about-copy .lead { margin: 0 0 3.5rem; font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 4.1rem); line-height: 1; letter-spacing: -.04em; }
.about-copy p:not(.lead) { max-width: 35rem; color: #383834; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.fact-label { display: block; margin-bottom: .65rem; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; }

.contact-stage { min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding: 8rem var(--pad) 2rem; }
.contact-main { display: grid; align-content: center; }
.contact-main h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(4.1rem, 12vw, 11.5rem); line-height: .78; letter-spacing: -.075em; }
.contact-mail { position: relative; display: inline-block; margin-top: 3rem; font-size: clamp(1.25rem, 2.4vw, 2.1rem); }
.contact-mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 1px; background: currentColor; }
.contact-foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .78rem; }
.contact-foot p { margin: 0; }
.contact-foot a { justify-self: end; }

.site-footer { padding: 2.2rem var(--pad); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer .footer-center { font-family: var(--serif); font-style: italic; text-transform: none; font-size: .95rem; letter-spacing: 0; }
.site-footer a { justify-self: end; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 62px; }
  .desktop-nav, .header-place { display: none; }
  .menu-toggle { display: block; }
  .site-header:not(.on-paper) .menu-toggle { color: #fff; }
  .hero-copy { padding-bottom: 1.5rem; }
  .hero h1 { font-size: clamp(4.3rem, 23vw, 7rem); }
  .hero-bottom { grid-template-columns: 1fr auto; gap: 1.5rem; }
  .hero-index { display: none; }
  .round-link { width: 4.6rem; }
  .section-heading, .statement, .page-kicker, .about-layout { grid-template-columns: 1fr; }
  .section-heading { gap: .4rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(2) { margin-top: 2rem; width: 78%; justify-self: end; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .project-tile, .project-tile:nth-child(2), .project-tile:nth-child(3) { grid-column: 1; padding-top: 0; }
  .project-tile:nth-child(2) { width: 76%; justify-self: end; }
  .about-image { position: static; aspect-ratio: 4/3; }
  .facts { grid-template-columns: 1fr; }
  .contact-foot { grid-template-columns: 1fr 1fr; }
  .contact-foot a { grid-column: 2; grid-row: 1; }
  .site-footer { grid-template-columns: 1fr auto; }
  .site-footer .footer-center { display: none; }
}

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