/* ==========================================================================
   CYBERPUNK PORTFOLIO — core tokens
   ========================================================================== */
:root{
  --bg: #05030a;
  --bg-soft: #0a0614;
  --surface: #100a1e;
  --surface-2: #160f2b;
  --line: rgba(168, 85, 247, .22);
  --line-strong: rgba(168, 85, 247, .5);

  --purple: #a855f7;
  --purple-deep: #7c3aed;
  --magenta: #ff2bd6;
  --cyan: #37fff0;

  --text: #f3eefc;
  --text-dim: #a99bc9;
  --text-faint: #6c5f8a;

  --grad-brand: linear-gradient(120deg, var(--purple) 0%, var(--magenta) 100%);

  --font-display: "Orbitron", "Arial Narrow", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
  --font-mono: "Share Tech Mono", monospace;

  --side-pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.16,.84,.44,1);
}

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

html{
  scroll-behavior: smooth;
  background: var(--bg);
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

h1,h2,h3{
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: .01em;
}

::selection{
  background: var(--magenta);
  color: #05030a;
}

::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{
  background: linear-gradient(var(--purple), var(--magenta));
  border-radius: 10px;
}

/* ==========================================================================
   Utility layout
   ========================================================================== */
.accent{
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head{
  position: relative;
  z-index: 1;
  padding: clamp(90px, 12vw, 150px) var(--side-pad) 40px;
}

.section-kicker{
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .25em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title{
  font-size: clamp(2.1rem, 5.5vw, 4.2rem);
  text-transform: uppercase;
  line-height: 1.02;
}

.section-intro{
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 1.05rem;
}
.section-intro strong{ color: var(--cyan); font-weight: 600; }

.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.tag-row span{
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(168,85,247,.06);
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn i{ font-size: 1.1rem; transition: transform .35s var(--ease); }
.btn:hover{ transform: translateY(-3px); }
.btn:hover i{ transform: translate(3px,-3px); }

.btn--filled{
  background: var(--grad-brand);
  color: #05030a;
  box-shadow: 0 0 0 rgba(168,85,247,0);
}
.btn--filled:hover{ box-shadow: 0 12px 40px -8px rgba(168,85,247,.65); }

.btn--ghost{
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(168,85,247,.04);
}
.btn--ghost:hover{
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 24px -4px rgba(55,255,240,.5);
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.02);
}
.badge i{ color: var(--cyan); }

[data-reveal]{
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal="visible"]{ opacity: 1; transform: translateY(0); }
[data-reveal-dir="left"]{ transform: translateX(-48px); }
[data-reveal-dir="left"][data-reveal="visible"]{ transform: translateX(0); }
[data-reveal-dir="right"]{ transform: translateX(48px); }
[data-reveal-dir="right"][data-reveal="visible"]{ transform: translateX(0); }

/* ==========================================================================
   Boot screen
   ========================================================================== */
.boot-screen{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  transition: opacity .6s ease, visibility .6s ease;
}
.boot-screen.is-done{ opacity: 0; visibility: hidden; pointer-events: none; }
.boot-lines{
  font-family: var(--font-mono);
  color: var(--purple);
  font-size: clamp(.85rem, 2vw, 1.1rem);
  text-align: left;
}
.boot-lines p{
  margin: 0 0 8px;
  opacity: 0;
  animation: bootFade .5s ease forwards;
  text-shadow: 0 0 10px rgba(168,85,247,.6);
}
.boot-lines p:nth-child(1){ animation-delay: .1s; }
.boot-lines p:nth-child(2){ animation-delay: .5s; color: var(--text); }
.boot-lines p:nth-child(3){ animation-delay: .9s; color: var(--text); }
.boot-lines p:nth-child(4){ animation-delay: 1.3s; color: var(--cyan); }
@keyframes bootFade{ to{ opacity: 1; } }
.boot-dots::after{
  content: '';
  animation: bootDots 1.2s steps(4) infinite;
}
@keyframes bootDots{
  0%{content:'';} 25%{content:'.';} 50%{content:'..';} 75%{content:'...';}
}
.boot-bar{
  width: min(320px, 70vw);
  height: 3px;
  background: rgba(168,85,247,.15);
  overflow: hidden;
  border-radius: 4px;
}
.boot-bar span{
  display: block;
  height: 100%;
  width: 0%;
  background: var(--grad-brand);
  animation: bootLoad 1.6s var(--ease) forwards;
  box-shadow: 0 0 12px var(--purple);
}
@keyframes bootLoad{ to{ width: 100%; } }

/* ==========================================================================
   Ambient particle field
   ========================================================================== */
#particleField{
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   Scroll progress + noise
   ========================================================================== */
.scroll-progress{
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--grad-brand);
  z-index: 9997;
  box-shadow: 0 0 12px var(--magenta);
  transition: width .1s linear;
}

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

/* ==========================================================================
   Nav
   ========================================================================== */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--side-pad);
  background: rgba(5,3,10,.55);
  border-bottom: 1px solid var(--line);
}
.nav::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
}

.nav-logo{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .08em;
  color: var(--text);
  text-shadow: 0 0 16px rgba(168,85,247,.7);
}
.nav-logo-blink{
  color: var(--cyan);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav-links a{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--text-dim);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  position: relative;
  padding-bottom: 4px;
  transition: color .3s;
}
.nav-num{ color: var(--purple); font-size: .7rem; }
.nav-links a::after{
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--grad-brand);
  transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active{ color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after{ width: 100%; }

.nav-social{
  display: flex; gap: 14px;
  margin-left: 8px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.nav-social a{ font-size: 1.15rem; color: var(--text-dim); transition: color .3s, transform .3s; }
.nav-social a:hover{ color: var(--cyan); transform: translateY(-2px); }

.lang-toggle{
  display: flex;
  align-items: center;
  margin-left: 14px;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(168,85,247,.06);
}
.lang-btn{
  display: inline-block;
  line-height: 1.4;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  padding: 4px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .3s, background .3s, box-shadow .3s;
}
.lang-btn:hover{ color: var(--text); }
.lang-btn.is-active{
  color: var(--bg);
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(168,85,247,.5);
  cursor: default;
}

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 34px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.nav-toggle span{
  height: 2px; width: 100%;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px){
  .nav-toggle{ display: flex; }
  .nav-links{
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 32px;
    background: var(--bg-soft);
    gap: 26px;
    transform: translateX(100%);
    transition: transform .5s var(--ease);
  }
  .nav-links.is-open{ transform: translateX(0); }
  .nav-links a{ font-size: 1.1rem; }
  .nav-social{ border-left: none; padding-left: 0; margin-top: 10px; }
  .lang-toggle{ margin-left: 0; margin-top: 6px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--side-pad) 40px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(124,58,237,.28), transparent 55%),
    radial-gradient(ellipse at 82% 78%, rgba(255,43,214,.16), transparent 50%),
    var(--bg);
}

.hero-grid{
  position: absolute;
  left: -20%; right: -20%; bottom: -10%;
  height: 70%;
  background-image:
    linear-gradient(rgba(168,85,247,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.35) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, black, transparent 85%);
  mask-image: linear-gradient(to top, black, transparent 85%);
  animation: gridMove 6s linear infinite;
  opacity: .6;
}
@keyframes gridMove{
  from{ background-position: 0 0, 0 0; }
  to{ background-position: 0 48px, 48px 0; }
}

.hero-scanlines{
  position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0px, rgba(255,255,255,.025) 1px, transparent 2px, transparent 4px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  pointer-events: none;
}
.hero-orb--a{ width: 380px; height: 380px; background: var(--purple-deep); top: 8%; left: 6%; animation: orbFloat 10s ease-in-out infinite; }
.hero-orb--b{ width: 300px; height: 300px; background: var(--magenta); bottom: 4%; right: 8%; animation: orbFloat 12s ease-in-out infinite reverse; }
.hero-orb--c{ width: 220px; height: 220px; background: var(--cyan); top: 45%; right: 30%; opacity: .28; animation: orbFloat 14s ease-in-out infinite; }
@keyframes orbFloat{
  0%,100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(30px,-24px) scale(1.08); }
}

.hero-content{ position: relative; z-index: 2; max-width: 1100px; }

.hero-tag{
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .18em;
  color: var(--cyan);
  text-transform: uppercase;
  margin: 0 0 22px;
}
.dot-pulse{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity: 1; transform: scale(1);} 50%{ opacity: .4; transform: scale(.7);} }

.hero-title{
  position: relative;
  font-size: clamp(3rem, 10vw, 7.8rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .96;
  color: var(--text);
  text-shadow: 0 0 30px rgba(168,85,247,.45);
}
.hero-title > span:first-child{
  position: absolute; inset: 0;
  clip-path: inset(0 0 0 0);
}
.hero-title[data-glitch] > span:first-child::before,
.hero-title[data-glitch] > span:first-child::after{
  content: attr(data-glitch);
  position: absolute; inset: 0;
  background: var(--bg);
  background-clip: text;
  -webkit-background-clip: text;
}
.hero-title[data-glitch] > span:first-child::before{
  color: var(--magenta);
  animation: glitchTop 5s infinite linear;
}
.hero-title[data-glitch] > span:first-child::after{
  color: var(--cyan);
  animation: glitchBottom 5s infinite linear;
}
@keyframes glitchTop{
  0%,92%,100%{ opacity:0; transform: translate(0,0); clip-path: inset(0 0 100% 0); }
  93%{ opacity:.9; transform: translate(-6px,-2px); clip-path: inset(0 0 60% 0); }
  95%{ opacity:.9; transform: translate(5px,2px); clip-path: inset(40% 0 20% 0); }
  97%{ opacity:.9; transform: translate(-4px,1px); clip-path: inset(70% 0 0 0); }
}
@keyframes glitchBottom{
  0%,90%,100%{ opacity:0; transform: translate(0,0); clip-path: inset(60% 0 0 0); }
  91%{ opacity:.85; transform: translate(6px,2px); clip-path: inset(20% 0 40% 0); }
  94%{ opacity:.85; transform: translate(-5px,-2px); clip-path: inset(0 0 70% 0); }
  98%{ opacity:.85; transform: translate(4px,-1px); clip-path: inset(50% 0 10% 0); }
}

.hero-subtitle{
  margin: 26px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  letter-spacing: .06em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.hero-cursor-role{
  color: var(--purple);
}
.hero-cursor-role::after{
  content: '_';
  animation: blink 1s steps(1) infinite;
  color: var(--cyan);
}

.hero-desc{
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.hero-cta{ display: flex; flex-wrap: wrap; gap: 18px; }

/* ==========================================================================
   Reusable moving grid / "damier" background
   ========================================================================== */
.grid-damier{
  position: absolute;
  inset: -15%;
  background-image:
    linear-gradient(rgba(168,85,247,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.16) 1px, transparent 1px);
  background-size: 56px 56px;
  animation: damierPan 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes damierPan{
  from{ background-position: 0 0, 0 0; }
  to{ background-position: 56px 56px, 56px 56px; }
}
.grid-damier--cyan{
  background-image:
    linear-gradient(rgba(55,255,240,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,255,240,.14) 1px, transparent 1px);
}
.grid-damier--magenta{
  background-image:
    linear-gradient(rgba(255,43,214,.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,43,214,.14) 1px, transparent 1px);
}
.grid-damier--mask-center{
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 70%);
  mask-image: radial-gradient(ellipse at center, black, transparent 70%);
}
.grid-damier--fade-top{
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.grid-damier--fade-left{
  -webkit-mask-image: linear-gradient(to right, black, transparent 65%);
  mask-image: linear-gradient(to right, black, transparent 65%);
}
.grid-damier--fade-right{
  -webkit-mask-image: linear-gradient(to left, black, transparent 65%);
  mask-image: linear-gradient(to left, black, transparent 65%);
}

/* ==========================================================================
   Stats bar
   ========================================================================== */
.stats-bar{
  position: relative;
  overflow: hidden;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(50px, 7vw, 80px) var(--side-pad);
}

.stats-bar-inner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}

.stat-block{
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.stat-icon-ring{
  position: relative;
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 6px;
}
.stat-icon-ring::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--magenta), var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ringSpin 5s linear infinite;
}
.stat-icon-ring::after{
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-soft);
}
.stat-icon-ring i{
  position: relative;
  z-index: 1;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(55,255,240,.6);
  animation: statIconWobble 3.6s ease-in-out infinite;
  animation-play-state: paused;
}
[data-reveal="visible"] .stat-icon-ring i{ animation-play-state: running; }
@keyframes ringSpin{ to{ transform: rotate(360deg); } }
@keyframes statIconWobble{
  0%, 100%{ transform: rotate(0deg) scale(1); }
  50%{ transform: rotate(-12deg) scale(1.08); }
}
.stat-number-row{
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
}
.stat-number{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--text);
  text-shadow: 0 0 28px rgba(168,85,247,.6), 0 0 60px rgba(255,43,214,.25);
  font-variant-numeric: tabular-nums;
}
.stat-suffix{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  color: var(--magenta);
  margin-top: 6px;
  text-shadow: 0 0 20px rgba(255,43,214,.6);
}
.stat-label{
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-divider{
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, var(--line-strong), transparent);
}

@media (max-width: 760px){
  .stats-bar-inner{ flex-direction: column; }
  .stat-divider{ width: 60%; height: 1px; align-self: center; background: linear-gradient(to right, transparent, var(--line-strong), transparent); }
}

/* ==========================================================================
   About
   ========================================================================== */
.about{ position: relative; overflow: hidden; background: var(--bg-soft); border-top: 1px solid var(--line); }

.about-watermark{
  position: absolute;
  top: clamp(40px, 8vw, 90px);
  right: var(--side-pad);
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 13rem);
  letter-spacing: .04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(168,85,247,.14);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.about-body{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: clamp(50px, 7vw, 110px);
  padding: 0 var(--side-pad) clamp(80px, 10vw, 140px);
  align-items: start;
}

.about-media{ position: relative; display: flex; flex-direction: column; }
.about-media-frame{
  position: relative;
  border: 1px solid var(--line-strong);
  padding: 10px;
  background: linear-gradient(160deg, rgba(168,85,247,.1), rgba(255,43,214,.05));
}
.about-media-clip{
  position: relative;
  overflow: hidden;
}
.about-media-frame img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: grayscale(.25) contrast(1.05);
}
.about-media-glitch{
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(55,255,240,.25) 50%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.about-media-frame:hover .about-media-glitch{
  opacity: 1;
  animation: sweep .8s ease forwards;
}
.about-media-frame.is-scanning .about-media-glitch{
  opacity: 1;
  animation: sweep 1.1s ease forwards;
}
@keyframes sweep{
  from{ transform: translateX(-100%); }
  to{ transform: translateX(100%); }
}
.about-media-tag{
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--purple);
}

.about-badges{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 26px; }
.about-badges .badge{ width: 100%; }

.about-text{
  position: relative;
  padding-left: clamp(0px, 3vw, 28px);
  border-left: 1px solid var(--line);
}

.about-lede{
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.1vw, 1.85rem);
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 26px;
}
.about-lede strong{
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-text p{ color: var(--text-dim); font-size: clamp(1.05rem, 1.2vw, 1.2rem); line-height: 1.8; margin: 0 0 20px; }
.about-text strong{ color: var(--text); font-weight: 600; }

.about-tags{ display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; }
.about-tags span{
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--cyan);
  opacity: .85;
}

@media (max-width: 860px){
  .about-body{ grid-template-columns: 1fr; }
  .about-media{ max-width: 320px; }
  .about-badges{ flex-direction: row; flex-wrap: wrap; }
  .about-badges .badge{ width: auto; }
  .about-text{ padding-left: 0; border-left: none; }
  .about-watermark{ display: none; }
}

/* ==========================================================================
   Experience — timeline
   ========================================================================== */
.experience{ position: relative; overflow: hidden; background: var(--bg); }

.timeline{
  position: relative;
  z-index: 1;
  padding: 0 var(--side-pad) clamp(80px, 10vw, 140px);
}
.timeline-line{
  position: absolute;
  left: 50%; top: 0; bottom: 40px;
  width: 1px;
  background: linear-gradient(var(--purple), var(--magenta));
  opacity: .4;
  transform: translateX(-50%);
}

.timeline-item{
  position: relative;
  width: calc(50% - 40px);
  margin-bottom: 56px;
}
.timeline-item:nth-child(odd){ margin-left: 0; text-align: right; }
.timeline-item:nth-child(even){ margin-left: calc(50% + 40px); }

.timeline-node{
  position: absolute;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}
.timeline-item:nth-child(odd) .timeline-node{ right: -47px; }
.timeline-item:nth-child(even) .timeline-node{ left: -47px; }

.timeline-card{
  display: inline-block;
  text-align: left;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 30px;
  border-radius: 4px;
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.timeline-card:hover{
  border-color: var(--purple);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px -20px rgba(168,85,247,.55);
}
.timeline-card-head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.timeline-card-head h3{ font-size: 1.25rem; }
.timeline-period{
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--cyan);
  white-space: nowrap;
}
.timeline-dates{
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(255,43,214,.5);
  margin-bottom: 6px;
}
.timeline-company{
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 12px;
}
.timeline-company span{ color: var(--text-faint); font-weight: 500; }
.timeline-card p{ color: var(--text-dim); margin: 0; }

@media (max-width: 860px){
  .timeline-line{ display: none; }
  .timeline-node{ display: none; }
  .timeline-item, .timeline-item:nth-child(odd), .timeline-item:nth-child(even){
    width: 100%; margin-left: 0; text-align: left;
  }
}

/* ==========================================================================
   Education — log
   ========================================================================== */
.education{ position: relative; overflow: hidden; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.edu-log{ position: relative; z-index: 1; padding: 0 var(--side-pad) clamp(80px, 10vw, 140px); }

.edu-entry{
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.edu-entry:last-child{ border-bottom: 1px solid var(--line); }

.edu-year{
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.9rem);
  color: var(--text-faint);
  transition: color .3s, text-shadow .3s;
}
.edu-entry:hover .edu-year{ color: var(--cyan); text-shadow: 0 0 16px rgba(55,255,240,.6); }

.edu-content h3{ font-size: 1.15rem; margin-bottom: 8px; }
.edu-content p{ color: var(--text-dim); margin: 0; max-width: 720px; }

.edu-entry--current .edu-year{ color: var(--magenta); text-shadow: 0 0 16px rgba(255,43,214,.6); }
.edu-entry--current .edu-content h3::after{
  content: 'ACTUEL';
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--bg);
  background: var(--cyan);
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 12px;
  vertical-align: middle;
}

@media (max-width: 620px){
  .edu-entry{ grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================================
   Skills
   ========================================================================== */
.skills{ position: relative; overflow: hidden; background: var(--bg); padding-bottom: clamp(80px, 10vw, 140px); }

.skills-filters{
  position: relative;
  z-index: 1;
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 0 var(--side-pad);
  margin-bottom: 40px;
}
.skills-filter{
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.skills-filter:hover{ border-color: var(--purple); color: var(--text); }
.skills-filter.is-active{
  background: var(--grad-brand);
  color: #05030a;
  border-color: transparent;
  font-weight: 700;
}

.skills-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1px;
  margin: 0 var(--side-pad);
}
.skill-card{
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 26px 18px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
  overflow: hidden;
  transition: background .3s, transform .3s var(--ease);
}
.skill-card.is-hidden{ display: none; }
.skill-card:hover{ background: var(--surface-2); transform: translateY(-4px); z-index: 2; }
.skill-card img{ width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(168,85,247,.5)); }
.skill-card .skill-icon{
  font-size: 38px;
  line-height: 1;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(55,255,240,.5));
}
.skill-card span{ font-family: var(--font-display); font-size: .9rem; letter-spacing: .02em; }
.skill-card em{ font-family: var(--font-mono); font-style: normal; font-size: .68rem; color: var(--text-faint); }
.skill-bar{
  display: block;
  width: 100%;
  height: 2px;
  background: rgba(168,85,247,.15);
  margin-top: 4px;
  position: relative;
  overflow: hidden;
}
.skill-bar::after{
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--lvl, 50%);
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.skill-card.is-visible .skill-bar::after{ transform: scaleX(1); }

.skill-card[data-spec="true"]{ background: linear-gradient(160deg, rgba(168,85,247,.08), var(--surface) 55%); }
.skill-card[data-spec="true"]::before{
  content: 'Spécialité';
  position: absolute;
  top: 0; right: 0;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--grad-brand);
  padding: 3px 8px 3px 10px;
  border-bottom-left-radius: 8px;
}
html[lang="en"] .skill-card[data-spec="true"]::before{ content: 'Specialty'; }

/* ==========================================================================
   Projects
   ========================================================================== */
.projects{ position: relative; overflow: hidden; background: var(--bg-soft); border-top: 1px solid var(--line); padding-bottom: clamp(80px, 10vw, 140px); }

.projects-grid{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 0 var(--side-pad);
}

.project-card{
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  min-height: 320px;
  cursor: pointer;
}
.project-card--wide{ grid-column: span 2; }

.project-card img{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease), filter .5s;
  filter: grayscale(.55) brightness(.55) saturate(1.1);
}
.project-card:hover img{ transform: scale(1.08); filter: grayscale(0) brightness(.65) saturate(1.2); }

.project-card-info{
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(to top, rgba(5,3,10,.95) 10%, rgba(5,3,10,.35) 55%, transparent 90%);
}
.project-card-info h3{
  font-size: 1.3rem;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px;
}
.project-card-info h3 i{ font-size: 1rem; color: var(--cyan); opacity: 0; transform: translate(-4px,4px); transition: all .3s var(--ease); }
.project-card:hover h3 i{ opacity: 1; transform: translate(0,0); }
.project-card-info p{ color: var(--text-dim); font-size: .92rem; margin: 0 0 8px; max-width: 46ch; }

.wip-badge{
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--cyan);
  padding: 3px 8px;
  border-radius: 2px;
}

.origin-badge{
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  border: 1px solid var(--line-strong);
}
.origin-badge--i2n{
  color: var(--text);
  background: rgba(168,85,247,.28);
  border-color: rgba(168,85,247,.6);
}
.origin-badge--perso{
  color: var(--bg);
  background: var(--cyan);
  border-color: var(--cyan);
}

@media (max-width: 900px){
  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-card--wide{ grid-column: span 2; }
}
@media (max-width: 620px){
  .projects-grid{ grid-template-columns: 1fr; }
  .project-card--wide{ grid-column: span 1; }
  .project-card{ min-height: 260px; }
  .origin-badge{
    position: static;
    align-self: flex-start;
    margin-bottom: 10px;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact{
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) var(--side-pad);
  overflow: hidden;
  background: var(--bg);
}
.contact-inner{ position: relative; z-index: 1; max-width: 900px; }

.contact-title{
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  text-transform: uppercase;
  line-height: 1.02;
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(168,85,247,.4);
}
.contact-desc{ color: var(--text-dim); font-size: 1.15rem; margin-bottom: 40px; }

.contact-email{
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.7rem);
  color: var(--text);
  border-bottom: 2px solid var(--purple);
  padding-bottom: 10px;
  margin-bottom: 44px;
  transition: color .3s, border-color .3s, text-shadow .3s;
}
.contact-email i{ color: var(--cyan); }
.contact-email:hover{ color: var(--cyan); border-color: var(--cyan); text-shadow: 0 0 20px rgba(55,255,240,.6); }

.contact-links{ display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; }
.contact-links a{
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s, transform .3s;
}
.contact-links a:hover{ color: var(--purple); transform: translateY(-3px); }
.contact-links a i{ font-size: 1.1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px var(--side-pad);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-faint);
  background: var(--bg-soft);
}
.to-top{
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, color .3s, transform .3s;
}
.to-top:hover{ border-color: var(--cyan); color: var(--cyan); transform: translateY(-4px); }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
