:root {
  --background: #fafafa;
  --foreground: #0f172a;
  --muted-surface: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #0052ff;
  --accent-secondary: #4d7cff;
  --accent-foreground: #ffffff;
  --cursor-splash-primary: #0052ff;
  --cursor-splash-secondary: #8fb7ff;
  --cursor-splash-highlight: #e8f1ff;
  --border: #e2e8f0;
  --card: #ffffff;
  --ring: #0052ff;
  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  --shadow-accent: 0 8px 24px rgba(0, 82, 255, 0.26);
  --shadow-card: 0 18px 48px rgba(15, 23, 42, 0.09);
  --bg: var(--background);
  --ink: #071044;
  --muted: #34406b;
  --soft: #f4f8ff;
  --line: #d9e5ff;
  --blue: var(--accent);
  --blue-dark: #0038b8;
  --blue-soft: #e8f1ff;
  --panel: rgba(255, 255, 255, 0.9);
  --shadow: var(--shadow-card);
  --radius: 8px;
  --max: 1580px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 86% 10%, rgba(7, 88, 223, 0.13), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 52%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

body.nav-open {
  overflow: hidden;
}

.aurora-backdrop {
  position: fixed;
  inset: -18vh -12vw;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-backdrop span {
  position: absolute;
  display: block;
  width: 44vw;
  min-width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(76px);
  opacity: 0.26;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 32% 32%, rgba(255, 255, 255, 0.85), transparent 22%),
    radial-gradient(circle, rgba(0, 82, 255, 0.52), rgba(77, 124, 255, 0.12) 54%, transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

.aurora-backdrop span:nth-child(1) {
  left: -8vw;
  top: 6vh;
}

.aurora-backdrop span:nth-child(2) {
  right: -10vw;
  top: 22vh;
  animation-delay: -6s;
  animation-duration: 22s;
}

.aurora-backdrop span:nth-child(3) {
  left: 28vw;
  bottom: -18vh;
  opacity: 0.18;
  animation-delay: -11s;
  animation-duration: 26s;
}

.splash-cursor-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.74;
  mix-blend-mode: multiply;
  filter: saturate(1.08);
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(18px, 3vw, 44px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: box-shadow 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: -1px;
  width: var(--scroll-progress, 0%);
  height: 2px;
  background: var(--gradient-accent);
  box-shadow: 0 0 18px rgba(0, 82, 255, 0.35);
  transition: width 80ms linear;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 82, 255, 0.16);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.brand-chart {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(4, 5px);
  align-items: end;
  gap: 3px;
  width: 42px;
  height: 30px;
}

.brand-chart::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  background: var(--gradient-accent);
  transform: rotate(-28deg);
  transform-origin: left center;
}

.brand-chart span {
  display: block;
  width: 5px;
  border-radius: 4px 4px 0 0;
  background: var(--gradient-accent);
}

.brand-chart span:nth-child(1) { height: 8px; }
.brand-chart span:nth-child(2) { height: 13px; }
.brand-chart span:nth-child(3) { height: 19px; }
.brand-chart span:nth-child(4) { height: 25px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 13px;
  color: var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a:not(.resume-link):hover {
  color: var(--accent);
  background: rgba(0, 82, 255, 0.045);
  transform: translateY(-1px);
}

.site-nav .resume-link {
  margin-left: 6px;
  min-height: 42px;
  color: #ffffff;
  background: var(--gradient-accent);
  box-shadow: 0 10px 20px rgba(7, 88, 223, 0.2);
}

.site-nav .resume-link::after {
  display: none;
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blue-soft);
}

.language-switch button {
  min-width: 42px;
  min-height: 32px;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.language-switch button.is-active {
  color: #ffffff;
  background: var(--gradient-accent);
  box-shadow: 0 8px 18px rgba(0, 82, 255, 0.18);
}

.nav-toggle {
  display: none;
}

.section-shell {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(470px, 1fr) minmax(430px, 1fr) minmax(190px, 0.36fr);
  gap: clamp(20px, 2.4vw, 42px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 34px 0 30px;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0 -6vw auto auto;
  width: 42vw;
  height: 100%;
  pointer-events: none;
  background:
    radial-gradient(circle at 40% 46%, rgba(255, 255, 255, 0.8), transparent 24%),
    linear-gradient(135deg, transparent 0 30%, rgba(7, 88, 223, 0.12) 30% 48%, rgba(7, 88, 223, 0.22) 48% 62%, transparent 62%);
  z-index: -1;
}

.hello-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 20px;
  font-weight: 760;
}

.hello-line::after {
  content: "";
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, #a9c7ff, transparent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  display: inline-block;
  overflow: visible;
  padding-bottom: 0.08em;
  color: transparent;
  background: linear-gradient(90deg, var(--ink) 0 48%, var(--accent) 70%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Calistoga, Georgia, serif;
  font-weight: 400;
  font-size: clamp(62px, 6.2vw, 100px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.title-line {
  margin: 14px 0 0;
  color: var(--blue);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 760;
}

.hero-summary {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.skill-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.skill-pills li,
.tag-list li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid #cbdcff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.42), transparent 32%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.button:hover,
.button:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button:hover::after,
.button:focus-visible::after {
  opacity: 1;
}

.button:active,
.segmented-control button:active,
.skill-buttons button:active,
.project-card:active,
.trait-card:active {
  transform: translateY(0) scale(0.985);
}

.button-primary {
  color: #ffffff;
  background: var(--gradient-accent);
  box-shadow: 0 14px 28px rgba(7, 88, 223, 0.24);
}

.button-secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 82, 255, 0.55);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: var(--shadow-accent);
  filter: brightness(1.05);
}

.hero-media {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 420px;
  perspective: 1200px;
}

.profile-card {
  position: relative;
  left: auto;
  top: auto;
  z-index: 4;
  display: grid;
  gap: 12px;
  align-items: center;
  width: 190px;
  padding: 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-card:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: var(--blue);
  box-shadow: 0 22px 54px rgba(7, 88, 223, 0.18);
}

.profile-card img {
  width: 152px;
  height: 152px;
  margin: 0 auto;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid #ffffff;
}

.profile-card strong {
  display: block;
  color: var(--ink);
}

.profile-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.laptop-dashboard {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  min-height: 330px;
  padding: 20px;
  border: 10px solid #11182f;
  border-bottom-width: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  box-shadow: 0 28px 70px rgba(6, 22, 73, 0.22);
  transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)) scale(var(--dashboard-scale, 1));
  transition: transform 120ms ease, box-shadow 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.laptop-dashboard:hover {
  --dashboard-scale: 1.015;
  box-shadow: 0 32px 80px rgba(6, 22, 73, 0.28);
}

.dashboard-top,
.detail-topline,
.section-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-top {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric-item {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 12px;
}

.metric-item strong {
  color: var(--ink);
  font-size: 25px;
}

.metric-item span {
  color: var(--muted);
  white-space: nowrap;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.75fr;
  gap: 12px;
  margin-top: 14px;
}

.line-chart,
.donut-chart,
.bar-chart,
.heatmap {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.line-chart {
  position: relative;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 14px;
}

.line-chart::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 42px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), #86b7ff);
  transform: rotate(-8deg);
  animation: chartPulse 3.8s ease-in-out infinite;
}

.line-chart span,
.bar-chart span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #bad2ff;
}

.line-chart span:nth-child(1) { height: 28px; }
.line-chart span:nth-child(2) { height: 42px; }
.line-chart span:nth-child(3) { height: 36px; }
.line-chart span:nth-child(4) { height: 52px; }
.line-chart span:nth-child(5) { height: 45px; }
.line-chart span:nth-child(6) { height: 62px; }

.donut-chart {
  background:
    radial-gradient(circle, #ffffff 0 34%, transparent 35%),
    conic-gradient(var(--blue) 0 36%, #85b5ff 36% 64%, #d9e6ff 64% 100%);
}

.bar-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px;
}

.bar-chart span:nth-child(1) { height: 25px; }
.bar-chart span:nth-child(2) { height: 48px; }
.bar-chart span:nth-child(3) { height: 36px; }
.bar-chart span:nth-child(4) { height: 58px; }
.bar-chart span:nth-child(5) { height: 72px; background: var(--blue); }

.heatmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 12px;
}

.heatmap span {
  border-radius: 5px;
  background: #b7d0ff;
}

.heatmap span:nth-child(2n) { background: var(--blue); }
.heatmap span:nth-child(3n) { background: #6fa3ff; }

.capability-dashboard {
  min-height: 330px;
  padding: 16px;
}

.capability-dashboard .metric-strip {
  gap: 8px;
  margin-top: 12px;
}

.capability-dashboard .metric-item {
  position: relative;
  display: block;
  min-height: 58px;
  padding: 9px 10px;
}

.capability-dashboard .metric-item em {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: var(--blue);
  background: #e7f0ff;
  border-radius: 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.capability-dashboard .metric-item strong {
  display: block;
  min-width: 0;
  max-width: calc(100% - 28px);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.capability-dashboard .metric-item span {
  display: block;
  min-width: 0;
  margin-top: 5px;
  white-space: normal;
  font-size: 9.5px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dashboard-panel {
  min-height: auto;
  padding: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.workflow-chart {
  grid-column: 1 / -1;
}

.dashboard-panel > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.15;
}

.workflow-chart ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.workflow-chart ol::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #8bb8ff);
}

.workflow-chart li {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 25px;
  padding: 2px;
  color: var(--blue-dark);
  background: #eef5ff;
  border: 1px solid #d2e2ff;
  border-radius: 7px;
  font-size: 7.5px;
  font-weight: 850;
  text-align: center;
  overflow-wrap: anywhere;
}

.role-fit {
  display: grid;
  align-content: start;
}

.role-fit div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  margin-top: 5px;
}

.role-fit span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 780;
  line-height: 1.1;
}

.role-fit i {
  display: block;
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #e5efff;
  border-radius: 999px;
}

.role-fit i::before {
  content: "";
  display: block;
  width: var(--fit);
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #74a8ff);
  border-radius: inherit;
}

.tool-coverage div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.tool-coverage span {
  display: grid;
  place-items: center;
  min-height: 20px;
  padding: 2px 3px;
  color: var(--blue-dark);
  background: #edf5ff;
  border: 1px solid #d2e2ff;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 820;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.tool-coverage span:nth-child(3n) {
  color: #ffffff;
  background: var(--gradient-accent);
  border-color: transparent;
}

.trait-rail {
  display: grid;
  gap: 14px;
}

.trait-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(7, 88, 223, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.trait-card:hover,
.trait-card.is-active,
.trait-card:focus-visible {
  transform: translateX(-4px) scale(1.018);
  border-color: var(--blue);
  background: #ffffff;
  outline: none;
}

.trait-card span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: var(--radius);
  font-weight: 850;
}

.trait-card strong,
.trait-card em {
  grid-column: 2;
}

.trait-card em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.trait-status {
  margin: 0;
  padding: 12px 14px;
  color: var(--blue-dark);
  background: rgba(232, 241, 255, 0.8);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 760;
}

section:not(.hero-panel) {
  scroll-margin-top: 84px;
}

.landscape-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.about-card,
.mini-profile-card,
.project-detail,
.app-showcase,
.toolbox-panel,
.skill-detail,
.experience-card,
.education-card,
.contact-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(9, 43, 117, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.about-card::before,
.mini-profile-card::before,
.app-showcase::before,
.toolbox-panel::before,
.skill-detail::before,
.experience-card::before,
.education-card::before,
.contact-card::before,
.project-card::before,
.trait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 82, 255, 0.12), transparent 34%);
  opacity: 0;
  transition: opacity 200ms ease;
}

.about-card:hover::before,
.mini-profile-card:hover::before,
.app-showcase:hover::before,
.toolbox-panel:hover::before,
.skill-detail:hover::before,
.experience-card:hover::before,
.education-card:hover::before,
.contact-card:hover::before,
.project-card:hover::before,
.trait-card:hover::before {
  opacity: 1;
}

.about-card:hover,
.mini-profile-card:hover,
.app-showcase:hover,
.toolbox-panel:hover,
.skill-detail:hover,
.experience-card:hover,
.education-card:hover,
.contact-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--blue);
  box-shadow: 0 18px 46px rgba(7, 88, 223, 0.13);
}

.about-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #ffffff;
  background: var(--gradient-accent);
  border: 1px solid #d3e2ff;
  border-radius: 50%;
  font-weight: 850;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 8px;
  color: var(--blue);
  padding: 6px 11px;
  background: rgba(0, 82, 255, 0.055);
  border: 1px solid rgba(0, 82, 255, 0.18);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--gradient-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(0, 82, 255, 0.1);
  animation: badgePulse 2.2s ease-in-out infinite;
}

h2 {
  margin: 0;
  color: var(--ink);
  font-family: Calistoga, Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.18;
}

.about-card p,
.mini-profile-card p,
.project-card p,
.project-detail p,
.project-detail dd,
.app-positioning,
.app-bullets,
.skill-detail p,
.experience-card li,
.education-card p,
.contact-card p {
  color: var(--muted);
}

.about-card p {
  margin: 12px 0 0;
  max-width: 920px;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.about-meta span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.mini-profile-card {
  padding: 22px;
}

.mini-profile-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 20px;
  list-style: none;
}

.mini-profile-card li {
  padding: 7px 10px;
  color: var(--blue-dark);
  background: var(--blue-soft);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 760;
}

.projects-section,
.apps-section,
.skills-section,
.bottom-grid {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.section-heading-row {
  margin-bottom: 18px;
}

.section-heading-row h2 {
  max-width: 850px;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.project-workspace {
  display: grid;
  gap: 22px;
}

.project-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

.project-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 12px;
  min-height: 292px;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(9, 43, 117, 0.08);
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, border-color 180ms ease, background 180ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-5px) scale(1.018);
  border-color: var(--blue);
  box-shadow: var(--shadow);
  outline: none;
}

.project-card.is-active {
  z-index: 2;
  transform: translateY(-7px) scale(1.025);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.98)),
    #ffffff;
  border-color: var(--blue);
  box-shadow: 0 22px 54px rgba(0, 82, 255, 0.2), inset 0 0 0 2px rgba(0, 82, 255, 0.75);
}

.project-card.is-active .project-number {
  width: 34px;
  height: 34px;
  font-size: 15px;
  box-shadow: 0 12px 26px rgba(0, 82, 255, 0.3);
}

.project-card.is-active .project-image {
  filter: saturate(1.08) contrast(1.02);
}

.project-card.is-active strong {
  color: var(--blue);
}

.project-number {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #ffffff;
  background: var(--gradient-accent);
  box-shadow: 0 8px 18px rgba(0, 82, 255, 0.26);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 850;
}

.project-image {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  border-bottom: 1px solid var(--line);
}

.project-card strong {
  padding: 0 16px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.24;
}

.project-card p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 13px;
  line-height: 1.48;
}

.project-detail {
  padding: 24px;
}

.detail-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.detail-topline span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.project-detail.is-swapping,
.app-showcase.is-swapping,
.skill-detail.is-swapping {
  animation: contentSwap 260ms ease both;
}

.project-detail p {
  margin: 14px 0;
}

.project-board-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(0, 82, 255, 0.1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(236, 244, 255, 0.94));
}

.project-board-shell::before,
.interactive-project-board::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.project-board-shell::before {
  inset: auto -90px -140px auto;
  width: 360px;
  height: 360px;
  background:
    linear-gradient(135deg, transparent 0 38%, rgba(0, 82, 255, 0.12) 38% 58%, transparent 58%),
    radial-gradient(circle, rgba(0, 82, 255, 0.16), transparent 56%);
  border-radius: 50%;
  z-index: -1;
}

.project-board-heading {
  position: relative;
  z-index: 1;
  max-width: 1020px;
}

.project-board-heading .tag-list {
  margin-top: 14px;
}

.project-detail-summary {
  max-width: 980px;
  color: var(--blue-dark);
  font-size: 19px;
  line-height: 1.55;
}

.interactive-project-board {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: clamp(16px, 2.2vw, 28px);
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 32%, rgba(0, 82, 255, 0.1), transparent 22%),
    rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(190, 212, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 22px 54px rgba(7, 44, 112, 0.1);
}

.interactive-project-board::before {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 67%, rgba(0, 82, 255, 0.08) 67% 78%, transparent 78%),
    radial-gradient(circle at 88% 14%, rgba(0, 82, 255, 0.12), transparent 18%);
  z-index: 0;
}

.project-board-hero,
.project-detail-metrics,
.project-detail-grid,
.project-board-lower {
  position: relative;
  z-index: 1;
}

.project-board-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 24px;
  align-items: center;
  min-height: 300px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(238, 246, 255, 0.78));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(9, 43, 117, 0.08);
}

.project-board-copy {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.project-board-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #ffffff;
  background: var(--gradient-accent);
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(0, 82, 255, 0.26);
  font-weight: 900;
  letter-spacing: 0;
}

.project-board-copy span {
  display: block;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-board-hero h4 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.15;
}

.project-board-hero p {
  max-width: 840px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.project-visual-scene {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9fcff, #e9f2ff);
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    0 18px 50px rgba(0, 82, 255, 0.08);
}

.project-visual-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-scene {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 0;
}

.project-scene-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.project-board-shell[data-project-theme="housing"] .scene-housing,
.project-board-shell[data-project-theme="database"] .scene-database,
.project-board-shell[data-project-theme="stock"] .scene-stock,
.project-board-shell[data-project-theme="recipe"] .scene-recipe {
  display: block;
  opacity: 1;
  animation: contentSwap 280ms ease both;
}

.project-scene::before {
  content: none;
  position: absolute;
  inset: 24px 30px 28px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.32;
}

.scene-sun,
.scene-moon,
.scene-globe {
  position: absolute;
  border-radius: 50%;
}

.scene-sun {
  top: 20px;
  right: 124px;
  width: 118px;
  height: 118px;
  background:
    repeating-linear-gradient(0deg, rgba(0, 82, 255, 0.1) 0 3px, transparent 3px 8px),
    radial-gradient(circle, rgba(255, 255, 255, 0.72), transparent 72%);
  opacity: 0.9;
}

.housing-network {
  position: absolute;
  inset: 22px 46px auto 76px;
  height: 120px;
  border-top: 2px dashed rgba(0, 82, 255, 0.16);
  border-radius: 50% 50% 0 0;
  transform: rotate(-5deg);
}

.housing-network i {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 9px rgba(0, 82, 255, 0.08);
}

.housing-network i:nth-child(1) { left: 18%; top: 18px; }
.housing-network i:nth-child(2) { left: 42%; top: -10px; width: 18px; height: 18px; }
.housing-network i:nth-child(3) { left: 62%; top: 26px; }
.housing-network i:nth-child(4) { right: 14%; top: 6px; width: 20px; height: 20px; }
.housing-network i:nth-child(5) { right: 4%; top: 62px; width: 10px; height: 10px; opacity: 0.55; }

.scene-building {
  position: absolute;
  bottom: 74px;
  width: 76px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), #d7e6ff);
  border: 1px solid #b8d0ff;
  border-radius: 8px 8px 2px 2px;
  box-shadow: 0 16px 36px rgba(0, 82, 255, 0.12);
}

.building-one { right: 126px; height: 128px; }
.building-two { right: 54px; height: 98px; opacity: 0.72; }
.building-three { right: 205px; height: 76px; opacity: 0.55; }

.scene-building::before {
  content: "";
  position: absolute;
  inset: 14px 14px;
  background:
    linear-gradient(90deg, rgba(0, 82, 255, 0.16) 40%, transparent 40% 60%, rgba(0, 82, 255, 0.16) 60%),
    repeating-linear-gradient(180deg, rgba(0, 82, 255, 0.28) 0 7px, transparent 7px 18px);
  opacity: 0.56;
}

.scene-house {
  position: absolute;
  display: block;
  background: linear-gradient(180deg, #ffffff, #dfeaff);
  border: 2px solid #b7d2ff;
  box-shadow: 0 20px 40px rgba(0, 82, 255, 0.14);
}

.house-main {
  right: 132px;
  bottom: 42px;
  width: 158px;
  height: 92px;
}

.house-small {
  left: 76px;
  bottom: 44px;
  width: 106px;
  height: 66px;
  opacity: 0.92;
}

.scene-house::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: -42px;
  height: 76px;
  background: linear-gradient(135deg, #0052ff 0 49%, #4d7cff 50% 100%);
  clip-path: polygon(50% 0, 100% 50%, 88% 50%, 88% 100%, 12% 100%, 12% 50%, 0 50%);
  filter: drop-shadow(0 8px 16px rgba(0, 82, 255, 0.24));
}

.scene-house i {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 30px;
  height: 46px;
  background: linear-gradient(180deg, #0052ff, #75a8ff);
  border-radius: 9px 9px 0 0;
}

.scene-house b {
  position: absolute;
  width: 34px;
  height: 28px;
  background: #eaf2ff;
  border: 1px solid #9bbcff;
  border-radius: 6px;
}

.scene-house b:nth-of-type(1) { left: 70px; top: 24px; }
.scene-house b:nth-of-type(2) { right: 20px; top: 24px; }

.housing-shrub {
  position: absolute;
  bottom: 34px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 35% 45%, #9fd0ff 0 28%, transparent 29%),
    radial-gradient(circle at 62% 42%, #4d7cff 0 30%, transparent 31%),
    radial-gradient(circle at 50% 70%, #b8d8ff 0 38%, transparent 39%);
}

.shrub-one { right: 98px; width: 82px; height: 54px; }
.shrub-two { left: 178px; width: 60px; height: 42px; opacity: 0.8; }

.scene-bars {
  position: absolute;
  left: 42px;
  bottom: 34px;
  display: flex;
  align-items: end;
  gap: 8px;
  height: 76px;
}

.scene-bars i {
  display: block;
  width: 15px;
  background: linear-gradient(180deg, #0052ff, #9fc1ff);
  border-radius: 6px 6px 2px 2px;
}

.scene-bars i:nth-child(1) { height: 34px; }
.scene-bars i:nth-child(2) { height: 50px; }
.scene-bars i:nth-child(3) { height: 64px; }
.scene-bars i:nth-child(4) { height: 74px; }

.scene-line-chart {
  position: absolute;
  left: 48px;
  right: 58px;
  bottom: 108px;
  height: 86px;
  border-bottom: 3px solid rgba(0, 82, 255, 0.1);
}

.scene-line-chart::before {
  content: "";
  position: absolute;
  left: 54px;
  right: 28px;
  bottom: 24px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 999px;
  transform: rotate(-16deg);
  transform-origin: left center;
  box-shadow: 0 10px 22px rgba(0, 82, 255, 0.18);
}

.scene-line-chart i {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 7px rgba(0, 82, 255, 0.08);
}

.scene-line-chart i:nth-child(1) { left: 84px; bottom: 39px; }
.scene-line-chart i:nth-child(2) { left: 166px; bottom: 58px; }
.scene-line-chart i:nth-child(3) { right: 116px; bottom: 70px; }
.scene-line-chart i:nth-child(4) { right: 34px; bottom: 84px; }

.scene-moon {
  top: 34px;
  right: 80px;
  width: 92px;
  height: 92px;
  background: #ffffff;
  box-shadow: inset -24px 0 0 #0052ff, 0 0 0 18px rgba(0, 82, 255, 0.07);
}

.database-platform {
  position: absolute;
  left: 192px;
  top: 70px;
  width: 270px;
  height: 110px;
  background: radial-gradient(ellipse at 50% 60%, rgba(0, 82, 255, 0.18), transparent 62%);
  border-radius: 50%;
  transform: perspective(320px) rotateX(58deg);
}

.database-core {
  position: absolute;
  left: 268px;
  top: 38px;
  width: 118px;
  height: 138px;
}

.database-core i,
.database-side-db i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(180deg, #f8fbff 0 8%, #0052ff 8% 56%, #6da1ff 100%);
  border-radius: 50%;
  box-shadow: inset 0 -14px 0 rgba(0, 82, 255, 0.24), 0 10px 18px rgba(0, 82, 255, 0.14);
}

.database-core i:nth-child(1) { top: 0; z-index: 3; }
.database-core i:nth-child(2) { top: 36px; z-index: 2; }
.database-core i:nth-child(3) { top: 72px; z-index: 1; }

.database-core b {
  position: absolute;
  left: 0;
  top: 22px;
  width: 100%;
  height: 92px;
  background: linear-gradient(90deg, #0052ff, #4d7cff);
  border-radius: 0 0 52px 52px;
  box-shadow: 0 24px 42px rgba(0, 82, 255, 0.2);
}

.database-side-db {
  position: absolute;
  top: 62px;
  width: 76px;
  height: 96px;
  opacity: 0.5;
}

.side-left { left: 178px; }
.side-right { right: 116px; }
.database-side-db i:nth-child(1) { top: 0; }
.database-side-db i:nth-child(2) { top: 30px; }

.schema-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 76px;
  min-height: 34px;
  padding: 7px 10px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #bfd5ff;
  border-radius: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(0, 82, 255, 0.08);
}

.node-users { left: 80px; top: 44px; }
.node-sleep { right: 40px; top: 78px; }
.node-stress { left: 82px; bottom: 58px; }
.node-study { right: 52px; bottom: 48px; }
.node-activity { left: 236px; bottom: 28px; }

.schema-link {
  position: absolute;
  height: 2px;
  background: #7aa9ff;
  transform-origin: left center;
}

.link-a { left: 154px; top: 78px; width: 132px; transform: rotate(9deg); }
.link-b { left: 154px; top: 178px; width: 142px; transform: rotate(-20deg); }
.link-c { left: 376px; top: 98px; width: 154px; transform: rotate(-5deg); }
.link-d { left: 378px; top: 154px; width: 156px; transform: rotate(21deg); }

.schema-metric {
  position: absolute;
  left: 34px;
  bottom: 32px;
  display: flex;
  align-items: end;
  gap: 7px;
  height: 62px;
}

.schema-metric i {
  width: 14px;
  background: linear-gradient(180deg, #9fc1ff, #0052ff);
  border-radius: 999px;
}

.schema-metric i:nth-child(1) { height: 32px; }
.schema-metric i:nth-child(2) { height: 46px; }
.schema-metric i:nth-child(3) { height: 58px; }

.scene-globe {
  left: 76px;
  top: 34px;
  width: 144px;
  height: 144px;
  background:
    radial-gradient(circle at 42% 38%, rgba(0, 82, 255, 0.18), transparent 36%),
    repeating-linear-gradient(90deg, rgba(0, 82, 255, 0.16) 0 2px, transparent 2px 8px);
  box-shadow: inset 0 0 0 2px #c5d9ff, 0 18px 36px rgba(0, 82, 255, 0.12);
  opacity: 0.86;
}

.stock-bars {
  position: absolute;
  left: 70px;
  right: 58px;
  bottom: 38px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 112px;
  opacity: 0.34;
  z-index: 1;
}

.stock-bars i {
  width: 34px;
  background: linear-gradient(180deg, #0052ff, #c7d9ff);
  border-radius: 12px 12px 4px 4px;
}

.stock-bars i:nth-child(1) { height: 38px; }
.stock-bars i:nth-child(2) { height: 60px; }
.stock-bars i:nth-child(3) { height: 82px; }
.stock-bars i:nth-child(4) { height: 100px; }
.stock-bars i:nth-child(5) { height: 76px; }

.stock-candles {
  position: absolute;
  left: 258px;
  right: 108px;
  bottom: 58px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  height: 150px;
  z-index: 7;
}

.stock-candles i {
  position: relative;
  display: block;
  flex: 0 0 16px;
  width: 16px;
  background: linear-gradient(180deg, #0052ff, #7aa9ff);
  border: 1px solid #6b9fff;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 82, 255, 0.12);
}

.stock-candles i:nth-child(even) {
  background: linear-gradient(180deg, #ffffff, #dce9ff);
}

.stock-candles i::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -18px;
  width: 2px;
  height: calc(100% + 34px);
  background: #0052ff;
}

.stock-candles i:nth-child(1) { height: 42px; }
.stock-candles i:nth-child(2) { height: 62px; }
.stock-candles i:nth-child(3) { height: 86px; }
.stock-candles i:nth-child(4) { height: 74px; }
.stock-candles i:nth-child(5) { height: 106px; }
.stock-candles i:nth-child(6) { height: 126px; }
.stock-candles i:nth-child(7) { height: 142px; }

.stock-trend {
  position: absolute;
  left: 72px;
  right: 112px;
  bottom: 60px;
  height: 128px;
  border-bottom: 3px solid rgba(0, 82, 255, 0.13);
  z-index: 3;
}

.stock-trend::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 8px;
  bottom: 30px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 999px;
  transform: rotate(-18deg);
  transform-origin: left center;
  box-shadow: 0 16px 34px rgba(0, 82, 255, 0.2);
}

.stock-trend i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(0, 82, 255, 0.08);
}

.stock-trend i:nth-child(1) { left: 68px; bottom: 54px; }
.stock-trend i:nth-child(2) { left: 190px; bottom: 86px; }
.stock-trend i:nth-child(3) { right: 130px; bottom: 118px; }
.stock-trend i:nth-child(4) { right: 42px; bottom: 142px; }

.stock-arrow {
  position: absolute;
  right: 50px;
  top: 44px;
  width: 82px;
  height: 82px;
  border-top: 15px solid #0052ff;
  border-right: 15px solid #0052ff;
  transform: rotate(45deg);
  filter: drop-shadow(0 12px 18px rgba(0, 82, 255, 0.18));
  z-index: 5;
}

.stock-donut {
  position: absolute;
  right: 44px;
  bottom: 30px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: conic-gradient(#0052ff 0 72%, #dbe8ff 72% 100%);
  box-shadow: 0 14px 28px rgba(0, 82, 255, 0.12);
  z-index: 5;
}

.stock-donut::after {
  content: "";
  position: absolute;
  inset: 19px;
  background: #f4f8ff;
  border-radius: 50%;
}

.stock-signal-badge {
  position: absolute;
  right: 150px;
  top: 54px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 36px;
  color: #ffffff;
  background: var(--gradient-accent);
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(0, 82, 255, 0.2);
  font-weight: 900;
  z-index: 6;
}

.recipe-card,
.review-bubble {
  position: absolute;
  display: block;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #cfe0ff;
  box-shadow: 0 20px 38px rgba(0, 82, 255, 0.12);
}

.recipe-card {
  width: 156px;
  height: 188px;
  border-radius: 17px;
}

.card-main {
  left: 92px;
  top: 38px;
  transform: rotate(-4deg);
  z-index: 3;
}

.card-back {
  left: 190px;
  top: 64px;
  transform: rotate(8deg);
  opacity: 0.66;
  z-index: 1;
}

.recipe-card i {
  position: absolute;
  top: 17px;
  left: 16px;
  right: 16px;
  height: 88px;
  background:
    radial-gradient(ellipse at 50% 58%, #ffffff 0 42%, transparent 43%),
    radial-gradient(ellipse at 50% 55%, #f08a3d 0 25%, transparent 26%),
    radial-gradient(circle at 42% 45%, #ffd37a 0 12%, transparent 13%),
    radial-gradient(circle at 57% 48%, #e94f3d 0 11%, transparent 12%),
    radial-gradient(circle at 53% 31%, #42a85a 0 7%, transparent 8%),
    linear-gradient(145deg, #f8fbff, #eaf2ff);
  border-radius: 14px;
  box-shadow: inset 0 -12px 22px rgba(0, 82, 255, 0.08);
}

.recipe-card em {
  position: absolute;
  left: 24px;
  top: 118px;
  width: 86px;
  height: 16px;
  background: repeating-linear-gradient(90deg, #0052ff 0 12px, transparent 12px 18px);
  clip-path: polygon(50% 0, 61% 36%, 99% 36%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 1% 36%, 39% 36%);
}

.recipe-card b {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 8px;
  background: #c7d9ff;
  border-radius: 999px;
}

.recipe-card b:nth-of-type(1) { bottom: 42px; }
.recipe-card b:nth-of-type(2) { bottom: 26px; right: 48px; }
.recipe-card b:nth-of-type(3) { bottom: 12px; right: 70px; }

.recipe-plate {
  position: absolute;
  right: 48px;
  bottom: 42px;
  width: 156px;
  height: 76px;
  background:
    radial-gradient(ellipse at 50% 45%, #ffcb70 0 31%, transparent 32%),
    radial-gradient(ellipse at 50% 56%, #ffffff 0 58%, #c7d9ff 59% 66%, transparent 67%);
  border-radius: 50%;
  z-index: 2;
}

.recipe-stars {
  position: absolute;
  right: 62px;
  top: 52px;
  display: flex;
  gap: 7px;
  z-index: 5;
}

.recipe-stars i {
  width: 17px;
  height: 17px;
  background: #0052ff;
  clip-path: polygon(50% 0, 62% 34%, 98% 35%, 69% 56%, 79% 91%, 50% 70%, 21% 91%, 31% 56%, 2% 35%, 38% 34%);
}

.review-bubble {
  right: 42px;
  width: 170px;
  height: 58px;
  border-radius: 15px;
  z-index: 4;
}

.bubble-primary { top: 82px; }
.bubble-secondary { top: 152px; right: 74px; width: 140px; opacity: 0.82; }

.review-bubble i {
  position: absolute;
  left: 54px;
  height: 7px;
  background: #c7d9ff;
  border-radius: 999px;
}

.review-bubble i:nth-child(1) { top: 15px; width: 84px; }
.review-bubble i:nth-child(2) { top: 28px; width: 102px; }
.review-bubble i:nth-child(3) { top: 41px; width: 64px; }

.review-bubble::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 22px;
  height: 22px;
  background: #eaf2ff;
  border: 2px solid #0052ff;
  border-radius: 50%;
}

.recipe-leaf {
  position: absolute;
  width: 118px;
  height: 154px;
  opacity: 0.34;
  z-index: 0;
}

.leaf-left {
  left: 46px;
  bottom: 18px;
  border-left: 3px solid #7aa9ff;
  border-radius: 50%;
  transform: rotate(-24deg);
}

.leaf-right {
  right: 24px;
  bottom: 14px;
  border-right: 3px solid #7aa9ff;
  border-radius: 50%;
  transform: rotate(28deg);
}

.recipe-bubbles i {
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 82, 255, 0.15);
}

.recipe-bubbles i:nth-child(1) { right: 36px; top: 34px; width: 38px; height: 38px; }
.recipe-bubbles i:nth-child(2) { left: 42px; bottom: 38px; width: 24px; height: 24px; }
.recipe-bubbles i:nth-child(3) { right: 224px; bottom: 32px; width: 18px; height: 18px; }

.project-detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.project-detail-metrics div {
  min-height: 104px;
  padding: 18px;
  background:
    radial-gradient(circle at 86% 18%, rgba(0, 82, 255, 0.09), transparent 34%),
    rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(9, 43, 117, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-detail-metrics div:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 82, 255, 0.38);
  box-shadow: 0 18px 40px rgba(0, 82, 255, 0.12);
}

.project-detail-metrics strong {
  display: block;
  color: var(--ink);
  font-size: clamp(28px, 3.3vw, 52px);
  line-height: 1;
}

.project-detail-metrics span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

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

.detail-card,
.detail-section {
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(9, 43, 117, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.detail-card:hover,
.detail-section:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 82, 255, 0.38);
  box-shadow: 0 18px 44px rgba(0, 82, 255, 0.11);
}

.detail-card h4,
.detail-section h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.58;
}

.detail-section {
  margin-top: 0;
}

.project-board-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: 12px;
}

.workflow-panel {
  grid-row: span 2;
}

.project-steps,
.project-outcomes {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.project-steps li::marker {
  color: var(--blue);
  font-weight: 900;
}

.project-outcomes li::marker {
  color: var(--blue);
}

.signal-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.signal-map::before {
  content: "";
  position: absolute;
  inset: 50% 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 82, 255, 0.12), rgba(0, 82, 255, 0.44), rgba(0, 82, 255, 0.12));
}

.signal-map span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 8px;
  color: var(--blue-dark);
  background: #eff6ff;
  border: 1px solid #cfe0ff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.signal-map span:hover {
  transform: translateY(-3px);
  background: #ffffff;
  border-color: rgba(0, 82, 255, 0.46);
  box-shadow: 0 14px 28px rgba(0, 82, 255, 0.13);
}

.mini-bar-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 8px;
  height: 86px;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.7), rgba(255, 255, 255, 0.72));
  border: 1px solid #d9e7ff;
  border-radius: 10px;
}

.mini-bar-chart span {
  display: block;
  height: var(--bar);
  min-height: 18px;
  background: linear-gradient(180deg, #8fb7ff, var(--blue));
  border-radius: 7px 7px 3px 3px;
  box-shadow: 0 9px 18px rgba(0, 82, 255, 0.18);
  transform-origin: bottom;
  animation: barRise 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 180ms ease, filter 180ms ease;
}

.mini-bar-chart span:hover {
  transform: scaleY(1.08);
  filter: brightness(1.05);
}

.project-board-shell[data-project-theme="database"] .project-board-icon,
.project-board-shell[data-project-theme="database"] .mini-bar-chart span {
  background: linear-gradient(135deg, #0052ff, #5d8dff);
}

.project-board-shell[data-project-theme="recipe"] .project-board-icon,
.project-board-shell[data-project-theme="recipe"] .mini-bar-chart span {
  background: linear-gradient(135deg, #0052ff, #7ba7ff);
}

.project-board-shell[data-project-theme="stock"] .project-board-icon,
.project-board-shell[data-project-theme="stock"] .mini-bar-chart span {
  background: linear-gradient(135deg, #003bb8, #0052ff 52%, #76a8ff);
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(360px, 0.84fr) minmax(0, 1.16fr);
  gap: 28px;
  padding: 24px;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segmented-control button,
.skill-buttons button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--blue-dark);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.segmented-control button.is-active,
.skill-buttons button.is-active {
  color: #ffffff;
  background: var(--gradient-accent);
  box-shadow: 0 10px 24px rgba(0, 82, 255, 0.18);
}

.segmented-control button:hover,
.segmented-control button:focus-visible,
.skill-buttons button:hover,
.skill-buttons button:focus-visible {
  transform: translateY(-2px) scale(1.018);
  box-shadow: 0 10px 22px rgba(7, 88, 223, 0.12);
  outline: none;
}

.app-preview {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(7, 88, 223, 0.16), transparent 26%),
    linear-gradient(135deg, #ffffff, #eaf3ff);
  border: 1px solid var(--line);
}

.showcase-icon {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(9, 43, 117, 0.13);
}

.showcase-pet {
  position: absolute;
  left: clamp(82px, 18%, 132px);
  top: 70%;
  z-index: 2;
  width: clamp(122px, 22%, 156px);
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 18px rgba(7, 16, 68, 0.16));
  animation: fufuFloat 4.8s ease-in-out infinite;
}

.showcase-pet::selection {
  background: transparent;
}

.app-window {
  position: absolute;
  right: 24px;
  top: 58px;
  z-index: 3;
  width: 62%;
  min-height: 220px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--blue), #367cff);
  border-radius: 7px;
}

.app-window-header strong {
  font-size: 14px;
  line-height: 1.18;
}

.app-window-header span {
  flex: 0 0 auto;
  max-width: 44%;
  padding: 5px 8px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  text-align: center;
}

.app-window-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.app-window-list li {
  display: grid;
  gap: 3px;
  min-height: 44px;
  padding: 9px 10px;
  background: linear-gradient(90deg, var(--blue-soft), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(211, 226, 255, 0.86);
  border-radius: 7px;
}

.app-window-list strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.15;
}

.app-window-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.app-copy {
  align-self: center;
}

.app-positioning {
  margin: 14px 0;
  font-size: 18px;
}

.app-bullets {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.toolbox-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
  padding: 22px;
}

.toolbox-copy p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
}

.toolbox-loops {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.logoloop {
  position: relative;
  min-width: 0;
  overflow: hidden;
  --logoloop-gap: 32px;
  --logoloop-logoHeight: 28px;
  --logoloop-fadeColorAuto: #ffffff;
}

.logoloop--scale-hover {
  padding-top: calc(var(--logoloop-logoHeight) * 0.13);
  padding-bottom: calc(var(--logoloop-logoHeight) * 0.13);
}

.logoloop__track {
  position: relative;
  z-index: 0;
  display: flex;
  width: max-content;
  will-change: transform;
  user-select: none;
}

.logoloop__list {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.logoloop__item {
  flex: 0 0 auto;
  margin-right: var(--logoloop-gap);
  font-size: var(--logoloop-logoHeight);
  line-height: 1;
}

.logoloop__item:last-child {
  margin-right: var(--logoloop-gap);
}

.tool-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 6px 13px 6px 7px;
  color: var(--ink);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    var(--gradient-accent) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms ease;
}

.tool-logo b {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  color: #ffffff;
  background: var(--gradient-accent);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.tool-logo span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.logoloop--scale-hover .logoloop__item:hover .tool-logo,
.logoloop--scale-hover .logoloop__item:focus-within .tool-logo {
  transform: scale(1.08);
  box-shadow: 0 16px 34px rgba(0, 82, 255, 0.16);
}

.logoloop--fade::before,
.logoloop--fade::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: clamp(34px, 12%, 130px);
  pointer-events: none;
}

.logoloop--fade::before {
  left: 0;
  background: linear-gradient(to right, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(255, 255, 255, 0) 100%);
}

.logoloop--fade::after {
  right: 0;
  background: linear-gradient(to left, var(--logoloop-fadeColor, var(--logoloop-fadeColorAuto)) 0%, rgba(255, 255, 255, 0) 100%);
}

.logoloop--static {
  overflow: visible;
}

.logoloop--static .logoloop__track,
.logoloop--static .logoloop__list {
  flex-wrap: wrap;
  width: auto;
  transform: none !important;
}

.logoloop--static .logoloop__item {
  margin-bottom: 10px;
}

.skills-workspace {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
}

.skill-buttons {
  display: grid;
  gap: 10px;
}

.skill-buttons button {
  justify-content: flex-start;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.skill-detail {
  padding: 26px;
}

.skill-detail p {
  max-width: 780px;
  margin: 12px 0 20px;
  font-size: 18px;
}

.skill-meter {
  height: 12px;
  overflow: hidden;
  background: var(--blue-soft);
  border-radius: 999px;
}

.skill-meter span {
  display: block;
  width: 78%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #7cb2ff);
  border-radius: inherit;
  transition: width 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.95fr) minmax(320px, 0.75fr);
  gap: 20px;
  padding-bottom: 34px;
}

.experience-card,
.education-card,
.contact-card {
  padding: 22px;
}

.experience-card h2,
.contact-card h2 {
  font-size: 24px;
}

.company {
  color: var(--blue);
  font-weight: 760;
}

.experience-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.education-card {
  display: grid;
  gap: 14px;
}

.education-row {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.education-link {
  margin: -6px;
  padding: 6px 32px 6px 6px;
  color: inherit;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.education-link::after {
  content: "↗";
  position: absolute;
  right: 10px;
  top: 50%;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
  opacity: 0;
  transform: translate(-4px, -50%);
  transition: opacity 180ms ease, transform 180ms ease;
}

.education-link:hover,
.education-link:focus-visible {
  background: rgba(232, 241, 255, 0.76);
  border-color: var(--line);
  box-shadow: 0 12px 26px rgba(7, 88, 223, 0.1);
  transform: translateX(4px) scale(1.012);
  outline: none;
}

.education-link:hover::after,
.education-link:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.school-logo {
  display: grid;
  place-items: center;
  width: 50px;
  height: 42px;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 900;
}

.school-logo.bu { background: #cc0000; }
.school-logo.uc { background: #123f8c; }
.school-logo.google { color: var(--blue); background: #ffffff; border: 1px solid var(--line); }

.education-row p {
  margin: 4px 0 0;
  font-size: 13px;
}

.contact-card {
  display: grid;
  gap: 20px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f4f8ff 58%, #e8f1ff 100%);
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a:not(.button) {
  color: var(--ink);
  font-weight: 720;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(18px, 3vw, 44px);
  color: #ffffff;
  background: var(--ink);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

@keyframes badgePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.28);
    opacity: 0.72;
  }
}

@keyframes chartPulse {
  0%,
  100% {
    opacity: 0.78;
    filter: saturate(1);
  }

  50% {
    opacity: 1;
    filter: saturate(1.25);
  }
}

@keyframes contentSwap {
  0% {
    opacity: 0.78;
    transform: translateY(6px) scale(0.996);
  }

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

@keyframes barRise {
  0% {
    transform: scaleY(0.22);
    opacity: 0.45;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes auroraDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(8vw, 5vh, 0) scale(1.1);
  }

  100% {
    transform: translate3d(-4vw, 10vh, 0) scale(0.94);
  }
}

@keyframes fufuFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }

  50% {
    transform: translate(-50%, -50%) translateY(-7px);
  }
}

.reactbits-spotlight {
  position: relative;
  isolation: isolate;
}

.reactbits-spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.78), rgba(77, 124, 255, 0.16) 18%, transparent 38%),
    linear-gradient(135deg, rgba(0, 82, 255, 0.08), transparent 44%);
  mix-blend-mode: soft-light;
  transition: opacity 220ms ease;
}

.reactbits-spotlight:hover::after,
.reactbits-spotlight:focus-within::after {
  opacity: 1;
}

.reactbits-tilt {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --tilt-lift: 0px;
  --tilt-scale: 1;
  transform: translateY(var(--tilt-lift)) perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) scale(var(--tilt-scale)) !important;
  transform-style: preserve-3d;
  will-change: transform;
}

.reactbits-tilt:hover,
.reactbits-tilt:focus-within {
  --tilt-lift: -4px;
  --tilt-scale: 1.012;
}

.project-card.reactbits-tilt:hover,
.project-card.reactbits-tilt:focus-visible,
.trait-card.reactbits-tilt:hover,
.trait-card.reactbits-tilt:focus-visible {
  --tilt-lift: -5px;
  --tilt-scale: 1.018;
}

.project-card.reactbits-tilt.is-active {
  --tilt-lift: -8px;
  --tilt-scale: 1.025;
  transform: translateY(-8px) perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) scale(1.025) !important;
}

@media (max-width: 1180px) {
  .hero-panel,
  .landscape-board,
  .project-board-lower,
  .app-showcase,
  .toolbox-panel,
  .bottom-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media {
    min-height: 500px;
  }

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

  .trait-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .site-header {
    min-height: 66px;
  }

  .brand {
    font-size: 16px;
  }

  .nav-toggle {
    display: inline-grid;
    gap: 4px;
    place-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
  }

  .nav-toggle span:not(.sr-only) {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  .site-nav {
    position: fixed;
    inset: 66px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 86px);
    overflow: auto;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    justify-content: flex-start;
    min-height: 44px;
  }

  .site-nav .resume-link {
    justify-content: center;
    margin-left: 0;
  }

  .language-switch {
    justify-content: center;
  }

  .hero-panel {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: clamp(48px, 13vw, 72px);
  }

  .hero-media {
    min-height: 470px;
  }

  .profile-card {
    width: min(100%, 310px);
  }

  .laptop-dashboard {
    width: 100%;
  }

  .trait-rail,
  .project-cards,
  .toolbox-panel,
  .skills-workspace {
    grid-template-columns: 1fr;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .section-shell {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .skill-pills li {
    font-size: 12px;
  }

  .hero-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: auto;
  }

  .profile-card {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
  }

  .laptop-dashboard {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 280px;
    border-width: 8px;
    border-bottom-width: 18px;
  }

  .metric-strip,
  .chart-grid,
  .about-card,
  .project-detail-metrics,
  .project-detail-grid,
  .project-board-hero,
  .signal-map {
    grid-template-columns: 1fr;
  }

  .project-visual-scene {
    min-height: 220px;
  }

  .project-card.is-active {
    transform: translateY(-5px) scale(1.018);
  }

  .project-card.reactbits-tilt.is-active {
    --tilt-lift: -5px;
    --tilt-scale: 1.018;
    transform: translateY(-5px) perspective(1100px) rotateX(var(--tilt-y)) rotateY(var(--tilt-x)) scale(1.018) !important;
  }

  .app-preview {
    min-height: 300px;
  }

  .showcase-pet {
    left: clamp(64px, 20%, 94px);
    top: 72%;
    width: clamp(104px, 34%, 130px);
  }

  .app-window {
    width: 72%;
    right: 14px;
  }

  .toolbox-panel {
    padding: 18px 14px;
  }

  .tool-logo {
    min-height: 40px;
    padding-right: 11px;
  }

  .tool-logo span {
    font-size: 13px;
  }

  .segmented-control {
    width: 100%;
  }

  .segmented-control button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    white-space: normal;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .splash-cursor-canvas {
    display: none;
  }

  .aurora-backdrop span {
    animation: none !important;
  }

  .reactbits-tilt {
    transform: none !important;
  }

  .logoloop__track {
    transform: translate3d(0, 0, 0) !important;
  }

  .tool-logo {
    transition: none !important;
  }
}
