@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;
}

/* display type: thin and condensed, so titles sit quietly beside the work */
.stage__title, .work__title {
  font-weight: 300; text-transform: uppercase; line-height: 0.9; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 70;
}

/* ---- 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 11px; } }

/* ---- hero: one work, full screen, with a light name over it ---- */
.hero {
  position: relative; height: 100svh; min-height: 560px; color: #fff;
  display: grid; grid-template-rows: 1fr auto; align-items: end; padding: 88px var(--gutter) 28px;
}
.hero__media { position: absolute; inset: 0; background: var(--dark); }
.hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .45), transparent 45%); }
.hero__text, .hero__foot { position: relative; }
.hero__name {
  margin: 0; font-size: clamp(34px, 4.6vw, 76px); font-weight: 300; line-height: 1; 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 { display: flex; gap: 24px; justify-content: space-between; margin-top: 28px; font-size: 12px; font-weight: 500; }
.hero__foot p { margin: 0; }

/* ---- featured works ---- */
.feature { padding-bottom: clamp(80px, 12vw, 200px); }
.stage { position: relative; height: 100svh; min-height: 520px; overflow: hidden; }
.stage__media { position: absolute; inset: 0; background: var(--dark); overflow: hidden; }
.stage__media img, .stage__media video { width: 100%; height: 100%; object-fit: cover; }
/* the title sits in its own band under the image, never over it */
.stage__title { margin: 0; padding: clamp(20px, 3vw, 44px) var(--gutter) clamp(12px, 1.6vw, 24px); font-size: clamp(40px, 7vw, 124px); }

.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; }
.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); }

/* ---- 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-3-10 { grid-column: 3 / 11; }
.c-2-6 { grid-column: 3 / 7; } .c-7-11 { grid-column: 7 / 11; } /* loop + film, side by side */
.c-2-6 .loop { aspect-ratio: 9/16; object-fit: cover; }
.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-2-6, .stagger > .c-7-11, .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; }
}

.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.row3 .loop, .row3 .tile img { aspect-ratio: 3/4; object-fit: cover; height: auto; }
@media (max-width: 760px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 > :first-child { grid-column: 1 / -1; } }
.row3--even .loop { aspect-ratio: 1; }
.row3--even .tile img { aspect-ratio: 3/4; }
@media (max-width: 760px) { .row3--even { grid-template-columns: repeat(3, 1fr); } .row3--even > :first-child { grid-column: auto; } }
.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); }

.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; }
}

/* ---- more works ---- */
.others { padding: clamp(80px, 12vw, 200px) var(--gutter) 0; }
.others__h { margin: 0 0 clamp(32px, 5vw, 72px); padding-top: 14px; border-top: 1px solid var(--ink); }
.work { padding-bottom: clamp(100px, 14vw, 240px); }
.work__n { display: block; font-size: var(--small); font-weight: 700; letter-spacing: .06em; }
.work__title { margin: 10px 0 20px; font-size: clamp(40px, 5.6vw, 100px); }
.work__meta { margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.work__info p { max-width: 34em; }
.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 / CV / contact ---- */
.about { padding: clamp(80px, 12vw, 200px) var(--gutter) 28px; border-top: 1px solid var(--ink); }
.about__bio { max-width: 30em; margin-bottom: 1em; font-size: clamp(20px, 2.1vw, 34px); line-height: 1.2; font-weight: 400; letter-spacing: -0.015em; font-variation-settings: "wdth" 90; }
.about__studio { max-width: 38em; margin-bottom: clamp(56px, 8vw, 120px); }
.cv, .contact { margin-bottom: clamp(56px, 8vw, 120px); }
.cv__list { margin: 0; max-width: 60em; border-top: 1px solid var(--rule); }
.cv__list div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.cv__list dd { margin: 0; }
.contact__line { margin-bottom: .3em; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: .5em; font-size: clamp(26px, 3.6vw, 60px); font-weight: 300; letter-spacing: -0.02em; font-variation-settings: "wdth" 90; }
.contact__mail a { text-decoration-thickness: 1px; }
.copy {
  padding: 7px 14px; border: 0; border-radius: 99px; background: transparent; box-shadow: inset 0 0 0 1px var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0; font-variation-settings: "wdth" 100; cursor: pointer; transition: background .25s, color .25s;
}
.copy:hover, .copy.is-done { background: var(--ink); color: var(--ground); }
.contact__more { font-size: 15px; }
.about__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12px; }
.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: a single soft fade as things arrive ---- */
@media (prefers-reduced-motion: no-preference) {
  .js .m, .js .strip, .js .story__text, .js .work__info, .js .quote, .js .caprow { opacity: 0; transition: opacity 1s; }
  .js .in.m, .js .in.strip, .js .in.story__text, .js .in.work__info, .js .in.quote, .js .in.caprow { opacity: 1; }
}
