/* ============================================================
   Seemab Ahmad — Senior Portfolio
   Design system + components
   ============================================================ */

:root {
  --bg:        #0b1020;
  --bg-2:      #0e142a;
  --surface:   #141b34;
  --surface-2: #1a2342;
  --line:      rgba(150, 165, 220, 0.12);
  --line-2:    rgba(150, 165, 220, 0.22);

  --text:      #e8ebf7;
  --muted:     #9aa3c7;
  --muted-2:   #6f7aa3;

  --accent:    #7c6cff;
  --accent-2:  #21d4fd;
  --accent-3:  #ff7eb3;
  --grad: linear-gradient(110deg, var(--accent) 0%, #8a7bff 35%, var(--accent-2) 100%);

  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1280px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2:    cubic-bezier(0.65, 0, 0.35, 1);

  --font:      'Inter', system-ui, sans-serif;
  --display:   'Sora', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* Content protection (deterrent): block selection/drag of content,
   but keep form fields and contact details usable/copyable. */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; }
input, textarea, .contact__method-text, .contact__mail, .wcard__visit, .footer a {
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
}

.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 9999; background: var(--bg); display: grid; place-items: center; transition: opacity .6s var(--ease), visibility .6s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; width: min(80vw, 420px); }
.preloader__name { font-family: var(--display); font-weight: 800; letter-spacing: .35em; font-size: clamp(1rem, 4vw, 1.6rem); color: var(--text); margin-bottom: 1.4rem; opacity: 0; animation: fadeIn .8s var(--ease) .1s forwards; }
.preloader__bar { height: 2px; width: 100%; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: var(--grad); }
.preloader__count { margin-top: 1rem; font-family: var(--mono); color: var(--muted); font-size: .85rem; letter-spacing: .1em; }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------- custom cursor ---------- */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 9998; pointer-events: none; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor { width: 7px; height: 7px; background: var(--accent-2); transition: width .25s, height .25s, background .25s; }
.cursor-ring { width: 38px; height: 38px; border: 1px solid var(--line-2); transition: width .3s var(--ease), height .3s var(--ease), border-color .3s, background .3s; }
.cursor-ring.is-hover { width: 64px; height: 64px; border-color: transparent; background: rgba(124,108,255,.12); }
.cursor-ring.is-view { width: 96px; height: 96px; border-color: transparent; background: rgba(33,212,253,.14); }
.cursor-ring.is-view::after { content: 'VIEW'; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--accent-2); }
.cursor-ring.is-play::after { content: '▶'; font-size: 12px; color: var(--accent-2); }
.cursor-ring.is-play { width: 84px; height: 84px; border-color: transparent; background: rgba(33,212,253,.14); }
.cursor-ring.is-drag::after { content: 'DRAG'; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--accent-2); }
.cursor-ring.is-drag { width: 90px; height: 90px; border-color: transparent; background: rgba(124,108,255,.14); }
.cursor-ring::after { display: grid; place-items: center; width: 100%; height: 100%; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ---------- ambient bg ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 800px at 80% -10%, rgba(124,108,255,.10), transparent 60%),
  radial-gradient(1000px 700px at -10% 110%, rgba(33,212,253,.08), transparent 60%),
  var(--bg); }
.ambient__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.ambient__orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; will-change: transform; }
.ambient__orb--1 { width: 480px; height: 480px; background: radial-gradient(circle, rgba(124,108,255,.5), transparent 70%); top: -120px; left: -80px; }
.ambient__orb--2 { width: 560px; height: 560px; background: radial-gradient(circle, rgba(33,212,253,.35), transparent 70%); bottom: -180px; right: -120px; }
.ambient__orb--3 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(255,126,179,.22), transparent 70%); top: 40%; left: 55%; }
.ambient__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 75%); opacity: .5; }
.ambient__noise { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: var(--grad); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 900; display: flex; align-items: center; justify-content: space-between; padding: 1.3rem clamp(1.2rem, 4vw, 3rem); transition: padding .4s var(--ease), background .4s var(--ease), backdrop-filter .4s; }
.nav.is-scrolled { padding-top: .75rem; padding-bottom: .75rem; background: rgba(11,16,32,.7); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__logo { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 700; }
.nav__logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #0b1020; font-weight: 800; font-size: .95rem; box-shadow: 0 8px 24px -8px var(--accent); }
.nav__logo-text { font-size: 1rem; letter-spacing: .02em; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { position: relative; font-size: .92rem; color: var(--muted); transition: color .3s; }
.nav__links a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--grad); transition: width .35s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__links a.is-active { color: var(--text); }
.nav__cta { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: 100px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--text); transition: border-color .3s, background .3s, transform .3s; }
.nav__cta:hover { border-color: transparent; background: var(--surface-2); }
.nav__cta .dot { width: 8px; height: 8px; border-radius: 50%; background: #38e8a0; box-shadow: 0 0 0 0 rgba(56,232,160,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(56,232,160,.5);} 70%{ box-shadow: 0 0 0 8px rgba(56,232,160,0);} 100%{box-shadow:0 0 0 0 rgba(56,232,160,0);} }
.nav__burger { display: none; flex-direction: column; gap: 6px; background: none; border: 0; padding: 8px; }
.nav__burger span { width: 26px; height: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .3s; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- layout ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 4vw, 3rem); }
:where(section[id]), #hero { scroll-margin-top: 92px; }
.section__head { margin-bottom: 3.5rem; max-width: 820px; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.eyebrow b { color: var(--accent); font-weight: 500; }
.eyebrow i { width: 26px; height: 1px; background: var(--accent-2); }
.section__title { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-size: clamp(2rem, 5.5vw, 3.6rem); margin-top: 1rem; }
.section__desc { color: var(--muted); max-width: 46ch; margin-top: 1.4rem; font-size: 1.05rem; }

/* full-bleed alternating band */
.section--band { position: relative; }
.section--band > * { position: relative; z-index: 1; }
.section--band::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: 100vw; background: linear-gradient(180deg, rgba(16,22,46,.7), rgba(11,16,32,.2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 0; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: 100px; font-weight: 500; font-size: .98rem; line-height: 1.1; white-space: nowrap; border: 0; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; overflow: hidden; }
.btn:disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }
.btn--primary { background: var(--grad); color: #0b1020; box-shadow: 0 16px 40px -14px var(--accent); }
.btn--primary svg { transition: transform .35s var(--ease); }
.btn--primary:hover { box-shadow: 0 22px 50px -12px var(--accent); }
.btn--primary:hover svg { transform: translateX(5px); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { background: var(--surface-2); border-color: transparent; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 8rem clamp(1.2rem, 4vw, 3rem) 4rem; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__col--text { display: flex; flex-direction: column; align-items: flex-start; }

.badge { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .95rem; border-radius: 100px; border: 1px solid var(--line-2); background: rgba(20,27,52,.6); font-size: .82rem; color: var(--muted); backdrop-filter: blur(8px); margin-bottom: 1.8rem; }
.badge__pulse { width: 8px; height: 8px; border-radius: 50%; background: #38e8a0; animation: pulse 2s infinite; }

.hero__kicker { display: block; font-family: var(--mono); font-size: .85rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.hero__title { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: .98; font-size: clamp(2.6rem, 7vw, 6rem); }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .word { display: inline-block; transform: translateY(110%); }
.hero.is-in .hero__title .word { animation: wordUp .9s var(--ease) forwards; }
.hero.is-in .hero__title .line:nth-child(2) .word { animation-delay: .08s; }
@keyframes wordUp { to { transform: translateY(0); } }

.hero__lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 50ch; margin-top: 1.8rem; }
.hero__lead strong { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero__logos { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--line); width: 100%; max-width: 520px; }
.hero__logos-label { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); white-space: nowrap; }
.hero__logos-row { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.hero__logos-row img { height: 26px; width: auto; object-fit: contain; filter: grayscale(1) opacity(.7); transition: filter .35s, transform .35s; }
.hero__logos-row img:hover { filter: none; transform: translateY(-3px); }
.hero__logos-row img.t-invert { filter: invert(1) grayscale(1) opacity(.7); }
.hero__logos-row img.t-invert:hover { filter: invert(1) brightness(2); transform: translateY(-3px); }

/* code window */
.hero__col--visual { position: relative; }
.code-window { position: relative; border: 1px solid var(--line-2); border-radius: 16px; background: linear-gradient(180deg, rgba(20,27,52,.92), rgba(14,20,42,.92)); backdrop-filter: blur(10px); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(124,108,255,.06); overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); transition: transform .6s var(--ease); }
.code-window:hover { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
.code-window__bar { display: flex; align-items: center; gap: .5rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: rgba(11,16,32,.5); }
.code-window__bar .dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.code-window__file { margin-left: auto; font-family: var(--mono); font-size: .78rem; color: var(--muted-2); }
.code-window__body { padding: 1.4rem 1.3rem 1.8rem; font-family: var(--mono); font-size: clamp(.78rem, 1.1vw, .92rem); line-height: 1.85; white-space: pre-wrap; word-break: break-word; min-height: 290px; color: var(--text); }
.code-window__body .tok-key { color: #ff7eb3; }
.code-window__body .tok-str { color: #7be0a4; }
.code-window__body .tok-var { color: #21d4fd; }
.code-window__body .tok-fn { color: #c4a8ff; }
.code-window__body .tok-com { color: var(--muted-2); }
.code-window__body .tok-num { color: #ffb86c; }
.code-caret { display: inline-block; width: 9px; height: 1.05em; background: var(--accent-2); vertical-align: text-bottom; margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__floaters { position: absolute; inset: -10% -6%; pointer-events: none; }
.floater { position: absolute; font-family: var(--mono); color: var(--accent); opacity: .35; font-size: 1.6rem; animation: float 6s ease-in-out infinite; }
.floater--1 { top: 0; left: -2%; }
.floater--2 { bottom: 6%; right: -2%; color: var(--accent-2); animation-delay: 1.2s; }
.floater--3 { top: 50%; left: -6%; font-size: 2rem; animation-delay: .6s; }
.floater--4 { top: 8%; right: 8%; color: var(--accent-3); animation-delay: 1.8s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(6deg); } }

.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--accent-2), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--accent-2); animation: scrollDown 1.8s var(--ease) infinite; }
@keyframes scrollDown { 0% { transform: translateY(-100%);} 100% { transform: translateY(250%);} }

/* ---------- marquee ---------- */
.marquee { position: relative; display: flex; flex-direction: column; gap: .9rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; overflow: hidden; background: linear-gradient(180deg, rgba(16,22,46,.75), rgba(11,16,32,.35)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 2.4rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track--rev { animation: marqueeRev 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2.2vw, 1.7rem); color: var(--text); white-space: nowrap; cursor: default; transition: color .3s, transform .3s; }
.marquee__track span:hover { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; transform: translateY(-2px); }
.marquee__track i { color: var(--accent); font-style: normal; font-size: .85rem; opacity: .8; }
.marquee__track--rev i { color: var(--accent-2); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ---------- stats ---------- */
.stats { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 7vw, 6rem) clamp(1.2rem, 4vw, 3rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stats__head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: .6rem; }
.stats__head p { color: var(--muted); font-size: 1rem; max-width: 42ch; }
.stats__head strong { color: var(--text); }
.stat { position: relative; overflow: hidden; padding: 1.9rem 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(20,27,52,.3)); transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.stat::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.stat::after { content: ''; position: absolute; top: -40%; right: -30%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(124,108,255,.16), transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.stat:hover { border-color: var(--line-2); transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(0,0,0,.7); }
.stat:hover::before { transform: scaleX(1); }
.stat:hover::after { opacity: 1; }
.stat__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--accent-2); font-size: 1rem; margin-bottom: 1.1rem; transition: transform .4s var(--ease), color .4s, border-color .4s; }
.stat:hover .stat__icon { transform: translateY(-2px) rotate(-6deg); color: var(--accent); border-color: var(--accent); }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; background: var(--grad); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: statShimmer 6s linear infinite; }
@keyframes statShimmer { to { background-position: 200% center; } }
.stat__bar { height: 4px; margin: 1.05rem 0 .85rem; border-radius: 4px; background: var(--line); overflow: hidden; }
.stat__bar span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--grad); transition: width 1.3s var(--ease) .25s; }
.stat.is-in .stat__bar span { width: var(--fill, 80%); }
.stat__label { color: var(--muted); font-size: .95rem; }

/* ---------- about ---------- */
.about__statement { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 3.6vw, 3rem); line-height: 1.18; letter-spacing: -.02em; max-width: 26ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.about__statement em { font-style: normal; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.about__grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__body p { color: var(--muted); margin-bottom: 1.2rem; font-size: 1.04rem; }
.about__lead { color: var(--text) !important; font-size: clamp(1.15rem, 1.7vw, 1.35rem) !important; line-height: 1.6; font-weight: 400; }
.about__lead strong { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; font-weight: 600; }
.about__body strong { color: var(--text); }
.about__list { margin-top: 2rem; }
.about__list li { display: flex; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--text); font-size: .98rem; align-items: center; transition: padding-left .3s; }
.about__list li:hover { padding-left: .4rem; }
.about__list li span { font-family: var(--mono); color: var(--accent-2); font-size: .8rem; }

/* about profile card */
.about__card { position: sticky; top: 100px; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 1.8rem; background: linear-gradient(180deg, var(--surface), rgba(20,27,52,.4)); box-shadow: 0 40px 90px -60px rgba(124,108,255,.6); transition: transform .5s var(--ease), border-color .4s; }
.about__card:hover { transform: translateY(-4px); }
.about__card-top { display: flex; align-items: center; gap: .9rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.about__avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--grad); color: #0b1020; font-family: var(--display); font-weight: 800; font-size: 1.05rem; flex: 0 0 auto; }
.about__card-top strong { display: block; font-family: var(--display); font-size: 1.05rem; }
.about__card-top > div span { color: var(--muted); font-size: .85rem; }
.about__open { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; color: #5ce6a4; align-self: flex-start; }
.about__open i { width: 7px; height: 7px; border-radius: 50%; background: #38e8a0; animation: pulse 2s infinite; }
.about__facts { margin: 1.3rem 0; display: flex; flex-direction: column; gap: .2rem; }
.about__facts li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.about__facts li:last-child { border-bottom: 0; }
.about__facts span { color: var(--muted); font-size: .88rem; }
.about__facts b { font-family: var(--display); font-weight: 600; font-size: .92rem; }
.about__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.about__chips span { font-family: var(--mono); font-size: .72rem; padding: .3rem .65rem; border-radius: 100px; border: 1px solid var(--line); color: var(--muted); transition: border-color .3s, color .3s, transform .3s; }
.about__chips span:hover { border-color: var(--accent); color: var(--text); transform: translateY(-2px); }

/* ============================================================
   WORK SLIDER
   ============================================================ */
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.4vw, 2rem); }
.wcard--hidden { display: none; }
.wcard--reveal { animation: cardIn .55s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.work__more { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }
.work__more .btn { gap: .7rem; }
.work__more-count { font-family: var(--mono); font-size: .82rem; color: var(--accent-2); }
.work__more-chev { transition: transform .35s var(--ease); }
.work__more.is-done { display: none; }
.wcard { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .4s, box-shadow .5s, transform .5s var(--ease); }
.wcard::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px; background: linear-gradient(130deg, rgba(124,108,255,.6), transparent 40%, transparent 60%, rgba(33,212,253,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .45s; pointer-events: none; }
.wcard:hover { border-color: transparent; box-shadow: 0 44px 100px -56px rgba(124,108,255,.85); transform: translateY(-6px); }
.wcard:hover::after { opacity: 1; }
.wcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #0a0e1c; }
.wcard__poster { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease); }
.wcard__poster--contain { object-fit: contain; padding: .6rem; }
.wcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity .5s; }
.wcard__video--solo { position: static; opacity: 1; }
.wcard:hover .wcard__video { opacity: 1; }
.wcard:hover .wcard__poster { transform: scale(1.06); }
.wcard__shine { position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.10) 50%, transparent 70%); transform: translateX(-120%); transition: transform 1s var(--ease); pointer-events: none; z-index: 2; }
.wcard:hover .wcard__shine { transform: translateX(120%); }
.wcard__info { padding: 1.5rem 1.6rem 1.7rem; }
.wcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.wcard__top h3 { font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 1.8vw, 1.5rem); transition: color .3s; }
.wcard:hover .wcard__top h3 { color: var(--accent-2); }
.wcard__top span { font-family: var(--mono); color: var(--muted-2); font-size: .8rem; }
.wcard__info p { color: var(--muted); margin-top: .6rem; font-size: .95rem; }
.wcard__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.wcard__tags span { font-size: .73rem; font-family: var(--mono); padding: .3rem .7rem; border-radius: 100px; border: 1px solid var(--line); color: var(--muted); transition: border-color .3s, color .3s; }
.wcard:hover .wcard__tags span { border-color: var(--line-2); color: var(--text); }
.wcard__launch { position: absolute; top: .9rem; right: .9rem; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(11,16,32,.55); backdrop-filter: blur(8px); border: 1px solid var(--line-2); color: var(--text); opacity: 0; transform: translateY(-8px) scale(.9); transition: opacity .4s var(--ease), transform .4s var(--ease), background .3s, color .3s; }
.wcard:hover .wcard__launch { opacity: 1; transform: translateY(0) scale(1); }
.wcard__launch:hover { background: var(--grad); color: #0b1020; border-color: transparent; }
.wcard__visit { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; font-family: var(--mono); font-size: .82rem; color: var(--accent-2); transition: gap .3s, color .3s; }
.wcard__visit svg { transition: transform .3s var(--ease); }
.wcard__visit:hover { color: var(--text); }
.wcard__visit:hover svg { transform: translate(2px,-2px); }

/* ---------- services ---------- */
.services__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.service { position: relative; padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .4s, transform .4s, background .4s; }
.service::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx,50%) var(--my,50%), rgba(124,108,255,.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.service:hover { border-color: var(--line-2); transform: translateY(-4px); }
.service:hover::before { opacity: 1; }
.service__icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 1.5rem; color: var(--accent-2); margin-bottom: 1.4rem; }
.service h3 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; margin-bottom: .6rem; }
.service p { color: var(--muted); font-size: .96rem; }
.service__index { position: absolute; top: 1.6rem; right: 1.8rem; font-family: var(--mono); color: var(--muted-2); font-size: .85rem; }

/* ============================================================
   STACK (tech logos)
   ============================================================ */
.stack__groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.stack__group { padding: 1.8rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(20,27,52,.35)); }
.stack__group--wide { grid-column: 1 / -1; border-color: var(--line-2); background: linear-gradient(130deg, rgba(124,108,255,.08), rgba(20,27,52,.5)); }
.stack__group h3 { font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.3rem; }
.techs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .8rem; }
.tech { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem .6rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(11,16,32,.4); transition: transform .35s var(--ease), border-color .35s, background .35s, box-shadow .35s; }
.tech:hover { transform: translateY(-5px); border-color: var(--line-2); background: var(--surface-2); box-shadow: 0 20px 40px -28px var(--accent); }
.tech img { width: 38px; height: 38px; object-fit: contain; filter: grayscale(.15); transition: filter .35s, transform .35s; }
.tech:hover img { filter: none; transform: scale(1.08); }
.tech img.t-invert { filter: invert(1) grayscale(1) brightness(2); }
.tech:hover img.t-invert { filter: invert(1) brightness(2); }
.tech span { font-size: .8rem; color: var(--muted); transition: color .3s; text-align: center; }
.tech:hover span { color: var(--text); }
.tech--glyph .tech__glyph { display: grid; place-items: center; width: 38px; height: 38px; font-size: 1.7rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: transform .35s; }
.tech--glyph:hover .tech__glyph { transform: scale(1.12); }

/* ---------- process ---------- */
.process__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem 1.4rem; }
.process__list li { display: flex; flex-direction: column; gap: 1.1rem; }
.process__num { position: relative; z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 1.25rem; background: var(--surface); border: 1px solid var(--line-2); color: var(--accent-2); transition: transform .4s var(--ease), box-shadow .4s, background .4s, color .4s, border-color .4s; }
.process__list li:hover .process__num { transform: translateY(-3px); background: var(--grad); color: #0b1020; border-color: transparent; box-shadow: 0 16px 34px -16px var(--accent); }
.process__list h3 { font-family: var(--display); font-weight: 600; font-size: 1.25rem; margin-bottom: .5rem; }
.process__list p { color: var(--muted); font-size: .95rem; }
@media (min-width: 981px) {
  .process__list::before { content: ''; position: absolute; top: 29px; left: 7%; right: 7%; height: 1px; z-index: 0; background: repeating-linear-gradient(90deg, var(--line-2) 0 7px, transparent 7px 15px); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact__title { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(2.2rem, 5.5vw, 4rem); margin: 1.2rem 0; }
.contact__desc { color: var(--muted); font-size: 1.08rem; max-width: 40ch; }
.contact__mail { display: inline-block; margin: 1.6rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.2rem, 3vw, 1.9rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.contact__mail::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--grad); transition: width .4s var(--ease); }
.contact__mail:hover::after { width: 100%; }
.contact__points { display: flex; flex-direction: column; gap: .8rem; margin-top: 2rem; }
.contact__points li { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .96rem; }
.contact__points i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(33,212,253,.12); color: var(--accent-2); font-style: normal; font-size: .72rem; }

/* contact methods */
.contact__methods { display: flex; flex-direction: column; gap: .8rem; margin: 1.8rem 0 .5rem; }
.contact__method { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(11,16,32,.4); transition: border-color .3s, background .3s, transform .3s; }
.contact__method:hover { border-color: var(--line-2); background: var(--surface-2); transform: translateX(4px); }
.contact__method-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--accent-2); }
.contact__method-icon--wa { color: #25d366; }
.contact__method-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.contact__method-text small { color: var(--muted-2); font-size: .74rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.contact__method-text b { font-family: var(--display); font-weight: 600; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; }

.contact__form { padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), rgba(20,27,52,.35)); display: flex; flex-direction: column; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .82rem; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.field input, .field textarea { width: 100%; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(11,16,32,.6); color: var(--text); font-family: var(--font); font-size: .96rem; transition: border-color .3s, box-shadow .3s, background .3s; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,108,255,.18); background: rgba(11,16,32,.85); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #ff5f6e; box-shadow: 0 0 0 3px rgba(255,95,110,.15); }

/* custom select */
.select { position: relative; }
.select__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(11,16,32,.6); color: var(--text); font-family: var(--font); font-size: .96rem; cursor: pointer; text-align: left; transition: border-color .3s, box-shadow .3s, background .3s; }
.select__btn:hover { border-color: var(--accent); }
.select.is-open .select__btn { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124,108,255,.18); background: rgba(11,16,32,.85); }
.select__chev { color: var(--accent-2); flex-shrink: 0; transition: transform .35s var(--ease); }
.select.is-open .select__chev { transform: rotate(180deg); }
.select__list { position: absolute; top: calc(100% + .5rem); left: 0; right: 0; z-index: 40; margin: 0; padding: .4rem; list-style: none; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(15,21,42,.98); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -20px rgba(0,0,0,.85); opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top; transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s; }
.select.is-open .select__list { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.select__opt { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border-radius: calc(var(--radius-sm) - 4px); color: var(--muted); font-size: .94rem; cursor: pointer; transition: background .2s, color .2s; }
.select__opt:hover { background: rgba(124,108,255,.1); color: var(--text); }
.select__dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-2); flex-shrink: 0; transition: background .25s, border-color .25s, box-shadow .25s; }
.select__opt.is-selected { color: var(--text); }
.select__opt.is-selected .select__dot { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 0 8px rgba(33,212,253,.6); }
.field__error { color: #ff8a95; font-size: .76rem; min-height: 0; }
.contact__submit { justify-content: center; margin-top: .3rem; }
.contact__note { font-size: .9rem; color: var(--muted); min-height: 1.2em; }
.contact__note.is-ok { color: #5ce6a4; }
.contact__note.is-err { color: #ff8a95; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: clamp(3rem,6vw,5rem) clamp(1.2rem,4vw,3rem) 2rem; overflow: hidden; background: linear-gradient(180deg, transparent, rgba(14,20,42,.5)); }
.footer__main { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer__brand p { color: var(--muted); font-size: .95rem; margin: 1.2rem 0; max-width: 34ch; }
.footer__status { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--text); padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 100px; }
.footer__status i { width: 8px; height: 8px; border-radius: 50%; background: #38e8a0; animation: pulse 2s infinite; }
.footer__col h3 { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 1.1rem; }
.footer__col a { display: block; color: var(--muted); font-size: .94rem; padding: .35rem 0; transition: color .3s, padding-left .3s; }
.footer__col a:hover { color: var(--text); padding-left: .35rem; }
.footer__big { font-family: var(--display); font-weight: 800; text-align: center; letter-spacing: .04em; font-size: clamp(2.2rem, 14vw, 12rem); line-height: .9; margin: 2rem 0 0; background: linear-gradient(180deg, rgba(124,108,255,.2), rgba(124,108,255,0)); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; }
.footer__row { max-width: var(--maxw); margin: 1rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .88rem; }
.footer__top { color: var(--text); }

/* ---------- floating WhatsApp ---------- */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 950; display: inline-flex; align-items: center; gap: 0; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(145deg, #25d366, #128c4a); color: #fff; box-shadow: 0 14px 34px -10px rgba(37,211,102,.7); overflow: hidden; transition: width .45s var(--ease), border-radius .45s var(--ease), box-shadow .35s, transform .35s; }
.wa-float svg { flex: 0 0 60px; width: 60px; height: 60px; padding: 15px; }
.wa-float__tip { white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: .95rem; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; padding-right: 0; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37,211,102,.55); animation: waPulse 2.4s var(--ease) infinite; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0);} }
@media (hover: hover) {
  .wa-float:hover { width: 188px; border-radius: 100px; transform: translateY(-2px); }
  .wa-float:hover .wa-float__tip { opacity: 1; transform: translateX(0); padding-right: 20px; }
  .wa-float:hover::after { animation: none; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::after { animation: none; } }

/* ---------- reveal animations ---------- */
.reveal-up { opacity: 0; transform: translateY(38px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-up.is-in { opacity: 1; transform: none; transition-delay: var(--d, 0s); }
/* Above-the-fold hero: keep opacity 1 so LCP paints immediately (transform-only entrance) */
.hero .reveal-up { opacity: 1; transform: translateY(24px); transition: transform .8s var(--ease); }
.hero .reveal-up.is-in { transform: none; transition-delay: var(--d, 0s); }
.reveal-lines { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal-lines.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-lines { opacity: 1 !important; transform: none !important; }
  .hero__title .word { transform: none !important; animation: none !important; }
  .marquee__track, .ambient__orb, .floater { animation: none !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero__col--visual { order: 2; max-width: 560px; }
  .code-window { transform: none; }
}
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__card { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stack__groups { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .process__list { grid-template-columns: repeat(2, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; gap: 1.4rem; position: fixed; inset: 64px 0 auto 0; padding: 2rem clamp(1.2rem,4vw,3rem) 2.5rem; background: rgba(11,16,32,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a { font-size: 1.4rem; font-family: var(--display); color: var(--text); }
  .process__list { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .hero__mini { gap: 1.6rem; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__main { grid-template-columns: 1fr; }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; gap: .8rem; }
  .hero__actions .btn { width: 100%; flex: none; justify-content: center; }
  .techs { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
}
