@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #06101c;
  --bg-soft: #0a1726;
  --surface: rgba(15, 31, 49, 0.72);
  --surface-solid: #0e1f31;
  --surface-hover: #142a41;
  --text: #f4f8fc;
  --text-soft: #a9b8c8;
  --text-muted: #6f8297;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.21);
  --accent: #38dcff;
  --accent-2: #8f6bff;
  --accent-3: #a7ff84;
  --danger: #ff7d99;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(6, 16, 28, 0.75);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --section-max: 1240px;
  --header-height: 82px;
}

html[data-theme="light"] {
  --bg: #f5f8fc;
  --bg-soft: #eaf1f8;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-hover: #eef4fa;
  --text: #081421;
  --text-soft: #465a6d;
  --text-muted: #718398;
  --line: rgba(8, 20, 33, 0.11);
  --line-strong: rgba(8, 20, 33, 0.2);
  --accent: #007f9d;
  --accent-2: #6f46e8;
  --accent-3: #388d1f;
  --shadow: 0 24px 70px rgba(28, 56, 85, 0.14);
  --header-bg: rgba(245, 248, 252, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(56, 220, 255, 0.09), transparent 27%),
    radial-gradient(circle at 86% 35%, rgba(143, 107, 255, 0.1), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  transition: background-color 0.35s ease, color 0.35s ease;
}

body.menu-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #001018;
}

::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  border: 2px solid var(--bg);
  border-radius: 20px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

button,
a,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
}

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

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

.pointer-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 220, 255, 0.10), transparent 68%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 24px;
  background: #06101c;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader p {
  margin: 0;
  color: #a9b8c8;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loader-orbit {
  position: relative;
  width: 76px;
  height: 76px;
  animation: loader-spin 3s linear infinite;
}

.loader-orbit span {
  position: absolute;
  inset: 50%;
  width: 14px;
  height: 14px;
  margin: -7px;
  border-radius: 50%;
  background: #38dcff;
  box-shadow: 0 0 25px rgba(56, 220, 255, 0.75);
}

.loader-orbit span:nth-child(1) { transform: translateY(-30px); }
.loader-orbit span:nth-child(2) { transform: rotate(120deg) translateY(-30px); background: #8f6bff; }
.loader-orbit span:nth-child(3) { transform: rotate(240deg) translateY(-30px); background: #a7ff84; }

@keyframes loader-spin { to { transform: rotate(360deg); } }

.scroll-progress {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  box-shadow: 0 0 18px rgba(56, 220, 255, 0.55);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}

.site-header.scrolled {
  height: 70px;
  border-color: var(--line);
  background: var(--header-bg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 220, 255, 0.14), rgba(143, 107, 255, 0.16));
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.02);
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
}

.brand-copy small {
  color: var(--text-muted);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.desktop-nav a {
  position: relative;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.menu-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.icon-button:hover,
.menu-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.theme-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.menu-toggle {
  display: none;
  gap: 4px;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.mobile-menu {
  position: fixed;
  inset: 70px 16px auto;
  z-index: 999;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px) scale(0.98);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.mobile-menu a {
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

.mobile-menu a:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.section-shell {
  position: relative;
  width: min(calc(100% - 40px), var(--section-max));
  margin-inline: auto;
  padding: 120px 0;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
  padding-top: calc(var(--header-height) + 72px);
  padding-bottom: 90px;
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.hero-orb-one {
  left: -9vw;
  top: 16%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(56, 220, 255, 0.28);
  box-shadow: inset 0 0 60px rgba(56, 220, 255, 0.08), 0 0 90px rgba(56, 220, 255, 0.06);
  animation: float-orb 8s ease-in-out infinite;
}

.hero-orb-two {
  right: -6vw;
  bottom: 6%;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(143, 107, 255, 0.28);
  box-shadow: inset 0 0 50px rgba(143, 107, 255, 0.1), 0 0 80px rgba(143, 107, 255, 0.08);
  animation: float-orb 7s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(18px, -26px, 0) rotate(12deg); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.hero h1,
.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 {
  font-size: clamp(3.35rem, 7.2vw, 7.2rem);
}

.gradient-text {
  background: linear-gradient(92deg, var(--accent), var(--accent-2) 58%, var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted {
  color: var(--text-muted);
}

.hero-role {
  min-height: 35px;
  margin: 30px 0 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.38rem);
}

.hero-role strong {
  color: var(--accent);
  font-weight: 700;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.16em;
  background: var(--accent);
  animation: cursor-blink 0.8s steps(1) infinite;
}

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

.hero-description {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: clamp(0.97rem, 1.3vw, 1.1rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.25), transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.button:hover::before {
  transform: translateX(120%);
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: linear-gradient(120deg, var(--accent), #7bf3ff);
  color: #02121b;
  box-shadow: 0 15px 38px rgba(56, 220, 255, 0.18);
}

.button-primary:hover {
  box-shadow: 0 20px 45px rgba(56, 220, 255, 0.3);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(15px);
}

.button-secondary:hover {
  border-color: var(--accent);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-3) 16%, transparent), 0 0 16px var(--accent-3);
  animation: status-pulse 1.8s ease-in-out infinite;
}

@keyframes status-pulse { 50% { opacity: 0.55; transform: scale(0.86); } }

.hero-visual {
  display: grid;
  place-items: center;
}

.profile-frame {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 0.82;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  backdrop-filter: blur(18px);
}

.profile-frame::before,
.profile-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.profile-frame::before {
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(56, 220, 255, 0.65), transparent 35%, rgba(143, 107, 255, 0.45), transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.profile-frame::after {
  right: -45px;
  top: 70px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 107, 255, 0.32), transparent 70%);
  filter: blur(3px);
}

.profile-grid {
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.profile-photo {
  position: absolute;
  inset: 18px 18px 118px;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 65% 20%, rgba(56, 220, 255, 0.18), transparent 24%),
    linear-gradient(145deg, #10283d, #081522 62%, #12162b);
  box-shadow: inset 0 0 50px rgba(56, 220, 255, 0.06);
}

.profile-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 16, 28, 0.86), transparent 45%);
  pointer-events: none;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.photo-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--text);
}

.photo-placeholder span {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(56, 220, 255, 0.16), rgba(143, 107, 255, 0.18));
  font-family: "Space Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.025), 0 0 70px rgba(56, 220, 255, 0.1);
}

.photo-placeholder small {
  color: #a9b8c8;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.photo-upload {
  position: absolute;
  right: 32px;
  top: 32px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(6, 16, 28, 0.68);
  color: #d9e5ef;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.photo-upload:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.profile-caption {
  position: absolute;
  left: 34px;
  bottom: 32px;
  z-index: 3;
  display: grid;
  line-height: 1.25;
}

.profile-caption span {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-caption strong {
  margin-top: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.floating-badge {
  position: absolute;
  z-index: 5;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-solid);
  color: var(--text-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: var(--shadow);
  animation: badge-float 4s ease-in-out infinite;
}

.badge-top {
  left: -35px;
  top: 24%;
}

.badge-bottom {
  right: -42px;
  bottom: 28%;
  animation-delay: -2s;
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.scroll-cue {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-90deg) translateX(-10px);
  transform-origin: left center;
}

.scroll-cue i {
  position: relative;
  width: 45px;
  height: 1px;
  overflow: hidden;
  background: var(--line-strong);
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

@keyframes scroll-line {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.stats-strip {
  width: min(calc(100% - 40px), var(--section-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.stat {
  min-height: 148px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-content: center;
  align-items: baseline;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat strong,
.stat > span {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 1;
}

.stat > span {
  margin-right: 10px;
  color: var(--accent);
}

.stat small {
  max-width: 135px;
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading h2,
.contact h2 {
  font-size: clamp(2.7rem, 5.3vw, 5.3rem);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 60px;
}

.split-heading p {
  max-width: 420px;
  margin: 0 0 6px auto;
  color: var(--text-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.glass-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.about-copy {
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
}

.about-copy .lead {
  margin: 0 0 22px;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.35;
}

.about-copy > p:not(.lead) {
  margin: 0;
  color: var(--text-soft);
}

.about-highlights {
  margin-top: 38px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.about-highlights > div {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.about-highlights span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
}

.about-highlights p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.about-highlights strong {
  color: var(--text);
}

.skills-panel {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface), rgba(56, 220, 255, 0.035));
}

.skills-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 34px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.skill-tab {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.skill-tab.active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.skill-content {
  display: none;
}

.skill-content.active {
  display: grid;
  gap: 21px;
  animation: fade-content 0.45s ease;
}

@keyframes fade-content {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.skill-meter > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.skill-meter b {
  color: var(--accent);
  font-size: 0.68rem;
}

.skill-meter i {
  position: relative;
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.skill-meter i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(56, 220, 255, 0.38);
  transition: width 1.1s cubic-bezier(.2,.7,.2,1);
}

.skill-content.animate-bars .skill-meter i::after {
  width: var(--level);
}

.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.tech-cloud span,
.project-meta span,
.timeline-tag {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.highlight-card {
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--surface), rgba(143, 107, 255, 0.04));
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.highlight-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 220, 255, 0.13), transparent 70%);
  transition: transform 0.5s ease;
}

.highlight-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.highlight-card:hover::after {
  transform: scale(1.35);
}

.card-index {
  position: absolute;
  right: 28px;
  top: 24px;
  color: var(--text-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.75rem;
}

.highlight-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(56, 220, 255, 0.07);
  color: var(--accent);
  font-size: 1.45rem;
  box-shadow: inset 0 0 18px rgba(56, 220, 255, 0.06);
}

.highlight-card h3,
.timeline-card h3,
.project-card h3,
.talk-item h3,
.education-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.025em;
}

.highlight-card h3 {
  font-size: 1.55rem;
}

.highlight-card p {
  margin: 14px 0 24px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.card-line {
  height: 1px;
  margin-top: auto;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform-origin: left;
  transform: scaleX(0.35);
  transition: transform 0.4s ease;
}

.highlight-card:hover .card-line {
  transform: scaleX(1);
}

.highlight-card small {
  margin-top: 15px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-strong) 6%, var(--line-strong) 94%, transparent);
}

.timeline-item {
  position: relative;
  width: 50%;
  min-height: 260px;
  padding: 0 55px 45px 0;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 45px 55px;
}

.timeline-marker {
  position: absolute;
  right: -8px;
  top: 17px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 18px rgba(56, 220, 255, 0.25);
}

.timeline-item:nth-child(even) .timeline-marker {
  right: auto;
  left: -8px;
}

.timeline-marker span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-date {
  margin-bottom: 12px;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: right;
  text-transform: uppercase;
}

.timeline-item:nth-child(even) .timeline-date {
  text-align: left;
}

.timeline-card {
  padding: 28px;
  border-radius: 23px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.timeline-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  transform: translateY(-5px);
}

.timeline-tag {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
}

.timeline-card h3 {
  font-size: 1.35rem;
}

.timeline-card h4 {
  margin: 7px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline-card p {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 30px;
}

.project-filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.project-filter:hover,
.project-filter.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-solid));
  color: var(--text);
  transform: translateY(-2px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.3s ease;
}

.project-card.is-hidden {
  display: none;
}

.project-card:hover {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
}

.project-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.project-visual {
  position: relative;
  min-height: 285px;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.project-featured .project-visual {
  min-height: 390px;
}

.visual-label {
  position: absolute;
  left: 22px;
  top: 20px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.visual-newgen {
  background:
    radial-gradient(circle at center, rgba(56, 220, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #07111f, #11223a 50%, #17152f);
}

.visual-newgen::before,
.visual-course::before,
.visual-steam::before,
.visual-iot::before,
.visual-data::before,
.visual-lms::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 25px 25px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  z-index: -1;
}

.visual-newgen strong {
  position: absolute;
  z-index: 2;
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.84;
  letter-spacing: -0.07em;
  text-align: center;
  text-shadow: 0 10px 55px rgba(56, 220, 255, 0.22);
}

.quantum-core {
  position: relative;
  width: 245px;
  height: 245px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 255, 132, 0.25), rgba(56, 220, 255, 0.13) 35%, transparent 68%);
  animation: quantum-pulse 4s ease-in-out infinite;
}

.quantum-core i {
  position: absolute;
  inset: 18%;
  border: 1px solid rgba(56, 220, 255, 0.42);
  border-radius: 50%;
  animation: quantum-spin 8s linear infinite;
}

.quantum-core i:nth-child(2) { transform: rotate(60deg) scaleY(0.43); border-color: rgba(143, 107, 255, 0.52); animation-duration: 10s; }
.quantum-core i:nth-child(3) { transform: rotate(-60deg) scaleY(0.43); border-color: rgba(167, 255, 132, 0.42); animation-duration: 12s; }

@keyframes quantum-pulse { 50% { transform: scale(1.08); filter: brightness(1.25); } }
@keyframes quantum-spin { to { rotate: 360deg; } }

.visual-course { background: linear-gradient(145deg, #1c1736, #111c31); }
.visual-steam { background: linear-gradient(145deg, #082538, #102536); }
.visual-iot { background: linear-gradient(145deg, #101d33, #18243b); }
.visual-data { background: linear-gradient(145deg, #102637, #0e1b2d); }
.visual-lms { background: linear-gradient(145deg, #221830, #101e32); }

.book-shape {
  position: relative;
  width: 160px;
  height: 115px;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px 28px 28px 8px;
  transform: rotate(-7deg);
  box-shadow: 18px 15px 0 rgba(143, 107, 255, 0.18), 0 0 45px rgba(143, 107, 255, 0.18);
}

.book-shape::before,
.book-shape::after,
.book-shape i {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}
.book-shape::before { top: 35px; }
.book-shape::after { top: 58px; }
.book-shape i { top: 80px; }

.circuit-lines {
  position: relative;
  width: 165px;
  height: 165px;
  border: 1px solid rgba(56, 220, 255, 0.34);
  border-radius: 28px;
  transform: rotate(8deg);
  box-shadow: 0 0 50px rgba(56, 220, 255, 0.14);
}

.circuit-lines::before {
  content: "μP";
  position: absolute;
  inset: 30%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 255, 132, 0.45);
  border-radius: 12px;
  color: #a7ff84;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.circuit-lines i {
  position: absolute;
  width: 44px;
  height: 1px;
  background: rgba(56, 220, 255, 0.5);
}
.circuit-lines i:nth-child(1) { left: 0; top: 38px; }
.circuit-lines i:nth-child(2) { right: 0; top: 70px; }
.circuit-lines i:nth-child(3) { left: 0; bottom: 38px; }
.circuit-lines i:nth-child(4) { right: 0; bottom: 26px; }

.chip {
  position: relative;
  width: 145px;
  height: 105px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(56, 220, 255, 0.42);
  border-radius: 16px;
  background: rgba(6, 16, 28, 0.65);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  box-shadow: inset 0 0 30px rgba(56, 220, 255, 0.07), 0 0 45px rgba(56, 220, 255, 0.14);
}

.chip::before,
.chip::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  height: 18px;
  border-top: 2px dotted rgba(255, 255, 255, 0.3);
}
.chip::before { top: 20px; }
.chip::after { bottom: 2px; }

.data-bars {
  height: 150px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.data-bars i {
  width: 18px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(to top, #8f6bff, #38dcff);
  box-shadow: 0 0 20px rgba(56, 220, 255, 0.15);
  transform-origin: bottom;
  animation: data-bounce 2.4s ease-in-out infinite;
}
.data-bars i:nth-child(1) { height: 44%; }
.data-bars i:nth-child(2) { height: 72%; animation-delay: -0.4s; }
.data-bars i:nth-child(3) { height: 55%; animation-delay: -0.8s; }
.data-bars i:nth-child(4) { height: 92%; animation-delay: -1.2s; }
.data-bars i:nth-child(5) { height: 78%; animation-delay: -1.6s; }
@keyframes data-bounce { 50% { transform: scaleY(0.8); filter: brightness(1.3); } }

.dashboard-ui {
  width: 185px;
  height: 130px;
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  grid-template-rows: 0.45fr 1fr;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background: rgba(6, 16, 28, 0.7);
  box-shadow: 0 0 55px rgba(143, 107, 255, 0.14);
}
.dashboard-ui i { border-radius: 8px; background: rgba(255, 255, 255, 0.08); }
.dashboard-ui i:nth-child(1) { grid-row: span 2; background: linear-gradient(to bottom, rgba(56, 220, 255, 0.22), rgba(255, 255, 255, 0.05)); }
.dashboard-ui i:nth-child(2) { background: rgba(167, 255, 132, 0.16); }
.dashboard-ui i:nth-child(3) { background: linear-gradient(145deg, rgba(143, 107, 255, 0.2), rgba(255, 255, 255, 0.05)); }
.dashboard-ui i:nth-child(4) { display: none; }

.project-body {
  padding: clamp(25px, 3.2vw, 42px);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.project-card h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.project-card p {
  margin: 14px 0 24px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

.project-detail-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.project-detail-button span {
  color: var(--accent);
  transition: transform 0.25s ease;
}

.project-detail-button:hover span {
  transform: translate(3px, -3px);
}

.talks-marquee {
  margin: 0 calc((100vw - min(100vw - 40px, var(--section-max))) / -2) 50px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  color: var(--text-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  animation: marquee 28s linear infinite;
}

.marquee-track i {
  color: var(--accent);
  font-size: 0.7em;
}

@keyframes marquee { to { transform: translateX(-50%); } }

.talk-list {
  border-top: 1px solid var(--line);
}

.talk-item {
  display: grid;
  grid-template-columns: 100px 1fr 50px;
  align-items: center;
  gap: 30px;
  min-height: 130px;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, padding 0.3s ease;
}

.talk-item:hover {
  padding-inline: 18px;
  background: linear-gradient(90deg, rgba(56, 220, 255, 0.05), transparent);
}

.talk-year {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

.talk-item span {
  color: var(--text-muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.talk-item h3 {
  margin-top: 5px;
  font-size: clamp(1.05rem, 2.1vw, 1.6rem);
}

.talk-item p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 0.77rem;
}

.talk-arrow {
  color: var(--accent);
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.talk-item:hover .talk-arrow {
  transform: translate(7px, -7px);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.education-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.education-card:nth-child(1),
.education-card:nth-child(2) {
  grid-column: span 3;
}

.education-card:nth-child(n+3) {
  grid-column: span 2;
}

.education-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: linear-gradient(145deg, var(--surface), rgba(56, 220, 255, 0.045));
  transform: translateY(-7px);
}

.education-card span {
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
}

.education-card h3 {
  margin-top: auto;
  font-size: 1.22rem;
  line-height: 1.25;
}

.education-card p {
  margin: 11px 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 70px;
  overflow: hidden;
  padding: clamp(32px, 5vw, 70px);
  border: 1px solid var(--line-strong);
  border-radius: 38px;
  background:
    radial-gradient(circle at 80% 15%, rgba(143, 107, 255, 0.14), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(56, 220, 255, 0.13), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to right, #000, transparent 70%);
  pointer-events: none;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact h2 {
  max-width: 700px;
}

.contact-copy > p {
  max-width: 590px;
  margin: 25px 0 0;
  color: var(--text-soft);
}

.contact-links {
  margin-top: 36px;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.contact-links a {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 16px;
  padding: 17px 18px;
  background: var(--surface-solid);
  transition: background 0.25s ease, padding 0.25s ease;
}

.contact-links a:hover {
  padding-left: 24px;
  background: var(--surface-hover);
}

.contact-links span {
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-links strong {
  overflow-wrap: anywhere;
  font-size: 0.8rem;
  font-weight: 600;
}

.contact-form {
  display: grid;
  gap: 17px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(5, 14, 24, 0.28);
}

html[data-theme="light"] .contact-form {
  background: rgba(255, 255, 255, 0.45);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form label > span {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--surface-solid);
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form input,
.contact-form select {
  height: 48px;
  padding: 0 15px;
}

.contact-form textarea {
  min-height: 125px;
  resize: vertical;
  padding: 13px 15px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 12%, transparent);
}

.contact-form .button {
  width: 100%;
  border: 0;
}

.contact-form > small {
  color: var(--text-muted);
  font-size: 0.62rem;
  text-align: center;
}

.site-footer {
  width: min(calc(100% - 40px), var(--section-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 35px;
  padding: 35px 0 50px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.7rem;
}

.site-footer > div:first-child {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer p {
  max-width: 380px;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--text);
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 500;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.project-modal {
  width: min(calc(100% - 32px), 620px);
  padding: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 35px 120px rgba(0, 0, 0, 0.55);
}

.project-modal::backdrop {
  background: rgba(3, 9, 16, 0.78);
  backdrop-filter: blur(10px);
}

.project-modal[open] {
  animation: modal-in 0.32s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-kicker {
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-modal h3 {
  margin: 10px 0 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-modal > p {
  color: var(--text-soft);
}

.modal-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.modal-points span {
  position: relative;
  padding: 13px 15px 13px 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--text-soft);
  font-size: 0.8rem;
}

.modal-points span::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: var(--accent-3);
}

.reveal {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.18,.7,.18,1);
  transition-delay: var(--delay, 0ms);
}

.reveal[data-reveal="up"] { transform: translateY(36px); }
.reveal[data-reveal="left"] { transform: translateX(-45px); }
.reveal[data-reveal="right"] { transform: translateX(45px); }
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 1fr 0.78fr;
    gap: 45px;
  }

  .badge-top { left: -20px; }
  .badge-bottom { right: -20px; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-panel { gap: 40px; }
}

@media (max-width: 850px) {
  :root { --header-height: 72px; }

  .desktop-nav { display: none; }
  .menu-toggle { display: grid; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 140px;
  }

  .hero-content { max-width: 720px; }
  .hero-visual { margin-top: 15px; }
  .profile-frame { width: min(100%, 470px); }
  .scroll-cue { display: none; }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .split-heading p {
    margin-left: 0;
  }

  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .highlight-card {
    min-height: 300px;
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding: 0 0 35px 45px;
  }

  .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    left: 0;
    right: auto;
  }

  .timeline-date,
  .timeline-item:nth-child(even) .timeline-date {
    text-align: left;
  }

  .project-featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .project-featured .project-visual {
    min-height: 310px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .section-shell {
    width: min(calc(100% - 28px), var(--section-max));
    padding: 90px 0;
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-copy small { display: none; }

  .hero {
    width: min(calc(100% - 28px), var(--section-max));
    min-height: auto;
    padding-top: 120px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
  }

  .hero-role span:first-child {
    display: block;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    gap: 8px;
  }

  .profile-frame {
    border-radius: 30px;
  }

  .badge-top { left: -7px; }
  .badge-bottom { right: -7px; }

  .stats-strip {
    width: min(calc(100% - 28px), var(--section-max));
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child { border-bottom: 0; }

  .about-copy,
  .skills-panel,
  .highlight-card,
  .timeline-card,
  .project-body,
  .contact-form {
    padding: 24px;
  }

  .skills-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .skill-tab {
    font-size: 0.62rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 245px;
  }

  .talk-item {
    grid-template-columns: 58px 1fr 25px;
    gap: 13px;
    min-height: 125px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-card:nth-child(n) {
    grid-column: span 1;
    min-height: 210px;
  }

  .contact-panel {
    padding: 25px;
    border-radius: 28px;
  }

  .contact-links a {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .site-footer {
    width: min(calc(100% - 28px), var(--section-max));
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .project-modal {
    padding: 35px 24px 24px;
  }
}

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

  .pointer-glow,
  #particleCanvas {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
