/* =========================================================
   Hafsa Mazhar — portfolio
   Palette taken from the CV: ink black, maroon, rose, blush.
   ========================================================= */
:root {
  --ink: #141213;
  --ink-2: #1b1819;
  --ink-3: #252122;
  --ink-4: #322c2e;
  --maroon: #7d1d35;
  --maroon-2: #9d2544;
  --rose: #e8617f;
  --rose-2: #f29bb0;
  --blush: #f9e9ee;
  --blush-2: #f1d5dd;
  --paper: #ffffff;
  --text: #1b1819;
  --muted: #6b6366;
  --muted-d: #aaa1a5;
  --line-d: rgba(255, 255, 255, .09);
  --line-l: #ecd3da;
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--ink); color: #fff;
  font: 400 16px/1.65 var(--body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--maroon); color: #fff; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ink); transition: opacity .5s var(--ease), visibility .5s;
}
body:not(.is-loading) .loader { opacity: 0; visibility: hidden; }
.loader__box { width: min(420px, 82vw); }
.loader__row { display: flex; justify-content: space-between; font: 600 14px var(--head); letter-spacing: .04em; }
.loader__row--dim { color: var(--muted-d); font-weight: 400; font-size: 12px; margin-top: 10px; }
.loader__bar { height: 6px; margin-top: 12px; border-radius: 6px; background: var(--ink-3); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--maroon), var(--rose)); border-radius: 6px; }

/* ---------- scroll scrubber ---------- */
.scrub { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.scrub i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--maroon), var(--rose)); position: relative; }
.scrub i::after { content: ""; position: absolute; right: -5px; top: 0; border: 5px solid transparent; border-top: 7px solid var(--rose); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(20px, calc((100vw - var(--wrap)) / 2));
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck { background: rgba(20, 18, 19, .78); backdrop-filter: blur(14px); border-color: var(--line-d); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 17px var(--head); letter-spacing: -.01em; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--maroon); display: grid; place-items: center; font-size: 17px; box-shadow: 0 6px 20px -6px var(--maroon-2); }
.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a { padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; color: #d9d2d5; transition: color .2s, background .2s; }
.nav__links a:hover, .nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, .07); }
.nav__links .nav__cta { background: var(--maroon); color: #fff; margin-left: 8px; }
.nav__links .nav__cta:hover { background: var(--maroon-2); }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .07); position: relative; }
.nav__toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__toggle span:first-child { top: 16px; } .nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 99px;
  font: 600 15px var(--head); transition: transform .25s var(--ease), background .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--maroon); color: #fff; box-shadow: 0 14px 34px -14px var(--maroon-2); }
.btn--solid:hover { background: var(--maroon-2); }
.btn--ghost { border: 1px solid rgba(255, 255, 255, .22); color: #fff; }
.btn--ghost:hover { border-color: var(--rose); background: rgba(232, 97, 127, .1); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 128px 0 70px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line-d) 1px, transparent 1px), linear-gradient(90deg, var(--line-d) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 10%, transparent 72%);
}
.hero__glow {
  position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(157, 37, 68, .55), transparent 62%); filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__glow--b { left: -220px; right: auto; top: auto; bottom: -320px; }
@keyframes drift { to { transform: translate(-70px, 60px) scale(1.12); } }

.hero__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: start; margin-top: 30px; }
.hero__in { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
body:not(.is-loading) .hero__in { opacity: 1; transform: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-d); border-radius: 99px; background: rgba(255, 255, 255, .04); font-size: 13px; color: #e6dfe2; letter-spacing: .03em; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #5fe08f; box-shadow: 0 0 0 0 rgba(95, 224, 143, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(95, 224, 143, 0); } }
.hero__name { font: 800 clamp(44px, 11.4vw, 152px)/.96 var(--head); letter-spacing: -.045em; margin-top: 20px; text-transform: uppercase; white-space: nowrap; }
.hero__name .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; }
.hero__name .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease); }
.hero__name .line:nth-child(2) > span { transition-delay: .12s; color: transparent; -webkit-text-stroke: 1.5px var(--rose); }
body:not(.is-loading) .hero__name .line > span { transform: none; }
.hero__role { font: 700 clamp(19px, 2.2vw, 25px) var(--head); color: var(--rose); }
.hero__swap { margin-top: 16px; font: 600 clamp(20px, 2.5vw, 29px)/1.3 var(--head); color: #f4eef0; }
.swap { display: inline-block; position: relative; color: #fff; }
.swap__word { display: inline-block; padding: 2px 12px 3px; margin-top: 8px; background: var(--maroon); border-radius: 8px; box-shadow: 0 10px 30px -12px var(--maroon-2); }
.swap__word.is-out { animation: cutOut .28s var(--ease) forwards; }
.swap__word.is-in { animation: cutIn .42s var(--ease) both; }
@keyframes cutOut { to { transform: translateY(-40%) skewX(-10deg); opacity: 0; filter: blur(4px); } }
@keyframes cutIn { from { transform: translateY(45%) skewX(10deg); opacity: 0; filter: blur(4px); clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.hero__lede { max-width: 520px; margin-top: 20px; color: var(--muted-d); font-size: 16.5px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.stats li { flex: 1 1 140px; padding: 14px 18px; border-left: 3px solid var(--maroon-2); border-radius: 4px 12px 12px 4px; background: rgba(255, 255, 255, .045); }
.stats b { display: block; font: 800 27px/1.2 var(--head); color: #fff; }
.stats span { font-size: 13px; color: var(--muted-d); }
.hero__copy > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
body:not(.is-loading) .hero__copy > * { opacity: 1; transform: none; }
.hero__copy > :nth-child(1) { transition-delay: .2s; } .hero__copy > :nth-child(2) { transition-delay: .28s; }
.hero__copy > :nth-child(3) { transition-delay: .36s; } .hero__copy > :nth-child(4) { transition-delay: .44s; }
.hero__copy > :nth-child(5) { transition-delay: .52s; }

.pgm__bar, .modal__bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--ink-3); border-bottom: 1px solid var(--line-d); font-size: 12.5px; color: var(--muted-d); }
.dots { display: inline-flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.dots i:first-child { background: var(--rose); } .dots i:nth-child(2) { background: var(--maroon-2); }
.corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--rose); z-index: 2; }
.corner--tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; } .corner--tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; } .corner--br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.rec, .fmt { position: absolute; top: 22px; z-index: 3; padding: 4px 9px; border-radius: 6px; background: rgba(20, 18, 19, .72); font-size: 11px; backdrop-filter: blur(6px); }
.rec { left: 22px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: .08em; }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.fmt { right: 22px; color: #e9e2e5; }
.ctrl { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--ink-4); font-size: 13px; color: #d8d0d3; }
.ctrl--play { background: var(--maroon); color: #fff; }
.vu { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; }
.vu i { width: 3px; border-radius: 2px; background: var(--rose); animation: vu 1s ease-in-out infinite alternate; }
.vu i:nth-child(1) { height: 40%; animation-duration: .7s; } .vu i:nth-child(2) { height: 85%; animation-duration: .5s; }
.vu i:nth-child(3) { height: 55%; animation-duration: .9s; } .vu i:nth-child(4) { height: 95%; animation-duration: .6s; } .vu i:nth-child(5) { height: 35%; animation-duration: .8s; }
@keyframes vu { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.vu i { transform-origin: bottom; }

/* stage: showreel monitor + phone */
.stage { position: relative; padding: 0 5.5% 9% 0; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity 1s var(--ease) .3s, transform 1s var(--ease) .3s; }
body:not(.is-loading) .stage { opacity: 1; transform: none; }
.pgm { display: block; width: 100%; padding: 0; text-align: left; border-radius: 16px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-d); box-shadow: 0 50px 100px -40px #000, 0 0 0 1px rgba(232, 97, 127, .08), 0 30px 90px -50px var(--maroon-2); transition: transform .4s var(--ease), border-color .3s; }
.pgm:hover { transform: translateY(-4px); border-color: rgba(232, 97, 127, .5); }
.pgm__title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pgm__tc { color: var(--rose-2); font-size: 12px; }
.pgm__view { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.pgm__view video, .phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pgm__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 99px; background: rgba(20, 18, 19, .74); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s, background .3s; white-space: nowrap; }
.pgm:hover .pgm__play, .pgm:focus-visible .pgm__play, .pgm.is-idle .pgm__play { opacity: 1; }
.pgm:hover .pgm__play { background: var(--maroon); }
.pgm__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff; font-size: 19px; animation: pulse 1.8s infinite; }
.pgm:hover .pgm__btn { background: #fff; color: var(--maroon); }
.pgm__lbl { display: grid; } .pgm__lbl b { font: 700 14.5px/1.2 var(--head); color: #fff; } .pgm__lbl i { font-style: normal; font-size: 11.5px; color: #e0d8db; }
.pgm__ctrl { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--ink-3); border-top: 1px solid var(--line-d); }
.pgm__prog { flex: 1; height: 5px; border-radius: 5px; background: var(--ink-4); overflow: hidden; }
.pgm__prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--maroon-2), var(--rose)); border-radius: 5px; }
.phone { position: absolute; right: 0; bottom: 0; z-index: 4; width: 25%; min-width: 112px; aspect-ratio: 9 / 18.6; padding: 5px; border-radius: 24px; background: #0b0a0a; border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 34px 60px -18px #000, 0 0 0 2px #221d1f, 0 0 50px -14px var(--maroon-2); overflow: hidden; transform: rotate(4deg); animation: float 7s ease-in-out infinite; transition: border-color .3s; }
.phone:hover { border-color: var(--rose); }
.phone video { border-radius: 19px; }
.phone__notch { position: absolute; top: 10px; left: 50%; width: 32%; height: 9px; margin-left: -16%; border-radius: 99px; background: #0b0a0a; z-index: 2; }
.phone__ui { position: absolute; left: 5px; right: 5px; bottom: 5px; z-index: 2; display: grid; gap: 1px; padding: 30px 10px 11px; border-radius: 0 0 19px 19px; background: linear-gradient(180deg, transparent, rgba(10, 8, 9, .92)); text-align: left; }
.phone__tag { font: 600 8.5px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--rose-2); }
.phone__ui b { font: 700 12.5px/1.2 var(--head); color: #fff; }
.phone__ui span { font-size: 10px; color: var(--muted-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone__ui.is-swap b, .phone__ui.is-swap span { animation: cutIn .45s var(--ease) both; }
@keyframes float { 0%, 100% { transform: rotate(4deg); } 50% { transform: translateY(-10px) rotate(2.5deg); } }

/* timeline */
.tl { margin-top: 62px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-d); overflow: hidden; box-shadow: 0 40px 90px -50px #000; opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) .6s, transform .9s var(--ease) .6s; }
body:not(.is-loading) .tl { opacity: 1; transform: none; }
.tl__head { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--ink-3); border-bottom: 1px solid var(--line-d); font-size: 12.5px; color: var(--muted-d); }
.tl__tools { display: inline-flex; gap: 5px; }
.tool { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: var(--ink-4); font-size: 13px; }
.tool--on { background: var(--maroon); color: #fff; }
.tl__seq { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl__tc { color: var(--rose-2); font-size: 13px; font-weight: 600; }
.tl__body { display: grid; grid-template-columns: 44px 1fr; }
.tl__labels { display: grid; grid-template-rows: 26px repeat(5, 38px); padding-bottom: 10px; border-right: 1px solid var(--line-d); font: 600 11px var(--mono); color: var(--muted-d); }
.tl__labels::before { content: ""; }
.tl__labels span { display: grid; place-items: center; border-top: 1px solid var(--line-d); }
.tl__lanes { position: relative; display: grid; grid-template-rows: 26px repeat(5, 38px); padding-bottom: 10px; overflow: hidden; }
.tl__ruler { position: relative; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 2.5%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 1px, transparent 1px 12.5%); background-size: 100% 6px, 100% 12px; background-repeat: no-repeat; background-position: 0 100%; }
.tl__ruler span { position: absolute; top: 3px; font: 400 9.5px var(--mono); color: var(--muted-d); transform: translateX(4px); }
.lane { position: relative; border-top: 1px solid var(--line-d); }
.clip {
  position: absolute; top: 4px; bottom: 4px; border-radius: 6px; overflow: hidden; padding: 0 8px;
  display: flex; align-items: center; font: 600 11px var(--head); white-space: nowrap; color: #fff;
  transform-origin: left; transform: scaleX(0); opacity: 0;
  transition: transform .7s var(--ease), opacity .4s, filter .25s, box-shadow .25s;
  border-left: 3px solid rgba(255, 255, 255, .35);
}
.tl.is-in .clip { transform: none; opacity: 1; }
.clip--v3 { background: #c44a69; } .clip--v2 { background: #8f2542; } .clip--v1 { background: #5e1629; }
.clip--a1 { background: #3a2a30; border-left-color: var(--rose); } .clip--a2 { background: #2c2427; border-left-color: var(--maroon-2); }
.clip.is-hit { filter: brightness(1.5) saturate(1.15); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 22px rgba(232, 97, 127, .55); }
.clip i.wave { position: absolute; inset: 4px 0; opacity: .8; background-size: 100% 100%; background-repeat: no-repeat; }
.clip b { position: relative; z-index: 1; font-weight: 600; }
.clip--a1 b, .clip--a2 b { background: rgba(20, 18, 19, .82); padding: 1px 7px; border-radius: 4px; }
.tl__playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--rose); z-index: 4; will-change: transform; box-shadow: 0 0 14px rgba(232, 97, 127, .9); }
.tl__playhead i { position: absolute; top: 0; left: -6px; border: 7px solid transparent; border-top: 11px solid var(--rose); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: var(--maroon); padding: 15px 0; transform: rotate(-1.1deg) scale(1.03); margin: 10px 0 0; box-shadow: 0 20px 60px -30px #000; position: relative; z-index: 2; }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marq 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 700 17px var(--head); letter-spacing: .02em; white-space: nowrap; }
.marquee__track span::after { content: "✦"; color: var(--rose-2); font-size: 13px; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- section furniture ---------- */
section { position: relative; }
.slate { display: inline-flex; align-items: stretch; border: 1px solid var(--line-d); border-radius: 9px; overflow: hidden; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 26px; }
.slate span { padding: 7px 12px; display: inline-flex; align-items: center; white-space: nowrap; }
.slate__n { background: var(--maroon); color: #fff; font-weight: 700; font-family: var(--mono); }
.slate__t { font-weight: 600; color: #fff; }
.slate__tc { color: var(--muted-d); border-left: 1px solid var(--line-d); letter-spacing: .04em; text-transform: none; font-size: 11.5px; }
.slate--light { border-color: var(--line-l); } .slate--light .slate__t { color: var(--text); } .slate--light .slate__tc { color: var(--muted); border-color: var(--line-l); }
h2 { font: 800 clamp(31px, 4.4vw, 52px)/1.08 var(--head); letter-spacing: -.028em; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- work ---------- */
.work { padding: 104px 0 96px; }
.work--short { background: linear-gradient(180deg, var(--ink) 0%, #1a1516 100%); padding-top: 96px; }
.work--long { background: linear-gradient(180deg, #1a1516 0%, #211318 100%); }
.work__head { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 30px; }
.work__head p { color: var(--muted-d); max-width: 480px; justify-self: end; }
.work__head p span { color: var(--rose-2); font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; margin-bottom: 22px; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line-d); background: rgba(255, 255, 255, .03); font: 600 13.5px var(--head); color: #d6ced1; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.tab small { font: 400 11px var(--mono); color: var(--muted-d); }
.tab:hover { border-color: var(--rose); color: #fff; transform: translateY(-1px); }
.tab.is-on { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.tab.is-on small { color: var(--rose-2); }
.grid { display: grid; gap: 16px; }
.grid--v { grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); }
.grid--h { grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.card {
  position: relative; display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; text-align: left;
  background: var(--ink-3); border: 1px solid var(--line-d); isolation: isolate;
  animation: cardIn .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(22px) scale(.97); } }
.grid--v .card { aspect-ratio: 9 / 16; } .grid--h .card { aspect-ratio: 16 / 9; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .4s; }
.card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 19, .35) 0%, transparent 28%, transparent 48%, rgba(20, 18, 19, .92) 100%); }
.card__tag { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(20, 18, 19, .7); backdrop-filter: blur(6px); font: 600 10.5px var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--rose-2); }
.card__play { position: absolute; left: 50%; top: 46%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; background: var(--maroon); color: #fff; font-size: 22px; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .35s var(--ease); box-shadow: 0 0 0 0 rgba(232, 97, 127, .5); }
.card__meta { position: absolute; left: 12px; right: 12px; bottom: 11px; display: grid; gap: 1px; }
.card__meta b { font: 600 14px/1.25 var(--head); color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta i { font-style: normal; font-size: 12px; color: var(--muted-d); }
.grid--h .card__meta b { font-size: 16.5px; }
.card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--maroon-2), var(--rose)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.card:hover, .card:focus-visible { transform: translateY(-6px); border-color: rgba(232, 97, 127, .55); box-shadow: 0 26px 50px -26px #000, 0 0 40px -18px var(--rose); }
.card:hover img, .card:focus-visible img { transform: scale(1.07); filter: brightness(.8); }
.card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; animation: pulse 1.6s infinite; }
.card:hover::after, .card:focus-visible::after { transform: none; }
@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(232, 97, 127, 0); } }
.card.no-thumb { background: linear-gradient(150deg, var(--maroon), var(--ink-3)); }
/* reel wall: two rows drifting sideways */
.wall { display: grid; gap: 14px; margin: 6px 0 18px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.wall__row { overflow: hidden; }
.wall__track { display: flex; gap: 14px; width: max-content; animation: marq 90s linear infinite; }
.wall__row--rev .wall__track { animation-direction: reverse; animation-duration: 104s; }
.wall:hover .wall__track, .wall:focus-within .wall__track { animation-play-state: paused; }
.wall .card { flex: none; width: 190px; aspect-ratio: 9 / 16; animation: none; }
.wall .card:hover, .wall .card:focus-visible { transform: scale(1.03); }
.wall__note { color: var(--muted-d); font-size: 12px; margin: 0 0 30px; }
.more { display: flex; justify-content: center; margin-top: 30px; }
.more[hidden] { display: none; }

/* ---------- about ---------- */
.about, .exp { background: var(--paper); color: var(--text); padding: 104px 0; }
.about__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: start; }
.about__text h2 { margin-bottom: 22px; }
.about__text p { color: #3d3739; font-size: 17px; margin-bottom: 14px; max-width: 620px; }
.expert { margin-top: 30px; }
.expert h3, .kit h3 { font: 700 12px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--maroon); margin: 20px 0 10px; }
.pills, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 14px; border-radius: 8px; border: 1.5px solid var(--maroon); color: var(--text); font-size: 14px; font-weight: 500; transition: background .2s, color .2s, transform .2s var(--ease); }
.pills li:hover { background: var(--maroon); color: #fff; transform: translateY(-2px); }
.kit { background: var(--ink); color: #fff; border-radius: 22px; padding: 12px 28px 28px; position: relative; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(20, 18, 19, .6); }
.kit::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--maroon); }
.kit h3 { color: var(--rose); margin-top: 24px; }
.tags li { padding: 7px 14px; border-radius: 99px; background: var(--ink-3); border: 1px solid var(--line-d); font-size: 13.5px; color: #eee7ea; }
.langs div { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border-bottom: 1px solid var(--line-d); font-size: 14px; }
.langs dt { font-weight: 600; } .langs dd { color: var(--muted-d); text-align: right; }
.dots-list li { position: relative; padding: 4px 0 4px 20px; font-size: 14.5px; color: #eee7ea; }
.dots-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--maroon-2); }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; counter-reset: s; }
.step { position: relative; padding: 22px 20px 24px; border-radius: 14px; background: var(--blush); border-left: 4px solid var(--maroon); transition: transform .3s var(--ease), background .3s; }
.step:nth-child(2) { --d: .08s; } .step:nth-child(3) { --d: .16s; } .step:nth-child(4) { --d: .24s; }
.step:hover { transform: translateY(-5px); background: var(--blush-2); }
.step__n { font-size: 12px; font-weight: 600; color: var(--maroon); }
.step h3 { font: 700 18px/1.25 var(--head); margin: 8px 0 6px; }
.step p { font-size: 14.5px; color: #4a4346; line-height: 1.55; }

/* ---------- experience ---------- */
.exp { background: var(--blush); padding-top: 96px; }
.exp__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.exp__intro { position: sticky; top: 100px; }
.exp__intro p { color: #4a4346; margin-top: 14px; max-width: 360px; }
.edu { display: grid; gap: 3px; margin-top: 34px; padding: 22px 24px; border-radius: 16px; background: var(--ink); color: #fff; border-left: 6px solid var(--maroon); }
.edu__k { font: 700 11px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
.edu b { font: 700 17px/1.3 var(--head); } .edu span { color: #e3dbde; font-size: 14.5px; } .edu .edu__m { color: var(--muted-d); font-size: 13.5px; }
.track { position: relative; padding-left: 34px; display: grid; gap: 18px; }
.track__line { position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--blush-2); }
.track__line i { display: block; width: 100%; height: 0; border-radius: 3px; background: linear-gradient(180deg, var(--maroon), var(--rose)); }
.job { position: relative; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line-l); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.job::before { content: ""; position: absolute; left: -34px; top: 26px; width: 19px; height: 19px; border-radius: 50%; background: var(--maroon); border: 4px solid var(--blush); box-shadow: 0 0 0 2px var(--maroon); }
.job:hover { transform: translateX(6px); border-color: var(--maroon); box-shadow: 0 24px 50px -30px rgba(125, 29, 53, .5); }
.job__top { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.job h3 { font: 700 19px/1.25 var(--head); }
.job__when { flex: none; padding: 3px 10px; border-radius: 99px; background: var(--blush); color: var(--maroon); font: 600 12px var(--head); }
.job__co { color: var(--maroon); font-weight: 600; font-size: 14.5px; margin: 3px 0 10px; }
.job li { position: relative; padding-left: 16px; color: #3d3739; font-size: 14.8px; margin-top: 4px; }
.job li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon); }

/* ---------- contact ---------- */
.contact { padding: 110px 0 96px; overflow: hidden; isolation: isolate; background: var(--ink); }
.contact__big { font-size: clamp(46px, 8.6vw, 116px); line-height: .98; letter-spacing: -.04em; }
.contact__big em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--rose); }
.contact__sub { color: var(--muted-d); font-size: 17.5px; margin: 22px 0 40px; max-width: 520px; }
.contact__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 14px; }
.cc { position: relative; display: grid; gap: 5px; align-content: start; padding: 22px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-d); overflow: hidden; transition: transform .3s var(--ease), background .3s, border-color .3s; min-width: 0; }
.cc:nth-child(2) { --d: .07s; } .cc:nth-child(3) { --d: .14s; } .cc:nth-child(4) { --d: .21s; }
.cc:hover { transform: translateY(-6px); background: var(--maroon); border-color: var(--maroon); }
.cc__k { font: 700 11px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--rose); transition: color .3s; }
.cc:hover .cc__k { color: var(--rose-2); }
.cc b { font: 600 16px/1.35 var(--head); overflow-wrap: anywhere; }
.cc__go { margin-top: 14px; font-size: 13.5px; color: var(--muted-d); transition: color .3s; } .cc:hover .cc__go { color: #fff; }
.contact__loc { margin-top: 34px; color: var(--muted-d); font-size: 14px; }
.foot { background: #0e0c0d; border-top: 1px solid var(--line-d); padding: 22px 0; font-size: 13.5px; color: var(--muted-d); }
.foot__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; } .foot a:hover { color: #fff; }

/* ---------- player ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .3s, visibility .3s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__bg { position: absolute; inset: 0; background: rgba(10, 8, 9, .86); backdrop-filter: blur(10px); }
.modal__box { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line-d); box-shadow: 0 60px 120px -40px #000, 0 0 90px -40px var(--maroon-2); transform: translateY(24px) scale(.96); transition: transform .4s var(--ease); max-width: 100%; }
.modal.is-open .modal__box { transform: none; }
.modal__title { flex: 1; color: #fff; font: 600 13.5px var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal__x { width: 30px; height: 30px; border-radius: 8px; background: var(--ink-4); color: #fff; transition: background .2s; } .modal__x:hover { background: var(--maroon); }
.modal__stage { position: relative; background: #000; aspect-ratio: var(--ar, 9 / 16); margin-inline: auto; }
.modal__stage.is-v { height: min(74vh, 780px, calc((100vw - 34px) / var(--arn, .5625))); }
.modal__stage.is-h { width: min(1080px, calc(100vw - 34px), calc(74vh * var(--arn, 1.7778))); }
.modal__stage iframe, .modal__stage video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.modal__stage [hidden] { display: none; }
.modal__spin { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; border: 3px solid var(--ink-4); border-top-color: var(--rose); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal__foot { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ink-3); border-top: 1px solid var(--line-d); font-size: 13px; }
.modal__nav { width: 36px; height: 34px; border-radius: 9px; background: var(--ink-4); color: #fff; font-size: 16px; transition: background .2s; } .modal__nav:hover { background: var(--maroon); }
.modal__info { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; color: var(--rose-2); font-weight: 600; white-space: nowrap; overflow: hidden; }
.modal__info .mono { color: var(--muted-d); font-weight: 400; font-size: 12px; }
.modal__open { color: var(--muted-d); white-space: nowrap; } .modal__open:hover { color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { padding-top: 104px; }
  .hero__grid, .about__grid, .exp__grid, .work__head { grid-template-columns: 1fr; }
  .hero__grid { gap: 40px; margin-top: 22px; }
  .stage { padding: 0 4% 8% 0; }
  .work__head { gap: 12px; } .work__head p { justify-self: start; }
  .exp__intro { position: static; }
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 20px 22px; background: var(--ink); box-shadow: 0 30px 60px -20px #000; border-bottom: 1px solid var(--line-d); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
  .nav__links.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__links a { padding: 13px 14px; font-size: 16px; } .nav__links .nav__cta { margin: 8px 0 0; text-align: center; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .work, .about, .exp { padding: 76px 0; } .work--short { padding-top: 92px; }
  .grid--v { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid--h { grid-template-columns: 1fr; }
  .contact__grid, .process { grid-template-columns: 1fr; }
  .stats li { flex-basis: 100px; padding: 12px 12px; } .stats b { font-size: 22px; }
  .tl__body { grid-template-columns: 30px 1fr; }
  .tl__labels, .tl__lanes { grid-template-rows: 22px repeat(5, 30px); }
  .clip { font-size: 9.5px; padding: 0 5px; }
  .tl__seq { font-size: 11px; }
  .slate .slate__tc { display: none; }
  .clip--v3 b, .clip--v2 b { display: none; }
  .clip--v1 { font-size: 8.5px; padding: 0 3px; letter-spacing: -.02em; }
  .hero__name { font-size: clamp(50px, 17vw, 80px); white-space: normal; }
  .wall .card { width: 132px; } .wall, .wall__track { gap: 10px; }
  .phone { width: 29%; border-radius: 18px; } .phone video { border-radius: 14px; } .phone__ui { border-radius: 0 0 14px 14px; padding: 22px 7px 8px; } .phone__ui b { font-size: 10.5px; } .phone__ui span { font-size: 8.5px; }
  .pgm__lbl i { display: none; } .pgm__btn { width: 36px; height: 36px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .job { padding: 18px; } .job__top { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
  .modal__open { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track, .wall__track { animation: none; }
}
