:root {
  --bg: #07111f;
  --bg-soft: #0d1a2f;
  --text: #f5f7fb;
  --muted: rgba(233, 238, 247, 0.76);
  --line: rgba(255, 255, 255, 0.16);
  --glass: rgba(255, 255, 255, 0.09);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 80px rgba(5, 10, 20, 0.38);
  --accent: #9fd4ff;
  --accent-warm: #ffd7b8;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(133, 200, 255, 0.28), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(255, 184, 149, 0.24), transparent 22%),
    linear-gradient(160deg, #08111e 0%, #0a1630 48%, #050b14 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.42;
  pointer-events: none;
}

.ambient-one {
  top: 4rem;
  right: -8rem;
  background: rgba(123, 215, 255, 0.25);
}

.ambient-two {
  bottom: -8rem;
  left: -6rem;
  background: rgba(255, 190, 152, 0.18);
}

.glass-panel,
.glass-chip,
.button.secondary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-panel,
  .glass-chip,
  .button.secondary,
  .site-footer-link,
  .project-slideshow-arrow {
    background: rgba(18, 29, 49, 0.9);
  }
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.18rem;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 24px rgba(8, 20, 44, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.brand-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
}

main {
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  min-height: calc(100vh - 8rem);
  padding: 2rem 0 3rem;
}

.hero-copy,
.hero-card {
  position: relative;
  border-radius: 2rem;
}

.hero-copy {
  padding: 4.5rem 0 2rem;
}

.circuit-hero {
  position: relative;
  width: min(100%, 34rem);
  margin: 0 0 1.8rem;
  pointer-events: none;
}

.circuit-hero-embedded {
  width: min(100%, 22rem);
  margin: 1.1rem 0 0.4rem;
}

.circuit-hero-dramatic .circuit-board {
  min-height: 12.5rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(92, 181, 255, 0.16), rgba(255, 201, 150, 0.12));
  box-shadow:
    0 24px 50px rgba(4, 10, 24, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.circuit-hero-dramatic .circuit-grid {
  opacity: 0.34;
}

.circuit-hero-dramatic .circuit-board::before {
  background: rgba(102, 203, 255, 0.34);
}

.circuit-hero-dramatic .circuit-board::after {
  background: rgba(255, 186, 135, 0.24);
}

.circuit-board {
  position: relative;
  min-height: 14rem;
  overflow: hidden;
  padding: 1.3rem;
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(102, 168, 255, 0.12), rgba(255, 214, 185, 0.08));
}

.circuit-board::before,
.circuit-board::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(26px);
  opacity: 0.5;
}

.circuit-board::before {
  top: -1.5rem;
  right: 2rem;
  width: 10rem;
  height: 10rem;
  background: rgba(115, 196, 255, 0.22);
}

.circuit-board::after {
  bottom: -2.5rem;
  left: 4rem;
  width: 9rem;
  height: 9rem;
  background: rgba(255, 196, 155, 0.16);
}

.circuit-grid {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 2.9rem 2.9rem;
  -webkit-mask-image: radial-gradient(circle at center, black 52%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 52%, transparent 100%);
}

.circuit-trace,
.circuit-node,
.circuit-pulse,
.circuit-core {
  position: absolute;
}

.circuit-trace {
  border: 1px solid rgba(165, 222, 255, 0.34);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 22px rgba(111, 186, 255, 0.18);
}

.trace-one {
  top: 1.7rem;
  left: 1.6rem;
  width: 40%;
  height: 3.6rem;
  border-right: 0;
  border-bottom: 0;
  border-radius: 1.4rem 0 0 0;
}

.trace-two {
  top: 2.9rem;
  right: 2rem;
  width: 28%;
  height: 4.8rem;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 1.4rem 0 0;
}

.trace-three {
  bottom: 2rem;
  left: 24%;
  width: 52%;
  height: 4.5rem;
  border-top: 0;
  border-left: 0;
  border-radius: 0 0 1.6rem 0;
}

.trace-four {
  top: 25%;
  left: 47%;
  width: 18%;
  height: 22%;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 1.2rem;
}

.circuit-node {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: radial-gradient(circle, #f8fdff 0%, #93d2ff 46%, rgba(147, 210, 255, 0.18) 100%);
  box-shadow:
    0 0 0 5px rgba(146, 208, 255, 0.08),
    0 0 16px rgba(146, 208, 255, 0.42);
}

.node-one {
  top: 1.35rem;
  left: calc(1.6rem + 40%);
}

.node-two {
  top: 2.55rem;
  right: 1.65rem;
}

.node-three {
  bottom: 1.65rem;
  left: 24%;
}

.node-four {
  bottom: calc(1.65rem + 4.5rem);
  left: calc(24% + 52%);
}

.node-five {
  top: calc(25% + 22%);
  left: 47%;
}

.circuit-pulse {
  width: 5.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(183, 233, 255, 0.95), transparent);
  filter: drop-shadow(0 0 10px rgba(177, 230, 255, 0.75));
  opacity: 0;
}

.pulse-one {
  top: 2.1rem;
  left: 1.3rem;
  animation: tracePulseHorizontal 3.8s ease-in-out infinite;
}

.pulse-two {
  top: 4.4rem;
  right: 0.6rem;
  width: 2px;
  height: 4.5rem;
  background: linear-gradient(180deg, transparent, rgba(183, 233, 255, 0.95), transparent);
  animation: tracePulseVertical 4.4s ease-in-out infinite 0.8s;
}

.pulse-three {
  bottom: 2.6rem;
  left: 25%;
  width: 7rem;
  animation: tracePulseHorizontal 4.1s ease-in-out infinite 1.3s;
}

.pulse-four {
  top: 26%;
  left: calc(47% + 18% - 1px);
  width: 2px;
  height: 3rem;
  background: linear-gradient(180deg, transparent, rgba(255, 226, 177, 0.95), transparent);
  filter: drop-shadow(0 0 12px rgba(255, 207, 112, 0.78));
  animation: tracePulseVertical 3.6s ease-in-out infinite 0.4s;
}

.circuit-core {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.75rem;
  min-height: 8.75rem;
  padding: 1rem;
  border-radius: 2rem;
  text-align: center;
  color: #eef8ff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 22px 44px rgba(3, 10, 24, 0.3);
}

.circuit-core::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border-radius: 1.45rem;
  border: 1px solid rgba(159, 212, 255, 0.2);
}

.circuit-core span {
  position: relative;
  z-index: 1;
}

.glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: var(--muted);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
  font-size: clamp(3.5rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 40rem;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions,
.contact-panel {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.3rem;
  padding: 0.9rem 1.4rem;
  gap: 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button:focus-visible,
.site-footer-link:focus-visible,
.project-slideshow-arrow:focus-visible,
.favorite-camera-link:focus-visible,
.home-assistant-link:focus-visible,
.experience-company-link:focus-visible {
  outline: 2px solid rgba(159, 212, 255, 0.9);
  outline-offset: 3px;
}

.button.primary {
  color: #07111f;
  background: linear-gradient(135deg, #dff2ff, #ffcfae);
  box-shadow: 0 20px 40px rgba(18, 26, 45, 0.28);
}

.button.secondary {
  color: var(--text);
}

.button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
}

.button-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.button-linkedin {
  color: #eff8ff;
  background:
    linear-gradient(180deg, rgba(111, 178, 255, 0.28), rgba(69, 129, 214, 0.16)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  border-color: rgba(132, 187, 255, 0.36);
  box-shadow:
    0 18px 44px rgba(8, 20, 44, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.button-linkedin:hover {
  background:
    linear-gradient(180deg, rgba(122, 190, 255, 0.34), rgba(80, 144, 232, 0.2)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
}

.hero-card {
  overflow: hidden;
  padding: 1.5rem;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #b6ffea, #8fc6ff);
  box-shadow: 0 0 24px rgba(143, 198, 255, 0.8);
}

.hero-card h2 {
  margin: 1rem 0 0.8rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-identity {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1rem 0 0.8rem;
}

.hero-identity h2 {
  margin: 0;
}

.hero-identity-copy {
  display: grid;
  gap: 0.15rem;
}

.hero-age {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.hero-profile-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  padding: 0.18rem;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.1)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 12px 26px rgba(8, 20, 44, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  overflow: hidden;
}

.hero-profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  border-radius: 50%;
}

.hero-card p {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-card .hero-age {
  max-width: none;
}

.orbital-ring {
  position: absolute;
  top: -3rem;
  right: -2rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.02) 48%),
    linear-gradient(135deg, rgba(159, 212, 255, 0.4), rgba(255, 215, 184, 0.18));
  filter: blur(0.2px);
}

.stat-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.stat-list li {
  display: grid;
  grid-template-columns: minmax(0, 10.5rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(132, 192, 255, 0.24), rgba(255, 198, 166, 0.12)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 20px rgba(5, 10, 22, 0.16);
}

.stat-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.stat-list strong {
  min-width: 0;
  text-align: left;
  line-height: 1.4;
}

.stat-list span,
.feature-kicker,
.project-tag {
  color: var(--muted);
}

.retirement-countdown {
  position: relative;
  z-index: 1;
  justify-content: space-between;
  width: 100%;
  margin-top: 1.35rem;
  padding: 0.95rem 1rem;
  border-radius: 1.35rem;
}

.retirement-countdown strong,
.retirement-countdown span {
  display: block;
}

.retirement-label,
.retirement-note {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.retirement-label {
  color: rgba(255, 255, 255, 0.72);
}

.retirement-time {
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
}

.retirement-note {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  color: #07111f;
  font-weight: 800;
  white-space: nowrap;
  background: linear-gradient(135deg, #dff2ff, #ffd4bc);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature,
.project-card,
.about-copy,
.timeline,
.contact-panel,
.experience-card,
.education-card {
  border-radius: 1.8rem;
  padding: 1.5rem;
}

.section {
  padding: 5rem 0 0;
}

.section-link-row {
  padding-top: 1.4rem;
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.6rem;
}

.section-heading h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 19rem;
}

.project-gradient {
  position: absolute;
  inset: auto -10% 54% auto;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.68;
}

.gradient-a {
  background: radial-gradient(circle, rgba(165, 217, 255, 0.85), transparent 65%);
}

.gradient-b {
  background: radial-gradient(circle, rgba(255, 189, 145, 0.9), transparent 65%);
}

.gradient-c {
  background: radial-gradient(circle, rgba(194, 178, 255, 0.85), transparent 65%);
}

.project-card h3 {
  position: relative;
  margin: 1.2rem 0 0.85rem;
  font-size: 1.55rem;
}

.project-card p {
  position: relative;
  line-height: 1.72;
  color: var(--muted);
}

.page-hero {
  min-height: auto;
  padding-top: 1.25rem;
}

.lab-grid,
.interest-grid {
  display: grid;
  gap: 1rem;
}

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

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

.quick-scan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.lab-card,
.interest-card,
.idea-panel,
.mini-metric {
  border-radius: 1.8rem;
  padding: 1.5rem;
}

.lab-card h3,
.interest-card h3 {
  margin-bottom: 0.85rem;
  font-size: 1.5rem;
}

.lab-card {
  position: relative;
  overflow: hidden;
}

.lab-card p,
.interest-card p,
.idea-panel p,
.mini-metric p {
  color: var(--muted);
  line-height: 1.75;
}

.project-photo-bubble {
  margin: 1rem 0 0;
  width: 100%;
  padding: 0.45rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.lab-card > .project-photo-bubble {
  width: min(100%, 11.5rem);
}

.project-slideshow {
  position: relative;
  width: 100%;
  margin-top: 1rem;
}

.project-slideshow-viewport {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 1.1rem;
}

.project-photo-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100%, 25rem);
  margin-top: 1rem;
}

.project-slide {
  grid-area: 1 / 1;
  width: 100%;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px) scale(0.988);
  transition:
    opacity 760ms ease,
    transform 760ms ease,
    visibility 760ms step-end;
  pointer-events: none;
}

.project-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition:
    opacity 760ms ease,
    transform 760ms ease,
    visibility 0ms linear;
  pointer-events: auto;
  z-index: 1;
}

.project-slide.project-photo-bubble {
  padding: 0.32rem;
  border-radius: 1.1rem;
}

.project-slideshow-arrow {
  position: absolute;
  top: calc(50% - 1.2rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #f4f8ff;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(9, 17, 32, 0.18);
  box-shadow:
    0 14px 26px rgba(3, 10, 22, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px) saturate(145%);
  -webkit-backdrop-filter: blur(16px) saturate(145%);
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.project-slideshow-arrow:hover {
  transform: translateY(-1px) scale(1.03);
}

.project-slideshow-arrow span {
  display: block;
  line-height: 1;
  font-size: 1.45rem;
  transform: translateY(-1px);
}

.project-slideshow-arrow-prev {
  left: 0.65rem;
}

.project-slideshow-arrow-next {
  right: 0.65rem;
}

.project-slideshow-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.project-slideshow-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 180ms ease, background-color 180ms ease;
}

.project-slideshow-dot.is-active {
  background: rgba(214, 239, 255, 0.95);
  transform: scale(1.15);
}

.project-photo-bubble img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.95rem;
}

.project-slide img {
  height: clamp(11.75rem, 28vw, 14.5rem);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center center;
  background: rgba(6, 13, 25, 0.34);
}

.project-photo-bubble figcaption {
  margin-top: 0.42rem;
  padding: 0 0.12rem 0.04rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mini-metric {
  display: grid;
  gap: 0.7rem;
}

.mini-metric strong {
  font-size: 1.05rem;
}

.mini-icon,
.card-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mini-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 1rem;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(127, 184, 255, 0.26), rgba(255, 196, 158, 0.18)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-icon-badge {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: #f7fbff;
  background:
    linear-gradient(180deg, rgba(132, 192, 255, 0.28), rgba(255, 198, 166, 0.14)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.home-assistant-badge {
  color: #ffffff;
  background: rgb(76, 167, 238);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 26px rgba(24, 98, 168, 0.28);
}

.home-assistant-logo {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.16));
}

.home-assistant-link {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-assistant-link:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 24px rgba(24, 98, 168, 0.26);
}

.security-camera-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
  filter: brightness(0) invert(1);
}

.control-panel-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
}

.mini-icon svg,
.card-icon-badge svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.detail-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  padding-top: 0.8rem;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.favorite-camera-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  margin-top: 1rem;
  padding: 0.72rem 0.85rem;
  border-radius: 1.2rem;
}

.favorite-camera-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.22rem;
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.favorite-camera-link {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.favorite-camera-link:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: rgba(163, 211, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(10, 33, 74, 0.18);
}

.favorite-camera-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.favorite-camera-copy h4 {
  margin: 0 0 0.18rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.favorite-camera-copy p {
  margin: 0;
  font-size: 0.83rem;
  line-height: 1.45;
}

.idea-panel {
  max-width: 64rem;
}

.idea-panel p:last-child {
  margin-bottom: 0;
}

.category-panel {
  display: grid;
  gap: 1rem;
}

.category-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-row:first-child {
  padding-top: 0;
  border-top: 0;
}

.category-row h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.experience-wrap {
  padding-top: 1rem;
}

.experience-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.experience-logo-shell {
  display: grid;
  place-items: center;
  width: 10.5rem;
  min-height: 4.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 1.7rem;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    0 10px 30px rgba(8, 20, 44, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.experience-logo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.experience-copy {
  min-width: 0;
}

.experience-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.experience-heading h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.experience-company-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: opacity 180ms ease, transform 180ms ease;
}

.experience-company-link::after {
  content: "↗";
  font-size: 0.82em;
  color: var(--muted);
}

.experience-company-link:hover {
  opacity: 0.88;
  transform: translateX(1px);
}

.experience-meta,
.experience-description {
  color: var(--muted);
}

.experience-meta {
  margin-bottom: 0;
}

.experience-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: #07111f;
  font-size: 0.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #dff2ff, #ffd4bc);
  white-space: nowrap;
}

.experience-description {
  max-width: 52rem;
  margin-bottom: 0;
  line-height: 1.75;
}

.education-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
}

.education-logo-shell {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 1.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.education-logo {
  width: min(90%, 6rem);
  height: auto;
  display: block;
  object-fit: contain;
}

.education-copy {
  min-width: 0;
}

.education-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.education-heading h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
}

.education-meta,
.education-description {
  color: var(--muted);
}

.education-meta {
  margin-bottom: 0;
}

.education-duration {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: #07111f;
  font-size: 0.9rem;
  font-weight: 800;
  background: linear-gradient(135deg, #dff2ff, #ffd4bc);
  white-space: nowrap;
}

.education-description {
  max-width: 52rem;
  margin-bottom: 0;
  line-height: 1.75;
}

.about-copy p,
.timeline p {
  line-height: 1.8;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.timeline-item span {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #07111f;
  font-weight: 800;
  background: linear-gradient(135deg, #dff2ff, #ffd4bc);
}

.contact-section {
  padding-bottom: 3rem;
}

.contact-panel {
  justify-content: space-between;
}

.contact-panel h2 {
  margin-bottom: 0;
  max-width: 12ch;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.03;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin: clamp(1.7rem, 3vw, 2.2rem) auto 1.25rem;
  padding: 0.95rem 1.1rem;
  border-radius: 1.4rem;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.site-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.site-footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1rem;
  gap: 0.55rem;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 16px 34px rgba(8, 20, 44, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-footer-link:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.22);
}

.site-footer-link.button-linkedin {
  box-shadow:
    0 16px 34px rgba(8, 20, 44, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 980px) {
  .hero,
  .project-grid,
  .feature-strip,
  .about-layout,
  .lab-grid,
  .interest-grid,
  .quick-scan-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 1rem;
  }

  .hero-copy {
    padding-top: 2rem;
  }

  .circuit-hero {
    width: min(100%, 30rem);
  }

  .circuit-hero-embedded {
    width: min(100%, 21rem);
  }

  .section-heading h2,
  .contact-panel h2 {
    max-width: 100%;
  }

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

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

  .site-footer-copy {
    max-width: 100%;
  }

  .stat-list li {
    grid-template-columns: minmax(0, 9.25rem) minmax(0, 1fr);
    align-items: flex-start;
  }

  .retirement-countdown {
    align-items: flex-start;
    gap: 0.85rem;
  }

  .experience-card,
  .education-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .project-photo-row {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 0.8rem;
  }

  .topbar {
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-identity {
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

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

  .circuit-board {
    min-height: 12.5rem;
  }

  .circuit-core {
    min-width: 7.6rem;
    min-height: 7.6rem;
    font-size: 0.78rem;
  }

  .circuit-hero-embedded .circuit-board {
    min-height: 11.75rem;
  }

  .button {
    width: 100%;
  }

  .site-footer-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer-link {
    width: 100%;
  }

  .project-slideshow-arrow {
    top: auto;
    bottom: 2.8rem;
  }

  .stat-list li {
    grid-template-columns: 1fr;
  }

  .retirement-countdown {
    flex-direction: column;
  }

  .experience-heading {
    flex-direction: column;
  }

  .education-heading {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


@keyframes tracePulseHorizontal {
  0% {
    opacity: 0;
    transform: translateX(-14%);
  }

  18% {
    opacity: 1;
  }

  60% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translateX(340%);
  }
}

@keyframes tracePulseVertical {
  0% {
    opacity: 0;
    transform: translateY(-18%);
  }

  16% {
    opacity: 1;
  }

  62% {
    opacity: 0.92;
  }

  100% {
    opacity: 0;
    transform: translateY(112%);
  }
}
