:root {
  --bg: #0d0f14;
  --bg-soft: #171a22;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #eef2f7;
  --muted: #b8c0cc;
  --accent: #8ad0ff;
  --accent-strong: #2ba8ff;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(43, 168, 255, 0.18), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(111, 72, 255, 0.15), transparent 45%),
    var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 40vmax;
  height: 40vmax;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.16;
  pointer-events: none;
  z-index: -1;
  animation: driftGlow 18s ease-in-out infinite;
}

body::before {
  top: -10vmax;
  right: -10vmax;
  background: rgba(43, 168, 255, 0.45);
}

body::after {
  bottom: -14vmax;
  left: -12vmax;
  background: rgba(111, 72, 255, 0.35);
  animation-delay: -9s;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #c6ebff;
}

.site-header {
  padding: 2rem 1rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(170px, 250px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--panel-border);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.05) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: heroSweep 1.3s ease-out 0.35s both;
  pointer-events: none;
}

.hero-avatar {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transform: translateY(10px) scale(0.985);
  opacity: 0;
  animation: riseIn 0.7s cubic-bezier(.2,.8,.2,1) 0.08s forwards, avatarFloat 7s ease-in-out 1.1s infinite;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
  display: grid;
  align-content: center;
  gap: 0.15rem;
}

.hero-copy > * {
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 0.6s cubic-bezier(.2,.8,.2,1) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.14s; }
.hero-copy > :nth-child(2) { animation-delay: 0.22s; }
.hero-copy > :nth-child(3) { animation-delay: 0.3s; }
.hero-copy > :nth-child(4) { animation-delay: 0.38s; }
.hero-copy > :nth-child(5) { animation-delay: 0.46s; }
.hero-copy > :nth-child(6) { animation-delay: 0.54s; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.9;
}

.hero-name {
  margin: 0.15rem 0 0;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 12ch;
}

.hero-role {
  margin: 0.6rem 0 0;
  font-size: clamp(0.95rem, 1.5vw, 1.2rem);
  line-height: 1.25;
  color: #dce7f4;
  max-width: 34ch;
  font-weight: 600;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(138, 208, 255, 0.45);
}

.lede {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 56ch;
}

.hero-tags {
  margin: 0.8rem 0 0;
  color: #d8e1ee;
  font-size: 0.94rem;
  line-height: 1.4;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-strong), #1f79ff);
  border-color: transparent;
}

.button-primary:hover {
  background: linear-gradient(135deg, #55c0ff, #438bff);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.top-nav a {
  display: inline-block;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 0.95rem;
  transition: transform 0.18s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.top-nav a:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.page-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2.5rem;
  display: grid;
  gap: 1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  backdrop-filter: blur(6px);
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 208, 255, 0.18);
}

.section-title h2 {
  margin: 0;
  font-size: 1.4rem;
}

.section-title + * {
  margin-top: 0.8rem;
}

.muted {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.timeline-item:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 208, 255, 0.2);
}

.timeline-item h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline-item .meta {
  margin: 0.35rem 0 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-item ul {
  margin: 0;
  padding-left: 1.15rem;
}

.timeline-item li + li {
  margin-top: 0.25rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.8rem;
}

.photo-card {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: #0f1117;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.photo-card:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: rgba(138, 208, 255, 0.45);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.photo-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.category-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1rem;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(138, 208, 255, 0.2);
}

.category-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.link-list {
  margin: 0;
  padding-left: 1rem;
}

.link-list li + li {
  margin-top: 0.3rem;
}

.contact-grid {
  display: grid;
  gap: 0.45rem;
}

.contact-grid p {
  margin: 0;
}

.contact-grid span {
  display: inline-block;
  min-width: 64px;
  color: var(--muted);
}

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.image-modal {
  border: none;
  padding: 0.6rem;
  background: rgba(12, 14, 19, 0.96);
  border-radius: 14px;
  max-width: min(90vw, 1000px);
  width: 100%;
}

.image-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.image-modal img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.modal-close {
  display: block;
  margin-left: auto;
  margin-bottom: 0.4rem;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  transition: background-color 0.2s ease, transform 0.16s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: rotate(90deg);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(.2,.8,.2,1), transform 0.55s cubic-bezier(.2,.8,.2,1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll[data-delay="1"] { transition-delay: 0.05s; }
.reveal-on-scroll[data-delay="2"] { transition-delay: 0.1s; }
.reveal-on-scroll[data-delay="3"] { transition-delay: 0.15s; }
.reveal-on-scroll[data-delay="4"] { transition-delay: 0.2s; }
.reveal-on-scroll[data-delay="5"] { transition-delay: 0.25s; }

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.003); }
}

@keyframes driftGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(2vmax, -1.5vmax, 0) scale(1.06); }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-avatar {
    max-width: 180px;
  }

  .hero-name {
    line-height: 1;
    max-width: none;
  }

  .hero-role {
    max-width: 100%;
  }

  .top-nav {
    gap: 0.45rem;
  }

  .top-nav a {
    font-size: 0.9rem;
  }
}

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

  body::before,
  body::after,
  .hero::after,
  .hero-avatar,
  .hero-copy > * {
    animation: none !important;
  }

  .hero-avatar,
  .hero-copy > * {
    opacity: 1;
    transform: none;
  }

  .photo-card {
    transition: none;
  }

  .button,
  .top-nav a,
  .panel,
  .timeline-item,
  .category-card,
  .modal-close,
  .reveal-on-scroll {
    transition: none !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
