/* ==========================================================================
   Dhruv Shah — portfolio
   Palette: cobalt / ink / yellow / cream (+ coral only inside reel cards)
   ========================================================================== */
/* Self-hosted fonts (SIL Open Font License) — latin subset */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/anton-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/inter-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-var.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --cobalt: #2438E8;
  --ink: #0E1116;
  --yellow: #FFD23F;
  --cream: #F6EFE3;
  --coral: #FF5A3C;
  --white: #FFFFFF;

  --display: "Anton", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --g: 16px;                                   /* side gutter */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --swift: cubic-bezier(.77, 0, .18, 1);
  --focus: var(--yellow);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --g: 28px; } }
@media (min-width: 1280px) { :root { --g: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
html.is-loading, html.is-loading body { overflow: hidden; }
.fonts-pending .loader__count, .fonts-pending .loader__tag, .fonts-pending .hero__name, .fonts-pending .hero__intro, .fonts-pending .hero__cue, .fonts-pending .topbar { visibility: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* utilities */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; line-height: 1.4; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--g); }
.eyebrow { color: var(--cobalt); margin-bottom: 14px; }
.big { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 9vw, 132px); line-height: .9; letter-spacing: .005em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 12px 16px; border-radius: 999px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid currentColor;
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; background: transparent;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--spring);
}
.pill--cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.pill--cream:hover { background: var(--yellow); border-color: var(--yellow); }
.pill--yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.pill--yellow:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.pill--ghost { color: var(--cream); border-color: rgba(246, 239, 227, .45); }
.pill--ghost:hover { background: var(--cream); color: var(--ink); }

.rbtn {
  width: 52px; height: 52px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--cream); background: transparent; color: var(--cream);
  transition: background-color .25s, color .25s, transform .45s var(--spring);
}
.rbtn:hover { transform: scale(1.08); background: var(--cream); color: var(--ink); }
.rbtn:active { transform: scale(.9); }
.rbtn--fill { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.rbtn--fill:hover { background: var(--cream); border-color: var(--cream); }
.rbtn--sm { width: 44px; height: 44px; border-color: var(--ink); color: var(--ink); }
.rbtn--sm:hover { background: var(--ink); color: var(--cream); }
.rbtn:disabled { opacity: .35; pointer-events: none; }

.link { text-decoration: none; position: relative; padding: 12px 2px; }
.link::after { content: ""; position: absolute; left: 2px; right: 2px; bottom: 8px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--swift); }
.link:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   LOADER
   ========================================================================== */
.loader { display: none; }
html.js:not(.skip-loader) .loader {
  display: block; position: fixed; inset: 0; z-index: 150;
  background: var(--cobalt); color: var(--cream);
  transition: transform 1s var(--swift);
  animation: loaderFailsafe .01s 6s forwards;
  contain: strict;
}
.loader.is-done { transform: translateY(-101%); }
@keyframes loaderFailsafe { to { visibility: hidden; } }
.loader__sticker {
  position: absolute; left: 50%; top: 44%; width: clamp(130px, 28vmin, 230px); aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.stk { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; opacity: 0; filter: drop-shadow(0 12px 18px rgba(6, 10, 60, .35)); }
.stk.is-on { opacity: 1; animation: stkPop .4s var(--spring); }
@keyframes stkPop { from { transform: scale(.6) rotate(-14deg); } to { transform: scale(1) rotate(0); } }
.stk__ol { fill: var(--white); stroke: var(--white); stroke-width: 18; stroke-linejoin: round; stroke-linecap: round; }
.stk__ol--line { fill: none; stroke-width: 30; }
.stk__art { stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.stk__art--y { fill: var(--yellow); }
.stk__art--c { fill: var(--cream); }
.stk__art--line { fill: none; stroke: var(--ink); stroke-width: 13; stroke-linecap: round; }
.stk__line { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
.stk__ink { fill: var(--ink); }
.loader__count {
  position: absolute; left: var(--g); bottom: max(8px, env(safe-area-inset-bottom));
  font-family: var(--display); color: var(--yellow); line-height: .8;
  font-size: clamp(110px, 27vw, 380px); letter-spacing: -.01em;
}
.loader__count span { display: inline-block; width: 1.62em; text-align: right; contain: layout paint; }
.loader__tag { position: absolute; right: var(--g); bottom: calc(18px + env(safe-area-inset-bottom)); }

/* ==========================================================================
   TOP BAR + HERO
   ========================================================================== */
.topbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) var(--g) 0;
  color: var(--cream);
}
.topbar__logo { text-decoration: none; padding: 12px 0; white-space: nowrap; }
.topbar__nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 28px); }
.topbar__nav .pill { min-height: 44px; padding: 0 16px; }
@media (max-width: 479px) { .hide-sm { display: none; } .topbar__nav .mono { font-size: 11px; letter-spacing: .1em; } }

.hero {
  position: relative; z-index: 1;
  height: 100vh; height: 100svh; min-height: 560px;
  background: var(--cobalt); color: var(--cream);
  overflow: hidden;
}
.hero__name {
  position: absolute; left: 0; right: 0; top: 47%;
  transform: translateY(-50%);
  z-index: 1; pointer-events: none;
}
.marq { white-space: nowrap; line-height: .84; }
.marq__track { display: inline-flex; will-change: transform; }
.marq__item {
  display: inline-flex; align-items: center;
  font-family: var(--display); text-transform: uppercase; color: var(--yellow);
  font-size: clamp(112px, max(23vw, 19svh), 400px); letter-spacing: .005em;
  padding-right: .18em;
}
.marq--outline .marq__item { color: transparent; -webkit-text-stroke: clamp(1.5px, .25vw, 3px) var(--yellow); }
.marq__star {
  display: inline-block; width: .32em; height: .32em; margin-left: .2em;
  background: var(--yellow);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.hero__portrait {
  position: absolute; left: 0; right: 0; bottom: 0; margin-inline: auto; width: max-content;
  z-index: 2;
}
.hero__float { perspective: 900px; }
.hero__img {
  height: min(62svh, calc(94vw * 1.447));
  width: auto;
  filter: drop-shadow(0 26px 30px rgba(6, 10, 60, .38));
  transform-origin: 50% 90%;
}
@media (max-width: 1099px) {
  .hero__float { animation: float 5s ease-in-out infinite; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__intro {
  position: absolute; z-index: 3; left: var(--g); right: var(--g);
  top: calc(max(12px, env(safe-area-inset-top)) + 64px);
  max-width: 34ch;
}
.hero__role { display: flex; flex-wrap: wrap; gap: 0 .6em; color: var(--cream); }
.hero__role-label { color: var(--cream); }
.rotator { display: inline-grid; color: var(--yellow); }
.rotator__word { grid-area: 1 / 1; opacity: 0; transform: translateY(70%); transition: opacity .45s, transform .6s var(--swift); white-space: nowrap; }
.rotator__word.is-on { opacity: 1; transform: none; }
.rotator__word.is-out { opacity: 0; transform: translateY(-70%); }
.hero__line { margin-top: 10px; font-size: clamp(17px, 4.6vw, 22px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.hero__cue { display: none; }

@media (min-width: 1100px) and (min-height: 620px) {
  .hero__img { height: min(88svh, 1000px); }
  .hero__intro { top: auto; bottom: 40px; max-width: min(30ch, calc(50vw - 330px)); }
  .hero__line { font-size: clamp(18px, 1.5vw, 24px); }
  .hero__cue {
    display: inline-flex; align-items: center; gap: 10px; position: absolute; z-index: 3;
    right: var(--g); bottom: 40px; color: var(--cream); text-decoration: none; padding: 12px 0;
  }
  .hero__cue svg { animation: nudge 1.6s ease-in-out infinite; }
}
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* landscape phones */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__img { height: 82svh; }
  .hero__intro { max-width: 26ch; top: 64px; }
  .hero__line { font-size: 16px; }
  .hero__name { top: 64%; }
  .marq__item { font-size: 30svh; }
}

/* ==========================================================================
   WORK — pinned project viewer
   ========================================================================== */
.work { position: relative; z-index: 2; background: var(--ink); color: var(--cream); }
.work__pin {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  display: grid; gap: 12px 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  grid-template-areas:
    "label ctrl"
    "info  info"
    "stage stage"
    "sub   sub"
    "thumbs thumbs";
  padding: max(14px, env(safe-area-inset-top)) var(--g) max(14px, env(safe-area-inset-bottom));
  overflow: hidden;
}
.work__label { grid-area: label; align-self: center; display: flex; align-items: center; gap: 10px; color: rgba(246, 239, 227, .8); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 210, 63, .2); }
.work__ctrl { grid-area: ctrl; display: flex; align-items: center; gap: 10px; justify-self: end; }
.work__ctrl .rbtn { width: 46px; height: 46px; }
.work__count { order: -1; margin-right: 6px; color: var(--cream); font-size: 13px; }
.work__count span:first-child { color: var(--yellow); }

.work__info { grid-area: info; display: grid; container-type: inline-size; min-width: 0; }
.pinfo {
  grid-area: 1 / 1; min-width: 0;
  opacity: 0; transform: translateY(28px); visibility: hidden; pointer-events: none;
  transition: opacity .45s, transform .7s var(--swift), visibility 0s .7s;
}
.pinfo.is-before { transform: translateY(-28px); }
.pinfo.is-active { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: .08s, .08s, 0s; }
.pinfo__title {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--yellow);
  font-size: clamp(40px, 13.5cqi, 150px); line-height: .88; letter-spacing: .005em;
  hyphens: manual;
}
.pinfo__lead { margin-top: 10px; font-weight: 600; font-size: clamp(15px, 1.5vw, 22px); line-height: 1.3; letter-spacing: -.01em; }
.pinfo__desc { margin-top: 8px; color: rgba(246, 239, 227, .82); font-size: clamp(14px, 1.15vw, 17px); line-height: 1.45; max-width: 46ch; }
.pinfo__role { margin-top: 10px; color: rgba(246, 239, 227, .66); font-size: 10.5px; letter-spacing: .12em; max-width: 52ch; }

/* pipeline (project 01) */
.pipe { display: none; flex-wrap: wrap; align-items: center; gap: 10px 8px; margin-top: 18px; max-width: 520px; }
.pipe__node { border: 1.5px solid rgba(246, 239, 227, .5); border-radius: 14px; padding: 8px 12px; opacity: 0; transform: translateY(10px) scale(.92); transition: opacity .4s, transform .5s var(--spring); }
.pipe__node b { display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 20px; line-height: 1.05; color: var(--yellow); }
.pipe__node span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 239, 227, .8); }
.pipe__link { position: relative; width: 34px; height: 2px; background: rgba(246, 239, 227, .25); overflow: hidden; }
.pipe__link i { position: absolute; top: -2px; left: 0; width: 8px; height: 6px; border-radius: 3px; background: var(--yellow); animation: flow 1.4s linear infinite; }
@keyframes flow { from { transform: translateX(-10px); } to { transform: translateX(36px); } }
.pipe__by { flex-basis: 100%; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); padding-top: 8px; border-top: 1.5px dashed rgba(246, 239, 227, .3); opacity: 0; transition: opacity .5s .5s; }
.pinfo.is-active .pipe__node, .pinfo.is-active .pipe__by { opacity: 1; transform: none; }
.pinfo.is-active .pipe__node:nth-child(3) { transition-delay: .15s; }
.pinfo.is-active .pipe__node:nth-child(5) { transition-delay: .3s; }

/* stage + device */
.work__stage { grid-area: stage; min-height: 0; display: grid; place-items: center; }
.device-wrap { height: 100%; min-height: 0; display: grid; place-items: center; perspective: 1400px; }
.device-tilt { height: 100%; transform: rotateY(-5deg) rotateX(3deg); transform-style: preserve-3d; display: grid; place-items: center; }
.device {
  position: relative; height: 100%; max-height: 780px; aspect-ratio: 9 / 17.6; max-width: 100%;
  padding: 9px; border-radius: 13% / 6.6%;
  background: #05070A;
  box-shadow: 0 0 0 3px var(--cream), 0 0 0 9px rgba(246, 239, 227, .06), 0 40px 80px -20px rgba(0, 0, 0, .7);
  will-change: transform;
}
.device.is-wide { aspect-ratio: 4 / 5; border-radius: 7% / 5.6%; }
.device__screen { position: relative; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; background: #000; container-type: size; isolation: isolate; }
.device.is-wide .device__screen { border-radius: 5.5% / 4.4%; }
.device__notch { position: absolute; top: 17px; left: 50%; width: 26%; height: 16px; transform: translateX(-50%); border-radius: 10px; background: #05070A; z-index: 6; transition: opacity .2s; }
.device.is-wide .device__notch { opacity: 0; }
/* curved glass highlight */
.device__screen::before { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 14px 0 30px -18px rgba(255, 255, 255, .25); }
/* scanlines that flash on change */
.device__screen::after { content: ""; position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 5px); mix-blend-mode: overlay; }
.device-tilt.is-glitch { animation: rgbSplit .5s steps(1, end); }
.device-tilt.is-glitch .device__screen::after { animation: scan .5s steps(1, end); }
@keyframes rgbSplit {
  0%   { filter: drop-shadow(7px 0 0 rgba(255, 0, 90, .9)) drop-shadow(-7px 0 0 rgba(0, 230, 255, .9)); }
  20%  { filter: drop-shadow(-10px 2px 0 rgba(255, 0, 90, .9)) drop-shadow(9px -2px 0 rgba(0, 230, 255, .9)) contrast(1.3); }
  40%  { filter: drop-shadow(4px 0 0 rgba(255, 0, 90, .8)) drop-shadow(-4px 0 0 rgba(0, 230, 255, .8)) saturate(1.6); }
  60%  { filter: drop-shadow(-3px 0 0 rgba(255, 0, 90, .7)) drop-shadow(3px 0 0 rgba(0, 230, 255, .7)); }
  80%, 100% { filter: none; }
}
@keyframes scan { 0% { opacity: 1; transform: translateY(0); } 25% { opacity: .6; transform: translateY(-3%); } 50% { opacity: 1; transform: translateY(2%); } 75%, 100% { opacity: 0; transform: none; } }

/* screens */
.scr {
  position: absolute; inset: 0;
  transform: translateY(100%); visibility: hidden;
  transition: transform .75s var(--swift), visibility 0s .75s;
}
.scr.is-before { transform: translateY(-100%); }
.scr.is-active { transform: none; visibility: visible; transition: transform .75s var(--swift), visibility 0s; }

.scr--video { background: #000; }
.scr--video video, .scr__yt, .scr__yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.scr__yt iframe { pointer-events: none; }
.scr__tap { position: absolute; inset: 0; z-index: 2; border: 0; padding: 0 0 7cqh; background: transparent; display: flex; align-items: flex-end; justify-content: center; }
.scr__badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; background: rgba(14, 17, 22, .78); color: var(--cream); font-size: 10.5px; transition: transform .4s var(--spring), background-color .2s; }
.scr__tap:hover .scr__badge { transform: scale(1.06); background: var(--yellow); color: var(--ink); }
.scr__ep { position: absolute; z-index: 3; left: 50%; bottom: calc(7cqh + 46px); transform: translateX(-50%); padding: 5px 10px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 700; white-space: nowrap; pointer-events: none; }

/* reel cards */
.rstack { position: absolute; inset: 0; }
.rprog { position: absolute; z-index: 4; top: max(40px, 9cqh); left: 7cqw; right: 7cqw; display: flex; gap: 4px; }
.rprog span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.rprog span i { display: block; height: 100%; background: currentColor; transform: scaleX(0); transform-origin: left; }
.rprog span.is-done i { transform: scaleX(1); }
.rprog span.is-run i { animation: prog var(--dur, 3.4s) linear forwards; }
@keyframes prog { to { transform: scaleX(1); } }
.rcard {
  position: absolute; inset: 0; border: 0; padding: calc(max(40px, 9cqh) + 22px) 7cqw 8cqw; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  color: var(--t); background: linear-gradient(162deg, var(--a) 0 60%, var(--b) 60% 100%);
  opacity: 0; transform: scale(1.06); visibility: hidden;
  transition: opacity .55s, transform .9s var(--swift), visibility 0s .9s;
  overflow: hidden;
}
.rcard.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; z-index: 1; }
.rcard--kalakriti { --a: var(--coral); --b: var(--yellow); --t: var(--ink); --p: var(--ink); --pi: var(--yellow); }
.rcard--skillinabox { --a: var(--cobalt); --b: #1A2BC9; --t: var(--cream); --p: var(--yellow); --pi: var(--ink); }
.rcard--hoe { --a: #1D1A16; --b: #2C2721; --t: var(--cream); --p: var(--cream); --pi: var(--ink); }
.scr--reels[data-group="kalakriti"] .rprog { color: var(--ink); }
.scr--reels[data-group="skillinabox"] .rprog { color: var(--yellow); }
.scr--reels[data-group="hoe"] .rprog { color: var(--yellow); }
.rcard__tag { font-family: var(--mono); font-size: max(9.5px, 3.2cqw); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.rcard__num { position: absolute; right: -4cqw; top: 14cqh; font-family: var(--display); font-size: 62cqw; line-height: .8; opacity: .13; pointer-events: none; }
.rcard__play {
  align-self: center; width: 30cqw; height: 30cqw; border-radius: 50%;
  display: grid; place-items: center; background: var(--p); color: var(--pi);
  box-shadow: 0 0 0 max(4px, 1.6cqw) var(--white), 0 18px 30px -8px rgba(0, 0, 0, .45);
  transition: transform .45s var(--spring);
}
.rcard__play svg { width: 42%; height: 42%; margin-left: 6%; }
.rcard:hover .rcard__play { transform: scale(1.08) rotate(-6deg); }
.rcard__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: max(22px, 10.5cqw); line-height: .95; }
.rcard__line { margin-top: 8px; font-size: max(12px, 4.2cqw); line-height: 1.35; opacity: .9; }
.rcard__cta { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: max(9.5px, 3cqw); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }

/* stat wall (project 05) */
.scr--stats { background: var(--yellow); color: var(--ink); padding: 7cqmin 6cqmin; display: flex; flex-direction: column; overflow: hidden; }
.stats__head { font-size: max(10px, 2.6cqmin); margin-bottom: 3cqmin; }
.stats { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 2.4cqmin 4cqmin; }
.stats li { border-top: 2.5px solid var(--ink); padding-top: 1.6cqmin; display: flex; flex-direction: column; min-height: 0; }
.stats b { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 11cqmin, 84px); line-height: 1; letter-spacing: .005em; font-variant-numeric: tabular-nums; }
.stats span { margin-top: .8cqmin; font-size: clamp(9.5px, 3.1cqmin, 18px); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@container (max-width: 200px) {
  .scr__badge { font-size: 9px; padding: 8px 10px; letter-spacing: .08em; }
}
@container (max-height: 360px) {
  .stats__head { display: none; }
  .stats { gap: 6px 10px; }
  .stats span { -webkit-line-clamp: 2; }
}

/* under-device controls */
.work__sub { grid-area: sub; display: grid; min-width: 0; }
.sub { grid-area: 1 / 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; padding: 2px; scroll-snap-type: x proximity; }
.sub::-webkit-scrollbar { display: none; }
.sub[data-i="1"], .sub[data-i="2"], .sub[data-i="3"] { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 28px), transparent); padding-inline: 14px 28px; }
.sub.is-active { opacity: 1; visibility: visible; transition-delay: .1s, 0s; }
.sub__note { align-self: center; color: rgba(246, 239, 227, .7); padding: 12px 0; }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid rgba(246, 239, 227, .35); background: transparent; color: var(--cream);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .4s var(--spring);
}
.chip svg { width: 12px; height: 12px; flex: none; }
.chip:hover { border-color: var(--cream); transform: translateY(-2px); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.chip--ep { font-weight: 700; }
@media (min-width: 600px) { .sub[data-i="0"] { justify-content: center; } }

/* thumbnails strip */
.work__thumbs { grid-area: thumbs; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.thumb {
  min-height: 44px; border-radius: 14px; border: 1.5px solid rgba(246, 239, 227, .22); background: transparent; color: var(--cream);
  font-size: 0; text-align: center; padding: 0 6px;
  transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--spring);
}
.thumb .mono { font-size: 12px; font-weight: 700; }
.thumb:hover { border-color: var(--cream); transform: translateY(-2px); }
.thumb.is-active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.work__credit { padding: 22px var(--g) 30px; text-align: center; color: rgba(246, 239, 227, .62); font-size: 10.5px; letter-spacing: .12em; max-width: 72ch; margin-inline: auto; }

/* small phones: give the device room */
@media (max-width: 999px) {
  .pinfo__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .pinfo__role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 999px) and (max-height: 780px) {
  .pinfo[data-i="0"] .pinfo__desc { display: none; }
  .work__thumbs { display: none; }
  .work__pin { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "label ctrl" "info info" "stage stage" "sub sub"; }
}
@media (max-width: 999px) and (max-height: 640px) {
  .pinfo__desc { -webkit-line-clamp: 2; font-size: 13.5px; }
  .pinfo__role { display: none; }
}
/* tablets portrait: larger type and thumbs with names */
@media (min-width: 640px) and (max-width: 999px) {
  .thumb { font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
}

/* desktop */
@media (min-width: 1000px) and (min-height: 560px) {
  .work__pin {
    gap: 16px 48px;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "label label"
      "info  stage"
      "ctrl  sub"
      "thumbs thumbs";
    padding-top: 26px; padding-bottom: 22px;
  }
  .work__info { align-self: center; }
  .work__ctrl { justify-self: start; align-self: center; gap: 14px; }
  .work__ctrl .rbtn { width: 60px; height: 60px; }
  .work__count { order: 3; margin: 0 0 0 10px; font-size: 14px; }
  .pipe { display: flex; }
  .device-tilt { transform: rotateY(-11deg) rotateX(5deg) rotateZ(-1.2deg); }
  .sub { justify-content: center; }
  .thumb { font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; }
}
@media (min-width: 1000px) and (max-height: 760px) and (min-height: 560px) {
  .pipe { margin-top: 12px; }
  .pinfo__title { font-size: clamp(40px, 11.5cqi, 120px); }
  .thumb { min-height: 46px; }
}

/* landscape phones */
@media (max-height: 559px) and (orientation: landscape) {
  .work__pin {
    min-height: 0; gap: 8px 22px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "label stage" "info stage" "ctrl stage" "sub stage";
  }
  .work__thumbs { display: none; }
  .work__ctrl { justify-self: start; }
  .work__info { align-self: center; }
  .pinfo__title { font-size: clamp(34px, 9cqi, 72px); }
  .pinfo__desc { -webkit-line-clamp: 2; font-size: 13px; }
  .pinfo__role, .pinfo[data-i="0"] .pinfo__desc { display: none; }
  .sub { justify-content: flex-start; }
}

/* ==========================================================================
   ABOUT BAND
   ========================================================================== */
.about { --focus: var(--cobalt); position: relative; z-index: 2; background: var(--cream); color: var(--ink); padding: clamp(72px, 12vh, 140px) 0 0; overflow: hidden; }
.about__intro { display: grid; gap: 28px; align-items: end; }
.about__me { width: min(46vw, 230px); transform: rotate(-3deg); }
.about__me img { width: 100%; height: auto; aspect-ratio: 405 / 600; object-fit: cover; object-position: 50% 20%; border-radius: 22px; border: 6px solid var(--white); box-shadow: 0 18px 40px -14px rgba(14, 17, 22, .45); }
.about__lede { margin-top: 18px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.5; max-width: 58ch; }
@media (min-width: 900px) { .about__intro { grid-template-columns: auto 1fr; gap: 56px; } .about__me { width: 260px; } }

.process { margin-top: clamp(64px, 10vh, 120px); }
.process__inner { display: grid; gap: 28px; }
.process__ai { font-size: clamp(19px, 2vw, 26px); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; max-width: 22ch; }
.process__bar { display: none; }
.steps { display: grid; gap: 4px; counter-reset: s; }
.step { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; gap: 0 16px; padding: 16px 0; border-top: 2px solid rgba(14, 17, 22, .12); opacity: .62; transition: opacity .45s, transform .6s var(--swift); }
.step:last-child { border-bottom: 2px solid rgba(14, 17, 22, .12); }
.step.is-on { opacity: .8; }
.step.is-cur { opacity: 1; transform: translateX(8px); }
.step__ic { grid-row: 1 / span 2; width: 52px; height: 52px; fill: none; stroke: var(--cobalt); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.step__ic path, .step__ic circle { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s var(--swift); }
.step__ic .fill { fill: var(--cobalt); stroke: none; }
.step.is-on .step__ic path, .step.is-on .step__ic circle { stroke-dashoffset: 0; }
.step__n { display: none; }
.step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3.4vw, 44px); line-height: 1; }
.step p { margin-top: 4px; font-size: 16px; line-height: 1.45; max-width: 46ch; }
html:not(.js) .step, .no-gsap .step { opacity: 1; }
html:not(.js) .step__ic path, html:not(.js) .step__ic circle, .no-gsap .step__ic path, .no-gsap .step__ic circle { stroke-dashoffset: 0; }

@media (min-width: 1000px) {
  .process__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
  .process__bar { display: block; margin-top: 32px; width: 220px; height: 4px; border-radius: 2px; background: rgba(14, 17, 22, .12); overflow: hidden; }
  .process__bar i { display: block; height: 100%; background: var(--cobalt); transform: scaleX(0); transform-origin: left; }
  .step { grid-template-columns: 56px 44px 1fr; padding: 14px 0; align-items: center; }
  .step__ic { grid-row: auto; }
  .step__n { display: block; color: var(--ink); }
  .step p { margin-top: 2px; }
}
@media (min-width: 1000px) and (min-height: 620px) {
  .process { height: 100vh; height: 100svh; display: grid; align-items: center; margin-top: 0; }
}

/* experience timeline */
.xp { padding-block: clamp(72px, 12vh, 140px) clamp(56px, 9vh, 100px); display: grid; gap: 12px 64px; }
.tl { position: relative; margin-top: 36px; padding-left: 40px; }
.tl__line { position: absolute; left: 10px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: rgba(14, 17, 22, .12); overflow: hidden; }
.tl__line i { position: absolute; inset: 0; background: var(--cobalt); transform-origin: top; }
.js:not(.no-gsap) .tl__line i { transform: scaleY(0); }
.tl__item { position: relative; padding-bottom: 44px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before { content: ""; position: absolute; left: -40px; top: 2px; width: 23px; height: 23px; border-radius: 50%; background: var(--cream); border: 3px solid var(--ink); transition: background-color .3s, transform .5s var(--spring); }
.tl__item.is-on::before { background: var(--yellow); transform: scale(1.15); }
.tl__date { color: var(--cobalt); font-weight: 700; }
.tl__item h3 { margin-top: 6px; font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(28px, 3.2vw, 42px); line-height: 1; }
.tl__item h3 span { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: rgba(14, 17, 22, .7); }
.tl__item ul { margin-top: 14px; display: grid; gap: 8px; max-width: 62ch; }
.tl__item li { position: relative; padding-left: 20px; font-size: 16px; line-height: 1.45; }
.tl__item li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 3px; border-radius: 2px; background: var(--cobalt); }
.tl__certs-label { margin-top: 18px; color: rgba(14, 17, 22, .7); }
.certs { display: flex !important; flex-wrap: wrap; gap: 8px !important; }
.certs li { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 500; }
.certs li::before { display: none; }
@media (min-width: 1000px) {
  .xp { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
  .xp > .eyebrow, .xp > .big { grid-column: 1; }
  .xp > .big { position: sticky; top: 16vh; }
  .xp .tl { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

/* skills marquee */
.skills { padding: 10px 0 clamp(64px, 10vh, 110px); display: grid; gap: 12px; }
.chips-marq { overflow: hidden; }
.chips-marq__track { display: flex; width: max-content; gap: 12px; animation: chipsMove 55s linear infinite; }
.chips-marq--rev .chips-marq__track { animation-direction: reverse; animation-duration: 62s; }
.chips-marq:hover .chips-marq__track { animation-play-state: paused; }
@keyframes chipsMove { to { transform: translateX(calc(-50% - 6px)); } }
.schip { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 2.5px solid var(--ink); font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); text-transform: uppercase; white-space: nowrap; }
.schip::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cobalt); }
.chips-marq--rev .schip { background: var(--ink); color: var(--cream); }
.chips-marq--rev .schip::before { background: var(--yellow); }

/* ==========================================================================
   CONTACT + FOOTER
   ========================================================================== */
.contact { --focus: var(--ink); position: relative; z-index: 2; background: var(--yellow); color: var(--ink); padding: clamp(72px, 13vh, 150px) 0 clamp(60px, 10vh, 110px); overflow: hidden; }
.contact__q { font-size: clamp(20px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.015em; }
.contact__row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 0 clamp(12px, 3vw, 40px); margin-top: 10px; }
.talk { font-family: var(--display); font-weight: 400; font-size: clamp(76px, 19vw, 300px); line-height: .84; letter-spacing: .005em; white-space: nowrap; }
.talk > span { display: inline-block; overflow: hidden; padding: .04em 0 .02em; vertical-align: bottom; }
.talk .ch { display: inline-block; will-change: transform; }
.contact__avatar { width: clamp(118px, 15vw, 230px); height: auto; filter: drop-shadow(0 16px 22px rgba(14, 17, 22, .3)); transform: rotate(6deg); transform-origin: 50% 90%; transition: transform .5s var(--spring); }
.contact__avatar:hover { animation: wiggle .7s ease-in-out; }
@keyframes wiggle { 0%, 100% { transform: rotate(6deg); } 20% { transform: rotate(-8deg) scale(1.05); } 40% { transform: rotate(10deg) scale(1.05); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(8deg); } }
@media (max-width: 699px) { .contact__avatar { order: -1; margin: 0 0 -8px auto; } }
@media (min-width: 700px) { .talk { font-size: clamp(76px, 14.5vw, 250px); } .contact__row { flex-wrap: nowrap; } }
.contact__cap { margin-top: 20px; font-weight: 700; }
.cbtns { display: flex; flex-wrap: wrap; gap: 18px 22px; margin-top: 34px; }
.cbtn {
  position: relative; width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; border: 2.5px solid var(--ink); color: var(--ink); text-decoration: none;
  transition: background-color .25s, color .25s, transform .45s var(--spring);
}
.cbtn:hover { background: var(--ink); color: var(--yellow); transform: scale(1.1); }
.cbtn::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  padding: 7px 11px; border-radius: 8px; background: var(--ink); color: var(--cream);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: opacity .2s, transform .3s var(--spring);
}
.cbtn:hover::after, .cbtn:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.cbtn__lbl { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.cbtns li { padding-bottom: 26px; }
@media (hover: hover) and (pointer: fine) { .cbtn__lbl { display: none; } .cbtns li { padding-bottom: 0; } }
@media (hover: none) { .cbtn::after { display: none; } }
.contact__mail { margin-top: 28px; text-transform: none; letter-spacing: .04em; font-size: 14px; }
.contact__mail a { padding: 10px 0; display: inline-block; }

.foot {
  position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px;
  padding: 22px var(--g) calc(22px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--cream); font-size: 11px;
}

/* mobile action bar */
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar {
    display: flex; gap: 10px; position: fixed; z-index: 60;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 8px; border-radius: 999px; background: rgba(14, 17, 22, .94);
    box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .55), 0 0 0 1.5px rgba(246, 239, 227, .14);
    transform: translateY(160%); transition: transform .5s var(--swift);
  }
  .mbar.is-shown { transform: none; }
  .mbar .pill { flex: 1; min-height: 46px; }
  .foot { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal { padding: 0; border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: transparent; color: var(--ink); overflow: hidden; }
.modal[open] { display: grid; place-items: center; }
.modal::backdrop { background: rgba(14, 17, 22, .86); }
.modal__box { position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; animation: pop .45s var(--spring); max-height: calc(100svh - 24px); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
.modal__box--reel { width: min(calc(100vw - 24px), 440px); background: var(--cream); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; }
.modal__title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.modal__frame { position: relative; height: min(calc(100svh - 160px), 700px); background: var(--white); }
.modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modal__wait { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(14, 17, 22, .55); }
.modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 12px 18px; }
.modal__foot .mono { color: rgba(14, 17, 22, .7); font-size: 11px; }
.modal--video .modal__box { background: var(--ink); color: var(--cream); width: min(calc(100vw - 24px), calc((100svh - 92px) * 9 / 16)); }
.modal--video .rbtn--sm { border-color: var(--cream); color: var(--cream); }
.modal--video .rbtn--sm:hover { background: var(--cream); color: var(--ink); }
.modal__player { position: relative; aspect-ratio: 9 / 16; background: #000; }
.modal__player video, .modal__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }

/* when GSAP drives the magnetic effect, let it own `transform` */
.magnetic-on [data-magnetic] { transition-property: background-color, color, border-color, opacity; }

/* ==========================================================================
   REDUCED MOTION — replace glitch / marquee / parallax with simple fades
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .loader.is-done { transform: none; opacity: 0; transition: opacity .4s; }
  .scr, .scr.is-before, .pinfo, .pinfo.is-before, .rcard, .rotator__word, .rotator__word.is-out { transform: none !important; }
  .scr { opacity: 0; transition: opacity .4s, visibility 0s .4s; }
  .scr.is-active { opacity: 1; transition: opacity .4s, visibility 0s; }
  .device-tilt.is-glitch { animation: none; }
  .chips-marq__track { flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--g); animation: none !important; }
  .chips-marq__track [data-dup] { display: none; }
  .chips-marq--rev { display: none; }
  .hero__float { animation: none !important; }
  .pipe__link i { animation: none !important; transform: translateX(13px); }
}
