@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
  --ink: #050505;
  --paper: #f7f7f5;
  --white: #fff;
  --blue: #315cff;
  --line: #d9d9d5;
  --max: 1320px;
  --header-h: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Poppins', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 86px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 247, 245, .92);
  color: var(--ink);
  border-bottom: 1px solid rgba(5, 5, 5, .12);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  padding: .26em .43em .3em;
  color: white;
  background: black;
  font-size: clamp(1rem, 2vw, 1.42rem);
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.site-nav a {
  position: relative;
  font-size: .94rem;
  text-decoration: none;
}
.site-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .22s ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current='page']::after { transform: scaleX(1); transform-origin: left; }

.home-main { min-height: calc(100svh - 86px); }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
  width: min(var(--max), calc(100% - 40px));
  min-height: calc(100svh - 86px);
  margin: auto;
  padding: clamp(56px, 8vw, 110px) 0;
}
.eyebrow { margin: 0 0 2rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.hero-title {
  max-width: 790px;
  margin: 0;
  font-size: clamp(3.4rem, 8.3vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .88;
}
.hero-title span { position: relative; display: inline-block; z-index: 0; }
.hero-title span::before {
  content: '';
  position: absolute;
  z-index: -1;
  right: -.03em;
  bottom: -.02em;
  left: -.03em;
  height: .16em;
  background: var(--blue);
  transform: rotate(-1.4deg);
}
.hero-copy { max-width: 640px; margin: 2.5rem 0 0; font-size: clamp(1.12rem, 2vw, 1.5rem); line-height: 1.5; }
.hero-copy small { display: block; margin-top: 1.2rem; color: #4d4d49; font-size: .88rem; }
.hero-image-wrap { position: relative; transform: rotate(1.1deg); }
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 12px -14px -14px 14px;
  z-index: -1;
  background: var(--blue);
}
.hero-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.image-note { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }

.page-shell { width: min(var(--max), calc(100% - 40px)); margin: auto; padding: clamp(64px, 9vw, 130px) 0 120px; }
.page-kicker { margin: 0 0 1rem; color: var(--blue); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.page-title { max-width: 1000px; margin: 0; font-size: clamp(3rem, 7vw, 7rem); font-weight: 500; letter-spacing: -.065em; line-height: .95; }
.page-intro { max-width: 720px; margin: 2rem 0 0; font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.55; }

.writing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 7vw, 100px) clamp(28px, 5vw, 72px); margin-top: clamp(70px, 10vw, 140px); }
.writing-card { min-width: 0; }
.card-image-link { position: relative; display: block; overflow: hidden; background: #ddd; }
.card-image-link img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease; }
.read-more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(5, 5, 5, .67);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  opacity: 0;
  transition: opacity .22s ease;
}
.card-image-link:hover img, .card-image-link:focus-visible img { transform: scale(1.025); filter: grayscale(.3); }
.card-image-link:hover .read-more, .card-image-link:focus-visible .read-more { opacity: 1; }
.writing-card h2 { margin: 1.15rem 0 .65rem; font-size: clamp(1.45rem, 2.5vw, 2.2rem); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.writing-card h2 a { text-decoration-thickness: 1px; text-underline-offset: .18em; }
.card-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: 0; color: #555550; font-size: .88rem; }
.card-meta em { color: var(--ink); }

.series-main { background: #080808; color: white; }
.series-intro { width: min(var(--max), calc(100% - 40px)); margin: auto; padding: clamp(70px, 9vw, 130px) 0 80px; }
.series-intro .page-kicker { color: #8fa6ff; }
.series-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 94svh;
  overflow: hidden;
  isolation: isolate;
  color: white;
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,.22);
}
.series-panel img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.series-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.08) 35%, rgba(0,0,0,.84) 100%); }
.series-panel:hover img { transform: scale(1.025); }
.series-panel--text { background: #182854; }
.series-panel--text::after { content: '2025'; position: absolute; top: 10%; right: -2%; z-index: -2; color: rgba(255,255,255,.08); font-size: min(34vw, 32rem); line-height: 1; }
.series-copy { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; padding: 64px 0; }
.series-number { margin: 0 0 1rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.series-title { max-width: 1180px; margin: 0; font-size: clamp(3rem, 8vw, 8rem); font-weight: 500; letter-spacing: -.065em; line-height: .92; }
.series-year, .project-year { font-size: .42em; font-style: normal; letter-spacing: -.025em; white-space: nowrap; }
.series-title-tail { white-space: nowrap; }
.series-tagline { max-width: 650px; margin: 1.4rem 0 0; font-size: clamp(1rem, 1.6vw, 1.3rem); line-height: 1.5; }

.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(48px, 10vw, 160px); margin-top: clamp(64px, 9vw, 120px); }
.about-grid p { margin: 0 0 1.3rem; font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.62; }
.about-side { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.about-side h2 { margin: 0 0 1.4rem; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.about-side a { display: block; margin: .7rem 0; font-size: 1.15rem; text-underline-offset: .18em; }
.about-page { min-height: 100svh; display: flex; flex-direction: column; }
.about-page main { flex: 1; }

.essay { max-width: 820px; margin: auto; padding: clamp(64px, 9vw, 130px) 20px 130px; }
.essay .back { display: inline-block; margin-bottom: 4rem; color: #555550; text-underline-offset: .2em; }
.essay h1 { margin: 0; font-size: clamp(3rem, 7vw, 6.2rem); font-weight: 500; letter-spacing: -.065em; line-height: .94; }
.essay-deck { margin: 2rem 0 4rem; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; }
.essay-placeholder { padding: 2rem; background: white; border: 1px solid var(--line); font-size: 1rem; line-height: 1.7; }
.essay-body { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.72; }
.essay-body p { margin: 0 0 1.55em; }
.essay-body blockquote { margin: 2.5rem 0; padding: 0 0 0 1.5rem; border-left: 4px solid var(--blue); font-size: 1.08em; font-style: italic; line-height: 1.65; }

.site-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 28px clamp(20px, 5vw, 72px); background: var(--ink); color: white; font-size: .78rem; }

.project-intro { min-height: calc(100svh - var(--header-h)); display: flex; align-items: flex-end; background: #0a0a0a; color: white; }
.project-intro--blue { background: #182854; }
.project-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: end; gap: clamp(40px, 8vw, 120px); width: min(var(--max), calc(100% - 40px)); margin: auto; padding: clamp(70px, 10vw, 140px) 0; }
.project-heading h1 { max-width: 1100px; margin: 0; font-size: clamp(3rem, 8vw, 8rem); font-weight: 500; letter-spacing: -.065em; line-height: .92; }
.project-statement { margin: 0; font-size: clamp(1rem, 1.5vw, 1.22rem); line-height: 1.65; }
.photo-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 520px));
  justify-content: center;
  align-items: start;
  gap: clamp(44px, 6vw, 84px);
  padding: clamp(56px, 7vw, 104px) clamp(28px, 7vw, 112px);
  background: #050505;
}
.photo-frame,
.photo-frame--wide,
.photo-frame--centred {
  grid-column: auto;
  min-width: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}
.photo-frame--wide {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 900px;
}
.photo-frame--centred,
.photo-sequence--portraits .photo-frame:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 520px;
}
.photo-frame img { display: block; width: 100%; height: auto; }
.photo-frame figcaption { display: none; }

@media (max-width: 800px) {
  :root { --header-h: 74px; }
  .site-header { min-height: 74px; align-items: flex-start; }
  .site-nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
  .site-nav a { font-size: .82rem; }
  .home-hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-image-wrap { width: min(88%, 520px); margin-left: auto; }
  .writing-grid, .about-grid { grid-template-columns: 1fr; }
  .series-panel { min-height: 78svh; }
  .project-heading { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --header-h: 112px; }
  .site-header { display: block; padding-block: 16px; }
  .site-nav { justify-content: flex-start; margin-top: 14px; }
  .home-main { min-height: auto; }
  .home-hero { width: calc(100% - 32px); padding-top: 52px; }
  .hero-title { font-size: clamp(3.35rem, 19vw, 5rem); }
  .hero-copy { font-size: 1.05rem; }
  .page-shell, .series-intro, .series-copy { width: calc(100% - 32px); }
  .project-heading, .project-body { width: calc(100% - 32px); }
  .photo-sequence { grid-template-columns: minmax(0, 520px); gap: 32px; padding: 36px 18px; }
  .photo-frame, .photo-frame--wide, .photo-frame--centred,
  .photo-sequence--portraits .photo-frame:last-child:nth-child(odd) { grid-column: auto; max-width: 520px; }
  .writing-grid { grid-template-columns: 1fr; }
  .site-footer { display: block; }
  .site-footer span { display: block; margin-top: .6rem; }
}

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