/* ===================================================================
   Abrar Ali — Portfolio
   Obsidian / molten-gold visual system over a live WebGL stage.
   =================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --void: #04040a;
  --ink: #08080f;
  --ink-2: #0d0d17;
  --line: rgba(255, 255, 255, .085);
  --line-soft: rgba(255, 255, 255, .045);
  --line-hot: rgba(232, 180, 92, .30);

  --text: #edeaf3;
  --text-2: #a8a5bb;
  --text-3: #6e6b82;

  --gold: #e8b45c;
  --gold-hot: #ffdca0;
  --gold-deep: #b8863a;
  --cyan: #3fe0d0;
  --violet: #8f6cff;
  --rose: #ff7ac0;

  --glass: rgba(255, 255, 255, .028);
  --glass-2: rgba(255, 255, 255, .05);

  --grad-text: linear-gradient(100deg, var(--gold-hot) 0%, var(--gold) 34%, var(--cyan) 78%);
  --grad-line: linear-gradient(90deg, transparent, var(--gold), transparent);

  --font-display: 'Syne', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;

  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1320px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --t: .5s var(--ease);

  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  min-height: 100vh;
}

body.is-locked { overflow: hidden; }

/* height:auto neutralises the presentational height attribute so
   aspect-ratio is free to size the box. */
img, svg, iframe, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

::selection { background: var(--gold); color: #16120a; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 999;
  padding: 10px 18px; background: var(--gold); color: #16120a;
  border-radius: 999px; font-weight: 600; transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus-visible { transform: none; }

/* ---------- 3. Stage (WebGL + overlays) ---------- */
#stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#gl {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.6s ease .2s;
}
#gl.is-ready { opacity: 1; }

/* Fallback wash when WebGL is unavailable. */
.stage-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 72% 24%, rgba(232, 180, 92, .16), transparent 70%),
    radial-gradient(55% 45% at 18% 78%, rgba(143, 108, 255, .16), transparent 70%),
    radial-gradient(40% 40% at 50% 50%, rgba(63, 224, 208, .07), transparent 70%),
    var(--void);
  opacity: 0;
}
html.no-webgl .stage-fallback { opacity: 1; }

.grain {
  position: fixed; inset: -8%;
  z-index: 1;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 6s steps(6) infinite;
  mix-blend-mode: overlay;
}
html.webgl-on .grain { display: none; }
@keyframes grainShift {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -4%); } 60% { transform: translate(-2%, -3%); }
  80% { transform: translate(4%, 2%); } 100% { transform: translate(0, 0); }
}

/* ---------- 4. Scroll shell ---------- */
#viewport { position: relative; z-index: 2; }
#scroll-content { will-change: transform; }
html.smooth-scroll #viewport {
  position: fixed; inset: 0;
  overflow: hidden;
}
html.smooth-scroll #scroll-content { position: absolute; inset: 0 0 auto 0; }

/* ---------- 5. Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 500;
  background: var(--void);
  display: grid; place-items: center;
  transition: opacity .8s var(--ease), visibility .8s;
}
#preloader.is-done { opacity: 0; visibility: hidden; }

.pre-inner { width: min(440px, 78vw); text-align: center; }

.pre-mark {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.pre-sub {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pre-bar {
  margin-top: 30px;
  height: 2px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
  border-radius: 2px;
}
.pre-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hot), var(--cyan));
  transition: width .35s var(--ease);
}
.pre-pct {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

/* ---------- 6. Cursor ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400; pointer-events: none;
  opacity: 0; transition: opacity .35s ease;
}
html.cursor-live .cursor, html.cursor-live .cursor-ring { opacity: 1; }
.cursor {
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--gold-hot);
  mix-blend-mode: screen;
}
.cursor-ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(232, 180, 92, .45);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: width .3s var(--ease), height .3s var(--ease),
              margin .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease);
}
.cursor-ring span {
  font-family: var(--font-mono);
  font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
  color: #16120a; opacity: 0; transition: opacity .25s;
}
.cursor-ring.is-active {
  width: 74px; height: 74px; margin: -37px 0 0 -37px;
  background: var(--gold); border-color: transparent;
}
.cursor-ring.is-active span { opacity: 1; }
.cursor-ring.is-link { width: 60px; height: 60px; margin: -30px 0 0 -30px; border-color: var(--gold); }
html.no-cursor .cursor, html.no-cursor .cursor-ring { display: none; }

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  transition: background-color .5s var(--ease), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(6, 6, 12, .72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.site-header.is-hidden { transform: translateY(-100%); transition: transform .45s var(--ease); }
.site-header { transition: transform .45s var(--ease), background-color .5s var(--ease), border-color .5s; }

.header-inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.brand-glyph {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-hot), var(--gold-deep));
  color: #16120a; font-size: 1.05rem; line-height: 1;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px rgba(232, 180, 92, .22);
}
.brand-name { font-size: 1.02rem; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--gold); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  padding: 8px 13px;
  font-size: .82rem; font-weight: 500;
  color: var(--text-2);
  border-radius: 999px;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav a::after {
  content: ''; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.is-active { color: var(--gold); background: rgba(232, 180, 92, .09); }
.nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- 8. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: .84rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .35s;
  will-change: transform;
}
.btn i, .btn svg { position: relative; z-index: 1; transition: transform .35s var(--ease); }
.btn span { position: relative; z-index: 1; }

.btn-primary { background: linear-gradient(120deg, var(--gold-hot), var(--gold) 55%, var(--gold-deep)); color: #17120a; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, #fff, var(--gold-hot));
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(232, 180, 92, .3); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover i { transform: translateX(3px); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(120deg, rgba(232, 180, 92, .16), rgba(63, 224, 208, .12));
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn-ghost:hover { border-color: var(--line-hot); }
.btn-ghost:hover::after { opacity: 1; }

.btn-sm { padding: 10px 18px; font-size: .78rem; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--text-2);
  background: rgba(255, 255, 255, .02);
  transition: color .3s, border-color .3s, background-color .3s, transform .3s var(--ease);
}
.icon-btn:hover { color: var(--gold); border-color: var(--line-hot); background: rgba(232, 180, 92, .08); }

/* ---------- 9. Mobile nav ---------- */
.burger {
  display: none; width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center;
}
.burger span {
  display: block; width: 20px; height: 1.5px; background: var(--text);
  border-radius: 2px; transition: transform .4s var(--ease), opacity .3s;
}
.burger span + span { margin-top: 5px; }
.burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(4, 4, 10, .93);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--header-h) var(--pad) var(--pad);
  clip-path: circle(0% at calc(100% - 44px) 38px);
  transition: clip-path .7s var(--ease);
  pointer-events: none;
}
.mobile-nav.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); pointer-events: auto; }
.mobile-nav ul { display: flex; flex-direction: column; gap: 2px; }
.mobile-nav ul a {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 7vw, 2.4rem);
  letter-spacing: -.03em;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.mobile-nav.is-open ul a { opacity: 1; transform: none; }
.mobile-nav ul a small { font-family: var(--font-mono); font-size: .62rem; color: var(--gold); }
.mobile-nav ul a:hover { color: var(--gold); }
.mobile-nav-foot { margin-top: 32px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 10. Progress + section HUD ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 210;
  width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-hot), var(--cyan));
}

.hud {
  position: fixed; right: 26px; top: 50%; transform: translateY(-50%);
  z-index: 150;
  display: flex; flex-direction: column; gap: 14px;
  align-items: flex-end;
}
.hud a { display: flex; align-items: center; gap: 10px; }
.hud .hud-label {
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-3);
  opacity: 0; transform: translateX(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), color .35s;
}
.hud .hud-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: background-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.hud a:hover .hud-label { opacity: 1; transform: none; }
.hud a.is-active .hud-label { opacity: 1; transform: none; color: var(--gold); }
.hud a.is-active .hud-dot {
  background: var(--gold); transform: scale(1.5);
  box-shadow: 0 0 0 4px rgba(232, 180, 92, .14);
}

/* ---------- 11. Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.section { position: relative; padding: clamp(90px, 12vh, 150px) 0; }
.section > .wrap { position: relative; z-index: 2; }

/* Localised scrims keep copy legible over the live 3D stage. */
.scrim-left::before, .scrim-right::before, .scrim-center::before {
  content: ''; position: absolute; inset: -8% -10%; z-index: 1; pointer-events: none;
}
.scrim-left::before { background: radial-gradient(75% 60% at 22% 50%, rgba(4, 4, 10, .90), rgba(4, 4, 10, .55) 45%, transparent 78%); }
.scrim-right::before { background: radial-gradient(75% 60% at 78% 50%, rgba(4, 4, 10, .90), rgba(4, 4, 10, .55) 45%, transparent 78%); }
.scrim-center::before { background: radial-gradient(72% 62% at 50% 50%, rgba(4, 4, 10, .88), rgba(4, 4, 10, .58) 48%, transparent 82%); }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head.is-center { text-align: center; }
.sec-head.is-center .eyebrow { justify-content: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: .66rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow .num { color: var(--text-3); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -.035em; }

.display {
  font-size: clamp(2.1rem, 5.2vw, 4.85rem);
  font-weight: 800;
  line-height: .96;
}
.h-section {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -.04em;
}
.h-card { font-size: 1.12rem; letter-spacing: -.02em; }

.lead { font-size: clamp(1rem, 1.35vw, 1.14rem); color: var(--text-2); max-width: 56ch; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }

.grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, .45);
}
.dot { color: var(--gold); }

/* ---------- 12. Glass surface ---------- */
.glass {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-radius: var(--r);
  overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .03) 42%, rgba(232, 180, 92, .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;
  pointer-events: none;
}

/* Cursor-tracked spotlight; --mx/--my are written by JS. */
.spot { --mx: 50%; --my: 50%; }
.spot::after {
  content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx) var(--my), rgba(232, 180, 92, .13), transparent 62%);
  opacity: 0; transition: opacity .4s var(--ease);
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }
.spot > * { position: relative; z-index: 2; }

/* ---------- 13. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 24px) 0 22px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(4, 4, 10, .93) 0%, rgba(4, 4, 10, .74) 34%, rgba(4, 4, 10, .12) 62%, transparent 80%);
}
.hero > .wrap { position: relative; z-index: 2; }

.hero-copy { max-width: min(56rem, 100%); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-2);
}
.pill b { color: var(--text); font-weight: 500; }
.blip {
  width: 7px; height: 7px; border-radius: 50%; background: #46e08a;
  box-shadow: 0 0 0 0 rgba(70, 224, 138, .6);
  animation: blip 2.4s infinite;
}
@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(70, 224, 138, .55); }
  70% { box-shadow: 0 0 0 9px rgba(70, 224, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(70, 224, 138, 0); }
}

.hero-title { margin: 20px 0 0; }
.hero-title .row { display: block; overflow: hidden; }
.hero-title .row > span { display: block; }

.hero-lead { margin-top: 22px; }

.hero-meta {
  margin-top: 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .74rem; color: var(--text-2);
}
.hero-meta .key { color: var(--text-3); letter-spacing: .16em; text-transform: uppercase; font-size: .62rem; }
.rotator { position: relative; display: inline-block; color: var(--gold); min-width: 21ch; }
.rotator::after { content: '_'; animation: caret 1.05s steps(2) infinite; color: var(--gold); }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-cta { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-chip {
  margin-top: 30px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 20px 10px 10px;
  border-radius: 999px;
}
.hero-chip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 18%; }
.hero-chip .who { line-height: 1.3; }
.hero-chip .who strong { display: block; font-size: .9rem; letter-spacing: -.01em; }
.hero-chip .who span { font-family: var(--font-mono); font-size: .64rem; color: var(--text-3); letter-spacing: .1em; text-transform: uppercase; }

.hero-foot {
  position: relative; z-index: 2;
  margin-top: auto;
  padding-top: 28px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
}

.scroll-cue { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.scroll-cue .rail { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue .rail::after {
  content: ''; position: absolute; inset: 0; background: var(--gold-hot);
  animation: railRun 2.2s var(--ease-io) infinite;
}
@keyframes railRun { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

.hero-stats { display: flex; gap: clamp(20px, 3vw, 42px); }
.hero-stats div { text-align: right; }
.hero-stats b {
  display: block;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  letter-spacing: -.03em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats span { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

/* ---------- 14. Marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
  background: rgba(4, 4, 10, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track > * {
  display: inline-flex; align-items: center; gap: 16px;
  padding-right: 32px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-2); white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-size: .5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 15. About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
}

.about-figure { position: relative; }
.about-figure .frame {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.06); }
.about-figure .frame::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(4, 4, 10, .82));
}
.about-figure .tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--text-2);
}
.exp-badge {
  position: absolute; right: -14px; bottom: 34px; z-index: 4;
  padding: 18px 22px; border-radius: var(--r);
  text-align: center;
}
.exp-badge b {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: 2.1rem; line-height: 1; letter-spacing: -.04em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.exp-badge span { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

/* With WebGL up, the frame becomes a window onto the 3D particle portrait;
   the photo stays in the DOM as the fallback and for search engines. */
html.webgl-on .about-figure .frame {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .022), transparent 62%);
}
/* We removed the 'img' selector here so the profile image always shows */
html.webgl-on .about-figure .frame::after { opacity: 0; }

.about-body p + p { margin-top: 18px; }
.about-facts {
  margin-top: 34px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); overflow: hidden;
}
.about-facts div { background: rgba(8, 8, 15, .55); padding: 16px 18px; }
.about-facts dt { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.about-facts dd { margin-top: 5px; font-size: .88rem; color: var(--text); word-break: break-word; }
.about-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 16. Impact ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.stat {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3.4vw, 44px) clamp(18px, 2.4vw, 30px);
  background: rgba(6, 6, 13, .5);
  overflow: hidden;
  transition: background-color .45s var(--ease);
}
.stat::before {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.stat.is-in::before { transform: scaleX(1); }
.stat:hover { background: rgba(232, 180, 92, .05); }
.stat i { font-size: 1.15rem; color: var(--gold); }
.stat b {
  display: block; margin-top: 16px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.9rem);
  line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }

/* ---------- 17. Work / showcase ---------- */
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

.showcase { position: relative; margin-top: 22px; }
.showcase-canvas {
  width: 100%;
  height: clamp(340px, 52vh, 520px);
  touch-action: pan-y;
  cursor: grab;
}
.showcase-canvas.is-grabbing { cursor: grabbing; }

.showcase-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px; align-items: flex-end;
  margin-top: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.showcase-meta .idx { font-family: var(--font-mono); font-size: .68rem; color: var(--gold); letter-spacing: .16em; }
.showcase-meta h3 { margin-top: 10px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.showcase-meta p { margin-top: 8px; color: var(--text-2); font-size: .94rem; max-width: 48ch; }
.showcase-tags { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.showcase-tags span {
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2);
}
.showcase-controls { display: flex; align-items: center; gap: 10px; }
.showcase-count { font-family: var(--font-mono); font-size: .72rem; color: var(--text-3); font-variant-numeric: tabular-nums; }

.showcase-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-3);
  pointer-events: none;
  transition: opacity .4s;
}
.showcase.is-touched .showcase-hint { opacity: 0; }

/* DOM grid: the source of truth, and the fallback when WebGL is off. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin-top: 26px;
}
html.showcase-on .work-grid { display: none; }

.work-card { position: relative; border-radius: var(--r); overflow: hidden; display: block; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease), filter .6s; filter: saturate(.85) brightness(.78); }
.work-card:hover img { transform: scale(1.06); filter: saturate(1) brightness(.95); }
.work-card-body {
  position: absolute; inset: auto 0 0 0; z-index: 2; padding: 20px;
  background: linear-gradient(transparent, rgba(4, 4, 10, .94));
}
.work-card-body h3 { font-size: 1.02rem; }
.work-card-body p { margin-top: 4px; font-size: .8rem; color: var(--text-2); }

/* ---------- 18. Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.svc {
  padding: 30px 28px 32px;
  border-radius: var(--r);
  min-height: 100%;
  transition: transform .5s var(--ease);
}
.svc:hover { transform: translateY(-5px); }
.svc .ico {
  width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center;
  font-size: 1.2rem; color: var(--gold);
  background: linear-gradient(140deg, rgba(232, 180, 92, .16), rgba(143, 108, 255, .10));
  border: 1px solid rgba(232, 180, 92, .18);
}
.svc h3 { margin-top: 22px; }
.svc p { margin-top: 12px; font-size: .89rem; color: var(--text-2); }
.svc .stack {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em; color: var(--text-3);
}

/* ---------- 19. Process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.step { background: rgba(7, 7, 14, .6); padding: 30px 26px 34px; transition: background-color .4s; }
.step:hover { background: rgba(232, 180, 92, .045); }
.step .n { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .2em; color: var(--gold); }
.step h3 { margin-top: 16px; font-size: 1.05rem; }
.step p { margin-top: 10px; font-size: .86rem; color: var(--text-2); }

/* ---------- 20. Packages ---------- */
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; align-items: start; }
.pkg { padding: 32px 30px 34px; border-radius: var(--r-lg); display: flex; flex-direction: column; height: 100%; }
.pkg-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pkg-kind { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.pkg-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(232, 180, 92, .10); border: 1px solid rgba(232, 180, 92, .18); color: var(--gold); }
.pkg h3 { margin-top: 22px; font-size: 1.42rem; }
.pkg-price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.pkg-price .from { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.pkg-price .amt {
  font-family: var(--font-display); font-weight: 800; font-size: 2.5rem; letter-spacing: -.045em; line-height: 1;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pkg-desc { margin-top: 16px; font-size: .88rem; color: var(--text-2); }
.pkg-list { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg-list li { display: flex; gap: 10px; font-size: .84rem; color: var(--text-2); line-height: 1.5; }
.pkg-list i { color: var(--gold); font-size: .82rem; margin-top: .28em; flex-shrink: 0; }
.pkg-actions { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.pkg-actions .btn { justify-content: center; width: 100%; }

.pkg-featured {
  border-radius: var(--r-lg);
  box-shadow: 0 30px 90px rgba(232, 180, 92, .10);
}
.pkg-featured::before {
  background: linear-gradient(150deg, var(--gold-hot), rgba(232, 180, 92, .25) 45%, rgba(63, 224, 208, .45));
  padding: 1.4px;
}
.pkg-flag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: linear-gradient(120deg, var(--gold-hot), var(--gold));
  color: #17120a; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
}
.btn-wa { background: #1f9d5a; color: #fff; }
.btn-wa:hover { box-shadow: 0 14px 36px rgba(31, 157, 90, .32); }

.pkg-note {
  margin-top: 34px; padding: 18px 22px; border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02);
  font-size: .86rem; color: var(--text-2);
  display: flex; gap: 12px; align-items: flex-start;
}
.pkg-note i { color: var(--gold); margin-top: .2em; }
.pkg-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 21. Testimonials ---------- */
.reviews { position: relative; }
.reviews-viewport { overflow: hidden; }
.reviews-track { display: flex; gap: 18px; transition: transform .8s var(--ease); will-change: transform; }
.review {
  flex: 0 0 min(420px, 84vw);
  padding: 30px 28px;
  border-radius: var(--r);
  display: flex; flex-direction: column;
}
.review .stars { color: var(--gold); letter-spacing: .18em; font-size: .82rem; }
.review blockquote { margin-top: 16px; font-size: .92rem; color: var(--text-2); line-height: 1.7; flex: 1; }
.review .who { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 13px; }
.review .av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: #12100c; flex-shrink: 0;
}
.review .who h4 { font-size: .92rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.review .who span { font-family: var(--font-mono); font-size: .6rem; color: var(--text-3); letter-spacing: .06em; }
.reviews-nav { margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.reviews-bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.reviews-bar span { position: absolute; inset: 0 auto 0 0; background: var(--gold); transition: width .6s var(--ease), transform .6s var(--ease); }

/* ---------- 22. Resume ---------- */
.resume-frame { border-radius: var(--r); overflow: hidden; height: clamp(420px, 76vh, 820px); }
.resume-frame iframe { width: 100%; height: 100%; border: 0; background: #12121a; }
.resume-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }

/* ---------- 23. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 70px); align-items: start; }
.contact-lines { margin-top: 34px; display: flex; flex-direction: column; gap: 10px; }
.contact-line {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .02);
  transition: border-color .35s, background-color .35s, transform .35s var(--ease);
}
.contact-line:hover { border-color: var(--line-hot); background: rgba(232, 180, 92, .05); transform: translateX(4px); }
.contact-line i { color: var(--gold); font-size: 1.05rem; }
.contact-line .k { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); display: block; }
.contact-line .v { font-size: .92rem; }
.contact-socials { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }

.map-frame { border-radius: var(--r); overflow: hidden; height: clamp(280px, 42vh, 420px); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.86) hue-rotate(180deg); }

.cta-band {
  margin-top: clamp(60px, 8vw, 100px);
  padding: clamp(38px, 6vw, 68px);
  border-radius: var(--r-lg);
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.9rem, 5vw, 3.4rem); }
.cta-band .btns { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 24. Footer ---------- */
.site-footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-soft);
  background: rgba(4, 4, 10, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: clamp(46px, 6vw, 72px) 0 30px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-grid h4 { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); font-weight: 400; }
.footer-links { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .88rem; color: var(--text-2); transition: color .3s, transform .3s var(--ease); display: inline-block; }
.footer-links a:hover { color: var(--gold); transform: translateX(4px); }
.footer-brand p { margin-top: 16px; font-size: .88rem; color: var(--text-2); max-width: 34ch; }
.footer-socials { margin-top: 20px; display: flex; gap: 9px; }
.footer-bottom {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .08em; color: var(--text-3);
}

/* ---------- 25. WhatsApp float + back to top ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 180;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 20px 13px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c4a);
  color: #fff; font-size: .84rem; font-weight: 600;
  box-shadow: 0 16px 42px rgba(18, 140, 74, .34);
  transform: translateY(120%); opacity: 0;
  transition: transform .6s var(--ease), opacity .5s, box-shadow .35s;
}
.wa-float.is-in { transform: none; opacity: 1; }
.wa-float:hover { box-shadow: 0 20px 54px rgba(37, 211, 102, .45); }
.wa-float svg { width: 20px; height: 20px; }
.wa-float::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid rgba(37, 211, 102, .5);
  animation: waPulse 2.6s var(--ease-io) infinite;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: .8; }
  70%, 100% { transform: scale(1.32); opacity: 0; }
}

.to-top {
  position: fixed; left: 22px; bottom: 22px; z-index: 180;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text-2);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .4s var(--ease), color .3s, border-color .3s;
}
.to-top.is-in { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--gold); border-color: var(--line-hot); }

/* ---------- 26. Reveal system ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal='fade'] { transform: none; }
[data-reveal='left'] { transform: translateX(-32px); }
[data-reveal='right'] { transform: translateX(32px); }
[data-reveal].is-in { transform: none; }

.line-mask { display: block; overflow: hidden; }
.line-mask > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1.05s var(--ease);
}
.is-in .line-mask > span, .line-mask.is-in > span { transform: none; }

.char { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .8s var(--ease), opacity .5s; }
.is-in .char { transform: none; opacity: 1; }

/* ---------- 27. Responsive ---------- */
@media (max-width: 1100px) {
  .hud { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-figure { max-width: 460px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .burger { display: flex; }
  .header-actions .btn { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(4, 4, 10, .82) 0%, rgba(4, 4, 10, .58) 45%, rgba(4, 4, 10, .92) 100%); }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero-stats { width: 100%; justify-content: space-between; }
  .hero-stats div { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .wa-float { padding: 13px; }
  .wa-float span { display: none; }
  .to-top { display: none; }
  .showcase-meta { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-chip { width: 100%; }
}

@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- 28. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .line-mask > span, .char { transform: none !important; opacity: 1 !important; }
  .marquee-track { animation: none; }
}
