/* =========================================================
   ABIR — video editor portfolio
   Bold 3D-portfolio look: black and cream panels, chrome display type, glossy burgundy and chrome objects.
   Unbounded (display) · Barlow (body) · IBM Plex Mono (labels) · VT323 (clip timecodes)
   ========================================================= */
:root {
  --bg: #0a0a09;
  --bg-2: #0f0f0e;
  --surface: #131311;
  --surface-2: #1a1a17;
  --line: rgba(236, 232, 223, 0.09);
  --line-strong: rgba(236, 232, 223, 0.2);
  --text: #ece8df;
  --ink: #0a0a09;
  --muted: #9a958a;
  --muted-2: #6b675f;
  --accent: #a8274a;          /* burgundy (fills, lines, buttons) */
  --accent-text: #d4607c;     /* lighter burgundy for accent-coloured text on black */
  --on-accent: #f7eef0;       /* text on a burgundy fill */
  --accent-ink: #160700;
  --accent-soft: rgba(168, 39, 74, 0.2);
  --red: #ff3b30;
  --green: #74d68b;

  /* chrome lettering: bright silver on black, dark gunmetal on cream */
  --chrome: linear-gradient(180deg, #fdfcfa 0%, #e2ded8 34%, #8a8680 49%, #f1eee9 60%, #b9b4ad 80%, #f6f3ee 100%);
  --chrome-dark: linear-gradient(180deg, #4a4542 0%, #121110 42%, #5a5450 54%, #191716 72%, #36322f 100%);
  --mega-stroke: rgba(236, 232, 223, .3);

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Barlow", "DIN Alternate", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --f-crt: "VT323", "IBM Plex Mono", monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 2px;
  --r-panel: clamp(28px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 17px; line-height: 1.55;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--muted-2); }
.ok-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }
@keyframes pulse { 50% { opacity: .2; } }
@keyframes bar { 50% { transform: scaleY(.35); } }

/* ---------- Glass cursor (mouse only) ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input, html.has-cursor textarea { cursor: text !important; }
  .cursor { display: block; position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 100; pointer-events: none; visibility: hidden; }
  .cursor.is-visible { visibility: visible; }
  .cursor.is-text { visibility: hidden; }
  /* arrow: a frosted-glass fill with a white edge and a dark outer edge, so it shows on black and on cream */
  .cursor__glass, .cursor__arrow { position: absolute; left: -2px; top: -2px; width: 28px; height: 32px; transform-origin: 2px 2px; transition: transform .2s var(--ease), opacity .2s; }
  .cursor__glass {
    clip-path: path("M2 2v24.5l6.4-5.7 4.3 9.4 5.2-2.4-4.3-9.2 8.6-.5z");
    background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.14) 55%, rgba(212,96,124,.38));
    -webkit-backdrop-filter: blur(3px) saturate(1.8) brightness(1.25); backdrop-filter: blur(3px) saturate(1.8) brightness(1.25);
  }
  .cursor__arrow { overflow: visible; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); }
  .cursor__arrow path { fill: none; stroke-linejoin: round; }
  .cursor__arrow .o { stroke: rgba(0,0,0,.6); stroke-width: 3.2; }
  .cursor__arrow .i { stroke: rgba(255,255,255,.95); stroke-width: 1.4; }
  .cursor.is-link .cursor__glass, .cursor.is-link .cursor__arrow { transform: scale(1.18) rotate(-6deg); }
  .cursor.is-down .cursor__glass, .cursor.is-down .cursor__arrow { transform: scale(.86); }
  .cursor.is-big .cursor__glass, .cursor.is-big .cursor__arrow { opacity: 0; transform: scale(.3); }
  /* disc: headphones over clips, a short label over links */
  .cursor__disc {
    position: absolute; left: -38px; top: -38px; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, rgba(255,255,255,.3), rgba(20,16,16,.36) 55%, rgba(168,39,74,.42));
    border: 1px solid rgba(255,255,255,.65);
    box-shadow: inset 0 1px 1px rgba(255,255,255,.7), inset 0 -6px 14px rgba(255,255,255,.1), 0 10px 26px rgba(0,0,0,.4);
    -webkit-backdrop-filter: blur(6px) saturate(1.8); backdrop-filter: blur(6px) saturate(1.8);
    opacity: 0; transform: scale(.35); transition: opacity .2s, transform .25s var(--ease);
  }
  .cursor.is-big .cursor__disc { opacity: 1; transform: none; }
  .cursor.is-warn .cursor__disc { border-style: dashed; }
  .cursor__label { grid-area: 1 / 1; text-align: center; font: 500 9px/1.2 var(--f-mono); letter-spacing: .08em; padding: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
  .cursor__phones { grid-area: 1 / 1; opacity: 0; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
  .cursor.is-sound .cursor__phones { opacity: 1; }
}

/* ---------- Chrome display type ---------- */
.chrome {
  background: var(--chrome); background-size: 100% 1em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel--light .chrome { background-image: var(--chrome-dark); }
.mega {
  position: relative; display: block; margin: 0; text-align: center;
  font: 800 clamp(46px, 10vw, 170px)/.92 var(--f-display); letter-spacing: -.045em; text-transform: uppercase;
}
/* headings that fill in as they scroll into view: an outline underneath, the chrome fill wiping across on top */
.mega[data-fill] { color: transparent; -webkit-text-stroke: 1.2px var(--mega-stroke); }
.mega[data-fill]::after {
  content: attr(data-text); position: absolute; inset: 0; -webkit-text-stroke: 0;
  background: var(--chrome); background-size: 100% .92em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(-12% calc((1 - var(--fill, 1)) * 100%) -12% 0);
}
.panel--light .mega[data-fill]::after { background-image: var(--chrome-dark); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 1.5px solid rgba(236, 232, 223, .38); background: transparent; color: var(--text);
  font: 600 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.pill:hover { border-color: var(--text); transform: translateY(-2px); }
.pill--glow {
  border: 2px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(100deg, #e07592, #a8274a 45%, #4d0f22) border-box;
  box-shadow: 0 0 26px rgba(168, 39, 74, .45), inset 0 0 16px rgba(168, 39, 74, .3);
}
.pill--glow:hover { background: linear-gradient(var(--accent), var(--accent)) padding-box, linear-gradient(100deg, #e07592, #a8274a 45%, #4d0f22) border-box; box-shadow: 0 0 40px rgba(168, 39, 74, .7); }
.pill--dark { background: var(--ink); color: var(--text); border-color: var(--ink); }
.pill--dark:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Floating 3D objects ---------- */
.obj {
  position: absolute; z-index: 3; width: var(--s, 150px); height: auto; pointer-events: none; user-select: none;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45));
  animation: drift var(--d, 7s) ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translateY(-10px) rotate(-5deg); } to { transform: translateY(12px) rotate(5deg); } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; gap: 24px; padding: 16px var(--gutter);
  border: 1px solid transparent; border-radius: 0;
  transition: top .35s var(--ease), left .35s var(--ease), right .35s var(--ease), padding .35s var(--ease), border-radius .35s var(--ease), background-color .35s, border-color .35s;
}
.nav.is-scrolled { top: 10px; left: var(--gutter); right: var(--gutter); padding: 8px 8px 8px 22px; }
/* the frosted pill is drawn by a pseudo-element: a blur on .nav itself would trap the full-screen phone menu inside the bar */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; pointer-events: none;
  background: rgba(14, 13, 12, .72); border: 1px solid rgba(236, 232, 223, .14);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  opacity: 0; transition: opacity .35s;
}
.nav.is-scrolled::before { opacity: 1; }
.nav__logo { font: 800 16px/1 var(--f-display); letter-spacing: -.02em; text-decoration: none; }
.nav__links { display: flex; gap: 34px; margin: 0 auto; }
.nav__links a {
  font: 600 11px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  padding: 8px 0; position: relative; transition: color .2s;
}
.nav__links a:hover { color: var(--text); }
/* audio button: iPhone-style liquid glass */
.audio-arm {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.05) 55%, rgba(255,255,255,.11));
  border: 1px solid rgba(255,255,255,.24); border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.55), inset 0 -1px 1px rgba(255,255,255,.18), inset 0 0 14px rgba(255,255,255,.06), 0 8px 24px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.9); backdrop-filter: blur(14px) saturate(1.9);
  padding: 10px 16px; font: 500 11px/1 var(--f-mono); letter-spacing: .08em; color: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.audio-arm:hover { border-color: rgba(255,255,255,.5); }
.audio-arm__ico { width: 15px; height: 15px; flex: none; }
.audio-arm__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-text); animation: pulse 1.2s infinite; }
.audio-arm.is-armed { cursor: default; }
.audio-arm.is-armed .audio-arm__dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: none; }
.audio-arm[hidden] { display: none; }
.nav__burger { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; left: 50%; bottom: -10%; width: min(1100px, 110vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(168, 39, 74, .42), rgba(168, 39, 74, .12) 50%, transparent 72%);
}
.hero__grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(236, 232, 223, .05) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(236, 232, 223, .05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 55%, #000 20%, transparent 80%);
          mask: radial-gradient(ellipse 70% 60% at 50% 55%, #000 20%, transparent 80%);
}
.hero__title { position: absolute; left: 0; right: 0; top: clamp(92px, 15vh, 150px); margin: 0; z-index: 1; }
.mega--hero { font-size: clamp(54px, 11.4vw, 236px); line-height: .9; letter-spacing: -.05em; white-space: nowrap; filter: drop-shadow(0 14px 40px rgba(0,0,0,.6)); }
/* "A.K.A KASH": same lettering, smaller, one centred line that runs behind the head */
.hero__aka { display: flex; justify-content: center; gap: .35em; margin-top: .42em; font-size: clamp(40px, 7.4vw, 152px); letter-spacing: -.04em; line-height: 1; white-space: nowrap; filter: drop-shadow(0 8px 24px rgba(0,0,0,.6)); }
.hero__aka .chrome { background-size: 100% 1em; }
/* a second copy in front of the head: on scroll the words travel round the sides of the head and land on the forehead (main.js) */
.hero__aka.hero__aka--front {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; margin: 0; pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,.8));
}
.hero__aka--front > span { opacity: 0; }
.hero__aka > span { will-change: transform; transform-origin: 50% 50%; }
.hero__head {
  position: absolute; left: 50%; bottom: -5vh; z-index: 2; height: min(80vh, 920px); aspect-ratio: 736 / 1089;
  transform: translateX(-50%); perspective: 1100px; pointer-events: none;
}
.hero__head-img {
  position: absolute; left: 50%; top: 50%; height: 100%; width: auto; max-width: none;
  transform: translate(-50%, -50%); will-change: transform;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .6));
}
.hero__intro {
  position: absolute; left: var(--gutter); top: 60%; z-index: 3; margin: 0; width: min(300px, 26vw);
  font: 700 14px/1.45 var(--f-body); letter-spacing: .03em; text-transform: uppercase; color: var(--text);
}
.hero__intro span, .hero__intro em { display: block; }
.hero__intro em { font-style: normal; color: var(--accent-text); }
.hero__ctas { position: absolute; right: var(--gutter); top: 60%; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hero__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 22px; z-index: 3; margin: 0;
  display: flex; gap: 10px; color: var(--muted); font-size: 11px;
}
.hero__foot .sep { color: var(--accent-text); }
.obj--hero-a { --s: clamp(70px, 8vw, 130px); left: 8%; top: 38%; --d: 6s; }
.obj--hero-b { --s: clamp(90px, 10vw, 160px); right: 20%; top: 66%; --d: 8s; }

/* ---------- WORK STRIP ---------- */
.strip { position: relative; padding: clamp(50px, 7vw, 90px) 0 clamp(70px, 10vw, 140px); overflow: hidden; }
.strip__lead { text-align: center; color: var(--muted-2); margin: 0 0 18px; font-size: 11px; }
.strip__brands {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 1100px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(26px, 4vw, 56px);
  font: 800 clamp(15px, 1.6vw, 21px)/1 var(--f-display); letter-spacing: -.02em; color: rgba(236, 232, 223, .42);
}
.strip__stage { margin-top: clamp(40px, 6vw, 70px); transform: perspective(1400px) rotateX(14deg) rotateZ(-3deg) scale(1.06); transform-origin: center top; }
.strip__row { margin-bottom: 16px; }
.strip__track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.strip__track img { height: clamp(140px, 15.5vw, 230px); width: auto; border-radius: 18px; object-fit: cover; background: var(--surface); box-shadow: 0 14px 30px rgba(0,0,0,.45); }

/* ---------- ABOUT ---------- */
.about { position: relative; overflow-x: clip; padding: clamp(70px, 9vw, 120px) var(--gutter) clamp(130px, 14vw, 200px); text-align: center; }
.about__copy { max-width: 700px; margin: clamp(30px, 4vw, 48px) auto 0; }
.about__copy strong { color: var(--accent-text); font-weight: 700; }
.about__copy p { margin: 0 0 16px; font: 500 clamp(17px, 1.5vw, 20px)/1.55 var(--f-body); color: rgba(236, 232, 223, .86); }
.about > .pill { margin-top: 18px; }
.obj--ab-a { --s: clamp(80px, 9vw, 150px); left: 6%; top: 3%; --d: 7s; }
.obj--ab-b { --s: clamp(70px, 8vw, 130px); right: 7%; top: 1%; --d: 6s; }
.obj--ab-c { --s: clamp(70px, 8vw, 130px); left: 9%; top: 34%; --d: 8s; }
.obj--ab-d { --s: clamp(64px, 7vw, 120px); right: 10%; top: 36%; --d: 9s; }

.speed { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1000px; margin: clamp(70px, 8vw, 110px) auto 0; }
.speed__card {
  display: grid; gap: 8px; padding: 30px 26px; border-radius: 26px; text-align: left;
  border: 1.5px solid rgba(236, 232, 223, .2); background: linear-gradient(180deg, rgba(236,232,223,.05), rgba(236,232,223,.01));
}
.speed__card b { font: 800 clamp(34px, 4.2vw, 58px)/1 var(--f-display); letter-spacing: -.04em; }
.speed__card span { color: var(--muted); font-size: 16px; }
.speed__bolt { position: absolute; right: -70px; top: -118px; width: clamp(90px, 10vw, 140px); z-index: 2; animation: drift 6s ease-in-out infinite alternate; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; margin: 34px auto 0; max-width: 1000px; }
.facts div { display: flex; gap: 10px; align-items: center; }
.facts dt { color: var(--muted-2); font-size: 11px; }
.facts dd { margin: 0; font-size: 11.5px; }

/* ---------- PANELS (rounded sections that slide up over the one before) ---------- */
.panel {
  position: relative; overflow-x: clip; border-radius: var(--r-panel) var(--r-panel) 0 0; margin-top: calc(var(--r-panel) * -1);
  padding: clamp(84px, 9vw, 130px) var(--gutter) clamp(120px, 12vw, 170px);
}
.panel--light { background: var(--text); color: var(--ink); --mega-stroke: rgba(10, 10, 9, .3); }
.panel--dark { background: var(--bg); border-top: 1px solid var(--line); }
.services { z-index: 2; }
.work { z-index: 3; }
.contact { z-index: 4; }
.footer { z-index: 5; }

/* ---------- SERVICES ---------- */
.svc { list-style: none; margin: clamp(44px, 6vw, 72px) auto 0; padding: 0; max-width: 1120px; border-top: 1px solid rgba(10,10,9,.16); }
.svc li { display: grid; grid-template-columns: clamp(80px, 11vw, 150px) minmax(0, 1fr) 220px; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 36px) 0; border-bottom: 1px solid rgba(10,10,9,.16); }
.svc__n { font: 800 clamp(40px, 5vw, 72px)/1 var(--f-display); letter-spacing: -.05em; background: var(--chrome-dark); background-size: 100% 1em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.svc h3 { margin: 0 0 6px; font: 600 clamp(18px, 1.8vw, 24px)/1.2 var(--f-display); letter-spacing: -.02em; }
.svc p { margin: 0; color: #4d4944; max-width: 62ch; }
.svc__tags { color: var(--accent); font-size: 11px; text-align: right; }
.obj--sv-a { --s: clamp(80px, 9vw, 150px); right: 7%; top: 50px; --d: 7s; }
.obj--sv-b { --s: clamp(70px, 8vw, 130px); left: 5%; top: 70px; --d: 9s; }

/* ---------- PROJECTS: cards that stack as you scroll ---------- */
.work__lede { text-align: center; color: var(--muted); max-width: 56ch; margin: 22px auto 0; font-size: 18px; }
.work__lede strong { color: var(--text); font-weight: 600; }
.stack { max-width: 1180px; margin: clamp(44px, 6vw, 72px) auto 0; }
.pcard {
  position: sticky; top: calc(86px + var(--i) * 14px); margin-bottom: 40px;
  padding: 20px clamp(18px, 2.4vw, 28px) 26px; border-radius: 30px;
  background: #121110; border: 1.5px solid rgba(236, 232, 223, .2);
  box-shadow: 0 -16px 50px rgba(0, 0, 0, .55); transform-origin: center top; will-change: transform;
}
.pcard:last-child { margin-bottom: 0; }
.pcard__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 18px; }
.pcard__n { font: 800 clamp(30px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -.05em; background: var(--chrome); background-size: 100% 1em; -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard__head .mono { margin: 0 0 4px; color: var(--muted); font-size: 10.5px; }
.pcard__head h3 { margin: 0; font: 600 clamp(16px, 1.6vw, 21px)/1.25 var(--f-display); letter-spacing: -.02em; }
.pcard__pill { padding: 10px 16px; border-radius: 999px; border: 1.5px solid rgba(236, 232, 223, .3); font-size: 10.5px; white-space: nowrap; }
.pcard__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: center; }
.pcard__text > p { margin: 0 0 18px; color: rgba(236, 232, 223, .82); }
/* showreel: the whole 16:9 video, uncropped; the reel's left half is empty black, so the text sits bottom-left on it */
.reelbox { position: relative; width: min(100%, calc((100svh - 220px) * 16 / 9)); min-width: min(100%, 640px); margin: 0 auto; }
.clip__frame--wide { aspect-ratio: 16 / 9; }
.reelbox__text { position: absolute; left: clamp(16px, 2.4vw, 30px); bottom: clamp(18px, 2.6vw, 32px); width: 40%; z-index: 2; pointer-events: none; }
.reelbox__text > p { margin: 0 0 14px; font-size: clamp(13px, 1.15vw, 16.5px); line-height: 1.5; color: rgba(236, 232, 223, .86); }
.reelbox__text .notes { gap: 6px; }
.reelbox__text .notes li { font-size: clamp(12.5px, 1.05vw, 15px); }
.pcard--reel .chip, .pcard--reel .tc { display: none; }
.pcard--reel .snd { left: auto; right: 10px; }
@media (hover: hover) and (pointer: fine) { .pcard--reel .snd { display: none; } }

.pair { display: grid; gap: 14px; align-items: center; }
.pair--landscape { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.pair--portrait { grid-template-columns: repeat(2, auto); }
.pair__arrow { color: var(--accent-text); font: 800 22px/1 var(--f-display); }

.clip { margin: 0; }
.clip figcaption { margin-top: 10px; color: var(--muted); font-size: 10.5px; display: flex; align-items: center; gap: 8px; }
.clip--final figcaption { color: var(--accent-text); }
.clip figcaption::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.clip__frame {
  position: relative; overflow: hidden; border-radius: 16px; background: #000;
  border: 1.5px solid var(--line-strong); contain: layout paint; transition: border-color .2s, box-shadow .2s;
}
.pair--landscape .clip__frame { aspect-ratio: 16 / 9; }
.pair--portrait .clip__frame { aspect-ratio: 9 / 16; height: min(52vh, 470px); }
.clip__frame video { width: 100%; height: 100%; object-fit: cover; }
.clip--final .clip__frame { border-color: rgba(168, 39, 74, .75); }
.clip__frame.is-hot { border-color: var(--accent-text); box-shadow: 0 0 0 1px var(--accent), 0 0 30px rgba(168, 39, 74, .35); }

/* HUD injected by JS */
.chip {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 5px 9px; border-radius: 999px; font: 500 10px/1 var(--f-mono); letter-spacing: .12em;
  background: rgba(10,10,9,.78); color: var(--text); border: 1px solid var(--line-strong);
}
.clip--final .chip { background: var(--accent); color: var(--on-accent); border-color: var(--accent-text); }
.tc {
  position: absolute; top: 8px; right: 12px; z-index: 2;
  font: 400 17px/1 var(--f-crt); letter-spacing: .04em; font-variant-numeric: tabular-nums;
  color: var(--text); text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.snd {
  position: absolute; left: 10px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 999px; background: rgba(10,10,9,.78);
  font: 500 9.5px/1 var(--f-mono); letter-spacing: .1em; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.snd svg { width: 12px; height: 12px; flex: none; }
.snd .eq { display: none; gap: 2px; align-items: flex-end; height: 10px; }
.snd .eq i { width: 2px; height: 100%; background: currentColor; transform-origin: bottom; animation: bar .8s ease-in-out infinite; }
.snd .eq i:nth-child(2) { animation-delay: -.3s; }
.snd .eq i:nth-child(3) { animation-delay: -.6s; }
.clip__frame.is-hot .snd { color: var(--on-accent); background: var(--accent); }
.clip__frame.is-hot .snd .eq { display: inline-flex; }
.clip__frame.is-hot .snd .ico-mute { display: none; }
.prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); z-index: 2; }
.prog i { position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.clip--final .prog i { background: var(--accent-text); }
.loading .clip__frame::after {
  content: "BUFFERING"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 18px var(--f-crt); letter-spacing: .2em; color: var(--muted);
}

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: baseline; font-size: 15.5px; line-height: 1.45; color: rgba(236, 232, 223, .9); }
.notes .k { color: var(--accent-text); font-size: 10.5px; }
.notes--cols { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line-strong); grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 22px; }
.notes--cols li { display: block; font-size: 14.5px; }
.notes--cols .k { display: block; margin-bottom: 6px; }

/* ---------- PROCESS ---------- */
.process { max-width: 1180px; margin: clamp(110px, 12vw, 170px) auto 0; }
.mega--sm { font-size: clamp(34px, 6.4vw, 104px); }
.steps { list-style: none; margin: clamp(40px, 5vw, 60px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step {
  padding: 24px 24px 26px; border-radius: 26px; border: 1.5px solid rgba(236, 232, 223, .2);
  background: linear-gradient(180deg, rgba(236,232,223,.05), rgba(236,232,223,.01));
}
.step img { width: 58px; height: 58px; margin: -6px 0 14px -6px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.step .mono { color: var(--accent-text); font-size: 10.5px; }
.step h3 { margin: 10px 0 8px; font: 600 19px/1.2 var(--f-display); letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- CONTACT ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: end; max-width: 1180px; margin: 0 auto; }
.mega--stack { text-align: left; font-size: clamp(44px, 6.6vw, 108px); }
.contact__lede { color: #4d4944; font-size: 19px; max-width: 42ch; margin: 26px 0 28px; }
.links { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(10,10,9,.16); }
.link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px;
  padding: 20px 6px; border-bottom: 1px solid rgba(10,10,9,.16); text-decoration: none;
  transition: padding .25s var(--ease), background-color .25s;
}
.link__k { font: 600 clamp(19px, 2vw, 25px)/1.15 var(--f-display); letter-spacing: -.02em; }
.link__desc { grid-row: 2; color: #5d5852; font-size: 15px; }
.link__go { grid-row: 1 / span 2; grid-column: 2; font-size: 26px; color: var(--accent); transition: transform .25s var(--ease); }
.link:hover { padding-left: 16px; padding-right: 16px; background: rgba(10,10,9,.05); }
.link:hover .link__go { transform: translate(4px, -4px); }
.link--primary .link__k { color: var(--accent); }
.obj--ct-a { --s: clamp(80px, 9vw, 150px); right: 6%; top: 34px; --d: 6s; }
.obj--ct-b { --s: clamp(64px, 7vw, 120px); left: 44%; bottom: 120px; --d: 8s; }

/* ---------- FOOTER ---------- */
.footer { padding-bottom: 26px; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; max-width: 1180px; margin: 0 auto; }
.mega--foot { text-align: left; font-size: clamp(38px, 6.8vw, 112px); line-height: .92; }
.footer__cols { display: flex; gap: clamp(36px, 5vw, 70px); }
.footer__cols .mono { color: var(--muted-2); margin: 0 0 12px; font-size: 11px; }
.footer__cols a { display: block; text-decoration: none; color: var(--text); padding: 4px 0; }
.footer__cols a:hover { color: var(--accent-text); }
.footer__objs { display: flex; justify-content: space-between; align-items: center; gap: 8px; max-width: 1180px; margin: clamp(50px, 6vw, 80px) auto clamp(30px, 4vw, 50px); }
.footer__objs img { width: clamp(46px, 10vw, 150px); height: auto; filter: drop-shadow(0 14px 20px rgba(0,0,0,.5)); animation: drift 6s ease-in-out infinite alternate; }
.footer__objs img:nth-child(2n) { animation-duration: 7.5s; animation-delay: -2s; }
.footer__objs img:nth-child(3n) { animation-duration: 8.5s; animation-delay: -4s; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; color: var(--muted-2); font-size: 11px; }
#footTC { font-family: var(--f-crt); font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 96; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: var(--radius); background: var(--text); color: var(--accent-ink);
  font: 500 11.5px/1.3 var(--f-mono); letter-spacing: .06em; pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease); text-align: center; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   FLOATING HEAD + CHAT
   ========================================================= */
.buddy {
  position: fixed; right: clamp(12px, 2.4vw, 28px); bottom: clamp(10px, 2.4vw, 24px); z-index: 92;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  pointer-events: none;
}
.buddy > * { pointer-events: auto; }
.buddy__head {
  transition: opacity .3s var(--ease), transform .35s var(--ease);
  position: relative; width: 78px; height: 112px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.buddy__face { position: absolute; left: 0; right: 0; bottom: 10px; display: block; animation: bob 3.4s ease-in-out infinite; }
.buddy__face img {
  width: 78px; height: auto;
  transform: rotate(var(--tilt, 0deg)) scale(var(--s, 1));
  transition: transform .35s var(--ease);
  filter: drop-shadow(0 8px 10px rgba(0,0,0,.55));
}
.buddy__head:hover .buddy__face img { --s: 1.08; }
.buddy__shadow {
  position: absolute; left: 50%; bottom: 0; width: 50px; height: 9px; margin-left: -25px; border-radius: 50%;
  background: rgba(0,0,0,.7); filter: blur(3px); animation: bobShadow 3.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes bobShadow { 0%, 100% { transform: scaleX(1); opacity: .7; } 50% { transform: scaleX(.75); opacity: .4; } }
.buddy__head.is-boing { animation: boing .5s var(--ease); }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.12, .9); } 60% { transform: scale(.94, 1.08); } 100% { transform: scale(1); } }

.buddy__bubble {
  position: absolute; right: calc(100% + 6px); top: 14px;
  padding: 9px 12px; border-radius: 12px 12px 2px 12px; white-space: nowrap;
  background: var(--text); color: var(--accent-ink); font-size: 11px; letter-spacing: .04em;
  transform-origin: right bottom; transition: opacity .25s, transform .25s var(--ease);
}
.buddy__bubble.is-hidden { opacity: 0; transform: scale(.85) translateY(4px); }

.chat {
  width: min(360px, calc(100vw - 24px)); height: min(540px, calc(100svh - 170px));
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.65);
  transform-origin: bottom right; animation: chatIn .28s var(--ease);
}
.chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.chat__avatar { width: 38px; height: 46px; display: grid; place-items: end center; overflow: hidden; border-radius: 50% 50% 4px 4px; background: var(--bg); flex: none; }
.chat__avatar img { width: 34px; height: auto; margin-bottom: -6px; }
.chat__name { margin: 0; font: 400 13px/1.2 var(--f-display); }
.chat__status { margin: 4px 0 0; font-size: 9.5px; color: var(--muted); }
.chat__close {
  margin-left: auto; width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer;
  background: none; border: 1px solid var(--line-strong); color: var(--text); font-size: 18px; line-height: 1;
}
.chat__close:hover { border-color: var(--text); }
.chat__log { flex: 1; overflow-y: auto; padding: 16px 12px 8px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg {
  max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 15.5px; line-height: 1.4;
  white-space: pre-wrap; overflow-wrap: anywhere; animation: msgIn .22s var(--ease);
}
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg--abir { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 2px; }
.msg--you { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 2px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.msg--typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.msg__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg__actions a {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: var(--radius);
  font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  background: var(--accent); color: var(--on-accent);
}
.msg__actions a + a { background: none; color: var(--text); border: 1px solid var(--line-strong); }
.msg__actions a:hover { filter: brightness(1.1); }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 12px 10px; }
.chat__quick button {
  font: 500 13.5px/1 var(--f-body); padding: 8px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: none; color: var(--text);
}
.chat__quick button:hover { border-color: var(--accent-text); color: var(--accent-text); }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface-2); }
.chat__form textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 110px;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius);
  color: var(--text); font: 400 16px/1.35 var(--f-body); padding: 10px 12px;
}
.chat__form textarea:focus { outline: none; border-color: var(--accent-text); }
.chat__form button {
  width: 44px; flex: none; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--accent); color: var(--on-accent); display: grid; place-items: center;
}
.chat__log, #chatInput { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
#chatInput { overflow-y: hidden; }
.buddy__head.has-unread::after {
  content: ""; position: absolute; top: 6px; right: 6px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg); z-index: 2;
}
.buddy.is-open .buddy__bubble { opacity: 0; transform: scale(.85); pointer-events: none; }


/* =========================================================
   RESPONSIVE
   ========================================================= */
/* short or narrow screens: project cards scroll normally instead of stacking */
@media (max-width: 900px), (max-height: 680px) {
  .pcard { position: relative; top: auto; transform: none !important; filter: none !important; }
}

@media (max-width: 1080px) {
  .notes--cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav__burger {
    display: inline-grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-left: 4px;
    background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer;
  }
  .nav__burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .25s; }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav__links {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 14px; margin: 0;
    background: rgba(10,10,9,.98); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__links a { font: 800 30px/1.4 var(--f-display); letter-spacing: -.03em; color: var(--text); }
  .audio-arm { margin-left: auto; }

  .svc li { grid-template-columns: clamp(64px, 12vw, 110px) minmax(0, 1fr); }
  .svc__tags { grid-column: 2; text-align: left; }
  .pcard__body { grid-template-columns: 1fr; }
  .pair--portrait { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
  .pair--portrait .clip__frame { height: auto; }
  .contact__grid { grid-template-columns: 1fr; align-items: start; }
  .footer__top { grid-template-columns: 1fr; }
  .speed__bolt { right: -6px; top: -84px; }
}

@media (max-width: 680px) {
  /* phone hero: stacked title, head, intro, buttons */
  .hero { display: flex; flex-direction: column; align-items: center; height: auto; min-height: 100svh; padding: 84px 16px 22px; }
  .hero__title { position: relative; top: auto; }
  .mega--hero { font-size: 19vw; white-space: normal; line-height: .9; }
  .hero__head { position: relative; left: auto; bottom: auto; transform: none; height: min(48svh, 420px); margin-top: 1vw; }
  .hero__intro { position: static; width: auto; max-width: 330px; text-align: center; margin: 8px 0 18px; font-size: 13px; }
  .hero__ctas { position: static; flex-direction: row; justify-content: center; padding-right: 0; }
  .hero__ctas .pill { min-height: 48px; padding: 0 22px; }
  .hero__foot { position: static; margin-top: auto; padding-top: 22px; justify-content: center; flex-wrap: wrap; font-size: 10px; }
  .obj--hero-a { left: 4%; top: 36%; }
  .obj--hero-b { right: 3%; top: 50%; }
  .hero-on .buddy__bubble { opacity: 0 !important; visibility: hidden; }
  html.hero-on .buddy:not(.is-open) .buddy__head { opacity: 0; transform: scale(.6); pointer-events: none; }

  .strip__track img { border-radius: 14px; }
  .speed { grid-template-columns: 1fr; }
  .speed__bolt { top: -58px; }
  .facts { flex-direction: column; align-items: center; gap: 10px; }
  .svc li { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; align-items: start; }
  .pcard { padding: 16px 14px 20px; border-radius: 24px; }
  .pcard__head { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
  .pcard__pill { grid-column: 1 / -1; justify-self: start; }
  .pair--landscape { grid-template-columns: 1fr; }
  .pair__arrow { justify-self: center; transform: rotate(90deg); }
  .notes--cols { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .obj--ct-b { left: auto; right: 8%; bottom: 20px; }
  .footer__cols { gap: 48px; }
  .footer__base { flex-direction: column; gap: 6px; padding-right: 70px; }
  .audio-arm__text { font-size: 9.5px; }
  .nav { gap: 8px; }
  .nav.is-scrolled { left: 10px; right: 10px; padding: 6px 6px 6px 16px; }
  .audio-arm { padding: 8px 10px; }
  .nav__burger { width: 40px; height: 40px; }
  .obj--ab-a { --s: 58px; left: 3%; top: 8px; }
  .obj--ab-b { --s: 52px; right: 3%; top: 4px; }
  .obj--ab-a, .obj--ab-b, .obj--ab-c, .obj--ab-d, .obj--sv-b, .obj--ct-a { display: none; }
  .obj--sv-a { --s: 62px; right: 3%; top: 20px; }
  .obj--ct-a { --s: 62px; right: 4%; top: 18px; }
  .svc__n { font-size: 34px; }
  .clip .snd { font-size: 8.5px; left: 8px; bottom: 12px; padding: 5px 7px; }
  .chip { top: 8px; left: 8px; padding: 3px 7px; font-size: 9px; }
  .tc { top: 8px; right: 9px; font-size: 14px; }
  .buddy__head { width: 62px; height: 92px; }
  .buddy__face img { width: 62px; }
  .buddy__shadow { width: 40px; margin-left: -20px; }
  .buddy__bubble { top: 8px; font-size: 10px; }
  .chat { height: min(520px, calc(100svh - 150px)); }
}

/* narrow or upright windows: "A.K.A KASH" is one centred line and the head sits lower */
@media (max-width: 900px), (max-aspect-ratio: 1/1) {
  .hero__aka { gap: .35em; font-size: clamp(32px, 9.4vw, 80px); }
  .hero__head { height: min(64vh, 920px, 72vw); }
}
@media (max-width: 680px) {
  .hero__aka { margin-top: .5em; }
  .hero__head { height: min(45svh, 400px); }
  .reelbox { width: 100%; min-width: 0; }
  .clip__frame--wide { aspect-ratio: 1 / 1; }   /* phones: trims only the empty black left side; every panel stays visible */
  .clip__frame--wide video { object-position: 100% 50%; }
  .reelbox__text { position: static; width: auto; margin-top: 16px; }
  .reelbox__text > p { font-size: 15.5px; }
  .reelbox__text .notes li { font-size: 14.5px; }
  .strip__brands { gap: 12px 20px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
.mega.chrome { background-size: 100% .9em; }
