@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  color-scheme: dark;
  --bg: #050506;
  --surface: #0d0e13;
  --surface-2: #141620;
  --border: rgb(255 255 255 / 0.13);
  --border-strong: rgb(255 255 255 / 0.22);
  --text: #f5f7fb;
  --muted: #a7adbb;
  --soft: #737a8b;
  --teal: #35d0c4;
  --blue: #76a8ff;
  --gold: #f0c66d;
  --rose: #e787bc;
  --green: #8ce6aa;
  --shadow: 0 24px 90px rgb(0 0 0 / 0.42);
  --radius: 8px;
  --nav-progress: 0;
  --scroll-cue-progress: 0;
  --header-height: calc(5.15rem - (1.4rem * var(--nav-progress)));
  --nav-font-size: calc(1rem - (0.12rem * var(--nav-progress)));
  --nav-padding-y: calc(0.88rem - (0.18rem * var(--nav-progress)));
  --nav-padding-x: calc(1.12rem - (0.22rem * var(--nav-progress)));
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --border: rgb(15 23 42 / 0.13);
  --border-strong: rgb(15 23 42 / 0.22);
  --text: #111827;
  --muted: #4b5563;
  --soft: #6b7280;
  --teal: #0f8f87;
  --blue: #2563eb;
  --gold: #9a6a05;
  --rose: #b83280;
  --green: #16813a;
  --shadow: 0 24px 70px rgb(15 23 42 / 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: linear-gradient(180deg, var(--bg), #09090d 48%, #060607);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

img,
svg {
  display: block;
}

mark {
  background: transparent;
  color: var(--teal);
  font-weight: 700;
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

::selection {
  background: var(--teal);
  color: #041010;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #101116;
}

::-webkit-scrollbar-thumb {
  background: #3f4452;
  border-radius: 999px;
}

.site-header {
  height: var(--header-height);
  left: 0;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
}

.header-glass {
  background: rgb(5 5 6 / calc(0.24 + (0.46 * var(--nav-progress))));
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 10px 26px rgb(0 0 0 / 0.18);
  height: var(--header-height);
  inset: 0;
  position: absolute;
  backdrop-filter: blur(14px);
}

.top-nav {
  align-items: center;
  display: flex;
  gap: calc(0.46rem - (0.16rem * var(--nav-progress)));
  height: var(--header-height);
  justify-content: center;
  margin: 0 auto;
  max-width: 680px;
  padding: 0 0.75rem;
  pointer-events: auto;
  position: relative;
}

.theme-toggle {
  align-items: center;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  height: 2.85rem;
  justify-content: center;
  pointer-events: auto;
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 2.85rem;
}

.mobile-menu-toggle,
.mobile-nav-backdrop,
.mobile-nav-panel {
  display: none;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgb(255 255 255 / 0.14);
  border-color: var(--border-strong);
  transform: translateY(-50%) scale(1.05);
}

.theme-toggle::before,
.theme-toggle::after {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  visibility: hidden;
  z-index: 8;
}

.theme-toggle::before {
  border-bottom: 0.45rem solid rgb(18 19 26 / 0.96);
  border-left: 0.45rem solid transparent;
  border-right: 0.45rem solid transparent;
  content: "";
  top: calc(100% + 0.24rem);
  transform: translate(-0.94rem, -0.25rem);
}

.theme-toggle::after {
  background: rgb(18 19 26 / 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.34);
  color: #f5f7fb;
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  padding: 0.56rem 0.72rem;
  text-align: center;
  top: calc(100% + 0.68rem);
  transform: translateY(-0.25rem);
  white-space: nowrap;
}

.theme-toggle:hover::before,
.theme-toggle:hover::after,
.theme-toggle:focus-visible::before,
.theme-toggle:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.theme-toggle:hover::before,
.theme-toggle:focus-visible::before {
  transform: translate(-0.94rem, 0);
}

.theme-icon {
  fill: none;
  height: 1.25rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.25rem;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: block;
}

.nav-pill {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: var(--nav-font-size);
  font-weight: 600;
  line-height: 1;
  padding: var(--nav-padding-y) var(--nav-padding-x);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.nav-pill:hover,
.nav-pill.active {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 0 1.25rem;
}

.section-anchor {
  scroll-margin-top: 6rem;
}

.hero {
  align-items: center;
  background:
    radial-gradient(ellipse 78rem 34rem at 50% -8%, rgb(112 56 178 / 0.46), transparent 70%),
    radial-gradient(ellipse 72rem 42rem at 50% 28%, rgb(78 43 118 / 0.42), transparent 68%),
    radial-gradient(ellipse 42rem 28rem at 18% 12%, rgb(119 57 102 / 0.22), transparent 72%),
    linear-gradient(180deg, #12071f 0%, #050506 34%, #050506 74%, #060607 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100vh;
  overflow: hidden;
  padding: 2rem 1.25rem 7rem;
  position: relative;
  text-align: center;
  width: 100vw;
}

.hero::before {
  background:
    linear-gradient(90deg, rgb(255 255 255 / 0.018) 1px, transparent 1px),
    linear-gradient(180deg, rgb(255 255 255 / 0.016) 1px, transparent 1px);
  background-size: 4.5rem 4.5rem;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.42), transparent 76%);
  pointer-events: none;
  position: absolute;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-image-shell {
  background: #080809;
  border: 1px solid rgb(255 255 255 / 0.08);
  border-radius: 999px;
  box-shadow: 0 0 0 14px rgb(35 16 39 / 0.74), var(--shadow);
  height: 136px;
  overflow: hidden;
  width: 136px;
}

.hero-image {
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  width: 100%;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 1.6rem 0 0;
}

.hero-title span {
  font-size: clamp(2.1rem, 5.8vw, 3.7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.hero-title strong {
  color: var(--muted);
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.55;
  margin: 0.9rem auto 0;
  max-width: 760px;
  text-decoration: underline;
  text-decoration-color: rgb(53 208 196 / 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

.social-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.7rem;
  z-index: 2;
}

.social-icon {
  align-items: center;
  background: #050506;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: rgb(255 255 255 / 0.84);
  display: inline-flex;
  height: 3.35rem;
  justify-content: center;
  position: relative;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  width: 3.35rem;
}

.social-icon:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-2px) scale(1.08);
}

.social-icon svg {
  fill: currentColor;
  height: 1.25rem;
  width: 1.25rem;
}

.social-icon::before,
.social-icon::after {
  left: 50%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translate(-50%, 0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  visibility: hidden;
  z-index: 8;
}

.social-icon::before {
  border-left: 0.45rem solid transparent;
  border-right: 0.45rem solid transparent;
  border-top: 0.45rem solid rgb(18 19 26 / 0.96);
  bottom: calc(100% + 0.25rem);
  content: "";
}

.social-icon::after {
  background: rgb(18 19 26 / 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  bottom: calc(100% + 0.7rem);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.34);
  color: var(--text);
  content: attr(data-tooltip);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.56rem 0.72rem;
  text-align: center;
  width: max-content;
}

.scroll-cue {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 999px;
  bottom: 4.5rem;
  color: rgb(255 255 255 / 0.72);
  display: inline-flex;
  height: 2rem;
  justify-content: center;
  left: 50%;
  opacity: calc(1 - var(--scroll-cue-progress));
  position: absolute;
  transform: translateX(-50%);
  transition: opacity 0.35s ease;
  width: 2rem;
  z-index: 2;
  animation: cue-bounce 1.45s ease-in-out infinite;
}

.scroll-cue svg {
  fill: none;
  height: 1.05rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 1.05rem;
}

body.has-scrolled .scroll-cue {
  pointer-events: none;
}

@keyframes cue-bounce {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 0.34rem;
  }
}

.social-icon:hover::before,
.social-icon:hover::after,
.social-icon:focus-visible::before,
.social-icon:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
  visibility: visible;
}

.home-hover-zone {
  align-items: flex-end;
  bottom: 0;
  display: flex;
  height: 25%;
  justify-content: center;
  left: 0;
  padding: 0 1rem 7.05rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 1;
}

.home-hover-zone span {
  background: rgb(18 19 26 / 0.88);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.28);
  color: #f5f7fb;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
  max-width: min(28rem, calc(100vw - 2rem));
  opacity: 0;
  padding: 0.58rem 0.82rem;
  text-align: center;
  transform: translateY(0.28rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body.home-lower-hover .home-hover-zone span {
  opacity: 1;
  transform: translateY(0);
}

body.has-scrolled .home-hover-zone {
  opacity: 0;
  pointer-events: none;
}

.section-divider {
  background: rgb(255 255 255 / 0.2);
  border-radius: 999px;
  height: 4rem;
  margin: 0 auto 7rem;
  width: 2px;
}

.about,
.skills,
.projects,
.experience {
  padding: 0 0 8rem;
}

.section-kicker {
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin: 0 0 2rem;
  text-align: center;
  text-transform: uppercase;
}

.section-title {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.7;
  margin: -1.15rem auto 2.6rem;
  max-width: 760px;
  text-align: center;
}

.about-grid {
  align-items: center;
  display: grid;
  gap: 2.8rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  margin: 0 auto;
  max-width: 940px;
}

.about-copy {
  color: rgb(255 255 255 / 0.84);
  font-size: 1.08rem;
  line-height: 1.85;
}

.about-copy p {
  margin: 0 0 1.15rem;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-photo {
  justify-self: center;
}

.about-photo img {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  filter: saturate(0.95) contrast(1.02);
  height: auto;
  max-width: 260px;
  object-fit: cover;
  width: 100%;
}

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

.tool-card {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  min-height: 255px;
  padding: 1.3rem;
  position: relative;
  text-align: left;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}

.tool-card:hover,
.tool-card.skill-active {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.11), rgb(255 255 255 / 0.055));
  border-color: rgb(53 208 196 / 0.48);
  transform: translateY(-4px);
}

.skill-logo-stage {
  --motion-color: var(--teal);
  align-items: center;
  background: rgb(255 255 255 / 0.96);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.24);
  display: flex;
  height: 62px;
  justify-content: center;
  margin-bottom: 1.55rem;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
  width: 62px;
}

.skill-logo-stage::after {
  background: linear-gradient(110deg, transparent 18%, rgb(255 255 255 / 0.62) 48%, transparent 72%);
  content: "";
  inset: -30% -90%;
  opacity: 0;
  position: absolute;
  transform: translateX(-55%) rotate(12deg);
  transition: opacity 0.18s ease;
}

.skill-power-apps {
  --motion-color: #6c63ff;
}

.skill-copilot {
  --motion-color: #28c8b9;
}

.skill-automate {
  --motion-color: #1c86ff;
}

.skill-dataverse {
  --motion-color: #2f9cf4;
}

.skill-power-bi {
  --motion-color: #e5ac18;
}

.skill-governance {
  --motion-color: #7ad7ff;
}

.skill-logo {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  height: 54px;
  margin: 0;
  object-fit: contain;
  padding: 0.5rem;
  position: relative;
  z-index: 1;
  width: 54px;
}

.skill-motion-icon {
  align-items: center;
  color: var(--motion-color);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  position: absolute;
  transform: translateY(0.55rem) scale(0.74);
  z-index: 2;
}

.skill-motion-icon svg {
  fill: none;
  height: 38px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 38px;
}

.tool-card:hover .skill-logo-stage,
.tool-card:focus-visible .skill-logo-stage {
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.28), 0 0 0 1px rgb(255 255 255 / 0.5);
  transform: translateY(-2px) scale(1.03);
}

.tool-card:hover .skill-logo-stage::after,
.tool-card:focus-visible .skill-logo-stage::after {
  animation: skill-sheen 4.2s ease both;
  opacity: 1;
}

.tool-card:hover .skill-logo,
.tool-card:focus-visible .skill-logo {
  animation: skill-logo-cycle 4.2s ease both;
}

.tool-card:hover .motion-one,
.tool-card:focus-visible .motion-one {
  animation: skill-motion-one 4.2s ease both;
}

.tool-card:hover .motion-two,
.tool-card:focus-visible .motion-two {
  animation: skill-motion-two 4.2s ease both;
}

.tool-card:hover .motion-three,
.tool-card:focus-visible .motion-three {
  animation: skill-motion-three 4.2s ease both;
}

@keyframes skill-logo-cycle {
  0%,
  14%,
  90%,
  100% {
    filter: blur(0);
    opacity: 1;
    transform: scale(1);
  }

  24%,
  78% {
    filter: blur(2px);
    opacity: 0;
    transform: scale(0.78) rotate(-6deg);
  }
}

@keyframes skill-motion-one {
  0%,
  15%,
  43%,
  100% {
    opacity: 0;
    transform: translate(-0.5rem, 0.5rem) scale(0.7) rotate(-8deg);
  }

  23%,
  35% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes skill-motion-two {
  0%,
  39%,
  67%,
  100% {
    opacity: 0;
    transform: translate(0.55rem, 0.2rem) scale(0.72) rotate(8deg);
  }

  48%,
  60% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes skill-motion-three {
  0%,
  62%,
  88%,
  100% {
    opacity: 0;
    transform: translateY(-0.45rem) scale(0.72) rotate(-4deg);
  }

  72%,
  81% {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
}

@keyframes skill-sheen {
  0%,
  12% {
    transform: translateX(-55%) rotate(12deg);
  }

  55% {
    transform: translateX(40%) rotate(12deg);
  }

  100% {
    transform: translateX(70%) rotate(12deg);
  }
}

.tool-card h3 {
  font-size: 1.22rem;
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.tool-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0;
}

.project-stack {
  display: grid;
  gap: 1.25rem;
  margin: 0 auto;
  max-width: 1120px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-banner {
  align-items: center;
  background: linear-gradient(90deg, rgb(53 208 196 / 0.16), rgb(118 168 255 / 0.12));
  border: 1px solid rgb(53 208 196 / 0.34);
  border-radius: var(--radius);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: -0.8rem auto 1.25rem;
  max-width: 1120px;
  padding: 1rem;
}

.filter-banner[hidden] {
  display: none;
}

.filter-banner span {
  color: var(--muted);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-banner strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}

.filter-banner button {
  background: var(--text);
  border: 0;
  border-radius: 999px;
  color: #06070a;
  cursor: pointer;
  font-weight: 800;
  min-height: 3rem;
  padding: 0 1.2rem;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.filter-banner button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.project-card {
  background: #08090c;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: default;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card[role="button"] {
  cursor: pointer;
}

.project-card:hover {
  border-color: rgb(53 208 196 / 0.5);
  transform: translateY(-3px);
}

.project-card.filtered-out {
  display: none;
}

.project-card:hover .project-visual {
  transform: none;
}

.project-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 1.45rem 1.35rem 1.35rem;
  position: relative;
  width: 100%;
  z-index: 2;
}

.project-copy h3 {
  font-size: clamp(1.18rem, 2vw, 1.48rem);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
}

.tech-list li {
  background: rgb(255 255 255 / 0.1);
  border-radius: 2px;
  color: rgb(255 255 255 / 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.48rem 0.62rem;
  text-transform: uppercase;
}

.project-copy p {
  color: rgb(255 255 255 / 0.72);
  font-size: 0.9rem;
  line-height: 1.62;
  margin: 0;
}

.project-copy .project-note {
  color: var(--gold);
  font-size: 0.82rem;
  margin-top: auto;
  padding-top: 1.25rem;
}

.project-visual {
  align-items: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), transparent);
  border-bottom: 1px solid var(--border);
  display: flex;
  height: auto;
  justify-content: center;
  min-height: 16rem;
  padding: 1rem;
  pointer-events: none;
  position: relative;
  right: auto;
  top: auto;
  transition: transform 0.24s ease;
  width: 100%;
  z-index: 1;
}

.project-visual-image {
  right: auto;
  width: 100%;
}

.project-shot {
  background: #fff;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.45);
  height: auto;
  object-fit: cover;
  width: min(100%, 32rem);
}

.project-visual-image .project-shot {
  aspect-ratio: 16 / 10;
}

.mock-window,
.chat-shell,
.pipeline-board,
.portal-shell {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.05)),
    var(--surface);
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgb(0 0 0 / 0.45);
  min-height: 13.5rem;
  padding: 1rem;
  width: min(100%, 26rem);
}

.window-bar {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.window-bar span {
  background: var(--soft);
  border-radius: 999px;
  height: 0.55rem;
  width: 0.55rem;
}

.window-bar span:first-child {
  background: var(--rose);
}

.window-bar span:nth-child(2) {
  background: var(--gold);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.onboarding-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 5rem minmax(0, 1fr);
}

.mini-sidebar {
  background:
    linear-gradient(var(--teal), var(--teal)) 1rem 1.15rem / 2.8rem 0.5rem no-repeat,
    linear-gradient(rgb(255 255 255 / 0.22), rgb(255 255 255 / 0.22)) 1rem 2.35rem / 3.4rem 0.5rem no-repeat,
    linear-gradient(rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.14)) 1rem 3.55rem / 2.9rem 0.5rem no-repeat,
    rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 6px;
}

.mini-content strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.9rem;
}

.progress-track {
  background: rgb(255 255 255 / 0.1);
  border-radius: 999px;
  height: 0.55rem;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.progress-track span {
  background: linear-gradient(90deg, var(--teal), var(--blue));
  display: block;
  height: 100%;
}

.data-row {
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 0.09);
  display: flex;
  justify-content: space-between;
  padding: 0.72rem 0;
}

.data-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.data-row b {
  color: var(--text);
  font-size: 0.8rem;
}

.chat-shell {
  display: grid;
  gap: 0.8rem;
}

.bot-chip {
  background: rgb(53 208 196 / 0.14);
  border: 1px solid rgb(53 208 196 / 0.38);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 800;
  justify-self: start;
  padding: 0.45rem 0.7rem;
}

.chat-bubble {
  border-radius: 8px;
  color: rgb(255 255 255 / 0.86);
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 82%;
  padding: 0.8rem;
}

.chat-bubble.user {
  background: rgb(118 168 255 / 0.18);
  justify-self: end;
}

.chat-bubble.bot {
  background: rgb(255 255 255 / 0.09);
  justify-self: start;
}

.summary-card {
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: auto 1fr;
  padding: 0.9rem;
}

.summary-card span {
  color: var(--soft);
  font-size: 0.76rem;
}

.summary-card strong {
  font-size: 0.78rem;
  text-align: right;
}

.pipeline-board {
  align-items: center;
  display: grid;
  gap: 0.75rem;
}

.pipeline-board div {
  align-items: center;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.11);
  border-radius: 8px;
  color: rgb(255 255 255 / 0.88);
  display: flex;
  font-size: 0.95rem;
  font-weight: 700;
  height: 2.8rem;
  justify-content: center;
}

.pipeline-board span {
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  display: block;
  height: 2px;
  justify-self: center;
  width: 74%;
}

.portal-shell {
  display: grid;
  gap: 0.85rem;
}

.portal-header,
.portal-card,
.portal-grid div {
  background: rgb(255 255 255 / 0.09);
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 6px;
}

.portal-header {
  height: 2.3rem;
}

.portal-card.wide {
  height: 4rem;
}

.portal-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(3, 1fr);
}

.portal-grid div {
  height: 4rem;
}

.lock-row {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.lock-row span {
  background: var(--green);
  border-radius: 999px;
  height: 0.75rem;
  width: 0.75rem;
}

.lock-row b {
  color: var(--green);
  font-size: 0.82rem;
}

.experience-list {
  display: grid;
  gap: 0.9rem;
  margin: 0 auto;
  max-width: 900px;
}

.experience-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: -0.8rem auto 2rem;
  max-width: 920px;
  min-height: 6.2rem;
  padding: 0.35rem 0.2rem 0;
  position: relative;
}

.experience-timeline::before {
  background: linear-gradient(90deg, rgb(118 168 255 / 0.14), rgb(53 208 196 / 0.65), rgb(168 85 247 / 0.52), rgb(118 168 255 / 0.14));
  content: "";
  height: 3px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 2.1rem;
}

.timeline-node {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 0.28rem;
  justify-items: center;
  min-height: 6rem;
  padding: 3.05rem 0.4rem 0;
  position: relative;
  text-align: center;
  transition: color 0.18s ease, transform 0.18s ease;
  z-index: 1;
}

.timeline-node::before {
  background: #151925;
  border: 3px solid var(--teal);
  border-radius: 999px;
  box-shadow: 0 0 0 5px #050506, 0 0 0 6px rgb(53 208 196 / 0.14), 0 0 24px rgb(53 208 196 / 0.22);
  content: "";
  height: 1rem;
  left: 50%;
  position: absolute;
  top: 1.55rem;
  transform: translateX(-50%);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, height 0.18s ease, top 0.18s ease, width 0.18s ease;
  width: 1rem;
}

.timeline-node::after {
  background: linear-gradient(180deg, rgb(53 208 196 / 0.16), transparent);
  border-radius: 999px;
  content: "";
  height: 1.8rem;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 2.35rem;
  transform: translateX(-50%);
  transition: opacity 0.18s ease, height 0.18s ease;
  width: 2px;
}

.timeline-node:hover,
.timeline-node:focus-visible,
.timeline-node.timeline-active,
.timeline-node.timeline-related {
  color: var(--teal);
  transform: translateY(-4px) scale(1.04);
}

.timeline-node:hover::before,
.timeline-node:focus-visible::before,
.timeline-node.timeline-active::before,
.timeline-node.timeline-related::before {
  background: var(--teal);
  border-color: #d8fff8;
  box-shadow: 0 0 0 6px #050506, 0 0 0 8px rgb(53 208 196 / 0.22), 0 0 32px rgb(53 208 196 / 0.48);
  height: 1.18rem;
  top: 1.46rem;
  width: 1.18rem;
}

.timeline-node:hover::after,
.timeline-node:focus-visible::after,
.timeline-node.timeline-active::after,
.timeline-node.timeline-related::after {
  height: 2.3rem;
  opacity: 1;
}

.timeline-node.timeline-active {
  color: var(--text);
  transform: translateY(-6px) scale(1.08);
}

.timeline-node.timeline-active span {
  color: var(--teal);
  font-weight: 900;
}

.timeline-node.timeline-active strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  text-shadow: 0 0 18px rgb(53 208 196 / 0.28);
}

.timeline-node.timeline-active::before {
  box-shadow: 0 0 0 5px #050506, 0 0 0 7px rgb(53 208 196 / 0.22), 0 0 30px rgb(53 208 196 / 0.5);
  height: 1.2rem;
  top: 1.45rem;
  width: 1.2rem;
}

.timeline-node.timeline-active::after {
  height: 2.4rem;
  opacity: 1;
}

.timeline-node span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.25;
  text-transform: uppercase;
}

.timeline-node strong {
  font-size: 0.82rem;
  line-height: 1.22;
  max-width: 9rem;
}

.experience-item {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.04));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 46px rgb(0 0 0 / 0.18);
  overflow: hidden;
}

.experience-item[open] {
  animation: selected-experience-border 1.7s ease;
  border-color: rgb(53 208 196 / 0.78);
  border-width: 2px;
  box-shadow: 0 22px 64px rgb(0 0 0 / 0.26), 0 0 0 1px rgb(53 208 196 / 0.14);
}

@keyframes selected-experience-border {
  0% {
    border-color: rgb(53 208 196 / 0.22);
    box-shadow: 0 16px 46px rgb(0 0 0 / 0.18), 0 0 0 0 rgb(53 208 196 / 0);
  }

  45% {
    border-color: rgb(53 208 196 / 0.95);
    box-shadow: 0 22px 64px rgb(0 0 0 / 0.26), 0 0 0 5px rgb(53 208 196 / 0.14), 0 0 36px rgb(53 208 196 / 0.2);
  }

  100% {
    border-color: rgb(53 208 196 / 0.78);
    box-shadow: 0 22px 64px rgb(0 0 0 / 0.26), 0 0 0 1px rgb(53 208 196 / 0.14);
  }
}

.experience-item summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 8.35rem minmax(0, 1fr) 2.25rem;
  padding: 1.25rem;
}

.experience-item summary:hover {
  background: rgb(255 255 255 / 0.035);
}

.experience-meta {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  width: 100%;
}

.experience-date {
  color: var(--teal);
  display: grid;
  font-size: 0.73rem;
  font-weight: 800;
  gap: 0.12rem;
  letter-spacing: 0.07em;
  line-height: 1.18;
  padding: 0;
  text-align: center;
  text-transform: uppercase;
}

.experience-date span {
  white-space: nowrap;
}

.experience-logo {
  align-items: center;
  background: #fff;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgb(0 0 0 / 0.22);
  display: flex;
  height: 3.2rem;
  justify-content: center;
  overflow: hidden;
  padding: 0.45rem;
  transition: height 0.22s ease, width 0.22s ease, transform 0.22s ease;
  width: 5.7rem;
}

.experience-logo.brand-fill {
  padding: 0.42rem;
}

.experience-logo.logo-wide {
  padding: 0.35rem 0.42rem;
  width: 6.8rem;
}

.experience-logo img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.experience-logo.brand-fill img {
  object-fit: contain;
}

.experience-item h3 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 0;
}

.experience-item p {
  color: var(--muted);
  font-weight: 700;
  margin: 0.18rem 0 0.35rem;
}

.experience-item em {
  color: rgb(255 255 255 / 0.74);
  display: block;
  font-size: 0.9rem;
  font-style: normal;
  line-height: 1.55;
}

.experience-item[open] .experience-logo {
  height: 5rem;
  transform: none;
  width: min(100%, 8.2rem);
}

.experience-item[open] .experience-logo.logo-wide {
  width: min(100%, 8.9rem);
}

.experience-item summary svg {
  align-self: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  height: 2.25rem;
  justify-self: end;
  padding: 0.5rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  width: 2.25rem;
}

.experience-item[open] summary svg {
  border-color: rgb(53 208 196 / 0.35);
  color: var(--teal);
  transform: rotate(180deg);
}

.experience-detail {
  border-top: 1px solid var(--border);
  padding: 1.05rem 1.45rem 1.3rem 10.85rem;
}

.experience-detail ul {
  color: rgb(255 255 255 / 0.78);
  display: grid;
  gap: 0.65rem;
  list-style: disc;
  margin: 0;
  padding-left: 1.2rem;
}

.experience-item li {
  font-size: 0.92rem;
  line-height: 1.6;
}

.experience-detail strong {
  color: var(--text);
  font-weight: 850;
}

.site-footer {
  color: var(--soft);
  padding: 0 1rem 2.4rem;
  text-align: center;
}

.site-footer .social-row {
  margin-top: 0;
}

.footer-credit {
  color: rgb(255 255 255 / 0.48);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 1.15rem 0 0;
}

.back-to-top-footer,
.back-to-top-float {
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  display: inline-flex;
  justify-content: center;
}

.back-to-top-footer {
  background: rgb(255 255 255 / 0.07);
  height: 2.7rem;
  margin-top: 1rem;
  transition: background 0.18s ease, transform 0.18s ease;
  width: 2.7rem;
}

.back-to-top-footer:hover {
  background: rgb(255 255 255 / 0.12);
  transform: translateY(-2px);
}

.back-to-top-footer svg,
.back-to-top-float svg {
  fill: none;
  height: 1.15rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
  width: 1.15rem;
}

.back-to-top-float {
  background: rgb(18 19 26 / 0.94);
  bottom: 1.2rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.38);
  cursor: pointer;
  gap: 0.55rem;
  opacity: 0;
  padding: 0.74rem 0.88rem 0.74rem 1rem;
  pointer-events: none;
  position: fixed;
  right: 1.2rem;
  transform: translateY(0.85rem);
  transition: opacity 0.24s ease, transform 0.24s ease, border-color 0.18s ease;
  z-index: 70;
}

.back-to-top-float span {
  font-size: 0.82rem;
  font-weight: 800;
}

body.at-page-end .back-to-top-float {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-backdrop {
  align-items: flex-start;
  background: rgb(0 0 0 / 0.72);
  inset: 0;
  overflow-y: auto;
  padding: 2rem 1rem;
  position: fixed;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.modal-backdrop:not([hidden]) {
  display: flex;
}

.project-modal-content[hidden] {
  display: none;
}

.project-modal {
  background:
    radial-gradient(circle at 0 0, rgb(53 208 196 / 0.12), transparent 23rem),
    linear-gradient(180deg, #11131a, #07080c);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 30px 120px rgb(0 0 0 / 0.6);
  margin: 0 auto;
  max-width: 1120px;
  overflow: hidden;
  position: relative;
  width: min(100%, 1120px);
}

.modal-close {
  align-items: center;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  height: 2.75rem;
  justify-content: center;
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.75rem;
  z-index: 3;
}

.modal-close:hover {
  background: rgb(255 255 255 / 0.14);
}

.modal-close svg,
.modal-back-to-top svg {
  fill: none;
  height: 1.2rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.2rem;
}

.modal-back-to-top {
  align-items: center;
  background: rgb(18 19 26 / 0.95);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  bottom: 1.15rem;
  box-shadow: 0 18px 48px rgb(0 0 0 / 0.42);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  gap: 0.55rem;
  opacity: 0;
  padding: 0.76rem 0.9rem 0.76rem 1rem;
  pointer-events: none;
  position: fixed;
  right: 1.15rem;
  transform: translateY(0.8rem);
  transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.18s ease, background 0.18s ease;
  z-index: 120;
}

.modal-back-to-top span {
  font-size: 0.82rem;
  font-weight: 800;
}

.modal-back-to-top:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(53 208 196 / 0.44);
}

body.modal-project-scrolled .modal-back-to-top {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-hero {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  padding: 4.4rem 1.4rem 1.4rem;
}

.modal-media-panel {
  align-content: start;
  display: grid;
  gap: 0.8rem;
}

.modal-feature-visual {
  align-items: center;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.035));
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgb(0 0 0 / 0.32);
  display: flex;
  justify-content: center;
  min-height: 23rem;
  padding: 1.4rem;
  width: 100%;
}

.modal-feature-visual .pipeline-board,
.modal-feature-visual .portal-shell {
  max-width: 28rem;
  width: 100%;
}

.modal-media-panel > img,
.modal-shot img {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 70px rgb(0 0 0 / 0.32);
  height: auto;
  width: 100%;
}

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

.modal-skill-icon {
  align-items: center;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 0.48rem;
  min-height: 3.1rem;
  padding: 0.48rem 0.55rem;
}

.modal-skill-icon img {
  background: rgb(255 255 255 / 0.96);
  border-radius: 7px;
  flex: 0 0 auto;
  height: 2rem;
  object-fit: contain;
  padding: 0.28rem;
  width: 2rem;
}

.modal-skill-icon span {
  color: rgb(255 255 255 / 0.82);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.modal-kicker {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  margin: 0 0 0.65rem;
  text-transform: uppercase;
}

.modal-hero h2 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  margin: 0 0 1rem;
}

.modal-hero p,
.modal-section p,
.modal-shot p {
  color: rgb(255 255 255 / 0.76);
  line-height: 1.72;
}

.modal-hero p {
  margin: 0;
}

.modal-section {
  border-top: 1px solid var(--border);
  padding: 1.6rem;
}

.modal-section h3,
.modal-shot h3 {
  font-size: 1.35rem;
  line-height: 1.2;
  margin: 0 0 0.7rem;
}

.modal-section p {
  margin: 0;
}

.modal-highlight-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.modal-highlight-grid article {
  background: rgb(255 255 255 / 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}

.modal-highlight-grid strong {
  display: block;
  margin-bottom: 0.35rem;
}

.modal-highlight-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.modal-demo {
  background: rgb(255 255 255 / 0.055);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin: 1rem 0 0;
  overflow: hidden;
}

.modal-demo img {
  background: #050506;
  display: block;
  height: auto;
  min-height: 12rem;
  object-fit: cover;
  width: 100%;
}

.modal-demo figcaption {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  padding: 0.8rem 1rem 1rem;
}

.modal-callout {
  background: linear-gradient(90deg, rgb(53 208 196 / 0.12), rgb(118 168 255 / 0.1));
  border: 1px solid rgb(53 208 196 / 0.26);
  border-radius: 8px;
  color: rgb(255 255 255 / 0.84);
  margin-top: 1rem;
  padding: 1rem;
}

.modal-callout strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.35rem;
}

.modal-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 1.6rem 1.6rem;
}

.modal-shot {
  background: rgb(255 255 255 / 0.055);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.modal-shot.wide {
  grid-column: 1 / -1;
}

.modal-shot div {
  padding: 1rem;
}

.modal-shot p {
  margin: 0;
}

.skill-proof-list {
  color: rgb(255 255 255 / 0.78);
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding-left: 1.2rem;
}

.skill-proof-list li {
  line-height: 1.65;
}

.skill-proof-list strong {
  color: var(--text);
}

html[data-theme="light"] body {
  background: linear-gradient(180deg, #f7f8fb, #eef2f7 46%, #f8fafc);
}

html[data-theme="light"] ::selection {
  background: rgb(15 143 135 / 0.24);
  color: #052f2c;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e8edf5;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #b6c0cf;
}

html[data-theme="light"] .header-glass {
  background: rgb(255 255 255 / calc(0.58 + (0.28 * var(--nav-progress))));
  border-bottom-color: rgb(15 23 42 / 0.1);
  box-shadow: 0 10px 28px rgb(15 23 42 / 0.08);
}

html[data-theme="light"] .nav-pill:hover,
html[data-theme="light"] .nav-pill.active,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .mobile-menu-toggle,
html[data-theme="light"] .mobile-theme-toggle {
  background: rgb(15 23 42 / 0.06);
  border-color: rgb(15 23 42 / 0.1);
}

html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .theme-toggle:focus-visible,
html[data-theme="light"] .mobile-menu-toggle:hover,
html[data-theme="light"] .mobile-menu-toggle:focus-visible,
html[data-theme="light"] .mobile-theme-toggle:hover,
html[data-theme="light"] .mobile-theme-toggle:focus-visible {
  background: rgb(15 23 42 / 0.1);
}

html[data-theme="light"] .mobile-nav-panel {
  background:
    radial-gradient(circle at 0 0, rgb(15 143 135 / 0.1), transparent 15rem),
    linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(246 248 252 / 0.98));
  border-right-color: rgb(15 23 42 / 0.12);
  box-shadow: 28px 0 70px rgb(15 23 42 / 0.18);
}

html[data-theme="light"] .mobile-nav-link:hover,
html[data-theme="light"] .mobile-nav-link:focus-visible,
html[data-theme="light"] .mobile-nav-link.active {
  background: rgb(15 23 42 / 0.06);
  border-color: rgb(15 23 42 / 0.12);
}

html[data-theme="light"] .hero {
  background:
    radial-gradient(ellipse 78rem 34rem at 50% -8%, rgb(120 72 190 / 0.32), transparent 70%),
    radial-gradient(ellipse 72rem 42rem at 50% 24%, rgb(103 63 166 / 0.2), transparent 68%),
    radial-gradient(ellipse 42rem 28rem at 18% 12%, rgb(216 93 155 / 0.12), transparent 72%),
    linear-gradient(180deg, #efe7ff 0%, #f7f2ff 36%, #f7f8fb 78%, #f7f8fb 100%);
}

html[data-theme="light"] .hero::before {
  background:
    linear-gradient(90deg, rgb(15 23 42 / 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgb(15 23 42 / 0.045) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.32), transparent 76%);
}

html[data-theme="light"] .hero-image-shell {
  background: #fff;
  border-color: rgb(15 23 42 / 0.12);
  box-shadow: 0 0 0 14px rgb(103 63 166 / 0.11), var(--shadow);
}

html[data-theme="light"] .social-icon,
html[data-theme="light"] .back-to-top-footer,
html[data-theme="light"] .back-to-top-float,
html[data-theme="light"] .modal-back-to-top {
  background: rgb(255 255 255 / 0.9);
  color: var(--text);
}

html[data-theme="light"] .social-icon:hover,
html[data-theme="light"] .back-to-top-footer:hover,
html[data-theme="light"] .back-to-top-float:hover,
html[data-theme="light"] .modal-back-to-top:hover {
  background: #fff;
  border-color: var(--border-strong);
}

html[data-theme="light"] .social-icon::after,
html[data-theme="light"] .theme-toggle::after,
html[data-theme="light"] .home-hover-zone span {
  background: rgb(17 24 39 / 0.96);
  color: #f8fafc;
}

html[data-theme="light"] .social-icon::before {
  border-top-color: rgb(17 24 39 / 0.96);
}

html[data-theme="light"] .theme-toggle::before {
  border-bottom-color: rgb(17 24 39 / 0.96);
}

html[data-theme="light"] .scroll-cue,
html[data-theme="light"] .section-divider {
  border-color: rgb(15 23 42 / 0.18);
  color: rgb(15 23 42 / 0.64);
}

html[data-theme="light"] .section-divider {
  background: rgb(15 23 42 / 0.18);
}

html[data-theme="light"] .about-copy,
html[data-theme="light"] .project-copy p,
html[data-theme="light"] .experience-item em,
html[data-theme="light"] .experience-detail ul,
html[data-theme="light"] .modal-hero p,
html[data-theme="light"] .modal-section p,
html[data-theme="light"] .modal-shot p,
html[data-theme="light"] .skill-proof-list {
  color: rgb(31 41 55 / 0.82);
}

html[data-theme="light"] .tool-card,
html[data-theme="light"] .experience-item,
html[data-theme="light"] .modal-shot,
html[data-theme="light"] .modal-demo,
html[data-theme="light"] .modal-highlight-grid article,
html[data-theme="light"] .modal-skill-icon {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(255 255 255 / 0.78));
  box-shadow: 0 18px 48px rgb(15 23 42 / 0.08);
}

html[data-theme="light"] .tool-card:hover,
html[data-theme="light"] .tool-card.skill-active {
  background: #fff;
}

html[data-theme="light"] .project-card {
  background: #fff;
  box-shadow: 0 20px 60px rgb(15 23 42 / 0.12);
}

html[data-theme="light"] .project-card .project-shot,
html[data-theme="light"] .project-card .mock-window,
html[data-theme="light"] .project-card .chat-shell,
html[data-theme="light"] .project-card .pipeline-board,
html[data-theme="light"] .project-card .portal-shell {
  box-shadow: none;
}

html[data-theme="light"] .project-visual {
  background: linear-gradient(180deg, rgb(15 23 42 / 0.035), transparent);
}

html[data-theme="light"] .tech-list li {
  background: rgb(15 23 42 / 0.08);
  color: rgb(31 41 55 / 0.86);
}

html[data-theme="light"] .project-copy .project-note {
  color: #8a5b00;
}

html[data-theme="light"] .mock-window,
html[data-theme="light"] .chat-shell,
html[data-theme="light"] .pipeline-board,
html[data-theme="light"] .portal-shell,
html[data-theme="light"] .modal-feature-visual {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(241 245 249 / 0.88)),
    var(--surface);
  box-shadow: 0 24px 60px rgb(15 23 42 / 0.12);
}

html[data-theme="light"] .pipeline-board div {
  background: #fff;
  border-color: rgb(15 23 42 / 0.14);
  color: #1f2937;
}

html[data-theme="light"] .portal-header,
html[data-theme="light"] .portal-card,
html[data-theme="light"] .portal-grid div {
  background: rgb(15 23 42 / 0.08);
  border-color: rgb(15 23 42 / 0.12);
}

html[data-theme="light"] .timeline-node {
  background: transparent;
}

html[data-theme="light"] .timeline-node:hover,
html[data-theme="light"] .timeline-node:focus-visible,
html[data-theme="light"] .timeline-node.timeline-active,
html[data-theme="light"] .timeline-node.timeline-related {
  color: var(--teal-strong);
}

html[data-theme="light"] .timeline-node::before {
  background: #fff;
  box-shadow: 0 0 0 5px #f8fafc, 0 0 0 6px rgb(15 143 135 / 0.16), 0 0 24px rgb(15 143 135 / 0.18);
}

html[data-theme="light"] .timeline-node:hover::before,
html[data-theme="light"] .timeline-node:focus-visible::before,
html[data-theme="light"] .timeline-node.timeline-active::before,
html[data-theme="light"] .timeline-node.timeline-related::before {
  background: var(--teal);
  border-color: #e8fffb;
  box-shadow: 0 0 0 6px #f8fafc, 0 0 0 8px rgb(15 143 135 / 0.2), 0 0 30px rgb(15 143 135 / 0.32);
}

html[data-theme="light"] .timeline-node.timeline-active strong {
  color: #0f172a;
  text-shadow: 0 0 16px rgb(15 143 135 / 0.2);
}

html[data-theme="light"] .timeline-node.timeline-active::before {
  box-shadow: 0 0 0 5px #f8fafc, 0 0 0 7px rgb(15 143 135 / 0.18), 0 0 28px rgb(15 143 135 / 0.3);
}

html[data-theme="light"] .filter-banner {
  background: linear-gradient(90deg, rgb(15 143 135 / 0.12), rgb(37 99 235 / 0.08));
  border-color: rgb(15 143 135 / 0.24);
}

html[data-theme="light"] .filter-banner button {
  background: var(--text);
  color: #fff;
}

html[data-theme="light"] .experience-item summary:hover {
  background: rgb(15 23 42 / 0.035);
}

html[data-theme="light"] .project-modal {
  background:
    radial-gradient(circle at 0 0, rgb(15 143 135 / 0.14), transparent 23rem),
    linear-gradient(180deg, #ffffff, #f7f9fc);
  box-shadow: 0 30px 120px rgb(15 23 42 / 0.26);
}

html[data-theme="light"] .modal-backdrop {
  background: rgb(15 23 42 / 0.42);
}

html[data-theme="light"] .modal-close {
  background: rgb(15 23 42 / 0.06);
}

html[data-theme="light"] .modal-close:hover {
  background: rgb(15 23 42 / 0.1);
}

html[data-theme="light"] .modal-media-panel > img,
html[data-theme="light"] .modal-shot img {
  box-shadow: 0 22px 62px rgb(15 23 42 / 0.12);
}

html[data-theme="light"] .modal-skill-icon span {
  color: rgb(31 41 55 / 0.84);
}

html[data-theme="light"] .modal-callout {
  background: linear-gradient(90deg, rgb(15 143 135 / 0.1), rgb(37 99 235 / 0.08));
  color: rgb(31 41 55 / 0.84);
}

.reveal {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.62s ease, transform 0.62s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.62s ease;
}

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

.tool-card.reveal:nth-child(2),
.project-card.reveal:nth-child(2),
.experience-item.reveal:nth-child(2) {
  transition-delay: 0.05s;
}

.tool-card.reveal:nth-child(3),
.project-card.reveal:nth-child(3),
.experience-item.reveal:nth-child(3) {
  transition-delay: 0.1s;
}

.tool-card.reveal:nth-child(4),
.project-card.reveal:nth-child(4),
.experience-item.reveal:nth-child(4) {
  transition-delay: 0.15s;
}

.tool-card.reveal:nth-child(5),
.project-card.reveal:nth-child(5),
.experience-item.reveal:nth-child(5) {
  transition-delay: 0.2s;
}

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

  .reveal,
  .project-card,
  .project-visual,
  .tool-card,
  .social-icon,
  .nav-pill,
  .theme-toggle,
  .home-hover-zone span,
  .experience-item summary svg,
  .modal-back-to-top,
  .skill-logo-stage {
    transition: none;
  }

  .tool-card:hover .skill-logo,
  .tool-card:focus-visible .skill-logo,
  .tool-card:hover .skill-logo-stage::after,
  .tool-card:focus-visible .skill-logo-stage::after,
  .tool-card:hover .skill-motion-icon,
  .tool-card:focus-visible .skill-motion-icon {
    animation: none;
  }
}

@media (max-width: 920px) {
  body {
    padding-top: 0;
  }

  .site-header,
  .header-glass {
    height: 4.45rem;
  }

  .top-nav,
  .site-header > .theme-toggle {
    display: none;
  }

  .mobile-menu-toggle {
    align-items: center;
    background: rgb(255 255 255 / 0.08);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    height: 2.75rem;
    justify-content: center;
    left: 0.85rem;
    pointer-events: auto;
    position: absolute;
    top: 0.82rem;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
    width: 2.75rem;
    z-index: 54;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus-visible {
    background: rgb(255 255 255 / 0.14);
    border-color: var(--border-strong);
    transform: scale(1.04);
  }

  .mobile-menu-toggle svg {
    fill: none;
    height: 1.25rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    width: 1.25rem;
  }

  .mobile-nav-backdrop {
    background: rgb(0 0 0 / 0.42);
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    z-index: 51;
  }

  .mobile-nav-panel {
    background:
      radial-gradient(circle at 0 0, rgb(53 208 196 / 0.14), transparent 15rem),
      linear-gradient(180deg, rgb(14 15 22 / 0.98), rgb(7 8 12 / 0.98));
    border-right: 1px solid var(--border-strong);
    box-shadow: 28px 0 70px rgb(0 0 0 / 0.42);
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    inset: 0 auto 0 0;
    max-width: 20rem;
    padding: 5.25rem 1rem 1rem;
    pointer-events: auto;
    position: fixed;
    transform: translateX(-104%);
    transition: transform 0.24s ease;
    width: min(82vw, 20rem);
    z-index: 53;
  }

  html.mobile-nav-open,
  body.mobile-nav-open {
    overflow: hidden;
  }

  html.mobile-nav-open .mobile-nav-backdrop,
  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1 !important;
    pointer-events: auto;
    visibility: visible !important;
  }

  html.mobile-nav-open .mobile-nav-panel,
  body.mobile-nav-open .mobile-nav-panel {
    transform: translateX(0) !important;
  }

  .mobile-nav-title {
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .mobile-nav-links {
    display: grid;
    gap: 0.45rem;
  }

  .mobile-nav-link {
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-size: 1rem;
    font-weight: 800;
    padding: 0.82rem 0.9rem;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:focus-visible,
  .mobile-nav-link.active {
    background: rgb(255 255 255 / 0.08);
    border-color: var(--border);
    color: var(--text);
    transform: translateX(2px);
  }

  .mobile-theme-toggle {
    align-items: center;
    background: rgb(255 255 255 / 0.08);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    font-weight: 850;
    justify-content: space-between;
    margin-top: auto;
    padding: 0.82rem 0.9rem;
    transition: background 0.18s ease, border-color 0.18s ease;
    width: 100%;
  }

  .mobile-theme-toggle:hover,
  .mobile-theme-toggle:focus-visible {
    background: rgb(255 255 255 / 0.13);
    border-color: var(--border-strong);
  }

  .home-hover-zone {
    display: none;
  }

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

  .about-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .project-stack {
    grid-template-columns: 1fr;
    max-width: 820px;
  }

  .experience-timeline {
    display: none;
  }

  .about-photo {
    order: -1;
  }

  .project-card {
    min-height: 0;
  }

  .project-copy {
    min-height: 0;
    padding: 1.35rem;
    width: 100%;
  }

  .project-visual {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.05), transparent);
    border-bottom: 1px solid var(--border);
    display: flex;
    height: auto;
    min-height: 15rem;
    padding: 1rem;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
  }

  .project-card:hover .project-visual {
    transform: none;
  }

  .project-shot {
    width: min(100%, 32rem);
  }

  .mock-window,
  .chat-shell,
  .pipeline-board,
  .portal-shell {
    min-height: 13rem;
    width: min(100%, 26rem);
  }

  .experience-item summary {
    grid-template-columns: minmax(0, 1fr) 2.25rem;
  }

  .experience-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .experience-logo {
    height: 3.5rem;
    width: 5.8rem;
  }

  .experience-item[open] .experience-logo {
    height: 4rem;
    width: 6.7rem;
  }

  .experience-copy {
    grid-column: 1;
    grid-row: 2;
  }

  .experience-item summary > svg {
    grid-column: 2;
    grid-row: 2;
  }

  .experience-detail {
    padding: 1rem 1rem 1.25rem;
  }

  .modal-backdrop {
    padding: 0;
  }

  .project-modal {
    border-radius: 0;
    min-height: 100vh;
  }

  .modal-hero,
  .modal-gallery,
  .modal-highlight-grid {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .modal-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .modal-back-to-top {
    bottom: 0.9rem;
    right: 0.9rem;
  }

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

  .filter-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-banner button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    padding-top: 0;
  }

  main {
    padding: 0 1rem;
  }

  .hero {
    background:
      radial-gradient(ellipse 48rem 24rem at 50% -7rem, rgb(112 56 178 / 0.48), transparent 72%),
      radial-gradient(ellipse 56rem 38rem at -14rem 4rem, rgb(60 44 90 / 0.78), transparent 70%),
      radial-gradient(ellipse 42rem 31rem at calc(100% - 8rem) -8rem, rgb(119 57 102 / 0.56), transparent 72%),
      linear-gradient(180deg, rgb(5 5 6 / 0), rgb(5 5 6 / 0.82) 88%, rgb(5 5 6));
  }

  html[data-theme="light"] .hero {
    background:
      radial-gradient(ellipse 48rem 24rem at 50% -7rem, rgb(120 72 190 / 0.28), transparent 72%),
      radial-gradient(ellipse 56rem 38rem at -14rem 4rem, rgb(103 63 166 / 0.2), transparent 70%),
      radial-gradient(ellipse 42rem 31rem at calc(100% - 8rem) -8rem, rgb(216 93 155 / 0.12), transparent 72%),
      linear-gradient(180deg, #efe7ff 0%, #f7f2ff 42%, #f7f8fb 88%, #f7f8fb);
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px),
      linear-gradient(180deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
    background-size: 4.5rem 4.5rem;
  }

  .hero-image-shell {
    height: 122px;
    width: 122px;
  }

  .hero-title span {
    font-size: 2.25rem;
  }

  .social-icon {
    height: 3.1rem;
    width: 3.1rem;
  }

  .modal-skill-icons {
    grid-template-columns: 1fr;
  }

  .modal-back-to-top span {
    display: none;
  }

  .section-divider {
    margin-bottom: 5rem;
  }

  .about,
  .skills,
  .projects,
  .experience {
    padding-bottom: 5.2rem;
  }

  .about-copy {
    font-size: 1rem;
  }
}
