:root {
  --bg: #f6f5f2;
  --fg: #141414;
  --muted: #6b6965;
  --line: #dcd9d3;
  --gutter: clamp(16px, 4vw, 48px);
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.nav { display: flex; gap: clamp(14px, 2.5vw, 32px); }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); }
.nav a:hover, .nav a:focus-visible { color: var(--fg); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; height: min(88vh, 900px); overflow: hidden; background: #111; }
.hero img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero__text {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 6vh, 64px);
  color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero h1 { margin: 0; font: 400 clamp(40px, 8vw, 104px)/1 var(--serif); letter-spacing: -.01em; }
.hero p { margin: 12px 0 0; font-size: clamp(14px, 1.6vw, 18px); letter-spacing: .04em; }

/* Sections */
.section { padding: clamp(56px, 9vw, 120px) var(--gutter) 0; max-width: 1440px; margin: 0 auto; }
.section__title {
  margin: 0 0 clamp(24px, 4vw, 48px);
  font: 400 clamp(28px, 4vw, 44px)/1.1 var(--serif);
  border-top: 1px solid var(--fg); padding-top: 14px;
}

/* Works gallery (masonry via columns) */
.gallery { columns: 3 280px; column-gap: clamp(12px, 1.6vw, 24px); }
.work { margin: 0 0 clamp(12px, 1.6vw, 24px); break-inside: avoid; }
.work a { display: block; overflow: hidden; background: #e8e6e1; }
.work img { width: 100%; transition: transform .5s ease, opacity .3s; }
.work a:hover img { transform: scale(1.025); }
.work a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* Videos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; }
.video { margin: 0; }
.video video { width: 100%; background: #000; aspect-ratio: 16 / 9; object-fit: contain; }
.video--tall video { aspect-ratio: 9 / 16; max-height: 640px; }
.video figcaption { margin-top: 8px; font-size: 15px; }
.more { margin: 24px 0 0; }
.more a { color: var(--muted); }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.about__text { max-width: 60ch; font-size: 17px; }
.about__text p:first-child { margin-top: 0; font: 400 clamp(20px, 2vw, 24px)/1.45 var(--serif); }
.about h3 { margin: 32px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.cv span { display: inline-block; width: 4.5em; color: var(--muted); }

/* Press */
.press { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.press__item { display: block; text-decoration: none; }
.press__item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; border: 1px solid var(--line); background: #fff; }
.press__pub { display: block; margin-top: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.press__title { display: block; font: 400 18px/1.35 var(--serif); }
a.press__item:hover .press__title { text-decoration: underline; }

/* Contact */
.contact__lead { color: var(--muted); margin: 0; }
.contact__mail { margin: 8px 0 24px; font: 400 clamp(24px, 4vw, 44px)/1.2 var(--serif); }
.contact__mail a { text-decoration-thickness: 1px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 24px; }

.site-footer { padding: clamp(56px, 9vw, 120px) var(--gutter) 32px; color: var(--muted); font-size: 14px; max-width: 1440px; margin: 0 auto; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,.96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 12px; font-size: 14px; color: #ccc; text-align: center; min-height: 1em; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; padding: 12px 16px; opacity: .8; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 4px; top: 50%; transform: translateY(-50%); }

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: block; background: none; border: 1px solid var(--line); padding: 6px 12px; font: inherit; font-size: 14px; color: var(--fg); border-radius: 2px; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--line); font-size: 16px; color: var(--fg); }
  .hero { height: 72vh; }
  .about__grid { grid-template-columns: 1fr; }
  .gallery { columns: 2 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work img { transition: none; }
}
