@import url("https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400;500&family=Manrope:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap");

:root {
  --ink: #10100f;
  --paper: #f2efe8;
  --paper-deep: #e7e2d7;
  --red: #c93528;
  --red-dark: #9e241b;
  --line: rgba(16, 16, 15, 0.2);
  --muted: #686660;
  --white: #faf9f5;
  --max: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1rem;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.section-shell {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 91%, transparent);
  backdrop-filter: blur(16px);
}

.wordmark { display: grid; line-height: 1; }
.wordmark span:first-child {
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.wordmark span:last-child {
  margin-top: 0.45rem;
  font: 500 0.78rem/1 "DM Mono", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: clamp(1.1rem, 2.5vw, 2.8rem); align-items: center; }
.site-nav a {
  position: relative;
  font: 500 0.75rem/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -0.45rem;
  height: 2px;
  background: var(--red);
  transition: right 180ms ease;
}
.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }
.menu-toggle { display: none; }

.hero {
  min-height: calc(100vh - 6rem);
  display: flex;
  align-items: center;
  padding-block: clamp(4rem, 9vh, 7.5rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--red);
  font: 500 0.76rem/1.3 "DM Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(4.1rem, 10vw, 9.6rem);
  font-weight: 600;
  line-height: 0.82;
  letter-spacing: -0.075em;
}
.hero h1 em {
  color: var(--red);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
}
.hero-deck {
  max-width: 38rem;
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid currentColor;
  font: 500 0.75rem/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.button-primary { border-color: var(--ink); background: var(--ink); color: var(--white); }
.button-primary:hover, .button-primary:focus-visible { background: var(--red); border-color: var(--red); }
.text-link {
  appearance: none;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  padding: 0 0 0.2rem;
  font: 500 0.75rem/1.2 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.work-section,
.watch-section,
.resume-section { padding-block: clamp(5rem, 10vw, 9rem); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(15rem, 1fr) minmax(16rem, 0.8fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}
.section-heading > p:last-child { max-width: 31rem; margin: 0; color: var(--muted); }
.section-heading-two-column { grid-template-columns: minmax(15rem, 1fr) minmax(16rem, 0.8fr); }
.section-heading-resume { display: block; }

.filter-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filter-button {
  min-height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  padding: 0.6rem 1rem;
  font: 500 0.7rem/1 "DM Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.project-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  padding-left: 0;
}
.project-card:nth-child(odd) { border-right: 1px solid var(--line); }
.project-card:nth-child(even) { padding-left: clamp(1.5rem, 3vw, 2.5rem); }
.project-card-featured { grid-column: 1 / -1; grid-template-columns: minmax(18rem, 0.9fr) minmax(20rem, 1.1fr); padding: 0; }
.project-card-featured .project-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.project-card[hidden] { display: none; }
.project-index {
  color: var(--red);
  font: 300 clamp(2.4rem, 4vw, 4.2rem)/1 "DM Mono", monospace;
  letter-spacing: -0.08em;
}
.project-visual {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #242322;
  background-position: center;
  background-size: cover;
}
.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.78));
}
.project-visual { min-height: 29rem; }
.project-visual > span {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  color: white;
  font: 400 0.68rem/1 "DM Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.visual-cult { background-image: url("./assets/cult-comedy.webp"); }
.visual-amped { background-image: url("./assets/amped.webp"); }
.visual-searcher { background-image: url("./assets/searcher.webp"); }
.project-card-visual { grid-template-columns: 1fr; padding: 0; }
.project-card-visual:nth-child(even) { padding-left: 0; }
.project-card-visual .project-visual { min-height: 0; aspect-ratio: 16 / 10; }
.project-card-visual .project-copy { padding: clamp(1.5rem, 3vw, 2.5rem); }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font: 400 0.68rem/1.2 "DM Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.project-copy h3 { margin: 2.4rem 0 1.25rem; font-size: clamp(2rem, 3.6vw, 4rem); line-height: 0.98; letter-spacing: -0.05em; }
.project-copy > p { max-width: 38rem; margin: 0; color: #34332f; font-size: 1rem; }
.project-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-top: 2.8rem; }
.project-footer > span { color: var(--muted); font: 400 0.67rem/1.3 "DM Mono", monospace; text-align: right; text-transform: uppercase; }
.project-link { appearance: none; border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 0 0 0.15rem; font: 500 0.72rem/1.2 "DM Mono", monospace; letter-spacing: 0.07em; text-transform: uppercase; cursor: pointer; }
.project-link:hover, .project-link:focus-visible { color: var(--red); border-color: var(--red); }

.samples-section { background: var(--ink); color: var(--white); padding-block: clamp(5rem, 10vw, 8rem); }
.section-heading-light { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading-light h2 { max-width: 8ch; }
.section-heading-light > p:last-child { color: #b8b5ad; }
.sample-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1px; background: #45433f; border: 1px solid #45433f; }
.sample-card { grid-column: span 4; min-width: 0; display: flex; flex-direction: column; background: #171716; }
.sample-card-wide { grid-column: span 7; }
.sample-card:nth-child(2) { grid-column: span 5; }
.sample-card:nth-child(n + 3) { grid-column: span 6; }
.sample-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #282725; }
.sample-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.72)); pointer-events: none; }
.sample-art img { height: 100%; object-fit: cover; filter: saturate(0.82) contrast(1.04); transition: transform 500ms ease, filter 500ms ease; }
.sample-card:hover .sample-art img { transform: scale(1.025); filter: saturate(1) contrast(1.04); }
.sample-art > span { position: absolute; z-index: 1; left: 1rem; bottom: 1rem; color: white; font: 500 0.64rem/1 "DM Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.sample-card-copy { flex: 1; display: flex; flex-direction: column; padding: clamp(1.4rem, 2.5vw, 2.2rem); }
.sample-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0; color: #918e87; font: 500 0.64rem/1.3 "DM Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.sample-card h3 { margin: 2rem 0 1rem; color: var(--white); font-size: clamp(1.65rem, 2.8vw, 3rem); line-height: 1; letter-spacing: -0.045em; }
.sample-card-copy > p:not(.sample-meta) { margin: 0 0 2rem; color: #b8b5ad; font-size: 0.92rem; }
.sample-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: auto; }
.sample-link, .sample-download { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: 0.45rem; border: 1px solid #706d67; padding: 0.78rem 0.95rem; font: 500 0.68rem/1.3 "DM Mono", monospace; letter-spacing: 0.07em; text-transform: uppercase; }
.sample-link { background: var(--white); border-color: var(--white); color: var(--ink); }
.sample-download { color: var(--white); }
.sample-link:hover, .sample-link:focus-visible { background: #ef5b4e; border-color: #ef5b4e; color: var(--white); }
.sample-download:hover, .sample-download:focus-visible { border-color: #ef5b4e; color: #ef5b4e; }
.sample-note { max-width: 38rem; margin: 1.4rem 0 0; color: #8f8c85; font-size: 0.78rem; }

.watch-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr); background: var(--ink); color: var(--white); }
.watch-embed { min-width: 0; aspect-ratio: 16 / 9; background: #000; }
.watch-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.watch-feature-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 5vw, 4.5rem); }
.watch-feature-copy .eyebrow { margin-bottom: 1.6rem; color: #ef5b4e; }
.watch-feature-copy h3 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: 0.92; letter-spacing: -0.055em; }
.watch-feature-copy > p:not(.eyebrow) { max-width: 28rem; margin: 1.5rem 0 0; color: #c9c6bf; font-size: 1rem; }
.button-watch { margin-top: 2rem; border-color: rgba(255,255,255,0.72); color: var(--white); }
.button-watch:hover, .button-watch:focus-visible { border-color: var(--red); background: var(--red); }

.about-section { background: var(--paper-deep); padding-block: clamp(5rem, 10vw, 9rem); }
.about-grid { display: block; }
.about-columns { max-width: 52rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-top: 2rem; }
.about-columns p { margin: 0; }
.about-columns p:last-child { grid-column: 1 / -1; max-width: 47rem; padding-top: 0.25rem; }

.resume-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: clamp(2rem, 7vw, 7rem); }
.recognition-list { border-top: 1px solid var(--ink); }
.recognition-row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.recognition-row b { font-weight: 700; }
.recognition-row strong { color: var(--red); font: 500 0.74rem/1.5 "DM Mono", monospace; text-align: right; text-transform: uppercase; }
.resume-card { align-self: start; justify-self: start; width: fit-content; max-width: 100%; padding: 2rem; background: var(--red); color: white; }
.resume-card strong { display: block; margin: 0 0 1rem; font-size: 1.45rem; line-height: 1.25; }
.resume-card p { margin: 0; color: #f0c8c4; font-size: 0.88rem; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.resume-download { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; gap: 0.45rem; border: 1px solid rgba(255,255,255,0.6); padding: 0.78rem 0.95rem; color: white; font: 500 0.66rem/1.3 "DM Mono", monospace; letter-spacing: 0.07em; text-transform: uppercase; }
.resume-download-primary { background: white; border-color: white; color: var(--red); }
.resume-download:hover, .resume-download:focus-visible { background: #43100c; border-color: #43100c; color: white; }

.contact-section { background: var(--red); color: white; padding-block: clamp(5rem, 10vw, 9rem); }
.contact-section .eyebrow { color: #43100c; }
.contact-grid { display: grid; grid-template-columns: minmax(20rem, 1.25fr) minmax(18rem, 0.75fr); gap: clamp(3rem, 10vw, 10rem); align-items: end; }
.contact-copy > p { max-width: 28rem; margin: 0 0 2rem; font-size: 1.05rem; }
.contact-links { border-top: 1px solid rgba(255,255,255,0.55); }
.contact-item { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.55); padding: 1rem 0; color: white; }
.contact-item > span:first-child { color: #43100c; font: 500 0.68rem/1.4 "DM Mono", monospace; letter-spacing: 0.05em; text-transform: uppercase; }
.contact-item strong { min-width: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.contact-item > span:last-child { transition: transform 180ms ease; }
.contact-item:hover > span:last-child, .contact-item:focus-visible > span:last-child { transform: translate(0.18rem, -0.18rem); }

.site-footer { min-height: 7rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; color: var(--muted); font: 400 0.68rem/1.4 "DM Mono", monospace; text-transform: uppercase; }
.site-footer a { justify-self: end; color: var(--ink); }

.project-dialog {
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: 0 2rem 6rem rgba(0,0,0,0.35);
}
.project-dialog::backdrop { background: rgba(7,7,7,0.76); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; right: 1rem; top: 0.7rem; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.project-dialog h2 { margin: 0; font-size: clamp(2.8rem, 8vw, 5.5rem); line-height: 0.9; letter-spacing: -0.06em; }
.dialog-logline { margin: 2rem 0; font-size: 1.1rem; }
.dialog-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.dialog-details div { background: var(--paper); padding: 1rem; }
.dialog-details dt { color: var(--muted); font: 400 0.65rem/1 "DM Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.dialog-details dd { margin: 0.45rem 0 0; font-weight: 600; }
.dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; }

.reveal { opacity: 0; transform: translateY(1.4rem); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid #1473e6; outline-offset: 4px; }

@media (max-width: 900px) {
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(4.2rem, 16vw, 8rem); }
  .section-heading { grid-template-columns: 1fr; gap: 0.8rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(even) { border-right: 0; padding-inline: 0; }
  .project-card-visual .project-copy { padding-inline: 0; }
  .project-card-featured { grid-template-columns: 1fr; }
  .project-card-featured .project-copy { padding-inline: 0; }
  .project-visual { min-height: min(60vw, 30rem); }
  .sample-card, .sample-card:nth-child(2) { grid-column: span 6; }
  .sample-card-wide { grid-column: 1 / -1; }
  .watch-feature { grid-template-columns: 1fr; }
  .resume-layout { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 5rem; }
  .wordmark span:first-child { font-size: 1.35rem; }
  .wordmark span:last-child { font-size: 0.72rem; }
  .menu-toggle { display: grid; gap: 0.4rem; width: 2.8rem; height: 2.8rem; place-content: center; border: 1px solid var(--line); background: transparent; }
  .menu-toggle > span:not(.sr-only) { width: 1.1rem; height: 1px; background: var(--ink); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(0.2rem) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-0.2rem) rotate(-45deg); }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0 var(--gutter) 1rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .hero { padding-top: 3rem; }
  .hero h1 { font-size: clamp(3.7rem, 20vw, 6.5rem); }
  .hero-deck { font-size: 1rem; }
  .project-card { grid-template-columns: 4rem minmax(0, 1fr); }
  .project-footer { align-items: flex-start; flex-direction: column; }
  .project-footer > span { text-align: left; }
  .sample-card, .sample-card:nth-child(2), .sample-card:nth-child(n + 3), .sample-card-wide { grid-column: 1 / -1; }
  .about-columns, .contact-grid { grid-template-columns: 1fr; }
  .watch-feature-copy { padding: 1.75rem; }
  .about-columns { gap: 1.1rem; }
  .about-columns p:last-child { grid-column: auto; padding-top: 0; }
  .recognition-row { grid-template-columns: 1fr; }
  .recognition-row strong { text-align: left; }
  .contact-item { grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
  .contact-item > span:first-child { grid-column: 1 / -1; }
  .site-footer { grid-template-columns: 1fr; padding-block: 2rem; }
  .site-footer a { justify-self: start; }
  .dialog-details { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
