@font-face{font-family:Onest;src:url('assets/Onest.ttf') format('truetype');font-weight:100 900;font-display:swap}
:root{color-scheme:dark;--bg:#101114;--ink:#f3f4f6;--muted:#a5a7b1;--line:#32343e;--surface:#1b1d24;--accent:#b3bfff;--button:#f3f4f6;--button-ink:#101114;--pad:clamp(22px,5vw,88px);--ease:cubic-bezier(.22,1,.36,1)}
html[data-theme=light]{color-scheme:light;--bg:#f8f9fc;--ink:#171922;--muted:#5c6071;--line:#d8dce7;--surface:#e9ecf5;--accent:#3c4ec2;--button:#171922;--button-ink:#f8f9fc}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Onest,Arial,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}a,button{-webkit-tap-highlight-color:transparent}button,a{text-underline-offset:5px}button:focus-visible,a:focus-visible,video:focus-visible{outline:3px solid var(--accent);outline-offset:5px}button{border:0}img{display:block;max-width:100%}h1,h2,h3,h4,p{margin:0}h1,h2,h3,h4{text-wrap:balance}p{text-wrap:pretty}button svg{width:21px;height:21px}.wrap{width:min(1600px,100%);padding-inline:var(--pad);margin-inline:auto}.skip{position:fixed;left:20px;top:12px;transform:translateY(-160%);background:var(--ink);color:var(--bg);padding:12px;z-index:50}.skip:focus{transform:none}
.header{height:106px;display:flex;align-items:center;justify-content:space-between}.wordmark{font-size:38px;font-weight:760;letter-spacing:-2.3px;line-height:1}.logo-dot{color:var(--accent)}nav{display:flex;align-items:center;gap:30px;font-size:14px}nav>a:not(.nav-contact):hover{color:var(--accent)}.theme{background:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%}.theme:hover{background:var(--surface)}.nav-contact{border:1px solid var(--line);border-radius:30px;padding:12px 19px;display:flex;gap:26px;align-items:center}.nav-contact:hover{background:var(--ink);color:var(--bg)}
.hero{display:grid;grid-template-columns:1fr 1.1fr;gap:50px;min-height:650px;padding-top:44px;padding-bottom:74px;align-items:center}.intro{color:var(--muted);font-size:13px;font-weight:450}.hero h1{font-size:clamp(64px,7.1vw,116px);line-height:.99;font-weight:560;letter-spacing:-.065em;margin:27px 0}.hero-description{color:var(--muted);font-size:17px;line-height:1.7}.work-link{display:inline-flex;align-items:center;gap:13px;font-size:14px;margin-top:30px}.round{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;font-size:19px;transition:transform 250ms var(--ease),background 250ms}.work-link:hover .round{transform:translateY(3px);background:var(--surface)}
.work{padding-top:45px;padding-bottom:85px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:25px}.section-heading h2{font-size:clamp(27px,3vw,44px);font-weight:470;letter-spacing:-1.7px}.section-heading p{font-size:13px;color:var(--muted)}.work-tools{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:32px 0 34px}.filters{display:flex;gap:6px;flex-wrap:wrap}.filters button{border:1px solid transparent;background:none;border-radius:25px;padding:10px 17px;font-size:13px;color:var(--muted)}.filters button[aria-pressed=true]{background:var(--button);color:var(--button-ink)}.filters button:hover{border-color:var(--muted)}.filters button span{font-size:10px;vertical-align:top;padding-left:6px}.work-tools>span{font-size:11px;color:var(--muted);white-space:nowrap}.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;row-gap:52px}.project[hidden]{display:none}.project-media{position:relative;background:var(--surface);width:100%;height:clamp(300px,32vw,480px);padding:0;border-radius:7px;overflow:hidden;display:flex;align-items:center;justify-content:center}.project-media>img{height:100%;width:100%;object-fit:contain;transition:transform 550ms var(--ease)}.project-media:hover img{transform:scale(1.025)}.duration{position:absolute;top:14px;right:14px;font-size:11px;padding:5px 9px;background:#111c;color:#fff;border-radius:20px;font-variant-numeric:tabular-nums}.watch{position:absolute;bottom:16px;left:16px;display:flex;gap:10px;align-items:center;background:#f9fafbee;color:#111;padding:9px 15px;font-size:12px;border-radius:25px;transition:transform 250ms var(--ease)}.project-media:hover .watch{transform:translateY(-3px)}.watch>span{font-size:10px}.project-meta{display:flex;justify-content:space-between;gap:14px;align-items:baseline;margin-top:18px}.project-meta h4{font-size:20px;font-weight:500;letter-spacing:-.6px}.project-meta>span{font-size:11px;color:var(--muted);flex-shrink:0}.project>p{font-size:13px;line-height:1.65;color:var(--muted);margin-top:10px;max-width:42ch}.project-type{display:block;font-size:11px;color:var(--muted);margin-top:15px}
.about{display:grid;grid-template-columns:1fr 1fr;gap:70px;border-top:1px solid var(--line);padding-top:65px;padding-bottom:70px}.about h2{font-size:clamp(32px,3.9vw,58px);font-weight:450;line-height:1.14;letter-spacing:-2px;margin-top:21px}.about-content{max-width:500px}.about-lead{font-size:24px;line-height:1.5;letter-spacing:-.5px}.about-content>p+p{margin-top:23px;font-size:15px;line-height:1.8;color:var(--muted)}.capabilities{display:flex;gap:8px;flex-wrap:wrap;margin-top:29px}.capabilities span{border:1px solid var(--line);border-radius:20px;padding:7px 12px;font-size:11px;color:var(--muted)}
.contact{border-top:1px solid var(--line);padding-top:75px;padding-bottom:70px}.contact>p:first-child{font-size:15px;color:var(--muted)}.contact h2{font-size:clamp(52px,8vw,120px);font-weight:480;line-height:1.02;letter-spacing:-.06em;margin:27px 0 33px}.contact-link{display:inline-flex;align-items:center;gap:35px;padding:15px 17px 15px 25px;border:1px solid var(--line);border-radius:40px;font-size:15px;transition:background 200ms,color 200ms}.contact-link:hover{background:var(--ink);color:var(--bg)}.contact-arrow{width:35px;height:35px;border-radius:50%;background:var(--accent);color:var(--bg);display:grid;place-items:center;font-size:24px}.contact-note{font-size:13px;color:var(--muted);line-height:1.8;margin-top:26px}footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:28px;padding-bottom:30px;font-size:12px;color:var(--muted)}footer .wordmark{color:var(--ink);font-size:30px}footer>a:last-child:hover{text-decoration:underline}
dialog{border:1px solid #383c49;padding:0;border-radius:12px;background:#111319;color:#f3f4f6;width:min(1020px,94vw);max-height:94svh;overscroll-behavior:contain;box-shadow:0 30px 100px #0009}dialog::backdrop{background:#060811df;backdrop-filter:blur(12px)}.modal-top,.modal-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px}.modal-top h2{font-size:16px;font-weight:450}.close{background:#272b36;border:1px solid #454a59;color:#fff;border-radius:23px;padding:9px 14px;white-space:nowrap;font-size:12px;min-height:42px}.close span{font-size:16px;padding-left:10px}.close:hover{background:#3b4152}.modal-bottom{font-size:11px;color:#a3a9ba}dialog video{display:block;width:100%;height:auto;max-height:min(70svh,660px);aspect-ratio:var(--video-ratio,16/9);background:#050608;object-fit:contain}.video-error{padding:15px 22px;color:#e9b8b8;font-size:13px}.video-error a{text-decoration:underline;color:#fff}
@media(min-width:900px) and (prefers-reduced-motion:no-preference){.hero-copy{animation:enter .7s var(--ease) both}.hero-stage{animation:enter .9s .06s var(--ease) both}@keyframes enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}}
@media(max-width:1100px){.hero{gap:28px;grid-template-columns:1fr 1fr;min-height:600px}.section-heading{align-items:start;flex-direction:column;gap:8px}.project-meta h4{font-size:18px}.about{gap:35px}}
@media(max-width:760px){.header{height:84px}.wordmark{font-size:32px}nav{gap:12px}nav>a[href='#about']{display:none}.nav-contact{font-size:12px;padding:10px 13px;gap:13px}.hero{grid-template-columns:1fr;padding-top:25px;gap:30px;padding-bottom:45px}.hero h1{font-size:clamp(66px,14vw,100px);margin:22px 0}.hero-description{font-size:16px}.work{padding-top:35px;padding-bottom:45px}.work-tools{align-items:start;flex-direction:column;margin:24px 0}.filters button{font-size:12px;padding:9px 13px}.projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px 15px}.project-media{height:auto;aspect-ratio:9/16}.project-media>img{object-fit:contain}.project-meta{margin-top:13px}.project-meta h4{font-size:17px;line-height:1.3}.project-meta>span{display:none}.project>p{font-size:12px;margin-top:9px}.project-type{font-size:10px}.duration{top:9px;right:9px;font-size:10px}.watch{bottom:10px;left:10px;padding:7px 10px;font-size:10px}.about{grid-template-columns:1fr;gap:27px;padding-block:45px}.about h2{font-size:39px}.about-lead{font-size:23px}.contact{padding-top:45px;padding-bottom:45px}.contact h2{font-size:clamp(48px,10vw,78px)}footer{flex-wrap:wrap;gap:20px}footer>span{width:100%;order:3;font-size:11px}.modal-top{padding:12px}.modal-top h2{font-size:13px}.modal-bottom{padding:12px}.modal-bottom span:last-child{display:none}}
@media(max-width:760px){nav>a[href='#work']{display:none}.nav-contact{white-space:nowrap}.header{gap:20px}}
@media(max-width:380px){.header{gap:12px}nav{gap:6px}.theme{width:34px;height:34px}.nav-contact{font-size:11px;padding:9px 10px;gap:8px}.hero h1{font-size:clamp(52px,16vw,60px)}.projects{grid-template-columns:1fr}.project-media{max-height:72svh}.intro{font-size:11px}}
/* Portrait previews use the footage frame itself, without a wider side panel. */
.project-media:not(.landscape-media){height:auto;aspect-ratio:9/16;border-radius:12px;background:transparent}
.project-media:not(.landscape-media)>img{object-fit:cover}
@media(max-width:380px){.project-media:not(.landscape-media){max-height:none}}

.project-group + .project-group {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.project-group-title {
  margin-bottom: 18px;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: -.025em;
}
.interface-projects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1050px) {
  .interface-projects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.landscape-media {
  height: auto;
  aspect-ratio: 16/9;
  max-height: none;
  border-radius: 12px;
}
.landscape-media > img { object-fit: cover; }
.landscape-media .watch {
  left: auto;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 0 2px;
  box-shadow: 0 4px 16px #0002;
}
.interface-projects .project > p { max-width: 52ch; }
.interface-projects .project-meta > span { display: block; }

.hero-stage {
  position: relative;
  height: 480px;
  isolation: isolate;
  min-width: 0;
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.stage-head h2 { font: inherit; }
.stage-head span { text-align: right; }

.hero-shot {
  position: absolute;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 22px 60px #0005;
  background: var(--surface);
  padding: 0;
  transition: transform 600ms var(--ease);
}

.hero-shot img { width: 100%; height: 100%; object-fit: cover; }
.shot-back { height: 315px; aspect-ratio: 9/16; top: 91px; left: 4%; transform: rotate(-9deg); }
.shot-blog { height: 310px; aspect-ratio: 9/16; top: 52px; right: 3%; transform: rotate(8deg); }
.shot-front { z-index: 2; width: 72%; aspect-ratio: 16/9; top: 170px; right: 12%; transform: rotate(2.5deg); }
.shot-back:focus-visible, .shot-blog:focus-visible { z-index: 3; }

.hero-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  padding-left: 3px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fffffff0;
  color: #111;
  font-size: 18px;
  box-shadow: 0 5px 20px #0003;
}

.shot-label {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 12px 12px;
  background: linear-gradient(transparent, #000b);
  color: #fff;
  font-size: 11px;
  text-align: left;
}

.shot-back .hero-play, .shot-blog .hero-play {
  top: 9px;
  right: 9px;
  left: auto;
  transform: none;
  width: 27px;
  height: 27px;
  font-size: 10px;
}

.shot-back .shot-label, .shot-blog .shot-label {
  inset: 0 0 auto;
  padding: 14px 36px 24px 10px;
  background: linear-gradient(#000a, transparent);
  font-size: 10px;
}

@media (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .shot-back:focus-visible { transform: rotate(-6deg) translateY(-7px); }
  .shot-blog:focus-visible { transform: rotate(5deg) translateY(-7px); }
  .shot-front:focus-visible { transform: rotate(0deg) translateY(-7px); }
}

@media (min-width: 821px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .shot-back:hover { transform: rotate(-6deg) translateY(-7px); z-index: 3; }
  .shot-blog:hover { transform: rotate(5deg) translateY(-7px); z-index: 3; }
  .shot-front:hover { transform: rotate(0deg) translateY(-7px); }
}

@media (max-width: 1100px) {
  .hero-stage { height: 405px; }
  .shot-front { top: 150px; }
  .shot-back { height: clamp(210px, 25vw, 280px); left: 3%; top: 77px; }
  .shot-blog { height: clamp(205px, 24vw, 270px); right: 2%; top: 47px; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 18px; padding-top: 16px; }
  .hero h1 { margin-block: 16px; }
  .work-link { margin-top: 16px; }

  .hero-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 560px);
    height: auto;
    justify-self: center;
    gap: 9px;
  }

  .hero-stage .hero-shot { position: relative; inset: auto; width: 100%; height: auto; transform: none; }
  .stage-head, .shot-front { grid-column: 1 / -1; }
  .stage-head { padding-bottom: 8px; }
  .stage-head > span { display: none; }
  .shot-blog, .shot-back { aspect-ratio: 16/9; }
  .shot-blog img { object-position: center 32%; }
  .shot-back img { object-position: center 52%; }
  .shot-back .shot-label, .shot-blog .shot-label {
    inset: auto 0 0;
    padding: 20px 8px 7px;
    background: linear-gradient(transparent, #000d);
  }
}

body { isolation: isolate; }

.page-dots {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, #729bce22 .9px, transparent 1.1px) center / 23px 23px;
}

html[data-theme=light] .page-dots {
  background-image: radial-gradient(circle, #5276ad20 .9px, transparent 1.1px);
}

html .page-dots.is-painted { background-image: none; }

.motion-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
}

.motion-toggle:hover,
.motion-toggle:focus-visible { color: var(--ink); background: var(--surface); }

.motion-toggle::before {
  content: '';
  width: 10px;
  height: 13px;
  border-inline: 2px solid currentColor;
}

.motion-toggle[aria-pressed=true]::before {
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 760px) {
  .motion-toggle { width: 38px; }
}

@media (max-width: 380px) {
  .header { padding-inline: 16px; }
  .motion-toggle { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-background-motion] .motion-toggle { display: grid; }
}

.project-group[hidden] + .project-group {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 760px) {
  .interface-projects { grid-template-columns: 1fr; gap: 28px; }
  .project-group + .project-group { margin-top: 42px; padding-top: 24px; }
  .hero-play { width: 44px; height: 44px; font-size: 14px; }
  .landscape-media .watch { right: 10px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: no-preference) {
  .interface-projects.is-entering > .project { animation: project-enter 460ms var(--ease) both; }
  .interface-projects.is-entering > .project:nth-child(2) { animation-delay: 55ms; }
  .interface-projects.is-entering > .project:nth-child(3) { animation-delay: 110ms; }
  dialog[open] { animation: viewer-enter 220ms var(--ease) both; }
  @keyframes project-enter {
    from { transform: translateY(8px); opacity: .82; }
    to { transform: translateY(0); opacity: 1; }
  }
  @keyframes viewer-enter {
    from { opacity: .4; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}
