/* ==========================================================
   Sagardip Chakraborty — Portfolio 2026
   ========================================================== */
:root {
  --bg: #0b0b0a;
  --bg-2: #141412;
  --fg: #ece6da;
  --muted: rgba(236, 230, 218, .55);
  --faint: rgba(236, 230, 218, .32);
  --line: rgba(236, 230, 218, .14);
  --accent: #ff5a1f;
  --accent-2: #ff8a3d;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(16px, 2.2vw, 36px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.no-scroll { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--accent); color: #0b0b0a; }

.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.label--sm { font-size: 11px; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(36px, 6.2vw, 96px);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.h2 em { text-transform: none; color: var(--accent); letter-spacing: -.01em; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 6vw, 80px); }

/* little 4-point spark */
.spark {
  --s: 10px;
  display: inline-block;
  width: var(--s); height: var(--s);
  background: var(--accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.spark--lg { --s: 34px; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal (masked line/letter slide-up) */
.reveal { display: inline-block; overflow: hidden; vertical-align: top; }
.reveal > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
body.is-ready .reveal > span { transform: none; }

/* ---------------- Loader ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: grid; grid-template-rows: auto 1fr auto;
  padding: var(--gutter);
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader__top { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; }
.loader__count { display: flex; align-items: flex-end; }
.loader__num {
  font-size: clamp(90px, 22vw, 320px); line-height: .8; letter-spacing: -.06em; font-weight: 300;
  font-variant-numeric: tabular-nums;
}
.loader__bar { height: 1px; background: var(--line); margin-top: 24px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s linear; }
body.is-ready .loader { clip-path: inset(0 0 100% 0); pointer-events: none; }

/* ---------------- Header ---------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px var(--gutter);
  pointer-events: none;
  transform: translateY(-120%);
  transition: transform .6s var(--ease);
}
.header.is-shown, body.menu-open .header { transform: none; }
.header > * { pointer-events: auto; }
.mark, .menu-btn {
  height: 44px;
  border-radius: 10px;
  background: rgba(30, 30, 28, .55);
  border: 1px solid rgba(236, 230, 218, .12);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35);
}
.mark {
  width: 44px; display: grid; place-items: center;
  font-size: 22px; font-weight: 600; letter-spacing: -.06em; line-height: 1;
}
.mark span, .mark i { display: inline; }
.mark i { font-family: var(--serif); color: var(--accent); font-weight: 400; margin-left: -1px; }
.mark { grid-auto-flow: column; }
.menu-btn { display: inline-flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 12px; text-transform: uppercase; font-weight: 500; }
.menu-btn .spark { transition: transform .5s var(--ease); }
body.menu-open .menu-btn .spark { transform: rotate(135deg); }

/* ---------------- Menu overlay ---------------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--bg);
  display: grid; grid-template-rows: 1fr auto;
  padding: 100px var(--gutter) var(--gutter);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .9s var(--ease-io);
}
body.menu-open .menu { clip-path: inset(0 0 0 0); }
.menu__links { list-style: none; margin: 0; padding: 0; align-self: center; }
.menu__links li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__links a {
  display: flex; align-items: baseline; gap: 18px;
  font-size: clamp(44px, 9vw, 140px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase;
  padding: .06em 0 .04em;
  transform: translateY(105%);
  transition: transform .9s var(--ease), color .3s;
}
.menu__links small { font-size: 12px; letter-spacing: 0; color: var(--accent); transform: translateY(-2.2em); }
.menu__links a:hover { color: var(--accent); }
body.menu-open .menu__links a { transform: none; }
body.menu-open .menu__links li:nth-child(2) a { transition-delay: .05s; }
body.menu-open .menu__links li:nth-child(3) a { transition-delay: .1s; }
body.menu-open .menu__links li:nth-child(4) a { transition-delay: .15s; }
body.menu-open .menu__links li:nth-child(5) a { transition-delay: .2s; }
.menu__foot { display: flex; flex-wrap: wrap; gap: 8px 32px; font-size: 13px; color: var(--muted); text-transform: uppercase; }
.menu__foot a:hover { color: var(--fg); }

/* ---------------- Hero ---------------- */
.hero { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: clamp(40px, 6vw, 90px); }
.hero__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 22px; font-size: 12px; text-transform: uppercase; font-weight: 500;
}
.hero__nav { display: flex; gap: 28px; }
.hero__nav a { position: relative; color: var(--muted); transition: color .3s; }
.hero__nav a:hover { color: var(--fg); }
.hero__intro {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  margin-top: clamp(80px, 18vh, 200px);
}
.hero__hi { font-size: 12px; text-transform: uppercase; font-weight: 500; }
.hero__hi hr { width: 80px; margin: 14px 0 0; border: 0; height: 1px; background: var(--faint); }
.hero__tag { margin: 0; justify-self: end; max-width: 380px; font-size: 15px; line-height: 1.35; color: var(--fg); }
.hero__tag .reveal { display: block; }
.hero__tag .reveal + .reveal > span { transition-delay: .08s; }

.wordmark {
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.065em;
  line-height: .8;
  white-space: nowrap;
}
.wordmark em { text-transform: none; letter-spacing: -.02em; }
.wordmark--hero {
  font-size: clamp(64px, 21.5vw, 420px);
  margin-top: clamp(28px, 6vh, 70px);
  display: flex;
  justify-content: space-between;
}
.wordmark--hero .reveal { padding: 0 .04em .06em; margin: 0 -.04em; }
.wordmark--hero .reveal:nth-child(2) > span { transition-delay: .04s; }
.wordmark--hero .reveal:nth-child(3) > span { transition-delay: .08s; }
.wordmark--hero .reveal:nth-child(4) > span { transition-delay: .12s; }
.wordmark--hero .reveal:nth-child(5) > span { transition-delay: .16s; }
.wordmark--hero .reveal:nth-child(6) > span { transition-delay: .20s; }
.wordmark--hero .reveal:nth-child(7) > span { transition-delay: .24s; }
.wordmark--hero .reveal:nth-child(8) > span { transition-delay: .28s; }
.wordmark--hero .reveal:nth-child(9) > span { transition-delay: .32s; }
.wordmark .dot, .wordmark b { color: var(--accent); font-weight: 400; }

.hero__grid {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  margin-top: clamp(40px, 7vh, 90px);
}
.facts {
  margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 32px;
  max-width: 860px; align-self: start;
}
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-size: 11px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; font-size: 15px; }

.hero__reel { display: flex; align-items: flex-end; gap: 16px; }
.reel-card {
  position: relative; display: block;
  width: clamp(180px, 17vw, 270px); aspect-ratio: 9 / 16;
  border-radius: 6px; overflow: hidden; background: #1a1a18;
  box-shadow: 0 30px 80px -20px rgba(255, 90, 31, .45);
  transform: translateY(40px); opacity: 0;
  transition: transform 1.2s var(--ease) .35s, opacity 1.2s var(--ease) .35s;
}
body.is-ready .reel-card { transform: none; opacity: 1; }
.reel-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25), transparent 25%, transparent 60%, rgba(0,0,0,.7));
}
.reel-card__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.reel-card__v.is-on { opacity: 1; }
.reel-card__meta { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: grid; text-align: left; }
.reel-card__title { font-size: 15px; font-weight: 500; text-transform: uppercase; letter-spacing: -.01em; }
.reel-card__client { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.reel-card__rec { position: absolute; z-index: 2; top: 10px; left: 12px; display: flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.reel-card__rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 12px; text-transform: uppercase; font-weight: 500;
  transition: background .3s, transform .3s var(--ease);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.pill:hover { background: var(--accent-2); transform: translateY(-2px); }

/* ---------------- Statement ---------------- */
.statement { padding-top: clamp(80px, 14vw, 200px); padding-bottom: clamp(80px, 12vw, 180px); }
.statement__text {
  margin: 0;
  font-size: clamp(40px, 7.2vw, 128px);
  line-height: .92; letter-spacing: -.045em; text-transform: uppercase; font-weight: 400;
}
.statement__text .w { opacity: .14; transition: opacity .4s linear; }
.statement__text .w.on { opacity: 1; }
.statement__text em { text-transform: none; color: var(--accent); }
.statement__because {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: clamp(50px, 8vw, 110px);
}
.statement__because .label { color: var(--muted); }
.statement__because p { margin: 0; max-width: 520px; font-size: clamp(16px, 1.4vw, 20px); line-height: 1.4; }

/* ---------------- Work / 3D slider ---------------- */
.work { position: relative; }
.work__head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 12px; text-transform: uppercase; font-weight: 500;
  color: var(--muted); transition: all .3s;
}
.filter sup { font-size: 9px; margin-left: 2px; }
.filter:hover { color: var(--fg); border-color: var(--faint); }
.filter.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.work__big {
  font-size: clamp(120px, 34vw, 640px); line-height: .78; letter-spacing: -.07em; text-transform: uppercase;
  display: flex; justify-content: space-between; margin-top: 30px; margin-bottom: -.12em;
  color: var(--fg); pointer-events: none;
}
.work__big em { text-transform: none; color: var(--accent); }

.slider { position: relative; height: 900vh; }
.slider__sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
  perspective: 1600px;
}
.slider__glow {
  position: absolute; left: 50%; top: 52%; width: 70vmax; height: 50vmax; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, .22), rgba(255, 90, 31, .06) 55%, transparent 75%);
  pointer-events: none;
}
.slider__stage {
  position: relative;
  width: var(--cw); aspect-ratio: 9 / 16;
  transform-style: preserve-3d;
  --cw: clamp(200px, 22vw, 340px);
  margin-top: -6vh;
}
.card {
  position: absolute; inset: 0;
  border-radius: 8px; overflow: hidden;
  background: #1a1a18;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
  outline: 1px solid rgba(236,230,218,.08);
}
.card img, .card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card video { opacity: 0; transition: opacity .5s; }
.card.is-active video.is-playing { opacity: 1; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55));
  transition: opacity .4s;
}
.card__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,11,10,.45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  opacity: 0; scale: .8; transition: opacity .4s, scale .4s var(--ease);
}
.card__play::before { content: ""; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; }
.card.is-active:hover .card__play { opacity: 1; scale: 1; }
.card__len { position: absolute; z-index: 2; right: 10px; top: 10px; font-size: 11px; padding: 3px 7px; border-radius: 4px; background: rgba(11,11,10,.55); backdrop-filter: blur(6px); }

.slider__info {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 6vh, 64px);
  display: grid; justify-items: center; text-align: center; gap: 4px;
}
.slider__title {
  margin: 0; font-weight: 400; text-transform: uppercase; letter-spacing: -.04em;
  font-size: clamp(30px, 4.4vw, 68px); line-height: 1;
}
.slider__tags { margin: 0; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.slider__count { font-size: 12px; margin-top: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.slider__count b { color: var(--fg); font-weight: 500; }
.slider__hint { position: absolute; top: 90px; left: 50%; translate: -50% 0; font-size: 11px; text-transform: uppercase; color: var(--faint); letter-spacing: .06em; }
.slider__title.swap { animation: swap .6s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(14px); } }

/* ---------------- Index ---------------- */
.index { padding-top: clamp(100px, 14vw, 200px); position: relative; }
.index__table { border-top: 1px solid var(--line); }
.index__row {
  display: grid; grid-template-columns: 70px 2.2fr 1.2fr 1.6fr 80px; gap: 16px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: pointer;
  transition: color .3s, padding .5s var(--ease);
}
.index__row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease);
}
.index__row:not(.index__row--head):hover { color: var(--bg); padding-left: 14px; padding-right: 14px; }
.index__row:not(.index__row--head):hover::before { transform: scaleY(1); transform-origin: top; }
.index__row:not(.index__row--head):hover .index__muted { color: rgba(11,11,10,.6); }
.index__row--head { font-size: 11px; text-transform: uppercase; color: var(--muted); cursor: default; padding: 12px 0; }
.index__title { font-size: clamp(22px, 2.6vw, 38px); letter-spacing: -.035em; text-transform: uppercase; line-height: 1; }
.index__muted { color: var(--muted); font-size: 13px; transition: color .3s; }
.index__row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.index__table { isolation: isolate; }
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 190px; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden;
  opacity: 0; scale: .7; transition: opacity .35s, scale .5s var(--ease);
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.hover-preview.on { opacity: 1; scale: 1; }
.hover-preview video { width: 100%; height: 100%; object-fit: cover; background: #1a1a18; }

/* ---------------- Stills ---------------- */
.stills { padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(60px, 8vw, 120px); }
.marquee { overflow: hidden; margin-bottom: 14px; }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marq 70s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }
.still {
  position: relative; flex: none;
  width: clamp(150px, 15vw, 250px); aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden;
  background: #1a1a18; cursor: zoom-in;
}
.still img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: saturate(.9); }
.still:hover img { transform: scale(1.06); filter: saturate(1.1); }
.still span {
  position: absolute; left: 10px; bottom: 10px; font-size: 10px; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 7px; border-radius: 4px; background: rgba(11,11,10,.6); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px); transition: all .4s var(--ease);
}
.still:hover span { opacity: 1; transform: none; }

/* ---------------- About ---------------- */
.about { padding-top: clamp(100px, 14vw, 200px); padding-bottom: clamp(100px, 14vw, 200px); }
.about__grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.about__photo { margin: 0; position: sticky; top: 90px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 6px; filter: grayscale(.25) contrast(1.05); }
.about__photo figcaption { margin-top: 12px; font-size: 13px; text-transform: uppercase; }
.about__photo figcaption span { color: var(--muted); font-size: 11px; }
.about__lead { margin: 0 0 56px; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -.02em; }
.xp { list-style: none; padding: 0; margin: 14px 0 56px; border-top: 1px solid var(--line); }
.xp li { display: grid; grid-template-columns: 1.4fr 1.4fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.xp__co { font-size: 18px; letter-spacing: -.01em; }
.xp__role { color: var(--muted); font-size: 14px; }
.xp__when { text-align: right; font-size: 12px; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.chips { list-style: none; padding: 0; margin: 14px 0 56px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.clients { margin: 14px 0 0; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.02em; line-height: 1.25; }
.clients span { color: var(--accent); }

/* ---------------- Footer ---------------- */
.footer {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 70% at 50% 120%, rgba(255, 90, 31, .85), rgba(160, 45, 10, .45) 40%, transparent 70%),
    var(--bg);
  border-radius: 18px 18px 0 0;
}
.footer__inner { padding-top: clamp(50px, 7vw, 90px); }
.footer__top { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; font-weight: 500; }
.footer__cta {
  margin: clamp(60px, 10vw, 140px) 0 clamp(50px, 7vw, 100px);
  font-weight: 400; text-transform: uppercase; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(40px, 7vw, 120px);
}
.footer__cta em { text-transform: none; color: var(--accent); }
.footer__contacts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  border-bottom: 1px solid rgba(236,230,218,.2); padding-bottom: 26px;
}
.footer__contacts > div { display: grid; gap: 4px; text-transform: uppercase; font-size: 13px; min-width: 0; }
.footer__contacts a { overflow-wrap: anywhere; transition: color .3s; }
.footer__contacts a[href^="mailto"] { text-transform: none; }
@media (min-width: 1001px) { .footer__contacts { grid-template-columns: 1fr 1.7fr 1fr 1fr; } }
.footer__contacts a:hover { color: var(--accent); }
.footer__word { padding: 0 var(--gutter); margin-top: clamp(20px, 3vw, 40px); }
.footer__word .wordmark { font-size: clamp(64px, 22vw, 430px); line-height: .78; display: flex; justify-content: space-between; }
.footer__word .wordmark span, .footer__word .wordmark em { display: inline; }
.footer__bottom { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; font-size: 12px; text-transform: uppercase; }
.footer__bottom a:hover { color: var(--bg); }

/* ---------------- Lightbox ---------------- */
.lightbox, .imgbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8, 8, 7, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.lightbox.open, .imgbox.open { opacity: 1; visibility: visible; }
.lightbox__frame {
  height: min(86svh, 1100px); aspect-ratio: 9 / 16; max-width: 92vw;
  border-radius: 8px; overflow: hidden; background: #000;
  transform: scale(.94); transition: transform .6s var(--ease);
}
.lightbox.open .lightbox__frame { transform: none; }
.lightbox__frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.lightbox__close {
  position: absolute; top: 16px; right: var(--gutter); z-index: 2;
  display: flex; gap: 10px; align-items: center; height: 40px; padding: 0 14px; border-radius: 8px;
  font-size: 12px; text-transform: uppercase; border: 1px solid var(--line);
}
.lightbox__close:hover { border-color: var(--fg); }
.lightbox__nav {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px;
  transition: background .3s, color .3s;
}
.lightbox__nav:hover { background: var(--fg); color: var(--bg); }
.lightbox__prev { justify-self: end; margin-right: 32px; }
.lightbox__next { justify-self: start; margin-left: 32px; }
.lightbox__meta { position: absolute; left: var(--gutter); bottom: var(--gutter); max-width: 30vw; }
.lightbox__num { font-size: 12px; color: var(--accent); }
.lightbox__title { margin: 6px 0 4px; font-weight: 400; font-size: clamp(26px, 3vw, 48px); text-transform: uppercase; letter-spacing: -.04em; line-height: 1; }
.lightbox__tags { margin: 0; font-size: 12px; text-transform: uppercase; color: var(--muted); }

.imgbox { grid-template-columns: 1fr; cursor: zoom-out; }
.imgbox img { height: min(88svh, 1280px); max-width: 92vw; object-fit: contain; border-radius: 6px; transform: scale(.94); transition: transform .6s var(--ease); }
.imgbox.open img { transform: none; }
.imgbox__cap { position: absolute; left: var(--gutter); bottom: var(--gutter); font-size: 12px; text-transform: uppercase; color: var(--muted); }

/* ---------------- Cursor ---------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor span { font-size: 11px; text-transform: uppercase; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.on { opacity: 1; }
.cursor.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.cursor.big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .hover-preview { display: none; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 1000px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index__row { grid-template-columns: 44px 2fr 1.2fr 60px; }
  .index__row > span:nth-child(4) { display: none; }
  .footer__contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 14px; }
  .hero__nav { display: none; }
  .hero__intro { grid-template-columns: 1fr auto; margin-top: 70px; }
  .hero__intro .spark--lg { order: -1; display: none; }
  .hero__tag { grid-column: 1 / -1; justify-self: start; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__reel { order: -1; }
  .reel-card { width: 46vw; }
  .facts { gap: 20px; }
  .statement__because { grid-template-columns: 1fr; gap: 14px; }
  .slider__stage { --cw: 58vw; margin-top: -10vh; }
  .slider { height: 700vh; }
  .index__row { grid-template-columns: 34px 1fr 52px; gap: 10px; padding: 16px 0; }
  .index__row > span:nth-child(3) { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { position: static; max-width: 320px; }
  .xp li { grid-template-columns: 1fr; gap: 2px; }
  .xp__when { text-align: left; }
  .footer__contacts { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 20px; width: 46px; height: 46px; }
  .lightbox__prev { right: 76px; margin: 0; }
  .lightbox__next { right: var(--gutter); margin: 0; }
  .lightbox__frame { height: auto; width: min(92vw, calc(74svh * 9 / 16)); }
  .lightbox__meta { max-width: 60vw; bottom: 20px; }
  .lightbox__title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
