@font-face {
  font-family: Archivo;
  src: url(/fonts/Archivo.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #e9eaec;
  --ink: #0059ff;
  --ink-soft: rgb(0 89 255 / 0.6);
  --rule: rgb(0 89 255 / 0.22);
  --dark: #0b0d12;
  --gutter: clamp(16px, 2vw, 32px);
  --gap: clamp(10px, 1.4vw, 24px);
  --small: 11px;
  --body: clamp(15px, 0.5vw + 12px, 18px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--body)/1.45 Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ground); }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: var(--ground); padding: 8px 12px; }
.skip:focus { left: 8px; }

.label {
  margin: 0 0 12px; font-size: var(--small); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* condensed display type; main.js gives each letter its own width near the pointer */
.stage__title, .work__title, .others__h, .about__mail, .marquee {
  font-weight: 300; text-transform: uppercase; line-height: 0.82; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 66;
}
[data-flex] { white-space: nowrap; }
[data-flex] .ch { display: inline-block; white-space: pre; transition: font-variation-settings .5s var(--ease); }

/* ---- floating nav pill ---- */
.pill {
  position: fixed; top: 14px; left: 50%; translate: -50% 0; z-index: 40;
  display: flex; gap: 2px; padding: 4px;
  background: rgb(233 234 236 / .78); border: 1px solid var(--rule); border-radius: 99px;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  font-size: 12px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.pill a { padding: 7px 14px; border-radius: 99px; text-decoration: none; transition: background .25s, color .25s; }
.pill a:hover, .pill a.is-current { background: var(--ink); color: var(--ground); }
@media (max-width: 480px) { .pill__name { display: none; } .pill a { padding: 7px 12px; } }

/* current-section readout */
.now {
  position: fixed; left: var(--gutter); bottom: 14px; z-index: 39; margin: 0;
  font-size: var(--small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ground); mix-blend-mode: difference; pointer-events: none;
}
.now__n { display: inline-block; min-width: 3ch; }

/* ---- custom cursor (fine pointers only) ---- */
.cursor { display: none; }
@media (pointer: fine) {
  .has-cursor .cursor {
    display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 70;
    width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
    background: var(--ink); pointer-events: none;
    transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .2s;
  }
  .has-cursor .cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  .has-cursor .cursor.is-hidden { opacity: 0; }
  .cursor__label { color: var(--ground); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: 0; transition: opacity .2s; }
  .cursor.is-big .cursor__label { opacity: 1; }
  .has-cursor .tile, .has-cursor .player__play { cursor: none; }
}

/* ---- hero: the work first, a light name over it ---- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: grid; grid-template-rows: auto 1fr auto; padding: 88px var(--gutter) 44px;
}
.reel { position: absolute; inset: 0; display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 3px; background: var(--ground); }
.reel a { display: block; overflow: hidden; background: var(--dark); }
.reel video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .6s; }
.reel a:hover video { transform: scale(1.04); }
.hero__text, .hero__foot { position: relative; color: #fff; mix-blend-mode: difference; }
.hero__name {
  margin: 0; font-size: clamp(40px, 7vw, 120px); font-weight: 300; line-height: .95; letter-spacing: -0.02em;
  font-variation-settings: "wdth" 90;
}
.hero__statement { margin: 10px 0 0; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.hero__foot { grid-row: 3; display: flex; gap: 24px; align-items: end; justify-content: space-between; font-size: 13px; font-weight: 500; }
.hero__foot p { margin: 0; }
.hero__scroll { text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: var(--small); }
.hero__scroll span { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (max-width: 760px) {
  .reel { grid-template-columns: 1fr 1fr; grid-template-rows: 1.4fr 1fr; }
  .reel a:first-child { grid-row: span 2; }
  .hero__where { display: none; }
}

/* ---- marquee ---- */
.marquee { overflow: hidden; background: var(--ink); color: var(--ground); font-size: clamp(48px, 9vw, 150px); padding: .12em 0 .02em; }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee__track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- featured works ---- */
.feature { padding-bottom: clamp(80px, 12vw, 200px); }
.stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; color: var(--ground); }
.stage__media { position: absolute; inset: 0; background: var(--dark); overflow: hidden; }
.stage__media img, .stage__media video { width: 100%; height: 100%; object-fit: cover; }
.stage__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .35), transparent 40%); }
.stage__title {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 18px; margin: 0;
  font-size: clamp(56px, 13vw, 260px); white-space: nowrap;
  color: #fff; mix-blend-mode: difference;
}
.stage__n { position: absolute; top: 72px; left: var(--gutter); font-size: var(--small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.caprow {
  display: grid; gap: 8px var(--gap); grid-template-columns: 1.1fr .5fr 2fr 1.6fr auto;
  padding: 14px var(--gutter) 0; font-size: 13px; line-height: 1.35;
}
.caprow p { margin: 0; }
@media (max-width: 860px) { .caprow { grid-template-columns: 1fr 1fr; } .caprow p:nth-child(3) { grid-column: 1 / -1; order: 5; } }

.tag {
  display: inline-block; padding: 3px 9px; border: 1px solid currentColor; border-radius: 99px;
  font-size: var(--small); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
}

.story { padding: clamp(56px, 8vw, 140px) var(--gutter) 0; }
.story__text { display: grid; gap: var(--gap) calc(var(--gap) * 2); margin-bottom: clamp(48px, 7vw, 120px); }
@media (min-width: 900px) {
  .story__text { grid-template-columns: 7fr 5fr; align-items: start; }
  .story__text > :not(.lede) { grid-column: 2; }
  .story__text .lede { grid-row: span 3; }
}
.lede { margin: 0; font-size: clamp(26px, 3.4vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "wdth" 88; }

details.more { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 1em; }
details.more summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 12px 0;
  font-size: var(--small); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
details.more summary::-webkit-details-marker { display: none; }
details.more summary span { transition: rotate .3s; font-size: 16px; line-height: .7; }
details.more[open] summary span { rotate: 45deg; }
details.more > p { max-width: 36em; }
.credits { margin: 1.4em 0 1em; font-size: 13px; }
.credits div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 7px 0; border-top: 1px solid var(--rule); }
.credits dt { font-size: var(--small); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); }
.credits dd { margin: 0; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 4px;
  padding: 11px 20px; border-radius: 99px; background: var(--ink); color: var(--ground);
  font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--ground); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ground); box-shadow: inset 0 0 0 1px var(--ground); }

/* ---- 12-column staggered grids ---- */
.stagger, .wgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(28px, 4vw, 64px) var(--gap); align-items: start; }
.m { margin: 0; }
.m figcaption { margin-top: 8px; font-size: 12px; font-weight: 500; }
.c-1-4 { grid-column: 1 / 5; } .c-1-5 { grid-column: 1 / 6; } .c-1-6 { grid-column: 1 / 7; }
.c-1-7 { grid-column: 1 / 8; } .c-1-8 { grid-column: 1 / 9; } .c-1-12 { grid-column: 1 / -1; }
.c-2-7 { grid-column: 2 / 8; } .c-2-11 { grid-column: 2 / 12; } .c-3-9 { grid-column: 3 / 10; }
.c-4-9 { grid-column: 4 / 10; } .c-4-10 { grid-column: 4 / 11; } .c-5-8 { grid-column: 5 / 9; }
.c-5-12 { grid-column: 5 / -1; } .c-6-12 { grid-column: 6 / -1; } .c-7-12 { grid-column: 7 / -1; }
.c-8-12 { grid-column: 8 / -1; } .c-9-12 { grid-column: 9 / -1; }
.push { margin-top: clamp(40px, 16vw, 280px); }
.push-sm { margin-top: clamp(24px, 7vw, 120px); }
.c-4-9.player { max-width: 560px; justify-self: center; width: 100%; }
@media (max-width: 760px) {
  .stagger > *, .wgrid > * { grid-column: 1 / -1; margin-top: 0; }
  .stagger > .c-1-6, .stagger > .c-7-12, .wgrid > .c-1-4, .wgrid > .c-5-8 { grid-column: span 6; }
  .wgrid > .c-9-12.m { grid-column: 4 / 10; }
}

.tile { display: block; width: 100%; padding: 0; border: 0; background: var(--dark); cursor: zoom-in; overflow: hidden; }
.tile img { width: 100%; height: auto; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.035); }

.loop { width: 100%; background: var(--dark); }
.wgrid .tall .loop { aspect-ratio: 4/3; object-fit: cover; }

.player { position: relative; }
.player video { width: 100%; aspect-ratio: var(--ar); object-fit: cover; background: var(--dark); }
.player__play {
  position: absolute; inset: 0 0 auto 0; width: 100%; aspect-ratio: var(--ar); border: 0; padding: 0; cursor: pointer; background: transparent;
  display: grid; place-items: center;
}
.player__play span {
  padding: 14px 26px; border-radius: 99px; background: var(--ground); color: var(--ink);
  font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.player__play span::before { content: "▶  "; font-size: .85em; }
.player__play:hover span { transform: scale(1.06); background: var(--ink); color: var(--ground); }
.player--playing .player__play { display: none; }

/* ---- carousels ---- */
.carousel { min-width: 0; }
.carousel__track {
  display: flex; gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging .tile { pointer-events: none; }
.slide { flex: 0 0 auto; margin: 0; scroll-snap-align: start; }
.slide .tile { height: clamp(320px, 72vh, 820px); width: auto; }
.slide .tile img { height: 100%; width: auto; max-width: none; }
.slide figcaption { margin-top: 8px; font-size: 12px; font-weight: 500; }
.carousel__ui { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: var(--small); font-weight: 700; letter-spacing: .06em; }
.carousel__btns { display: flex; gap: 6px; }
.carousel__btns button {
  width: 44px; height: 44px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; color: var(--ink);
  font-size: 18px; cursor: pointer; transition: background .25s, color .25s;
}
.carousel__btns button:hover { background: var(--ink); color: var(--ground); }
.carousel__btns button:disabled { opacity: .3; pointer-events: none; }
@media (max-width: 760px) {
  .slide .tile { height: auto; width: 82vw; aspect-ratio: 4/5; }
  .slide .tile img { width: 100%; height: 100%; object-fit: cover; }
}

/* ---- Buko ---- */
.buko {
  display: grid; gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(80px, 12vw, 200px) var(--gutter); background: var(--ink); color: var(--ground);
}
@media (min-width: 900px) { .buko { grid-template-columns: 1fr 1fr; } }
.buko__logo { display: block; }
.buko__logo img { width: 100%; max-width: 720px; margin: auto; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .25)); animation: float 6s ease-in-out infinite; transition: transform .5s var(--ease); }
@keyframes float { 50% { translate: 0 -14px; } }
.buko__big { font-size: clamp(24px, 2.8vw, 46px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "wdth" 88; }
.buko__text p:not(.buko__big) { max-width: 34em; }
.buko__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---- more works ---- */
.others { padding: clamp(80px, 12vw, 200px) var(--gutter) 0; }
.others__h { margin: 0 0 clamp(48px, 8vw, 140px); font-size: clamp(56px, 14vw, 260px); white-space: nowrap; }
.work { padding-bottom: clamp(100px, 14vw, 240px); }
.work__n { display: block; font-size: var(--small); font-weight: 700; letter-spacing: .06em; }
.work__title { margin: 6px 0 16px; font-size: clamp(56px, 8.4vw, 170px); }
.work__meta { font-size: 13px; font-weight: 600; }
.work__meta .tag { margin-left: 6px; }
.work__info p { max-width: 34em; }
.award { display: inline-block; padding: 5px 11px; border-radius: 99px; background: var(--ink); color: var(--ground); font-size: var(--small); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.poster { width: 50%; justify-self: center; }
@media (max-width: 760px) { .wgrid > .poster { width: 60%; } }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.strip .tile { aspect-ratio: 3/2; }
.strip .tile img { height: 100%; object-fit: cover; }
@media (max-width: 760px) { .strip { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; font-size: clamp(20px, 1.9vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; align-self: end; }
.quote > p:first-child::before { content: "“"; }
.quote > p:first-child::after { content: "”"; }

/* ---- about ---- */
.about { padding: clamp(80px, 12vw, 200px) var(--gutter) 28px; border-top: 1px solid var(--ink); }
.about__bio { max-width: 28em; margin-bottom: clamp(48px, 8vw, 120px); font-size: clamp(22px, 2.6vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: "wdth" 88; }
.about__mail { display: block; margin-bottom: clamp(48px, 8vw, 120px); font-size: 11.6vw; text-decoration: none; white-space: nowrap; text-transform: none; }
.about__mail:hover { text-decoration: underline; text-decoration-thickness: .04em; }
.about__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: clamp(48px, 8vw, 120px); }
.about__cols p { font-size: 17px; font-weight: 500; }
.about__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--ink-soft); }
.about__foot p { max-width: 46em; margin: 0; }

/* ---- lightbox ---- */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(11 13 18 / .96); color: #fff; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 96px); width: auto; height: auto; object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; font-size: 40px; line-height: 1; padding: 16px; }
.lightbox__close { top: 4px; right: 8px; }
.lightbox__prev { left: 4px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 4px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: 12px; left: 0; right: 0; margin: 0; text-align: center; font-size: var(--small); letter-spacing: .08em; }

/* ---- motion ---- */
@media (prefers-reduced-motion: no-preference) {
  /* media wipes up into place as it arrives */
  .js .m, .js .strip { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease); }
  .js .m.in, .js .strip.in { clip-path: inset(0 0 0 0); }
  .js .story__text, .js .work__info, .js .quote, .js .caprow { opacity: 0; translate: 0 30px; transition: opacity 1s, translate 1s var(--ease); }
  .js .in.story__text, .js .in.work__info, .js .in.quote, .js .in.caprow { opacity: 1; translate: 0 0; }

  /* featured media opens from an inset frame to full bleed as it scrolls in */
  @supports (animation-timeline: view()) {
    .stage__media { animation: open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .stage__media > * { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .stage__title { animation: rise linear both; animation-timeline: view(); animation-range: entry 10% entry 90%; }
  }
}
@keyframes open { from { clip-path: inset(14% 10% 14% 10% round 28px); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes drift { from { scale: 1.18; translate: 0 -4%; } to { scale: 1.02; translate: 0 4%; } }
@keyframes rise { from { translate: 0 40%; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .buko__logo img, .hero__scroll span { animation: none; }
}
