:root {
  color-scheme: dark;
  --bg: #090909;
  --surface: #131313;
  --ink: #f2f0eb;
  --muted: #9b9a96;
  --line: rgba(242, 240, 235, 0.18);
  --accent: #d8ff43;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

body:has(dialog[open]) { overflow: hidden; }

a { color: inherit; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 4vw, 4.5rem);
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  text-transform: uppercase;
}

nav { display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
nav a, footer a { color: var(--muted); font-size: 0.875rem; text-decoration: none; }
nav a:hover, footer a:hover { color: var(--ink); }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8rem clamp(1.25rem, 4vw, 4.5rem) clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 82% 24%, rgba(216, 255, 67, 0.13), transparent 28%),
    linear-gradient(120deg, transparent 45%, rgba(255,255,255,.025) 45%, rgba(255,255,255,.025) 46%, transparent 46%);
  border-bottom: 1px solid var(--line);
}

.eyebrow, .section-index {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  max-width: 12ch;
  margin-bottom: 3rem;
  font-family: var(--serif);
  font-size: clamp(4rem, 11vw, 10.5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

h1 em, .contact h2 em { color: var(--muted); font-weight: 400; }

.scroll-cue {
  align-self: flex-end;
  display: flex;
  gap: 2rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid currentColor;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.work, .about { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 4vw, 4.5rem); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(6rem, 1fr) 3fr;
  align-items: baseline;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}

.section-heading h2 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
}

.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 4rem); }
.project-card--featured { grid-column: 1 / -1; }
.project-trigger { width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; text-align: left; }

.project-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  transition: transform 500ms cubic-bezier(.2,.75,.2,1), filter 500ms ease;
}

.project-card--featured .project-visual { aspect-ratio: 16 / 7; }
.project-trigger:hover .project-visual, .project-trigger:focus-visible .project-visual { transform: scale(.985); filter: brightness(1.1); }
.project-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }

.project-visual--one {
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), transparent 38%, rgba(0,0,0,.48)),
    radial-gradient(ellipse at 68% 44%, #9ea58e 0, #3d4238 22%, #171916 52%, #080908 78%);
}

.frame-mark { font-family: var(--serif); font-size: clamp(5rem, 18vw, 15rem); letter-spacing: -.08em; color: rgba(255,255,255,.16); }
.film-grain { position: absolute; inset: 0; opacity: .16; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"); }
.project-visual--two { background: linear-gradient(145deg, #151515 45%, #252525); }
.project-visual--three { background: linear-gradient(35deg, #101010 20%, #303030); }
.project-visual--two span, .project-visual--three span { font-family: var(--serif); font-size: clamp(4rem, 10vw, 8rem); color: #3d3d3d; }

.project-meta { display: flex; align-items: flex-start; justify-content: space-between; padding-top: 1.1rem; }
.project-meta strong { display: block; font-size: 1.05rem; font-weight: 500; }
.project-meta small { color: var(--muted); font-size: .8rem; }
.project-arrow { color: var(--muted); font-size: 1.25rem; }

.about { border-top: 1px solid var(--line); }
.about-copy { display: grid; grid-template-columns: minmax(6rem, 1fr) 3fr; }
.about-copy > p { max-width: 29ch; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.05; }
.about-copy ul { align-self: end; margin: 0 0 0 auto; padding: 0; list-style: none; color: var(--muted); }
.about-copy li { padding: .55rem 0; border-bottom: 1px solid var(--line); }

.contact { padding: clamp(5rem, 12vw, 11rem) clamp(1.25rem, 4vw, 4.5rem); background: var(--ink); color: var(--bg); }
.contact .section-index { color: #6e6e69; }
.contact h2 { max-width: 12ch; margin-bottom: 3rem; font-family: var(--serif); font-size: clamp(3.5rem, 9vw, 8rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.contact-links { display: flex; flex-wrap: wrap; gap: .8rem; }

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 3.25rem;
  padding: .7rem 1.05rem;
  border: 1px solid #c8c6c0;
  border-radius: 999px;
  color: #55534e;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  border-color: var(--bg);
  background: var(--bg);
  color: var(--ink);
  transform: translateY(-2px);
}

.contact-link:focus-visible { outline: 3px solid rgba(9, 9, 9, .2); outline-offset: 3px; }
.contact-icon { width: 1.45rem; height: 1.45rem; flex: 0 0 auto; }
.contact-arrow { margin-left: .15rem; color: #8b8983; }

footer { display: flex; justify-content: space-between; padding: 1.5rem clamp(1.25rem, 4vw, 4.5rem); color: var(--muted); font-size: .8rem; }
footer p { margin: 0; }

.project-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
}

.project-dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog-shell { min-height: 100%; padding: clamp(1.25rem, 4vw, 4.5rem); }
.dialog-close { position: fixed; top: 1.5rem; right: clamp(1.25rem, 4vw, 4.5rem); z-index: 3; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: 50%; background: rgba(9,9,9,.82); color: var(--ink); font: 300 2rem/1 var(--sans); cursor: pointer; }
.dialog-close:hover, .dialog-close:focus-visible { background: var(--ink); color: var(--bg); }
.detail-heading { max-width: 80rem; padding: clamp(4rem, 8vw, 7rem) 0 2.5rem; }
.detail-heading h2 { margin-bottom: 1rem; font-family: var(--serif); font-size: clamp(4rem, 10vw, 9rem); font-weight: 400; letter-spacing: -.05em; line-height: .9; }
.detail-intro { color: var(--muted); }
.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.detail-footer { display: flex; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 2rem; color: var(--muted); font-size: .875rem; }
.detail-footer p { max-width: 60ch; }
.detail-footer a { white-space: nowrap; }

@media (max-width: 720px) {
  .site-header { align-items: flex-start; }
  nav { flex-direction: column; gap: .35rem; text-align: right; }
  .hero { min-height: 88svh; }
  .scroll-cue { align-self: flex-start; }
  .section-heading, .about-copy { display: block; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--featured { grid-column: auto; }
  .project-card--featured .project-visual, .project-visual { aspect-ratio: 4 / 3; }
  .about-copy ul { margin: 2.5rem 0 0; }
  .detail-footer { flex-direction: column; }
}

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