:root {
  --bg: #10161c;
  --panel: #1c2730;
  --ink: #f3f2ed;
  --muted: #bdc8ce;
  --accent: #e8bf83;
  --line: #3c4b56;
  color-scheme: dark;
  font-family: "Inter", system-ui, sans-serif;
}
body { background: var(--bg); color: var(--ink); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .22em; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: .15em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(70rem, 100% - 2.5rem); margin-inline: auto; }
.top { border-bottom: 1px solid var(--line); }
.brand { font-weight: 750; color: var(--ink); text-decoration: none; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current], nav a.active, nav a:hover { color: var(--accent); text-decoration: underline; }
main { min-height: 62vh; padding-bottom: 4rem; }
.hero { padding: clamp(2.8rem, 8vw, 6rem) 0 1rem; }
.eyebrow { color: var(--accent); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .8rem; }
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); letter-spacing: -.055em; max-width: 14ch; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); letter-spacing: -.025em; }
h3 { font-size: 1.2rem; }
p { max-width: 68ch; color: var(--muted); }
.lede { max-width: 54ch; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.button { display: inline-block; padding: .75rem 1.05rem; border-radius: .4rem; background: var(--accent); color: var(--bg); font-weight: 750; text-decoration: none; }
.button:hover { text-decoration: underline; }
.band { margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.card { padding: 1.3rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.films { padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: .65rem; list-style: none; }
.films li { border-left: 2px solid var(--accent); padding: .75rem 1rem; background: var(--panel); }
.stack, .foot, .breadcrumb { font-size: .9rem; }
.foot { border-top: 1px solid var(--line); color: var(--muted); }
.breadcrumb + .hero { padding-top: 1rem; }
.case-study .about-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1rem;
}
.case-study .bio, .case-study .about-info > .project-media,
.case-study .job:last-child:not(:has(.project-media)) { grid-column: 1 / -1; }
.case-study .about-info > .project-media { max-width: 24rem; }
@media (max-width: 40rem) {
  .case-study .about-info { grid-template-columns: 1fr; }
}
.project-media { margin: 1rem 0; }
.project-media a { display: block; border-radius: .4rem; background: var(--bg); }
.project-media img { display: block; width: 100%; height: clamp(12rem, 24vw, 16rem); object-fit: cover; border-radius: .4rem; }
.project-media a:hover { outline: 1px solid var(--accent); }
.skip { position: absolute; left: 1rem; top: -5rem; padding: .6rem; background: var(--bg); }
.skip:focus { top: .5rem; }

body { background: radial-gradient(ellipse at 95% 0, #263b48, transparent 35rem), var(--bg); }
nav a { padding: .35rem .7rem; border: 1px solid transparent; border-radius: .55rem; }
nav a[aria-current], nav a.active { background: var(--panel); border-color: var(--line); }
nav a:hover { background: var(--panel); }
.eyebrow { color: #a6ccd7; }
.button { background: linear-gradient(115deg, #d7a873, #f2d8ae); color: #241b13; }
.card, .case-study .job {
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: linear-gradient(145deg, #243441, #1b252d);
}
.case-study .job { padding: 1.25rem; }
.films li { border-radius: .4rem; }
.project-filters button, .menu-toggle {
  cursor: pointer;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
}
.project-filters button:hover, .menu-toggle:hover { border-color: var(--accent); }
.project-filters button[aria-pressed="true"] { background: var(--accent); color: #241b13; border-color: var(--accent); }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 42rem) {
  .top nav { flex-basis: 100%; }
  .top.is-enhanced nav[data-collapsed="true"] { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color 180ms ease, transform 180ms ease; }
  .card:focus-within, .card:hover { border-color: #bb986c; transform: translateY(-2px); }
}

.credits-heading { margin-top: 1.75rem; }
.film-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; list-style: none; padding: 0; }
.film-card { display: grid; height: 100%; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; color: var(--ink); background: var(--panel); text-decoration: none; }
.film-card:hover, .film-card:focus-visible { border-color: var(--accent); }
.film-art { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(145deg, #324653, #151e26); }
.film-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-caption > span { color: var(--accent); white-space: nowrap; font-size: .86rem; }
.film-card:hover .film-caption strong, .film-card:focus-visible .film-caption strong { text-decoration: underline; }
@media (prefers-reduced-motion: no-preference) {
  .film-art img { transition: transform .3s ease; }
  .film-card:hover img, .film-card:focus-visible img { transform: scale(1.06); }
}
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
#contact-form { display: grid; gap: .55rem; }
#contact-form input, #contact-form textarea { width: 100%; padding: .7rem; border: 1px solid var(--line); border-radius: .45rem; color: var(--ink); background: var(--bg); font: inherit; }
#contact-form input:focus-visible, #contact-form textarea:focus-visible { outline: 2px solid var(--accent); }
#contact-form button { justify-self: start; border: 0; font: inherit; font-weight: 750; cursor: pointer; margin-top: .5rem; }
.form-note { font-size: .88rem; margin: 0; }
.social-links { padding: 0; list-style: none; }
.social-links li { margin: .65rem 0; }
.social-pending { color: var(--muted); }
.social-pending small { margin-left: auto; }
.social-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; flex: 0 0 2rem; border-radius: .35rem; background: #344651; color: #fff; font-weight: 800; line-height: 1; }
.social-icon.imdb { background: #e8bf83; color: #241b13; font-size: .6rem; }
.social-icon.facebook { font: bold 1.35rem Arial, sans-serif; }
.instagram > span { width: .95rem; height: .95rem; border: 1.5px solid currentColor; border-radius: 4px; position: relative; }
.instagram > span::before { content: ""; position: absolute; inset: .18rem; border: 1.5px solid currentColor; border-radius: 50%; }
.instagram > span::after { content: ""; position: absolute; top: 1px; right: 1px; width: 2px; height: 2px; background: currentColor; border-radius: 50%; }
@media (max-width: 42rem) { .contact-layout { grid-template-columns: 1fr; } }

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 18rem);
  align-items: center;
  gap: clamp(1rem, 5vw, 4rem);
}
.about-portrait {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: linear-gradient(145deg, #2d4351, #19232b);
}
.about-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.portrait-placeholder { color: var(--accent); font-size: clamp(2rem, 7vw, 4rem); font-weight: 750; letter-spacing: -.04em; }
@media (max-width: 42rem) {
  .about-hero { grid-template-columns: 1fr; }
  .about-portrait { width: min(100%, 15rem); }
}
