/* ============================================================
   PRIYANSHU KK — PREMIUM 3D PORTFOLIO
   Design system · motion · layout · responsive
   ============================================================ */

:root {
  --bg: #050505;
  --bg-soft: #0a0b0a;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-bright: rgba(255, 255, 255, 0.18);
  --txt: #f3f5f0;
  --muted: #8c928c;
  --acid: #d4ff3f;
  --violet: #8b5cf6;
  --cyan: #3ee8ff;
  --display: "Syne", "Arial Black", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
video,
canvas,
iframe { max-width: 100%; }

h1,
h2,
h3,
p { overflow-wrap: break-word; }

button,
input { min-width: 0; }

::selection {
  background: var(--acid);
  color: #050505;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

[hidden] { display: none !important; }

/* Higher specificity than Tailwind's own .container breakpoint max-widths. */
body .container {
  width: min(1440px, calc(100% - 2 * clamp(20px, 5vw, 80px)));
  max-width: none;
  margin-inline: auto;
}

.txt-accent {
  background: linear-gradient(100deg, var(--acid) 10%, #a8ff8f 45%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.55);
  animation: pulse 2s infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(212, 255, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 255, 63, 0); }
}

.kicker {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker i {
  font-style: normal;
  color: var(--acid);
}

/* ------------------------------------------------------------
   PRELOADER
   ------------------------------------------------------------ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 46px);
  background: #050505;
  overflow: hidden;
  will-change: transform;
}

.preloader__top,
.preloader__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.2em;
  color: var(--muted);
}

.preloader__brand {
  font: 800 30px/1 var(--display);
  letter-spacing: -0.06em;
  color: var(--txt);
}

.preloader__brand span { color: var(--acid); }

.preloader__center {
  width: min(640px, 100%);
  margin: auto;
}

.preloader__counter {
  display: flex;
  align-items: flex-start;
  font: 800 clamp(88px, 17vw, 210px)/0.85 var(--display);
  letter-spacing: -0.08em;
}

.preloader__counter i {
  font: 500 clamp(18px, 2vw, 30px)/1 var(--mono);
  font-style: normal;
  color: var(--acid);
  margin: 14px 0 0 14px;
}

.preloader__bar {
  position: relative;
  height: 2px;
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.preloader__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}

.preloader__status {
  margin: 16px 0 0;
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.preloader__curtain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--acid), transparent);
  opacity: 0.8;
}

html:not(.js) .preloader { display: none; }

/* ------------------------------------------------------------
   CURSOR / PROGRESS / AMBIENT
   ------------------------------------------------------------ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  pointer-events: none;
  display: grid;
  place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease),
    margin 0.35s var(--ease), background 0.35s var(--ease),
    border-color 0.35s var(--ease), opacity 0.25s ease;
  opacity: 0;
  mix-blend-mode: normal;
}

.cursor::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--acid);
  transition: opacity 0.2s ease;
}

.cursor.is-active {
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  background: var(--acid);
  border-color: var(--acid);
}

.cursor.is-active::after { opacity: 0; }

.cursor__label {
  position: absolute;
  font: 700 9px/1 var(--mono);
  letter-spacing: 0.06em;
  color: #050505;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.2s ease, transform 0.3s var(--ease);
}

.cursor.is-active .cursor__label { opacity: 1; transform: scale(1); }

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9995;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--acid));
  box-shadow: 0 0 12px rgba(212, 255, 63, 0.6);
  pointer-events: none;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}

.ambient__mesh {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.24;
  will-change: transform, border-radius;
  animation: ambient-drift 22s ease-in-out infinite alternate;
}

.ambient__mesh--two { animation-duration: 27s; animation-delay: -8s; }
.ambient__mesh--three { animation-duration: 19s; animation-delay: -13s; }

@keyframes ambient-drift {
  0% { transform: translate3d(-4%, 2%, 0) scale(1) rotate(0deg); border-radius: 48% 52% 60% 40%; }
  50% { border-radius: 62% 38% 42% 58%; }
  100% { transform: translate3d(5%, -3%, 0) scale(1.14) rotate(18deg); border-radius: 38% 62% 54% 46%; }
}

.ambient__mesh--one {
  width: 46vw;
  height: 46vw;
  min-width: 380px;
  min-height: 380px;
  top: -14vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.7), transparent 68%);
}

.ambient__mesh--two {
  width: 38vw;
  height: 38vw;
  min-width: 320px;
  min-height: 320px;
  top: 48%;
  left: -14vw;
  background: radial-gradient(circle, rgba(62, 232, 255, 0.38), transparent 68%);
}

.ambient__mesh--three {
  width: 34vw;
  height: 34vw;
  min-width: 300px;
  min-height: 300px;
  bottom: -12vw;
  right: 6vw;
  background: radial-gradient(circle, rgba(212, 255, 63, 0.28), transparent 68%);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 100%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------
   NAV
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1360px, calc(100% - 36px));
  height: 64px;
  padding: 0 12px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(10, 11, 10, 0.62);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(8, 9, 8, 0.88);
  border-color: var(--line-bright);
}

.nav__brand {
  font: 800 25px/1 var(--display);
  letter-spacing: -0.07em;
}

.nav__brand span { color: var(--acid); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  position: relative;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1px;
  background: var(--acid);
  transition: width 0.3s var(--ease);
}

.nav__links a:hover,
.nav__links a.active { color: var(--txt); }

.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 20px;
  border-radius: 100px;
  background: var(--acid);
  color: #050505;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.nav__cta:hover { box-shadow: 0 0 26px rgba(212, 255, 63, 0.45); }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav__toggle span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1px;
  background: var(--txt);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }
.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); }

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 132px 0 90px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(20px, 4vw, 70px);
}

.hero__left { position: relative; z-index: 3; }

.hero__kicker { margin: 0 0 26px; }

.hero__title {
  margin: 0;
  font: 800 clamp(54px, 8.2vw, 142px)/0.87 var(--display);
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.hero__title .line,
.contact__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}

.hero__title .line > span,
.contact__title .line > span {
  display: block;
  will-change: transform;
}

/* Active Theory-inspired signal glitch, kept short and opt-out friendly. */
.hero__title .line > span { position: relative; }

.hero__title .line > span::before,
.hero__title .line > span::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero__title .line > span::before {
  color: var(--cyan);
  clip-path: inset(0 0 62% 0);
}

.hero__title .line > span::after {
  color: var(--violet);
  clip-path: inset(58% 0 0 0);
}

.hero__title .line > span.is-glitching::before { animation: glitch-a 0.3s steps(2, end) 1; }
.hero__title .line > span.is-glitching::after { animation: glitch-b 0.3s steps(2, end) 1; }

@keyframes glitch-a {
  0% { opacity: 0.85; transform: translate(5px, -2px); }
  35% { opacity: 0.7; transform: translate(-4px, 1px); }
  70% { opacity: 0.55; transform: translate(3px, 2px); }
  100% { opacity: 0; transform: translate(0, 0); }
}

@keyframes glitch-b {
  0% { opacity: 0.8; transform: translate(-5px, 2px); }
  40% { opacity: 0.65; transform: translate(4px, -1px); }
  75% { opacity: 0.5; transform: translate(-2px, -2px); }
  100% { opacity: 0; transform: translate(0, 0); }
}

.js .hero__title .line > span,
.js .contact__title .line > span { transform: translateY(108%); }
.js [data-fade] { opacity: 0; }

.hero__lead {
  max-width: 560px;
  margin: 30px 0 0;
  color: #b8bdb7;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.75;
}

.hero__lead strong { color: var(--txt); font-weight: 600; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  height: 54px;
  padding: 0 26px;
  border-radius: 100px;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  overflow: hidden;
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s var(--ease);
}

.btn--primary {
  background: var(--acid);
  color: #050505;
}

.btn--primary:hover { box-shadow: 0 0 34px rgba(212, 255, 63, 0.5); }

.btn--ghost {
  border: 1px solid var(--line-bright);
  color: var(--txt);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover { border-color: var(--acid); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 48px;
  font: 400 11px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__meta b {
  font: 700 20px/1 var(--display);
  color: var(--acid);
  margin-right: 7px;
}

.hero__visual {
  position: relative;
  width: 100%;
  height: min(72vh, 700px);
  min-height: 440px;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orb-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(46%, 300px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 200deg, rgba(139, 92, 246, 0.5), rgba(62, 232, 255, 0.25), rgba(212, 255, 63, 0.45), rgba(139, 92, 246, 0.5));
  filter: blur(2px);
  animation: spin 22s linear infinite;
}

.orb-fallback span {
  position: absolute;
  inset: -12%;
  border: 1px solid rgba(212, 255, 63, 0.25);
  border-radius: 50%;
  transform: rotateX(68deg);
}

.orb-fallback span:nth-child(2) { transform: rotateY(68deg); inset: -20%; }
.orb-fallback span:nth-child(3) { inset: 8%; border-color: rgba(62, 232, 255, 0.3); }

body.three-ready .orb-fallback { display: none; }

@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hud {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 400 9px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hud--top { top: 6%; }
.hud--bottom { bottom: 6%; }
.hud i { display: block; width: 30px; height: 1px; background: var(--line-bright); }
.hud i:first-child { margin-right: 12px; }

.hero__portrait {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 4%;
  width: clamp(150px, 16vw, 230px);
  margin: 0;
  transform: translateY(-50%);
  border: 1px solid var(--line-bright);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 50px rgba(139, 92, 246, 0.14);
  transition: transform 0.4s var(--ease), border-color 0.4s ease;
  will-change: transform;
}

.hero__portrait:hover { border-color: var(--acid); }

.hero__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  filter: saturate(0.85) contrast(1.05);
}

.hero__portrait figcaption {
  display: flex;
  align-items: center;
  padding: 11px 13px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.hero__portrait figcaption .pulse { width: 5px; height: 5px; }

.orbit-tag {
  position: absolute;
  z-index: 3;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(10px);
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.orbit-tag--one { top: 20%; left: 0; }
.orbit-tag--two { bottom: 20%; left: 8%; color: var(--acid); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.2em;
  color: var(--muted);
  z-index: 4;
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 38px;
  background: linear-gradient(var(--acid), transparent);
  animation: cue 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.3); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ------------------------------------------------------------
   MARQUEE
   ------------------------------------------------------------ */
.marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  padding: 18px 0;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.marquee__track span {
  font: 700 clamp(15px, 1.5vw, 22px)/1 var(--display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #aeb4ad;
}

.marquee__track b { color: var(--acid); font-size: 12px; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------
   SECTIONS / SHARED
   ------------------------------------------------------------ */
.section {
  position: relative;
  padding: clamp(90px, 11vw, 170px) 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: clamp(34px, 4vw, 58px);
}

.section-head__num {
  flex: 0 0 auto;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.1em;
  color: var(--acid);
}

.section-head h2 {
  flex: 0 1 auto;
  margin: 0;
  font: 800 clamp(30px, 4.4vw, 66px)/0.98 var(--display);
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.section-head__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-bright), transparent);
}

.section-sub {
  margin: -22px 0 44px;
  color: var(--muted);
  font-size: 15px;
}

.card__label {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 26px;
}

/* Glass card shell */
.bento__card,
.skill-card,
.project {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 55%),
    rgba(8, 9, 8, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
  will-change: transform;
}

.bento__card::before,
.skill-card::before,
.project::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, rgba(212, 255, 63, 0.45), transparent 40%, rgba(139, 92, 246, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.bento__card:hover::before,
.skill-card:hover::before,
.project:hover::before { opacity: 1; }

.bento__card:hover,
.skill-card:hover,
.project:hover {
  border-color: transparent;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------
   ABOUT / BENTO
   ------------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
  gap: 16px;
}

.bento__card { padding: clamp(20px, 2.2vw, 32px); }

.bento__card--bio { grid-column: span 2; grid-row: span 2; }

.bio__inner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 26px;
  align-items: start;
}

.bio__avatar {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-bright);
}

.bio__avatar img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 15%;
}

.bio__status {
  position: absolute;
  right: 9px;
  bottom: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(212, 255, 63, 0.2);
}

.bento__card--bio h3 {
  margin: 0 0 16px;
  font: 700 clamp(24px, 2.4vw, 38px)/1.1 var(--display);
  letter-spacing: -0.04em;
}

.bento__card--bio p {
  margin: 0 0 14px;
  color: #a9afa9;
  font-size: 14px;
  line-height: 1.72;
}

.bento__card--stat { grid-column: span 1; grid-row: span 2; }

.stat {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.stat:last-child { border-bottom: 0; }

.stat b {
  font: 800 clamp(38px, 3.6vw, 58px)/0.95 var(--display);
  letter-spacing: -0.06em;
  color: var(--txt);
}

.stat span {
  font: 400 10px/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 7px;
}

.bento__card--reel { padding: 0; }

.bento__card--reel .card__label {
  position: absolute;
  z-index: 2;
  top: 20px;
  left: 22px;
}

.bento__card--reel video {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  filter: saturate(0.7) brightness(0.68);
  transition: filter 0.5s ease, transform 0.6s var(--ease);
}

.bento__card--reel:hover video { filter: saturate(1) brightness(0.9); transform: scale(1.04); }

.reel__overlay {
  position: absolute;
  z-index: 2;
  left: 22px;
  bottom: 18px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--txt);
}

.bento__card--quote blockquote {
  margin: 0 0 18px;
  font: 600 clamp(17px, 1.7vw, 24px)/1.35 var(--display);
  letter-spacing: -0.03em;
}

.quote__by {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--acid);
}

.bento__card--info { grid-column: span 4; }

.info-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.info-list li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.info-list span {
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.16em;
  color: var(--acid);
}

.info-list b { font-size: 14px; font-weight: 500; }
.info-list .online { color: var(--acid); }

/* ------------------------------------------------------------
   SKILLS
   ------------------------------------------------------------ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 6px 16px;
  min-height: 158px;
  padding: 24px;
}

.skill-card__glyph {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-bright);
  border-radius: 13px;
  font: 700 17px/1 var(--display);
  color: var(--acid);
  background: rgba(212, 255, 63, 0.05);
}

.skill-card h3 {
  margin: 2px 0 0;
  font: 700 18px/1.2 var(--display);
  letter-spacing: -0.02em;
}

.skill-card p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.skill-card > b {
  grid-column: 2;
  align-self: end;
  justify-self: end;
  font: 800 26px/1 var(--display);
  letter-spacing: -0.05em;
  color: var(--txt);
}

.skill-card > i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.skill-card > i::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--lv);
  background: linear-gradient(90deg, var(--violet), var(--acid));
  box-shadow: 0 0 14px rgba(212, 255, 63, 0.5);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.chips span {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.chips span:hover {
  color: var(--acid);
  border-color: rgba(212, 255, 63, 0.45);
  background: rgba(212, 255, 63, 0.05);
}

/* ------------------------------------------------------------
   PROJECTS / HORIZONTAL
   ------------------------------------------------------------ */
.projects {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 110px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.035), transparent 30%, rgba(62, 232, 255, 0.02));
  overflow: hidden;
}

.projects__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.projects__head .section-head { margin-bottom: 26px; flex: 1; }

.projects__meta {
  text-align: right;
  padding-bottom: 26px;
}

.projects__meta p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--muted);
}

.projects__hint {
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--acid);
}

.projects__hint i { font-style: normal; margin-left: 6px; }

.projects__viewport { overflow: hidden; }

.projects__track {
  display: flex;
  align-items: stretch;
  gap: 22px;
  width: max-content;
  padding: 34px max(20px, calc((100vw - 1440px) / 2)) 44px;
  will-change: transform;
}

.project {
  flex: 0 0 auto;
  width: clamp(290px, 31vw, 430px);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.project__media {
  position: relative;
  height: clamp(180px, 17vw, 240px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 5, 5, 0.75));
  pointer-events: none;
}

.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) brightness(0.8);
  transition: transform 0.7s var(--ease), filter 0.5s ease;
  will-change: transform;
}

.project:hover .project__media img { transform: scale(1.09); filter: grayscale(0) brightness(1); }

.project__num {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 18px;
  font: 800 12px/1 var(--mono);
  color: var(--acid);
}

.project__body {
  flex: 1;
  padding: 24px 24px 12px;
}

.project__body h3 {
  margin: 0 0 12px;
  font: 700 clamp(24px, 2vw, 30px)/1.1 var(--display);
  letter-spacing: -0.04em;
}

.project__body p {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 1.65;
  color: #a2a8a2;
}

.project__body code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--acid);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.project__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 24px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.12em;
  color: var(--acid);
}

.project__link i { font-style: normal; }

/* ------------------------------------------------------------
   EXPERTISE / HOVER REVEAL
   ------------------------------------------------------------ */
.expertise { position: relative; overflow: hidden; }
.expertise .container { position: relative; }

.exp-list {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
}

.exp-row {
  display: grid;
  grid-template-columns: 60px minmax(0, 1.1fr) minmax(0, 1fr) 40px;
  align-items: center;
  gap: 20px;
  padding: clamp(22px, 2.6vw, 36px) 12px;
  border-bottom: 1px solid var(--line);
  transition: padding 0.4s var(--ease), background 0.4s ease, opacity 0.4s ease;
}

.exp-row:hover {
  padding-left: 28px;
  background: linear-gradient(90deg, rgba(212, 255, 63, 0.05), transparent);
}

.exp-row.is-dim { opacity: 0.28; }

.exp-row__num {
  font: 500 11px/1 var(--mono);
  color: var(--acid);
}

.exp-row h3 {
  margin: 0;
  font: 700 clamp(24px, 3.1vw, 46px)/1.05 var(--display);
  letter-spacing: -0.045em;
}

.exp-row p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.exp-row i {
  justify-self: end;
  font-style: normal;
  font-size: 20px;
  color: var(--muted);
  transition: transform 0.35s var(--ease), color 0.35s ease;
}

.exp-row:hover i { transform: translate(4px, -4px); color: var(--acid); }

.exp-preview {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: clamp(220px, 24vw, 340px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-bright);
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transition: opacity 0.35s ease, transform 0.45s var(--ease);
}

.exp-preview.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(-3deg);
}

.exp-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

/* ------------------------------------------------------------
   CONTACT / FOOTER
   ------------------------------------------------------------ */
.contact {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(110px, 12vw, 160px) 0 34px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

#waveCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  pointer-events: none;
}

.contact__glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  width: 90vw;
  height: 60vw;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2), transparent 65%);
  filter: blur(60px);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.contact__inner > .kicker { margin-bottom: 26px; }

.contact__title {
  margin: 0;
  font: 800 clamp(52px, 9vw, 148px)/0.88 var(--display);
  letter-spacing: -0.065em;
}

.contact__copy {
  max-width: 540px;
  margin: 28px auto 0;
  color: #aeb4ae;
  font-size: 15px;
}

.email-copy {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 44px;
  padding: 10px 10px 10px 26px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.35s var(--ease);
}

.email-copy:hover {
  border-color: var(--acid);
  box-shadow: 0 0 36px rgba(212, 255, 63, 0.16);
}

.email-copy__addr {
  font: 500 clamp(11px, 1.2vw, 15px)/1 var(--mono);
  color: var(--txt);
}

.email-copy__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 19px;
  border-radius: 100px;
  background: var(--acid);
  color: #050505;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.1em;
}

.email-copy__action i { font-style: normal; }

.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 52px;
}

.socials a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 86px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.35s var(--ease);
  will-change: transform;
}

.socials a:hover {
  border-color: var(--acid);
  background: rgba(212, 255, 63, 0.07);
}

.socials a span {
  font: 800 20px/1 var(--display);
  letter-spacing: -0.04em;
}

.socials a small {
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(80px, 10vw, 140px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font: 500 9px/1.4 var(--mono);
  letter-spacing: 0.1em;
  color: var(--muted);
  text-align: left;
}

.footer__mid i { font-style: normal; color: var(--acid); margin: 0 5px; }
.footer a { color: var(--txt); transition: color 0.25s ease; }
.footer a:hover { color: var(--acid); }

/* ------------------------------------------------------------
   TOAST
   ------------------------------------------------------------ */
.toast {
  position: fixed;
  z-index: 10001;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 24px);
  padding: 13px 22px;
  border: 1px solid var(--acid);
  border-radius: 100px;
  background: rgba(10, 12, 8, 0.94);
  backdrop-filter: blur(14px);
  color: var(--acid);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.4s var(--ease);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------
   NO-GSAP / NO-JS SAFETY
   ------------------------------------------------------------ */
html.no-motion .line > span,
html.no-motion [data-fade],
html.no-motion .reveal-item { transform: none !important; opacity: 1 !important; }
html.no-motion .preloader { display: none; }
html.no-motion .exp-preview { display: none; }

/* ------------------------------------------------------------
   PLAYGROUND / TOY WORLD + FLUID FIELD
   ------------------------------------------------------------ */
.playground { overflow: hidden; }

.playground__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}

.world,
.fluid {
  position: relative;
  min-height: clamp(440px, 52vw, 620px);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(139, 92, 246, 0.12), transparent 62%), #080a08;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 80px rgba(0, 0, 0, 0.45);
}

.world::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 5, 5, 0.66));
}

#worldCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.world__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}

.world__hud {
  position: absolute;
  z-index: 4;
  top: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.12em;
}

.world__hud span { display: inline-flex; align-items: center; gap: 8px; }
.world__hud .pulse { width: 5px; height: 5px; }

.world__hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(10px);
  color: var(--muted);
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: opacity 0.4s ease;
}

.world__hint.is-hidden { opacity: 0; }

.world__reset {
  position: absolute;
  z-index: 5;
  top: 52px;
  right: 20px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  background: rgba(5, 5, 5, 0.62);
  color: var(--txt);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.world__reset:hover {
  border-color: var(--acid);
  color: var(--acid);
  background: rgba(212, 255, 63, 0.08);
}

.world__touch { display: none; }

.world__card {
  position: absolute;
  z-index: 6;
  left: 22px;
  bottom: 72px;
  width: min(360px, calc(100% - 44px));
  padding: 20px 22px;
  border: 1px solid rgba(212, 255, 63, 0.42);
  border-radius: 20px;
  background: rgba(8, 10, 8, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.world__card-tag {
  color: var(--acid);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.14em;
}

.world__card h3 {
  margin: 10px 0 6px;
  font: 800 22px/1.1 var(--display);
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.world__card p { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.world__card a { color: var(--acid); font: 700 10px/1 var(--mono); letter-spacing: 0.1em; }

.world__fallback {
  position: absolute;
  z-index: 7;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 36px;
  background: rgba(5, 5, 5, 0.94);
}

.world__fallback p { margin: 0; color: var(--muted); font-size: 14px; }
.world__fallback-links { display: flex; flex-wrap: wrap; gap: 10px; }

.world__fallback-links a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--acid);
  font: 600 10px/1 var(--mono);
}

.fluid { background: #070907; }

.fluid::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.78));
}

#fluidCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  filter: blur(13px) contrast(1.55) saturate(1.3);
  transform: scale(1.06);
}

.fluid__labels {
  position: absolute;
  z-index: 4;
  top: 22px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font: 500 9px/1 var(--mono);
  letter-spacing: 0.14em;
}

.fluid__copy { position: absolute; z-index: 4; left: 26px; right: 26px; bottom: 30px; }
.fluid__num { color: var(--acid); font: 600 10px/1 var(--mono); letter-spacing: 0.14em; }

.fluid__copy h3 {
  margin: 12px 0;
  font: 800 clamp(38px, 4.4vw, 64px)/0.92 var(--display);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.fluid__copy p { max-width: 370px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.fluid__orbit {
  position: absolute;
  z-index: 3;
  top: 34%;
  left: 50%;
  width: 190px;
  height: 190px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.fluid__orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  animation: orbit-spin 16s linear infinite;
}

.fluid__orbit span:nth-child(2) {
  inset: 24px;
  border-color: rgba(62, 232, 255, 0.22);
  animation-duration: 11s;
  animation-direction: reverse;
}

.fluid__orbit span:nth-child(3) {
  inset: 52px;
  border-color: rgba(212, 255, 63, 0.25);
  animation-duration: 7s;
}

@keyframes orbit-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------
   YOUTUBE / CLICK-TO-PLAY SHORT
   ------------------------------------------------------------ */
.videos {
  position: relative;
  overflow: hidden;
  padding: clamp(100px, 11vw, 150px) 0;
  border-top: 1px solid var(--line);
}

.videos::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 12%;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}

.videos .container { position: relative; z-index: 1; }
.videos .section-sub strong { color: var(--txt); font-weight: 600; }

.videos__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  margin-top: clamp(36px, 5vw, 64px);
}

.video-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 36px 80px rgba(0, 0, 0, 0.45);
}

.videos__rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.video-card__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  cursor: pointer;
  isolation: isolate;
}

.video-card__frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.2), transparent 35%, rgba(5, 5, 5, 0.72));
}

.video-card__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.92) contrast(1.06);
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}

.video-card:hover .video-card__poster { transform: scale(1.04); }

.video-card__play {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 58px;
  height: 58px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 255, 63, 0.75);
  border-radius: 50%;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(12px);
  color: var(--acid);
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.22);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease;
}

.video-card__play span { transform: translateX(2px); font-size: 20px; }
.video-card__play:hover,
.video-card__play:focus-visible {
  transform: scale(1.08);
  background: var(--acid);
  color: #050505;
  box-shadow: 0 0 0 12px rgba(212, 255, 63, 0.08);
  outline: none;
}

.video-card__badge {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  background: rgba(5, 5, 5, 0.66);
  color: var(--muted);
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.14em;
}

.video-card__frame iframe {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-card__frame.is-playing iframe { opacity: 1; }

.video-card__frame.is-playing .video-card__poster,
.video-card__frame.is-playing .video-card__play,
.video-card__frame.is-playing .video-card__badge {
  opacity: 0;
  pointer-events: none;
}

.video-card__frame.is-playing::after { display: none; }

.video-card__info { padding: 18px 8px 4px; }
.video-card__tag { color: var(--cyan); font: 600 9px/1 var(--mono); letter-spacing: 0.14em; }

.video-card__info h3 {
  margin: 12px 0 8px;
  font: 800 clamp(18px, 2vw, 24px)/1.08 var(--display);
  letter-spacing: -0.04em;
}

.video-card__info p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.video-card__link { color: var(--acid); font: 700 10px/1 var(--mono); letter-spacing: 0.1em; }
.video-card__link i { font-style: normal; }

.videos__panel { position: relative; padding-left: clamp(0px, 2vw, 28px); }

.videos__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8%;
  width: 1px;
  height: 84%;
  background: linear-gradient(180deg, transparent, var(--line-bright), transparent);
}

.videos__num,
.videos__meta span { color: var(--muted); font: 600 9px/1 var(--mono); letter-spacing: 0.14em; }

.videos__panel h3 {
  margin: 18px 0 22px;
  font: 800 clamp(38px, 5vw, 72px)/0.96 var(--display);
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.videos__panel h3 span { color: var(--acid); }

.videos__panel > p {
  max-width: 520px;
  margin: 0 0 30px;
  color: #aeb4ae;
  font-size: 14px;
  line-height: 1.8;
}

.videos__channel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.1em;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.videos__channel:hover {
  border-color: var(--acid);
  color: var(--acid);
  box-shadow: 0 0 34px rgba(212, 255, 63, 0.14);
}

.videos__channel i { font-style: normal; }

.videos__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: 42px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* ------------------------------------------------------------
   AI TRIGGER + DIRECT SOCIAL DOCK
   ------------------------------------------------------------ */
.nav__ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(62, 232, 255, 0.08));
  color: var(--txt);
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.nav__ai:hover,
.nav__ai:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  box-shadow: 0 0 24px rgba(212, 255, 63, 0.16);
  outline: none;
}

.nav__ai kbd,
.ai-palette kbd {
  padding: 4px 6px;
  border: 1px solid var(--line-bright);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.04em;
}

.social-dock {
  position: fixed;
  z-index: 90;
  left: clamp(14px, 2vw, 30px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(8, 9, 8, 0.58);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.05);
}

.social-dock__label {
  margin-bottom: 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--muted);
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.2em;
}

.social-dock a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  font: 700 10px/1 var(--mono);
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}

.social-dock a:hover,
.social-dock a:focus-visible {
  border-color: var(--acid);
  background: var(--acid);
  color: #050505;
  box-shadow: 0 0 18px rgba(212, 255, 63, 0.35);
  transform: translateX(2px);
  outline: none;
}

/* ------------------------------------------------------------
   LIQUID-GLASS AI COMMAND PALETTE
   ------------------------------------------------------------ */
.glass-3d {
  --mx: 50%;
  --my: 0%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.18s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-3d::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(212, 255, 63, 0.16), transparent 44%);
  mix-blend-mode: screen;
}

.ai-palette {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: min(13vh, 118px) 16px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ai-palette.is-open { opacity: 1; visibility: visible; }

.ai-palette__scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 2, 0.74);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
}

.ai-palette__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-bright);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(19, 21, 19, 0.96), rgba(8, 9, 8, 0.92));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.65), inset 0 1px rgba(255, 255, 255, 0.08);
}

.ai-palette__panel > * { position: relative; z-index: 1; }

.ai-palette__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.16em;
}

.ai-palette__head kbd { margin-left: auto; }

.ai-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 0 rgba(212, 255, 63, 0.55);
  animation: pulse 2s infinite;
}

.ai-palette__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 22px 10px;
}

.ai-palette__prompt {
  color: var(--acid);
  font: 700 24px/1 var(--mono);
}

.ai-palette__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--txt);
  caret-color: var(--acid);
  font: 600 clamp(16px, 2.4vw, 23px)/1.4 var(--body);
}

.ai-palette__input::placeholder { color: #6f776f; }

.ai-palette__results {
  max-height: min(46vh, 360px);
  overflow-y: auto;
  padding: 6px 12px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-bright) transparent;
}

.ai-result {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--txt);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ai-result:hover,
.ai-result.is-active {
  border-color: rgba(212, 255, 63, 0.5);
  background: rgba(212, 255, 63, 0.08);
}

.ai-result__icon {
  flex: 0 0 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  color: var(--acid);
  font: 700 9px/1 var(--mono);
}

.ai-result__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--txt);
  font: 600 13px/1.35 var(--body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-result__hint {
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-result__arrow { color: var(--acid); font-size: 14px; }

.ai-result__empty {
  padding: 18px 14px;
  color: var(--muted);
  font-size: 12px;
}

.ai-palette__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------
   WEB SEARCH + DIRECT SOCIAL CARDS
   ------------------------------------------------------------ */
.web-search {
  width: min(100%, 620px);
  margin-top: 28px;
  padding: 7px 7px 7px 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-bright);
  border-radius: 100px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 18px 50px rgba(0, 0, 0, 0.35);
}

.web-search > * { position: relative; z-index: 1; min-width: 0; }
.web-search__icon { color: var(--acid); font: 600 22px/1 var(--mono); }

.web-search__input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--txt);
  caret-color: var(--acid);
  font: 500 clamp(12px, 1.1vw, 14px)/1.4 var(--body);
}

.web-search__input::placeholder { color: #7d847d; }

.web-search__submit {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 100px;
  background: var(--acid);
  color: #050505;
  font: 700 10px/1 var(--mono);
  letter-spacing: 0.08em;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.3s ease, transform 0.3s var(--ease);
}

.web-search__submit i { font-style: normal; margin-left: 5px; }
.web-search__submit:hover { box-shadow: 0 0 24px rgba(212, 255, 63, 0.4); }

.web-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.web-search__chips button {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.web-search__chips button:hover,
.web-search__chips button:focus-visible {
  border-color: var(--acid);
  color: var(--acid);
  outline: none;
}

.social-section { position: relative; overflow: hidden; }

.social-section::before {
  content: "";
  position: absolute;
  inset: 10% -10%;
  pointer-events: none;
  background: radial-gradient(circle at 20% 40%, rgba(139, 92, 246, 0.13), transparent 46%),
              radial-gradient(circle at 82% 60%, rgba(62, 232, 255, 0.1), transparent 46%);
}

.social-section .container { position: relative; z-index: 1; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 3vw, 32px);
  margin-top: clamp(32px, 5vw, 56px);
}

.social-card {
  display: block;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 36px 80px rgba(0, 0, 0, 0.45);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover { border-color: var(--line-bright); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }

.social-card__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
  isolation: isolate;
}

.social-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.12), rgba(5, 5, 5, 0.56));
  pointer-events: none;
}

.social-card__visual--insta {
  background: radial-gradient(circle at 28% 18%, #f9ce34, #ee2a7b 46%, #6228d7 92%);
}

.social-card__visual--fb {
  background: radial-gradient(circle at 28% 18%, #3ee8ff, #1877f2 46%, #0a2540 92%);
}

.social-card__glyph {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.94);
  font: 800 clamp(68px, 11vw, 128px)/1 var(--display);
  letter-spacing: -0.08em;
  text-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.social-card__badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 100px;
  background: rgba(5, 5, 5, 0.4);
  color: #fff;
  font: 600 8px/1 var(--mono);
  letter-spacing: 0.14em;
}

.social-card__handle {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.86);
  font: 600 10px/1 var(--mono);
  overflow-wrap: anywhere;
}

.social-card__info { padding: 18px 8px 4px; }
.social-card__tag { color: var(--cyan); font: 600 9px/1 var(--mono); letter-spacing: 0.14em; }

.social-card__info h3 {
  margin: 12px 0 8px;
  font: 800 clamp(22px, 3vw, 30px)/1.05 var(--display);
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.social-card__info p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.social-card__link { color: var(--acid); font: 700 10px/1 var(--mono); letter-spacing: 0.1em; }
.social-card__link i { font-style: normal; }

/* ------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1180px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__card--bio { grid-column: span 2; grid-row: auto; }
  .bento__card--stat { grid-column: span 1; grid-row: auto; }
  .bento__card--reel,
  .bento__card--quote { grid-column: span 1; }
  .bento__card--info { grid-column: span 2; }
  .info-list { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .playground__grid { grid-template-columns: 1fr; }
  .world, .fluid { min-height: 480px; }
  .videos__grid { grid-template-columns: 1fr; }
  .videos__panel { padding-left: 0; }
  .videos__panel::before { display: none; }
  .video-card__frame { width: min(100%, 300px); }
}

@media (max-width: 900px) {
  .nav { height: 58px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(9, 10, 9, 0.96);
    backdrop-filter: blur(22px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links a { display: block; padding: 14px 16px; font-size: 13px; }
  .nav__links a::after { display: none; }
  .nav__cta { display: none; }
  .nav__ai { height: 38px; padding: 0 12px; }
  .nav__ai kbd { display: none; }
  body { padding-bottom: 64px; }

  .social-dock {
    left: 50%;
    top: auto;
    bottom: 12px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 5px;
    padding: 7px 10px;
  }
  .social-dock__label { display: none; }
  .social-dock a { width: 32px; height: 32px; }
  .social-dock a:hover { transform: translateY(-2px); }
  .ai-palette { padding-top: 88px; }

  .web-search { width: 100%; margin-top: 24px; }
  .web-search__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .web-search__chips::-webkit-scrollbar { display: none; }

  .videos__rail {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .videos__rail::-webkit-scrollbar { display: none; }
  .videos__rail .video-card { flex: 0 0 clamp(200px, 58vw, 280px); scroll-snap-align: center; }

  .hero { padding-top: 120px; align-items: flex-start; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(48px, 11vw, 96px); }
  .hero__visual { height: 46vh; min-height: 320px; margin-top: 10px; }
  .hero__portrait { right: 6%; width: clamp(130px, 30vw, 190px); }
  .scroll-cue { display: none; }

  .projects { min-height: 0; padding: 100px 0; }
  .projects__head { flex-direction: column; align-items: flex-start; }
  .projects__meta { text-align: left; padding-bottom: 0; }
  .projects__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .projects__viewport::-webkit-scrollbar { display: none; }
  .projects__track { padding: 28px 20px 36px; gap: 16px; transform: none !important; }
  .project { width: min(78vw, 360px); scroll-snap-align: center; }

  .exp-row { grid-template-columns: 40px 1fr 30px; gap: 14px; }
  .exp-row p { display: none; }
  .exp-preview { display: none; }

  .world, .fluid { min-height: 440px; }
  .world__touch {
    position: absolute;
    z-index: 5;
    left: 18px;
    right: 18px;
    bottom: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .world__touch button {
    height: 42px;
    border: 1px solid var(--line-bright);
    border-radius: 12px;
    background: rgba(5, 5, 5, 0.72);
    color: var(--acid);
    font: 700 11px/1 var(--mono);
    touch-action: none;
  }
  .world__hint { bottom: 74px; font-size: 8px; }
  .world__card { bottom: 118px; }
  .fluid__orbit { display: none; }
  .fluid__copy p { max-width: 320px; font-size: 12px; }

  .footer { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 600px) {
  body .container { width: calc(100% - 36px); }
  .nav { padding: 0 10px 0 16px; gap: 10px; }
  .nav__ai { padding: 0 10px; font-size: 9px; }
  .ai-palette { padding: 76px 12px 74px; }
  .ai-palette__panel { border-radius: 20px; }
  .ai-palette__input-wrap { padding: 16px 16px 8px; gap: 9px; }
  .ai-palette__prompt { font-size: 19px; }
  .ai-palette__foot { gap: 10px; padding: 11px 14px; }
  .hero__title { font-size: clamp(46px, 13.5vw, 80px); }
  .hero__lead { font-size: 14px; }
  .hero__meta { gap: 16px; }
  .hero__visual { height: 38vh; min-height: 280px; }
  .hero__portrait { right: 0; width: 128px; }
  .orbit-tag--one { left: -4px; top: 14%; }
  .orbit-tag--two { left: 0; bottom: 14%; }
  .hud { font-size: 8px; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento__card--bio,
  .bento__card--stat,
  .bento__card--reel,
  .bento__card--quote,
  .bento__card--info { grid-column: span 1; }
  .bio__inner { grid-template-columns: 80px 1fr; gap: 16px; }
  .info-list { grid-template-columns: 1fr 1fr; gap: 16px; }
  .skills-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .skill-card { min-height: 140px; padding: 18px; }
  .skill-card__glyph { width: 38px; height: 38px; font-size: 14px; }
  .skill-card h3 { font-size: 15px; }
  .skill-card p { font-size: 10px; }
  .skill-card > b { font-size: 20px; }

  .world, .fluid { min-height: 420px; border-radius: 22px; }
  .world__hud { top: 16px; left: 16px; right: 16px; font-size: 8px; }
  .world__reset { top: 44px; right: 14px; }
  .world__card { left: 14px; bottom: 112px; width: calc(100% - 28px); padding: 16px; }
  .world__card h3 { font-size: 19px; }
  .fluid__labels { left: 16px; right: 16px; font-size: 8px; }
  .fluid__copy { left: 18px; right: 18px; bottom: 22px; }
  .fluid__copy h3 { font-size: clamp(34px, 10vw, 48px); }

  .videos__grid { margin-top: 32px; }
  .videos__rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: none;
  }
  .videos__rail::-webkit-scrollbar { display: none; }
  .videos__rail .video-card { flex: 0 0 min(62vw, 220px); scroll-snap-align: center; }
  .video-card { padding: 10px; border-radius: 24px; }
  .video-card__frame { border-radius: 18px; }
  .video-card__play { width: 54px; height: 54px; }
  .video-card__info { padding: 16px 6px 2px; }
  .videos__panel h3 { font-size: clamp(34px, 9vw, 52px); }
  .videos__panel > p { font-size: 13px; }
  .videos__meta { gap: 10px 16px; margin-top: 30px; }

  .web-search { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 7px; padding: 6px 6px 6px 13px; border-radius: 22px; }
  .web-search__icon { font-size: 19px; }
  .web-search__submit { height: 38px; padding: 0 12px; font-size: 9px; }
  .social-grid { grid-template-columns: 1fr; gap: 12px; }
  .social-card { padding: 10px; border-radius: 22px; }
  .social-card__visual { aspect-ratio: 1 / 1; border-radius: 16px; }
  .social-card__info { padding: 14px 6px 2px; }

  .section-head { gap: 10px; }
  .section-head h2 { font-size: clamp(27px, 8vw, 40px); }
  .section-head__num { font-size: 9px; }

  .email-copy { flex-direction: column; gap: 14px; border-radius: 24px; padding: 20px; width: 100%; }
  .email-copy__addr { font-size: 11px; word-break: break-all; }
  .socials { gap: 10px; }
  .socials a { width: 70px; height: 70px; border-radius: 18px; }
}

@media (max-width: 380px) {
  .skills-grid { grid-template-columns: 1fr; }
  .bio__inner { grid-template-columns: 1fr; }
  .bio__avatar { width: 100px; }
  .web-search__submit { width: 38px; padding: 0; font-size: 0; }
  .web-search__submit i { margin: 0; font-size: 15px; }
  .social-dock { gap: 3px; padding: 6px 8px; }
  .social-dock a { width: 30px; height: 30px; }
}

/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .line > span { transform: none !important; }
  .hero__title .line > span::before,
  .hero__title .line > span::after { display: none; }
  [data-fade] { opacity: 1 !important; }
  .preloader { display: none; }
  .cursor { display: none; }
  .marquee__track { animation: none; }
  .glass-3d { transform: none !important; }
  .ai-palette__scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
