﻿/* Palette d'origine :
  --lime: #c4ff5f;
  --teal: #2ef2d0;
  --blue: #62a8ff;
  --rose: #ff7aa8;
  --violet: #b792ff;
  --amber: #ffd166;
*/
:root {
  --bg: #07090d;
  --bg-1: #0d1118;
  --bg-2: #131923;
  --bg-3: #1a2230;
  --bg-grad-1: rgba(129, 178, 255, .08);
  --bg-grad-2: rgba(246, 168, 194, .08);
  --surface: rgba(255, 255, 255, .045);
  --surface-strong: rgba(255, 255, 255, .075);
  --border: rgba(255, 255, 255, .085);
  --border-h: rgba(255, 255, 255, .18);
  --header-bg: rgba(7, 9, 13, .86);
  --ink-0: #ffffff;
  --ink-1: #d6dde8;
  --ink-2: #8d9aac;
  --ink-3: #596678;
  --lime: #81b2ff;
  --teal: #7fd9d4;
  --blue: #7a9eff;
  --rose: #f6a8c2;
  --violet: #cab6ff;
  --amber: #ffc8a8;
  --accent: var(--lime);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --accent-contrast: #0b1007;
}

body[data-theme='light'] {
  --bg: #f2f5fb;
  --bg-1: #ffffff;
  --bg-2: #e8eef7;
  --bg-3: #d8e1ef;
  --bg-grad-1: rgba(63, 114, 255, .12);
  --bg-grad-2: rgba(230, 132, 166, .12);
  --surface: rgba(255, 255, 255, .72);
  --surface-strong: rgba(255, 255, 255, .92);
  --border: rgba(19, 31, 54, .12);
  --border-h: rgba(19, 31, 54, .22);
  --header-bg: rgba(255, 255, 255, .82);
  --ink-0: #101722;
  --ink-1: #243245;
  --ink-2: #516174;
  --ink-3: #748397;
  --lime: #3f72ff;
  --teal: #22b8ad;
  --blue: #5d79ff;
  --rose: #e684a6;
  --violet: #9d8cff;
  --amber: #f29d62;
  --accent-contrast: #ffffff;
}

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

html { font-size: 10px; scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 18% 8%, var(--bg-grad-1), transparent 28%),
    radial-gradient(circle at 88% 22%, var(--bg-grad-2), transparent 32%),
    var(--bg);
  color: var(--ink-1);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

@media (pointer: fine) {
  * { cursor: none !important; }
  .cursor,
  .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
  .cursor {
    width: 10px;
    height: 10px;
    z-index: 9999;
    background: var(--lime);
    transition: width .25s, height .25s;
  }
  .cursor-follower {
    width: 36px;
    height: 36px;
    z-index: 9998;
    border: 1px solid rgba(129, 178, 255, .36);
    transition: width .3s, height .3s, border-color .3s;
  }
  .cursor.hovering { width: 6px; height: 6px; }
  .cursor-follower.hovering { width: 54px; height: 54px; border-color: var(--lime); }
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 20px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 3rem; }

#header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  padding: 0 3rem;
  transition: background .35s, border-color .35s;
}

#header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1160px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.brand,
.footer-brand {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink-0);
  display: flex;
  align-items: center;
}

.brand { font-size: 2.4rem; }
.brand-dot { color: var(--lime); }

.nav-links { display: flex; gap: .2rem; margin-left: auto; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.toggle-group {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.control-btn {
  min-width: 48px;
  padding: .7rem 1rem;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.control-btn:hover {
  color: var(--ink-0);
  transform: translateY(-1px);
}

.control-btn.is-active {
  background: var(--lime);
  color: var(--accent-contrast);
  box-shadow: 0 10px 26px rgba(129, 178, 255, .18);
}

.nav-link {
  display: block;
  padding: .8rem 1.3rem;
  border-radius: var(--radius-sm);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .2s, background .2s;
}

.nav-link:hover { color: var(--ink-0); background: var(--surface); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.7rem;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--accent-contrast);
  font-size: 1.4rem;
  font-weight: 800;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.nav-cta:hover,
.btn-primary:hover {
  background: #aecdff;
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(129, 178, 255, .24);
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--ink-0);
  transition: transform .3s var(--ease-out), opacity .3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding: 12rem 3rem 8rem;
  overflow: hidden;
}

.hero-bg,
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid { width: 100%; height: 100%; opacity: .58; }
body[data-theme='light'] .hero-grid { opacity: .28; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(82px);
  opacity: .16;
}

.orb-1 { width: 560px; height: 560px; background: var(--lime); top: -15%; left: -14%; animation: drift1 18s ease-in-out infinite; }
.orb-2 { width: 520px; height: 520px; background: var(--teal); right: -12%; bottom: -10%; animation: drift2 23s ease-in-out infinite; }
.orb-3 { width: 360px; height: 360px; background: var(--rose); left: 48%; top: 34%; animation: drift3 16s ease-in-out infinite; }

@keyframes drift1 { 50% { transform: translate(62px, 36px) scale(1.1); } }
@keyframes drift2 { 50% { transform: translate(-54px, -58px) scale(1.08); } }
@keyframes drift3 { 50% { transform: translate(24px, -34px) scale(1.18); } }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(300px, .68fr);
  gap: 4rem 4.5rem;
  align-items: center;
}

.hero-left { grid-column: 1; }
.hero-right { grid-column: 1; display: flex; flex-direction: column; gap: 2.6rem; max-width: 690px; }
.hero-visual { grid-column: 2; grid-row: 1 / span 2; perspective: 1200px; min-height: 460px; display: flex; align-items: center; justify-content: center; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  color: var(--ink-2);
  font-size: 1.35rem;
  font-weight: 600;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(129, 178, 255, .7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  70% { box-shadow: 0 0 0 12px rgba(129, 178, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(129, 178, 255, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 6.2vw, 7.6rem);
  line-height: .96;
  letter-spacing: 0;
  font-weight: 800;
  color: var(--ink-0);
  margin-bottom: 2.2rem;
}

.line-wrap { display: block; overflow: hidden; }
.no-break { white-space: nowrap; font-size: .86em; }
.line { display: block; transform: translateY(105%); animation: lineUp .8s var(--ease-out) forwards; }
.line-1 { animation-delay: .08s; }
.line-2 {
  animation-delay: .2s;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, .33);
}

@keyframes lineUp { to { transform: translateY(0); } }

.hero-role {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  min-height: 4rem;
  padding: 1.15rem 1.7rem;
  border: 1px solid rgba(129, 178, 255, .22);
  border-radius: var(--radius-sm);
  background: rgba(129, 178, 255, .075);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2vw, 2.45rem);
  font-weight: 800;
}

.role-cursor {
  width: 2px;
  height: 2.8rem;
  background: var(--lime);
  border-radius: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  max-width: 640px;
  color: var(--ink-2);
  font-size: clamp(1.62rem, 1.6vw, 1.9rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; }

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 52px;
  padding: 1.35rem 2.5rem;
  border-radius: var(--radius-sm);
  font-size: 1.55rem;
  font-weight: 800;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}

.btn-primary { background: var(--lime); color: var(--accent-contrast); }
.btn-ghost { border: 1px solid var(--border-h); color: var(--ink-1); }
.btn-ghost:hover { border-color: var(--lime); background: rgba(129, 178, 255, .06); transform: translateY(-2px); }

.hero-stats {
  display: flex;
  width: fit-content;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.9rem 2.3rem;
  backdrop-filter: blur(14px);
}

.stat { display: flex; flex-direction: column; gap: .35rem; padding: 0 2.2rem; }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; }
.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink-0);
}
.stat-label { color: var(--ink-3); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

.model-card {
  width: min(410px, 100%);
  min-height: 470px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
    radial-gradient(circle at 30% 20%, rgba(129, 178, 255, .16), transparent 34%),
    radial-gradient(circle at 80% 76%, rgba(98, 168, 255, .16), transparent 36%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  transform-style: preserve-3d;
  transition: transform .12s linear;
  padding: 2.4rem;
}

.model-top { display: flex; gap: .8rem; }
.model-top span { width: 10px; height: 10px; border-radius: 50%; background: var(--rose); }
.model-top span:nth-child(2) { background: var(--amber); }
.model-top span:nth-child(3) { background: var(--teal); }

.model-core {
  position: relative;
  height: 285px;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.cube {
  width: 130px;
  height: 130px;
  position: relative;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: cubeSpin 9s linear infinite;
}

.cube span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(129, 178, 255, .56);
  background: linear-gradient(135deg, rgba(129, 178, 255, .18), rgba(126, 209, 212, .06));
  box-shadow: inset 0 0 40px rgba(126, 209, 212, .12);
}
.cube span:nth-child(1) { transform: rotateY(0deg) translateZ(65px); }
.cube span:nth-child(2) { transform: rotateY(90deg) translateZ(65px); }
.cube span:nth-child(3) { transform: rotateX(90deg) translateZ(65px); }

.cube-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateZ(2px);
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-shadow:
    0 0 12px rgba(129, 178, 255, .48),
    0 0 28px rgba(129, 178, 255, .3);
  pointer-events: none;
  backface-visibility: hidden;
}

@keyframes cubeSpin {
  to { transform: rotateX(360deg) rotateY(360deg); }
}

.model-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
}

.ring-a { width: 250px; height: 250px; transform: rotateX(70deg); animation: ringPulse 4s ease-in-out infinite; }
.ring-b { width: 310px; height: 310px; transform: rotateX(74deg) rotateZ(30deg); animation: ringPulse 5s ease-in-out infinite reverse; }

@keyframes ringPulse {
  50% { border-color: rgba(129, 178, 255, .42); box-shadow: 0 0 36px rgba(129, 178, 255, .12); }
}

.model-lines { display: grid; gap: 1.2rem; }
.model-lines span {
  height: 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .2), rgba(129, 178, 255, .1));
}
.model-lines span:nth-child(1) { width: 70%; }
.model-lines span:nth-child(2) { width: 92%; }
.model-lines span:nth-child(3) { width: 54%; }
.model-lines span:nth-child(4) { width: 82%; }

.hero-scroll {
  position: absolute;
  right: 4rem;
  bottom: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--ink-3);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 58px;
  background: linear-gradient(180deg, var(--lime), transparent);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

section { padding: 10rem 0; }
.section-header { margin-bottom: 5.8rem; }
.section-header.compact { margin-bottom: 3.5rem; }
.section-eyebrow {
  margin-bottom: 1.4rem;
  color: var(--lime);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.section-status {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.6rem;
  padding: .75rem 1.2rem;
  border: 1px solid rgba(129, 178, 255, .24);
  border-radius: 999px;
  background: rgba(129, 178, 255, .08);
  color: var(--ink-1);
  font-size: 1.3rem;
  font-weight: 700;
}

.section-title {
  max-width: 820px;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 5vw, 6rem);
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--ink-0);
  font-weight: 800;
}

.section-title em { color: var(--lime); font-style: italic; }
.section-sub { max-width: 640px; margin-top: 1.5rem; color: var(--ink-2); font-size: 1.65rem; }

#about,
#skills,
#photos {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 8rem; align-items: center; }
.about-img-wrap {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-drop {
  border-radius: var(--radius-xl);
  transform-style: preserve-3d;
}

.photo-placeholder,
.project-visual,
.photo-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px dashed rgba(255, 255, 255, .22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)),
    radial-gradient(circle at 24% 18%, rgba(255, 122, 168, .16), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(126, 209, 212, .13), transparent 32%);
  color: var(--ink-1);
  text-align: center;
}

.photo-placeholder {
  min-height: 560px;
  border-radius: var(--radius-xl);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .36);
}

.about-photo {
  position: relative;
  z-index: 1;
  width: clamp(230px, 30vw, 320px);
  height: clamp(230px, 30vw, 320px);
  min-height: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .14);
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 26px 62px rgba(0, 0, 0, .36);
}

.photo-placeholder i,
.photo-slot i,
.project-visual i { color: var(--lime); font-size: 4rem; }

.photo-placeholder span,
.photo-slot span,
.project-visual span {
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.photo-placeholder small,
.photo-slot small { color: var(--ink-3); font-size: 1.25rem; font-weight: 700; }

.about-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 0;
  width: clamp(254px, calc(30vw + 24px), 344px);
  height: clamp(254px, calc(30vw + 24px), 344px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--border);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(129, 178, 255, .08), transparent 60%);
}

.about-badge {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(19, 25, 35, .86);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .36);
  backdrop-filter: blur(14px);
  color: var(--ink-1);
  font-size: 1.35rem;
  font-weight: 800;
}

.about-badge i { color: var(--lime); }
.badge-1 { right: 4%; top: 15%; }
.badge-2 { left: 4%; bottom: 15%; }

.about-bio { margin-bottom: 2rem; color: var(--ink-2); font-size: 1.65rem; line-height: 1.78; }
.about-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2.8rem 0; }
.info-item { display: flex; flex-direction: column; gap: .35rem; }
.info-label { color: var(--ink-3); font-size: 1.1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.info-val { color: var(--ink-1); font-size: 1.48rem; overflow-wrap: anywhere; }
.info-val a { color: var(--lime); }

.about-social,
.footer-social { display: flex; gap: 1rem; }
.social-link,
.footer-social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 1.6rem;
  transition: transform .2s, border-color .2s, color .2s, background .2s;
}
.social-link:hover,
  .footer-social a:hover { transform: translateY(-3px); border-color: var(--lime); color: var(--lime); background: rgba(129, 178, 255, .075); }

.timeline { position: relative; padding-left: 5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--lime), var(--teal) 56%, transparent);
}

.tl-item { position: relative; margin-bottom: 5rem; }
.tl-item:last-child { margin-bottom: 0; }
.tl-connector { position: absolute; left: -5rem; top: 2rem; width: 5rem; }
.tl-node {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-h);
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--lime);
  font-size: 1.7rem;
}

.tl-card,
.pj-card,
.sk-card,
.edu-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-lg);
  transition: transform .32s var(--ease-out), border-color .32s, background .32s, box-shadow .32s;
}

.tl-card { padding: 3rem; }
.tl-card:hover { transform: translateX(5px); border-color: var(--border-h); background: var(--surface-strong); }

.tl-badges { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.badge {
  display: inline-flex;
  padding: .48rem 1.1rem;
  border-radius: 999px;
  font-size: 1.16rem;
  font-weight: 800;
}
.badge-active { border: 1px solid rgba(129, 178, 255, .32); background: rgba(129, 178, 255, .13); color: var(--lime); }
.badge-role { border: 1px solid rgba(98, 168, 255, .28); background: rgba(98, 168, 255, .1); color: var(--blue); }

.tl-title { margin-bottom: .45rem; color: var(--ink-0); font-family: var(--font-display); font-size: 2.25rem; line-height: 1.25; }
.tl-dates { color: var(--ink-3); font-size: 1.35rem; font-weight: 700; }
.tl-desc { margin: 1.7rem 0; color: var(--ink-2); font-size: 1.55rem; }
.tl-bullets { margin: 1.5rem 0; }
.tl-bullets li {
  position: relative;
  padding: .72rem 0 .72rem 2.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  font-size: 1.48rem;
}
.tl-bullets li:last-child { border-bottom: 0; }
.tl-bullets li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 900;
}

.tl-tags,
.pj-tags,
.sk-tags { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.tl-tags li,
.pj-tags li,
.sk-tags li {
  padding: .48rem 1.05rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 800;
}
.tl-tags li { border: 1px solid rgba(126, 209, 212, .22); background: rgba(126, 209, 212, .08); color: var(--teal); }
.pj-tags li { border: 1px solid rgba(255, 122, 168, .22); background: rgba(255, 122, 168, .08); color: var(--rose); }
.sk-tags li { border: 1px solid rgba(98, 168, 255, .22); background: rgba(98, 168, 255, .08); color: var(--blue); }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.pj-card { overflow: hidden; display: flex; flex-direction: column; }
.pj-card:hover,
.sk-card:hover,
.edu-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-h);
  background: var(--surface-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}
.pj-featured { grid-column: span 2; }
.pj-img { min-height: 230px; aspect-ratio: 16 / 9; }
.pj-featured .pj-img { aspect-ratio: 16 / 7.8; }
.emotion-visual { background:
  radial-gradient(circle at 22% 28%, rgba(255, 122, 168, .22), transparent 32%),
  radial-gradient(circle at 80% 68%, rgba(129, 178, 255, .16), transparent 34%),
  linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}
.pj-body { padding: 2.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.pj-cat { color: var(--rose); font-size: 1.15rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pj-card h3 { color: var(--ink-0); font-family: var(--font-display); font-size: 1.95rem; line-height: 1.32; }
.pj-card p { color: var(--ink-2); font-size: 1.45rem; flex: 1; }

.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.4rem; }
.sk-card { padding: 2.6rem; }
.sk-icon { min-height: 34px; margin-bottom: 1.4rem; color: var(--blue); font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }
.sk-card h3,
.edu-card h3 { color: var(--ink-0); font-family: var(--font-display); font-size: 1.85rem; line-height: 1.3; }

#education { background: var(--bg); }
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.edu-card { padding: 2.6rem; }
.edu-card span { display: block; margin-bottom: 1rem; color: var(--lime); font-size: 1.2rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.edu-card p { margin-top: 1rem; color: var(--ink-2); font-size: 1.45rem; }

.photo-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.4rem; }
.photo-slot { min-height: 260px; border-radius: var(--radius-lg); padding: 2rem; }
.photo-slot.large { grid-row: span 2; min-height: 548px; }

.work-in-progress-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  min-height: 320px;
  padding: 3rem;
  border: 1px dashed rgba(255, 255, 255, .18);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)),
    radial-gradient(circle at 24% 18%, rgba(255, 122, 168, .12), transparent 34%),
    radial-gradient(circle at 78% 76%, rgba(126, 209, 212, .1), transparent 32%);
  color: var(--ink-2);
  text-align: center;
  pointer-events: none;
  opacity: .9;
}

.work-in-progress-card i {
  color: var(--lime);
  font-size: 3.8rem;
}

.work-in-progress-card h3 {
  color: var(--ink-0);
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1.2;
}

.work-in-progress-card p {
  font-size: 1.6rem;
}

#contact { background: var(--bg); }
.contact-panel {
  padding: 5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 18%, rgba(129, 178, 255, .12), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
  box-shadow: 0 32px 80px rgba(0, 0, 0, .3);
}
.contact-panel p:not(.section-eyebrow) { max-width: 680px; margin: 1.5rem 0 2.6rem; color: var(--ink-2); font-size: 1.7rem; }

#footer { padding: 6rem 0 3.5rem; background: var(--bg-1); border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; text-align: center; }
.footer-brand { font-size: 4.4rem; }
.footer-tagline { color: var(--ink-2); font-size: 1.55rem; }
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--ink-3);
  font-size: 1.35rem;
}
.footer-bottom a { color: var(--ink-2); }

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-left,
  .hero-right,
  .hero-visual { grid-column: 1; grid-row: auto; }
  .hero-visual { min-height: 380px; }
  .model-card { min-height: 390px; max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 5rem; }
  .about-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .projects-grid,
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .pj-featured { grid-column: span 2; }
}

@media (max-width: 768px) {
  html { font-size: 9px; }
  #header { padding: 0 2rem; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-controls { margin-left: auto; gap: .6rem; }
  .control-btn {
    min-width: 42px;
    padding: .7rem .9rem;
    font-size: 1.08rem;
  }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    position: fixed;
    inset: 72px 0 0;
    z-index: 850;
    flex-direction: column;
    gap: 0;
    padding: 3rem;
    background: rgba(7, 9, 13, .98);
    backdrop-filter: blur(18px);
  }
  .nav-links.open .nav-link {
    width: 100%;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink-0);
    font-family: var(--font-display);
    font-size: 2.7rem;
  }
  #hero { padding-inline: 2rem; }
  .hero-title { font-size: clamp(4.2rem, 12vw, 6.6rem); }
  .hero-stats { width: 100%; justify-content: space-between; }
  .stat { padding: 0 1rem; }
  .hero-scroll { display: none; }
  .timeline { padding-left: 4rem; }
  .tl-connector { left: -4rem; }
  .tl-node { width: 36px; height: 36px; }
  .about-badge { display: none; }
  .about-info-grid,
  .projects-grid,
  .skills-grid,
  .edu-grid,
  .photo-grid { grid-template-columns: 1fr; }
  .pj-featured,
  .photo-slot.large { grid-column: auto; grid-row: auto; }
  .photo-slot.large { min-height: 360px; }
  .contact-panel { padding: 3rem; }
  .footer-bottom { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  html { font-size: 8.5px; }
  .container { padding: 0 2rem; }
  .nav-controls { gap: .45rem; }
  .toggle-group { padding: .35rem; }
  .hero-actions,
  .contact-actions { flex-direction: column; }
  .btn-primary,
  .btn-ghost { width: 100%; }
  .hero-stats { align-items: stretch; padding: 1.5rem; }
  .stat-num { font-size: 2.25rem; }
  .stat-label { white-space: normal; }
  .model-card { min-height: 330px; }
  .model-core { height: 220px; }
  .photo-placeholder { min-height: 420px; }
  .about-img-wrap { min-height: 300px; }
  .about-photo { width: 220px; height: 220px; }
  .about-frame { width: 244px; height: 244px; }
}





