/* ═══════════════════════════════════════════════════════════
   SECTIONS — hero, what I bring, experience, journey, skills, projects
   Everything between the navbar and the footer.
   ═══════════════════════════════════════════════════════════ */

.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgb(182, 95, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero-bg-glow-purple {
  position: absolute;
  top: 10%;
  left: 5%;
  z-index: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(182, 95, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero-bg-glow-violet {
  position: absolute;
  bottom: 0;
  right: 5%;
  z-index: 0;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(123, 108, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Device glow blobs ───────────────────────────────── */
.device-glow-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.device-glow-blob.purple {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--purple) 18%, transparent) 0%,
    transparent 70%
  );
}
.device-glow-blob.violet {
  width: 200px;
  height: 200px;
  bottom: 0;
  right: 10%;
  background: radial-gradient(circle, rgb(123, 108, 255, 0.12) 0%, transparent 70%);
}

/* ── Orbital rings ───────────────────────────────────── */
.orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--purple) 20%, transparent);
  pointer-events: none;
  transform-style: preserve-3d;
}
.orbit-ring-1 {
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  transform: rotateX(70deg) rotateZ(0deg);
  animation: spinOrbit-ee58fd93 10s linear infinite;
}
.orbit-ring-2 {
  width: 280px;
  height: 280px;
  margin: -140px 0 0 -140px;
  transform: rotateX(65deg) rotateZ(30deg);
  animation: spinOrbitReverse-ee58fd93 14s linear infinite;
}
.orbit-traveler {
  position: absolute;
  top: -4px;
  left: 50%;
  margin-left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}
.orbit-traveler.violet {
  background: var(--violet);
  box-shadow: 0 0 10px var(--violet);
}
@keyframes spinOrbit-ee58fd93 {
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}
@keyframes spinOrbitReverse-ee58fd93 {
  to {
    transform: rotateX(65deg) rotateZ(30deg) rotateY(360deg);
  }
}

/* ── Particles ───────────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  background: color-mix(in srgb, var(--purple) 60%, transparent);
  animation: floatParticle-ee58fd93 var(--d) ease-in-out infinite alternate;
}
.hero-particles .particle:nth-child(1) {
  --x: 10%;
  --y: 15%;
  --d: 3.2s;
  --s: 3px;
}
.hero-particles .particle:nth-child(2) {
  --x: 85%;
  --y: 8%;
  --d: 4.1s;
  --s: 2px;
}
.hero-particles .particle:nth-child(3) {
  --x: 72%;
  --y: 78%;
  --d: 2.8s;
  --s: 4px;
}
.hero-particles .particle:nth-child(4) {
  --x: 20%;
  --y: 65%;
  --d: 5s;
  --s: 2px;
}
.hero-particles .particle:nth-child(5) {
  --x: 55%;
  --y: 90%;
  --d: 3.6s;
  --s: 3px;
}
.hero-particles .particle:nth-child(6) {
  --x: 92%;
  --y: 45%;
  --d: 4.4s;
  --s: 2px;
}
.hero-particles .particle:nth-child(7) {
  --x: 38%;
  --y: 20%;
  --d: 6s;
  --s: 2px;
}
.hero-particles .particle:nth-child(8) {
  --x: 5%;
  --y: 52%;
  --d: 3s;
  --s: 4px;
}
@keyframes floatParticle-ee58fd93 {
  from {
    transform: translateY(0) scale(1);
    opacity: 0.5;
  }
  to {
    transform: translateY(-14px) scale(1.3);
    opacity: 1;
  }
}

/* ── 3-D code block card ────────────────────────────── */
.code-block-wrapper {
  position: relative;
  z-index: 2;
  animation: floatDevice-ee58fd93 4s ease-in-out infinite alternate;
}
@keyframes floatDevice-ee58fd93 {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-12px);
  }
}
.code-block {
  width: 360px;
  transform: perspective(900px) rotateX(8deg) rotateY(-16deg);
  position: relative;
  filter: drop-shadow(0 0 30px color-mix(in srgb, var(--purple) 35%, transparent))
    drop-shadow(0 0 70px rgb(182, 95, 255, 0.15)) drop-shadow(0 30px 60px rgb(0, 0, 0, 0.5));
}
.cb-front {
  position: relative;
  width: 100%;
  background: linear-gradient(145deg, var(--cb-bg-a), var(--cb-bg-b));
  border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    inset 0 0 40px color-mix(in srgb, var(--purple) 4%, transparent),
    0 0 0 1px color-mix(in srgb, var(--purple) 10%, transparent),
    8px 8px 0 -1px var(--cb-shadow-a),
    8px 8px 0 0 color-mix(in srgb, var(--purple) 28%, transparent),
    16px 16px 0 -1px var(--cb-shadow-b),
    16px 16px 0 0 color-mix(in srgb, var(--purple) 14%, transparent);
}

/* Chrome bar */
.cb-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--purple) 4%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--purple) 10%, transparent);
}
.chrome-dots {
  display: flex;
  gap: 6px;
}
.cdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cdot.red {
  background: var(--chrome-red);
}
.cdot.yellow {
  background: var(--chrome-yellow);
}
.cdot.green {
  background: var(--chrome-green);
}
.chrome-title {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
  text-align: center;
  font-family: var(--mono);
}
.chrome-actions {
  display: flex;
  gap: 6px;
}
.chrome-actions span {
  width: 14px;
  height: 3px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  border-radius: 2px;
}

/* Code lines */
.cb-code {
  padding: 14px 0 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
}
.code-line {
  display: flex;
  align-items: baseline;
  gap: 0;
  padding: 2px 14px;
}
.code-line.active-line {
  background: color-mix(in srgb, var(--purple) 7%, transparent);
}
.cb-code span {
  white-space: pre;
}

/* Syntax tokens */
.ln {
  color: color-mix(in srgb, var(--text) 20%, transparent);
  min-width: 18px;
  user-select: none;
  font-size: 10px;
}
.indent {
  min-width: 18px;
}
.kw {
  color: var(--code-kw);
  margin-right: 0.34em;
}
.fn {
  color: var(--code-attr);
}
.op {
  color: color-mix(in srgb, var(--text) 45%, transparent);
}
.br {
  color: var(--code-bracket);
}
.prop {
  color: var(--code-prop);
}
.str {
  color: var(--code-str);
}
.str-lang {
  color: var(--code-lang);
  font-weight: 700;
  text-shadow:
    0 0 10px rgb(67, 213, 255, 0.18),
    0 0 18px rgb(67, 213, 255, 0.08);
}
.comment {
  color: color-mix(in srgb, var(--text) 25%, transparent);
  font-style: italic;
}
.cursor-blink {
  color: var(--purple);
  animation: blink-ee58fd93 1s step-end infinite;
}
@keyframes blink-ee58fd93 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scan line */
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--purple) 40%, transparent),
    transparent
  );
  animation: scanLine-ee58fd93 3s ease-in-out infinite;
}
@keyframes scanLine-ee58fd93 {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .code-block-wrapper,
  .orbit-ring-1,
  .orbit-ring-2,
  .particle,
  .scan-line,
  .cursor-blink {
    animation: none;
  }
}

/* ── Float card base ─────────────────────────────────── */
.float-card {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid rgb(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgb(0, 0, 0, 0.35);
  white-space: nowrap;
  z-index: 2;
}

/* ── Positions ───────────────────────────────────────── */
.fc-1 {
  top: 8%;
  left: -10%;
  animation: floatA-90252053 6s ease-in-out infinite;
}
.fc-2 {
  top: 30%;
  right: -8%;
  animation: floatB-90252053 7s ease-in-out infinite 0.5s;
}
.fc-3 {
  bottom: 0;
  left: -12%;
  animation: floatC-90252053 8s ease-in-out infinite 1s backwards;
}
.fc-4 {
  bottom: 10%;
  right: -6%;
  animation: floatA-90252053 6.5s ease-in-out infinite 1.5s;
}

/* ── Icon containers ─────────────────────────────────── */
.fc-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fc-icon.purple {
  background: color-mix(in srgb, var(--purple) 18%, transparent);
  color: var(--purple);
}
.fc-icon.violet {
  background: color-mix(in srgb, var(--violet) 18%, transparent);
  color: var(--violet);
}
.fc-icon.green {
  background: color-mix(in srgb, var(--green) 18%, transparent);
  color: var(--green);
}

/* ── Text ────────────────────────────────────────────── */
.fc-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.fc-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
}
.fc-sub {
  font-size: 0.62rem;
  color: var(--muted);
}

/* ── Live indicator dot ──────────────────────────────── */
.fc-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-left: 0.2rem;
  flex-shrink: 0;
  animation: badgePulse-90252053 2s ease-in-out infinite;
}

/* ── Keyframes ───────────────────────────────────────── */
@keyframes floatA-90252053 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes floatB-90252053 {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}
@keyframes floatC-90252053 {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}
@keyframes badgePulse-90252053 {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none;
  }
  .fc-dot-live {
    animation: none;
  }
}
@media (width <= 1180px) {
  .float-card {
    display: none;
  }
}

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
}
@keyframes heroFadeUp-9331ebc5 {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes heroScaleIn-9331ebc5 {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Two-column layout */
.hero-container {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  width: 100%;
}

/* Left column */
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in srgb, var(--purple) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--purple) 25%, transparent);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--purple);
  width: fit-content;
  animation: heroFadeUp-9331ebc5 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.badge-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--purple) 50%, transparent);
  animation: badgePulse-9331ebc5 2s ease-in-out infinite;
}
@keyframes badgePulse-9331ebc5 {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--purple) 50%, transparent);
  }
  50% {
    box-shadow: 0 0 0 6px transparent;
  }
}
.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  animation: heroFadeUp-9331ebc5 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.title-line-1 {
  color: var(--text);
  font-size: clamp(34px, 7.5vw, 55px);
}
.title-line-2 {
  display: block;
  width: fit-content;
  max-width: 100%;
  background: linear-gradient(
    90deg,
    var(--gradient-pink) 0%,
    var(--gradient-indigo) 45%,
    var(--green) 100%
  );
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: clamp(30px, 6vw, 45px);
}
.hero-subtitle {
  font-size: 15.5px;
  line-height: 1.76;
  color: color-mix(in srgb, var(--text) 64%, transparent);
  max-width: 49ch;
  text-wrap: pretty;
  animation: heroFadeUp-9331ebc5 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: heroFadeUp-9331ebc5 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}
.stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
}
.hero-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  animation: heroFadeUp-9331ebc5 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both;
}
.hero-cta .btn-primary,
.hero-cta .btn-ghost {
  min-width: 210px;
  justify-content: center;
}

/* Right column wrapper — HeroCodeBlock and HeroFloatCards position themselves inside */
.hero-right {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 460px;
  animation: heroScaleIn-9331ebc5 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
}

/* Hero responsive */
@media (width <= 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-left {
    align-items: center;
  }
  .hero-right {
    display: none;
  }
  .hero-stats {
    justify-content: center;
  }
  .hero-cta {
    justify-content: center;
  }
}
@media (width <= 768px) {
  .hero-container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (width <= 640px) {
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    min-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge,
  .hero-title,
  .hero-subtitle,
  .hero-stats,
  .hero-cta,
  .hero-right {
    animation: none;
    opacity: 1;
  }
  .badge-pulse {
    animation: none;
  }
}

.bring-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 220px;
  padding: 24px 22px 22px;
  background:
    radial-gradient(circle at 18% 10%, rgb(255, 255, 255, 0.035), transparent 32%),
    linear-gradient(180deg, rgb(10, 12, 24, 0.98) 0%, rgb(7, 9, 18, 0.98) 100%);
  border: 1px solid rgb(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.03),
    inset 0 0 0 1px rgb(255, 255, 255, 0.01),
    0 0 0 1px rgb(0, 0, 0, 0.12);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

/* Gradient border via pseudo-element */
.bring-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    var(--bring-line) 0%,
    rgb(255, 255, 255, 0.08) 18%,
    rgb(255, 255, 255, 0.025) 52%,
    rgb(255, 255, 255, 0.015) 100%
  );
  mask:
    linear-gradient(black 0 0) content-box,
    linear-gradient(black 0 0);
  mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Top glow */
.bring-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 18px;
  background: radial-gradient(circle at 50% 0%, var(--bring-glow), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}
.bring-card:hover {
  transform: translateY(-3px);
  border-color: rgb(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.04),
    0 16px 34px rgb(0, 0, 0, 0.26);
}
.bring-card--sm {
  grid-column: span 2;
}
.bring-card--lg {
  grid-column: span 3;
  min-height: 236px;
  padding-top: 28px;
}

/* Card inner layout */
.bring-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.bring-icon-box {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bring-icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle, var(--bring-icon-glow), transparent 72%);
  filter: blur(10px);
  opacity: 0.42;
  pointer-events: none;
}
.bring-title-wrap {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 52px;
}
.bring-title {
  margin: 0;
  max-width: 22ch;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.bring-card--lg .bring-title {
  font-size: 19px;
  max-width: 24ch;
}
.bring-body {
  margin-top: 0;
}
.bring-desc {
  margin: 0;
  max-width: 48ch;
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 500;
  color: rgb(255, 255, 255, 0.62);
  text-wrap: pretty;
}
.bring-card--lg .bring-desc {
  max-width: 60ch;
  font-size: 15.5px;
}

/* Color themes */
.bring-card--blue {
  --bring-line: rgb(78, 118, 255, 0.72);
  --bring-glow: rgb(78, 118, 255, 0.18);
  --bring-icon: var(--bring-blue-icon);
  --bring-icon-glow: rgb(39, 236, 174, 0.24);
}
.bring-card--green {
  --bring-line: rgb(44, 226, 176, 0.72);
  --bring-glow: rgb(44, 226, 176, 0.18);
  --bring-icon: var(--bring-green-icon);
  --bring-icon-glow: rgb(181, 93, 255, 0.24);
}
.bring-card--purple {
  --bring-line: rgb(146, 92, 255, 0.66);
  --bring-glow: rgb(146, 92, 255, 0.16);
  --bring-icon: var(--bring-purple-icon);
  --bring-icon-glow: rgb(207, 99, 255, 0.24);
}
.bring-card--violet {
  --bring-line: rgb(118, 110, 255, 0.68);
  --bring-glow: rgb(118, 110, 255, 0.16);
  --bring-icon: var(--violet);
  --bring-icon-glow: rgb(123, 108, 255, 0.23);
}
.bring-card--emerald {
  --bring-line: rgb(36, 239, 170, 0.68);
  --bring-glow: rgb(36, 239, 170, 0.16);
  --bring-icon: var(--green);
  --bring-icon-glow: rgb(34, 239, 170, 0.24);
}

/* Responsive */
@media (width <= 1200px) {
  .bring-card--sm,
  .bring-card--lg {
    grid-column: span 1;
    min-height: 220px;
    padding-top: 24px;
  }
  .bring-card--lg .bring-title {
    font-size: 17px;
  }
  .bring-card--lg .bring-desc {
    max-width: 270px;
    font-size: 13px;
  }
}
@media (width <= 640px) {
  .bring-card {
    min-height: auto;
    padding: 22px 18px 18px;
    border-radius: 16px;
  }
  .bring-card::before,
  .bring-card::after {
    border-radius: 16px;
  }
  .bring-card-header {
    gap: 14px;
    margin-bottom: 16px;
  }
  .bring-icon-box {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
  }
  .bring-title-wrap {
    min-height: 48px;
  }
  .bring-title,
  .bring-card--lg .bring-title,
  .bring-desc,
  .bring-card--lg .bring-desc {
    max-width: none;
  }
  .bring-desc,
  .bring-card--lg .bring-desc {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bring-card {
    transition: border-color 0.2s;
  }
  .bring-card:hover {
    transform: none;
  }
}

.bring-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}
.bring-icon {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  color: var(--bring-icon);
  filter: drop-shadow(0 0 10px rgb(255, 255, 255, 0.08));
}
@media (width <= 1200px) {
  .bring-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width <= 640px) {
  .bring-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bring-icon {
    width: 31px;
    height: 31px;
  }
}

.bring-section {
  padding: 100px 0;
}
.bring-section .section-sub {
  margin-bottom: 34px;
}

.exp-entry {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 0 20px;
  padding-bottom: 44px;
}
.exp-entry:last-child {
  padding-bottom: 0;
}
.exp-marker {
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.exp-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  background: var(--bg);
  box-shadow: 0 0 10px color-mix(in srgb, var(--purple) 35%, transparent);
  flex-shrink: 0;
}
.exp-entry.revealed .exp-dot {
  background: var(--purple);
  box-shadow: 0 0 16px color-mix(in srgb, var(--purple) 58%, transparent);
}

/* Card */
.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease;
}
.exp-card:hover {
  border-color: color-mix(in srgb, var(--purple) 28%, transparent);
  transform: translateX(4px);
}

/* Card header */
.exp-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.exp-badge {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgb(10, 14, 26, 0.92);
  border: 1px solid color-mix(in srgb, var(--purple) 24%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--text) 3%, transparent),
    0 0 0 1px color-mix(in srgb, var(--green) 4%, transparent),
    0 0 12px color-mix(in srgb, var(--purple) 12%, transparent);
  overflow: hidden;
}
.exp-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgb(182, 95, 255, 0.75) 0%,
    rgb(123, 108, 255, 0.72) 42%,
    rgb(34, 239, 170, 0.78) 100%
  );
  mask:
    linear-gradient(black 0 0) content-box,
    linear-gradient(black 0 0);
  mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.exp-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 25% 22%, rgb(182, 95, 255, 0.16), transparent 34%),
    radial-gradient(circle at 78% 76%, rgb(34, 239, 170, 0.14), transparent 32%);
  pointer-events: none;
}
.exp-badge-initial {
  position: relative;
  z-index: 1;
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  background: linear-gradient(
    135deg,
    var(--exp-initial-a) 0%,
    var(--exp-initial-b) 44%,
    var(--exp-initial-c) 100%
  );
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--purple) 14%, transparent))
    drop-shadow(0 0 10px color-mix(in srgb, var(--green) 8%, transparent));
}
.exp-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.exp-company-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.exp-company {
  font-size: 15px;
  font-weight: 750;
  color: var(--exp-company);
}
.exp-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1;
  color: color-mix(in srgb, var(--text) 62%, transparent);
  background: color-mix(in srgb, var(--text) 3.5%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent);
}
.exp-date-now {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
  color: var(--exp-now-badge);
  font-weight: 750;
  letter-spacing: 0.01em;
}
.exp-role {
  font-size: 14.5px;
  font-weight: 700;
  color: color-mix(in srgb, var(--text) 88%, transparent);
}

/* Card body */
.exp-desc {
  font-size: 14.5px;
  line-height: 1.72;
  color: color-mix(in srgb, var(--text) 66%, transparent);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 22px;
  padding: 0;
}
.exp-list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.68;
  color: color-mix(in srgb, var(--text) 82%, transparent);
  text-wrap: pretty;
}
.exp-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--green) 8%, transparent),
    0 0 10px color-mix(in srgb, var(--green) 22%, transparent);
  transform: translateY(-50%);
}

/* Tech tags */
.exp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.exp-chips .stack-chip {
  min-height: 32px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
}

/* Responsive */
@media (width <= 900px) {
  .exp-desc,
  .exp-list li {
    font-size: 14px;
  }
  .exp-role {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .exp-card {
    transition: border-color 0.25s ease;
  }
  .exp-card:hover {
    transform: none;
  }
}
@media (width <= 700px) {
  .exp-head {
    align-items: flex-start;
  }
  .exp-company-row {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  .exp-entry {
    grid-template-columns: 22px 1fr;
    gap: 0 14px;
  }
}

.exp-timeline {
  position: relative;
  padding-left: 40px;
}
.exp-line-track {
  position: absolute;
  left: 53px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  overflow: hidden;
}
.exp-line-base {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: 2px;
}
.exp-line-flow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(180deg, var(--purple) 0%, var(--violet) 42%, var(--green) 100%);
  border-radius: 2px;
  box-shadow:
    0 0 10px color-mix(in srgb, var(--purple) 45%, transparent),
    0 0 14px color-mix(in srgb, var(--green) 18%, transparent);
}
.exp-line-flow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in srgb, var(--text) 45%, transparent) 40%,
    transparent 100%
  );
  background-size: 100% 300%;
  animation: flowDown-6bbdff5e 5s linear infinite;
}
@keyframes flowDown-6bbdff5e {
  0% {
    background-position: 0 -200%;
  }
  100% {
    background-position: 0 300%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .exp-line-flow::after {
    animation: none;
  }
}
@media (width <= 900px) {
  .exp-timeline {
    padding-left: 24px;
  }
  .exp-line-track {
    left: 37px;
  }
}
@media (width <= 700px) {
  .exp-line-track {
    left: 34px;
  }
}

.experience-section {
  padding: 100px 0;
}

.journey-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.journey-progress {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 0;
  opacity: 0.8;
}

/* Set by journey.js on every step change. The counter follows the panel
   rhythm exactly — 0.2s to leave, then 0.32s to arrive on the same curve —
   so the number does not snap while the text beside it crossfades. The
   percentages are those two durations as a share of the 0.52s total. */
.journey-progress.is-swapping {
  animation: journey-progress-swap 0.52s both;
}

@keyframes journey-progress-swap {
  0% {
    opacity: 0.8;
    transform: none;
    animation-timing-function: ease;
  }

  38% {
    opacity: 0;
    transform: translateY(10px);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  100% {
    opacity: 0.8;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journey-progress.is-swapping {
    animation: none;
  }
}

.journey-panels {
  display: grid;
}
.journey-panel {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);

  /* Leaves quickly and without delay, so it is gone before the next arrives */
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  pointer-events: none;
}
.journey-panel.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;

  /* Waits for the outgoing panel to clear before fading in */
  transition:
    opacity 0.32s ease 0.11s,
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) 0.11s;
}
.journey-panel-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--purple), var(--green));
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.journey-panel-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.journey-panel-title::after {
  content: '';
  display: block;
  margin-top: 18px;
  height: 1.5px;
  width: 55%;
  background: linear-gradient(
    90deg,
    var(--gradient-pink) 0%,
    var(--gradient-indigo) 45%,
    var(--green) 100%
  );
  border-radius: 2px;
  opacity: 0.7;
}
.journey-panel-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
  max-width: 60ch;
  text-wrap: pretty;
}
@media (width <= 768px) {
  .journey-content-col {
    height: auto;
    align-self: end;
    position: relative;
    z-index: 4;
    margin-top: -13px;
    padding: 12px 14px 14px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--text) 5.5%, transparent);
    box-shadow: 0 -16px 30px color-mix(in srgb, var(--bg) 48%, transparent);
  }
  .journey-panels {
    min-height: 0;
  }
  .journey-panel-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 10px;
  }
  .journey-panel-title::after {
    margin-top: 12px;
  }
  .journey-panel-text {
    font-size: 14px;
    line-height: 1.58;
    max-width: 100%;
  }
}
@media (width <= 480px) {
  .journey-content-col {
    padding-bottom: 4px;
  }
  .journey-progress {
    font-size: 11px;
  }
  .journey-panel-label {
    font-size: 11px;
  }
  .journey-panel-title {
    font-size: clamp(19px, 5.2vw, 26px);
  }
  .journey-panel-text {
    font-size: 13px;
    line-height: 1.56;
  }
}
@media (width <= 480px) and (height <= 700px) {
  .journey-progress {
    font-size: 10px;
    line-height: 1;
  }
  .journey-panel-label {
    font-size: 10px;
    line-height: 1.1;
    margin-bottom: 8px;
  }
  .journey-panel-title {
    font-size: clamp(17px, 4.8vw, 22px);
    line-height: 1.1;
    margin-bottom: 8px;
  }
  .journey-panel-title::after {
    margin-top: 10px;
  }
  .journey-panel-text {
    font-size: 12px;
    line-height: 1.44;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey-panel {
    transition: opacity 0.2s ease;
    transform: none;
  }
}

/*
  Static fallback (reduced motion). Without the scroll animation nothing ever
  toggles `.active`, so every panel stacks and reads as plain document flow.
  The step counter is meaningless once all panels are shown at once.
*/
.journey-static .journey-progress {
  display: none;
}

/*
  Back to normal flow, so the panels stack down the page instead of sharing one
  grid cell. Overriding `position` alone would not do it — grid placement, not
  positioning, is what stacks them.
*/
.journey-static .journey-panels {
  display: block;
}
.journey-static .journey-panel {
  grid-area: auto;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  padding-bottom: 44px;
}
.journey-static .journey-panel:last-child {
  padding-bottom: 0;
}

.journey-section {
  position: relative;
}
.journey-header {
  padding-top: 100px;
}

/* Decorative separator */
.journey-divider {
  position: relative;
  height: 1px;
  margin: 32px 40px 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgb(182, 95, 255, 0.5) 20%,
    rgb(34, 239, 170, 0.6) 60%,
    transparent 100%
  );
}
.journey-divider::before,
.journey-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.journey-divider::before {
  left: 20%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}
.journey-divider::after {
  right: 40%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

/* Outer scroll container: defines scroll height */
.journey-scroll-outer {
  position: relative;
  height: 860vh;
}

/* Sticky two-column panel */
.journey-sticky-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  gap: 60px;
  overflow: hidden;
}

/* Left: SVG path column */
.journey-path-col {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 88vh;
  position: relative;
}
.journey-path-col::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 82%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    rgb(182, 95, 255, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.journey-svg,
#journey-svg {
  width: 100%;
  max-width: 440px;
  height: 92vh;
  overflow: visible;
  position: relative;
  z-index: 2;
}

/* Canvas overlays — sit behind SVG milestone nodes. */
.journey-canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
  z-index: 1;
}

/* Reference path — geometry sampled by JS at startup, then hidden */
#jp-base {
  visibility: hidden;
}

/* Milestone nodes */
.jp-milestone {
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.22s ease;
}
.jp-ms-ring {
  fill: none;
  stroke: rgb(84, 112, 124, 0.42);
  stroke-width: 2;
  opacity: 0.72;
  transform-box: fill-box;
  transform-origin: center;
  transition:
    stroke 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}
.jp-ms-dot {
  fill: var(--journey-dot-bg);
  stroke: rgb(255, 255, 255, 0.18);
  stroke-width: 1.5;
  opacity: 0;
  transition:
    fill 0.22s ease,
    stroke 0.22s ease,
    transform 0.22s ease,
    opacity 0.22s ease;
}
.jp-ms-icon-wrap,
.jp-ms-logo {
  color: var(--journey-icon-default);
  opacity: 0.88;
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
  pointer-events: none;
}
.jp-ms-icon--stroke {
  fill: none;
  stroke: currentcolor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jp-ms-icon--fill {
  fill: currentcolor;
  stroke: none;
}
.jp-ms-dollar {
  fill: currentcolor;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
  color: var(--journey-icon-default);
  opacity: 0.88;
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease;
}
.jp-ms-logo-main {
  fill: currentcolor;
  transition: fill 0.22s ease;
}
.jp-ms-logo-v {
  fill: var(--journey-logo-v);
  transition: fill 0.22s ease;
}

/* Year labels */
.jp-year-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  fill: rgb(235, 241, 255, 0.82);
  opacity: 0;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgb(7, 7, 15, 0.92);
  stroke-width: 2.6px;
  stroke-linejoin: round;
  transition: opacity 0.18s ease;
}
.jp-year-label--left {
  text-anchor: end;
}
.jp-year-label--now {
  fill: rgb(235, 241, 255, 0.92);
}

/* ── Milestone states ───────────────────────────────────── */

/* Passed */

/*
  `--ms-color` is set per node by the animation, sampling the ribbon gradient at
  that node's position so a milestone matches the band around it rather than
  being green against violet. The fallbacks are what the reduced-motion build
  gets, since it never runs the script that sets the property.
*/
.jp-milestone.is-passed .jp-ms-dot {
  fill: var(--ms-color, var(--journey-passed-dot));
  stroke: rgb(5, 20, 13, 0.55);
  opacity: 1;
}
.jp-milestone.is-passed .jp-ms-ring {
  stroke: color-mix(in srgb, var(--ms-color, rgb(73, 227, 166)) 48%, transparent);
  opacity: 0.92;
}
.jp-milestone.is-passed .jp-ms-icon-wrap,
.jp-milestone.is-passed .jp-ms-logo {
  color: var(--journey-passed-icon-bg);
  opacity: 1;
}
.jp-milestone.is-passed .jp-ms-logo-v {
  fill: var(--journey-passed-logo-v);
}
.jp-milestone.is-passed .jp-ms-dollar {
  color: var(--journey-passed-icon-bg);
  opacity: 1;
}

/* Active */
.jp-milestone.is-active .jp-ms-dot {
  fill: var(--ms-color, var(--journey-active-dot));
  stroke: rgb(5, 20, 13, 0.62);
  opacity: 1;
}
.jp-milestone.is-active .jp-ms-ring {
  stroke: color-mix(in srgb, var(--ms-color, rgb(110, 255, 214)) 82%, transparent);
  opacity: 1;
}
.jp-milestone.is-active .jp-ms-icon-wrap,
.jp-milestone.is-active .jp-ms-logo {
  color: var(--journey-active-icon-bg);
  opacity: 1;
}
.jp-milestone.is-active .jp-ms-logo-v {
  fill: var(--journey-active-logo-v);
}
.jp-milestone.is-active .jp-ms-dollar {
  color: var(--journey-passed-icon-bg);
  opacity: 1;
}

/* Burst animation on arrival */
.jp-milestone.is-burst .jp-ms-ring {
  animation: jpMilestoneBurst-8bbeb608 0.72s cubic-bezier(0.2, 0.75, 0.18, 1);
}
.jp-milestone.is-burst .jp-ms-dot {
  animation: jpMilestoneDotFlash-8bbeb608 0.72s cubic-bezier(0.2, 0.75, 0.18, 1);
}

/* "Now" final milestone */
.jp-milestone--now .jp-ms-dot {
  stroke-width: 1.7;
}
.jp-milestone--now .jp-ms-logo {
  opacity: 1;
  display: block;
}
.jp-milestone--now.is-active .jp-ms-dot,
.jp-milestone--now.is-complete .jp-ms-dot {
  fill: var(--journey-now-dot-bg);
  stroke: var(--journey-now-dot-stroke);
}
.jp-milestone--now.is-active .jp-ms-ring,
.jp-milestone--now.is-complete .jp-ms-ring {
  stroke: rgb(88, 239, 181, 0.92);
  opacity: 1;
  animation: jpNowPulse-8bbeb608 2.1s ease-out infinite;
}
.jp-milestone--now.is-active .jp-ms-logo,
.jp-milestone--now.is-complete .jp-ms-logo {
  color: var(--journey-now-logo);
}
.jp-milestone--now.is-active .jp-ms-logo-main,
.jp-milestone--now.is-complete .jp-ms-logo-main {
  fill: url('#vm-grad-m');
}
.jp-milestone--now.is-active .jp-ms-logo-v,
.jp-milestone--now.is-complete .jp-ms-logo-v {
  fill: url('#vm-grad-v');
}

/* Journey animations */
@keyframes jpMilestoneBurst-8bbeb608 {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }
  35% {
    opacity: 1;
    transform: scale(1.24);
  }
  100% {
    opacity: 0.72;
    transform: scale(1);
  }
}
@keyframes jpMilestoneDotFlash-8bbeb608 {
  0% {
    opacity: 0.7;
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes jpNowPulse-8bbeb608 {
  0% {
    opacity: 0.95;
    transform: scale(1);
  }
  55% {
    opacity: 0.18;
    transform: scale(1.22);
  }
  100% {
    opacity: 0;
    transform: scale(1.34);
  }
}
@media (prefers-reduced-motion: reduce) {
  .jp-milestone.is-burst .jp-ms-ring,
  .jp-milestone.is-burst .jp-ms-dot {
    animation: none;
  }
  .jp-milestone--now.is-active .jp-ms-ring,
  .jp-milestone--now.is-complete .jp-ms-ring {
    animation: none;
    opacity: 0.72;
  }
}

/* Journey responsive */
@media (width <= 768px) {
  .journey-scroll-outer {
    height: 560vh;
  }
  .journey-sticky-panel {
    height: 100svh;
    min-height: 100svh;
    grid-template-columns: 1fr;
    grid-template-rows: clamp(320px, 54svh, 460px) auto;
    align-items: center;
    align-content: start;
    gap: 10px;
    padding: calc(var(--nav-h) + 10px) 20px 26px;
    overflow: hidden;
  }
  .journey-path-col {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  .journey-svg,
  #journey-svg {
    width: min(94vw, 390px);
    max-width: none;
    height: clamp(320px, 54svh, 460px);
    min-height: 0;
    overflow: hidden;
  }
}
@media (width <= 480px) {
  .journey-scroll-outer {
    height: 580vh;
  }
  .journey-sticky-panel {
    padding-inline: 16px;
    grid-template-rows: clamp(330px, 56svh, 470px) auto;
    gap: 8px;
  }
  .journey-svg,
  #journey-svg {
    width: min(98vw, 360px);
    overflow: hidden;
  }
}
@media (width <= 480px) and (height <= 700px) {
  .journey-sticky-panel {
    grid-template-rows: clamp(300px, 52svh, 400px) auto;
    gap: 8px;
    padding: calc(var(--nav-h) + 6px) 16px 18px;
  }
  .journey-path-col {
    min-height: 0;
  }
  .journey-svg,
  #journey-svg {
    width: min(96vw, 340px);
    min-height: 0;
    height: clamp(300px, 52svh, 400px);
  }
}

/*
  Static fallback (reduced motion). The animation never runs, so nothing would
  draw the trail, advance the milestones or reveal panels beyond the first.
  Here the scroll container collapses to content height, the full path renders
  as a drawn line, and every node reads as reached. Declared last so it wins
  over the responsive blocks above.
*/
.journey-static .journey-scroll-outer {
  height: auto;
}
.journey-static .journey-sticky-panel {
  position: static;
  height: auto;
  min-height: 0;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  align-items: start;
  padding: 20px 40px 100px;
  overflow: visible;
}
.journey-static .journey-path-col {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: auto;
  min-height: 0;
}
.journey-static .journey-svg,
.journey-static #journey-svg {
  width: 100%;
  max-width: 260px;
  height: auto;
  overflow: visible;
}
.journey-static #jp-base {
  visibility: visible;
  fill: none;
  stroke: rgb(73, 227, 166, 0.5);
  stroke-width: 3;
  stroke-linecap: round;
}
.journey-static .jp-ms-dot {
  fill: var(--journey-passed-dot);
  stroke: rgb(5, 20, 13, 0.55);
  opacity: 1;
}
.journey-static .jp-ms-ring {
  stroke: rgb(73, 227, 166, 0.48);
  opacity: 0.92;
}
.journey-static .jp-ms-icon-wrap,
.journey-static .jp-ms-logo,
.journey-static .jp-ms-dollar {
  color: var(--journey-passed-icon-bg);
  opacity: 1;
}
.journey-static .jp-ms-logo-v {
  fill: var(--journey-passed-logo-v);
}
.journey-static .jp-year-label {
  opacity: 1;
}
@media (width <= 768px) {
  .journey-static .journey-sticky-panel {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 20px 72px;
  }
  .journey-static .journey-path-col {
    position: static;
  }
  .journey-static .journey-svg,
  .journey-static #journey-svg {
    max-width: 220px;
    margin-inline: auto;
  }
}

.how-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  min-height: 122px;
  padding: 17px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 12%, rgb(255, 255, 255, 0.03), transparent 34%),
    linear-gradient(180deg, rgb(255, 255, 255, 0.03), rgb(255, 255, 255, 0.014));
  border: 1px solid rgb(255, 255, 255, 0.07);
}
.how-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgb(34, 239, 170, 0.14) 0%,
    rgb(255, 255, 255, 0.07) 24%,
    rgb(255, 255, 255, 0.02) 56%,
    rgb(255, 255, 255, 0.01) 100%
  );
  mask:
    linear-gradient(black 0 0) content-box,
    linear-gradient(black 0 0);
  mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.how-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgb(34, 239, 170, 0.1), rgb(34, 239, 170, 0.03));
  border: 1px solid rgb(34, 239, 170, 0.18);
  box-shadow: 0 0 18px rgb(34, 239, 170, 0.05);
}
.how-card-text h3 {
  margin: 2px 0 8px;
  font-size: 18px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.how-card-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.62;
  color: rgb(255, 255, 255, 0.62);
  text-wrap: pretty;
}
@media (width <= 640px) {
  .how-card {
    grid-template-columns: 46px 1fr;
    gap: 12px;
    min-height: auto;
    padding: 15px;
  }
  .how-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }
  .how-card-text h3 {
    font-size: 17px;
  }
  .how-card-text p {
    font-size: 13px;
  }
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.how-icon {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.stack-row {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: start;
  padding: 0 0 14px;
  margin-bottom: 14px;
}
.stack-row::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 0;
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  opacity: 0.6;
  background: linear-gradient(90deg, transparent 0%, rgb(34, 239, 170, 0.34) 100%);
}
.stack-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
.stack-row:last-child::after {
  display: none;
}
.stack-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 64%, transparent);
  white-space: nowrap;
}
.stack-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px color-mix(in srgb, var(--green) 55%, transparent);
}
.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (width <= 860px) {
  .stack-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
@media (width <= 640px) {
  .stack-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .stack-chips .stack-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 8px;
  }
}

.skills-section {
  padding: 100px 0;
  position: relative;
}
.skills-section::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border) 20%,
    var(--border) 80%,
    transparent
  );
}

/* Main panel */
.skills-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) 420px;
  gap: 26px;
  align-items: stretch;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 14% 12%, rgb(123, 108, 255, 0.08), transparent 18%),
    radial-gradient(circle at 86% 24%, rgb(34, 239, 170, 0.07), transparent 16%),
    linear-gradient(180deg, rgb(8, 12, 23, 0.98) 0%, rgb(5, 8, 17, 0.98) 100%);
  border: 1px solid rgb(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.03),
    inset 0 0 0 1px rgb(255, 255, 255, 0.012),
    0 0 0 1px rgb(0, 0, 0, 0.14);
}
.skills-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    rgb(34, 239, 170, 0.16) 0%,
    rgb(123, 108, 255, 0.12) 20%,
    rgb(255, 255, 255, 0.03) 56%,
    rgb(255, 255, 255, 0.012) 100%
  );
  mask:
    linear-gradient(black 0 0) content-box,
    linear-gradient(black 0 0);
  mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Left content */
.skills-content {
  position: relative;
  z-index: 2;
  min-width: 0;
}
.skills-intro {
  margin-bottom: 20px;
}

/* HowCards grid styles live in HowCards.vue */

/* Tech stack block */
.stack-section {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgb(255, 255, 255, 0.02), transparent 26%),
    linear-gradient(180deg, rgb(255, 255, 255, 0.026), rgb(255, 255, 255, 0.012));
  border: 1px solid rgb(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.02),
    0 0 0 1px rgb(0, 0, 0, 0.08);
}
.stack-section-header {
  margin-bottom: 8px;
}
.stack-section-sub {
  margin-bottom: 18px;
}
.stack-rows {
  display: flex;
  flex-direction: column;
}

/* Right visual: photo */
.skills-photo-col {
  position: relative;
  min-width: 0;
  min-height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
}
.photo-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(14px);
}
.photo-glow--teal {
  width: 250px;
  height: 250px;
  right: 70px;
  top: 62px;
  background: radial-gradient(
    circle,
    rgb(34, 239, 170, 0.16) 0%,
    rgb(34, 239, 170, 0.05) 46%,
    transparent 72%
  );
}
.photo-glow--violet {
  width: 200px;
  height: 200px;
  right: 120px;
  top: 84px;
  background: radial-gradient(
    circle,
    rgb(123, 108, 255, 0.16) 0%,
    rgb(123, 108, 255, 0.05) 44%,
    transparent 74%
  );
}
.profile-photo {
  position: relative;
  z-index: 2;
  width: auto;
  height: 720px;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 18px 34px rgb(0, 0, 0, 0.34));
  transform: translateX(72px);
}

/* Skills responsive */
@media (width <= 1280px) {
  .skills-panel {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
  .profile-photo {
    height: 640px;
  }
  .photo-glow--teal {
    width: 220px;
    height: 220px;
    right: 56px;
  }
  .photo-glow--violet {
    width: 170px;
    height: 170px;
    right: 96px;
  }
}
@media (width <= 1180px) {
  .skills-panel {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .skills-photo-col {
    order: -1;
    min-height: 300px;
    align-items: flex-start;
    justify-content: center;
    overflow: visible;
  }
  .profile-photo {
    height: 290px;
    transform: none;
  }
  .photo-glow--teal,
  .photo-glow--violet {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .photo-glow--teal {
    top: 52px;
  }
  .photo-glow--violet {
    top: 74px;
  }
}
@media (width <= 860px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}
@media (width <= 640px) {
  .skills-panel {
    padding: 16px;
    border-radius: 22px;
  }
  .stack-section {
    padding: 14px 12px 12px;
  }
  .skills-photo-col {
    min-height: 280px;
    align-items: center;
  }
  .profile-photo {
    height: 260px;
    filter: none;
    mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  }
  .photo-glow--teal {
    width: 160px;
    height: 160px;
  }
  .photo-glow--violet {
    width: 120px;
    height: 120px;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

/* md is the default size — the class is a no-op but makes intent explicit */
.badge--md {
  font-size: 10px;
  padding: 5px 10px;
  min-height: 26px;
}
.badge--sm {
  font-size: 11px;
  padding: 3px 9px;
  min-height: 22px;
}
.badge--green {
  background: color-mix(in srgb, var(--badge-green) 10%, transparent);
  border-color: color-mix(in srgb, var(--badge-green) 28%, transparent);
  color: var(--badge-green);
}
.badge--violet {
  background: color-mix(in srgb, var(--badge-violet) 10%, transparent);
  border-color: color-mix(in srgb, var(--badge-violet) 28%, transparent);
  color: var(--badge-violet);
}
.badge--blue {
  background: color-mix(in srgb, var(--badge-blue) 10%, transparent);
  border-color: color-mix(in srgb, var(--badge-blue) 28%, transparent);
  color: var(--badge-blue);
}
.badge--emerald {
  background: color-mix(in srgb, var(--badge-emerald) 11%, transparent);
  border-color: color-mix(in srgb, var(--badge-emerald) 32%, transparent);
  color: var(--badge-emerald);
  box-shadow: 0 0 14px color-mix(in srgb, var(--badge-emerald) 8%, transparent);
}
.badge--purple {
  background: color-mix(in srgb, var(--badge-purple) 11%, transparent);
  border-color: color-mix(in srgb, var(--badge-purple) 22%, transparent);
  color: var(--badge-purple);
}
.badge--neutral {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  border-color: color-mix(in srgb, var(--text) 10%, transparent);
  color: color-mix(in srgb, var(--text) 60%, transparent);
}
.badge--red {
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  border-color: color-mix(in srgb, var(--danger) 25%, transparent);
  color: var(--danger);
}
.badge--warn {
  background: color-mix(in srgb, var(--badge-warn) 12%, transparent);
  border-color: color-mix(in srgb, var(--badge-warn) 25%, transparent);
  color: var(--badge-warn);
}

/* Base card */
.project-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 270px;
  padding: 16px 16px 60px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 10%, rgb(255, 255, 255, 0.03), transparent 34%),
    linear-gradient(180deg, rgb(8, 12, 23, 0.98) 0%, rgb(5, 8, 17, 0.98) 100%);
  border: 1px solid rgb(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.03),
    inset 0 0 0 1px rgb(255, 255, 255, 0.012),
    0 0 0 1px rgb(0, 0, 0, 0.14);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(
    180deg,
    var(--card-border-color, rgb(255, 255, 255, 0.1)) 0%,
    rgb(255, 255, 255, 0.08) 18%,
    rgb(255, 255, 255, 0.022) 50%,
    rgb(255, 255, 255, 0.012) 100%
  );
  mask:
    linear-gradient(black 0 0) content-box,
    linear-gradient(black 0 0);
  mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.project-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  background: radial-gradient(
    circle at 50% 0%,
    var(--card-glow-color, transparent),
    transparent 60%
  );
  opacity: 0.46;
  pointer-events: none;
}
.project-card:hover {
  transform: translateY(-3px);
  border-color: rgb(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.04),
    0 18px 34px rgb(0, 0, 0, 0.24);
}

/* Badge row */
.project-badge-row {
  min-height: 28px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  padding-right: 92px;
}

/* Card content layout */
.project-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.project-icon-box {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, rgb(255, 255, 255, 0.04), rgb(255, 255, 255, 0.01)),
    radial-gradient(circle at 30% 20%, rgb(100, 255, 218, 0.08), transparent 70%);
  border: 1px solid rgb(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.03),
    0 8px 24px rgb(0, 0, 0, 0.25);
}
.project-icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle, var(--card-icon-glow, transparent), transparent 72%);
  filter: blur(10px);
  opacity: 0.42;
  pointer-events: none;
}
.project-icon-box--featured {
  border-color: rgb(34, 239, 170, 0.24);
  background: linear-gradient(180deg, rgb(34, 239, 170, 0.08), rgb(34, 239, 170, 0.02));
}
.project-icon-box--platform {
  border-color: rgb(141, 107, 255, 0.24);
  background: linear-gradient(180deg, rgb(141, 107, 255, 0.08), rgb(141, 107, 255, 0.02));
}
.project-icon-box--drone::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: radial-gradient(circle, rgb(123, 108, 255, 0.14), transparent 70%);
  pointer-events: none;
}
.project-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.project-title {
  margin: 0 0 7px;
  font-size: 15px;
  font-weight: 780;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--text);
}
.project-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 500;
  color: rgb(232, 236, 255, 0.82);
  text-wrap: pretty;
}

/* Year badge — absolutely positioned top-right */
.project-meta {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
}
.project-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgb(255, 255, 255, 0.04);
  border: 1px solid rgb(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 600;
  color: rgb(255, 255, 255, 0.58);
  white-space: nowrap;
}
.project-year svg {
  width: 13px;
  height: 13px;
  opacity: 0.75;
}

/* Per-card colour themes — each defines its own icon palette token */
.project-card--plant {
  --theme-icon: var(--icon-plant);
  --card-border-color: rgb(109, 208, 83, 0.48);
  --card-glow-color: rgb(109, 208, 83, 0.12);
  --card-icon-color: var(--theme-icon);
  --card-icon-glow: rgb(139, 214, 93, 0.24);
}
.project-card--carbon {
  --theme-icon: var(--icon-carbon);
  --card-border-color: rgb(182, 95, 255, 0.42);
  --card-glow-color: rgb(182, 95, 255, 0.1);
  --card-icon-color: var(--theme-icon);
  --card-icon-glow: rgb(202, 163, 255, 0.22);
}
.project-card--travel {
  --theme-icon: var(--icon-travel);
  --card-border-color: rgb(83, 168, 255, 0.44);
  --card-glow-color: rgb(83, 168, 255, 0.1);
  --card-icon-color: var(--theme-icon);
  --card-icon-glow: rgb(131, 190, 255, 0.22);
}
.project-card--featured {
  --card-border-color: rgb(34, 239, 170, 0.6);
  --card-glow-color: rgb(34, 239, 170, 0.16);
  --card-icon-color: var(--green);
  --card-icon-glow: rgb(34, 239, 170, 0.24);

  box-shadow:
    inset 0 1px 0 rgb(255, 255, 255, 0.03),
    0 0 0 1px rgb(34, 239, 170, 0.1),
    0 0 24px rgb(34, 239, 170, 0.08);
}
.project-card--drone {
  --theme-icon: var(--icon-carbon);
  --card-icon-color: var(--theme-icon);
  --card-icon-glow: rgb(123, 108, 255, 0.22);
}
.project-card--platform {
  --theme-icon: var(--icon-platform);
  --card-border-color: rgb(141, 107, 255, 0.52);
  --card-glow-color: rgb(141, 107, 255, 0.13);
  --card-icon-color: var(--theme-icon);
  --card-icon-glow: rgb(141, 107, 255, 0.26);
}
@media (width <= 700px) {
  .project-card {
    min-height: auto;
  }
  .project-card-header {
    gap: 12px;
  }
  .project-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex: 0 0 56px;
  }
  .project-icon-box svg {
    width: 35px;
    height: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: border-color 0.22s ease;
  }
  .project-card:hover {
    transform: none;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.project-icon {
  position: relative;
  z-index: 1;
  width: 39px;
  height: 39px;
  color: var(--card-icon-color, var(--violet));
  filter: drop-shadow(0 0 10px rgb(255, 255, 255, 0.08));
}
@media (width <= 1100px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (width <= 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.projects-section {
  padding: 100px 0;
}
.projects-section .section-sub {
  margin-bottom: 28px;
}
