:root {
  --violet: #8000ff;
  --violet-900: #43008c;
  --violet-800: #5d00bf;
  --violet-700: #7100e2;
  --violet-500: #a64dff;
  --violet-300: #cf9cff;
  --violet-150: #ead5ff;
  --violet-80: #f5ecff;
  --ink: #18121f;
  --muted: #655e6d;
  --line: #e8e1ee;
  --paper: #ffffff;
  --soft: #fbf8ff;
  --shadow: 0 24px 70px rgba(70, 0, 140, 0.13);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--violet); color: white; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 999;
  padding: .7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.orb {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .34;
  pointer-events: none;
}
.orb-one {
  width: 34rem;
  height: 34rem;
  right: -14rem;
  top: 2rem;
  background: radial-gradient(circle, rgba(128,0,255,.34), rgba(207,156,255,.12) 48%, transparent 72%);
}
.orb-two {
  width: 28rem;
  height: 28rem;
  left: -16rem;
  top: 60rem;
  background: radial-gradient(circle, rgba(128,0,255,.2), rgba(234,213,255,.1) 55%, transparent 74%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(232,225,238,.78);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  width: max-content;
  text-decoration: none;
  font-weight: 850;
  letter-spacing: -.03em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.3rem;
  aspect-ratio: 1;
  border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, var(--violet), var(--violet-500));
  box-shadow: 0 8px 26px rgba(128,0,255,.25);
  transform: rotate(-5deg);
}
.brand-text { font-size: 1.05rem; }
.brand-dot { color: var(--violet); }
.desktop-nav { display: flex; gap: 1.5rem; }
.desktop-nav a {
  position: relative;
  color: #423a49;
  font-size: .92rem;
  font-weight: 730;
  text-decoration: none;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--violet);
  transition: right .25s ease;
}
.desktop-nav a:hover::after { right: 0; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: .7rem; }
.language-switcher {
  display: flex;
  gap: .2rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}
.language-switcher button {
  border: 0;
  padding: .45rem .62rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}
.language-switcher button.active { color: white; background: var(--violet); }
.spark-button {
  display: grid;
  place-items: center;
  width: 2.55rem;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--violet);
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.spark-button:hover { transform: rotate(22deg) scale(1.06); box-shadow: 0 10px 24px rgba(128,0,255,.13); }

.section { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; padding: clamp(5rem, 10vw, 9rem) 0; }
.section-narrow { width: min(1050px, calc(100% - 2rem)); margin-inline: auto; }
.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 7rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--violet);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .language-panel h2, .contact-card h2 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .98;
}
.hero h1 { max-width: 13ch; font-size: clamp(3.15rem, 7vw, 6.7rem); }
.hero h1 span { display: block; }
.gradient-text {
  padding-bottom: .09em;
  color: transparent;
  background: linear-gradient(105deg, var(--violet-900), var(--violet), var(--violet-500));
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-intro {
  max-width: 64ch;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.5vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  min-height: 3.35rem;
  padding: .85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 820;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(120deg, var(--violet-800), var(--violet), var(--violet-500)); box-shadow: 0 18px 34px rgba(128,0,255,.22); }
.button-secondary { border: 1px solid var(--violet-150); color: var(--violet-800); background: white; }
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-top: 1.4rem;
  padding: .58rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4a4250;
  background: rgba(255,255,255,.8);
  font-size: .86rem;
  font-weight: 750;
}
.pulse {
  width: .58rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #18b56f;
  box-shadow: 0 0 0 0 rgba(24,181,111,.4);
  animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(24,181,111,0); } 100% { box-shadow: 0 0 0 0 rgba(24,181,111,0); } }

.hero-visual { display: grid; place-items: center; }
.portrait-frame {
  position: relative;
  width: min(390px, 78vw);
  aspect-ratio: .86;
  display: grid;
  place-items: center;
}
.portrait-halo {
  position: absolute;
  inset: 4% 0 0 0;
  border-radius: 46% 54% 48% 52% / 54% 43% 57% 46%;
  background: linear-gradient(145deg, var(--violet-150), #fff 45%, var(--violet-300));
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}
.portrait-frame img {
  position: relative;
  z-index: 2;
  width: 78%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 8px solid white;
  border-radius: 38% 62% 42% 58% / 57% 40% 60% 43%;
  box-shadow: 0 24px 60px rgba(70,0,140,.18);
  transform: rotate(-2deg);
}
.floating-card {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: .1rem;
  min-width: 8.5rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 15px 36px rgba(55,0,110,.12);
  backdrop-filter: blur(12px);
}
.floating-card strong { color: var(--violet-800); font-size: .95rem; }
.floating-card span { color: var(--muted); font-size: .76rem; }
.card-language { left: -1rem; top: 18%; transform: rotate(-4deg); }
.card-diploma { right: -1.3rem; bottom: 20%; transform: rotate(4deg); }
.sticker {
  position: absolute;
  z-index: 5;
  right: 2%;
  top: 2%;
  padding: .58rem .8rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fff869;
  box-shadow: 5px 5px 0 var(--ink);
  font-size: .78rem;
  font-weight: 900;
  transform: rotate(8deg);
}

.quick-scan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.78);
  box-shadow: 0 18px 55px rgba(70,0,140,.08);
  overflow: hidden;
}
.quick-scan article { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.45rem; }
.quick-scan article + article { border-left: 1px solid var(--line); }
.quick-number { color: var(--violet-300); font-weight: 950; font-size: 1.8rem; line-height: 1; }
.quick-scan strong { display: block; margin-bottom: .2rem; }
.quick-scan p { margin: 0; color: var(--muted); font-size: .88rem; }

.section-heading { max-width: 780px; }
.section-heading h2, .language-panel h2, .contact-card h2 { font-size: clamp(2.45rem, 5vw, 4.7rem); }
.section-heading > p:last-child { margin-top: 1.2rem; color: var(--muted); font-size: 1.05rem; }
.split-section { display: grid; gap: 4rem; }
.profile-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.profile-copy { color: var(--muted); font-size: 1.04rem; }
.profile-copy .lead { color: var(--ink); font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.45; }
blockquote {
  position: relative;
  margin: 2.2rem 0 0;
  padding: 1.6rem 1.8rem 1.6rem 4rem;
  border: 1px solid var(--violet-150);
  border-radius: 22px;
  background: var(--violet-80);
  color: var(--violet-900);
}
blockquote > span { position: absolute; left: 1.4rem; top: .7rem; font-size: 3rem; font-weight: 900; }
blockquote p { margin: 0; font-weight: 820; }
.value-card {
  position: sticky;
  top: 110px;
  padding: 2rem;
  border-radius: 30px;
  color: white;
  background: linear-gradient(150deg, #2a003f, var(--violet-900) 45%, var(--violet));
  box-shadow: 0 28px 72px rgba(67,0,140,.24);
}
.value-kicker { color: var(--violet-300); font-size: .72rem; letter-spacing: .16em; font-weight: 900; }
.value-card ul { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.1rem; }
.value-card li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; }
.value-card li > span:first-child { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; color: var(--violet-900); background: white; font-size: .7rem; font-weight: 900; }
.mini-signature { color: rgba(255,255,255,.66); font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 1.08rem; transform: rotate(-2deg); }

.skills-section { width: min(1240px, calc(100% - 2rem)); }
.skills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 3rem; }
.skill-card {
  position: relative;
  min-height: 275px;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(160deg, white, #fdfaff);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.skill-card::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -6rem;
  bottom: -6rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128,0,255,.18), transparent 70%);
  transition: transform .35s ease;
}
.skill-card:hover { transform: translateY(-5px); border-color: var(--violet-300); box-shadow: 0 22px 55px rgba(70,0,140,.1); }
.skill-card:hover::after { transform: scale(1.35); }
.skill-icon { display: grid; place-items: center; width: 2.9rem; aspect-ratio: 1; border-radius: 15px; color: white; background: linear-gradient(145deg, var(--violet-800), var(--violet-500)); font-size: 1.2rem; }
.skill-card h3 { margin: 1.25rem 0 .55rem; font-size: 1.22rem; }
.skill-card p { margin: 0; color: var(--muted); }
.skill-meter { position: absolute; left: 2rem; right: 2rem; bottom: 1.7rem; height: 4px; border-radius: 10px; background: var(--violet-150); overflow: hidden; }
.skill-meter span { display: block; width: var(--level); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet-800), var(--violet-500)); }
.discipline-cloud { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center; margin-top: 2rem; }
.discipline-cloud span { padding: .62rem .85rem; border: 1px solid var(--violet-150); border-radius: 999px; color: var(--violet-800); background: var(--violet-80); font-size: .8rem; font-weight: 760; }
.discipline-cloud span:nth-child(3n) { transform: rotate(2deg); }
.discipline-cloud span:nth-child(4n) { transform: rotate(-2deg); }

.journey-section { display: grid; gap: 4rem; }
.timeline { position: relative; max-width: 960px; margin-left: auto; }
.timeline::before { content: ""; position: absolute; left: 164px; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--violet-300), var(--violet), var(--violet-150)); }
.timeline-item { display: grid; grid-template-columns: 140px 1fr; gap: 3rem; position: relative; padding: 0 0 3.3rem; }
.timeline-item::before { content: ""; position: absolute; left: 158px; top: .4rem; width: 14px; height: 14px; border: 4px solid white; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 1px var(--violet-300); }
.timeline-date { color: var(--violet-800); font-weight: 900; font-size: .86rem; text-align: right; }
.timeline-content { padding-left: .5rem; }
.timeline-content h3 { margin: .5rem 0 .5rem; font-size: 1.26rem; }
.timeline-content p { margin: 0; color: var(--muted); }
.timeline-tag { display: inline-flex; padding: .32rem .6rem; border-radius: 999px; color: var(--violet-800); background: var(--violet-80); font-size: .66rem; letter-spacing: .12em; font-weight: 900; }
.timeline-item.featured .timeline-content { padding: 1.3rem 1.5rem; border: 1px solid var(--violet-150); border-radius: 22px; background: linear-gradient(145deg, white, var(--violet-80)); box-shadow: 0 20px 50px rgba(70,0,140,.08); }

.language-section { width: min(1240px, calc(100% - 2rem)); }
.language-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 3rem;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 36px;
  color: white;
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.22), transparent 28%), linear-gradient(120deg, #21002f, var(--violet-900) 50%, var(--violet));
  box-shadow: 0 30px 75px rgba(67,0,140,.24);
}
.eyebrow.light { color: var(--violet-300); }
.language-panel p:last-child { color: rgba(255,255,255,.74); }
.language-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; align-items: center; }
.language-ring {
  display: grid;
  place-items: center;
  text-align: center;
  aspect-ratio: 1;
  padding: .8rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(12px);
}
.language-ring strong { font-size: clamp(1.3rem, 3vw, 2.1rem); }
.language-ring span { max-width: 8ch; color: rgba(255,255,255,.66); font-size: .68rem; line-height: 1.25; }
.language-ring:nth-child(2) { transform: translateY(1.5rem); }

.interest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.interest-card { padding: 2rem; border: 1px solid var(--line); border-radius: 26px; background: white; }
.interest-card > span { display: block; color: var(--violet); font-size: 2rem; }
.interest-card h3 { margin: 1rem 0 .25rem; font-size: 1.2rem; }
.interest-card p { margin: 0; color: var(--muted); }
.interest-card:nth-child(2) { transform: translateY(1.2rem) rotate(1deg); }
.interest-card:nth-child(3) { transform: rotate(-1deg); }

.contact-section { width: min(1240px, calc(100% - 2rem)); padding-top: 4rem; }
.contact-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: 36px;
  color: white;
  background: linear-gradient(120deg, var(--violet-900), var(--violet) 70%, var(--violet-500));
  box-shadow: 0 28px 80px rgba(67,0,140,.25);
}
.contact-card p:last-child { max-width: 62ch; color: rgba(255,255,255,.76); }
.contact-actions { display: grid; gap: 1rem; justify-items: start; }
.button-white { color: var(--violet-900); background: white; }
.contact-line { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 700; }
.contact-line:hover { color: white; }

footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2rem 0 3rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}
footer > div { display: grid; }
footer strong { color: var(--ink); }
footer p { margin: 0; text-align: right; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 999; overflow: hidden; }
.confetti {
  position: absolute;
  top: 72px;
  width: 9px;
  height: 15px;
  border-radius: 2px;
  background: var(--violet);
  animation: confetti-fall 1.7s ease-out forwards;
}
@keyframes confetti-fall {
  to { transform: translate(var(--x), 88vh) rotate(var(--r)); opacity: 0; }
}

@media (max-width: 920px) {
  .topbar { grid-template-columns: 1fr auto; }
  .desktop-nav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero h1 { max-width: 11ch; }
  .hero-visual { grid-row: 1; }
  .portrait-frame { width: min(330px, 75vw); }
  .quick-scan { grid-template-columns: 1fr; }
  .quick-scan article + article { border-left: 0; border-top: 1px solid var(--line); }
  .profile-grid, .language-panel, .contact-card { grid-template-columns: 1fr; }
  .value-card { position: relative; top: auto; }
  .language-rings { max-width: 430px; }
}

@media (max-width: 680px) {
  .topbar { padding-inline: .8rem; min-height: 66px; }
  .brand-text { display: none; }
  .language-switcher button { padding: .4rem .52rem; }
  .spark-button { width: 2.35rem; }
  .section { padding: 4.5rem 0; }
  .hero { min-height: auto; padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2.85rem, 15vw, 4.7rem); }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; }
  .card-language { left: -1.1rem; top: 20%; }
  .card-diploma { right: -1.1rem; bottom: 18%; }
  .sticker { right: -4%; font-size: .68rem; }
  .skills-grid, .interest-grid { grid-template-columns: 1fr; }
  .interest-card:nth-child(2), .interest-card:nth-child(3) { transform: none; }
  .timeline { margin-left: 0; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: .6rem; padding-left: 2rem; }
  .timeline-item::before { left: 0; }
  .timeline-date { text-align: left; }
  .timeline-content { padding-left: 0; }
  .language-panel, .contact-card { border-radius: 28px; }
  .language-rings { gap: .35rem; }
  .language-ring:nth-child(2) { transform: none; }
  footer { flex-direction: column; }
  footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .spark-button, .noise, .orb, .confetti-layer { display: none !important; }
  .section { width: 100%; padding: 2rem 0; }
  .hero { min-height: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .value-card, .language-panel, .contact-card { box-shadow: none; }
}
