/* Bardia Yousefi — Director's Reel site. Near-black, ivory, one orange. */
@font-face { font-family: "Archivo"; src: url("../assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Instrument Serif"; font-style: italic; src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Vazirmatn"; font-weight: 300; src: url("../assets/fonts/vazirmatn-arabic-300-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC; font-display: swap; }
@font-face { font-family: "Vazirmatn"; font-weight: 400; src: url("../assets/fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC; font-display: swap; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; src: url("../assets/fonts/vazirmatn-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC; font-display: swap; }
@font-face { font-family: "Vazirmatn"; font-weight: 900; src: url("../assets/fonts/vazirmatn-arabic-900-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFC; font-display: swap; }

:root {
  --bg: #07080a; --film: #0c0d11; --ink: #ece8e1; --muted: #8d8f98; --line: rgba(236, 232, 225, .14); --accent: #ff6a1f;
  --sans: "Archivo", "Vazirmatn", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", "Vazirmatn", Georgia, serif;
  --mono: "JetBrains Mono", "Vazirmatn", ui-monospace, monospace;
  --g: clamp(16px, 3.2vw, 44px);
  --ease: cubic-bezier(.19, 1, .22, 1);
  color-scheme: dark;
}
html:lang(fa) { --sans: "Vazirmatn", "Archivo", Tahoma, sans-serif; --serif: "Vazirmatn", Tahoma, serif; --mono: "Vazirmatn", "JetBrains Mono", Tahoma, monospace; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.is-loading body { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
::selection { background: var(--accent); color: var(--bg); }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; z-index: 300; top: 10px; inset-inline-start: 10px; padding: 10px 14px; background: var(--ink); color: var(--bg); transform: translateY(-220%); }
.skip:focus-visible { transform: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; line-height: 1.4; }
html:lang(fa) .mono { letter-spacing: 0; font-size: 13px; }
.dim { color: var(--muted); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
html:lang(fa) em { font-style: normal; color: var(--accent); }
.rec-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: rec 1.2s steps(2, jump-none) infinite; vertical-align: middle; }
@keyframes rec { 50% { opacity: .15; } }

/* ---------- Fixed layers ---------- */
.gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-gl .gl { display: none; }
.grain { position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .5s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-4%, -2%); } }
.letterbox i { position: fixed; z-index: 3; inset-inline: 0; height: var(--lb, 0px); background: #000; pointer-events: none; transition: height .9s var(--ease); }
.letterbox i:first-child { top: 0; } .letterbox i:last-child { bottom: 0; }

.cursor { position: fixed; z-index: 250; top: 0; left: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); pointer-events: none; display: none; place-items: center; mix-blend-mode: difference; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s; }
.has-cursor .cursor { display: grid; }
.cursor.is-link { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
.cursor.is-play { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--accent); mix-blend-mode: normal; }
.cursor span { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.is-play span { opacity: 1; }

/* ---------- Loader ---------- */
.loader { display: none; }
.is-loading .loader, .loader.is-out { display: grid; position: fixed; inset: 0; z-index: 400; background: var(--bg); place-content: center; justify-items: center; gap: 18px; }
.loader__slate { display: flex; gap: 18px; color: var(--muted); }
.loader__slate span:first-child { color: var(--accent); }
.loader__tc { font: 200 clamp(44px, 9vw, 120px)/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; direction: ltr; }
.loader__bar { width: min(420px, 70vw); height: 1px; background: var(--line); }
.loader__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.loader.is-out { clip-path: inset(50% 0 50% 0); transition: clip-path .9s var(--ease); }

/* ---------- HUD ---------- */
.hud { position: fixed; z-index: 100; inset: 0 0 auto 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 20px; padding: 18px var(--g); pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud__brand { display: grid; gap: 2px; justify-self: start; }
.hud__name { font: 600 20px/1 var(--sans); font-stretch: 80%; letter-spacing: .01em; text-transform: uppercase; }
.hud__name em { text-transform: none; font-size: 1.1em; color: var(--accent); }
html:lang(fa) .hud__name { font-stretch: 100%; }
.hud__handle { color: var(--muted); font-size: 10px; }
.hud__nav ul { display: flex; gap: clamp(14px, 2.6vw, 36px); margin: 0; padding: 6px 14px; list-style: none; border: 1px solid var(--line); border-radius: 40px; background: rgba(7, 8, 10, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hud__nav a { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 0; font-size: 14px; color: var(--muted); transition: color .3s; }
.hud__nav a .mono { font-size: 9px; color: var(--accent); }
.hud__nav a:hover, .hud__nav a[data-on] { color: var(--ink); }
.hud__right { justify-self: end; display: flex; align-items: center; gap: 16px; }
.hud__rec { display: flex; align-items: center; gap: 8px; margin: 0; direction: ltr; font-variant-numeric: tabular-nums; }
.lang { display: flex; direction: ltr; border: 1px solid var(--line); border-radius: 40px; padding: 2px; }
.lang button { min-width: 40px; min-height: 36px; border-radius: 30px; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.menu-btn { display: none; min-height: 44px; }

/* ---------- Shared ---------- */
main { position: relative; z-index: 1; }
.scene { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--ink); }
.scene b { color: var(--accent); font-weight: 400; }
.scene span:not(.dim) { color: var(--muted); }
.big { margin: 0; font: 700 clamp(56px, 10vw, 168px)/.86 var(--sans); font-stretch: 72%; letter-spacing: -.02em; text-transform: uppercase; }
.big em { text-transform: none; font-size: 1.08em; letter-spacing: -.01em; color: var(--accent); }
html:lang(fa) .big { font-stretch: 100%; font-weight: 900; line-height: 1.25; font-size: clamp(48px, 8vw, 128px); letter-spacing: 0; }
[data-reveal] { opacity: 0; transform: translate3d(0, 60px, 0); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto auto 1fr auto; padding: 96px var(--g) 28px; }
.hero__slate { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.hero__role { margin: 10px 0 0; color: var(--ink); }
.hero__title { align-self: center; margin: 0; }
.hero__kinetic { display: block; white-space: nowrap; font: 800 clamp(80px, 19.5vw, 340px)/.8 var(--sans); text-transform: uppercase; letter-spacing: -.035em; font-stretch: 62%; text-shadow: 0 10px 60px rgba(0, 0, 0, .55); }
.hero__kinetic .ch { display: inline-block; font-stretch: var(--w, 100%); font-weight: var(--wg, 800); transform: translate3d(0, var(--y, 110%), 0); transition: transform 1.4s var(--ease); transition-delay: calc(var(--i) * 55ms); }
.is-ready .hero__kinetic .ch { --y: 0%; }
.hero__kinetic .ch.dot { color: var(--accent); }
.hero__kinetic .sp { display: inline-block; width: .2em; }
.hero__kinetic .mask { display: inline-block; overflow: hidden; padding-block: .04em; vertical-align: top; }
html:lang(fa) .hero__kinetic { font-weight: 900; line-height: 1.2; letter-spacing: 0; font-size: clamp(64px, 14vw, 240px); }
.hero__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero__lede { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.35vw, 20px); color: var(--muted); }
.hero__lede strong { color: var(--ink); font-weight: 500; }
.hero__meta { display: grid; justify-items: end; gap: 10px; color: var(--muted); }
.hero__cue { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); padding: 6px 0; }
.hero__cue i { position: relative; width: 60px; height: 1px; background: var(--line); overflow: hidden; }
.hero__cue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- Reel ---------- */
.reel { position: relative; height: 760vh; }
.reel__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 96px var(--g) 22px; pointer-events: none; }
.reel__pin > * { pointer-events: auto; }
.reel__head { display: flex; justify-content: space-between; align-items: baseline; }
.reel__count { margin: 0; color: var(--muted); direction: ltr; font-variant-numeric: tabular-nums; }
.reel__list { position: relative; margin: 0; padding: 0; list-style: none; pointer-events: none; }
.work { position: absolute; inset-inline-start: 0; bottom: 18px; width: min(380px, 30vw); opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .5s, transform .8s var(--ease); pointer-events: none; }
.work.is-active { opacity: 1; transform: none; pointer-events: auto; }
.work:focus-within { opacity: 1; transform: none; }
.work__n { display: block; font: 200 clamp(64px, 7vw, 120px)/.8 var(--mono); color: var(--accent); letter-spacing: -.04em; direction: ltr; text-align: start; }
.work__client { margin: 16px 0 0; color: var(--muted); }
.work__title { margin: 6px 0 0; font: 700 clamp(28px, 3vw, 46px)/.95 var(--sans); font-stretch: 75%; text-transform: uppercase; }
html:lang(fa) .work__title { font-stretch: 100%; font-weight: 900; line-height: 1.35; }
.work__kind { margin: 10px 0 0; color: var(--ink); }
.work__play { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 40px; transition: background-color .3s, color .3s, border-color .3s; }
.work__play:hover, .work__play:focus-visible { background: var(--accent); border-color: var(--accent); color: #000; }
.work__poster { display: none; }
.reel__side { position: absolute; inset-inline-end: 0; bottom: 18px; }

.timeline { position: relative; height: 46px; margin-top: 10px; direction: ltr; }
.timeline__tracks { display: flex; gap: 3px; height: 30px; margin-top: 16px; }
.track { position: relative; height: 100%; border-radius: 3px; background: rgba(236, 232, 225, .08); border: 1px solid var(--line); overflow: hidden; cursor: pointer; transition: background-color .3s; }
.track span { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font: 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.track.is-active { background: rgba(255, 106, 31, .2); border-color: var(--accent); }
.track.is-active span { color: var(--ink); }
.timeline__head { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--accent); transform: translateX(var(--x, 0px)); }
.timeline__head span { position: absolute; top: -2px; left: 6px; color: var(--accent); font-size: 10px; white-space: nowrap; }

/* No WebGL / reduced motion: the reel becomes a grid of real work. */
.no-gl .reel { height: auto; }
.no-gl .reel__pin { position: static; height: auto; display: block; }
.no-gl .reel__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; margin-top: 40px; pointer-events: auto; }
.no-gl .work { position: static; width: auto; opacity: 1; transform: none; pointer-events: auto; }
.no-gl .work__poster { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.no-gl .work__n { font-size: 40px; }
.no-gl .timeline { display: none; }

/* ---------- Direct ---------- */
.direct, .rules { position: relative; padding: 22vh var(--g) 14vh; background: linear-gradient(180deg, transparent, rgba(7, 8, 10, .92) 14vh); }
.direct .big, .rules .big { margin-top: 5vh; }
.direct__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 9vh; }
.card { position: relative; padding: 36px 28px 30px; background: rgba(12, 13, 17, .82); border-top: 1px solid var(--line); min-height: 340px; display: grid; align-content: start; gap: 16px; transition: background-color .5s; }
.card:hover { background: rgba(255, 106, 31, .08); }
.card__n { color: var(--accent); }
.card h3 { margin: 30px 0 0; font: 700 clamp(28px, 2.6vw, 40px)/.95 var(--sans); font-stretch: 78%; text-transform: uppercase; }
html:lang(fa) .card h3 { font-stretch: 100%; font-weight: 900; line-height: 1.35; }
.card p { margin: 0; color: var(--muted); }
.card .mono { margin-top: auto; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 36px; margin: 7vh 0 0; padding: 22px 0 0; list-style: none; border-top: 1px solid var(--line); color: var(--ink); }
.stats li::before { content: "● "; color: var(--accent); }

/* ---------- Rules ---------- */
.rules__list { margin: 9vh 0 0; padding: 0; list-style: none; counter-reset: r; }
.rules__list li { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: baseline; padding: 34px 0; border-top: 1px solid var(--line); }
.rules__list li .mono { color: var(--accent); }
.rules__list h3 { margin: 0; font: 700 clamp(30px, 3.6vw, 58px)/.95 var(--sans); font-stretch: 70%; text-transform: uppercase; transition: font-stretch .6s var(--ease), color .4s; }
.rules__list li:hover h3 { font-stretch: 110%; color: var(--accent); }
html:lang(fa) .rules__list h3 { font-stretch: 100%; font-weight: 900; line-height: 1.35; }
.rules__list p { margin: 0; color: var(--muted); max-width: 52ch; }

/* ---------- Credits ---------- */
.credits { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6vw; align-items: center; padding: 18vh var(--g) 14vh; background: rgba(7, 8, 10, .94); }
.credits__portrait { margin: 0; position: relative; overflow: hidden; border-radius: 4px; }
.credits__portrait img { width: 100%; height: auto; filter: grayscale(.2) contrast(1.05); }
.credits__portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 8, 10, .8), transparent 40%); }
.credits__name { margin: 12px 0 0; font: 800 clamp(64px, 9vw, 160px)/.85 var(--sans); font-stretch: 66%; text-transform: uppercase; letter-spacing: -.02em; }
.credits__name em { display: block; text-transform: none; color: var(--accent); font-size: 1.05em; }
html:lang(fa) .credits__name { font-stretch: 100%; font-weight: 900; line-height: 1.2; }
.credits__dl { margin: 7vh 0 0; display: grid; gap: 26px; }
.credits__dl div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.credits__dl dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.links a { position: relative; padding: 4px 0; }
.links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: var(--o, left); transition: transform .5s var(--ease); }
html[dir="rtl"] .links a::after { --o: right; }
.links a:hover::after, .links a:focus-visible::after { transform: scaleX(1); }
.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 16px; padding: 22px var(--g) 26px; border-top: 1px solid var(--line); background: var(--bg); }

/* ---------- Player ---------- */
.player { width: min(92vw, 52vh, 620px); max-height: 92vh; padding: 0; border: 1px solid var(--line); background: #000; color: var(--ink); border-radius: 6px; }
.player.is-wide { width: min(92vw, 1100px); }
.player::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(8px); }
.player__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.player__bar p { margin: 0; }
.player__close { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 30px; }
.player__close:hover { border-color: var(--accent); color: var(--accent); }
.player__video { width: 100%; max-height: calc(92vh - 66px); background: #000; }


/* ---------- Hard cut flash ---------- */
.cutflash { position: fixed; inset: 0; z-index: 240; pointer-events: none; display: grid; place-items: center; opacity: 0; background: #fff; mix-blend-mode: difference; }
.cutflash span { padding: 8px 14px; background: var(--accent); color: #000; font-size: 13px; opacity: 0; }
.cutflash.go { animation: cutflash .42s steps(1, end); }
.cutflash.go span { animation: cutlabel .9s var(--ease); }
@keyframes cutflash { 0% { opacity: 1; } 12% { opacity: 0; background: #000; } 24% { opacity: .9; background: #000; } 40%, 100% { opacity: 0; } }
@keyframes cutlabel { 0% { opacity: 1; transform: scale(1.4); } 60% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.hero__cut { color: var(--accent); }
.has-cursor .hero { cursor: none; }

/* ---------- Long-form feature ---------- */
.feature { position: relative; height: 260vh; }
.feature__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto; gap: 14px; padding: 92px var(--g) 22px; background: linear-gradient(180deg, rgba(7,8,10,.0), rgba(7,8,10,.9) 18%); }
.feature__head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 6px 28px; }
.feature__title { grid-column: 1 / -1; margin: 0; font: 800 clamp(48px, 7vw, 120px)/.85 var(--sans); font-stretch: 66%; text-transform: uppercase; letter-spacing: -.02em; }
html:lang(fa) .feature__title { font-stretch: 100%; font-weight: 900; line-height: 1.2; }
.feature__meta { grid-column: 1 / -1; margin: 0; }
.feature__stage { display: grid; place-items: center; perspective: 1400px; min-height: 0; }
.feature__frame { position: relative; width: min(100%, calc((100svh - 330px) * 16 / 9)); aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; border: 1px solid var(--line);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--fs, 1)); transform-style: preserve-3d; transition: border-color .3s; box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,106,31,calc(var(--fon,0)*.6)); touch-action: pan-y; cursor: ew-resize; }
.feature__frame video { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.feature__glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.14), transparent 45%); mix-blend-mode: screen; }
.feature__hint { position: absolute; inset-inline-start: 16px; bottom: 14px; padding: 6px 10px; border-radius: 30px; background: rgba(0,0,0,.6); color: var(--ink); }
.feature__frame.is-scrub { border-color: var(--accent); }
.feature__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.feature__bottom .work__play { margin: 0; }
.scrub { position: relative; height: 56px; direction: ltr; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); cursor: ew-resize; touch-action: pan-y; }
.scrub__strip { position: absolute; inset: 0; background: url("../assets/media/uranium-strip.jpg") 0 0 / 100% 100% no-repeat; opacity: .55; filter: grayscale(.4); }
.scrub__head { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); transform: translateX(var(--sx, 0px)); }
.scrub__tc { position: absolute; top: 6px; right: 8px; padding: 2px 6px; background: rgba(0,0,0,.7); color: var(--accent); font-size: 10px; }
.feature__note { margin: 0; }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 1; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: var(--bg); }
.marquee__track { display: flex; width: max-content; white-space: nowrap; font: 800 clamp(48px, 8vw, 128px)/1 var(--sans); font-stretch: 64%; text-transform: uppercase; letter-spacing: -.01em; transform: translate3d(var(--mx, 0px), 0, 0) skewX(var(--mk, 0deg)); direction: ltr; }
.marquee__track span { padding-inline: .3em; }
.marquee__track span:nth-child(odd) em { color: var(--accent); }
html:lang(fa) .marquee__track { font-stretch: 100%; font-weight: 900; }

/* ---------- Card video reveal ---------- */
.card { overflow: hidden; isolation: isolate; }
.card__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .9; filter: saturate(1.1);
  -webkit-mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #000 calc(var(--cr, 0px) - 40px), transparent var(--cr, 0px));
          mask-image: radial-gradient(circle at var(--cx, 50%) var(--cy, 50%), #000 calc(var(--cr, 0px) - 40px), transparent var(--cr, 0px)); }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7,8,10,.85), rgba(7,8,10,.15) 70%); opacity: var(--co, 0); pointer-events: none; }
.card > *:not(video) { position: relative; }

/* ---------- Portrait spotlight ---------- */
.credits__portrait img:first-child { filter: grayscale(1) contrast(1.1) brightness(.8); }
.credits__color { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(1.25) contrast(1.05);
  -webkit-mask-image: radial-gradient(circle at var(--px, 50%) var(--py, 40%), #000 0, #000 calc(var(--pr, 0px) * .5), transparent var(--pr, 0px));
          mask-image: radial-gradient(circle at var(--px, 50%) var(--py, 40%), #000 0, #000 calc(var(--pr, 0px) * .5), transparent var(--pr, 0px)); }
.cursor.is-drag { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--ink); mix-blend-mode: normal; }
.cursor.is-drag span, .cursor.is-cut span { opacity: 1; }
.cursor.is-cut { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: transparent; border: 1px solid var(--accent); mix-blend-mode: normal; }
.cursor.is-cut span { color: var(--accent); }
[data-magnetic] { transform: translate3d(var(--gx2, 0px), var(--gy2, 0px), 0); transition: transform .5s var(--ease); }

@media (max-width: 860px) {
  .feature { height: 200vh; }
  .feature__pin { padding-top: 84px; }
  .feature__frame { width: 100%; }
  .feature__bottom { grid-template-columns: 1fr; }
  .feature__hint { display: none; }
  .card__vid { --cr: 2000px; opacity: .35; }
  .card { --co: 1; }
  .credits__color { --pr: 2000px; }
}
@media (prefers-reduced-motion: reduce) {
  .feature { height: auto; } .feature__pin { position: static; height: auto; }
  .cutflash { display: none; }
  .card__vid { display: none; }
  .credits__color { --pr: 2000px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .hud { grid-template-columns: 1fr auto; }
  .hud__rec { display: none; }
  .menu-btn { display: block; }
  .hud__nav { position: fixed; inset: 0; z-index: -1; display: flex; align-items: flex-end; padding: 0 var(--g) 14vh; background: var(--bg); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
  .is-menu .hud__nav { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
  .hud__nav ul { flex-direction: column; gap: 0; width: 100%; padding: 0; border: 0; background: none; backdrop-filter: none; border-radius: 0; }
  .hud__nav li { border-bottom: 1px solid var(--line); }
  .hud__nav a { width: 100%; gap: 14px; font: 800 clamp(48px, 15vw, 84px)/1.05 var(--sans); font-stretch: 68%; text-transform: uppercase; color: var(--ink); }
  html:lang(fa) .hud__nav a { font-stretch: 100%; font-weight: 900; line-height: 1.5; }
  .hero { padding-top: 90px; }
  .hero__kinetic { font-size: 25vw; }
  html:lang(fa) .hero__kinetic { font-size: 21vw; white-space: normal; line-height: 1.15; }
  .hero__foot { grid-template-columns: 1fr; }
  .hero__meta { justify-items: start; }
  .reel__pin { padding-top: 84px; }
  .work { width: 100%; bottom: 0; background: linear-gradient(0deg, rgba(7, 8, 10, .92) 55%, transparent); padding-top: 60px; }
  .work__n { font-size: 44px; }
  .work__client { margin-top: 8px; }
  .work__title { font-size: 28px; }
  .work__play { margin-top: 12px; padding: 10px 16px; }
  .track span { display: none; }
  .direct__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .rules__list li { grid-template-columns: 1fr; gap: 10px; }
  .credits { grid-template-columns: 1fr; }
  .credits__portrait { max-width: 420px; }
  .credits__dl div { grid-template-columns: 1fr; gap: 6px; }
  .foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero__kinetic .ch { --y: 0%; }
  .grain { display: none; }
}
