/* =========================================================
   Bryson Bejerano — portfolio
   Ink / Paper / Biscayne blue. Type width follows the frame.
   ========================================================= */

:root {
  --ink: #0A0A0B;
  --carbon: #131417;
  --paper: #F4F5F7;
  --ash: #8B8F98;
  --rule: rgba(244, 245, 247, .14);
  --rule-ink: rgba(10, 10, 11, .16);
  --blue: #2D5BFF;
  --blue-hi: #7D9CFF;
  --blue-deep: #0C1C55;

  --f-display: "Anybody", "Arial Narrow", sans-serif;
  --f-body: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  /* labels: Anybody opened up wide, like credits on a title card */
  --f-label: "Anybody", "Helvetica Neue", Arial, sans-serif;
  --label-vf: "wdth" 128, "wght" 540;

  --gutter: clamp(16px, 3.2vw, 48px);
  --nav-h: 72px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: 2px solid var(--blue-hi); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--paper); }

.skip {
  position: fixed; left: var(--gutter); top: 12px; z-index: 100;
  padding: 10px 14px; background: var(--blue); color: var(--paper);
  font: 500 12px/1 var(--f-label); font-variation-settings: var(--label-vf); transform: translateY(-200%);
}
.skip:focus { transform: none; }

.eyebrow {
  font: 400 11px/1.4 var(--f-label); font-variation-settings: var(--label-vf);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-hi);
}
.eyebrow--ink { color: inherit; opacity: .6; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block; position: fixed; left: 0; top: 0; z-index: 90;
    pointer-events: none; color: var(--paper);
    transition: color .3s;
  }
  .cursor[data-on="light"], .cursor[data-on="blue"] { color: var(--ink); }
  /* viewfinder corners instead of a circle */
  .cursor__ring {
    position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px;
    transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out);
    background:
      linear-gradient(currentColor, currentColor) left top / 8px 1.5px,
      linear-gradient(currentColor, currentColor) left top / 1.5px 8px,
      linear-gradient(currentColor, currentColor) right top / 8px 1.5px,
      linear-gradient(currentColor, currentColor) right top / 1.5px 8px,
      linear-gradient(currentColor, currentColor) left bottom / 8px 1.5px,
      linear-gradient(currentColor, currentColor) left bottom / 1.5px 8px,
      linear-gradient(currentColor, currentColor) right bottom / 8px 1.5px,
      linear-gradient(currentColor, currentColor) right bottom / 1.5px 8px;
    background-repeat: no-repeat;
  }
  .cursor__label {
    position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6);
    font: 500 10px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase;
    opacity: 0; white-space: nowrap;
    transition: opacity .25s, transform .35s var(--ease-out);
  }
  .cursor.is-label .cursor__ring { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
  .cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  font: 400 11px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase;
  color: var(--paper);
  --nav-bg: 10, 10, 11;
  background: linear-gradient(rgba(var(--nav-bg), .92) 30%, rgba(var(--nav-bg), 0));
  transition: color .4s;
}
.nav[data-on="top"] { background: none; }
.nav[data-on="light"] { color: var(--ink); --nav-bg: 244, 245, 247; }
.nav[data-on="blue"] { color: var(--ink); --nav-bg: 45, 91, 255; }
.nav__mark { display: inline-flex; align-items: center; gap: 10px; justify-self: start; }
.nav__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.nav[data-on="blue"] .nav__dot { background: var(--paper); }
.nav__links { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.nav__clock { justify-self: end; font-variant-numeric: tabular-nums; opacity: .7; }
.fb { font-family: var(--f-body); font-variation-settings: normal; font-weight: 600; }
.tnum { display: inline-flex; }
.tnum > i { font-style: normal; display: inline-block; width: .74em; text-align: center; }
.tnum > b { font-weight: inherit; display: inline-block; width: .32em; text-align: center; }

@media (max-width: 640px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__clock { display: none; }
  .nav__mark { font-size: 0; gap: 0; }
  .nav__mark .nav__dot { width: 10px; height: 10px; }
}

/* =========================================================
   HERO — the viewfinder
   ========================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; background: var(--ink);
}
.reel { position: absolute; inset: 0; overflow: hidden; background: #050608; }
.reel img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease);
  /* black and white, pulled down so the name stays on top */
  filter: grayscale(1) contrast(1.2) brightness(.55);
}
.reel img.is-on { opacity: 1; animation: drift 7s linear both; }
@keyframes drift { from { transform: scale(1.1) translate3d(1.5%, 0, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.reel::after { /* blue grade + vignette */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(5, 6, 8, .8) 100%),
    linear-gradient(180deg, rgba(5, 6, 8, .35), rgba(12, 28, 85, .28) 70%, rgba(5, 6, 8, .6));
}
.reel::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: var(--blue); mix-blend-mode: color; opacity: .1;
}
body::after { /* film grain over the whole page */
  content: ""; position: fixed; inset: -50%; pointer-events: none; z-index: 80;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  animation: grain 1s steps(6) infinite;
}
.hero::after { /* extra grain inside the viewfinder */
  content: ""; position: absolute; inset: -50%; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09;
  animation: grain .9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); } 60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

.frame {
  position: absolute; z-index: 2;
  left: var(--fx, 0); top: var(--fy, 0); width: var(--fw, 100%); height: var(--fh, 100%);
  box-shadow: 0 0 0 200vmax var(--ink);
  transition:
    left 1.1s var(--ease), top 1.1s var(--ease),
    width 1.1s var(--ease), height 1.1s var(--ease);
}
.frame.no-anim, .frame.no-anim .name__line > span { transition: none !important; }

/* Halo: the current still, heavily blurred, spilling past the frame edge like a
   monitor in a dark room. Padding is the spill zone; the mask cuts the frame
   area out so the glow never washes over the footage itself. */
.halo {
  --spill: 160px;
  position: absolute; z-index: 3; pointer-events: none; box-sizing: border-box;
  left: calc(var(--fx, 0px) - var(--spill)); top: calc(var(--fy, 0px) - var(--spill));
  width: calc(var(--fw, 100%) + var(--spill) * 2); height: calc(var(--fh, 100%) + var(--spill) * 2);
  padding: var(--spill);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .5;
  transition:
    left 1.1s var(--ease), top 1.1s var(--ease),
    width 1.1s var(--ease), height 1.1s var(--ease),
    opacity 1.4s var(--ease) .6s;
}
.frame.is-closed + .halo { opacity: 0; transition-delay: 0s; }
.frame.no-anim + .halo { transition: none; }
.halo img {
  position: absolute; inset: var(--spill); width: calc(100% - var(--spill) * 2); height: calc(100% - var(--spill) * 2);
  object-fit: cover; opacity: 0;
  /* grayscale, then a cool cast so the light reads faintly blue like the grade inside */
  filter: grayscale(1) sepia(.35) hue-rotate(185deg) saturate(1.8) brightness(.85) blur(46px);
  transform: scale(1.08);
  transition: opacity 1.6s var(--ease);
}
.halo img.is-on { opacity: 1; }

.frame__corner { position: absolute; width: 22px; height: 22px; border: 0 solid var(--paper); opacity: .9; }
.frame__corner--tl { left: 12px; top: 12px; border-left-width: 1.5px; border-top-width: 1.5px; }
.frame__corner--tr { right: 12px; top: 12px; border-right-width: 1.5px; border-top-width: 1.5px; }
.frame__corner--bl { left: 12px; bottom: 12px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.frame__corner--br { right: 12px; bottom: 12px; border-right-width: 1.5px; border-bottom-width: 1.5px; }

.hud {
  position: absolute; display: flex; align-items: center; gap: 8px;
  font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase;
  color: rgba(244, 245, 247, .82); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: opacity .6s .5s;
}
.hud--tl { left: 44px; top: 18px; }
.hud--tr { right: 44px; top: 18px; }
.hud--bl { left: 44px; bottom: 18px; }
.hud--br { right: 44px; bottom: 18px; }
.hud__now { max-width: calc(100% - 88px); transition: color .3s, opacity .6s .5s; }
.hud__now > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.hud__now:hover { color: var(--paper); }
.hud__play {
  width: 0; height: 0; border-style: solid; border-width: 4.5px 0 4.5px 7px;
  border-color: transparent transparent transparent var(--blue-hi);
}
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 12px var(--blue); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }

.frame.is-narrow .hud--bl { display: none; }
.frame.is-closed .hud { opacity: 0; transition-delay: 0s; }

/* B cam: a small reverse-angle monitor showing Bryson behind the camera */
.bcam {
  position: absolute; z-index: 1; top: 42px; right: 44px;
  display: grid; gap: 7px; justify-items: end;
  transition: opacity .6s .9s;
}
.bcam__screen {
  position: relative; display: block; overflow: hidden; background: #050608;
  height: clamp(78px, calc(var(--fh, 500px) * .2), 150px); aspect-ratio: 3 / 4;
  outline: 1px solid rgba(244, 245, 247, .55); outline-offset: 3px;
  transition: outline-color .3s, transform .5s var(--ease);
}
.bcam__screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: grayscale(1) contrast(1.1) brightness(.92);
  transition: opacity 1.2s var(--ease), filter .6s var(--ease);
}
.bcam__screen img.is-on { opacity: 1; }
.bcam__label {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 9px/1 var(--f-label); font-variation-settings: var(--label-vf);
  letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 245, 247, .82);
}
.bcam__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue); animation: rec 1.6s steps(1) infinite .8s; }
.bcam:hover .bcam__screen { outline-color: var(--paper); transform: scale(1.04); }
.bcam:hover .bcam__screen img { filter: none; }
.frame.is-closed .bcam { opacity: 0; transition-delay: 0s; }
@media (max-width: 760px) { .bcam { top: 36px; right: 38px; } }

.name {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  margin: 0; text-align: center; white-space: nowrap;
  font-family: var(--f-display);
  font-size: var(--name-size, 12vw);
  font-variation-settings: "wdth" var(--name-wdth, 150), "wght" 820;
  line-height: .8; letter-spacing: var(--name-ls, -.012em); text-transform: uppercase;
  color: var(--paper);
  transition: font-size 1.1s var(--ease), font-variation-settings 1.1s var(--ease), letter-spacing 1.1s var(--ease);
}
.name__line { display: block; overflow: hidden; padding: .02em .04em; }
.name__line > span {
  display: block;
  transition: transform 1.2s var(--ease-out) .5s;
}
.name__line:nth-child(2) > span { transition-delay: .58s; }
.frame.is-closed .name__line > span { transform: translateY(110%); }
.name__line:nth-child(2) { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }

.hero__bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  height: var(--bar-h, 96px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
}
.hero__copy { display: grid; gap: 6px; flex: 1 1 auto; min-width: 0; }
.hero__hook, .hero__line { text-wrap: balance; }
.hero__hook {
  font-family: var(--f-display); font-size: clamp(17px, 1.5vw, 21px);
  font-variation-settings: "wdth" 104, "wght" 680; line-height: 1.1; letter-spacing: -.005em;
  color: var(--paper);
}
.hero__line { font-size: 14px; color: rgba(244, 245, 247, .62); max-width: 64ch; }

.ratio { display: flex; align-items: center; gap: 6px; }
.ratio__label {
  font: 400 10px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ash); margin-right: 10px;
}
.ratio button {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 14px;
  font: 400 11px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .06em;
  color: rgba(244, 245, 247, .6);
  border: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.ratio button i { /* the button IS the frame shape */
  display: block; height: 14px; width: calc(14px * var(--r));
  max-width: 34px; border: 1.5px solid currentColor;
  transition: background-color .3s, border-color .3s;
}
.ratio button[data-ratio="0.5625"] i { height: 18px; width: 10px; }
.ratio button:hover { color: var(--paper); }
.ratio button[aria-checked="true"] { color: var(--paper); border-color: var(--rule); }
.ratio button[aria-checked="true"] i { background: var(--blue); border-color: var(--blue); }

@media (max-width: 760px) {
  .hero__bar { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .hero { --bar-h: 168px; }
  .hero__line { font-size: 13px; }
  .ratio__label { display: none; }
  .ratio { margin-left: -14px; }
  .hud--tl, .hud--bl { left: 38px; } .hud--tr, .hud--br { right: 38px; }
  .hud { font-size: 9.5px; }
}

/* =========================================================
   WORK
   ========================================================= */
.work { --pad-top: clamp(96px, 14vw, 180px); position: relative; overflow: clip; padding: var(--pad-top) 0 clamp(80px, 10vw, 140px); }
.work > :not(.ambient) { position: relative; z-index: 1; }

/* Ambient light, pinned to the viewport while the work scrolls past.
   Two slow pools of blue spill and a headlight that sweeps across every ~16s. */
.ambient {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  margin: calc(var(--pad-top) * -1) 0 -100vh; margin-bottom: -100svh;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.ambient span { position: absolute; display: block; will-change: transform; }
.ambient span:nth-child(1) {
  width: 70vmax; height: 70vmax; left: -20vmax; top: -25vmax;
  background: radial-gradient(closest-side, rgba(45, 91, 255, .2), rgba(45, 91, 255, .06) 55%, transparent);
  animation: spillA 38s ease-in-out infinite alternate;
}
.ambient span:nth-child(2) {
  width: 60vmax; height: 60vmax; right: -22vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, rgba(125, 156, 255, .13), rgba(45, 91, 255, .04) 60%, transparent);
  animation: spillB 46s ease-in-out infinite alternate;
}
.ambient span:nth-child(3) {
  inset: 0 auto 0 0; width: 45vw;
  background: linear-gradient(100deg, transparent 0%, rgba(244, 245, 247, .035) 45%, rgba(170, 190, 255, .06) 50%, rgba(244, 245, 247, .035) 55%, transparent 100%);
  transform: translateX(-60vw) skewX(-12deg);
  animation: headlight 16s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes spillA { to { transform: translate3d(38vw, 30vh, 0) scale(1.15); } }
@keyframes spillB { to { transform: translate3d(-30vw, -40vh, 0) scale(.9); } }
@keyframes headlight {
  0%, 55% { transform: translateX(-60vw) skewX(-12deg); }
  100% { transform: translateX(160vw) skewX(-12deg); }
}

.sec-head {
  display: grid; grid-template-columns: 1fr auto; align-items: end;
  column-gap: 32px; row-gap: 14px;
  padding: 0 var(--gutter); margin-bottom: clamp(32px, 5vw, 64px);
}
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-title {
  font-family: var(--f-display); text-transform: uppercase;
  line-height: .82; letter-spacing: -.01em; font-weight: 800;
  overflow: hidden; padding-bottom: .04em;
}
.sec-title > span { display: block; }
.sec-title--wide { font-size: clamp(56px, 11.4vw, 200px); font-variation-settings: "wdth" 150, "wght" 820; }
.sec-title--narrow { font-size: clamp(72px, 15vw, 260px); font-variation-settings: "wdth" 50, "wght" 820; letter-spacing: .015em; }
.sec-note { max-width: 30ch; color: rgba(244, 245, 247, .62); font-size: 15px; padding-bottom: .5em; }
.sec-head--short { margin-top: clamp(100px, 14vw, 200px); grid-template-columns: auto 1fr auto; }
.strip-ctrl { display: flex; gap: 6px; align-self: end; padding-bottom: .4em; }
.sec-head--short .filter { grid-column: 1 / 3; grid-row: 3; }
.sec-head--short .strip-ctrl { grid-column: 3; grid-row: 3; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.filter button {
  height: 38px; padding: 0 16px;
  font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf);
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(244, 245, 247, .6); border: 1px solid var(--rule);
  transition: color .3s, background-color .3s, border-color .3s;
}
.filter button:hover { color: var(--paper); border-color: rgba(244, 245, 247, .4); }
.filter button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.strip-btn {
  width: 48px; height: 48px; border: 1px solid var(--rule);
  font: 400 16px/1 var(--f-label); font-variation-settings: var(--label-vf);
  transition: background-color .3s, border-color .3s, color .3s;
}
.strip-btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

@media (max-width: 760px) {
  .sec-head, .sec-head--short { grid-template-columns: 1fr; }
  .sec-head--short .filter { grid-column: 1 / -1; grid-row: auto; }
  .strip-ctrl { display: none; }
}

/* ---------- Clip cards ---------- */
.long {
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 28px); row-gap: clamp(48px, 7vw, 110px);
  padding: 0 var(--gutter); align-items: start;
}
.clip--full { grid-column: 1 / -1; }
.clip--wide { grid-column: 1 / span 7; }
.clip--narrow { grid-column: 8 / -1; margin-top: clamp(0px, 10vw, 180px); }
.clip--narrow-l { grid-column: 1 / span 5; margin-top: clamp(0px, 10vw, 180px); }
.clip--wide-r { grid-column: 6 / -1; }
@media (max-width: 760px) {
  .long > .clip, .long > .clip:nth-child(n) { grid-column: 1 / -1; margin-top: 0; }
}

.clip { position: relative; }
.clip__btn { display: block; width: 100%; text-align: left; }
.clip__frame {
  display: block; position: relative; overflow: hidden; background: var(--carbon);
  aspect-ratio: 16 / 9;
}
.clip__frame > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.07); /* trims the letterbox some YouTube thumbnails carry */
  filter: grayscale(1) contrast(1.1) brightness(.82);
  transition: transform 1.4s var(--ease-out), filter .7s var(--ease);
}
.clip:hover .clip__frame > img, .clip__btn:focus-visible .clip__frame > img { filter: none; }
.strip .clip__frame { aspect-ratio: 9 / 16; }
.clip.is-filtered { display: none; }
.clip__frame::after { /* grain */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .1; mix-blend-mode: overlay;
}

/* viewfinder overlay that appears on hover */
.clip__vf { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.clip__vf::before {
  content: ""; position: absolute; inset: 14px;
  background:
    linear-gradient(var(--paper), var(--paper)) left top / 18px 1.5px,
    linear-gradient(var(--paper), var(--paper)) left top / 1.5px 18px,
    linear-gradient(var(--paper), var(--paper)) right top / 18px 1.5px,
    linear-gradient(var(--paper), var(--paper)) right top / 1.5px 18px,
    linear-gradient(var(--paper), var(--paper)) left bottom / 18px 1.5px,
    linear-gradient(var(--paper), var(--paper)) left bottom / 1.5px 18px,
    linear-gradient(var(--paper), var(--paper)) right bottom / 18px 1.5px,
    linear-gradient(var(--paper), var(--paper)) right bottom / 1.5px 18px;
  background-repeat: no-repeat;
  opacity: 0; transform: scale(1.04);
  transition: opacity .4s, transform .6s var(--ease-out);
}
.clip__rec {
  position: absolute; left: 30px; top: 26px; display: flex; align-items: center; gap: 8px;
  font: 400 10px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; color: var(--paper);
  opacity: 0; transition: opacity .3s;
}
.clip__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: rec 1.6s steps(1) infinite; }

.clip:hover .clip__vf::before, .clip__btn:focus-visible .clip__vf::before { opacity: 1; transform: none; }
.clip:hover .clip__rec, .clip__btn:focus-visible .clip__rec { opacity: 1; }
.clip:hover .clip__frame > img, .clip__btn:focus-visible .clip__frame > img { transform: scale(1.12); }

.clip__meta {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 6px 18px;
  padding-top: 16px;
}
.clip__id { text-transform: uppercase; font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .08em; color: var(--blue-hi); }
.clip__title {
  font-family: var(--f-display); font-size: clamp(22px, 2.3vw, 34px);
  font-variation-settings: "wdth" 120, "wght" 700;
  line-height: 1; text-transform: uppercase; letter-spacing: -.005em;
}
.clip__ratio { font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .08em; color: var(--ash); justify-self: end; white-space: nowrap; }
.clip__client { grid-column: 2 / -1; font-size: 14px; color: rgba(244, 245, 247, .55); }
.clip--full .clip__title { font-size: clamp(26px, 3vw, 46px); font-variation-settings: "wdth" 150, "wght" 700; }
@media (max-width: 760px) {
  .clip--full .clip__title { font-size: 26px; font-variation-settings: "wdth" 112, "wght" 700; }
  .long .clip__meta { grid-template-columns: 1fr auto; }
  .long .clip__id { grid-column: 1; grid-row: 1; }
  .long .clip__ratio { grid-column: 2; grid-row: 1; }
  .long .clip__title { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Short-form strip ---------- */
.strip {
  display: flex; gap: clamp(12px, 1.4vw, 20px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 0 var(--gutter) 24px;
  scrollbar-width: none;
  cursor: grab;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip.is-dragging .clip__btn { pointer-events: none; }
.strip .clip { flex: 0 0 clamp(220px, 21vw, 320px); scroll-snap-align: start; }
.strip .clip__title { font-variation-settings: "wdth" 62, "wght" 760; font-size: clamp(24px, 2.4vw, 34px); }
.strip .clip__meta { grid-template-columns: 1fr auto; }
.strip .clip__id { grid-column: 1; }
.strip .clip__title { grid-column: 1 / -1; grid-row: 2; }
.strip .clip__ratio { grid-column: 2; grid-row: 1; }
.strip .clip__client { grid-column: 1 / -1; }
.strip::after { content: ""; flex: 0 0 1px; }

/* =========================================================
   ABOUT (paper)
   ========================================================= */
.about { position: relative; overflow: clip; background: var(--paper); color: var(--ink); padding: clamp(100px, 13vw, 180px) var(--gutter) clamp(80px, 10vw, 140px); }
.about > :not(.blinds) { position: relative; z-index: 1; }
.blinds {
  position: absolute; inset: -20% -30%; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(112deg, transparent 0 46px, rgba(10, 10, 11, .045) 46px 70px);
  -webkit-mask: radial-gradient(60% 55% at 70% 30%, #000, transparent 75%);
          mask: radial-gradient(60% 55% at 70% 30%, #000, transparent 75%);
  filter: blur(3px);
  animation: blindsDrift 30s ease-in-out infinite alternate;
}
@keyframes blindsDrift { from { transform: translate3d(-4%, -2%, 0) rotate(-1deg); } to { transform: translate3d(5%, 4%, 0) rotate(1.5deg); } }
.about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 110px); align-items: end; }
.portrait { position: relative; }
.portrait__img {
  display: block; aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: var(--ink);
  filter: grayscale(1) contrast(1.08); transition: filter .8s var(--ease);
}
.portrait:hover .portrait__img { filter: none; }
.portrait__cap {
  display: flex; justify-content: space-between; padding-top: 12px;
  font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase; opacity: .55;
}
.statement {
  font-family: var(--f-display); font-size: clamp(30px, 3.9vw, 64px);
  font-variation-settings: "wdth" 96, "wght" 640;
  line-height: 1.02; letter-spacing: -.015em;
  margin: 18px 0 clamp(24px, 3vw, 40px);
  text-wrap: balance;
}
.about__body { max-width: 52ch; font-size: 18px; line-height: 1.6; color: rgba(10, 10, 11, .72); }

.credits {
  display: grid; gap: 14px;
  margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--rule-ink);
}
.credits__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.credits dt {
  flex: 0 0 108px; white-space: nowrap;
  font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf);
  letter-spacing: .1em; text-transform: uppercase; opacity: .55;
}
.credits__link { background: linear-gradient(var(--blue), var(--blue)) left bottom / 0 2px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.credits__link span { color: var(--blue); }
.credits__link:hover { background-size: 100% 2px; color: var(--blue); }
.credits dd {
  margin: 0; font-family: var(--f-display); font-size: clamp(20px, 1.9vw, 28px);
  font-variation-settings: "wdth" 112, "wght" 720; text-transform: uppercase; line-height: 1.1;
}
.credits dd + dd::before { content: "/"; margin-right: 22px; color: var(--blue); font-variation-settings: "wdth" 100, "wght" 400; }
@media (max-width: 760px) {
  .credits__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .credits dt { flex-basis: auto; margin: 0 0 6px; }
  .credits dd + dd::before { content: none; }
}

/* On set: one row, shared height, widths from each photo's shape */
.onset { margin-top: clamp(80px, 11vw, 160px); }
.onset__row {
  --row-h: clamp(260px, 30vw, 440px);
  display: flex; gap: clamp(10px, 1.2vw, 16px); margin-top: 20px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
}
.onset__row::-webkit-scrollbar { display: none; }
.still {
  position: relative; flex: var(--shape, .75) 1 0; min-width: calc(var(--row-h) * var(--shape, .75) * .6);
  height: var(--row-h); overflow: hidden; background: var(--ink); scroll-snap-align: start;
}
.still img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08); transform: scale(1.02);
  transition: filter .7s var(--ease), transform 1.4s var(--ease-out);
}
.still:hover img, .still:focus-visible img { filter: none; transform: scale(1.06); }
.still[data-reveal] { transition-delay: calc(var(--i, 0) * 80ms); }
@media (max-width: 760px) {
  .onset__row { margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); }
  .still { flex: 0 0 calc(var(--row-h) * var(--shape, .75)); }
}

.shoots { margin-top: clamp(80px, 11vw, 160px); }
.shoots__list { margin-top: 20px; border-top: 1px solid var(--ink); }
.shoot {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 2fr); align-items: center; gap: 24px;
  padding: clamp(20px, 2.4vw, 34px) 0;
  border-bottom: 1px solid var(--rule-ink);
}
/* reveal and hover colour share one transition list so neither drops the other */
.shoot[data-reveal] { transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), color .4s; }
.shoot::before { /* blue wipe on hover */
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--blue); transform: scaleY(0); transform-origin: bottom;
  transition: transform .5s var(--ease);
}
.shoot__name {
  font-family: var(--f-display); font-size: clamp(32px, 5vw, 84px);
  font-variation-settings: "wdth" 70, "wght" 800;
  line-height: .9; text-transform: uppercase;
  white-space: nowrap; /* one line at every width, so the row height never changes */
  transition: font-variation-settings .6s var(--ease), transform .6s var(--ease);
}
/* wdth 100 is the widest that still fits the column at every breakpoint (measured) */
@media (hover: hover) {
  .shoot:hover { color: var(--paper); }
  .shoot:hover::before { transform: scaleY(1); transform-origin: top; }
  .shoot:hover .shoot__name { font-variation-settings: "wdth" 100, "wght" 800; transform: translateX(12px); }
}
.shoot__desc { font-size: 15px; opacity: .72; }
.shoot__fmt { font: 400 10.5px/1.4 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .08em; text-transform: uppercase; justify-self: end; opacity: .6; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .portrait { max-width: 420px; }
  .shoot { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .shoot__desc { grid-column: 1 / -1; grid-row: 2; }
}

/* =========================================================
   CONTACT (blue)
   ========================================================= */
.contact {
  background: var(--blue); color: var(--ink);
  padding: clamp(100px, 13vw, 180px) var(--gutter) 28px;
  overflow: hidden;
}
.contact__title {
  margin: 20px 0 clamp(48px, 7vw, 100px);
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(48px, 9.2vw, 168px);
  font-variation-settings: "wdth" var(--stretch, 150), "wght" 840;
  line-height: .84; letter-spacing: -.015em; text-transform: uppercase;
  white-space: nowrap;
}
.contact__title span { display: block; width: max-content; }
.contact__title span:last-child { color: var(--paper); }

.contact__row {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px;
  padding-bottom: clamp(60px, 8vw, 120px);
}
.contact__mail { display: inline-flex; flex-direction: column; gap: 12px; }
.contact__mail-label { font: 400 11px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.contact__mail-addr {
  position: relative;
  font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 56px);
  font-variation-settings: "wdth" 110, "wght" 600; line-height: 1;
  padding-bottom: 10px;
}
.contact__mail-addr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ink);
  transform-origin: left; transition: transform .6s var(--ease);
}
.contact__mail:hover .contact__mail-addr::after { transform: scaleX(.12); }
.contact__mail:hover .contact__mail-addr { color: var(--paper); }
.contact__arrow { display: inline-block; transition: transform .5s var(--ease); }
.contact__mail:hover .contact__arrow { transform: translate(.12em, -.12em); }

.contact__book { display: grid; gap: clamp(28px, 3vw, 40px); }
.contact__alt { display: flex; flex-wrap: wrap; gap: 16px clamp(28px, 4vw, 56px); }
.contact__alt a { display: grid; gap: 8px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.2; transition: color .3s; }
.contact__alt a span { font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.contact__alt a:hover { color: var(--paper); }

.contact__links { display: flex; gap: 8px; flex-wrap: wrap; }
.contact__links a {
  display: inline-block; padding: 14px 18px;
  font: 400 11px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid rgba(10, 10, 11, .35);
  transition: background-color .3s, color .3s, border-color .3s;
}
.contact__links a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.contact :focus-visible { outline-color: var(--paper); }

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; border-top: 1px solid rgba(10, 10, 11, .3);
  font: 400 10.5px/1.4 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase;
}
.foot a:hover { color: var(--paper); }

/* =========================================================
   PLAYER
   ========================================================= */
.lb {
  width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0;
  border: 0; background: var(--ink); color: var(--paper);
}
.lb::backdrop { background: rgba(10, 10, 11, .7); }
.lb[open] { animation: lbIn .5s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lb__inner {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 16px;
  padding: 20px var(--gutter) 24px;
}
.lb__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; }
.lb__id { text-transform: uppercase; font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf); color: var(--blue-hi); letter-spacing: .08em; }
.lb__title:focus { outline: none; } /* focused only so the dialog opens without a ring on Close */
.lb__title { font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 30px); font-variation-settings: "wdth" 120, "wght" 700; text-transform: uppercase; }
.lb__close {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px;
  font: 400 11px/1 var(--f-label); font-variation-settings: var(--label-vf); letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--rule);
}
.lb__close:hover { background: var(--paper); color: var(--ink); }
.lb__close kbd { font: inherit; opacity: .55; }
.lb__frame {
  position: relative; place-self: center; overflow: hidden; background: #000;
  aspect-ratio: var(--arn, 1.7778);
  width: min(100%, calc((100vh - 180px) * var(--arn, 1.7778)));
  max-height: calc(100vh - 180px);
}
.lb__frame > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lb__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.lb__nav {
  justify-self: start; height: 40px; padding: 0 14px;
  font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf);
  letter-spacing: .1em; text-transform: uppercase; color: rgba(244, 245, 247, .7);
  border: 1px solid var(--rule); transition: background-color .3s, color .3s;
}
.lb__nav:last-child { justify-self: end; }
.lb__nav:hover { background: var(--paper); color: var(--ink); }
.lb__ext {
  font: 400 10.5px/1 var(--f-label); font-variation-settings: var(--label-vf);
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue-hi);
  padding: 6px 0; border-bottom: 1px solid currentColor;
}
.lb__ext:hover { color: var(--paper); }

/* =========================================================
   Reveal
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
.sec-title[data-reveal] { opacity: 1; transform: none; }
.sec-title[data-reveal] > span { transform: translateY(105%); transition: transform 1.2s var(--ease-out); }
.sec-title[data-reveal].is-in > span { transform: none; }
.clip[data-reveal] { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  [data-reveal], .sec-title[data-reveal] > span { opacity: 1; transform: none; }
}
