:root {
  --bg: #0c0a0b;
  --bg-2: #100c0e;
  --surface: #151012;
  --surface-2: #1a1316;
  --text: #f3ecea;
  --muted: #b6a7a5;
  --faint: #7d6f6e;
  --red: #e0263f;
  --red-bright: #ff3b55;
  --red-deep: #8e0f22;
  --red-soft: rgba(224, 38, 63, 0.12);
  --line: rgba(243, 236, 234, 0.10);
  --line-strong: rgba(243, 236, 234, 0.18);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(224, 38, 63, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(142, 15, 34, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, p { margin: 0; }

a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
button { font: inherit; }

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #080606; }
::-webkit-scrollbar-thumb { background: #2a1a1d; border: 2px solid #080606; }
::-webkit-scrollbar-thumb:hover { background: var(--red-deep); }

.container { width: min(1160px, 92vw); max-width: none; margin: 0 auto; padding: 0; }

.section { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 1.6rem;
  max-width: 18ch;
}

.section-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 2.4rem;
}

.link {
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, color .25s ease;
}
.link:hover { color: var(--red-bright); border-color: var(--red-bright); }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn i { font-size: .85em; }
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(224, 38, 63, 0.7);
}
.btn--primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(224, 38, 63, 0.8); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--red); color: var(--red-bright); transform: translateY(-2px); }

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 1200; background: transparent; }
.scroll-progress__fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-bright)); }

/* Loading */
.loading {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bg);
  transition: opacity .7s ease, visibility .7s ease;
}
.loading.is-hidden { opacity: 0; visibility: hidden; }
.loading__brand { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.loading__text { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--faint); }
.loading__bar { width: min(260px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.loading__fill { width: 0; height: 100%; background: var(--red); transition: width .18s ease; }

/* Navigation */
.site-nav {
  padding: 1.1rem 0;
  background: rgba(12, 10, 11, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: padding .3s ease, background .3s ease;
  z-index: 1100;
}
.nav-brand { display: flex; flex-direction: column; line-height: 1.1; }
.nav-brand__name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; color: var(--text); }
.nav-brand__role { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin-top: 3px; }

.site-nav .navbar-nav { align-items: center; gap: .15rem; }
.site-nav .nav-link {
  position: relative;
  padding: .45rem .7rem !important;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--muted);
  transition: color .25s ease;
}
.site-nav .nav-link::after {
  content: '';
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .2rem;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav .nav-link:hover { color: var(--text); }
.site-nav .nav-link:hover::after { transform: scaleX(1); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-left: .5rem;
  padding: .35rem .65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .1em;
  transition: border-color .25s ease, color .25s ease;
}
.lang-toggle:hover { border-color: var(--red); color: var(--text); }
.lang-toggle.is-switching { animation: lang-pulse .35s ease; }
@keyframes lang-pulse { 50% { transform: scale(.92); opacity: .6; } }

.navbar-toggler { border: 1px solid var(--line-strong); border-radius: 4px; padding: .4rem .5rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--red-soft); }
.toggler-bars { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.toggler-bars span { display: block; height: 1.5px; background: var(--text); transition: transform .3s ease, opacity .3s ease; }
.navbar-toggler.is-open .toggler-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.navbar-toggler.is-open .toggler-bars span:nth-child(2) { opacity: 0; }
.navbar-toggler.is-open .toggler-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero__glow--one {
  width: 46vw;
  height: 46vw;
  right: -8vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(224, 38, 63, 0.28), transparent 65%);
  animation: glow-float 16s ease-in-out infinite alternate;
}
.hero__glow--two {
  width: 36vw;
  height: 36vw;
  left: -12vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgba(142, 15, 34, 0.32), transparent 65%);
  animation: glow-float 20s ease-in-out infinite alternate-reverse;
}
@keyframes glow-float {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow { opacity: 0; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 8.6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 1.8rem;
}
.hero__title span { display: block; opacity: 0; }
.hero__title span:last-child { color: var(--red); font-style: italic; }
.hero__lead {
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 2.2rem;
  opacity: 0;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.6rem; opacity: 0; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--faint);
  opacity: 0;
}
.hero__meta i { color: var(--red); margin-right: .35rem; }
.hero__meta .status { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta .status i { width: 7px; height: 7px; margin: 0; border-radius: 50%; background: var(--red); animation: status-pulse 2.4s ease-in-out infinite; }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 38, 63, .5); } 50% { box-shadow: 0 0 0 6px rgba(224, 38, 63, 0); } }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  width: 22px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  z-index: 1;
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: var(--red);
  animation: scroll-dot 2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

body.is-loaded .hero__eyebrow { animation: rise .8s var(--ease) .05s both; }
body.is-loaded .hero__title span:nth-child(1) { animation: rise .95s var(--ease) .12s both; }
body.is-loaded .hero__title span:nth-child(2) { animation: rise .95s var(--ease) .22s both; }
body.is-loaded .hero__lead { animation: rise .9s var(--ease) .34s both; }
body.is-loaded .hero__actions { animation: rise .9s var(--ease) .44s both; }
body.is-loaded .hero__meta { animation: rise .9s var(--ease) .54s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* About */
.about__grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__portrait { position: sticky; top: 7rem; }
.portrait {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 10, 11, 0.55));
  pointer-events: none;
}
.portrait__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.01);
  transition: filter .6s var(--ease), transform .8s var(--ease);
}
.portrait:hover .portrait__img { filter: grayscale(0) contrast(1); transform: scale(1.05); }
.about__body p { color: var(--muted); line-height: 1.8; margin-bottom: 1.3rem; max-width: 62ch; }
.about__body p.section-lead { color: var(--text); }

.facts { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.fact {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.fact dt { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 3px; }
.fact dd { margin: 0; font-size: .95rem; color: var(--text); }

/* Skills */
.skills__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.skill-group__title {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1.2rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li {
  padding: .42rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .84rem;
  color: var(--muted);
  background: rgba(243, 236, 234, 0.02);
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s var(--ease);
}
.tags li:hover { color: var(--text); border-color: var(--red); background: var(--red-soft); transform: translateY(-2px); }

/* Experience */
.timeline { border-top: 1px solid var(--line); }
.timeline__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--line);
  transition: background .3s ease, padding-left .3s var(--ease);
}
.timeline__item:hover { background: linear-gradient(90deg, rgba(224, 38, 63, 0.05), transparent 60%); padding-left: 1rem; }
.timeline__date { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; color: var(--red); padding-top: 4px; }
.timeline__role { font-family: var(--font-display); font-size: 1.45rem; font-weight: 400; letter-spacing: -.01em; margin-bottom: .25rem; }
.timeline__org { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.timeline__desc { font-size: .93rem; color: var(--faint); max-width: 62ch; margin: 0; }

/* Education */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 3rem; }
.edu-card {
  position: relative;
  padding: 1.8rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color .3s ease, transform .4s var(--ease), background .3s ease;
}
.edu-card:hover { border-color: rgba(224, 38, 63, 0.5); transform: translateY(-4px); background: var(--surface-2); }
.edu-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(224, 38, 63, 0.35);
  border-radius: 999px;
  padding: .2rem .55rem;
  margin-bottom: 1.1rem;
}
.edu-card__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 400; line-height: 1.2; margin-bottom: .35rem; }
.edu-card__org { font-size: .88rem; color: var(--muted); margin-bottom: .9rem; }
.edu-card__desc { font-size: .9rem; color: var(--faint); margin: 0; }

.certs { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.certs__title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.certs__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem 2rem; }
.certs__list li { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); padding: .4rem 0; border-bottom: 1px solid var(--line); }
.certs__list li span { font-family: var(--font-mono); font-size: .74rem; color: var(--red); }

/* Work */
.project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .35s ease, transform .45s var(--ease), box-shadow .45s var(--ease);
}
.project:hover { border-color: rgba(224, 38, 63, 0.55); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.project__media {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(224, 38, 63, 0.35), transparent 60%),
    linear-gradient(150deg, #1a0d10, #0d090a);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.project__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(243, 236, 234, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(243, 236, 234, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000 30%, transparent 75%);
}
.project__icon {
  position: relative;
  font-size: 4.5rem;
  color: var(--red);
  transition: transform .6s var(--ease);
  text-shadow: 0 10px 40px rgba(224, 38, 63, 0.4);
}
.project:hover .project__icon { transform: scale(1.08) rotate(-4deg); }
.project__body { padding: clamp(2rem, 4vw, 3.2rem); display: flex; flex-direction: column; justify-content: center; }
.project__index { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; color: var(--red); margin-bottom: 1rem; }
.project__title { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: .4rem; }
.project__quote { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--muted); margin-bottom: 1.1rem; }
.project__desc { font-size: .95rem; line-height: 1.75; color: var(--faint); margin-bottom: 1.6rem; max-width: 46ch; }
.project__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: .3rem;
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.project__cta i { font-size: .8em; transition: transform .3s var(--ease); }
.project:hover .project__cta { color: var(--red-bright); border-color: var(--red); }
.project:hover .project__cta i { transform: translateX(4px); }

/* Work overview */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.work-card {
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .35s ease, transform .4s var(--ease), background .35s ease;
}
.work-card:hover { border-color: rgba(224, 38, 63, 0.45); transform: translateY(-3px); background: var(--surface-2); }
.work-card--wide { grid-column: 1 / -1; }
.work-card__index { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; color: var(--red); margin-bottom: .9rem; }
.work-card__title { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: .8rem; }
.work-card__text { font-size: .95rem; line-height: 1.75; color: var(--muted); max-width: 78ch; margin-bottom: 1.3rem; }
.work-tags { margin-top: .2rem; }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .95rem; }
.work-list li { padding-top: .95rem; border-top: 1px solid var(--line); }
.work-list li:first-child { padding-top: 0; border-top: 0; }
.work-list h4 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; margin-bottom: .15rem; }
.work-list p { font-size: .87rem; line-height: 1.6; color: var(--faint); margin: 0; }
.work-list--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .2rem 2.4rem; }
.work-list--grid li { border-top: 1px solid var(--line); padding-top: .95rem; }
.work-list--grid li:nth-child(-n+2) { border-top: 0; padding-top: 0; }

/* Music */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.tab {
  padding: .5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
}
.tab:hover { color: var(--text); border-color: var(--red); }
.tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.panel { display: none; }
.panel.is-active { display: block; animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.spotify-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.spotify-card {
  flex: 0 1 340px;
  max-width: 380px;
  padding: .85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .3s ease, transform .4s var(--ease);
}
.spotify-card:hover { border-color: rgba(224, 38, 63, 0.45); transform: translateY(-3px); }
.spotify-card iframe { border: 0; border-radius: 6px; display: block; }
.spotify-label { font-size: .82rem; color: var(--muted); text-align: center; margin: .7rem 0 0; }
.panel__cta { text-align: center; margin-top: 1.8rem; }

.youtube-card, .instagram-card { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.youtube-thumb {
  position: relative;
  height: 300px;
  display: grid;
  place-items: center;
  gap: .8rem;
  background:
    radial-gradient(circle at 50% 45%, rgba(224, 38, 63, 0.22), transparent 60%),
    linear-gradient(150deg, #1a0d10, #0d090a);
  cursor: pointer;
}
.youtube-play { font-size: 3.8rem; color: var(--red); transition: transform .3s var(--ease); }
.youtube-thumb:hover .youtube-play { transform: scale(1.12); }
.youtube-thumb__label { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.youtube-info { padding: 1.6rem; }
.youtube-info h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; margin-bottom: .3rem; }
.youtube-info p { color: var(--faint); font-size: .9rem; margin-bottom: .7rem; }
.instagram-card { padding: 1.6rem; }
.instagram-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.instagram-avatar { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #feda75, #d62976 50%, #4f5bd5); color: #fff; font-size: 1.4rem; }
.instagram-header h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; }
.instagram-header p { color: var(--faint); font-size: .86rem; margin: 0; }
.instagram-post {
  height: 200px;
  display: grid;
  place-items: center;
  gap: .5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(150deg, #1a0d10, #0d090a);
  color: var(--muted);
  font-size: .86rem;
  cursor: pointer;
  transition: border-color .3s ease;
}
.instagram-post:hover { border-color: var(--red); }
.instagram-post i { font-size: 2rem; color: var(--red); }

/* Roulette */
.roulette__box {
  max-width: 600px;
  margin: 0 auto;
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}
.roulette__display { min-height: 170px; display: grid; place-items: center; margin-bottom: 1.4rem; }
.roulette__placeholder { color: var(--faint); }
.roulette__placeholder i { display: block; font-size: 2.6rem; color: var(--red); margin-bottom: .8rem; animation: disc-spin 6s linear infinite; }
@keyframes disc-spin { to { transform: rotate(360deg); } }
.roulette__placeholder p { font-size: .9rem; margin: 0; }
.roulette__result { width: 100%; }
.roulette__track { font-family: var(--font-display); font-size: 1.4rem; margin: .8rem 0 0; }
.roulette__playlist { font-family: var(--font-mono); font-size: .72rem; color: var(--red); margin: .2rem 0 0; }
#shuffleBtn.is-spinning i { animation: disc-spin .5s ease; }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.contact-card { padding: 2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.contact-card__link { display: flex; align-items: center; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--text); transition: color .25s ease, padding-left .3s var(--ease); }
.contact-card__link:last-child { border-bottom: 0; }
.contact-card__link i { color: var(--red); width: 18px; text-align: center; }
.contact-card__link:hover { color: var(--red-bright); padding-left: .4rem; }
.contact-card__title { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 1.2rem; }
.socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); transition: all .25s ease; }
.socials a:hover { border-color: var(--red); color: var(--red-bright); transform: translateY(-3px); background: var(--red-soft); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em; color: var(--faint); }
.footer__top { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); transition: color .25s ease; }
.footer__top:hover { color: var(--red); }

/* Lists overlay */
html.is-locked, body.is-locked { overflow: hidden; }
body.is-locked { position: fixed; left: 0; right: 0; width: 100%; }
.lists-overlay { position: fixed; inset: 0; z-index: 1250; display: none; }
.lists-overlay.is-open { display: block; }
.lists-overlay__backdrop { position: absolute; inset: 0; background: rgba(6, 5, 5, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade-in .3s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.lists-overlay__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(940px, 94vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 2.2rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  animation: modal-in .45s var(--ease);
}
@keyframes modal-in { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.lists-close {
  position: absolute;
  right: 1.1rem;
  top: 1.1rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all .25s ease;
}
.lists-close:hover { border-color: var(--red); color: var(--red-bright); transform: rotate(90deg); }
.lists-head { flex: 0 0 auto; }
.lists-head .section-title { margin-bottom: .6rem; }
.lists-head .section-lead { margin-bottom: 1.4rem; }
.lists-controls { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.lists-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.lists-tab {
  padding: .4rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: .8rem;
  cursor: pointer;
  transition: all .25s ease;
}
.lists-tab:hover { color: var(--text); border-color: var(--red); }
.lists-tab.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.lists-search { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line-strong); border-radius: 999px; padding: .4rem .85rem; transition: border-color .25s ease; }
.lists-search:focus-within { border-color: var(--red); }
.lists-search i { color: var(--faint); font-size: .85rem; }
.lists-search input { width: min(220px, 55vw); border: 0; outline: none; background: transparent; color: var(--text); font-family: var(--font-body); font-size: .86rem; }
.lists-table-wrap { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--line); }
.lists-empty { padding: 2.4rem 1rem; text-align: center; color: var(--faint); font-size: .9rem; }
.lists-table { width: 100%; border-collapse: collapse; }
.lists-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-align: left;
  color: var(--faint);
  padding: .9rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  z-index: 2;
}
.lists-table thead th::after { content: '↕'; margin-left: .4rem; opacity: .35; }
.lists-table thead th.is-sorted { color: var(--red); }
.lists-table thead th.is-sorted::after { content: '↓'; opacity: 1; }
.lists-table tbody td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); vertical-align: top; }
.lists-table tbody tr { transition: background .2s ease; }
.lists-table tbody tr:hover { background: rgba(224, 38, 63, 0.06); }
.lists-table .list-title { color: var(--text); font-weight: 500; }
.lists-table .list-year { font-family: var(--font-mono); font-size: .82rem; color: var(--red); white-space: nowrap; width: 80px; }
.lists-hint { flex: 0 0 auto; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; color: var(--faint); margin: 1rem 0 0; }

/* Project modal */
.modal { position: fixed; inset: 0; z-index: 1240; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 5, 5, 0.74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade-in .3s ease; }
.modal__frame {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(620px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  padding: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9);
  animation: modal-in .45s var(--ease);
}
.modal__close { position: absolute; right: 1rem; top: 1rem; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: all .25s ease; }
.modal__close:hover { border-color: var(--red); color: var(--red-bright); transform: rotate(90deg); }
.modal__tag { margin-bottom: .8rem; }
.modal__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; letter-spacing: -.02em; margin-bottom: .5rem; }
.modal__quote { font-family: var(--font-display); font-style: italic; color: var(--muted); margin-bottom: 1rem; }
.modal__desc { color: var(--faint); line-height: 1.8; }

@media (max-width: 991.98px) {
  .site-nav .navbar-collapse {
    margin-top: .8rem;
    padding: .8rem 0 .4rem;
    border-top: 1px solid var(--line);
  }
  .site-nav .navbar-nav { align-items: flex-start; gap: 0; }
  .site-nav .nav-link { padding: .5rem 0 !important; }
  .site-nav .nav-link::after { left: 0; right: auto; width: 24px; }
  .lang-toggle { margin: .6rem 0 0; }
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 380px; }
  .skills__grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card--wide { grid-column: auto; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
  .certs__list { grid-template-columns: 1fr; }
  .project { grid-template-columns: 1fr; }
  .project__media { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .hero { padding: 7.5rem 0 5rem; }
  .hero__title { font-size: clamp(3rem, 15vw, 5rem); }
  .timeline__item { grid-template-columns: 1fr; gap: .5rem; }
  .edu-grid { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: .2rem; }
  .lists-overlay__frame { width: 96vw; max-height: 92vh; padding: 1.4rem 1.1rem; }
  .lists-search { flex: 1 1 100%; }
  .lists-search input { width: 100%; }
  .lists-table thead { display: none; }
  .lists-table, .lists-table tbody, .lists-table tr, .lists-table td { display: block; width: 100%; }
  .lists-table tr { border-bottom: 1px solid var(--line-strong); padding: .6rem 0; }
  .lists-table tbody td { border: 0; padding: .2rem .8rem; }
  .lists-table tbody td::before { content: attr(data-label); display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
  .lists-table .list-title { font-size: 1.1rem; }
  .lists-table .list-year { width: auto; }
  .work-list--grid { grid-template-columns: 1fr; }
  .work-list--grid li:nth-child(-n+2) { border-top: 1px solid var(--line); padding-top: .95rem; }
  .work-list--grid li:first-child { border-top: 0; padding-top: 0; }
}

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