/* =============================================================
   Raul Schnelzer — style.css  v3.0.0
   ============================================================= */
:root {
  --font:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --section-py: clamp(80px, 12vh, 140px);
  --max-w: 1100px;
  --nav-h: 56px;
  --radius: 20px;
  --radius-sm: 12px;
  --footer-float-h: 132px;

  /* Transition */
  --t: 1s cubic-bezier(0.4, 0, 0.2, 1);
  --t-quick: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 2.35s cubic-bezier(0.4, 0, 0.2, 1);
  --quote-opacity: 1;

  /* Gradient accents (shared) */
  --accent: #00ffbf;
  --accent2: #8133e1;
  --g-cool: linear-gradient(
    135deg,
    var(--accent) 0%,
    #1798d2 50%,
    #8133e1 100%
  );
  --g-warm: linear-gradient(135deg, #ffa600 0%, #ff0062 50%, #af0bd8 100%);

  /* Featured surface system */
  --featured-tint-start: rgba(11, 160, 161, 0.19);
  --featured-tint-end: rgba(102, 77, 221, 0.16);
  --featured-tint-start-hover: rgba(0, 255, 191, 0.11);
  --featured-tint-end-hover: rgba(129, 51, 225, 0.11);
  --featured-sheen-top: rgba(154, 1, 184, 0.02);
  --featured-sheen-bottom: rgba(57, 120, 215, 0.02);
  --featured-sheen-top-hover: rgba(0, 255, 191, 0.2);
  --featured-sheen-bottom-hover: rgba(153, 112, 227, 0.2);
  --featured-border: rgba(255, 255, 255, 0.1);
  --featured-border-strong: rgba(255, 255, 255, 0.16);
  --featured-outline: linear-gradient(
    135deg,
    rgba(0, 255, 191, 0.32),
    rgba(255, 255, 255, 0.04),
    rgba(129, 51, 225, 0.32)
  );
  --featured-overlay: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.04),
    transparent 28%,
    transparent 72%,
    rgba(255, 255, 255, 0.03)
  );
  --featured-highlight: radial-gradient(
    circle at 82% 18%,
    rgba(255, 255, 255, 0.05),
    transparent 18%
  );
  --featured-glow: rgba(0, 255, 191, 0.08);

  /* Accent palette */
  --accent-palette-a: #00ffbf;
  --accent-palette-b: #1798d2;
  --accent-palette-c: #8133e1;
  --accent-palette-d: #ffa600;
  --accent-palette-e: #ff0062;
  --accent-palette-f: #af0bd8;
}

/* ─── RESET & BASE ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font), serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition:
    background-color var(--t),
    color var(--t);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--t),
    opacity var(--t);
  -webkit-tap-highlight-color: transparent;
}

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

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

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.15);
  }
}

/* ─── OVERLAYS ───────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-overlay);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-panel {
  position: relative;
  max-width: 1024px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 64px);
  margin-top: 64px;
  margin-bottom: 64px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform var(--t);
}

.overlay.open .overlay-panel {
  transform: translateY(0);
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card-hover);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition:
    background var(--t),
    color var(--t);
}
.overlay-close:hover {
  background: var(--border);
  color: var(--text);
}

.overlay-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 40px;
}

.overlay-section {
  margin-bottom: 32px;
}

.overlay-section h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.overlay-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.overlay-section ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.overlay-section ul li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.overlay-section a {
  color: var(--accent);
}
.overlay-section a:hover {
  opacity: 0.75;
}

.overlay-section strong {
  color: var(--text);
}

/* ─── ACCENT UTILITY ─────────────────────────────────────────── */
.accent {
  color: var(--accent);
}

.quote-fly {
  opacity: 0;
  transform: translateY(80px) scale(0.4);
  transform-origin: center bottom;
  transition:
    opacity 1.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.quote-fly.in-view {
  opacity: var(--quote-opacity, 1);
  transform: translateY(0) scale(1);
}

/* ─── KEYFRAMES ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.6);
  }
}

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: var(--nav-h) 24px 80px;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 80%,
    rgba(129, 51, 225, 0.18) 0%,
    rgba(23, 152, 210, 0.1) 40%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.hero-eyebrow {
  font-size: clamp(12px, 1.35vw, 14px);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--text-label);
  margin-bottom: 22px;
  animation: fadeUp 0.8s ease both;
}

.hero-name {
  font-size: clamp(42px, 9vw, 82px);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -3px;
  color: var(--text);
  animation: fadeUp 1s ease 0.2s both;
  margin-bottom: 24px;
}

.hero-name-line {
  display: block;
}

.hero-keyword {
  background-image: linear-gradient(
    135deg,
    var(--accent) 0%,
    #1798d2 48%,
    #8133e1 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-keyword--ideas {
  background-image: linear-gradient(
    135deg,
    #ffa600 0%,
    #ff0062 52%,
    #af0bd8 100%
  );
}

.hero-tagline {
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 200;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 48px;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
  animation: fadeUp 1s ease 0.6s both;
}

.hero-cta:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.cta-arrow {
  display: inline-block;
  animation: bounce 2s ease infinite;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: calc(var(--footer-float-h) + 24px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: scrollPulse 2.5s ease infinite;
}

#footer {
  padding: 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.footer-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  min-height: var(--footer-float-h);
  padding: 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition:
    opacity var(--t-quick),
    transform var(--t-quick);
}

.footer-float.footer-float--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.footer-float .footer-inner {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.footer-headline {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links--nav {
  flex: 1;
  gap: 14px;
  justify-content: center;
  align-self: center;
}

.footer-links--nav .footer-link {
  font-size: 16px;
  font-weight: 600;
}

.footer-links--nav .footer-sep {
  color: var(--text-label);
}

.footer-link {
  font-size: 15px;
  color: var(--text-muted);
  transition: color var(--t);
}

.footer-links--legal {
  justify-content: flex-start;
  align-self: flex-start;
  gap: 10px;
}

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

.footer-sep {
  color: var(--text-label);
}

.footer-version {
  font-size: 12px;
  color: var(--text-label);
  font-variant-numeric: tabular-nums;
}

#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t);
}

#nav.nav--hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  width: 67px;
  height: 67px;
  object-fit: contain;
  display: block;
}

.nav-name {
  margin-left: -10px;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.nav-name-break {
  display: inline;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition:
    color var(--t),
    background var(--t);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.active {
  color: var(--accent);
  background: transparent;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-card);
  transition:
    color var(--t),
    background var(--t);
  font-size: 18px;
  line-height: 1;
}

.icon-btn:hover {
  color: var(--text);
  background: var(--bg-card-hover);
}

/* ─── MOBILE MENU ────────────────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-quick);
}

#mobile-menu::backdrop {
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

#mobile-menu[open] {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: var(--nav-h);
}

.mobile-menu-close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  z-index: 1;
}

.mobile-menu-close-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.mobile-menu-close-line:first-child {
  transform: rotate(45deg);
}

.mobile-menu-close-line:last-child {
  transform: rotate(-45deg);
}

.mobile-menu-divider {
  width: min(280px, calc(100vw - 96px));
  height: 1px;
  margin: 12px 0 16px;
  background: color-mix(in srgb, var(--text-muted) 45%, transparent);
}

.mobile-link {
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 300;
  color: var(--text-muted);
  padding: 8px 24px;
  transition: color var(--t);
  letter-spacing: -1px;
}
.mobile-link:hover {
  color: var(--text);
}
.mobile-link:active {
  color: var(--accent);
}

.mobile-sub-links {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}
.mobile-sub-link {
  font-size: 16px;
  color: var(--text-muted);
  transition: color var(--t);
}
.mobile-sub-link:hover {
  color: var(--text);
}
.mobile-sub-link:active {
  color: var(--accent);
}

/* Hamburger */
.hamburger-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
}
.ham-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--t-quick),
    opacity var(--t-quick);
}
.hamburger-btn.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open .ham-line:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open .ham-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── BACK TO TOP ────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity var(--t),
    transform var(--t),
    background var(--t),
    border-color var(--t),
    box-shadow var(--t);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#back-to-top:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: var(--glow);
  color: var(--text);
}

.content-section {
  padding: var(--section-py) 24px;
  background: var(--bg);
  transition: background var(--t);
}

.content-section--alt {
  background: var(--bg-alt);
}

#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

#about .section-inner {
  width: 100%;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-label);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text);
  margin-bottom: 56px;
}

.theme-btn {
  width: 36px;
  height: 36px;
  position: relative;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  isolation: isolate;
  transition:
    box-shadow var(--t),
    transform var(--t),
    opacity var(--t);
}

.theme-btn::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 30%,
      var(--theme-toggle-shine),
      transparent 58%
    ),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 62%);
  opacity: 0.7;
  transform: scale(0.92);
  transition:
    opacity var(--t),
    transform var(--t),
    filter var(--t);
  z-index: 0;
}

.theme-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px var(--theme-toggle-glow);
}

.theme-btn:hover::before {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1.15);
}

.icon-sun,
.icon-moon {
  display: block;
  position: relative;
  z-index: 1;
  transition:
    transform var(--t),
    filter var(--t),
    opacity var(--t);
}

.theme-btn:hover .icon-sun,
.theme-btn:hover .icon-moon {
  transform: rotate(10deg) scale(1.06);
}

@media (max-width: 768px) {
  :root {
    --nav-h: 52px;
    --footer-float-h: 136px;
    --mobile-page-gutter: clamp(32px, 8vw, 44px);
  }

  .content-section {
    padding-left: var(--mobile-page-gutter);
    padding-right: var(--mobile-page-gutter);
  }

  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .nav-actions {
    margin-left: auto;
  }
  .nav-name {
    font-size: 14px;
    white-space: normal;
    line-height: 1.3;
  }
  .nav-name-break {
    display: block;
    font-size: 14px;
    margin-left: 0;
  }

  .services-grid--featured {
    grid-template-columns: 1fr;
  }

  .service-card--featured {
    min-height: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-photo-wrap {
    display: flex;
    justify-content: center;
  }

  .about-photo {
    width: 200px;
    height: 200px;
  }

  .about-text {
    padding: 24px;
    text-align: justify;
  }

  .quote-text {
    font-size: clamp(42px, 12vw, 72px);
    line-height: 1.08;
    letter-spacing: -1.5px;
  }

  .hero-name {
    letter-spacing: -3px;
  }

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

  .social-row {
    justify-content: center;
  }

  .footer-float {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 12px;
  }

  .footer-inner {
    width: 100%;
    max-width: 100vw;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .footer-brand {
    order: 2;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    align-items: flex-start;
    text-align: left;
  }

  .footer-logo {
    margin-top: -5px;
    flex-shrink: 0;
  }

  .footer-headline {
    max-width: calc(100vw - 76px);
    font-size: clamp(13px, 3.7vw, 14px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-links,
  .footer-links--nav {
    justify-content: center;
    flex-wrap: nowrap;
    max-width: 100%;
  }

  .footer-links--legal {
    justify-content: center;
    align-self: flex-start;
    gap: 8px;
    white-space: nowrap;
  }

  .footer-copy {
    max-width: calc(100vw - 76px);
    font-size: clamp(11px, 3vw, 13px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .footer-links--nav {
    order: 1;
    width: 100%;
    gap: 10px;
  }

  .footer-links--nav .footer-link {
    font-size: clamp(13px, 3.8vw, 16px);
  }

  .footer-link {
    font-size: clamp(13px, 3.6vw, 15px);
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-page-gutter: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .certs-grid {
    grid-template-columns: 1fr;
  }

  .skill-cat-name {
    font-size: 16px;
  }

  .skill-pills {
    padding: 0 20px 20px;
  }

  .skill-pill {
    font-size: 12px;
    min-height: auto;
    padding: 4px 10px;
  }

  .hero-name {
    letter-spacing: -2px;
  }

  .nav-name-break {
    font-size: 9px;
  }

  #back-to-top {
    bottom: 20px;
    right: 20px;
  }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

#about-title {
  margin-bottom: 24px;
}

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}

.about-photo-wrap {
  flex-shrink: 0;
}

.about-photo {
  width: clamp(200px, 22vw, 300px);
  height: auto;
  aspect-ratio: 1;
  transition: transform var(--t);
  margin-top: 32px;
}

.about-photo:hover {
  transform: scale(1.02);
}

.about-text {
  font-size: clamp(16px, 1.8vw, 20px);
  line-height: 1.65;
  color: var(--text-muted);
}

.about-greeting {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.about-origin {
  font-size: calc(clamp(16px, 1.8vw, 20px) - 1px);
  font-weight: 200;
  color: var(--text-muted);
}

.about-origin-label {
  display: block;
  padding-top: 22px;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-label);
  border-top: 1px solid var(--border);
}

.about-text p + p {
  margin-top: 16px;
}

#contact {
  min-height: 70vh;
}
.contact-tagline {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--text-muted);
  margin-top: -28px;
  margin-bottom: 56px;
  max-width: 600px;
  line-height: 1.7;
}

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--text-muted);
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 5px;
  display: block;
  width: 20px;
  height: 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: var(--social-filter);
  opacity: 0.8;
}

.contact-icon--location {
  background-image: url("../icons/location.svg");
}

.contact-icon--email {
  background-image: url("../icons/email.svg");
}

.contact-icon--phone {
  background-image: url("../icons/phone.svg");
}

.contact-link {
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--t);
}

.contact-link:hover {
  opacity: 0.75;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  transition: transform var(--t-quick);
  min-width: 80px;
}

.social-link:hover {
  transform: translateY(-4px);
}

.social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: filter var(--t-quick);
}

.social-icon--invert {
  filter: var(--social-filter);
}

.social-link:hover .social-icon {
  filter: drop-shadow(0 0 8px var(--accent));
}

.social-link:hover .social-icon--invert {
  filter: var(--social-filter-glow);
}

.social-link span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--t-quick);
}

.social-link:hover span {
  color: var(--accent);
}

.timeline {
  position: relative;
}

.timeline-list {
  padding-left: 40px;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-track {
  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    #00ffbf,
    #1798d2 40%,
    #8133e1 75%,
    transparent 100%
  );
  border-radius: 2px;
}

.timeline-entry {
  --timeline-accent: var(--accent-palette-a);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding-bottom: 40px;
}

.timeline-node {
  position: absolute;
  left: -40px;
  top: 6px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--timeline-accent);
  position: relative;
  flex-shrink: 0;
}

.timeline-dot-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--timeline-accent) 30%, transparent);
  animation: ringPulse 2.5s ease-in-out infinite;
}

.timeline-card {
  --timeline-border-start: var(--timeline-accent);
  --timeline-border-end: var(--timeline-accent);
  --timeline-bg-tint: transparent;
  position: relative;
  max-width: 70vw;
  flex: 1;
  padding: 28px 32px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  background:
    linear-gradient(
      115deg,
      var(--timeline-bg-tint) 0%,
      transparent 50%,
      var(--featured-sheen-bottom) 100%
    ),
    radial-gradient(
      circle at 0% 0%,
      var(--featured-tint-start),
      transparent 40%
    ),
    radial-gradient(
      circle at 100% 100%,
      var(--featured-tint-end),
      transparent 44%
    ),
    var(--bg-card);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
}

.service-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    45deg,
    color-mix(in srgb, var(--accent-border-start) 80%, transparent) 0%,
    color-mix(in srgb, var(--accent-border-end) 80%, transparent) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border-style: solid;
  border-width: 1px 1px 1px 3px;
  border-color: transparent;
  background: linear-gradient(
    180deg,
    var(--timeline-border-start) 0%,
    var(--timeline-border-end) 100%
  );
  background-origin: border-box;
  background-clip: border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.timeline-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--featured-overlay), var(--featured-highlight);
  pointer-events: none;
  transition:
    transform var(--t),
    opacity var(--t);
  opacity: 0.55;
}

.timeline-card:hover {
  background: linear-gradient(
    180deg,
    var(--timeline-bg-tint),
    var(--featured-sheen-bottom-hover)
  );
  transform: translateX(10px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.28),
    0 0 28px var(--featured-glow);
}

.timeline-entry:nth-child(6n + 1) {
  --timeline-accent: var(--accent-palette-a);
}

.timeline-entry:nth-child(6n + 2) {
  --timeline-accent: var(--accent-palette-b);
}

.timeline-entry:nth-child(6n + 3) {
  --timeline-accent: var(--accent-palette-d);
}

.timeline-entry:nth-child(6n + 4) {
  --timeline-accent: var(--accent-palette-e);
}

.timeline-entry:nth-child(6n + 5) {
  --timeline-accent: var(--accent-palette-a);
}

.timeline-entry:nth-child(6n + 6) {
  --timeline-accent: var(--accent-palette-f);
}

.timeline-list > .timeline-entry:nth-child(1) .timeline-card {
  --timeline-border-start: #01fcbf;
  --timeline-border-end: #09d2c4;
  --timeline-bg-tint: rgba(0, 255, 255, 0.15);
}

.timeline-list > .timeline-entry:nth-child(2) .timeline-card {
  --timeline-border-start: #09d2c4;
  --timeline-border-end: #218fd2;
  --timeline-bg-tint: rgba(8, 162, 209, 0.15);
}

.timeline-list
  > .timeline-group:nth-child(3)
  > .timeline-group-list
  > .timeline-entry--grouped:first-child
  .timeline-card {
  --timeline-border-start: #218fd2;
  --timeline-border-end: #5060d8;
  --timeline-bg-tint: rgba(2, 19, 237, 0.07);
}

.timeline-list
  > .timeline-group:nth-child(3)
  > .timeline-group-list
  > .timeline-entry--grouped:last-child
  .timeline-card {
  --timeline-border-start: #776de6;
  --timeline-border-end: #7e36df;
  --timeline-bg-tint: rgba(118, 108, 230, 0.15);
}

.timeline-list > .timeline-entry:nth-child(4) .timeline-card--solo {
  --timeline-border-start: #821ffb;
  --timeline-border-end: #52218e;
  --timeline-bg-tint: rgba(129, 30, 250, 0.15);
}

.timeline-card:hover::after {
  transform: scale(1.01);
  opacity: 0.8;
}

.timeline-end {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-left: 0;
  position: relative;
  left: -40px;
  padding-bottom: 8px;
}

.timeline-end-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}

.timeline-end-label {
  font-size: 14px;
  color: var(--text-label);
  font-style: italic;
}

/* ─── TIMELINE CARD CONTENT ──────────────────────────────────── */

.timeline-dot--active {
  background: var(--g-cool);
  box-shadow: 0 0 12px rgba(0, 255, 191, 0.5);
}

.timeline-dot--sm {
  width: 11px;
  height: 11px;
  background: var(--border-hover);
}
.timeline-dot--sm .timeline-dot-ring {
  inset: -3px;
}

/* ── Card content typography ── */
.tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.tc-date {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-label);
  letter-spacing: 0.2px;
}

.tc-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--pill-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
}

.tc-badge--active {
  background: var(--badge-active-bg);
  border-color: var(--badge-active-border);
  color: var(--badge-active-text);
}

.tc-title {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
  line-height: 1.2;
  margin-bottom: 6px;
}

.tc-company {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}

.tc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.tc-tag {
  font-weight: 500;
}

.tc-sep {
  color: var(--text-label);
}

.tc-location {
  color: var(--text-label);
}
.tc-location-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  background-image: url("../icons/location.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: var(--social-filter);
  opacity: 0.8;
  vertical-align: middle;
  margin-right: 3px;
  margin-bottom: 1px;
}

/* ── Grouped entries (sub-roles at same company) ── */
.timeline-group {
  position: relative;
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.timeline-group-list {
  padding-left: 0;
  margin-bottom: 0;
  margin-top: 0;
  list-style: none;
}

.timeline-entry--grouped {
  padding-bottom: 24px;
}

.timeline-entry--grouped:last-of-type {
  padding-bottom: 40px;
}

.timeline-card--grouped {
  padding: 20px 24px;
}

.timeline-group-list
  > .timeline-entry--grouped:first-child
  .timeline-card--grouped {
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius-sm) 0;
}

.timeline-group-list
  > .timeline-entry--grouped:last-child
  .timeline-card--grouped {
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
}

.timeline-card--solo {
  border-radius: var(--radius-sm);
  padding: 14px 32px;
}

.quote-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 24px;
  isolation: isolate;
  clip-path: inset(0);
}

.quote-intro {
  min-height: 100vh;
  overflow: visible;
}

.quote-outro {
  align-items: flex-start;
  overflow: visible;
}

.quote-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  transform: scale(1.08);
  pointer-events: none;
}

.quote-bg::before,
.quote-bg::after {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.quote-intro .quote-bg {
  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(0, 255, 191, 0.95) 0%,
      rgba(0, 255, 191, 0) 28%
    ),
    radial-gradient(
      circle at 78% 18%,
      rgba(23, 152, 210, 0.9) 0%,
      rgba(23, 152, 210, 0) 34%
    ),
    radial-gradient(
      circle at 50% 78%,
      rgba(129, 51, 225, 0.82) 0%,
      rgba(129, 51, 225, 0) 38%
    ),
    linear-gradient(145deg, var(--accent) 0%, #1798d2 46%, #8133e1 100%);
}

.quote-intro .quote-bg::before {
  background:
    conic-gradient(
      from 210deg at 50% 50%,
      rgba(255, 255, 255, 0.18),
      rgba(255, 255, 255, 0) 22%,
      rgba(255, 255, 255, 0.1) 38%,
      rgba(255, 255, 255, 0) 58%,
      rgba(255, 255, 255, 0.14) 82%,
      rgba(255, 255, 255, 0.18)
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(255, 255, 255, 0) 58%
    );
  mix-blend-mode: soft-light;
  opacity: 0.9;
  transform: rotate(-8deg) scale(1.08);
}

.quote-intro .quote-bg::after {
  background:
    linear-gradient(
      125deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 30%,
      rgba(255, 255, 255, 0.16) 52%,
      rgba(255, 255, 255, 0) 72%
    ),
    radial-gradient(
      circle at 62% 42%,
      rgba(0, 0, 0, 0.16) 0%,
      rgba(0, 0, 0, 0) 42%
    );
  opacity: 0.6;
  filter: blur(18px);
}

.quote-outro .quote-bg {
  background:
    radial-gradient(
      circle at 22% 18%,
      rgba(255, 166, 0, 0.95) 0%,
      rgba(255, 166, 0, 0) 26%
    ),
    radial-gradient(
      circle at 82% 28%,
      rgba(255, 0, 98, 0.88) 0%,
      rgba(255, 0, 98, 0) 34%
    ),
    radial-gradient(
      circle at 50% 82%,
      rgba(175, 11, 216, 0.84) 0%,
      rgba(175, 11, 216, 0) 38%
    ),
    linear-gradient(155deg, #ffa600 0%, #ff0062 48%, #af0bd8 100%);
}

.quote-outro .quote-bg::before {
  background:
    conic-gradient(
      from 160deg at 50% 50%,
      rgba(255, 255, 255, 0.2),
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0.08) 36%,
      rgba(255, 255, 255, 0) 56%,
      rgba(255, 255, 255, 0.14) 78%,
      rgba(255, 255, 255, 0.2)
    ),
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 56%
    );
  mix-blend-mode: soft-light;
  opacity: 0.88;
  transform: rotate(10deg) scale(1.1);
}

.quote-outro .quote-bg::after {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0) 34%,
      rgba(255, 255, 255, 0.14) 58%,
      rgba(255, 255, 255, 0) 78%
    ),
    radial-gradient(
      circle at 36% 60%,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0) 44%
    );
  opacity: 0.58;
  filter: blur(20px);
}

.quote-text {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1px;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.3);
  font-style: normal;
  padding: 0 24px;
}

.quote-intro .quote-text,
.quote-outro .quote-text {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: flex-start;
  margin-top: 25vh;
  padding-bottom: 32px;
}

/* ─── SKILLS ─────────────────────────────────────────────────── */
.skills-categories {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: none;
  border-radius: 0;
  overflow: visible;
}

.skill-category {
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-quick);
}

.skill-category + .skill-category {
  margin-top: -1px;
}

.skill-category:first-child {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.skill-category:last-child {
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.skill-category:hover {
  background: var(--bg-card);
}

.skill-category-header {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  cursor: pointer;
  user-select: none;
  transition: background var(--t-quick);
}

.skill-category-header:hover {
  background: var(--bg-card);
}

.skill-cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.skill-cat-name {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.skill-cat-toggle {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform var(--t-quick);
  line-height: 1;
}

.skill-category.collapsed .skill-cat-toggle {
  transform: rotate(0deg);
}

.skill-category:not(.collapsed) .skill-cat-toggle {
  transform: rotate(90deg);
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 28px;
  overflow: hidden;
  max-height: 1000px;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease,
    opacity 0.3s ease;
  opacity: 1;
}

.skill-category.collapsed .skill-pills {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.skill-pill {
  --accent-border-start: var(--accent-palette-a);
  --accent-border-end: var(--accent-palette-b);
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 14px;
  background: var(--skill-pill-bg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--skill-pill-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 18px rgba(0, 0, 0, 0.16);
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t),
    transform var(--t),
    box-shadow var(--t);
  cursor: default;
  position: relative;
  isolation: isolate;
}

.skill-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    45deg,
    color-mix(in srgb, var(--accent-border-start) 80%, transparent) 0%,
    color-mix(in srgb, var(--accent-border-end) 80%, transparent) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.skill-pill:nth-child(6n + 1) {
  --accent-border-start: var(--accent-palette-a);
  --accent-border-end: var(--accent-palette-b);
}

.skill-pill:nth-child(6n + 2) {
  --accent-border-start: var(--accent-palette-b);
  --accent-border-end: var(--accent-palette-c);
}

.skill-pill:nth-child(6n + 3) {
  --accent-border-start: var(--accent-palette-d);
  --accent-border-end: var(--accent-palette-e);
}

.skill-pill:nth-child(6n + 4) {
  --accent-border-start: var(--accent-palette-e);
  --accent-border-end: var(--accent-palette-f);
}

.skill-pill:nth-child(6n + 5) {
  --accent-border-start: var(--accent-palette-a);
  --accent-border-end: var(--accent-palette-c);
}

.skill-pill:nth-child(6n + 6) {
  --accent-border-start: var(--accent-palette-d);
  --accent-border-end: var(--accent-palette-f);
}

.skill-pill:hover {
  color: var(--text);
  filter: drop-shadow(0 2px 4px var(--accent));
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.skill-pill:hover::before {
  background: linear-gradient(
    45deg,
    color-mix(
        in srgb,
        color-mix(in srgb, var(--accent-border-start) 86%, white 14%) 80%,
        transparent
      )
      0%,
    color-mix(
        in srgb,
        color-mix(in srgb, var(--accent-border-end) 86%, white 14%) 80%,
        transparent
      )
      100%
  );
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

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

.service-card {
  padding: 32px 28px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition:
    background var(--t),
    border-color var(--t),
    transform var(--t),
    box-shadow var(--t);
  cursor: default;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm), var(--glow);
}

.service-card--featured {
  --accent-border-start: var(--accent-palette-a);
  --accent-border-end: var(--accent-palette-b);
  --accent-bg: color-mix(in srgb, var(--accent-palette-a) 10%, transparent);
  position: relative;
  padding: 32px 30px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, var(--accent-bg), var(--featured-sheen-bottom)),
    radial-gradient(
      circle at 0% 0%,
      var(--featured-tint-start),
      transparent 40%
    ),
    radial-gradient(circle at 100% 100%, var(--bg-alt), transparent 44%),
    var(--bg-card);
  border: none;
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  min-height: 220px;
}

.service-card--featured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--featured-overlay), var(--featured-highlight);
  pointer-events: none;
  transition:
    transform var(--t),
    opacity var(--t);
  opacity: 0.55;
}

.service-card--featured:hover {
  --accent-hover-start: color-mix(
    in srgb,
    var(--accent-palette-a) 25%,
    transparent
  );
  --accent-hover-end: color-mix(
    in srgb,
    var(--accent-palette-b) 19%,
    transparent
  );
  background: linear-gradient(
    115deg,
    var(--accent-hover-start) 0%,
    transparent 50%,
    var(--accent-hover-end) 100%
  );
  border-color: var(--featured-border-strong);
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 0 28px var(--featured-glow);
}

.service-card--featured:hover::after {
  transform: scale(1.01);
  opacity: 0.8;
}

.service-card--featured:nth-child(6n + 1) {
  --accent-border-start: var(--accent-palette-a);
  --accent-border-end: var(--accent-palette-b);
  --accent-hover-start: color-mix(
    in srgb,
    var(--accent-palette-a) 25%,
    transparent
  );
  --accent-hover-end: color-mix(
    in srgb,
    var(--accent-palette-b) 17%,
    transparent
  );
  --accent-bg: color-mix(in srgb, var(--accent-palette-a) 10%, transparent);
}

.service-card--featured:nth-child(6n + 2) {
  --accent-border-start: var(--accent-palette-a);
  --accent-border-end: var(--accent-palette-c);
  --accent-hover-start: color-mix(
    in srgb,
    var(--accent-palette-a) 25%,
    transparent
  );
  --accent-hover-end: color-mix(
    in srgb,
    var(--accent-palette-c) 17%,
    transparent
  );
  --accent-bg: color-mix(in srgb, var(--accent-palette-c) 10%, transparent);
}

.service-card--featured:nth-child(6n + 3) {
  --accent-border-start: var(--accent-palette-d);
  --accent-border-end: var(--accent-palette-e);
  --accent-hover-start: color-mix(
    in srgb,
    var(--accent-palette-d) 25%,
    transparent
  );
  --accent-hover-end: color-mix(
    in srgb,
    var(--accent-palette-e) 17%,
    transparent
  );
  --accent-bg: color-mix(in srgb, var(--accent-palette-d) 10%, transparent);
}

.service-card--featured:nth-child(6n + 4) {
  --accent-border-start: var(--accent-palette-b);
  --accent-border-end: var(--accent-palette-c);
  --accent-hover-start: color-mix(
    in srgb,
    var(--accent-palette-b) 25%,
    transparent
  );
  --accent-hover-end: color-mix(
    in srgb,
    var(--accent-palette-c) 17%,
    transparent
  );
  --accent-bg: color-mix(in srgb, var(--accent-palette-b) 10%, transparent);
}

.service-card--featured:nth-child(6n + 5) {
  --accent-border-start: var(--accent-palette-e);
  --accent-border-end: var(--accent-palette-f);
  --accent-hover-start: color-mix(
    in srgb,
    var(--accent-palette-e) 25%,
    transparent
  );
  --accent-hover-end: color-mix(
    in srgb,
    var(--accent-palette-f) 17%,
    transparent
  );
  --accent-bg: color-mix(in srgb, var(--accent-palette-e) 10%, transparent);
}

.service-card--featured:nth-child(6n + 6) {
  --accent-border-start: var(--accent-palette-d);
  --accent-border-end: var(--accent-palette-f);
  --accent-hover-start: color-mix(
    in srgb,
    var(--accent-palette-d) 25%,
    transparent
  );
  --accent-hover-end: color-mix(
    in srgb,
    var(--accent-palette-f) 17%,
    transparent
  );
  --accent-bg: color-mix(in srgb, var(--accent-palette-d) 10%, transparent);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  filter: grayscale(0.3);
  transition: transform var(--t);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-label);
}

.service-icon--featured {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 0;
  font-size: 18px;
  color: var(--text);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.05)
    ),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 24px rgba(0, 0, 0, 0.22);
  filter: none;
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
}

.service-card--featured:hover .service-icon--featured {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.24),
    0 0 16px rgba(0, 255, 191, 0.08);
}

.service-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.service-card--featured .service-name {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.service-desc {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
}

/* =============================================================
   Raul Schnelzer — dark-theme.css  v3.0.0
   ============================================================= */

/* ─── DARK THEME (default) ───────────────────────────────────── */
[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0a0a0f;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.09);
  --bg-overlay: rgba(0, 0, 0, 0.92);
  --text: #f5f5f7;
  --text-muted: rgba(245, 245, 247, 0.55);
  --text-label: rgba(245, 245, 247, 0.4);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --nav-bg: rgba(10, 10, 15, 0.6);
  --pill-bg: rgba(255, 255, 255, 0.08);
  --pill-hover: rgba(0, 255, 191, 0.2);
  --pill-surface: rgba(23, 152, 210, 0.1);
  --pill-surface-hover: rgba(23, 152, 210, 0.16);
  --pill-border: rgba(23, 152, 210, 0.22);
  --pill-border-strong: rgba(129, 51, 225, 0.3);
  --pill-highlight: rgba(255, 255, 255, 0.12);
  --pill-glow: rgba(23, 152, 210, 0.12);
  --badge-active-bg: rgba(0, 255, 191, 0.12);
  --badge-active-border: rgba(0, 255, 191, 0.35);
  --badge-active-text: var(--accent);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.5);
  --glow: 0 0 32px rgba(0, 255, 191, 0.15);
  --social-filter: invert(1);
  --social-filter-glow: invert(1) drop-shadow(0 0 8px rgba(0, 255, 191, 0.9));
  --theme-toggle-shine: rgba(0, 255, 191, 0.3);
  --theme-toggle-glow: rgba(0, 255, 191, 0.16);
  --skill-pill-text: #eaeaea;
  --skill-pill-bg: #222222;
}

/* Dark mode: transparent button + luminous sun */
[data-theme="dark"] .theme-btn {
  background: transparent;
  box-shadow: none;
}

[data-theme="dark"] .theme-btn:hover {
  box-shadow: 0 0 24px var(--theme-toggle-glow);
}

/* Show/hide sun and moon */
[data-theme="dark"] .icon-sun {
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(0, 255, 191, 0.28));
}
[data-theme="dark"] .icon-moon {
  display: none;
}

/* =============================================================
   Raul Schnelzer — light-theme.css  v3.0.0
   ============================================================= */

/* ─── LIGHT THEME ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg: #fbfbfd;
  --bg-alt: #f2f2f7;
  --bg-card: rgba(0, 0, 0, 0.04);
  --bg-card-hover: rgba(0, 0, 0, 0.07);
  --bg-overlay: rgba(255, 255, 255, 0.96);
  --text: #1d1d1f;
  --text-muted: rgba(29, 29, 31, 0.55);
  --text-label: rgba(29, 29, 31, 0.4);
  --border: rgba(0, 0, 0, 0.1);
  --border-hover: rgba(0, 0, 0, 0.25);
  --nav-bg: rgba(242, 242, 247, 0.6);
  --accent: #996fe3;
  --pill-bg: rgba(0, 0, 0, 0.06);
  --pill-hover: rgba(153, 111, 227, 0.14);
  --pill-surface: rgba(23, 152, 210, 0.08);
  --pill-surface-hover: rgba(23, 152, 210, 0.13);
  --pill-border: rgba(23, 152, 210, 0.16);
  --pill-border-strong: rgba(129, 51, 225, 0.24);
  --pill-highlight: rgba(255, 255, 255, 0.72);
  --pill-glow: rgba(23, 152, 210, 0.1);
  --badge-active-bg: rgba(153, 111, 227, 0.12);
  --badge-active-border: rgba(153, 111, 227, 0.28);
  --badge-active-text: #6f46c5;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.08);
  --glow: 0 0 32px rgba(153, 111, 227, 0.28);
  --social-filter: none;
  --social-filter-glow: drop-shadow(0 0 8px rgba(153, 111, 227, 0.75));
  --theme-toggle-shine: rgba(153, 111, 227, 0.28);
  --theme-toggle-glow: rgba(153, 111, 227, 0.18);
  --skill-pill-text: #444444;
  --skill-pill-bg: #eaeaea;
}

/* Light mode: transparent button + tinted moon */
[data-theme="light"] .theme-btn {
  background: transparent;
  box-shadow: none;
}

[data-theme="light"] .theme-btn:hover {
  box-shadow: 0 0 24px var(--theme-toggle-glow);
}

/* Show/hide sun and moon */
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
  filter: brightness(0) saturate(100%) invert(14%) sepia(7%) saturate(658%)
    hue-rotate(202deg) brightness(94%) contrast(92%);
}
