:root {
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --text: #111111;
  --muted: #6e6e73;
  --line: rgba(17, 17, 17, 0.08);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 227, 255, 0.65), transparent 32%),
    radial-gradient(circle at top right, rgba(255, 232, 211, 0.7), transparent 28%),
    var(--bg);
}

.site-shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 18px 0 28px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #111, #999);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a,
.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0;
  width: 42px;
  height: 42px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 5px auto;
  border-radius: 2px;
}

.section {
  padding: 54px 0;
}

.eyebrow,
.card-kicker,
.mini-label,
.contact-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.section-heading h2,
.page-title {
  margin: 0;
  letter-spacing: -0.04em;
}

.page-title {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.95;
  max-width: 12ch;
  margin: 0;
  letter-spacing: -0.04em;
}

.lead,
.section-heading p,
.card p,
.skill-card p,
.mini-card p,
.footer p,
.contact-value,
.timeline-meta p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-badges,
.tags,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin: 28px 0;
}

.hero-badges span,
.tags span,
.play-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  background: #111;
  color: #fff;
  box-shadow: 0 12px 30px rgba(17, 17, 17, 0.18);
}

.button-secondary {
  background: rgba(255,255,255,0.9);
  color: #111;
  border: 1px solid var(--line);
}

.video-frame,
.card,
.skill-card,
.mini-card,
.contact-card,
.wide-card,
.tabs {
  background: var(--surface-strong);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 12px;
}

.section-heading.compact {
  max-width: 680px;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  min-height: 520px;
}

.video-placeholder {
  height: 520px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.08)),
    radial-gradient(circle at center, rgba(255,255,255,0.95), rgba(229,233,239,0.85));
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 1;
}

.grid {
  display: grid;
  gap: 20px;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.skill-card,
.mini-card,
.wide-card {
  border-radius: var(--radius-lg);
  padding: 28px;
}

.highlight h3 {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-top: 0;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
}

.clean-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 160px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(17,17,17,0.1);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 30px;
  align-items: start;
}

.timeline-meta {
  position: relative;
  padding-left: 6px;
}

.timeline-meta::after {
  content: "";
  position: absolute;
  right: -37px;
  top: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  box-shadow: 0 0 0 8px rgba(17,17,17,0.06);
}

.date {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.timeline-content {
  padding: 24px 26px;
}

.testimonial {
  font-size: 1.04rem;
  color: #232326;
  margin-top: 0;
}

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

.skill-card h3,
.mini-card h3,
.card h3,
.wide-card h3,
.timeline-meta h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.wide-card {
  margin-top: 20px;
}

.first-section {
  padding-top: 20px;
}

.linkedin-card,
.action-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.linkedin-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.tab-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-button:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.tab-button.active {
  background: #111;
  color: #fff;
}

.tab-panels {
  max-width: 900px;
}

.tab-panel {
  margin-top: 0;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border-radius: var(--radius-xl);
  padding: 28px;
}

.contact-value {
  margin: 0;
  color: #111;
  font-weight: 600;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 50px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.12s;
}

@media (max-width: 1024px) {
  .two-cols,
  .three-cols,
  .four-cols,
  .skills-grid,
  .contact-card {
    grid-template-columns: 1fr;
  }

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

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 34px;
  }

  .timeline-meta::after {
    left: -24px;
    right: auto;
  }
}

@media (max-width: 820px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max));
  }

  .topbar {
    top: 10px;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.95);
  }

  .nav.open {
    display: flex;
  }

  .video-frame,
  .video-placeholder {
    min-height: 320px;
    height: 320px;
  }

  .linkedin-card {
    align-items: flex-start;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
