:root {
  color-scheme: dark;
  --background: #111110;
  --foreground: #f2f1ea;
  --secondary: #a9a9a0;
  --line: #383833;
  --accent: #e6fc56;
  --gutter: clamp(20px, 4.2vw, 76px);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--background);
  color: var(--foreground);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100%, 1680px); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; z-index: 2; top: -4rem; left: 1rem; padding: 12px; background: var(--background); }
.skip:focus { top: 1rem; }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 20px; }
header { border-bottom: 1px solid var(--line); }
.wordmark, nav { display: flex; align-items: center; }
.wordmark { font-size: 1rem; font-weight: 700; gap: 12px; white-space: nowrap; }
.mark { width: 16px; height: 16px; background: var(--accent); clip-path: polygon(0 0,100% 0,100% 40%,40% 40%,40% 100%,0 100%,0 0,61% 61%,61% 100%,100% 100%,100% 61%,61% 61%); }
nav { gap: clamp(18px, 2.8vw, 42px); font-size: .9375rem; }
.contact-nav { border: 1px solid var(--line); border-radius: 40px; padding: 9px 15px; }
.contact-nav:hover, .pill:hover { border-color: var(--accent); }
.intro { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 35px; align-items: end; padding-block: clamp(60px, 8vw, 125px) clamp(56px, 7vw, 105px); }
.label { color: var(--secondary); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8125rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .075em; }
.intro .label { margin-bottom: 19px; }
h1 { font-size: clamp(4rem, 10.5vw, 11rem); font-weight: 700; line-height: .82; letter-spacing: -.093em; margin-left: -.058em; padding-right: .08em; }
h1 span, .contact-lead span { color: var(--accent); }
.intro-details { padding-bottom: 3px; min-width: min(22vw, 265px); }
.role { font-size: clamp(1.25rem, 2.25vw, 2.15rem); font-weight: 600; line-height: 1.06; letter-spacing: -.038em; }
.location { font-size: .9375rem; color: var(--secondary); margin-top: 15px; }
.location span { color: var(--accent); padding-inline: 2px; }
section { scroll-margin-top: 20px; }
.section-bar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.section-bar h2 { font-size: 1rem; font-weight: 650; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: clamp(10px, 1.35vw, 23px); row-gap: clamp(24px, 3vw, 50px); }
.project.opening { grid-column: 1 / -1; }
.project button { appearance: none; border: 0; padding: 0; background: none; width: 100%; text-align: left; cursor: pointer; display: block; }
.frame { position: relative; display: block; overflow: hidden; background: #232321; aspect-ratio: 16 / 9; }
.opening .frame { aspect-ratio: 2.46; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.65,.3,1), filter .35s; }
.project button:hover img { transform: scale(1.035); filter: brightness(1.07); }
.play {
  position: absolute; right: 15px; bottom: 15px; display: grid; place-items: center;
  width: 45px; height: 45px; border: 1px solid #ffffff75; border-radius: 50%;
  background: #111111b8; color: white; transition: background .2s, color .2s, border-color .2s;
}
.play::before { content: ""; width: 0; height: 0; margin-left: 3px; border: 6px solid transparent; border-left: 9px solid currentColor; border-right: 0; }
.project button:hover .play, .project button:focus-visible .play { background: var(--accent); color: var(--background); border-color: var(--accent); }
.caption { display: flex; justify-content: space-between; align-items: baseline; gap: 13px; padding-top: 12px; }
.project-title { font-size: clamp(1.05rem, 1.8vw, 1.6rem); font-weight: 650; letter-spacing: -.025em; }
.caption .label { flex: 0 0 auto; }
.about, .contact { margin-top: clamp(80px, 10vw, 160px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 7vw, 110px); margin-top: 40px; }
.about-lead { max-width: 21ch; font-size: clamp(1.95rem, 3.9vw, 4.5rem); line-height: 1.03; font-weight: 600; letter-spacing: -.06em; }
.about-copy, .contact > p:not(.contact-lead) { color: var(--secondary); max-width: 52ch; line-height: 1.55; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; gap: 18px; border: 1px solid var(--line); border-radius: 40px; padding: 12px 15px; margin-top: 25px; }
.pill span { color: var(--secondary); font-size: .8125rem; }
.experience ul { list-style: none; padding: 0; margin-block: 15px 0; }
.experience li { border-top: 1px solid var(--line); padding-block: 14px; display: flex; gap: 12px; justify-content: space-between; }
.experience li strong { display: block; }
.experience li span, .experience time { color: var(--secondary); font-size: .875rem; line-height: 1.35; }
.experience li span { display: block; margin-top: 3px; }
.experience time { text-align: right; }
.contact { padding-bottom: 70px; }
.contact-lead { margin-top: 40px; line-height: 1; font-size: clamp(2.7rem, 8vw, 8.5rem); font-weight: 650; letter-spacing: -.08em; }
.contact > a { display: inline-block; margin-top: 24px; font-size: clamp(1.1rem, 2vw, 1.75rem); color: var(--accent); }
.contact > a:hover { text-decoration: underline; }
footer { border-top: 1px solid var(--line); font-size: .875rem; color: var(--secondary); }
dialog { width: min(1080px, calc(100% - 34px)); max-height: calc(100% - 32px); padding: 0; border: 1px solid var(--line); background: #171716; color: var(--foreground); overscroll-behavior: contain; }
dialog::backdrop { background: #000e; }
.viewer-bar { min-height: 56px; padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.close { padding: 7px 1px 7px 10px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.close:hover { color: var(--accent); }
.close span { font-size: 1.55rem; line-height: 1; }
.player { background: #080808; position: relative; display: grid; place-items: center; }
.player video { display: block; width: 100%; height: min(54vw, 57dvh); min-height: 155px; }
.external-video { position: relative; display: block; width: min(100%, 101dvh); aspect-ratio: 16 / 9; }
.external-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.external-video span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 10px 16px; border-radius: 40px; white-space: nowrap; background: var(--accent); color: var(--background); font-size: .9375rem; font-weight: 650; }
.external-video:hover span { background: var(--foreground); }
.viewer-info { display: grid; gap: 22px; grid-template-columns: minmax(0,.95fr) minmax(0,1fr); padding: clamp(16px, 3vw, 36px); }
.viewer-info h2 { font-size: clamp(1.5rem, 4vw, 2.9rem); line-height: 1; letter-spacing: -.045em; margin-bottom: 8px; }
.viewer-info p { line-height: 1.5; }
#project-credit, #project-note { color: var(--secondary); }
#project-note { margin-top: 10px; }
#project-source { display: inline-block; margin-top: 14px; color: var(--accent); }
#project-source:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; gap: 25px; }
  h1 { font-size: clamp(3.85rem, 12.8vw, 6.7rem); }
  .caption { flex-direction: column; gap: 4px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .bar { min-height: 60px; gap: 10px; }
  .wordmark { gap: 8px; font-size: .9375rem; }
  .mark { width: 13px; height: 13px; }
  nav { gap: 14px; font-size: .875rem; }
  .contact-nav { padding: 6px 8px; }
  .gallery { grid-template-columns: 1fr; }
  .opening .frame { aspect-ratio: 1.65; }
  .caption { flex-direction: row; }
  .play { width: 38px; height: 38px; bottom: 10px; right: 10px; }
  .viewer-info { grid-template-columns: 1fr; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
