@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #141613;
  --ink: #f1f2eb;
  --muted: #aab0a3;
  --accent: #d4f970;
  --line: #34392f;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
::selection { background: var(--accent); color: var(--bg); }
.wrap { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 10; transform: translateY(-200%); padding: .7rem 1rem; background: var(--ink); color: var(--bg); }
.skip:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -.04em; }
.wordmark span { color: var(--accent); }
nav { display: flex; gap: 2rem; font-size: .9rem; }
nav a { padding-block: .4rem; color: var(--muted); }
nav a:hover, .text-link:hover, footer a:hover { color: var(--accent); }
.hero { padding-block: 2.75rem 3rem; }
.hero-copy { display: flex; align-items: center; gap: 2rem; padding-bottom: 2.25rem; }
.hero-heading { min-width: 0; }
.hero-portrait { width: clamp(7rem, 14vw, 10.5rem); height: auto; aspect-ratio: 1; flex-shrink: 0; border-radius: 12px; border: 1px solid var(--line); }
.eyebrow { color: var(--accent); font-size: .875rem; margin-bottom: 1.2rem; }
h1 { font-size: clamp(3rem, 5.3vw, 4.65rem); font-weight: 600; letter-spacing: -.06em; line-height: 1.04; }
h1 em { color: var(--accent); font-style: normal; }
.hero-intro { font-size: 1.125rem; line-height: 1.65; color: var(--muted); margin-top: 1rem; }
.hero-stage { min-width: 0; }
.hero-gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); grid-template-areas: "cubric cubric cubric cubric rooms rooms rooms builder builder builder wand wand" "cubric cubric cubric cubric rooms rooms rooms builder builder builder wand wand" "cubric cubric cubric cubric rooms rooms rooms pipeline pipeline pipeline stretch stretch" "story story story story rooms rooms rooms pipeline pipeline pipeline stretch stretch" "story story story story rooms rooms rooms trivia trivia trivia stretch stretch" "story story story story rooms rooms rooms trivia trivia trivia stretch stretch"; gap: .875rem; height: clamp(26rem, 42vw, 33rem); }
.hero-project { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #ffffff1c; border-radius: 8px; background: #20251c; transition: transform 180ms ease, border-color 180ms ease; }
.hero-media { position: relative; width: 100%; min-height: 0; flex: 1 1 0; overflow: hidden; }
.hero-media > img, .hero-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media > video { pointer-events: none; }
.hero-cubric { grid-area: cubric; }
.hero-story { grid-area: story; }
.hero-rooms { grid-area: rooms; margin-block: 1.5rem; background: #25251e; }
.hero-rooms img { object-position: 48% center; }
.hero-builder { grid-area: builder; margin-top: .75rem; }
.hero-wand { grid-area: wand; }
.hero-pipeline { grid-area: pipeline; }
.hero-stretch { grid-area: stretch; margin-bottom: 1rem; }
.hero-trivia { grid-area: trivia; }
.hero-play { position: absolute; top: .55rem; right: .55rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; padding-left: .1rem; border-radius: 50%; background: #141613d9; color: var(--ink); font-size: .7rem; }
.hero-caption { display: grid; gap: .15rem; flex-shrink: 0; padding: .7rem .85rem .8rem; line-height: 1.35; }
.hero-project-name { font-family: var(--display); font-size: 1rem; font-weight: 500; }
.hero-project-role { color: var(--muted); font-size: .875rem; }
.hero-builder .hero-caption, .hero-wand .hero-caption, .hero-pipeline .hero-caption, .hero-trivia .hero-caption, .hero-stretch .hero-caption { padding: .5rem .65rem; }
.hero-builder .hero-project-name, .hero-wand .hero-project-name, .hero-pipeline .hero-project-name, .hero-trivia .hero-project-name, .hero-stretch .hero-project-name { font-size: .875rem; }
.hero-project:hover, .hero-project:focus-visible { border-color: var(--accent); transform: translateY(-4px); }
.hero-project:hover .hero-project-name, .hero-project:focus-visible .hero-project-name { color: var(--accent); }
.preview-controls { display: flex; justify-content: end; min-height: 2.5rem; padding-top: .5rem; }
.preview-toggle { border: 0; padding: .25rem 0 .25rem .75rem; background: none; color: var(--muted); font-size: .875rem; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.preview-toggle:hover { color: var(--accent); }
.section { padding-block: 2rem 3.5rem; scroll-margin-top: 1.5rem; }
.section-heading { display: flex; justify-content: space-between; gap: 1rem 2rem; align-items: baseline; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.section-heading h2 { font-size: 1.35rem; letter-spacing: -.025em; }
.section-heading > span { color: var(--muted); font-size: .875rem; }
.section-intro { color: var(--muted); margin-top: 1.25rem; max-width: 620px; }
.project { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 3rem; padding-block: 3rem; border-bottom: 1px solid var(--line); align-items: start; scroll-margin-top: 2rem; }
.project:last-child { padding-bottom: 0; border-bottom: 0; }
.project-visual, .project-copy, .compact-project { min-width: 0; }
.media-link { display: block; position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 16 / 9; background: #090b08; border: 1px solid #ffffff12; border-radius: 5px; }
.media-link > img { width: 100%; height: 100%; object-fit: contain; }
.play-label { position: absolute; left: .9rem; bottom: .9rem; display: inline-flex; align-items: center; gap: .65rem; padding: .45rem .7rem; border-radius: 3px; background: #141613eb; color: var(--ink); font-size: .8rem; line-height: 1.5; box-shadow: 0 1px 10px #0003; }
.play-label > span { color: var(--accent); font-size: .7rem; }
.media-link:hover .play-label { background: var(--ink); color: var(--bg); }
.media-link:hover .play-label > span { color: var(--bg); }
.project-meta { color: var(--muted); font-size: .875rem; line-height: 1.5; margin-bottom: .65rem; }
.project h3 { font-size: clamp(1.7rem, 2.5vw, 2.2rem); letter-spacing: -.04em; }
.project-copy > p:not(.project-meta) { margin-top: 1rem; color: var(--muted); }
.project-copy > .project-lede { color: var(--ink) !important; font-size: 1.13rem; line-height: 1.5; margin-top: .7rem !important; }
.project-copy > .technical-note { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .875rem; line-height: 1.6; }
.technical-note > span { display: block; color: var(--ink); font-weight: 500; margin-bottom: .35rem; }
.text-link { display: inline-block; font-size: .875rem; text-decoration: underline; text-decoration-color: #7e8774; text-underline-offset: 5px; }
.project-copy > .text-link, .project-links { margin-top: 1.25rem; }
.project-links { display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; }
.portrait-media > img { object-fit: contain; }
.rooms-media { background: #26251d; }
.stretch-media { background: #29352a; }
.secondary-video { display: flex; align-items: center; gap: 1rem; aspect-ratio: auto; margin-top: .75rem; padding: .55rem; background: #1d211a; }
.secondary-video > img { width: 112px; height: 63px; border-radius: 2px; flex-shrink: 0; object-fit: cover; }
.secondary-video .play-label { position: static; background: none; box-shadow: none; padding: 0 .5rem 0 0; }
.secondary-video:hover { border-color: #7e8774; }
.secondary-video:hover .play-label { background: none; color: var(--ink); }
.secondary-video:hover .play-label > span { color: var(--accent); }
.app-grid, .experiment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.6rem; margin-top: 2rem; }
.compact-project { display: flex; flex-direction: column; align-items: start; }
.compact-project .media-link { width: 100%; margin-bottom: 1.15rem; }
.compact-project h3 { font-size: 1.4rem; letter-spacing: -.025em; }
.compact-project > p:not(.project-meta) { color: var(--muted); font-size: 1rem; margin-top: .7rem; }
.compact-project .text-link { margin-top: auto; padding-top: 1rem; }
.experiment h3 { font-size: 1.2rem; line-height: 1.3; }
.experiment .media-link { margin-bottom: 1rem; }
.technology { margin-block: 1rem 2rem; padding: 2.5rem; background: #1c2119; border: 1px solid var(--line); border-radius: 6px; }
.technology-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 2rem; }
.technology-heading h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.technology-heading > p { max-width: 470px; color: var(--muted); font-size: .98rem; }
.technology-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; }
.technology-group { min-width: 0; border-top: 1px solid #454f3b; padding-top: 1.25rem; }
.technology-group h3 { color: var(--accent); font-size: 1rem; }
.technology-list { display: flex; flex-wrap: wrap; gap: .4rem 0; list-style: none; margin: .9rem 0 .7rem; padding: 0; }
.technology-list li { font-size: .92rem; line-height: 1.4; padding-right: .75rem; margin-right: .75rem; border-right: 1px solid #535e46; }
.technology-list li:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.technology-group > p { color: var(--muted); font-size: .875rem; line-height: 1.6; max-width: 480px; }
.contact { display: flex; justify-content: space-between; align-items: center; gap: 2rem; border-top: 1px solid var(--line); margin-top: 1.5rem; padding-block: 3rem; }
.contact h2 { font-size: 2.5rem; letter-spacing: -.04em; }
.contact p { color: var(--muted); max-width: 530px; margin-top: 1rem; }
.contact-links { display: flex; flex-direction: column; align-items: start; gap: .75rem; }
.contact-links a { text-decoration: underline; text-underline-offset: 5px; }
.contact-links a:hover { color: var(--accent); }
footer { display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; font-size: .8rem; color: var(--muted); }
.video-dialog { width: min(1040px, calc(100% - 32px)); max-height: 92dvh; margin: auto; padding: 1.25rem; border: 1px solid #5c6553; border-radius: 6px; background: var(--bg); color: var(--ink); overflow: auto; }
.video-dialog::backdrop { background: #000d; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.dialog-header h2 { font-size: 1.2rem; line-height: 1.35; }
.close-video { min-width: 44px; min-height: 44px; padding: .25rem; border: 1px solid var(--line); border-radius: 4px; background: #252b20; color: var(--ink); cursor: pointer; }
.close-video:hover { background: #3c4634; }
#video-player { aspect-ratio: 16 / 9; background: #000; }
#video-player iframe, #video-player video { display: block; border: 0; width: 100%; height: 100%; }
#video-description { margin-top: 1rem; font-size: .9rem; color: var(--muted); }
.video-dialog > .text-link { margin-top: 1rem; }
#video-story:not([hidden]) + .text-link { margin-left: 1.5rem; }
#video-story[hidden] { display: none; }
.video-dialog.portrait-video { width: min(600px, calc(100% - 32px)); }
.portrait-video #video-player { aspect-ratio: auto; height: min(62dvh, 720px); }
.portrait-video #video-player video { object-fit: contain; }
.video-open { overflow: hidden; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .project { gap: 2rem; grid-template-columns: 1fr 1fr; }
  .hero .eyebrow { font-size: .875rem; }
  .hero-intro { font-size: 1rem; }
  .hero-gallery { gap: .65rem; }
  .hero-caption { padding: .65rem; }
  .app-grid, .experiment-grid { gap: 2rem 1.25rem; }
  .app-grid .project-meta { min-height: 2.35rem; }
  .play-label { left: .6rem; bottom: .6rem; font-size: .75rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-block: 1.25rem; }
  nav { gap: 1.2rem; font-size: .85rem; }
  .hero { padding-block: 2rem 2.5rem; }
  .hero-copy { gap: 1.5rem; padding-bottom: 1.75rem; }
  h1 { font-size: clamp(3rem, 10vw, 4.75rem); }
  .hero-intro { margin-top: 1rem; }
  .hero-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(10, minmax(0, 1fr)); grid-template-areas: "cubric cubric rooms rooms" "cubric cubric rooms rooms" "story story rooms rooms" "story story rooms rooms" "builder builder stretch stretch" "builder builder stretch stretch" "pipeline pipeline stretch stretch" "pipeline pipeline stretch stretch" "trivia trivia wand wand" "trivia trivia wand wand"; height: clamp(52rem, 140vw, 64rem); }
  .hero-builder, .hero-stretch { margin-block: 0; }
  .hero-rooms { margin-block: 1rem; }
  .section { padding-block: 1rem 2.75rem; }
  .section-heading { flex-wrap: wrap; gap: .6rem; }
  .section-heading > span { display: none; }
  .project { grid-template-columns: 1fr; gap: 1.4rem; padding-block: 2rem; }
  .project h3 { font-size: 1.85rem; }
  .project-copy > p:not(.project-meta) { margin-top: .8rem; }
  .app-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .app-grid .project-meta { min-height: 0; }
  .compact-project .text-link { margin-top: 0; }
  .experiment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .technology { padding: 1.5rem; }
  .technology-heading { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.5rem; }
  .technology-heading h2 br { display: none; }
  .technology-grid { gap: 1.5rem; }
  .contact { display: block; padding-block: 2.5rem; }
  .contact-links { margin-top: 1.5rem; }
}
@media (max-width: 580px) {
  .hero-copy { flex-direction: column; align-items: start; gap: 1.25rem; }
  .hero-portrait { width: 5.5rem; }
  .technology-grid { grid-template-columns: 1fr; }
  .technology { padding: 1.25rem; }
}
@media (max-width: 420px) {
  .site-header { gap: .6rem 1rem; flex-wrap: wrap; }
  .wordmark { font-size: 1.05rem; }
  nav { gap: .8rem; font-size: .875rem; }
  .eyebrow { font-size: .875rem; }
  .hero-caption { padding: .6rem; }
  .hero-project-name { font-size: .875rem; }
  .experiment-grid { grid-template-columns: 1fr; }
  .secondary-video { gap: .65rem; }
  .secondary-video > img { width: 85px; height: 48px; }
  .secondary-video .play-label { font-size: .75rem; gap: .4rem; }
  .video-dialog { padding: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-project { transition: none; }
  .hero-project:hover, .hero-project:focus-visible { transform: none; }
}
