/* --- Tokens --- */
:root {
  --bg-deep: #0c0f14;
  --bg-elevated: #121722;
  --bg-card: rgba(18, 23, 34, 0.72);
  --text: #e8ecf4;
  --text-muted: rgba(232, 236, 244, 0.68);
  --accent: #5ee1d4;
  --accent-soft: rgba(94, 225, 212, 0.14);
  --accent-2: #c79bff;
  --accent-2-soft: rgba(199, 155, 255, 0.12);
  --coral: #ff8f73;
  --border: rgba(255, 255, 255, 0.08);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

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

  .blob {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-deep);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
  width: min(
    1120px,
    calc(100% - 2.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
  );
  margin-inline: auto;
}

.container.narrow {
  width: min(
    720px,
    calc(100% - 2.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))
  );
}

/* In-page anchors clear sticky header + notch */
#top,
section[id],
#credentials {
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.75rem);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: 0;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.78);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent-soft), transparent);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.nav-cta {
  padding: 0.45rem 1rem !important;
  border-radius: 999px;
  border: 1px solid var(--border) !important;
  background: var(--accent-soft);
  color: var(--accent) !important;
}

.nav-cta:hover {
  border-color: rgba(94, 225, 212, 0.45) !important;
}

.nav-cta-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(115deg, var(--accent), var(--accent-2), var(--accent)) !important;
  background-size: 220% 220% !important;
  color: var(--bg-deep) !important;
  border-color: transparent !important;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(94, 225, 212, 0.28), 0 6px 20px rgba(199, 155, 255, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  animation: nav-cta-gradient 9s ease-in-out infinite;
}

.nav-cta-primary::before {
  content: "✦";
  display: inline-block;
  margin-right: 0.4rem;
  font-size: 0.85em;
  line-height: 1;
  color: var(--bg-deep);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.55);
  animation: nav-cta-sparkle 2.8s ease-in-out infinite;
  transform-origin: center;
}

.nav-cta-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.75s ease;
  z-index: 1;
}

.nav-cta-primary:hover {
  transform: translateY(-1px) scale(1.045);
  filter: brightness(1.08);
  border-color: transparent !important;
  box-shadow: 0 12px 30px rgba(94, 225, 212, 0.42), 0 12px 30px rgba(199, 155, 255, 0.32);
}

.nav-cta-primary:hover::after {
  left: 150%;
}

.nav-cta-primary:hover::before {
  animation-duration: 1.4s;
}

@keyframes nav-cta-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes nav-cta-sparkle {
  0%, 100% { opacity: 0.55; transform: scale(0.85) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-cta-primary,
  .nav-cta-primary::before,
  .nav-cta-primary::after {
    animation: none !important;
    transition: none !important;
  }

  .nav-cta-primary:hover::after {
    left: -120%;
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 18px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s;
}

.header-inner:has(.site-nav.is-open) .nav-toggle .nav-toggle-bar:first-of-type {
  transform: translateY(4px) rotate(45deg);
}

.header-inner:has(.site-nav.is-open) .nav-toggle .nav-toggle-bar:last-of-type {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    -webkit-tap-highlight-color: rgba(94, 225, 212, 0.15);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem max(1.25rem, env(safe-area-inset-right, 0)) calc(1.25rem + env(safe-area-inset-bottom, 0))
      max(1.25rem, env(safe-area-inset-left, 0));
    max-height: min(72vh, calc(100dvh - 5.25rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    overflow-y: auto;
    background: rgba(12, 15, 20, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
    gap: 0;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.85rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    -webkit-tap-highlight-color: rgba(94, 225, 212, 0.12);
  }

  .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
    justify-content: center;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}

.blob-a {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  background: radial-gradient(circle at 30% 30%, var(--accent), transparent 65%);
  top: -8%;
  right: -5%;
}

.blob-b {
  width: min(380px, 50vw);
  height: min(380px, 50vw);
  background: radial-gradient(circle at 70% 40%, var(--accent-2), transparent 70%);
  bottom: 5%;
  left: -10%;
  animation-delay: -6s;
}

.blob-c {
  width: min(280px, 40vw);
  height: min(280px, 40vw);
  background: radial-gradient(circle at 50% 50%, var(--coral), transparent 72%);
  top: 40%;
  left: 35%;
  opacity: 0.35;
  animation-delay: -12s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(2%, -3%) scale(1.03);
  }
  66% {
    transform: translate(-3%, 2%) scale(0.98);
  }
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  /* Lets the copy column shrink so wide marquee tracks cannot blow out layout */
  min-width: 0;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto auto auto;
    align-items: start;
    column-gap: 3rem;
  }

  .hero-kicker {
    grid-column: 1;
    min-width: 0;
  }

  .hero-title {
    grid-column: 1;
    min-width: 0;
  }

  .hero-lead {
    grid-column: 1;
    min-width: 0;
  }

  .hero-tags-shell {
    grid-column: 1;
    min-width: 0;
  }

  .hero-actions {
    grid-column: 1;
    min-width: 0;
  }

  .hero-profile {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
  }
}

.hero-kicker {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.45;
  text-wrap: balance;
}

@media (max-width: 480px) {
  .hero-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.5vw, 3.35rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.hero-title .accent {
  color: var(--accent);
  font-style: italic;
}

.hero-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-tags-shell {
  --hero-chip-gap: 0.5rem;
  width: 100%;
  max-width: min(42rem, 100%);
  min-width: 0;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-tags-viewport {
  overflow: hidden;
  width: 100%;
  min-width: 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10px,
    #000 calc(100% - 10px),
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 10px,
    #000 calc(100% - 10px),
    transparent
  );
}

.hero-tags-viewport.is-scroll-fallback {
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.hero-tags-viewport.is-scroll-fallback::-webkit-scrollbar {
  display: none;
}

.hero-tags-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--hero-chip-gap);
  width: max-content;
}

.hero-tags-track:not(.is-marquee) {
  max-width: 100%;
}

.hero-tags-track.is-marquee {
  max-width: none;
  will-change: transform;
  animation: hero-tags-ticker var(--hero-ticker-duration, 28s) linear infinite;
}

.hero-tags-track.is-marquee:hover,
.hero-tags-track.is-marquee:focus-within {
  animation-play-state: paused;
}

.hero-tags-viewport.is-scroll-fallback .hero-tags-track {
  max-width: none;
}

@keyframes hero-tags-ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--hero-ticker-shift));
  }
}

.hero-tags-group {
  flex-shrink: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--hero-chip-gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-tags li {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.38rem 0.65rem;
  border-radius: var(--radius-sm);
  color: rgba(232, 236, 244, 0.88);
  background: linear-gradient(165deg, rgba(94, 225, 212, 0.09), rgba(199, 155, 255, 0.05));
  border: 1px solid rgba(94, 225, 212, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero .hero-actions {
  padding-top: 0.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: rgba(94, 225, 212, 0.2);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #5ee1d4, #3bc4b8);
  color: #062624;
  box-shadow: 0 12px 36px rgba(94, 225, 212, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 16px 44px rgba(94, 225, 212, 0.35);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.hero-profile {
  position: relative;
  justify-self: center;
  width: min(200px, 70vw);
  height: min(200px, 70vw);
}

.hero-photo-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 3.25rem);
  letter-spacing: -0.04em;
  color: var(--accent);
  border-radius: 24px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(145deg, var(--accent-soft), var(--accent-2-soft));
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(94, 225, 212, 0.15);
}

.hero-profile.has-photo .hero-photo-fallback {
  display: none;
}

.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(94, 225, 212, 0.15);
}

/* --- Sections --- */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head .section-title {
  margin-bottom: 0.35rem;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  max-width: 36rem;
}

.large-text {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.large-text + .large-text {
  margin-top: 1rem;
}

.large-text.muted {
  font-size: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  margin-top: 1.5rem;
}

.section-about {
  background: linear-gradient(180deg, transparent, rgba(199, 155, 255, 0.04));
}

.section-pillars {
  border-block: 1px solid var(--border);
}

.pillar-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s, box-shadow 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .pillar-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-soft);
  }
}

.pillar-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
}

.pillar-card-pm .pillar-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.pillar-card-dev .pillar-icon {
  background: rgba(255, 143, 115, 0.12);
  color: var(--coral);
}

.pillar-card-sfdc .pillar-icon {
  background: var(--accent-2-soft);
  color: var(--accent-2);
}

/* Timeline */
.section-timeline {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(94, 225, 212, 0.06), transparent 55%);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.35;
  border-radius: 2px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 2.75rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 2.75rem),
    transparent 100%
  );
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.timeline-item {
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 2rem;
  overflow: visible;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  display: block;
  position: absolute;
  left: 4px;
  top: 0.35rem;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 225, 212, 0.15);
  overflow: visible;
  animation: timeline-dot-glow 3.2s ease-out infinite;
}

/* Subtle pulse ring + downward “emit” along the track */
.timeline-dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(94, 225, 212, 0.55);
  opacity: 0;
  animation: timeline-dot-ring 3.2s ease-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.timeline-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 2px);
  width: 2px;
  height: 72px;
  margin-left: -1px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(94, 225, 212, 0.85),
    rgba(199, 155, 255, 0.35),
    transparent 90%
  );
  transform-origin: top center;
  transform: scaleY(0) translateZ(0);
  opacity: 0;
  animation: timeline-dot-emit 3.2s ease-out infinite;
  pointer-events: none;
  will-change: transform, opacity;
}

.timeline-item:nth-child(1) .timeline-dot,
.timeline-item:nth-child(1) .timeline-dot::before,
.timeline-item:nth-child(1) .timeline-dot::after {
  animation-delay: 0s;
}

.timeline-item:nth-child(2) .timeline-dot,
.timeline-item:nth-child(2) .timeline-dot::before,
.timeline-item:nth-child(2) .timeline-dot::after {
  animation-delay: 0.45s;
}

.timeline-item:nth-child(3) .timeline-dot,
.timeline-item:nth-child(3) .timeline-dot::before,
.timeline-item:nth-child(3) .timeline-dot::after {
  animation-delay: 0.9s;
}

.timeline-item:nth-child(4) .timeline-dot,
.timeline-item:nth-child(4) .timeline-dot::before,
.timeline-item:nth-child(4) .timeline-dot::after {
  animation-delay: 1.35s;
}

.timeline-item:nth-child(5) .timeline-dot,
.timeline-item:nth-child(5) .timeline-dot::before,
.timeline-item:nth-child(5) .timeline-dot::after {
  animation-delay: 1.8s;
}

.timeline-item:nth-child(6) .timeline-dot,
.timeline-item:nth-child(6) .timeline-dot::before,
.timeline-item:nth-child(6) .timeline-dot::after {
  animation-delay: 2.25s;
}

.timeline-item:nth-child(7) .timeline-dot,
.timeline-item:nth-child(7) .timeline-dot::before,
.timeline-item:nth-child(7) .timeline-dot::after {
  animation-delay: 2.7s;
}

@keyframes timeline-dot-glow {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(94, 225, 212, 0.15),
      0 0 0 0 rgba(94, 225, 212, 0);
  }
  35% {
    box-shadow:
      0 0 0 4px rgba(94, 225, 212, 0.2),
      0 0 14px 3px rgba(94, 225, 212, 0.35);
  }
}

@keyframes timeline-dot-ring {
  0% {
    transform: scale(0.72);
    opacity: 0.75;
  }
  50% {
    opacity: 0.2;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes timeline-dot-emit {
  0% {
    transform: scaleY(0) translateZ(0);
    opacity: 0;
  }
  15% {
    opacity: 0.85;
  }
  50% {
    opacity: 0.35;
    transform: scaleY(1) translateZ(0);
  }
  80%,
  100% {
    opacity: 0;
    transform: scaleY(1) translateZ(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-dot {
    animation: none !important;
  }

  .timeline-dot::before,
  .timeline-dot::after {
    animation: none !important;
  }
}

.timeline-meta {
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.timeline-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.timeline-body p {
  margin: 0;
  color: var(--text-muted);
  max-width: 52rem;
}

.timeline-bullets {
  margin: 0.65rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 52rem;
}

.timeline-bullets li {
  margin-bottom: 0.45rem;
}

.timeline-bullets li:last-child {
  margin-bottom: 0;
}

.timeline-bullets strong {
  color: var(--text);
  font-weight: 600;
}

/* Skills */
.skill-groups {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .skill-groups {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-group h3 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.skill-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chips li {
  font-size: 0.875rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* Credentials (within skills section) */
.credentials-block {
  margin-top: clamp(2.5rem, 5vw, 3.25rem);
  padding-top: clamp(2rem, 4vw, 2.75rem);
  border-top: 1px solid var(--border);
}

.credentials-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.credentials-grid {
  display: grid;
  gap: 1.75rem 2.5rem;
}

@media (min-width: 768px) {
  .credentials-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.credentials-heading {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.credentials-heading:not(:first-child) {
  margin-top: 1.25rem;
}

.credentials-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.credentials-list li {
  margin-bottom: 0.35rem;
}

.credentials-list strong {
  color: var(--text);
  font-weight: 600;
}

.credentials-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Contact */
.section-contact {
  border-top: 1px solid var(--border);
  text-align: center;
  padding-bottom: calc(clamp(3.5rem, 8vw, 5rem) + env(safe-area-inset-bottom, 0px));
}

.contact-inner .section-title {
  margin-bottom: 0.75rem;
}

.contact-lead {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-actions {
  justify-content: center;
}

@media (max-width: 540px) {
  .hero .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .hero-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-actions .btn {
    width: 100%;
    max-width: 100%;
  }

  .contact-actions .btn-primary {
    font-size: 0.88rem;
    word-break: break-word;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.contact-location {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 2rem 0 max(2.5rem, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  opacity: 0.75;
  font-size: 0.82rem;
}

/* Pipeline stepper (used on /ai/) */
.pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: pipeline;
}

@media (min-width: 720px) {
  .pipeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.1rem;
  }
}

.pipeline-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  counter-increment: pipeline;
}

.pipeline-step::before {
  content: "0" counter(pipeline);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
}

.pipeline-step h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.pipeline-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.pipeline-step code {
  font-size: 0.82em;
  padding: 0.05rem 0.32rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.pipeline-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.15rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
  color: var(--accent);
}

@media (min-width: 720px) {
  .pipeline-step:not(:last-child)::after {
    content: "›";
    position: absolute;
    right: -1.1rem;
    top: 50%;
    width: 1.1rem;
    transform: translateY(-50%);
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    line-height: 1;
    color: var(--accent);
    opacity: 0.55;
    pointer-events: none;
  }
}
