@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root { color-scheme: dark; --ink: #e9e7df; --muted: #9c9c99; --line: #30302d; --acid: #e0001a; --acid-deep: #a90013; --project-caption-bg: #2a0508; --paper: #151514; --header-bg: rgba(10, 0, 0, .6); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #0c0c0b; color: var(--ink); font-family: 'Space Grotesk', Arial, sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header { position: sticky; top: 0; z-index: 20; height: 80px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--line); background: var(--header-bg); backdrop-filter: blur(12px); }
.wordmark { font: 700 clamp(1.35rem, 2vw, 1.65rem)/1 'DM Mono', monospace; letter-spacing: -.11em; }
.wordmark span { color: var(--acid); }
nav { display: flex; gap: clamp(.55rem, 1.4vw, 1.35rem); font: 500 .67rem 'DM Mono', monospace; text-transform: uppercase; white-space: nowrap; }
nav a { position: relative; padding: .45rem 0 .55rem; transition: color .2s ease; }
nav a::after { content: ''; position: absolute; right: 0; bottom: .15rem; left: 0; height: 2px; background: var(--acid); transform: scaleX(0); transform-origin: right; transition: transform .24s ease; }
nav a:hover, nav a.is-active, .socials a:hover { color: var(--acid); }
nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.socials a { transition: color .2s ease; }
.menu-toggle { display: none; }

main { max-width: 1600px; margin: auto; }
.hero { min-height: min(670px, calc(100vh - 80px)); padding: clamp(5rem, 12vw, 11rem) 4vw 4rem; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; width: clamp(64px, 7vw, 120px); height: clamp(64px, 7vw, 120px); right: 34vw; top: 14%; background: var(--acid-deep); box-shadow: 12vw 4vw 0 var(--acid), 25vw 1vw 0 var(--acid-deep), 6vw 16vw 0 var(--acid), 19vw 19vw 0 var(--acid-deep), 31vw 15vw 0 var(--acid); transform: rotate(-7deg); opacity: .95; }
.hero::after { content: ''; position: absolute; z-index: -1; right: -1vw; top: 8%; width: min(37vw, 580px); aspect-ratio: 1; background: linear-gradient(var(--acid) 0 0) 0 0 / 28% 28% no-repeat, linear-gradient(var(--acid-deep) 0 0) 37% 8% / 22% 22% no-repeat, linear-gradient(var(--acid) 0 0) 70% 2% / 30% 30% no-repeat, linear-gradient(var(--acid-deep) 0 0) 14% 43% / 34% 34% no-repeat, linear-gradient(var(--acid) 0 0) 56% 47% / 20% 20% no-repeat, linear-gradient(var(--acid) 0 0) 75% 64% / 27% 27% no-repeat, linear-gradient(var(--acid-deep) 0 0) 38% 77% / 25% 25% no-repeat; transform: rotate(8deg); opacity: .96; }
.eyebrow, .section-heading p, footer p { color: var(--muted); font: 400 .72rem 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.hero h1 { font-size: clamp(4.5rem, 13.1vw, 12rem); letter-spacing: -.1em; line-height: .76; margin: 1rem 0 2.5rem -.08em; max-width: 1000px; }
.hero h1 em { font-family: Georgia, serif; color: var(--acid); font-weight: 400; }

.projects { padding: clamp(4rem, 8vw, 8rem) 4vw; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.4rem; }
h2 { font-size: clamp(1.7rem, 4vw, 3.6rem); letter-spacing: -.065em; margin: 0; }
.project-category { position: relative; padding: 1.8rem 0 4.75rem; scroll-margin-top: 100px; }
.project-category::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--acid) 0%, var(--acid) 38%, rgba(224, 0, 26, .45) 65%, transparent 100%); }
.project-category:last-child { padding-bottom: 0; }
.project-category h3 { position: relative; isolation: isolate; width: fit-content; padding: .15rem .2rem .25rem 3.6rem; font: 700 clamp(1.8rem, 4vw, 4rem)/.85 'Space Grotesk', Arial, sans-serif; letter-spacing: -.07em; text-transform: uppercase; margin: 0 0 1.6rem; color: var(--ink); scroll-margin-top: 100px; }
.project-category h3::before { content: ''; position: absolute; z-index: -1; left: 0; top: .1rem; width: clamp(1.6rem, 3vw, 2.8rem); aspect-ratio: 1; background: var(--acid); box-shadow: clamp(1rem, 1.9vw, 1.8rem) clamp(1rem, 1.9vw, 1.8rem) 0 var(--acid-deep), clamp(2rem, 3.8vw, 3.6rem) 0 0 var(--acid-deep); }
.project-category h3::after { content: ''; position: absolute; z-index: -2; inset: -.6rem -.8rem -.55rem 0; border-left: 1px solid var(--acid); background: linear-gradient(90deg, rgba(224, 0, 26, .13), transparent 72%); }
.project-category-description { max-width: 44rem; margin: -0.55rem 0 1.6rem 3.6rem; color: var(--muted); font-size: clamp(.95rem, 1.4vw, 1.1rem); line-height: 1.55; }
.project-category-link { display: inline-block; margin-top: 1.35rem; color: var(--acid); border-bottom: 1px solid var(--acid); padding-bottom: .28rem; font: 500 .76rem 'DM Mono', monospace; text-transform: uppercase; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.project { appearance: none; -webkit-appearance: none; display: block; border: 0; padding: 0; min-width: 0; text-align: left; color: #fff; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.project-thumbnail { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: #222; }
.project img { width: 100%; height: 100%; object-fit: cover; display: block; filter: none; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.project:hover img, .project:focus-visible img { transform: scale(1.06); }
.project:focus { outline: none; }
.project:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; }
.project-name { position: relative; display: block; min-width: 0; min-height: calc(1.1em + 1.3rem); padding: .65rem .8rem; overflow: hidden; white-space: nowrap; background: var(--project-caption-bg); font: 300 clamp(1.1rem, 1.8vw, 1.7rem)/1.1 'Space Grotesk', Arial, sans-serif; letter-spacing: -.04em; }
.project-name::after { content: ''; position: absolute; inset: 0 0 0 auto; width: 2.4em; background: linear-gradient(90deg, transparent, var(--project-caption-bg) 84%); pointer-events: none; }
.play { position: absolute; right: 1.2rem; bottom: 1.15rem; background: var(--acid); color: #fff; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 0; padding-left: 2px; font-size: .74rem; }
.project-carousel-viewport { position: relative; min-width: 0; overflow: hidden; }
.project-page.is-transitioning { position: absolute; inset: 0; width: 100%; }
.project-page[hidden] { display: none !important; }
.project-carousel-controls { display: grid; grid-template-columns: 2.15rem minmax(0, 1fr) 2.15rem; align-items: center; gap: .75rem; margin-top: 1rem; }
.project-carousel-pagination { display: flex; justify-content: center; gap: .45rem; align-items: center; min-width: 0; }
.project-carousel-controls > .carousel-arrow:first-child { grid-column: 1; }
.project-carousel-controls > .project-carousel-pagination { grid-column: 2; }
.project-carousel-controls > .carousel-arrow:last-child { grid-column: 3; }
.carousel-dot, .carousel-arrow { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.carousel-dot { width: .65rem; height: .65rem; padding: 0; }
.carousel-dot:hover, .carousel-dot:focus-visible, .carousel-dot.is-active { background: var(--acid); border-color: var(--acid); }
.carousel-arrow { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.carousel-arrow[hidden] { display: none !important; }
.carousel-arrow:hover, .carousel-arrow:focus-visible { border-color: var(--acid); color: var(--acid); }
.carousel-dot:focus-visible, .carousel-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.project-empty { margin: 0; color: var(--muted); font: 400 .82rem 'DM Mono', monospace; }

.what-i-do { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; padding: clamp(4rem, 8vw, 8rem) 4vw; border-top: 1px solid var(--line); }
.what-i-do ul { list-style: none; padding: 0; margin: -.7rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.what-i-do li { padding: .95rem 0; border-top: 1px solid var(--line); font-size: clamp(1.15rem, 2.2vw, 1.85rem); letter-spacing: -.045em; }
.what-i-do li:last-child { border-bottom: 1px solid var(--line); }

footer { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; padding: clamp(3rem, 6vw, 6rem) 4vw 2.5rem; }
.contact-label { color: var(--ink); font-size: clamp(1.7rem, 4.2vw, 4rem); letter-spacing: -.07em; line-height: .9; margin: 0; }
.contact-details { display: flex; flex-direction: column; gap: .4rem; font: 500 clamp(1rem, 1.5vw, 1.35rem) 'DM Mono', monospace; }
.contact-details a { width: fit-content; border-bottom: 1px solid var(--acid); }
.socials { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.3rem; font: 400 .72rem 'DM Mono', monospace; text-transform: uppercase; }
footer > p:last-child { grid-column: 1 / -1; margin: 2rem 0 0; }

.video-dialog { color: var(--ink); background: #121211; width: min(1100px, calc(100vw - 2rem), calc(177.78dvh - 19.56rem)); padding: 0; border: 1px solid #4a4a45; }
.video-dialog::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(7px); }
.dialog-top { height: 62px; padding: 0 1rem 0 1.35rem; display: flex; align-items: center; justify-content: space-between; font: 500 .78rem 'DM Mono', monospace; text-transform: uppercase; }
.close-button { appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); width: 35px; height: 35px; border-radius: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.close-button:hover { border-color: var(--acid); color: var(--acid); }
.video-player-shell:fullscreen { width: 100vw; height: 100dvh; display: flex; flex-direction: column; background: #050505; }
.video-player-shell:fullscreen .video-frame { flex: 1; min-height: 0; aspect-ratio: auto; }
.video-frame { aspect-ratio: 16 / 9; background: #050505; }
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.video-controls { display: flex; align-items: center; gap: .9rem; padding: .75rem 1rem; border-top: 1px solid var(--line); font: 500 .75rem 'DM Mono', monospace; }
.video-controls[hidden] { display: none; }
.video-controls.is-native-fallback { justify-content: flex-end; }
.video-controls.is-native-fallback .video-toggle, .video-controls.is-native-fallback .video-time, .video-controls.is-native-fallback .video-progress { display: none; }
.video-toggle, .video-fullscreen { appearance: none; flex: none; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); font-size: 1rem; cursor: pointer; }
.video-fullscreen { font-size: 1.5rem; line-height: 1; }
.video-fullscreen[hidden] { display: none; }
.video-toggle:hover:not(:disabled), .video-toggle:focus-visible, .video-fullscreen:hover, .video-fullscreen:focus-visible { border-color: var(--acid); color: var(--acid); }
.video-toggle:disabled { opacity: .45; cursor: wait; }
.video-time { flex: none; min-width: 3.5em; text-align: center; font-variant-numeric: tabular-nums; }
.video-progress { flex: 1; min-width: 0; accent-color: var(--acid); cursor: pointer; }
.video-progress:disabled { opacity: .45; cursor: wait; }
.video-direct-link { display: block; width: fit-content; margin: .8rem 1rem; border-bottom: 1px solid var(--acid); color: var(--acid); font: 500 .75rem 'DM Mono', monospace; text-transform: uppercase; padding-bottom: .2rem; }
.video-direct-link[hidden] { display: none; }
.video-unavailable { height: 100%; display: grid; place-content: center; text-align: center; padding: 2rem; }
.video-unavailable p { color: var(--muted); max-width: 25rem; line-height: 1.5; }
.video-unavailable a { justify-self: center; border-bottom: 1px solid var(--acid); color: var(--acid); font: 500 .8rem 'DM Mono', monospace; text-transform: uppercase; padding-bottom: .3rem; }

@media (max-width: 700px) {
  .site-header { height: 64px; min-height: 64px; padding-top: 0; padding-bottom: 0; align-items: center; } .menu-toggle { display: inline-flex; align-items: center; gap: .55rem; appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: .55rem .7rem; font: 500 .65rem 'DM Mono', monospace; text-transform: uppercase; -webkit-tap-highlight-color: transparent; } .menu-toggle span { color: var(--acid); font-size: 1rem; line-height: .6; transition: transform .2s ease; } .site-header.is-menu-open .menu-toggle span { transform: rotate(45deg); } .site-header nav { display: none; position: absolute; z-index: 1; top: 64px; left: 0; right: 0; max-width: none; padding: 1rem 4vw 1.2rem; flex-direction: column; align-items: flex-start; gap: .85rem; background: rgba(12, 12, 11, .99); border-bottom: 1px solid var(--line); font-size: .72rem; } .site-header nav a { padding: .2rem 0 .45rem; } .site-header nav a::after { bottom: 0; } .site-header.is-menu-open nav { display: flex; } .hero { min-height: 530px; } .hero::before { opacity: .6; right: 45vw; } .hero::after { width: 60vw; opacity: .7; }
  .project-carousel-controls { grid-template-columns: 2rem minmax(0, 1fr) 2rem; gap: .35rem; } .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .project-category { padding-top: 1.4rem; padding-bottom: 3.5rem; } .project-category h3 { padding-left: 2.7rem; margin-bottom: 1.2rem; } .project-category-description { margin-left: 2.7rem; }
  .project-name { font-size: 1.1rem; } .play { right: .8rem; bottom: .75rem; width: 32px; height: 32px; }
  .what-i-do { grid-template-columns: 1fr; } .what-i-do ul { grid-template-columns: 1fr; } .what-i-do li:last-child { border-bottom: 0; } footer { grid-template-columns: 1fr; } .socials { justify-content: flex-start; }
}

@media (pointer: coarse) {
  .project:focus-visible { outline: none; }
}
