:root {
  --ink: #121212;
  --muted: #6f6b66;
  --accent: #c96440;
  --rule: #e6e1d8;
  --bg: #f7f5f1;
  --paper: #fffcf8;
  --max: 1024px;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Work Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap > * { min-width: 0; }

header.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
}

.logo {
  font-family: var(--display);
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo:hover { color: var(--accent); opacity: 0.8; }

nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

nav a { color: var(--muted); }
nav a:hover,
nav a[aria-current="page"] { color: var(--ink); }

.hero {
  padding: 96px 0 80px;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 18ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  margin-top: 32px;
  max-width: 36em;
  font-size: 18px;
  color: var(--muted);
}

.section-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 40px;
}

.projects { padding: 8px 0 24px; }

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px 32px;
}

.project {
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.project:hover { color: inherit; }

.project figure {
  background: #0b1118;
  border-radius: 2px;
  overflow: hidden;
  min-width: 0;
  aspect-ratio: 1440 / 890;
  transition: transform 0.5s ease;
}

.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.project:hover figure { transform: translateY(-4px); }

.project.light figure {
  background: #f4f2ee;
  border: 1px solid #d4d0c8;
}

.project-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
}

.project h2 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.project:hover h2 { color: var(--accent); }

.project .year {
  font-size: 14px;
  color: var(--muted);
  flex: 0 0 auto;
}

.project > p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
  padding: 96px 0 72px;
  margin-top: 48px;
  border-top: 1px solid var(--rule);
}

.about img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
}

.about h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 400;
  margin-bottom: 14px;
}

.about p { color: var(--muted); }
.about p + p { margin-top: 12px; }

footer.site {
  margin-top: auto;
  border-top: 1px solid var(--rule);
  padding: 32px 0 64px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }

/* Case study */
.case { padding: 40px 0 88px; max-width: 820px; }

.back {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 28px;
}

.case .kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.case h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.case-meta span { display: block; }
.case-meta strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
}

.lead {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 36px;
}

.case h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  margin: 40px 0 12px;
}

.case p { color: var(--ink); }
.case p + p { margin-top: 12px; }

.case ul {
  margin: 8px 0 0 1.15em;
}
.case li { margin: 0 0 8px; }
.case li::marker { color: var(--accent); }

.shot {
  margin: 28px 0;
  min-width: 0;
}

.shot img {
  width: 100%;
  border-radius: 2px;
  border: 1px solid var(--rule);
  background: var(--paper);
}

.shot.dark img { background: #0b1118; }

.shot figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 28px 0;
  align-items: start;
}

.pair .shot { margin: 0; }

.pair .shot-open {
  aspect-ratio: 1680 / 1050;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--rule);
}

.pair .shot-open img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top center;
  border: 0;
  border-radius: 0;
}

.shot-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

.shot-open img {
  display: block;
}

.shot-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(16, 20, 26, 0.88);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(1760px, 100%);
  max-height: 100%;
  overflow: auto;
  cursor: default;
}

.lightbox img {
  max-width: min(1760px, 100%);
  width: auto;
  height: auto;
  display: block;
  border-radius: 2px;
}

.lightbox-caption {
  position: sticky;
  bottom: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  padding: 10px 16px 12px;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  background: linear-gradient(transparent, rgba(16, 20, 26, 0.92) 35%);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85);
}

.lightbox-caption[hidden] { display: none; }

.lightbox-close,
.lightbox-nav {
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-size: 42px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(16, 20, 26, 0.45);
  border-radius: 4px;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-nav[hidden] { display: none; }

.lightbox-nav:hover,
.lightbox-close:hover {
  color: #fff;
}

.lightbox-close:hover {
  background: #000;
  border-color: #fff;
}

.note {
  font-size: 14px;
  color: var(--muted);
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.next {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--muted);
}

.next a {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink);
}

.next a:hover { color: var(--accent); }

.gate {
  max-width: 420px;
  padding: 56px 0 120px;
}

.gate .kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.gate h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.gate > p {
  color: var(--muted);
  margin-bottom: 28px;
}

.gate form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.gate label {
  font-size: 14px;
  color: var(--muted);
}

.gate-field {
  position: relative;
  width: 100%;
}

.gate input {
  width: 100%;
  padding: 12px 64px 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.gate input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gate-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 8px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.gate-toggle:hover { color: var(--ink); }

.gate-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gate [type="submit"] {
  margin-top: 8px;
  padding: 10px 18px;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.gate [type="submit"]:hover { opacity: 0.9; }

.gate-error {
  margin-top: 4px;
  font-size: 14px;
  color: var(--accent);
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  header.site {
    padding: 24px 0 16px;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: flex-start;
  }
  nav { gap: 16px; font-size: 13px; }
  .hero { padding: 56px 0 48px; }
  .hero h1 {
    font-size: 32px;
    max-width: none;
    overflow-wrap: break-word;
  }
  .hero p { font-size: 16px; margin-top: 20px; }
  .project-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .project-head { flex-wrap: wrap; }
  .project h2 { font-size: 22px; }
  .project .year { width: 100%; }
  .about {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 56px 0 40px;
    margin-top: 24px;
  }
  .pair { grid-template-columns: 1fr; }
  .case { padding: 24px 0 64px; }
  .lightbox { padding: 12px 8px; }
  .lightbox-stage { max-width: 100%; }
  .lightbox img { max-width: 100%; }
}
