/* ==========================================================================
   AEJAZ — Portfolio
   Glassmorphism · Motion · Interaction
   ========================================================================== */

/* Animatable accent colours (palette switcher transitions through these) */
@property --a1 { syntax: '<color>'; inherits: true; initial-value: #8b6cff; }
@property --a2 { syntax: '<color>'; inherits: true; initial-value: #2fd6ff; }
@property --a3 { syntax: '<color>'; inherits: true; initial-value: #ff5fb7; }

:root {
  --bg: #07060f;
  --text: #f5f3ff;
  --muted: rgba(245, 243, 255, 0.68);
  --faint: rgba(245, 243, 255, 0.42);
  --line: rgba(255, 255, 255, 0.12);

  --a1: #8b6cff;
  --a2: #2fd6ff;
  --a3: #ff5fb7;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 55%, var(--a3));

  --font-display: 'Clash Display', 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Satoshi', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --container: 1320px;
  --pad: clamp(20px, 5vw, 72px);
  --radius: 28px;
  --blur: 22px;
  --nav-h: 64px;

  transition: --a1 1.2s var(--ease-out), --a2 1.2s var(--ease-out), --a3 1.2s var(--ease-out);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
  scrollbar-width: thin;
}
html.is-locked { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 0.95vw + 0.35rem, 18px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 4px; border-radius: 10px; }
::selection { background: var(--a1); color: #fff; }
[tabindex="-1"]:focus { outline: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200; padding: 10px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 500; transform: translateY(-200%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: .02em; }
.container { width: min(100% - var(--pad) * 2, var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(110px, 16vh, 200px); }

/* ==========================================================================
   Background
   ========================================================================== */
.bg-canvas {
  position: fixed; inset: 0; z-index: -2;
  width: 100vw; height: 100vh; height: 100lvh;
  pointer-events: none;
}
.bg-fallback { display: none; position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.no-webgl .bg-fallback { display: block; }
.no-webgl .bg-canvas { display: none; }
.bg-fallback i {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(80px); opacity: .55; animation: drift 24s ease-in-out infinite alternate;
}
.bg-fallback i:nth-child(1) { background: var(--a1); top: -20vmax; left: -15vmax; }
.bg-fallback i:nth-child(2) { background: var(--a2); bottom: -25vmax; right: -15vmax; animation-delay: -6s; }
.bg-fallback i:nth-child(3) { background: var(--a3); top: 30%; left: 40%; width: 40vmax; height: 40vmax; animation-delay: -12s; }
.bg-fallback i:nth-child(4) { background: #2b3bd6; bottom: 0; left: -10vmax; width: 45vmax; height: 45vmax; animation-delay: -18s; }
@keyframes drift { to { transform: translate3d(10vmax, -8vmax, 0) scale(1.15); } }

.grain {
  position: fixed; inset: -100%; z-index: 95; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-5%, 4%); }
  40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, -2%); }
  80% { transform: translate(6%, 3%); }
}

/* ==========================================================================
   Glass — the core material
   ========================================================================== */
.glass {
  --mx: -999px; --my: -999px;
  position: relative;
  background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .035) 45%, rgba(255, 255, 255, .07));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 -1px 0 rgba(255, 255, 255, .04),
    0 30px 60px -30px rgba(0, 0, 0, .7);
}
/* Gradient edge + cursor-following edge light */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .85), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 30%, rgba(255, 255, 255, .03) 60%, rgba(255, 255, 255, .22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Soft spotlight fill */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(255, 255, 255, .075), transparent 60%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(22, 19, 40, .88); }
}

/* ==========================================================================
   Typography helpers
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--a2); box-shadow: 0 0 12px var(--a2);
}
.section-head { margin-bottom: clamp(48px, 7vw, 90px); }
.section-title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.6vw, 6.2rem);
  line-height: .98;
  letter-spacing: -.035em;
  word-spacing: .08em;
}
.section-title em, .contact__title em { font-style: normal; }
.section-title em .word__in, .contact__title em .word__in,
.section-title em:not(:has(.word)) {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Split words */
.word { display: inline-block; white-space: nowrap; }
.word__in { display: inline-block; }
.is-ready [data-split] .word { overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; padding-right: .04em; margin-right: -.04em; }
.is-ready [data-split] .word__in {
  transform: translate3d(0, 110%, 0) rotate(4deg);
  transform-origin: left bottom;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms);
}
.is-ready [data-split].is-in .word__in { transform: none; }

/* Rolling link text */
.roll { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
.roll__a, .roll__b { display: block; transition: transform .6s var(--ease-out); }
.roll__b { position: absolute; left: 0; top: 100%; }
:is(a, button):hover .roll__a, :is(a, button):hover .roll__b,
:is(a, button):focus-visible .roll__a, :is(a, button):focus-visible .roll__b { transform: translateY(-100%); }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--grad);
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.link-underline:hover::after { transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Reveal system
   ========================================================================== */
.is-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.is-ready [data-reveal="scale"] { transform: translate3d(0, 50px, 0) scale(.9); }
.is-ready [data-reveal="left"] { transform: translate3d(-70px, 0, 0); }
.is-ready [data-reveal="right"] { transform: translate3d(70px, 0, 0); }
.is-ready [data-reveal="split"] { opacity: 1; transform: none; }
.is-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --h: 58px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  height: var(--h); padding: 0 1.7em; border-radius: 999px;
  font-weight: 500; font-size: 1rem; letter-spacing: .01em; white-space: nowrap;
  transition: box-shadow .5s var(--ease-out), background-position .7s var(--ease-out), background-color .4s;
}
.btn svg {
  width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out);
}
.btn:hover svg { transform: rotate(45deg); }
.btn--primary {
  color: #0a0713; font-weight: 700;
  background: var(--grad); background-size: 200% 100%; background-position: 0% 50%;
  box-shadow: 0 14px 40px -14px color-mix(in srgb, var(--a1) 80%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 0, 0, .12);
}
.btn--primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 20px 50px -12px color-mix(in srgb, var(--a2) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 0, 0, .12);
}
.btn--glass { --radius: 999px; }
.btn--glass:hover { background-color: rgba(255, 255, 255, .1); }
.btn--small { --h: 44px; padding: 0 1.25em; font-size: .92rem; }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader { display: none; }
.js .preloader {
  --p: 0;
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  background: var(--bg);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.2s var(--ease-io);
  animation: preloader-failsafe .01s 9s forwards;
}
.preloader.is-done { clip-path: inset(0 0 100% 0); }
@keyframes preloader-failsafe { to { visibility: hidden; opacity: 0; } }
.preloader__glow {
  position: absolute; width: 60vmin; height: 60vmin; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--a1) 55%, transparent), transparent 65%);
  filter: blur(40px); animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.2); opacity: .7; } }
.preloader__center { position: relative; display: grid; justify-items: center; gap: 28px; transition: transform 1.2s var(--ease-io), opacity .8s; }
.preloader.is-done .preloader__center { transform: translateY(-30vh); opacity: 0; }
.preloader__name {
  position: relative; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(3.5rem, 14vw, 11rem); line-height: .9; letter-spacing: -.02em;
}
.preloader__outline { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28); }
.preloader__fill {
  position: absolute; inset: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0);
}
.preloader__bar { width: min(280px, 60vw); height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(calc(var(--p) / 100)); }
.preloader__foot {
  position: absolute; left: var(--pad); right: var(--pad); bottom: 32px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em;
}
.preloader__count { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6rem); line-height: .8; color: var(--text); letter-spacing: -.02em; }
.preloader__count::after { content: "%"; font-size: .3em; margin-left: 4px; color: var(--muted); }

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor-ring, .cursor-dot { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor :is(input:not([type="radio"]):not([type="checkbox"]), textarea) { cursor: text !important; }
.has-cursor .cursor-ring, .has-cursor .cursor-dot {
  display: block; position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  opacity: 0; transition: opacity .35s;
}
.has-cursor.cursor-on .cursor-ring, .has-cursor.cursor-on .cursor-dot { opacity: 1; }
.cursor-ring { width: 0; height: 0; }
.cursor-ring__bg {
  position: absolute; left: -48px; top: -48px; width: 96px; height: 96px; border-radius: 50%;
  border: 2.2px solid rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .03);
  -webkit-backdrop-filter: blur(3px) saturate(160%);
  backdrop-filter: blur(3px) saturate(160%);
  transform: scale(.42);
  transition: transform .55s var(--ease-out), background-color .4s, border-color .4s;
}
.cursor-ring[data-mode="hover"] .cursor-ring__bg { transform: scale(.72); background-color: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); }
.cursor-ring[data-mode="label"] .cursor-ring__bg { transform: scale(1); background-color: rgba(255, 255, 255, .94); border-color: transparent; }
.cursor-ring[data-mode="text"] .cursor-ring__bg { transform: scale(.1); }
.cursor-ring[data-mode="default"].is-down .cursor-ring__bg { transform: scale(.3); }
.cursor-ring[data-mode="hover"].is-down .cursor-ring__bg { transform: scale(.6); }
.cursor-ring__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.4); opacity: 0;
  color: #0a0713; font-weight: 700; font-size: .82rem; white-space: nowrap;
  transition: opacity .3s, transform .55s var(--ease-out);
}
.cursor-ring[data-mode="label"] .cursor-ring__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; mix-blend-mode: difference; }
.cursor-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-out); }
.cursor-dot:is([data-mode="label"], [data-mode="text"])::after { transform: scale(0); }

.click-ripple {
  position: fixed; z-index: 99; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%;
  pointer-events: none; border: 1.5px solid rgba(255, 255, 255, .7);
  animation: ripple .8s var(--ease-out) forwards;
}
@keyframes ripple { from { transform: scale(.1); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

/* ==========================================================================
   Scroll progress + FX layer
   ========================================================================== */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 3px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 12px var(--a2); }
.fx-layer { position: fixed; inset: 0; z-index: 98; pointer-events: none; overflow: hidden; }
.confetti {
  position: absolute; top: 0; left: 0; width: 10px; height: 16px; border-radius: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .9), var(--c));
  box-shadow: 0 0 10px var(--c);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  padding-inline: var(--pad); pointer-events: none;
  transition: transform .8s var(--ease-out);
}
.nav.is-hidden, .js:not(.is-loaded) .nav { transform: translateY(calc(-100% - 30px)); }
.nav__bar {
  --radius: 999px; --blur: 20px;
  pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; height: var(--nav-h); margin: 0 auto; padding: 0 9px 0 9px;
}
.nav__logo { display: flex; align-items: center; gap: 10px; padding-right: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.nav__logo-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #0a0713; font-size: 1.15rem; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 6px 20px -6px var(--a1);
  transition: transform .8s var(--ease-spring);
}
.nav__logo:hover .nav__logo-mark { transform: rotate(-360deg); }
.nav__logo sup { font-size: .5em; opacity: .55; margin-left: 1px; }
.nav__links { position: relative; display: flex; align-items: center; gap: 2px; }
.nav__link { position: relative; z-index: 1; padding: 9px 17px; border-radius: 999px; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .4s; }
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__indicator {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 999px; opacity: 0;
  background: rgba(255, 255, 255, .1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: transform .7s var(--ease-out), width .7s var(--ease-out), opacity .4s;
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.palette-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.palette-btn__swatch {
  width: 20px; height: 20px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--a1), var(--a2), var(--a3), var(--a1));
  box-shadow: 0 0 16px color-mix(in srgb, var(--a2) 70%, transparent);
  transition: transform .8s var(--ease-spring);
}
.palette-btn:hover .palette-btn__swatch { transform: rotate(200deg) scale(1.12); }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.6px; border-radius: 2px; background: var(--text); transition: transform .6s var(--ease-out), top .6s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--nav-h) + 72px) var(--pad) calc(36px + env(safe-area-inset-bottom));
  background: rgba(8, 6, 18, .5);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  clip-path: circle(0px at calc(100% - var(--pad) - 31px) 48px);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - var(--pad) - 31px) 48px); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__link, .menu__foot {
  transform: translateY(50px); opacity: 0;
  transition: transform .9s var(--ease-out), opacity .6s;
  transition-delay: calc(var(--i) * 60ms + .15s);
}
.menu-open :is(.menu__link, .menu__foot) { transform: none; opacity: 1; }
.menu__link {
  display: flex; align-items: baseline; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem, 11vw, 4.6rem); line-height: 1.08; letter-spacing: -.03em;
}
.menu__link span { font-family: var(--font-mono); font-size: .8rem; font-weight: 400; color: var(--a2); letter-spacing: .05em; }
.menu__foot { display: grid; gap: 6px; }
.menu__foot .mono { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.menu__mail { font-size: 1.3rem; font-weight: 500; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; overflow: clip; }
.hero__inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: 100vh; min-height: 100svh;
  padding-top: calc(var(--nav-h) + 56px); padding-bottom: clamp(36px, 6vh, 64px);
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.status-pill {
  --radius: 999px; --blur: 14px;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; font-size: .9rem; font-weight: 500;
}
.status-pill__dot, .live-dot {
  position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3ef08f; flex: none;
  box-shadow: 0 0 10px #3ef08f;
}
.status-pill__dot::after, .live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #3ef08f;
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }
.hero__tag { text-align: right; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); line-height: 1.6; }

.hero__title { display: grid; gap: clamp(4px, 1.5vh, 16px); }
.hero__hello { font-size: clamp(.8rem, 1.2vw, 1rem); text-transform: uppercase; letter-spacing: .3em; color: var(--muted); padding-left: .4em; }
.hero__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(5.6rem, 25.5vw, 27rem);
  line-height: .78; letter-spacing: -.02em;
  user-select: none; -webkit-user-select: none;
}
.hero__name .chars { display: flex; justify-content: space-between; }
.char { display: inline-block; position: relative; will-change: transform; }
.hero__name .char { overflow: hidden; padding: .04em .015em .05em; margin: -.04em -.015em -.05em; }
.char__in { display: inline-block; }
.hero__name .char__in {
  --p: 0;
  background-image: linear-gradient(180deg, #fff 0%, #fff 30%, rgba(255, 255, 255, .45) 52%, var(--a2) 75%, var(--a3) 100%);
  background-size: 100% 200%;
  background-position: 0 calc(var(--p) * 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translate3d(0, 115%, 0) rotate(8deg);
  transform-origin: left bottom;
  transition: transform 1.5s var(--ease-out);
  transition-delay: calc(var(--i) * 80ms + .15s);
}
.no-js .hero__name .char__in, .is-loaded .hero__name .char__in { transform: none; }
.char__in.is-jelly { animation: jelly .9s var(--ease-out); }
@keyframes jelly {
  0% { scale: 1 1; } 25% { scale: 1.18 .8; } 40% { scale: .85 1.15; } 55% { scale: 1.08 .92; } 70% { scale: .97 1.03; } 100% { scale: 1 1; }
}

.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px; flex-wrap: wrap; }
.hero__intro { max-width: 36ch; font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.55; color: var(--muted); }
.rotator {
  position: relative; display: inline-block; height: 1.55em; vertical-align: bottom; overflow: hidden;
  transition: width .7s var(--ease-out);
}
.rotator > span {
  position: absolute; left: 0; bottom: 0; white-space: nowrap; font-weight: 700; line-height: 1.55;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(100%); opacity: 0;
  transition: transform .8s var(--ease-out), opacity .5s;
}
.rotator > span.is-active { transform: none; opacity: 1; }
.rotator > span.is-leaving { transform: translateY(-100%); opacity: 0; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.js:not(.is-loaded) [data-hero-fade] { opacity: 0; }
.is-loaded [data-hero-fade] { animation: hero-in 1.3s var(--ease-out) var(--d, 0s) backwards; }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 36px, 0); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: clamp(36px, 6vh, 64px); z-index: 2;
  display: grid; justify-items: center; gap: 10px; margin-left: -30px; width: 60px;
  font-size: .68rem; text-transform: uppercase; letter-spacing: .2em; color: var(--muted);
}
.scroll-cue__mouse { position: relative; width: 24px; height: 38px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .4); }
.scroll-cue__mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--text); animation: wheel 1.8s var(--ease-io) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* Floating glass shapes */
.hero__shapes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.shape {
  --size: 200px; --tint: var(--a1);
  position: absolute; left: 0; top: 0;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .5), rgba(255, 255, 255, .1) 22%, transparent 46%),
    radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--tint) 45%, transparent), transparent 60%),
    linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03));
  -webkit-backdrop-filter: blur(10px) saturate(190%) brightness(1.08);
  backdrop-filter: blur(10px) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow:
    inset 8px 10px 24px rgba(255, 255, 255, .18),
    inset -12px -16px 34px color-mix(in srgb, var(--tint) 30%, transparent),
    0 40px 80px -30px rgba(0, 0, 0, .65);
  will-change: transform;
  transition: scale .6s var(--ease-spring);
}
.shape::after {
  content: ""; position: absolute; top: 11%; left: 20%; width: 30%; height: 16%; border-radius: 50%;
  background: rgba(255, 255, 255, .75); filter: blur(7px); transform: rotate(-32deg); pointer-events: none;
}
.is-loaded .shape { animation: pop-in 1.6s var(--ease-spring) var(--d, 0s) backwards; }
.js:not(.is-loaded) .shape { scale: 0; }
@keyframes pop-in { from { scale: 0; } }
.shape.is-dragging { scale: 1.08; }
.shape--sm { --size: 84px; --tint: var(--a3); }
.shape--ring {
  --size: 170px; --tint: var(--a2);
  -webkit-mask: radial-gradient(farthest-side, transparent 54%, #000 55.5%);
  mask: radial-gradient(farthest-side, transparent 54%, #000 55.5%);
}
.shape--ring::after { top: 4%; left: 26%; width: 30%; height: 10%; }
.shape--pill { --size: 250px; --tint: var(--a3); height: 92px; border-radius: 999px; }
.shape--pill::after { top: 14%; left: 14%; width: 40%; height: 22%; transform: none; }
.shape--cube { --size: 128px; --tint: var(--a2); border-radius: 30%; }

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { position: relative; z-index: 4; padding-block: 70px; overflow-x: hidden; overflow-x: clip; }
.marquee__row {
  --radius: 0; --blur: 16px;
  width: 112vw; margin-left: -6vw; padding: 22px 0; overflow: hidden;
  transform: rotate(-3deg);
}
.marquee__row--b { margin-top: -26px; transform: rotate(2.4deg); background: linear-gradient(145deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); white-space: nowrap; }
.marquee__group span {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.2vw, 3.8rem); line-height: 1; letter-spacing: -.01em;
}
.marquee__row--b .marquee__group span { color: transparent; -webkit-text-stroke: 1.2px rgba(255, 255, 255, .7); font-size: clamp(1.4rem, 3.2vw, 2.9rem); }
.marquee__group i { font-style: normal; font-size: clamp(1.2rem, 2.6vw, 2.2rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__content { display: grid; gap: 36px; }
.about__lead {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.6rem, 2.9vw, 2.75rem); line-height: 1.2; letter-spacing: -.02em; word-spacing: .06em;
}
.is-ready [data-scrub-words] .word__in { opacity: .16; transition: opacity .25s linear; }
.about__body { color: var(--muted); max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { --radius: 22px; display: grid; align-content: space-between; gap: 18px; padding: 22px 20px; min-height: 150px; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 3.4vw, 3.2rem); line-height: 1; letter-spacing: -.03em; }
.stat__num sup { font-size: .5em; vertical-align: top; position: relative; top: .15em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat__label { font-size: .88rem; color: var(--muted); line-height: 1.35; }

/* ID card */
.about__card { display: grid; justify-items: center; }
.id-card {
  --radius: 32px; --hx: 50%; --hy: 50%;
  display: grid; width: min(100%, 400px); min-height: 560px; padding: 26px;
  cursor: pointer; will-change: transform; transform: perspective(1100px);
}
.id-card__holo {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 90, 210, .22) 38%, rgba(90, 220, 255, .24) 48%, rgba(255, 240, 130, .18) 58%, transparent 72%);
  background-size: 260% 260%; background-position: var(--hx) var(--hy);
  mix-blend-mode: screen; opacity: .8;
}
.id-card__face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.id-card__face--back { visibility: hidden; transform: scaleX(-1); justify-content: center; gap: 26px; }
.id-card.is-flipped .id-card__face--front { visibility: hidden; }
.id-card.is-flipped .id-card__face--back { visibility: visible; }
.id-card__top { display: flex; justify-content: space-between; align-items: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.id-card__chip {
  width: 44px; height: 32px; border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .25) 33% 35%, transparent 36% 64%, rgba(0, 0, 0, .25) 65% 67%, transparent 68%),
    linear-gradient(0deg, transparent 45%, rgba(0, 0, 0, .25) 46% 54%, transparent 55%),
    linear-gradient(135deg, #fbe9a6, #c9a54a 45%, #f6e29b 55%, #a8842f);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}
.id-card__avatar {
  position: relative; display: grid; place-items: center; width: 50%; aspect-ratio: 1; margin: 10px auto 0; border-radius: 50%;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(3.4rem, 6vw, 4.8rem); color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .45), transparent 55%), var(--grad);
  box-shadow: 0 24px 60px -14px color-mix(in srgb, var(--a1) 70%, transparent), inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -10px 30px rgba(0, 0, 0, .2);
  text-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}
.id-card__avatar::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, .35); animation: spin 20s linear infinite;
}
.id-card__avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.id-card__id { display: grid; gap: 4px; text-align: center; }
.id-card__name { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; line-height: 1.05; letter-spacing: -.02em; }
.id-card__role { color: var(--muted); font-size: .92rem; }
.id-card__info { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .2); font-size: .86rem; }
.id-card__info dt { font-family: var(--font-mono); font-size: .66rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.id-card__info dd { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-weight: 500; }
.live-dot { display: inline-block; width: 7px; height: 7px; }
.id-card__barcode {
  height: 36px; border-radius: 6px; opacity: .55;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px, #fff 5px 6px, transparent 6px 9px, #fff 9px 12px, transparent 12px 14px, #fff 14px 15px, transparent 15px 19px);
}
.id-card__kicker { color: var(--a2); font-size: .8rem; }
.facts { display: grid; gap: 14px; }
.facts li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-weight: 500; }
.facts li span { font-size: 1.4rem; }
.id-card__hint { font-size: .72rem; color: var(--faint); text-align: center; }

/* ==========================================================================
   Work — pinned horizontal gallery
   ========================================================================== */
.work { position: relative; }
.work__pin { position: relative; }
.work__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4.5vh, 56px);
  overflow: hidden; overflow: clip;
  padding-top: calc(var(--nav-h) + 16px);
}
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.work__head .section-title { font-size: clamp(2.4rem, 5.4vw, 5.2rem); }
.work__meta { display: grid; justify-items: end; gap: 10px; min-width: 200px; }
.work__count { font-size: .9rem; color: var(--muted); }
.work__current { color: var(--text); }
.work__progress { width: 200px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.work__progress span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.work__hint { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.work__viewport { position: relative; }
.work__track {
  position: relative; display: flex; align-items: stretch; gap: clamp(18px, 2.6vw, 40px);
  width: max-content;
  padding-inline: max(var(--pad), (100vw - var(--container)) / 2);
  will-change: transform;
}
.project { flex: none; width: clamp(290px, 36vw, 540px); }
.project__card { --radius: 30px; height: 100%; padding: 12px; display: flex; flex-direction: column; cursor: pointer; will-change: transform; transform: perspective(1200px); }
.project__body { display: grid; gap: 10px; padding: 20px 12px 12px; }
.project__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.project__meta span:first-child { color: var(--a2); }
.project__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 2.3vw, 2.2rem); line-height: 1.05; letter-spacing: -.02em; }
.project__desc { color: var(--muted); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project__open {
  position: absolute; top: 24px; right: 24px; z-index: 3;
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); color: #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
  transition: transform .6s var(--ease-spring), background-color .4s, color .4s;
}
.project__open svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project__card:hover .project__open { transform: rotate(45deg) scale(1.08); background-color: #fff; color: #0a0713; }
.project__card { overflow: hidden; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 500; color: var(--text); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }

.work__more { flex: none; display: grid; place-items: center; width: clamp(220px, 22vw, 320px); }
.more-circle {
  --radius: 50%;
  display: grid; place-items: center; align-content: center; gap: 12px;
  width: clamp(190px, 17vw, 250px); aspect-ratio: 1; text-align: center;
  font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; line-height: 1.15;
}
.more-circle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .6s var(--ease-out); }
.more-circle:hover svg { transform: rotate(45deg); }

/* Project art */
.art { position: relative; overflow: hidden; border-radius: 20px; aspect-ratio: 16 / 11; max-height: 40vh; width: 100%; background: #0b0a18; isolation: isolate; }
.art__bg { position: absolute; inset: -6% -14%; transition: scale 1s var(--ease-out); }
.project__card:hover .art__bg { scale: 1.06; }
.art__layer { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; will-change: transform; }
.art__layer--br { place-items: end end; padding: 7%; }
.art__layer--tr { place-items: start end; padding: 7%; }
.art__layer--bl { place-items: end start; padding: 7%; }
.art__layer--r { place-items: center end; padding: 7%; }
.art__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(1.2px 1.2px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.4px 1.4px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 65%, #fff, transparent), radial-gradient(1px 1px at 10% 70%, #fff, transparent), radial-gradient(1.2px 1.2px at 55% 45%, #fff, transparent); opacity: .5; }
.mini-glass {
  background: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 14px;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* Nebula */
.art--nebula .art__bg { background: radial-gradient(55% 75% at 28% 32%, #6d4aff, transparent 62%), radial-gradient(50% 70% at 82% 72%, #00a6ff, transparent 60%), radial-gradient(35% 45% at 62% 8%, #ff4fa3, transparent 70%), #0b0820; }
.nebula-planet, .nebula-ring { grid-area: 1 / 1; }
.nebula-planet { width: 34%; aspect-ratio: 1; border-radius: 50%; margin-right: 22%; background: radial-gradient(circle at 34% 30%, #fff, #c9bbff 12%, #7b5cff 42%, #241468 78%); box-shadow: 0 0 60px rgba(123, 92, 255, .6), inset -16px -18px 36px rgba(0, 0, 0, .45); }
.nebula-ring { width: 58%; aspect-ratio: 3 / 1; margin-right: 22%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); transform: rotate(-16deg); box-shadow: 0 0 20px rgba(140, 200, 255, .4); }
.mini-stats { display: grid; gap: 2px; padding: 12px 14px; width: 46%; min-width: 140px; font-size: .72rem; }
.mini-stats .mono { color: rgba(255, 255, 255, .7); font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.mini-stats strong { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.mini-stats em { font-style: normal; color: #4dffb0; font-weight: 700; }
.mini-stats svg { height: 26px; width: 100%; margin-top: 4px; fill: none; stroke: #4dffb0; stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 4px #4dffb0); }

/* Lumen */
.art--lumen .art__bg { background: radial-gradient(60% 80% at 20% 20%, #ffb36b, transparent 60%), radial-gradient(60% 80% at 85% 85%, #ff5f8f, transparent 60%), radial-gradient(40% 60% at 70% 20%, #ffd86b, transparent 60%), #2a1220; }
.mini-editor { display: grid; gap: 9px; width: 62%; padding: 16px 18px 18px; }
.mini-editor__bar { display: flex; gap: 5px; margin-bottom: 4px; }
.mini-editor__bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.mini-editor > i { display: block; height: 7px; width: var(--w); border-radius: 4px; background: rgba(255, 255, 255, .7); }
.mini-editor > i.is-typing { position: relative; animation: type 3.2s steps(12) infinite; }
.mini-editor > i.is-typing::after { content: ""; position: absolute; right: -6px; top: -3px; width: 2px; height: 13px; background: #fff; animation: blink 1s steps(1) infinite; }
@keyframes type { 0% { width: 0; } 60%, 100% { width: var(--w); } }
@keyframes blink { 50% { opacity: 0; } }
.mini-chip { padding: 9px 14px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }

/* Orbit */
.art--orbit .art__bg { background: radial-gradient(60% 80% at 50% 50%, #00b3a4, transparent 65%), radial-gradient(40% 50% at 15% 15%, #2fd6ff, transparent 70%), #04161a; }
.orbit-sys { position: relative; width: 44%; aspect-ratio: 1; }
.orbit-sys b { position: absolute; inset: 32%; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff, #9ff6ff 15%, #00b3c4 50%, #01404a 85%); box-shadow: 0 0 50px rgba(0, 220, 240, .6); }
.orbit-sys span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); animation: spin 9s linear infinite; }
.orbit-sys span::after { content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #fff; }
.orbit-sys span:nth-child(2) { inset: -18%; animation-duration: 14s; animation-direction: reverse; border-style: dashed; }
.orbit-sys span:nth-child(3) { inset: 14%; animation-duration: 6s; }
.mini-swatches { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; }
.mini-swatches i { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.mini-swatches i:nth-of-type(1) { background: #111; }
.mini-swatches i:nth-of-type(2) { background: #e9e4da; }
.mini-swatches i:nth-of-type(3) { background: #00b3a4; }
.mini-swatches i:nth-of-type(4) { background: #ff6a3d; }

/* Prism */
.art--prism .art__bg { background: radial-gradient(60% 70% at 25% 30%, #c18bff, transparent 60%), radial-gradient(60% 80% at 80% 75%, #6bd8ff, transparent 60%), radial-gradient(40% 50% at 70% 15%, #ffa6d8, transparent 70%), #1a1530; }
.prism-shape { width: 36%; aspect-ratio: 1 / .9; margin-right: 30%; clip-path: polygon(50% 0, 100% 100%, 0 100%); background: conic-gradient(from 200deg at 50% 70%, #ff5f8f, #ffd86b, #6bffb8, #6bd8ff, #b18bff, #ff5f8f); filter: saturate(1.2); opacity: .9; animation: hue 8s linear infinite; }
@keyframes hue { to { filter: hue-rotate(360deg) saturate(1.2); } }
.ds-stack { display: grid; gap: 10px; justify-items: end; }
.ds-btn { padding: 9px 18px; border-radius: 10px; font-size: .78rem; font-weight: 700; }
.ds-toggle { position: relative; width: 52px; height: 28px; border-radius: 999px; }
.ds-toggle i { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; animation: toggle 3s var(--ease-io) infinite; }
@keyframes toggle { 0%, 40% { transform: none; } 50%, 90% { transform: translateX(24px); } }
.ds-input { padding: 9px 16px; width: 150px; border-radius: 10px; font-size: .74rem; color: rgba(255, 255, 255, .75); }

/* Pulse */
.art--pulse .art__bg { background: radial-gradient(60% 80% at 30% 60%, #ff2e63, transparent 62%), radial-gradient(50% 70% at 85% 25%, #8a2be2, transparent 60%), #1a0610; }
.pulse-line { width: 90%; height: 46%; overflow: visible; }
.pulse-line path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.6s var(--ease-io) infinite; filter: drop-shadow(0 0 6px #ff6b9a); vector-effect: non-scaling-stroke; }
@keyframes draw { 0% { stroke-dashoffset: 420; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }
.mini-ring { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; }
.mini-ring svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); transform: rotate(-90deg); fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 6; }
.mini-ring svg .fill { stroke: #fff; stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 60; animation: beat 1s var(--ease-out) infinite; }
@keyframes beat { 0%, 100% { stroke-dashoffset: 60; } 15% { stroke-dashoffset: 45; } }
.mini-ring span { display: grid; justify-items: center; font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; line-height: 1; }
.mini-ring strong { font-family: var(--font-display); font-size: 1.4rem; letter-spacing: 0; }

/* Reduced-motion / no-JS fallback: native horizontal scroll */
.no-js .work__sticky, .work.is-native .work__sticky { position: relative; height: auto; padding-block: 120px; }
.no-js .work__viewport, .work.is-native .work__viewport { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
.work.is-native .project { scroll-snap-align: center; }

/* ==========================================================================
   Skills — bento
   ========================================================================== */
.bento {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(250px, auto);
  grid-template-areas:
    "code code parts parts"
    "code code design motion"
    "orbit orbit perf perf";
}
.tile { --radius: 28px; display: flex; flex-direction: column; gap: 14px; padding: 28px; overflow: hidden; }
.tile p { color: var(--muted); font-size: .96rem; line-height: 1.55; }
.tile__head { display: flex; align-items: center; gap: 14px; }
.tile__head h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 1.7vw, 1.6rem); letter-spacing: -.015em; line-height: 1.1; }
.tile__icon {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px;
  font-size: .95rem; color: var(--text);
  background: linear-gradient(135deg, color-mix(in srgb, var(--a1) 55%, transparent), color-mix(in srgb, var(--a2) 35%, transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 20px -8px var(--a1);
}
.tile--code { grid-area: code; }
.tile--particles { grid-area: parts; position: relative; justify-content: flex-end; min-height: 280px; }
.tile--design { grid-area: design; }
.tile--motion { grid-area: motion; }
.tile--orbit { grid-area: orbit; flex-direction: row; align-items: center; gap: 24px; }
.tile--perf { grid-area: perf; }

.code-window { flex: 1; display: flex; flex-direction: column; min-height: 270px; border-radius: 18px; background: rgba(6, 5, 14, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); overflow: hidden; }
.code-window__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-window__bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-window__bar i:nth-child(2) { background: #febc2e; }
.code-window__bar i:nth-child(3) { background: #28c840; }
.code-window__bar span { margin-left: auto; font-size: .72rem; color: var(--faint); }
.code { margin: 0; padding: 18px 20px; font-size: clamp(.74rem, .9vw, .86rem); line-height: 1.75; white-space: pre-wrap; color: #d9d6ff; }
.code .k { color: #c792ea; } .code .v { color: #82aaff; } .code .p { color: #89ddff; } .code .s { color: #c3e88d; } .code .n { color: #f78c6c; } .code .f { color: #ffcb6b; } .code .c { color: #676e95; font-style: italic; }
.caret { display: inline-block; width: .55em; height: 1.1em; margin-left: 1px; vertical-align: text-bottom; background: var(--a2); animation: blink 1s steps(1) infinite; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li { padding: 7px 13px; border-radius: 999px; font-size: .8rem; font-weight: 500; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .3s, transform .4s var(--ease-spring); }
.chips li:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }

.particles { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; }
.tile__overlay { position: relative; display: grid; gap: 10px; pointer-events: none; }
.hint { display: inline-block; margin-left: 4px; font-size: .74rem; color: var(--a2); }

.specimen { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.specimen__aa { font-family: var(--font-display); font-weight: 600; font-size: 4.2rem; line-height: .8; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.swatches { display: flex; padding-bottom: 6px; }
.swatches i { width: 34px; height: 34px; border-radius: 50%; margin-left: -12px; border: 2px solid rgba(10, 8, 20, .6); transition: margin .6s var(--ease-spring), transform .6s var(--ease-spring); }
.swatches i:nth-child(1) { background: var(--a1); margin-left: 0; }
.swatches i:nth-child(2) { background: var(--a2); }
.swatches i:nth-child(3) { background: var(--a3); }
.swatches i:nth-child(4) { background: #f5f3ff; }
.swatches i:nth-child(5) { background: #14112a; }
.tile--design:hover .swatches i { margin-left: 4px; }
.tile--design:hover .swatches i:nth-child(1) { margin-left: 0; }
.tile--design:hover .swatches i:nth-child(odd) { transform: translateY(-8px); }

.easing { display: grid; gap: 14px; margin-top: auto; }
.easing__graph { width: 100%; height: 70px; overflow: visible; }
.easing__curve { fill: none; stroke: var(--a2); stroke-width: 2; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px var(--a2)); }
.easing__track { position: relative; height: 34px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.easing__ball { position: absolute; top: 4px; left: 4px; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fff, var(--a2) 45%, var(--a1)); box-shadow: 0 0 16px var(--a2); will-change: transform; }
.easing__btns { display: flex; flex-wrap: wrap; gap: 6px; }
.easing__btns button { padding: 6px 12px; border-radius: 999px; font-size: .76rem; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: color .3s, background-color .3s; }
.easing__btns button:hover { color: var(--text); }
.easing__btns button.is-active { color: #0a0713; background: var(--text); }

.tile__text { display: grid; gap: 14px; flex: 1; min-width: 0; }
.orbit { position: relative; flex: none; width: 290px; height: 290px; display: grid; place-items: center; }
.orbit__core {
  position: relative; z-index: 2; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: #0a0713;
  background: radial-gradient(circle at 32% 28%, #fff, var(--a2) 40%, var(--a1));
  box-shadow: 0 0 40px color-mix(in srgb, var(--a2) 70%, transparent), inset 0 2px 0 rgba(255, 255, 255, .6);
}
.orbit__ring { position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .2); animation: spin var(--dur) linear infinite; }
.orbit__ring--outer { animation-direction: reverse; }
.orbit__ring span {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  font-size: .68rem; font-weight: 700;
  background: rgba(20, 16, 40, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 6px 18px -6px rgba(0, 0, 0, .6);
  transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1));
}
.tile--orbit:hover .orbit__ring, .tile--orbit:hover .orbit__ring span { animation-play-state: paused; }
/* keep orbit labels upright while their ring spins */
.orbit__ring span { animation: counter-spin var(--dur) linear infinite; }
.orbit__ring--outer span { animation-direction: reverse; }
@keyframes counter-spin {
  from { transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)) rotate(0deg); }
  to { transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(var(--a) * -1)) rotate(-360deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.gauge { position: relative; display: grid; justify-items: center; gap: 8px; }
.gauge svg { width: 100%; max-width: 92px; aspect-ratio: 1; transform: rotate(-90deg); fill: none; stroke-width: 6; }
.gauge__track { stroke: rgba(255, 255, 255, .08); }
.gauge__bar { stroke: #3ef08f; stroke-linecap: round; stroke-dasharray: 213.63; stroke-dashoffset: 213.63; transition: stroke-dashoffset 2.2s var(--ease-out); filter: drop-shadow(0 0 6px rgba(62, 240, 143, .6)); }
.gauge__num { position: absolute; top: 0; left: 0; right: 0; display: grid; place-items: center; aspect-ratio: 1; max-width: 92px; margin-inline: auto; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: #3ef08f; }
.gauge__label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ==========================================================================
   Experience — timeline
   ========================================================================== */
.timeline { position: relative; }
.timeline__line { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(255, 255, 255, .08); }
.timeline__fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(var(--a1), var(--a2), var(--a3)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 16px var(--a2); }
.tl-item { position: relative; width: 50%; padding-right: 60px; padding-bottom: 56px; }
.tl-item:nth-of-type(even) { margin-left: 50%; padding-right: 0; padding-left: 60px; }
.tl-dot { position: absolute; top: 30px; right: -10px; z-index: 2; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid rgba(255, 255, 255, .25); transition: background-color .5s, border-color .5s, box-shadow .5s, transform .6s var(--ease-spring); }
.tl-item:nth-of-type(even) .tl-dot { right: auto; left: -10px; }
.tl-item.is-active .tl-dot { background: var(--a2); border-color: #fff; transform: scale(1.15); box-shadow: 0 0 0 6px color-mix(in srgb, var(--a2) 25%, transparent), 0 0 30px var(--a2); }
.tl-card { --radius: 26px; display: grid; gap: 10px; padding: 30px; }
.tl-date { font-size: .78rem; color: var(--a2); text-transform: uppercase; letter-spacing: .12em; }
.tl-card h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.1; letter-spacing: -.015em; }
.tl-company { font-weight: 500; color: var(--text); opacity: .85; }
.tl-card p:not(.tl-company) { color: var(--muted); font-size: .96rem; }
.tl-card .tags { margin-top: 6px; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact__title { display: grid; margin: 22px 0 clamp(48px, 7vw, 90px); font-family: var(--font-display); font-weight: 600; font-size: clamp(2.8rem, 8vw, 8.4rem); line-height: .95; letter-spacing: -.04em; word-spacing: .08em; }
.contact__line { display: block; will-change: transform; }
.contact__line:nth-child(2) { padding-left: clamp(0px, 8vw, 140px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact__form { --radius: 32px; display: grid; gap: 18px; padding: clamp(22px, 3.4vw, 40px); }
.contact__form.shake { animation: shake .5s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 26px 18px 10px; border-radius: 16px;
  font: inherit; color: var(--text);
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .12); outline: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .22); }
.field input:focus, .field textarea:focus { border-color: var(--a2); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a2) 18%, transparent); }
.field label { position: absolute; left: 19px; top: 18px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .35s; }
.field :is(input, textarea):focus + label,
.field :is(input, textarea):not(:placeholder-shown) + label { transform: translateY(-10px) scale(.74); color: var(--a2); }
.field.is-invalid :is(input, textarea) { border-color: #ff5f7a; box-shadow: 0 0 0 4px rgba(255, 95, 122, .15); }
.field.is-invalid label { color: #ff8da1; }
.budget legend { margin-bottom: 12px; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.budget__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.budget__opts label { position: relative; }
.budget__opts input { position: absolute; opacity: 0; pointer-events: none; }
.budget__opts span { display: inline-block; padding: 10px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--muted); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); cursor: pointer; transition: color .3s, background-color .3s, box-shadow .3s; }
.budget__opts span:hover { color: var(--text); }
.budget__opts input:checked + span { color: #0a0713; background: var(--text); box-shadow: 0 8px 24px -10px rgba(255, 255, 255, .6); }
.budget__opts input:focus-visible + span { outline: 2px solid var(--a2); outline-offset: 3px; }
.btn--submit { justify-self: start; --h: 62px; padding: 0 2em; }
.btn--submit.is-sending { pointer-events: none; }
.btn--submit.is-sending svg { animation: fly 1s var(--ease-io) forwards; }
@keyframes fly { 40% { transform: translate(-4px, 4px); } 100% { transform: translate(60px, -60px); opacity: 0; } }

.contact__side { display: grid; gap: 16px; }
.contact__note { color: var(--muted); font-size: 1.05rem; max-width: 40ch; }
.email-card { --radius: 26px; display: grid; gap: 6px; padding: 26px; text-align: left; transition: background-color .4s; }
.email-card:hover { background-color: rgba(255, 255, 255, .08); }
.email-card__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.email-card__address { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 2rem); letter-spacing: -.01em; word-break: break-all; }
.email-card__hint { font-size: .74rem; color: var(--a2); }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social { --radius: 20px; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 16px 18px; transition: background-color .4s; }
.social:hover { background-color: rgba(255, 255, 255, .09); }
.social svg { grid-row: span 2; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-spring); }
.social:hover svg { transform: scale(1.15) rotate(-8deg); }
.social span { font-weight: 500; line-height: 1.2; }
.social em { font-style: normal; font-size: .72rem; color: var(--faint); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; padding: clamp(60px, 10vh, 120px) 0 28px; overflow: hidden; overflow: clip; }
.footer::before { content: ""; position: absolute; left: var(--pad); right: var(--pad); top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer__cta { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 500; }
.footer__cta a { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.to-top { --radius: 50%; display: grid; place-items: center; width: 64px; height: 64px; flex: none; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.to-top:hover svg { transform: translateY(-4px); }
.footer__name {
  margin: clamp(30px, 6vh, 70px) 0 clamp(20px, 4vh, 40px);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(5rem, 25.5vw, 26rem); line-height: .78; letter-spacing: -.02em;
  user-select: none; -webkit-user-select: none;
}
.footer__name .chars { display: flex; justify-content: space-between; }
.footer__name .char__in {
  --p: 0;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .28);
  background-image: linear-gradient(180deg, transparent 50%, var(--a1) 50%, var(--a2) 80%, var(--a3));
  background-size: 100% 200%;
  background-position: 0 calc(var(--p) * 100%);
  -webkit-background-clip: text; background-clip: text;
  transform: translate3d(0, 40%, 0); opacity: 0;
  transition: transform 1.4s var(--ease-out), opacity 1s;
  transition-delay: calc(var(--i) * 70ms);
}
.footer__name.is-in .char__in, .no-js .footer__name .char__in { transform: none; opacity: 1; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; font-size: .74rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.footer__egg { color: var(--muted); }

/* ==========================================================================
   Modal
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; transition: visibility 0s .7s; }
.modal.is-open { visibility: visible; pointer-events: auto; transition: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 12, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .6s var(--ease-out); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  --radius: 32px; --blur: 30px;
  position: relative; width: min(920px, 100%); max-height: min(88vh, 940px); max-height: min(88svh, 940px);
  display: flex; overflow: hidden;
  background: linear-gradient(145deg, rgba(30, 26, 56, .78), rgba(14, 12, 28, .82));
  opacity: 0; transform: translateY(80px) scale(.94);
  transition: transform .8s var(--ease-out), opacity .5s;
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 5; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
  transition: background-color .3s;
}
.modal__close:hover { background: rgba(255, 255, 255, .22); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.modal__content { display: grid; gap: 18px; padding: 14px 14px clamp(28px, 4vw, 48px); }
.modal__content > :not(.art) { margin-inline: clamp(14px, 3vw, 36px); }
.modal__content .art { max-height: none; aspect-ratio: 16 / 8; border-radius: 22px; margin-bottom: 12px; }
.cs__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.03em; }
.cs__lead { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--text); opacity: .9; max-width: 52ch; }
.cs__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-block: 10px; }
.cs__meta div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.cs__meta dt { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 4px; }
.cs__meta dd { font-weight: 500; font-size: .95rem; }
.modal__content h4 { margin-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }
.modal__content p { color: var(--muted); }
.cs__list { display: grid; gap: 10px; }
.cs__list li { position: relative; padding-left: 28px; color: var(--muted); }
.cs__list li::before { content: "✦"; position: absolute; left: 0; color: var(--a2); }
.cs__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast {
  --radius: 999px; --blur: 20px;
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 85;
  padding: 14px 22px; font-weight: 500; font-size: .95rem; white-space: nowrap;
  background: linear-gradient(145deg, rgba(40, 34, 72, .75), rgba(20, 16, 40, .8));
  transform: translate(-50%, 160%); opacity: 0; pointer-events: none;
  transition: transform .7s var(--ease-spring), opacity .4s;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* Party mode ✨ */
.is-party .hero__name .char__in { animation: party-bounce .6s var(--ease-io) infinite alternate; animation-delay: calc(var(--i) * 90ms); }
@keyframes party-bounce { to { translate: 0 -10%; } }
.is-party .palette-btn__swatch { animation: spin 1s linear infinite; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "code code" "parts parts" "design motion" "orbit orbit" "perf perf"; }
}

@media (max-width: 900px) {
  :root { --nav-h: 60px; }
  .nav { top: 12px; }
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .nav__bar { padding: 0 8px 0 8px; }

  .hero__tag { display: none; }
  .scroll-cue { display: none; }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .shape { --k: .6; width: calc(var(--size) * var(--k)); height: calc(var(--size) * var(--k)); }
  .shape--pill { height: calc(92px * var(--k)); }

  .about__grid { grid-template-columns: 1fr; }
  .about__card { order: 2; }

  .work__head { flex-direction: column; align-items: flex-start; }
  .work__meta { justify-items: start; }
  .project { width: min(80vw, 440px); }

  .contact__grid { grid-template-columns: 1fr; }

  .timeline__line { left: 10px; }
  .tl-item, .tl-item:nth-of-type(even) { width: 100%; margin-left: 0; padding: 0 0 40px 46px; }
  .tl-dot, .tl-item:nth-of-type(even) .tl-dot { left: 0; right: auto; }
  .is-ready .tl-card[data-reveal="left"], .is-ready .tl-card[data-reveal="right"] { transform: translate3d(0, 48px, 0); }
  .is-ready .tl-card[data-reveal].is-in { transform: none; }
}

@media (max-width: 640px) {
  :root { --blur: 16px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "code" "parts" "design" "motion" "orbit" "perf"; }
  .tile { padding: 22px; }
  .tile--orbit { flex-direction: column; align-items: flex-start; }
  .orbit { width: 270px; height: 270px; align-self: center; transform: scale(.9); }
  .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .form__row { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .cs__meta { grid-template-columns: 1fr; }
  .stat { min-height: 128px; padding: 18px; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .status-pill { font-size: .8rem; }
  .footer__top { flex-direction: row; align-items: center; }
  .footer__bottom { flex-direction: column; }
  .marquee { padding-block: 48px; }
  .marquee__row { padding: 16px 0; }
  .id-card { min-height: 520px; padding: 22px; }
  .toast { white-space: normal; width: max-content; max-width: calc(100vw - 32px); text-align: center; border-radius: 22px; }
}

@media (max-height: 640px) and (min-width: 901px) {
  .art { max-height: 34vh; }
  .project__desc { -webkit-line-clamp: 1; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .grain { animation: none; }
}
