:root {
  --bg: #0a1113;
  --bg-2: #111a1d;
  --fg: #ece6da;
  --muted: #8d989a;
  --line: rgba(236, 230, 218, 0.16);
  --accent: #9ed6d8;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(6px, 1vw, 14px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.link { transition: color 0.2s; }
.link:hover { color: var(--fg); }

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--gutter);
  transition: background 0.3s, backdrop-filter 0.3s;
}
.nav.solid {
  background: rgba(10, 17, 19, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.wordmark {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.nav nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav nav a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(236, 230, 218, 0.78);
  transition: color 0.2s;
}
.nav nav a:hover { color: var(--accent); }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 480px;
  overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 19, 0.92) 0%, rgba(10, 17, 19, 0.25) 42%, rgba(10, 17, 19, 0.1) 70%, rgba(10, 17, 19, 0.45) 100%);
}
.hero-text {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 88px);
}
.hero-text { padding-right: 44px; }
h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(2.5rem, 7.6vw, 8rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent);
}
.scroll-cue {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 88px);
  writing-mode: vertical-rl;
  padding-bottom: 56px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 1px;
  height: 44px;
  background: currentColor;
}

/* Sections */
.section { padding: clamp(72px, 11vw, 160px) var(--gutter) 0; max-width: 1680px; margin: 0 auto; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(20px, 3vw, 36px);
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-top: 12px;
}
.section-head > .label { white-space: nowrap; padding-bottom: 8px; }

/* Film */
.player { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.player-btn { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s; }
.player-btn:hover img { transform: scale(1.02); filter: brightness(0.85); }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 230, 218, 0.7);
  border-radius: 50%;
  color: var(--fg);
  background: rgba(10, 17, 19, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.player-btn:hover .play { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Photographs */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); grid-auto-flow: dense; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); cursor: zoom-in; }
.tile.f { grid-column: 1 / -1; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile:hover img { transform: scale(1.035); }
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .tile.f { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .tile.f.r { grid-column: 2 / span 2; }
}

/* About */
.about {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(72px, 11vw, 160px);
}
.lede {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 1.14;
  letter-spacing: -0.005em;
  margin-top: 20px;
  max-width: 22em;
  text-wrap: pretty;
}
.links li { border-top: 1px solid var(--line); }
.links li:last-child { border-bottom: 1px solid var(--line); }
.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  line-height: 1.1;
  transition: color 0.2s, padding 0.3s;
}
.links .arrow { font-family: var(--sans); font-size: 0.6em; color: var(--muted); transition: color 0.2s, transform 0.3s; }
.links a:hover { color: var(--accent); padding-left: 10px; }
.links a:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }
@media (min-width: 900px) {
  .about { grid-template-columns: 1.5fr 1fr; align-items: end; }
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
}

/* Lightbox */
.lb {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #060a0b;
  color: var(--fg);
  overflow: hidden;
}
.lb::backdrop { background: #060a0b; }
.lb img {
  position: absolute;
  inset: 56px var(--gutter);
  width: calc(100% - 2 * var(--gutter));
  height: calc(100% - 112px);
  object-fit: contain;
  background: center / contain no-repeat;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-count { position: absolute; top: 20px; left: var(--gutter); font-variant-numeric: tabular-nums; }
.lb-close { position: absolute; z-index: 2; top: 8px; right: calc(var(--gutter) - 12px); padding: 12px; }
.lb-close:hover { color: var(--fg); }
.lb-nav {
  position: absolute;
  z-index: 1;
  top: 56px;
  bottom: 56px;
  width: 32%;
  display: flex;
  align-items: center;
  font-size: 22px;
  color: rgba(236, 230, 218, 0.55);
  -webkit-tap-highlight-color: transparent;
}
.lb-nav span { transition: transform 0.25s, color 0.25s; }
.lb-prev { left: 0; justify-content: flex-start; padding-left: var(--gutter); cursor: w-resize; }
.lb-next { right: 0; justify-content: flex-end; padding-right: var(--gutter); cursor: e-resize; }
.lb-nav:hover { color: var(--accent); }
.lb-prev:hover span { transform: translateX(-4px); }
.lb-next:hover span { transform: translateX(4px); }
.lb-nav:focus-visible { outline: none; color: var(--accent); }
body.locked { overflow: hidden; }

/* Small screens */
@media (max-width: 560px) {
  .nav nav a:first-child { display: none; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head > .label { padding-bottom: 0; }
  .wordmark, .nav nav a { letter-spacing: 0.12em; }
  .lb-nav span { display: none; }
}

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .player-btn img { transition: none; }
}
