:root {
  --bg: #FAF8FD;
  --surface: #FFFFFF;
  --card: rgba(255, 255, 255, 0.68);
  --text: #1E1A33;
  --muted: #6B6591;
  --line: rgba(30, 26, 51, 0.09);
  --c1: #6D4FDC;
  --c2: #E4579B;
  --c3: #1FA98F;
  --c4: #F29B73;
  --grad: linear-gradient(120deg, #6D4FDC, #E4579B 48%, #F29B73);
  --nav-bg: rgba(250, 248, 253, 0.74);
  --shadow: rgba(86, 66, 180, 0.18);
  --glow: rgba(109, 79, 220, 0.28);
  --ring: rgba(109, 79, 220, 0.35);
}

html[data-theme="dark"] {
  --bg: #0E0B1A;
  --surface: rgba(255, 255, 255, 0.05);
  --card: rgba(255, 255, 255, 0.045);
  --text: #F1EEFB;
  --muted: #9C94BE;
  --line: rgba(255, 255, 255, 0.09);
  --c1: #8B6AF0;
  --c2: #F06BAE;
  --c3: #2FC9A8;
  --c4: #FFB08A;
  --grad: linear-gradient(120deg, #8B6AF0, #F06BAE 48%, #FFB08A);
  --nav-bg: rgba(14, 11, 26, 0.72);
  --shadow: rgba(0, 0, 0, 0.5);
  --glow: rgba(139, 106, 240, 0.35);
  --ring: rgba(139, 106, 240, 0.4);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

::selection {
  background: var(--glow);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--c1) 35%, transparent);
  border-radius: 8px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--c1) 55%, transparent);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

section {
  padding: 6.5rem 0;
  position: relative;
  scroll-margin-top: 6.5rem;
}

.section-head {
  margin-bottom: 3.2rem;
  max-width: 560px;
}

.section-head .kicker {
  color: var(--c3);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.section-head .kicker::before {
  content: '';
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.section-head p {
  color: var(--muted);
  margin-top: 0.8rem;
  font-size: 1.02rem;
}

.reveal {
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--d, 0s);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.99);
}

html.js .reveal.in {
  opacity: 1;
  transform: none;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 300;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  z-index: 100;
  padding: 1.15rem 0;
  transition: padding 0.3s ease, background 0.4s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  padding: 0.72rem 0;
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.32rem;
  text-decoration: none;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

nav a:not(.logo) {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  transition: color 0.25s ease, background 0.25s ease;
}

nav a:not(.logo):hover {
  color: var(--c1);
  background: color-mix(in srgb, var(--c1) 8%, transparent);
}

nav a.active {
  color: var(--c1);
  background: color-mix(in srgb, var(--c1) 12%, transparent);
}

.theme-toggle {
  width: 52px;
  height: 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border: none;
  cursor: pointer;
  position: relative;
  padding: 3px;
  transition: background 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 14px var(--glow);
  flex-shrink: 0;
}

.theme-toggle:hover {
  box-shadow: 0 6px 20px var(--glow);
}

.theme-toggle .knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s cubic-bezier(0.6, -0.28, 0.74, 0.05);
  transform: translateX(0);
}

html[data-theme="dark"] .theme-toggle .knob {
  transform: translateX(24px);
}

.theme-toggle svg {
  width: 13px;
  height: 13px;
  color: var(--c1);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.lang-toggle svg {
  width: 15px;
  height: 15px;
}

.lang-toggle:hover {
  transform: translateY(-2px);
  color: var(--c1);
  border-color: var(--c1);
  box-shadow: 0 8px 20px var(--shadow);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.hamburger span {
  display: block;
  height: 2.4px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

main {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 8rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 5%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 85% 65% at 50% 40%, #000 15%, transparent 72%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  will-change: transform;
}

.blob-1 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle at 30% 30%, var(--c1), color-mix(in srgb, var(--c1) 15%, transparent) 70%);
  top: -160px;
  left: -130px;
  animation: drift1 24s ease-in-out infinite alternate;
}

.blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 60% 40%, var(--c3), color-mix(in srgb, var(--c3) 15%, transparent) 70%);
  bottom: -180px;
  right: -120px;
  animation: drift2 26s ease-in-out infinite alternate;
}

.blob-3 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle at 50% 50%, var(--c2), color-mix(in srgb, var(--c2) 12%, transparent) 70%);
  top: 12%;
  right: 6%;
  opacity: 0.42;
  animation: drift3 20s ease-in-out infinite alternate;
}

.blob-4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 50% 50%, var(--c4), color-mix(in srgb, var(--c4) 12%, transparent) 70%);
  bottom: 6%;
  left: 4%;
  opacity: 0.35;
  animation: drift4 28s ease-in-out infinite alternate;
}

@keyframes drift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(70px, 50px) scale(1.12); }
}
@keyframes drift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-60px, -60px) scale(1.08); }
}
@keyframes drift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-50px, 70px) scale(1.2); }
}
@keyframes drift4 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.15); }
}

.hero .p {
  position: absolute;
  bottom: -12px;
  border-radius: 50%;
  opacity: 0;
  animation: floatUp var(--dr, 18s) linear infinite;
  animation-delay: var(--dl, 0s);
  will-change: transform, opacity;
}

@keyframes floatUp {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 0.7; }
  88% { opacity: 0.35; }
  100% { transform: translate(var(--x, 0), -108vh); opacity: 0; }
}

.hero-inner {
  max-width: 800px;
}

.hero-rise {
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.3, 1) forwards;
}

.hero-rise.d1 { animation-delay: 0.05s; }
.hero-rise.d2 { animation-delay: 0.18s; }
.hero-rise.d3 { animation-delay: 0.3s; }
.hero-rise.d4 { animation-delay: 0.44s; }
.hero-rise.d5 { animation-delay: 0.58s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

.hero h1 {
  font-size: clamp(2.7rem, 7.5vw, 4.8rem);
  line-height: 1.03;
  margin-bottom: 1.2rem;
}

.hero h1 .grad {
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradShift 7s ease infinite;
  white-space: nowrap;
}

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

.hero .role {
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  color: var(--muted);
  font-weight: 500;
  max-width: 620px;
  margin: 0 auto 2.4rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

.btn {
  padding: 0.95rem 2.1rem;
  border-radius: 40px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.28s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--c1), var(--c2) 55%, var(--c4));
  color: #fff;
  box-shadow: 0 12px 28px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px var(--glow);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: var(--card);
}

.btn-outline:hover {
  transform: translateY(-3px);
  border-color: var(--c1);
  color: var(--c1);
  box-shadow: 0 14px 30px var(--shadow);
}

.hero-socials {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.28s ease, color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  transform: translateY(-4px);
  color: var(--c1);
  border-color: var(--c1);
  box-shadow: 0 14px 26px var(--shadow);
}

.scroll-hint {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

.mouse {
  width: 23px;
  height: 37px;
  border: 2px solid var(--muted);
  border-radius: 13px;
  position: relative;
}

.mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: var(--c1);
  animation: scrollWheel 1.7s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 13px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

.project-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.9rem;
  backdrop-filter: blur(12px);
  flex-direction: column;
  display: flex;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: color-mix(in srgb, var(--c1) 45%, var(--line));
  box-shadow: 0 28px 60px var(--shadow);
}

.project-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin-bottom: 1.15rem;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 12px 22px color-mix(in srgb, var(--tc) 40%, transparent);
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000));
}

.card-icon svg {
  width: 27px;
  height: 27px;
}

.card-title-head h3 {
  font-size: 1.32rem;
  margin-bottom: 0.15rem;
}

.card-title-head .sub {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.project-card p {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.project-card p strong {
  color: var(--text);
  font-weight: 700;
}

.badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 0.34em 0.85em;
  border-radius: 999px;
  color: #fff;
  background: color-mix(in srgb, var(--c) 84%, #000 16%);
  border: 1px solid color-mix(in srgb, var(--c) 68%, transparent);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--c) 32%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.badge::before {
  content: '';
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.85);
}

.badge.ink {
  color: #0E0B1A;
  background: color-mix(in srgb, var(--c) 84%, #fff 16%);
}

.badge.ink::before {
  background: #0E0B1A;
  box-shadow: none;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 50%, transparent);
}

.badge.hot {
  animation: badgePulse 2.6s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 3px 12px color-mix(in srgb, var(--c) 35%, transparent); }
  50% { box-shadow: 0 3px 22px color-mix(in srgb, var(--c) 80%, transparent); }
}

.school-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: 0.5rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c1) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--c1) 30%, var(--line));
  color: var(--c1);
  font-size: 0.78rem;
  font-weight: 800;
}

.school-badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.project-links {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--c1);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.project-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s ease;
}

.project-link:hover {
  color: var(--c2);
}

.project-link:hover svg {
  transform: translateX(4px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 1.15rem;
  padding: 0.5rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c2) 10%, var(--card));
  border: 1px solid color-mix(in srgb, var(--c2) 30%, var(--line));
  color: var(--c2);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.journey-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.journey-timeline > .journey-path {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
}

.journey-path-mobile {
  display: none;
}

.journey-path path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-path .line-base {
  stroke: var(--line);
  stroke-width: 9px;
}

.journey-path .line-main {
  stroke: var(--c1);
  stroke-width: 3px;
  opacity: 0.85;
}

.journey-path .line-dash {
  stroke: var(--c2);
  stroke-width: 3px;
  stroke-dasharray: 1 12;
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--c2) 45%, transparent));
  animation: journeyFlow 10s linear infinite;
}

@keyframes journeyFlow {
  to {
    stroke-dashoffset: -130;
  }
}

.journey-milestone {
  position: relative;
  z-index: 1;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 0 50%;
}

.journey-milestone:nth-child(even) {
  padding: 0 50% 0 0;
}

.journey-milestone:nth-child(even) .milestone-card {
  margin-left: auto;
  text-align: right;
}

.milestone-card {
  max-width: 460px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.8rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px var(--shadow);
}

.milestone-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c2);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.milestone-tag::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.journey-milestone:nth-child(even) .milestone-tag::before {
  margin-left: auto;
  order: 2;
}

.milestone-card h3 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  margin-bottom: 0.65rem;
}

.milestone-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.journey-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--c1);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 16%, transparent);
}

.journey-dot-here {
  border-color: var(--c2);
  background: radial-gradient(circle, var(--c2) 40%, var(--bg) 56%);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c2) 16%, transparent);
  animation: herePulse 2.4s ease-out infinite;
}

@keyframes herePulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--c2) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 14px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
  gap: 1.1rem;
}

.skill-chip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.5rem 1rem 1.35rem;
  text-align: center;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-chip::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 40%, transparent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-chip:hover {
  transform: translateY(-7px) rotate(-1deg);
  border-color: color-mix(in srgb, var(--tc) 55%, var(--line));
  box-shadow: 0 20px 38px var(--shadow);
}

.skill-chip:hover::after {
  opacity: 1;
}

.skill-chip .icon-wrap {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.9rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--ic, #fff);
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000));
  box-shadow: 0 10px 20px color-mix(in srgb, var(--tc) 32%, transparent);
}

.skill-chip .icon-wrap svg {
  width: 25px;
  height: 25px;
}

.skill-chip .glyph {
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.skill-chip .icon-wrap.ink {
  color: #0E0B1A;
}

.skill-chip .icon-wrap.inkdark {
  background: linear-gradient(180deg, #F7DF1E, #F0C808);
}

.skill-chip .icon-wrap.inkdark .glyph {
  color: #0E0B1A;
}

.skill-chip span:not(.glyph) {
  display: block;
  font-weight: 800;
  font-size: 0.93rem;
}

.skill-chip small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--tc) 50%, var(--line));
  box-shadow: 0 18px 34px var(--shadow);
}

.contact-card .icon-wrap {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--ic, #fff);
  background: linear-gradient(140deg, var(--tc), color-mix(in srgb, var(--tc) 55%, #000));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tc) 30%, transparent);
}

.contact-card .icon-wrap svg {
  width: 21px;
  height: 21px;
}

.contact-card .label {
  font-weight: 800;
  font-size: 0.92rem;
}

.contact-card .sub {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  word-break: break-word;
}

footer {
  text-align: center;
  padding: 2.6rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

footer p {
  margin: 0.12rem 0;
}

footer .heart {
  color: var(--c2);
}

#toTop {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 150;
  box-shadow: 0 14px 28px var(--glow);
}

#toTop.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

#toTop:hover {
  box-shadow: 0 20px 40px var(--glow);
}

#toTop svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 920px) {
  .hamburger {
    display: flex;
  }

  nav ul {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 24px 50px var(--shadow);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(20px);
  }

  nav.open ul {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  nav a:not(.logo) {
    display: block;
    padding: 0.85rem 1rem;
  }

  nav ul li.toggle-row {
    justify-content: center;
    margin-top: 0.35rem;
    padding: 0.4rem 0 0.25rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .hero {
    padding: 7.5rem 1.4rem 7rem;
  }

  .journey-path-desktop {
    display: none;
  }

  .journey-path-mobile {
    display: block;
  }

  .journey-milestone,
  .journey-milestone:nth-child(even) {
    min-height: 250px;
    padding: 1rem 0 1rem 34%;
    justify-content: flex-start;
  }

  .journey-milestone:nth-child(even) .milestone-card {
    margin-left: 0;
    text-align: left;
  }

  .journey-milestone .milestone-card {
    max-width: none;
  }

  .journey-milestone:nth-child(even) .milestone-tag::before {
    margin-left: 0;
    order: 0;
  }

  .journey-dot {
    left: 13%;
  }

  .cta-row {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.4rem;
  }
}

@media (max-width: 440px) {
  .hero h1 .grad {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero .p {
    display: none;
  }

  .hero-rise {
    animation-delay: 0s !important;
  }

  .reveal,
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}