/* =====================================================================
   julianmp.info — Personal Portfolio
   main.css · Dark cinematic + neon
   ===================================================================== */

/* -- Tokens ---------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-0: #05060a;
  --bg-1: #0a0d18;
  --bg-2: #0f1428;
  --bg-elev: #131a33;

  /* Neon palette */
  --neon-cyan: #00e6ff;
  --neon-violet: #a855f7;
  --neon-magenta: #ff2bd6;
  --neon-blue: #4d7cff;
  --neon-yellow: #ffe500;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #6d28ff 0%, #3b82f6 100%);
  --grad-neon: linear-gradient(135deg, #00e6ff 0%, #a855f7 50%, #ff2bd6 100%);
  --grad-card: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  --grad-card-strong: linear-gradient(145deg, rgba(168,85,247,.18), rgba(0,230,255,.06));

  /* Text */
  --text: #ffffff;
  --text-soft: rgba(255,255,255,.72);
  --text-mute: rgba(255,255,255,.5);
  --text-faint: rgba(255,255,255,.35);

  /* Borders */
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.14);
  --border-neon: rgba(0,230,255,.25);

  /* Shadows */
  --shadow-glow-cyan: 0 0 60px rgba(0,230,255,.25);
  --shadow-glow-violet: 0 0 80px rgba(168,85,247,.35);
  --shadow-card: 0 30px 80px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.1);

  /* Layout */
  --container: 1240px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 999px;

  /* Easings */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* -- Global background canvas --------------------------------------- */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(168,85,247,.22), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(0,230,255,.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 70%, rgba(255,43,214,.10), transparent 65%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 60%, var(--bg-0) 100%);
}

.bg-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 80%);
}

.bg-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: .55;
  mix-blend-mode: overlay;
}

/* Animated aurora blobs */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.aurora span {
  position: absolute;
  display: block;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  will-change: transform;
}
.aurora span:nth-child(1) { background: var(--neon-violet); top: -20vw; left: -10vw; }
.aurora span:nth-child(2) { background: var(--neon-cyan); top: 30vh; right: -20vw; opacity: .25; }
.aurora span:nth-child(3) { background: var(--neon-magenta); bottom: -25vw; left: 30vw; opacity: .2; }

/* Cursor glow */
.cursor-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(0,230,255,.12) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  will-change: transform;
}

/* -- Container ------------------------------------------------------- */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

/* -- Typography ------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(1.4); }
}

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.h-display {
  font-size: clamp(44px, 7.5vw, 96px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 700;
}

.h-section {
  font-size: clamp(38px, 5.5vw, 68px);
  letter-spacing: -.045em;
}

.gradient-text {
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead {
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 56ch;
}

/* -- Buttons --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .01em;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.04);
  color: var(--text);
  transition: transform .25s var(--ease-out), background .25s, box-shadow .25s, border-color .25s;
  will-change: transform;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}

.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad-primary);
  border-color: transparent;
  box-shadow: 0 14px 40px rgba(109,40,255,.35), inset 0 1px 0 rgba(255,255,255,.2);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet), var(--neon-magenta));
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-primary:hover {
  box-shadow: 0 20px 60px rgba(168,85,247,.45), 0 0 80px rgba(0,230,255,.25);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255,255,255,.04);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 30px rgba(0,230,255,.15);
}

/* -- Navigation ------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 100;
}

.nav {
  height: 64px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 22px;
  background: rgba(10,13,24,.65);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 24px 70px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
  transition: top .3s var(--ease-out), background .3s;
}

.site-header.scrolled .nav {
  background: rgba(10,13,24,.85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad-neon);
  background-size: 200% 200%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  color: #000;
  position: relative;
  box-shadow: 0 6px 24px rgba(168,85,247,.5);
  animation: gradientShift 6s ease-in-out infinite;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: var(--grad-neon);
  filter: blur(10px);
  opacity: .5;
  z-index: -1;
}

/* Image-based brand logo (logo-white.png) */
.brand-img {
  height: 45px;
  width: auto;
  display: block;
  transition: filter .3s var(--ease-out), transform .3s var(--ease-out);
  filter: drop-shadow(0 4px 16px rgba(168,85,247,.35));
}

.brand:hover .brand-img {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 22px rgba(0,230,255,.5));
}

.footer-brand .brand-img { height: 50px; }

@media (max-width: 760px) {
  .brand-img { height: 34px; }
}

/* Nav grows slightly to fit larger logo */
.nav { padding-top: 6px; padding-bottom: 6px; height: auto; min-height: 70px; }

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  position: relative;
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--text-soft);
  border-radius: var(--radius-full);
  transition: color .25s, background .25s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.nav-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s, top .3s;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 86px 20px auto;
  z-index: 90;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(10,13,24,.95);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(24px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  display: none;
  transform: translateY(-12px);
  opacity: 0;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}

.mobile-drawer.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.mobile-drawer a:last-of-type { border: 0; }
.mobile-drawer a.active { color: var(--neon-cyan); }

/* -- Glass utility --------------------------------------------------- */
.glass {
  position: relative;
  background: var(--grad-card);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.glass-strong {
  background: var(--grad-card-strong);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

/* -- Sections common ------------------------------------------------- */
.section {
  position: relative;
  padding: 110px 0;
  z-index: 2;
}

.section-sm { padding: 80px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head p {
  max-width: 460px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* -- Cards ----------------------------------------------------------- */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: var(--grad-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .35s, transform .35s var(--ease-out);
  will-change: transform;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle 200px at var(--mx, 50%) var(--my, 50%), rgba(0,230,255,.08), transparent 65%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }
.card:hover { border-color: var(--border-strong); }

/* -- Footer ---------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, var(--bg-0) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 20px;
  color: var(--text-mute);
  line-height: 1.7;
  max-width: 320px;
  font-size: 14.5px;
}

.footer-col h4 {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 22px;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 14.5px;
  transition: color .25s;
  position: relative;
}

.footer-col a:hover {
  color: var(--neon-cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13.5px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
  transition: all .3s var(--ease-out);
}

.footer-social a:hover {
  background: rgba(0,230,255,.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,230,255,.2);
}

.footer-social a svg { width: 16px; height: 16px; }

/* =====================================================================
   PAGES
   ===================================================================== */

/* -- Hero (index) ---------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 130px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text { position: relative; z-index: 2; }

.hero h1 {
  margin: 22px 0 24px;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.03em; }
.hero-meta span { font-size: 12.5px; color: var(--text-mute); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

/* Hero visual: floating cards mockup */
.hero-visual {
  position: relative;
  height: 580px;
  perspective: 1500px;
}

.float-card {
  position: absolute;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(20,25,45,.85), rgba(10,13,24,.7));
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
  padding: 20px;
  will-change: transform;
}

.float-card .label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
  display: block;
}

/* Card 1 — Chart */
.fc-chart {
  top: 0;
  left: 0;
  width: 280px;
  z-index: 4;
}

.fc-chart .value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.fc-chart .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: rgba(0,230,255,.12);
  border: 1px solid rgba(0,230,255,.3);
  color: var(--neon-cyan);
  font-size: 11.5px;
  font-weight: 600;
  margin-left: 8px;
}

.fc-chart svg {
  width: 100%;
  height: 70px;
  margin-top: 14px;
}

/* Card 2 — Project */
.fc-project {
  top: 50px;
  right: 0;
  width: 230px;
  z-index: 5;
  background: linear-gradient(145deg, rgba(168,85,247,.22), rgba(109,40,255,.1));
  border-color: rgba(168,85,247,.35);
  box-shadow: 0 30px 70px rgba(168,85,247,.3), inset 0 1px 0 rgba(255,255,255,.1);
}

.fc-project .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(109,40,255,.5);
}

.fc-project h4 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.fc-project p { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; line-height: 1.55; }

/* Card 3 — Stack */
.fc-stack {
  top: 240px;
  left: 80px;
  width: 270px;
  z-index: 3;
}

.fc-stack .stack-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.fc-stack .chip {
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* Card 4 — Live */
.fc-live {
  bottom: 80px;
  right: 30px;
  width: 240px;
  z-index: 6;
  background: linear-gradient(145deg, rgba(0,230,255,.18), rgba(0,150,200,.05));
  border-color: rgba(0,230,255,.35);
  box-shadow: 0 30px 70px rgba(0,230,255,.25);
}

.fc-live .pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--neon-cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.fc-live .pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px var(--neon-cyan);
  animation: pulse 1.6s ease-in-out infinite;
}

.fc-live h4 { font-size: 17px; font-weight: 700; }
.fc-live p { font-size: 12.5px; color: var(--text-soft); margin-top: 6px; }

/* Card 5 — Mail */
.fc-mail {
  bottom: 0;
  left: 0;
  width: 280px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(145deg, rgba(255,43,214,.18), rgba(168,85,247,.08));
  border-color: rgba(255,43,214,.3);
  box-shadow: 0 30px 70px rgba(255,43,214,.25);
}

.fc-mail .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-magenta), var(--neon-violet));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fc-mail strong { display: block; font-size: 13.5px; font-weight: 700; }
.fc-mail span { display: block; font-size: 11.5px; color: var(--text-soft); margin-top: 2px; }

/* Floating orbs decoration */
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-visual::before {
  top: 100px;
  left: -40px;
  background: rgba(168,85,247,.4);
}

.hero-visual::after {
  bottom: 40px;
  right: -40px;
  background: rgba(0,230,255,.3);
}

/* -- Marquee --------------------------------------------------------- */
.marquee {
  position: relative;
  padding: 30px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(10,13,24,.4);
  backdrop-filter: blur(10px);
}

.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
  animation: scroll 28s linear infinite;
}

.marquee-track span {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 60px;
}

.marquee-track span::after {
  content: "✦";
  color: var(--neon-cyan);
  font-size: 20px;
}

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

/* -- Featured projects (home) --------------------------------------- */
.projects-feat {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.projects-feat .card { min-height: 320px; }
.projects-feat .card:first-child { grid-row: span 2; min-height: 664px; }

.proj-preview {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.proj-preview .tag {
  display: inline-flex;
  width: fit-content;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(0,230,255,.08);
  border: 1px solid rgba(0,230,255,.2);
  margin-bottom: 18px;
}

.proj-preview h3 {
  font-size: clamp(24px, 2.6vw, 36px);
  margin-bottom: 12px;
}

.proj-preview p {
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 50ch;
}

.proj-preview .visual {
  margin-top: auto;
  padding-top: 26px;
}

/* SVG mockups inside project cards */
.mockup {
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  padding: 14px;
  position: relative;
}

.mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mockup-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

/* -- About sections -------------------------------------------------- */
.about-hero {
  padding: 140px 0 60px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-portrait {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a0d3a 0%, #0a0d18 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    var(--shadow-glow-violet),
    0 30px 80px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(255,255,255,.04);
  transition: transform .6s var(--ease-out);
}

.about-portrait:hover { transform: translateY(-6px); }

/* The avatar photo */
.about-portrait .photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Vignette + corner neon glows (NO color tint on the face) */
.about-portrait .wash {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Top-right violet glow */
    radial-gradient(circle at 100% 0%, rgba(168,85,247,.45), transparent 38%),
    /* Bottom-left cyan glow */
    radial-gradient(circle at 0% 100%, rgba(0,230,255,.35), transparent 38%),
    /* Top darkening so the floating bubble pops */
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, transparent 22%),
    /* Bottom darkening so the liquid card is readable */
    linear-gradient(0deg, rgba(0,0,0,.55) 0%, transparent 30%);
  pointer-events: none;
}

/* Very subtle top-edge blur (lens effect, only at the very top) */
.about-portrait .lens-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18%;
  z-index: 2;
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  pointer-events: none;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

/* Animated moving shine across the glass */
.about-portrait::before {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  z-index: 4;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.18) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: portraitShine 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes portraitShine {
  0%, 65% { left: -75%; opacity: 0; }
  70%     { opacity: 1; }
  100%    { left: 140%; opacity: 0; }
}

/* Subtle grain on top of everything */
.about-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0 0.08 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
  opacity: .4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* Liquid glass info card floating over the photo */
.about-portrait .liquid-card {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 6;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(15,15,35,.42);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(255,255,255,.05),
    0 20px 50px rgba(0,0,0,.45);
  color: #fff;
}

.about-portrait .liquid-card .lc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.about-portrait .liquid-card .name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.about-portrait .liquid-card .role {
  font-size: 11.5px;
  color: rgba(255,255,255,.7);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-top: 4px;
}

.about-portrait .liquid-card .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--neon-cyan);
  padding: 6px 11px;
  border-radius: var(--radius-full);
  background: rgba(0,230,255,.08);
  border: 1px solid rgba(0,230,255,.3);
  white-space: nowrap;
}

.about-portrait .liquid-card .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: pulse 2s ease-in-out infinite;
}

/* Highlight bubble (mini liquid glass) */
.about-portrait .liquid-bubble {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 6;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  background: rgba(10,15,35,.55);
  border: 1px solid rgba(0,230,255,.4);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--neon-cyan);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    0 12px 30px rgba(0,0,0,.4),
    0 0 24px rgba(0,230,255,.15);
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 60px;
}

.process-card {
  padding: 30px;
}

.process-card .num {
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--neon-cyan);
  font-weight: 700;
  margin-bottom: 18px;
}

.process-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.process-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 36px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.service-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
}

.service-card .icon svg { width: 26px; height: 26px; stroke: var(--neon-cyan); }

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14.5px;
  flex: 1;
}

.service-card ul {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.service-card li {
  font-size: 13px;
  color: var(--text-mute);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon-cyan);
  flex-shrink: 0;
}

/* Stack list */
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.stack-list span {
  padding: 12px 20px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  transition: all .3s var(--ease-out);
  cursor: default;
}

.stack-list span:hover {
  background: rgba(0,230,255,.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,230,255,.18);
}

/* Timeline */
.timeline {
  position: relative;
  margin-top: 50px;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-violet), transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 36px 36px;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0,230,255,.5);
}

.tl-item .year {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--neon-cyan);
  margin-bottom: 6px;
}

.tl-item h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.tl-item p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14.5px;
  max-width: 60ch;
}

/* -- Projects page --------------------------------------------------- */
.proj-hero {
  padding: 140px 0 60px;
  text-align: center;
}

.proj-hero h1 { margin: 22px auto 24px; max-width: 16ch; }
.proj-hero .lead { margin: 0 auto; }

.proj-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.proj-filters button {
  padding: 10px 18px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  transition: all .25s var(--ease-out);
}

.proj-filters button:hover,
.proj-filters button.active {
  background: rgba(0,230,255,.08);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 60px;
}

.proj-card {
  padding: 36px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.proj-card .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.proj-card .head .badge {
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}

.proj-card .year {
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 600;
}

.proj-card h3 {
  font-size: clamp(26px, 2.4vw, 32px);
  margin-bottom: 14px;
}

.proj-card p {
  color: var(--text-soft);
  line-height: 1.7;
  font-size: 14.5px;
}

.proj-card .visual-wrap {
  margin: 28px 0 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
}

.proj-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.proj-card .tags span {
  font-size: 11.5px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

/* -- Contact page ---------------------------------------------------- */
.contact-hero {
  padding: 140px 0 40px;
  text-align: center;
}

.contact-hero h1 { margin: 22px auto 24px; max-width: 18ch; }
.contact-hero .lead { margin: 0 auto; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  margin-top: 60px;
}

.contact-form {
  padding: 40px;
  border-radius: var(--radius-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.05);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(0,230,255,.05);
  box-shadow: 0 0 0 4px rgba(0,230,255,.1);
  color: #fff;
}

/* Native dropdown options on dark theme */
.field select option {
  background: #0f1428;
  color: #fff;
}

/* Kill browser autofill white background */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px rgba(15,20,40,.95) inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 999999s ease-in-out 0s;
}

/* Placeholder color */
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255,255,255,.35);
}

/* Honeypot field (visualmente oculto, accesible para lectores de pantalla) */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Estado del botón de envío */
.btn[disabled],
.btn[aria-busy="true"] {
  opacity: .65;
  cursor: not-allowed;
  pointer-events: none;
}

/* Estados del status text */
[data-form-status].is-loading { color: var(--neon-cyan); }
[data-form-status].is-success { color: var(--neon-cyan); }
[data-form-status].is-error   { color: var(--neon-magenta); }

.field textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}

.form-full { grid-column: 1 / -1; margin-bottom: 18px; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.form-meta {
  font-size: 12.5px;
  color: var(--text-mute);
}

/* Contact aside */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-block {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.contact-block h4 {
  font-size: 12px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-weight: 600;
}

.contact-block a,
.contact-block .value {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .25s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-block a:hover { color: var(--neon-cyan); }
.contact-block .meta { color: var(--text-mute); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* CTA section */
.cta-section {
  padding: 100px 0 110px;
  text-align: center;
}

.cta-box {
  padding: 70px 40px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(168,85,247,.25), transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(0,230,255,.2), transparent 50%);
  pointer-events: none;
}

.cta-box > * { position: relative; z-index: 1; }

.cta-box h2 { margin-bottom: 20px; }
.cta-box .lead { margin: 0 auto 36px; }

.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* -- Reveal animations (hidden state) -------------------------------- */
.reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 0; }

/* -- Reduced motion -------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cursor-glow, .aurora { display: none; }
  .reveal, .reveal-up, .reveal-left, .reveal-right { opacity: 1; }
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 520px; max-width: 580px; margin: 0 auto; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 420px; margin: 0 auto; }
  .projects-feat { grid-template-columns: 1fr; }
  .projects-feat .card:first-child { grid-row: auto; min-height: 320px; }
  .process-grid { grid-template-columns: repeat(2,1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header { top: 12px; }
  .brand span { display: none; }
  .section-head { flex-direction: column; align-items: start; gap: 18px; margin-bottom: 36px; }
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-visual { height: 460px; transform: scale(.85); transform-origin: top center; }
  .fc-stack { left: 30px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { gap: 22px; }
  .process-grid, .services-grid, .proj-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .cta-box { padding: 50px 24px; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; }
}
