:root {
  --bg: #060b18;
  --panel: #080e1c;
  --blue: #2563eb;
  --blue-b: #60a5fa;
  --blue-dim: rgba(37, 99, 235, 0.12);
  --text: #e8eeff;
  --muted: #6b82a8;
  --border: rgba(37, 99, 235, 0.14);
  --sans: "Outfit", system-ui;
  --serif: "Lora", Georgia;
  --nav-bg: rgba(6, 11, 24, 0.85);
  --footer-bg: rgba(6, 11, 24, 0.82);
  --shadow-lg: 0 30px 120px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 18px 60px rgba(0, 0, 0, 0.24);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: min(1240px, calc(100vw - 64px));
}

body.light {
  --bg: #f0f4ff;
  --panel: #f7faff;
  --text: #0a1323;
  --muted: #607493;
  --border: rgba(37, 99, 235, 0.16);
  --nav-bg: rgba(240, 244, 255, 0.86);
  --footer-bg: rgba(240, 244, 255, 0.84);
  --shadow-lg: 0 24px 70px rgba(63, 87, 134, 0.12);
  --shadow-md: 0 18px 42px rgba(63, 87, 134, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 16%, rgba(37, 99, 235, 0.14), transparent 20%),
    radial-gradient(circle at 78% 12%, rgba(96, 165, 250, 0.08), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(37, 99, 235, 0.06), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(37, 99, 235, 0.012) 2px,
    rgba(37, 99, 235, 0.012) 4px
  );
  opacity: 0.9;
  mix-blend-mode: screen;
}

a,
button {
  color: inherit;
}

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

#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--blue);
  z-index: 1000;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

#cursor,
#cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

#cursor {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: 0 0 0 2px rgba(6, 11, 24, 0.42);
  transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  z-index: 9999;
}

#cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.28);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.05);
  opacity: 0.88;
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

body.hovering #cursor {
  width: 10px;
  height: 10px;
  background: #8fdfff;
  box-shadow: 0 0 0 3px rgba(6, 11, 24, 0.46), 0 0 18px rgba(34, 211, 238, 0.24);
}

body.hovering #cursor-ring {
  width: 40px;
  height: 40px;
  border-color: rgba(96, 165, 250, 0.34);
  opacity: 0.78;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.7rem 1.4rem;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  z-index: 40;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.55);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 99, 235, 0);
  }
}

.nav-center {
  justify-self: center;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-actions,
.nav-links {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-actions {
  justify-self: end;
}

.nav-btn,
.ghost-btn,
.text-btn,
.chip-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 0.44rem 0.9rem;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.24s ease, border-color 0.24s ease, background 0.24s ease,
    transform 0.24s ease;
}

.nav-btn:hover,
.nav-btn.active,
.ghost-btn:hover,
.chip-btn:hover,
.chip-btn.active {
  color: var(--blue-b);
  border-color: rgba(37, 99, 235, 0.38);
  background: var(--blue-dim);
}

.text-btn {
  border-radius: 999px;
}

.text-btn:hover {
  color: var(--blue-b);
  background: var(--blue-dim);
}

.page-shell {
  padding-top: 52px;
}

.page-main {
  width: var(--container);
  margin: 0 auto;
  padding: 72px 0 96px;
}

.section-block + .section-block {
  margin-top: 88px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-b);
}

.page-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.page-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--blue-b);
}

.page-intro {
  max-width: 62ch;
  margin: 1.2rem 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 0.96rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: end;
}

.construction-banner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background:
    radial-gradient(circle at 18% 18%, rgba(34, 211, 238, 0.11), transparent 24%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 26%),
    rgba(8, 14, 28, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.construction-banner::after {
  content: "";
  position: absolute;
  inset: auto -8% 14% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  filter: blur(8px);
}

.construction-copy h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
}

.construction-copy p {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.construction-stage {
  position: relative;
  min-height: 230px;
  border-radius: 28px;
  border: 1px solid rgba(96, 165, 250, 0.12);
  background: linear-gradient(180deg, rgba(18, 40, 77, 0.72), rgba(9, 19, 33, 0.96));
  overflow: hidden;
}

.construction-stage::before,
.construction-stage::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.construction-stage::before {
  width: 108px;
  height: 108px;
  top: 24px;
  right: 38px;
}

.construction-stage::after {
  width: 190px;
  height: 190px;
  bottom: -34px;
  left: -18px;
}

.barrier-scene {
  position: absolute;
  inset: 24px;
}

.barrier-sign {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 360px);
  height: 64px;
  border-radius: 18px;
  background: #09111f;
  border: 1px solid rgba(96, 165, 250, 0.2);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.barrier-sign::before {
  content: "";
  position: absolute;
  inset: 16px 18px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(-35deg, #0a1220 0 22px, #ffd54f 22px 42px, #0a1220 42px 64px);
}

.barrier-copy {
  position: absolute;
  left: 50%;
  top: 108px;
  transform: translateX(-50%);
  text-align: center;
}

.barrier-copy strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.1;
}

.barrier-copy span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.cone {
  position: absolute;
  bottom: 20px;
  width: 76px;
  height: 132px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.26));
}

.cone.left {
  left: 34px;
}

.cone.right {
  right: 34px;
}

.cone::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 34px solid transparent;
  border-right: 34px solid transparent;
  border-bottom: 106px solid #f97316;
}

.cone::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 86px;
  height: 14px;
  border-radius: 999px;
  background: rgba(3, 8, 16, 0.42);
}

.cone-band {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 14px;
  border-radius: 10px;
  background: #fff3b0;
}

.cone-band.one {
  top: 48px;
}

.cone-band.two {
  top: 76px;
  width: 52px;
}

body.standby-page {
  min-height: 100vh;
  overflow: hidden;
}

body.standby-page .page-shell {
  min-height: calc(100vh - 64px);
}

body.standby-page .page-main {
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 64px);
  padding: 0;
}

.standby-root {
  position: relative;
  min-height: calc(100vh - 64px);
  overflow: hidden;
}

.standby-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(37, 99, 235, 0.008) 3px, rgba(37, 99, 235, 0.008) 6px);
  pointer-events: none;
  z-index: 0;
}

.standby-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.standby-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d) ease-in-out infinite;
}

.standby-main {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.standby-gear,
.standby-helmet {
  position: absolute;
  z-index: 1;
}

.standby-gear {
  top: 32px;
  left: 48px;
  display: grid;
  gap: 4px;
}

.standby-gear svg:last-child {
  margin-left: 28px;
  margin-top: -8px;
}

.standby-helmet {
  top: 30px;
  right: 56px;
}

.standby-barriers {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
}

.standby-cone {
  display: block;
}

.standby-cone:first-child {
  margin-right: 16px;
}

.standby-cone:last-child {
  margin-left: 16px;
}

.standby-barrier + .standby-barrier {
  margin-left: -6px;
}

.standby-tape-bar {
  width: min(700px, 92vw);
  height: 20px;
  background: repeating-linear-gradient(90deg, #F59E0B 0, #F59E0B 22px, #1E293B 22px, #1E293B 44px);
  border-radius: 0 0 4px 4px;
  animation: tape 1.1s linear infinite;
}

.standby-spacer {
  height: 32px;
}

.standby-sign-pole {
  width: 4px;
  height: 36px;
  background: #475569;
  margin: 0 auto;
}

.standby-sign {
  position: relative;
  background: #0F172A;
  border: 2.5px solid #F59E0B;
  border-radius: 12px;
  padding: 2.25rem 3.5rem 2rem;
  text-align: center;
  animation: glow 2.5s ease-in-out infinite;
}

.standby-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #F59E0B;
  color: #0F172A;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  padding: 4px 16px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
}

.standby-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #60A5FA;
  margin-bottom: .6rem;
  margin-top: .5rem;
}

.standby-title {
  font-size: 54px;
  font-weight: 800;
  color: #E8EEFF;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.standby-title em {
  color: #60A5FA;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.standby-divider {
  width: 52px;
  height: 2.5px;
  background: #2563EB;
  margin: 1.25rem auto;
}

.standby-sub {
  font-size: 15px;
  color: #6B82A8;
  font-weight: 300;
  line-height: 1.65;
  max-width: 400px;
}

.standby-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 1.25rem;
}

.standby-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F59E0B;
}

.standby-dot.d1 {
  animation: blink 1.3s step-end infinite;
}

.standby-dot.d2 {
  animation: blink 1.3s step-end infinite;
  animation-delay: .65s;
}

.standby-status-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #F59E0B;
}

.standby-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.standby-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6B82A8;
  text-decoration: none;
  transition: color .15s;
}

.standby-link:hover {
  color: #E8EEFF;
}

.standby-cta {
  background: #2563EB;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .55rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background .15s;
}

.standby-cta:hover {
  background: #1D4ED8;
}

.standby-sep {
  width: 1px;
  height: 16px;
  background: #1E3A5F;
}

.standby-credit {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1E3A5F;
  margin-top: 1.75rem;
}

@keyframes twinkle {
  0%, 100% {
    opacity: .12;
  }
  50% {
    opacity: .55;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@keyframes bounce2 {
  0%, 100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(-12px) rotate(-1deg);
  }
}

@keyframes bounce3 {
  0%, 100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes swing {
  0%, 100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg);
  }
}

@keyframes tape {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 60px 0;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 24px rgba(251, 191, 36, .15);
  }
  50% {
    box-shadow: 0 0 52px rgba(251, 191, 36, .45);
  }
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes rspin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.b1 {
  animation: bounce 3s ease-in-out infinite;
}

.b2 {
  animation: bounce2 3s ease-in-out infinite;
  animation-delay: .4s;
}

.b3 {
  animation: bounce3 3s ease-in-out infinite;
  animation-delay: .8s;
}

.sw {
  animation: swing 4.5s ease-in-out infinite;
  transform-origin: top center;
}

.c1 {
  animation: bounce 3.8s ease-in-out infinite;
  animation-delay: .2s;
}

.c2 {
  animation: bounce2 3.6s ease-in-out infinite;
  animation-delay: 1s;
}

.hh {
  animation: float 2.8s ease-in-out infinite;
}

.g1 {
  animation: spin 7s linear infinite;
}

.g2 {
  animation: rspin 4.5s linear infinite;
}

.hero-panel,
.surface-panel,
.editorial-card,
.metric-card,
.experience-card,
.project-card,
.timeline-card,
.contact-card {
  position: relative;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 36%),
    var(--panel);
  box-shadow: var(--shadow-md);
}

.hero-panel,
.surface-panel {
  border-radius: var(--radius-xl);
}

.hero-panel {
  padding: 40px;
}

.hero-stat-grid,
.metrics-grid,
.card-grid,
.projects-grid,
.contact-grid {
  display: grid;
  gap: 18px;
}

.hero-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

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

.metric-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.metric-label {
  font-size: 0.64rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-value {
  margin-top: 0.55rem;
  font-size: 0.98rem;
  line-height: 1.6;
  font-weight: 600;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.card-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.experience-card,
.project-card,
.editorial-card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.experience-card {
  --card-accent: var(--blue-b);
  --card-tint: rgba(37, 99, 235, 0.12);
  --card-border: rgba(96, 165, 250, 0.2);
  grid-column: span 4;
  min-height: 100%;
  border-color: var(--card-border);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--card-tint) 100%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--card-tint) 48%, transparent), transparent 38%),
    var(--panel);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--card-accent) 8%, transparent), var(--shadow-md);
}

.experience-card img,
.project-card img {
  height: 210px;
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0.24rem 0.72rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.experience-card .card-meta,
.timeline-card .timeline-meta {
  color: color-mix(in srgb, var(--card-accent) 38%, white);
}

.card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.card-title {
  margin: 0;
  font-size: 1.26rem;
  letter-spacing: -0.025em;
}

.card-subtitle {
  margin: 0.45rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.card-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.82;
  font-size: 0.88rem;
}

.tag-row,
.chip-row {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag,
.skill-chip,
.soft-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue-b);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag::before,
.skill-chip::before,
.soft-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.card-link {
  color: var(--blue-b);
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 24px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.45), rgba(37, 99, 235, 0));
}

.timeline-card {
  --card-accent: #8B5CF6;
  --card-tint: rgba(139, 92, 246, 0.14);
  --card-border: rgba(167, 139, 250, 0.24);
  position: relative;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--card-tint) 100%, transparent), transparent 44%),
    linear-gradient(180deg, color-mix(in srgb, var(--card-tint) 42%, transparent), transparent 38%),
    var(--panel);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--card-accent) 8%, transparent), var(--shadow-md);
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 34px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--card-tint) 100%, transparent);
}

.timeline-meta {
  font-size: 0.73rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  grid-column: span 6;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.skills-cluster {
  border-radius: var(--radius-xl);
  padding: 30px;
}

.cluster-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.skill-chip {
  padding: 0.56rem 0.86rem;
  font-size: 0.68rem;
}

.skill-chip.large {
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
}

.soft-chip {
  border-style: dashed;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
}

.contact-card {
  border-radius: var(--radius-xl);
  padding: 32px;
}

.contact-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.contact-line span:first-child {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--footer-bg);
  backdrop-filter: blur(10px);
}

.footer-inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 72px;
}

.footer-links {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.footer-link:hover,
.footer-link.active {
  color: var(--blue-b);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(6, 11, 24, 0.52);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 120;
}

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

.detail-sheet {
  width: min(1240px, calc(100vw - 48px));
  max-height: calc(100vh - 64px);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.07), transparent 24%),
    var(--panel);
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.35s ease;
}

.detail-overlay.open .detail-sheet {
  transform: translateY(0) scale(1);
}

.detail-scroll {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

.detail-header {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  padding: 34px;
  border-bottom: 1px solid var(--border);
}

.detail-hero img {
  height: 100%;
  min-height: 320px;
  width: 100%;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border);
}

.detail-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8, 14, 28, 0.7);
  cursor: pointer;
  z-index: 3;
}

.detail-close:hover {
  color: var(--blue-b);
  background: var(--blue-dim);
}

.detail-kicker {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-title {
  margin: 0.9rem 0 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.detail-subtitle {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-summary {
  margin-top: 1.3rem;
  color: var(--muted);
  line-height: 1.92;
  max-width: 60ch;
}

.detail-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.detail-meta-chip {
  padding: 0.44rem 0.74rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, 0.05);
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.detail-body {
  padding: 34px;
}

.detail-section {
  padding-top: 10px;
}

.detail-section + .detail-section {
  margin-top: 36px;
}

.detail-section h4 {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.detail-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  position: relative;
  padding: 16px 0 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  line-height: 1.78;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.skill-constellation {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.constellation-pill {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.16), transparent 60%),
    rgba(37, 99, 235, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
}

.constellation-pill strong {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-b);
  margin-bottom: 0.24rem;
}

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

.number-tile {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, 0.05);
  padding: 20px;
}

.number-value {
  font-size: 1.36rem;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.number-label {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.gallery-main img,
.gallery-side img,
.gallery-main video,
.gallery-side video {
  width: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: zoom-in;
}

.gallery-main img {
  height: 360px;
}

.gallery-side {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.gallery-side img {
  height: 173px;
}

.gallery-grid-portrait {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.gallery-portrait-card {
  position: relative;
  aspect-ratio: 3 / 4.6;
  border-radius: 20px;
  overflow: hidden;
}

.gallery-portrait-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: rgba(6, 11, 24, 0.68);
}

.image-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(6, 11, 24, 0.74);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 10020;
}

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

.image-lightbox {
  position: relative;
  width: auto;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 56px);
  padding: 18px;
  border-radius: 30px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.07), transparent 22%),
    rgba(8, 14, 28, 0.96);
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.42);
  overflow: auto;
}

.image-lightbox img,
.image-lightbox video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1600px, calc(100vw - 92px));
  max-height: calc(100vh - 108px);
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(6, 11, 24, 0.58);
}

.image-lightbox video {
  width: min(1600px, calc(100vw - 92px));
  height: auto;
}

.image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8, 14, 28, 0.78);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
}

.image-lightbox-close:hover {
  color: var(--blue-b);
  background: rgba(37, 99, 235, 0.1);
}

.modal-tag-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-panel {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, 0.04);
  padding: 22px;
}

.search-input {
  width: min(320px, 100%);
  padding: 0.9rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(37, 99, 235, 0.04);
  color: var(--text);
  outline: none;
}

.search-input::placeholder {
  color: var(--muted);
}

.home-shell {
  height: 100vh;
  overflow: hidden;
}

.home-main {
  display: flex;
  height: 100vh;
  padding-top: 52px;
  transition: filter 0.42s cubic-bezier(.22, 1, .36, 1), opacity 0.32s ease, transform 0.42s cubic-bezier(.22, 1, .36, 1);
}

.map-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.trajectory-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 50%, transparent 36%, rgba(8, 14, 28, 0.02) 64%, rgba(8, 14, 28, 0.09) 100%),
    linear-gradient(90deg, rgba(6, 11, 24, 0.34) 0%, rgba(6, 11, 24, 0.08) 24%, rgba(6, 11, 24, 0) 54%, rgba(6, 11, 24, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.map-toolbar {
  position: absolute;
  top: 88px;
  right: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  width: min(340px, calc(100% - 96px));
  z-index: 3;
}

.map-filter-btn {
  --accent: var(--blue-b);
  --accent-bg: rgba(37, 99, 235, 0.12);
  --accent-border: rgba(96, 165, 250, 0.2);
  appearance: none;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-bg) 62%, transparent), rgba(8, 14, 28, 0.74)),
    rgba(8, 14, 28, 0.72);
  color: var(--accent);
  min-height: 38px;
  padding: 0.55rem 0.9rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: border-color 0.24s ease, background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.map-filter-btn:hover,
.map-filter-btn.active {
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-bg) 90%, transparent), rgba(8, 14, 28, 0.8)),
    rgba(8, 14, 28, 0.78);
  color: var(--accent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 18%, transparent), 0 10px 24px rgba(0, 0, 0, 0.14);
}

.map-filter-btn:hover {
  transform: translateY(-1px);
}

.home-copy {
  position: absolute;
  left: clamp(28px, 4.8vw, 72px);
  top: clamp(156px, 21vh, 250px);
  width: min(560px, calc(100% - 72px));
  z-index: 2;
}

.home-copy .page-title {
  max-width: 11.5ch;
  font-size: clamp(3.2rem, 5.6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-wrap: balance;
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(10px);
  transition:
    opacity 0.72s cubic-bezier(.22, 1, .36, 1),
    transform 0.88s cubic-bezier(.22, 1, .36, 1),
    filter 0.88s cubic-bezier(.22, 1, .36, 1);
  transform-origin: left top;
  will-change: opacity, transform, filter;
}

.home-copy .page-title.is-title-ready {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.home-copy .page-title.is-title-hidden {
  opacity: 0;
  transform: translate3d(-18px, -8px, 0) scale(0.97);
  filter: blur(12px);
  pointer-events: none;
}

.home-copy .page-title {
  transition:
    opacity 0.72s cubic-bezier(.22, 1, .36, 1),
    transform 0.88s cubic-bezier(.22, 1, .36, 1),
    filter 0.88s cubic-bezier(.22, 1, .36, 1);
}

.home-copy.is-hover-hidden .page-title {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.985);
  filter: blur(10px);
  pointer-events: none;
}

.home-copy .page-intro {
  max-width: 44ch;
  line-height: 1.8;
  transition: opacity 0.24s ease, transform 0.24s ease, filter 0.24s ease;
}

.home-copy #home-intro {
  margin-top: 1.9rem;
}

.home-copy #home-micro {
  margin-top: 1.15rem;
  max-width: 38ch;
  font-size: 0.88rem;
  line-height: 1.8;
}

.home-copy.is-hover-hidden .page-intro {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(8px);
  pointer-events: none;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.home-actions .chip-btn {
  min-height: 44px;
  padding-inline: 1.05rem;
}

.home-copy .metrics-grid {
  width: min(420px, 100%);
  margin-top: 1.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-copy .metric-card {
  min-height: 100%;
  padding: 18px 18px 17px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(8, 14, 28, 0.82)),
    rgba(8, 14, 28, 0.88);
}

.home-copy .metric-card:last-child {
  grid-column: 1 / -1;
}

.home-panel {
  width: min(420px, calc(100vw - 48px));
  padding: 36px;
  border-left: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent 30%),
    var(--panel);
  box-shadow: var(--shadow-lg);
}

.home-panel-wrap {
  width: 430px;
  flex-shrink: 0;
  overflow-y: auto;
}

.home-shell.home-detail-open .home-main {
  filter: blur(10px) saturate(0.82) brightness(0.62);
  opacity: 0.9;
  transform: scale(0.988);
  pointer-events: none;
}

.home-shell #detail-overlay {
  background: rgba(6, 11, 24, 0.42);
  backdrop-filter: blur(16px) saturate(1.08);
}

.home-shell #detail-overlay.open {
  opacity: 1;
}

.home-shell #detail-overlay .detail-sheet {
  width: min(1180px, calc(100vw - 140px));
  max-height: calc(100vh - 112px);
  border-radius: 38px;
  border-color: rgba(96, 165, 250, 0.18);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 22%),
    rgba(8, 14, 28, 0.96);
  box-shadow: 0 45px 140px rgba(0, 0, 0, 0.52);
}

.home-shell #detail-overlay .detail-scroll {
  max-height: calc(100vh - 112px);
}

.home-shell #detail-overlay .detail-close {
  top: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: rgba(6, 11, 24, 0.76);
  backdrop-filter: blur(10px);
}

.home-shell #detail-overlay .detail-header {
  gap: 34px;
  padding: 32px;
}

.home-shell #detail-overlay .detail-body {
  padding: 0 32px 32px;
}

.home-shell #detail-overlay .detail-summary {
  max-width: 62ch;
}

.home-panel .page-intro {
  margin-top: 0.85rem;
}

.home-panel-stage {
  margin-top: 24px;
}

.home-panel-card {
  --accent: var(--blue-b);
  --accent-bg: rgba(37, 99, 235, 0.12);
  --accent-border: rgba(96, 165, 250, 0.2);
  position: relative;
  min-height: 156px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--accent-border);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--accent-bg) 95%, transparent), transparent 42%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent-bg) 48%, transparent), rgba(8, 14, 28, 0.88)),
    rgba(8, 14, 28, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 16px 44px rgba(0, 0, 0, 0.22);
  transition: transform 0.44s cubic-bezier(.22, 1, .36, 1), border-color 0.34s ease, opacity 0.34s ease;
  overflow: hidden;
}

.home-panel-card.is-empty {
  border-style: dashed;
}

.home-panel-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-bg) 95%, transparent), transparent 68%);
  pointer-events: none;
}

.panel-card-eyebrow {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.home-panel-card h3 {
  margin: 0.7rem 0 0;
  font-size: 1.22rem;
  letter-spacing: -0.03em;
}

.home-panel-card p {
  position: relative;
  z-index: 1;
  margin: 0.95rem 0 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 0.84rem;
}

.panel-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-card-meta,
.panel-card-period {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.panel-card-period {
  margin-top: 0.75rem;
  text-transform: uppercase;
}

.panel-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(6, 11, 24, 0.58);
  cursor: pointer;
}

.panel-close:hover {
  color: var(--blue-b);
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.1);
}

.panel-card-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.panel-badge,
.panel-soft-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.panel-soft-chip {
  color: var(--blue-b);
  background: rgba(37, 99, 235, 0.08);
}

.panel-card-section {
  position: relative;
  z-index: 1;
  margin-top: 18px;
}

.panel-card-section strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.panel-card-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.panel-card-section li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.8rem;
}

.panel-card-section li + li {
  margin-top: 8px;
}

.panel-card-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.region-mini-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.region-mini-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.05);
  cursor: pointer;
  text-align: left;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.region-mini-item:hover {
  transform: translateX(3px);
  border-color: rgba(37, 99, 235, 0.32);
  background: rgba(37, 99, 235, 0.1);
}

.region-mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 16px currentColor;
}

.region-mini-item strong,
.region-mini-item small {
  display: block;
}

.region-mini-item strong {
  font-size: 0.8rem;
}

.region-mini-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.7rem;
}

.compact-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.compact-card {
  --accent: var(--blue-b);
  --accent-bg: rgba(37, 99, 235, 0.12);
  --accent-border: rgba(96, 165, 250, 0.2);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px 17px;
  border-radius: 16px;
  border: 1px solid var(--accent-border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-bg) 54%, transparent), rgba(8, 14, 28, 0.88)),
    rgba(8, 14, 28, 0.94);
  cursor: pointer;
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 7%, transparent);
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent-bg) 62%, transparent), rgba(8, 14, 28, 0.9)),
    rgba(8, 14, 28, 0.96);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 10%, transparent), 0 12px 28px rgba(0, 0, 0, 0.14);
}

.compact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.48rem;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-bg) 100%, transparent);
}

.compact-copy {
  display: block;
  text-align: left;
}

.compact-kicker {
  display: block;
  margin-bottom: 0.42rem;
  color: var(--accent);
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
  opacity: 0.96;
}

.compact-copy strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.18;
}

.compact-subline {
  display: block;
  margin-top: 0.26rem;
  font-size: 0.73rem;
  line-height: 1.35;
  color: var(--muted);
}

.compact-arrow {
  color: var(--accent);
  margin-top: 0.72rem;
  opacity: 0.9;
}

.map-tooltip {
  position: absolute;
  pointer-events: none;
  min-width: 180px;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: rgba(8, 14, 28, 0.94);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 20;
}

body.light .map-tooltip {
  background: rgba(247, 250, 255, 0.96);
}

.map-tooltip strong {
  display: block;
  font-size: 0.8rem;
}

.map-tooltip span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.trajectory-map .leaflet-pane,
.trajectory-map .leaflet-top,
.trajectory-map .leaflet-bottom {
  z-index: 2;
}

.trajectory-map .leaflet-control-container {
  display: none;
}

.trajectory-map .leaflet-tile-pane {
  filter: saturate(1.04) brightness(1.3) contrast(1.1);
}

.trajectory-map .leaflet-overlay-pane img,
.trajectory-map .leaflet-marker-pane img {
  filter: brightness(1.1) contrast(1.03);
}

.trajectory-map .leaflet-overlay-pane img {
  filter: brightness(1.38) contrast(1.18) grayscale(0.12);
}

.trajectory-map .leaflet-layer,
.trajectory-map .leaflet-tile {
  image-rendering: auto;
}

.trajectory-map .leaflet-pane.leaflet-overlay-pane {
  opacity: 0.9;
  transition: opacity 0.24s ease;
}

.trajectory-map.leaflet-container {
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.16), transparent 24%),
    radial-gradient(circle at 76% 20%, rgba(96, 165, 250, 0.12), transparent 22%),
    #0b1422;
  font-family: var(--sans);
  image-rendering: auto;
}

.map-zoom-controls {
  position: absolute;
  right: 30px;
  bottom: 30px;
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(8, 14, 28, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.map-zoom-btn {
  appearance: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.map-zoom-btn + .map-zoom-btn {
  border-top: 1px solid rgba(96, 165, 250, 0.12);
}

.map-zoom-btn:hover {
  background: rgba(37, 99, 235, 0.14);
  color: var(--blue-b);
}

.map-zoom-btn:active {
  transform: scale(0.97);
}

.map-connection {
  stroke: rgba(245, 248, 255, 0.52);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: 4 9;
}

.map-point {
  position: relative;
  width: 14px;
  height: 14px;
  transform: translate(calc(-50% + var(--shift-x, 0px)), calc(-50% + var(--shift-y, 0px)));
}

.map-point::before,
.map-point::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.map-point::before {
  background: color-mix(in srgb, var(--point-color) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--point-color) 54%, transparent);
  transform: scale(1.32);
  opacity: 0.46;
}

.map-point::after {
  inset: 2.5px;
  background: var(--point-color);
  box-shadow: 0 0 0 2px rgba(8, 14, 28, 0.7), 0 0 10px color-mix(in srgb, var(--point-color) 46%, transparent);
}

.map-point.is-active {
  z-index: 8;
}

.map-point.is-active::before {
  transform: scale(1.9);
  opacity: 0.82;
}

.map-point.is-active::after {
  inset: 1px;
  box-shadow: 0 0 0 3px rgba(8, 14, 28, 0.76), 0 0 18px color-mix(in srgb, var(--point-color) 68%, transparent);
}

.map-point.is-dim::before {
  opacity: 0.2;
}

.map-point.is-dim::after {
  opacity: 0.48;
}

.marker-cluster,
.marker-cluster div {
  background: transparent !important;
  border: 0 !important;
}

.map-cluster {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background:
    radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.2), transparent 56%),
    linear-gradient(180deg, rgba(14, 24, 46, 0.92), rgba(8, 14, 28, 0.9));
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.06), 0 12px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.map-cluster span {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
}

.map-cluster:hover {
  transform: translateY(-1px) scale(1.03);
  border-color: rgba(96, 165, 250, 0.36);
  box-shadow: 0 0 0 7px rgba(37, 99, 235, 0.08), 0 14px 34px rgba(0, 0, 0, 0.24);
}

.map-label {
  position: absolute;
  left: calc(100% + 10px + var(--shift-x, 0px));
  top: calc(50% + var(--shift-y, 0px));
  transform: translateY(-50%);
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: rgba(8, 14, 28, 0.8);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.map-point.is-active + .map-label,
.map-marker:hover .map-label {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

@media (max-width: 1100px) {
  .home-shell {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero-grid,
  .contact-layout,
  .detail-header,
  .gallery-grid,
  .skills-layout,
  .construction-banner {
    grid-template-columns: 1fr;
  }

  .experience-card {
    grid-column: span 6;
  }

  .project-card {
    grid-column: span 12;
  }

  .home-main {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .home-panel-wrap {
    width: 100%;
  }

  .home-panel {
    width: 100%;
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 900px) {
  .site-nav {
    height: auto;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "center center";
    padding: 0.8rem 1rem;
    gap: 0.5rem;
  }

  .brand {
    grid-area: brand;
  }

  .nav-center {
    grid-area: center;
    justify-self: start;
  }

  .nav-actions {
    grid-area: actions;
  }

  .page-main {
    width: min(calc(100vw - 32px), 1240px);
    padding: 56px 0 72px;
  }

  .hero-stat-grid,
  .metrics-grid,
  .numbers-grid {
    grid-template-columns: 1fr;
  }

  .experience-card,
  .project-card {
    grid-column: span 12;
  }

  .detail-overlay {
    padding: 14px;
  }

  .detail-sheet,
  .detail-scroll {
    max-height: calc(100vh - 28px);
  }

  .detail-header,
  .detail-body {
    padding: 24px;
  }

  .gallery-side {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid-portrait {
    grid-template-columns: 1fr 1fr;
  }

  .home-copy {
    left: 1rem;
    top: 5.6rem;
    right: 1rem;
    width: auto;
  }

  .map-toolbar {
    top: auto;
    right: 1rem;
    left: 1rem;
    bottom: 1rem;
    width: auto;
    justify-content: flex-start;
  }

  .map-zoom-controls {
    right: 16px;
    bottom: 76px;
  }

  .home-copy .page-title {
    max-width: 12ch;
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }

  .home-copy .metrics-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .home-shell #detail-overlay .detail-sheet,
  .home-shell #detail-overlay .detail-scroll {
    max-height: calc(100vh - 36px);
  }

  .home-shell #detail-overlay .detail-sheet {
    width: calc(100vw - 28px);
    border-radius: 26px;
  }

  .home-shell #detail-overlay .detail-header,
  .home-shell #detail-overlay .detail-body {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .gallery-grid-portrait {
    grid-template-columns: 1fr;
  }
}

@media (pointer: coarse) {
  #cursor,
  #cursor-ring {
    display: none;
  }
}
