html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --color-bg: #09111f;
  --color-bg-soft: #0d1728;
  --color-surface: rgba(13, 23, 40, 0.72);
  --color-surface-strong: #121d31;
  --color-surface-dark: #050b16;
  --color-primary: #7c8cff;
  --color-primary-dark: #6172ee;
  --color-secondary: #6ef2d4;
  --color-secondary-soft: #2cb8a2;
  --color-text: #edf3ff;
  --color-text-muted: #97a8c6;
  --color-border: rgba(151, 168, 198, 0.18);
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.26);
  --shadow-card: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container-max: 1160px;
  --font-body: "Manrope", sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 140, 255, 0.24), transparent 24%),
    radial-gradient(circle at 90% 18%, rgba(110, 242, 212, 0.14), transparent 20%),
    radial-gradient(circle at 55% 55%, rgba(75, 97, 255, 0.12), transparent 24%),
    var(--color-bg);
  min-width: 320px;
  position: relative;
  overflow-x: hidden;
}

main > section {
  scroll-margin-top: 6rem;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 168, 198, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 168, 198, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
  opacity: 0.45;
}

img {
  display: block;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.05em;
}

p {
  line-height: 1.75;
}


.section-padding {
  padding: 7rem 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 3rem;
}

.section-kicker,
.eyebrow,
.modal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1rem;
}

.section-heading h2,
.contact-card h2 {
  font-size: 2.25rem;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.glass-card,
.info-card,
.project-card,
.contact-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.container {
  max-width: var(--container-max);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 0.8s ease,
    transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@keyframes floatingOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -12px, 0);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

.navbar {
  padding: 1.1rem 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

.navbar.is-scrolled,
.navbar:has(.navbar-collapse.show) {
  background: rgba(7, 13, 24, 0.78);
  border-bottom: 1px solid rgba(151, 168, 198, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  color: var(--color-text) !important;
  transition: color 0.25s ease, transform 0.25s ease;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #8fb0ff !important;
  transform: translateY(-1px);
}

.brand-mark {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(124, 140, 255, 0.32);
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.2), rgba(110, 242, 212, 0.12));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-text {
  letter-spacing: -0.03em;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-inline: 0.85rem !important;
  color: var(--color-text-muted);
  font-weight: 700;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.nav-link::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 0 rgba(124, 140, 255, 0.34);
  opacity: 0;
  transform: scale(0) translateX(-0.35rem);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text) !important;
}

.nav-link.active {
  color: var(--color-text) !important;
  background: rgba(124, 140, 255, 0.08);
  border-radius: 999px;
}

.nav-link.active::before {
  opacity: 1;
  transform: scale(1) translateX(0);
  box-shadow: 0 0 0 0.35rem rgba(124, 140, 255, 0.12);
}

.nav-cta {
  min-width: 10.5rem;
}

.navbar-toggler {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
  background: rgba(124, 140, 255, 0.12);
}

.navbar-toggler-icon {
  width: 1.55rem;
  height: 1.15rem;
  background-image: none;
  position: relative;
  transition: transform 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  box-shadow: 0 0.48rem 0 var(--color-text);
  transition: transform 0.3s ease, top 0.3s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.navbar-toggler-icon::before {
  top: 0;
}

.navbar-toggler-icon::after {
  top: 0.96rem;
  box-shadow: none;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  top: 0.48rem;
  transform: rotate(45deg);
  box-shadow: 0 0 0 transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  top: 0.48rem;
  transform: rotate(-45deg);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(151, 168, 198, 0.12);
    border-radius: var(--radius-md);
    background: rgba(7, 13, 24, 0.92);
    transform-origin: top;
    transition: height 0.32s ease, opacity 0.28s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .navbar-collapse.collapsing {
    opacity: 0;
    transform: translateY(-0.6rem) scale(0.98);
  }

  .navbar-collapse.show {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  .navbar-nav {
    align-items: flex-start !important;
    gap: 0.4rem;
  }

  .nav-link {
    padding: 0.75rem 0.85rem !important;
  }

  .nav-cta {
    min-width: 0;
    width: auto;
    padding-inline: 1.35rem;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    padding: 0.85rem 0;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .brand-mark {
    width: 2.45rem;
    height: 2.45rem;
  }
}

.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 7.5rem;
  position: relative;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 10% auto auto 8%;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 140, 255, 0.14), transparent 68%);
  filter: blur(10px);
  animation: floatingOrb 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0.75rem;
  width: min(90vw, 1160px);
  margin: 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 140, 255, 0), rgba(124, 140, 255, 0.4), rgba(110, 242, 212, 0));
  opacity: 0.7;
  pointer-events: none;
}

.hero-stage {
  position: relative;
  width: 100%;
}

.hero-copy-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(151, 168, 198, 0.14);
  background:
    linear-gradient(180deg, rgba(16, 25, 42, 0.88), rgba(8, 14, 26, 0.94)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
}

.hero-copy-panel {
  min-height: 100%;
  padding: 2.2rem;
  transform: translate3d(calc(var(--hero-shift-x) * -0.18), calc(var(--hero-shift-y) * -0.18), 0);
  transition: transform 0.35s ease;
}

.hero-command-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 640px;
  padding: 2.6rem;
  background:
    radial-gradient(circle at 14% 16%, rgba(124, 140, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(16, 25, 42, 0.44), rgba(8, 14, 26, 0.18)),
    var(--color-surface);
  box-shadow: none;
  border: 0;
  border-radius: 0;
}

.hero-copy-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 140, 255, 0), rgba(124, 140, 255, 0.5), rgba(110, 242, 212, 0));
}

.hero-copy-stack {
  max-width: 44rem;
}

.hero-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(124, 140, 255, 0.2);
  background: rgba(124, 140, 255, 0.1);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status-text {
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.hero-title {
  font-size: clamp(4.5rem, 8vw, 6.4rem);
  line-height: 0.9;
  max-width: 8.8ch;
  margin-bottom: 1.5rem;
}

.hero-copy {
  max-width: 42ch;
  font-size: 1.12rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.hero-focus-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.4rem 0 2.2rem;
}

.hero-focus-item {
  min-height: 100%;
  padding: 1.2rem 1.2rem 1.35rem;
  border: 1px solid rgba(151, 168, 198, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    rgba(8, 14, 26, 0.28);
}

.hero-focus-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-focus-item strong {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 600;
}

.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel-label {
  color: var(--color-secondary);
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  width: fit-content;
  padding: 0.65rem 0.85rem 0.65rem 0.65rem;
  border: 1px solid rgba(151, 168, 198, 0.14);
  border-radius: 999px;
  background: rgba(10, 18, 32, 0.76);
  box-shadow: 0 14px 30px rgba(3, 8, 18, 0.28);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-indicator-line {
  position: relative;
  width: 2.6rem;
  height: 4.8rem;
  border: 1px solid rgba(151, 168, 198, 0.18);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(124, 140, 255, 0.14), rgba(110, 242, 212, 0.04)),
    rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.scroll-indicator-line::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.8rem;
  bottom: 0.8rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(110, 242, 212, 0.75), transparent);
  transform: translateX(-50%);
}

.scroll-indicator-dot {
  position: absolute;
  left: 50%;
  top: 0.8rem;
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--color-secondary);
  box-shadow: 0 0 18px rgba(110, 242, 212, 0.55);
  transform: translateX(-50%);
  animation: scrollDot 1.7s ease-in-out infinite;
}

.hero-scroll-indicator:hover {
  color: var(--color-text);
  border-color: rgba(124, 140, 255, 0.24);
}

.hero-aside-stack {
  display: grid;
  gap: 1.5rem;
  transform: translate3d(calc(var(--hero-shift-x) * 0.18), calc(var(--hero-shift-y) * 0.18), 0);
  transition: transform 0.35s ease;
}

.hero-media-stack {
  align-content: start;
}

.hero-portrait-stage {
  position: relative;
  padding-bottom: 6.2rem;
}

.hero-panel {
  padding: 1.35rem;
}

.hero-portrait-card {
  position: relative;
  min-height: 680px;
  padding: 0;
  isolation: isolate;
  overflow: visible;
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 18%, rgba(124, 140, 255, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(18, 29, 54, 0.94), rgba(11, 18, 34, 0.92));
}

.hero-portrait-card::before {
  content: "";
  position: absolute;
  inset: 2.2rem 1.5rem -2rem 1.5rem;
  border: 1px solid rgba(151, 168, 198, 0.14);
  border-radius: 32px;
  z-index: -1;
  opacity: 0.95;
}

.hero-panel-media {
  height: 100%;
  margin-bottom: 0;
  border-radius: inherit;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 3.5rem 2rem 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(124, 140, 255, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(20, 31, 59, 0.88), rgba(9, 16, 29, 0.24));
}

.hero-panel-media::before {
  content: "";
  position: absolute;
  inset: 2.4rem 2.4rem 0;
  border: 1px solid rgba(151, 168, 198, 0.12);
  border-radius: 30px;
  pointer-events: none;
}

.hero-panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 11, 22, 0.02), rgba(5, 11, 22, 0.26)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 32%);
  pointer-events: none;
}

.hero-photo {
  width: min(100%, 30rem);
  height: 100%;
  min-height: 620px;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(1.08);
  position: relative;
  z-index: 1;
}

.hero-panel-body {
  position: absolute;
  z-index: 2;
  left: 2rem;
  right: 2rem;
  bottom: 2rem;
  display: grid;
  gap: 0.55rem;
  padding: 1.2rem;
  border: 1px solid rgba(151, 168, 198, 0.16);
  border-radius: 22px;
  background: rgba(5, 11, 22, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-panel-body-floating {
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  gap: 1rem;
}

.hero-panel-body h2 {
  font-size: 2.15rem;
  line-height: 0.95;
  margin: 0;
}

.hero-panel-body p {
  margin: 0;
  color: var(--color-text-muted);
}

.hero-panel-body-compact {
  grid-template-columns: minmax(0, 1fr);
}

.hero-image-note {
  display: grid;
  gap: 0.5rem;
}

.hero-image-note p {
  font-size: 0.98rem;
}

.hero-image-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-image-stats span {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(151, 168, 198, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-mini-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.hero-mini-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--color-text);
}

.hero-mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--color-secondary);
}

.hero-section {
  padding-top: 7.5rem;
  padding-bottom: 0;
  min-height: auto;
  display: block;
  align-items: initial;
  overflow-x: clip;
}

.hero-section::before {
  display: none;
}

.hero-stage {
  min-height: min(64svh, 40rem);
  display: grid;
  align-content: center;
}

.hero-name-composition {
  position: relative;
  min-height: auto;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: visible;
}

.hero-type-layer {
  position: relative;
  width: min(100%, 72rem);
  z-index: 0;
  pointer-events: none;
  transform: translate3d(calc(var(--hero-shift-x) * -0.08), calc(var(--hero-shift-y) * -0.08), 0);
  transition: transform 0.35s ease;
}

.hero-role-back,
.hero-name-back {
  position: relative;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-role-back {
  right: auto;
  bottom: auto;
  z-index: 3;
  box-sizing: border-box;
  color: transparent;
  width: 100vw;
  margin-top: clamp(1rem, 2.6vw, 2.6rem);
  margin-right: 0;
  margin-left: calc((100vw - min(100%, 72rem)) / -2);
  padding-left: clamp(1rem, 3vw, 2.4rem);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6.3vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.9;
  text-align: left;
  text-shadow:
    0 0 1px rgba(232, 238, 255, 0.28),
    0 18px 55px rgba(5, 11, 22, 0.38);
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.8px rgba(232, 238, 255, 0.44);
}

.hero-name-back {
  right: auto;
  bottom: auto;
  display: grid;
  color: rgba(232, 238, 255, 0.28);
  width: 100%;
  font-size: clamp(5.4rem, 16.6vw, 18rem);
  font-weight: 800;
  line-height: 0.78;
  text-align: right;
  z-index: 1;
}

.hero-role-back span,
.hero-name-back span {
  display: block;
}

.hero-stage > .hero-scroll-indicator {
  position: static;
  justify-self: center;
  transform: none;
  margin-top: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-scroll-after {
  position: relative;
  left: auto;
  bottom: auto;
  z-index: 3;
  transform: none;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: 0.75rem auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.about-layout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
}

.about-photo-card {
  position: relative;
  display: grid;
  align-self: stretch;
  place-items: end center;
  min-height: 40rem;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

.about-photo {
  width: min(118%, 34rem);
  max-width: none;
  height: auto;
  max-height: none;
  min-height: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  filter: grayscale(1) contrast(1.08);
  transform: translateY(0.5rem);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0.72) 90%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 80%, rgba(0, 0, 0, 0.72) 90%, transparent 100%);
}

.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 0 0 clamp(1.6rem, 3vw, 2.6rem);
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(151, 168, 198, 0.22);
  border-radius: 0;
  box-shadow: none;
}

.info-card.profile-card::before,
.info-card.profile-card::after {
  display: none;
}

.info-card.profile-card:hover {
  transform: none;
  border-color: rgba(151, 168, 198, 0.22);
  box-shadow: none;
}

.skills-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
}

.skills-card .skills-grid {
  flex: 1;
  align-content: start;
}

.about-card:not(.about-photo-card),
.info-card,
.project-card,
.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-card-body,
.info-card,
.project-card,
.contact-card {
  padding: 1.7rem;
}

.info-card,
.project-card,
.contact-card,
.about-card:not(.about-photo-card) {
  position: relative;
  overflow: hidden;
}

.info-card::before,
.project-card::before,
.contact-card::before,
.about-card:not(.about-photo-card)::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 140, 255, 0), rgba(124, 140, 255, 0.55), rgba(110, 242, 212, 0));
  pointer-events: none;
}

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

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--color-border);
}

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

.skill-bar {
  display: grid;
  gap: 0.6rem;
}

.skill-bar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.skill-bar-track {
  position: relative;
  height: 0.72rem;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(151, 168, 198, 0.08);
}

.skill-bar-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(124, 140, 255, 0.95), rgba(110, 242, 212, 0.92));
  box-shadow: 0 0 18px rgba(124, 140, 255, 0.18);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--reveal-delay, 0ms) + 120ms);
}

.skill-bar.is-visible .skill-bar-fill {
  width: var(--skill-level);
}

.filter-group,
.tag-row,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.portfolio-toolbar {
  margin-bottom: 2rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.section-aside,
.about-intro,
.info-card p,
.contact-card p,
.project-card p {
  color: var(--color-text-muted);
}

.contact-card {
  padding: 2rem;
  background:
    radial-gradient(circle at top right, rgba(110, 242, 212, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(13, 23, 40, 0.82), rgba(8, 14, 26, 0.92));
}

.resume-card {
  height: 100%;
  padding: 1.8rem;
  background:
    linear-gradient(180deg, rgba(16, 25, 42, 0.88), rgba(8, 14, 26, 0.94)),
    var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.resume-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.resume-card-head h3,
.resume-card h3 {
  margin: 0;
  font-size: 1.7rem;
}

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

.resume-item,
.resume-list li {
  border: 1px solid rgba(151, 168, 198, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.resume-item {
  padding: 1rem;
}

.resume-item span {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.resume-item p {
  margin: 0;
  color: var(--color-text-muted);
}

.resume-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.resume-list li {
  padding: 1rem 1.1rem;
  color: var(--color-text);
}

.case-hero {
  padding-top: 10rem;
}

.case-hero h1 {
  max-width: 10ch;
  font-size: 5rem;
  line-height: 0.95;
  margin-bottom: 1.2rem;
}

.case-hero p {
  max-width: 62ch;
  color: var(--color-text-muted);
  font-size: 1.08rem;
}

.case-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.case-link-note {
  max-width: 52ch;
  margin: 0;
  color: var(--color-text-muted);
}

.case-back-link,
.case-next a {
  display: inline-flex;
  color: var(--color-text);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 2rem;
}

.case-back-link::before {
  content: "<";
  margin-right: 0.55rem;
  color: var(--color-secondary);
}

.case-meta-grid {
  display: grid;
  gap: 0.8rem;
}

.case-meta-grid article,
.case-section {
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.case-meta-grid article::after,
.case-section::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(124, 140, 255, 0.18), transparent 32%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.case-meta-grid article:hover::after,
.case-section:hover::after {
  opacity: 1;
}

.case-meta-grid article {
  padding: 1.1rem;
}

.case-meta-grid span {
  display: block;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.case-visual {
  position: relative;
  margin-top: 3rem;
  padding: 1.7rem;
  min-height: auto;
  border: 1px solid var(--color-border);
  border-radius: 32px;
  background:
    radial-gradient(circle at 24% 20%, rgba(110, 242, 212, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(16, 25, 42, 0.96), rgba(8, 14, 26, 0.96));
  overflow: hidden;
}

.case-visual-warm {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 194, 123, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(31, 22, 37, 0.96), rgba(8, 14, 26, 0.96));
}

.case-visual-stage {
  background:
    radial-gradient(circle at 26% 24%, rgba(142, 168, 255, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(14, 27, 51, 0.96), rgba(8, 14, 26, 0.96));
}

.case-visual span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.case-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  grid-template-rows: repeat(2, minmax(14rem, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.case-gallery-item {
  position: relative;
  min-height: 14rem;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(151, 168, 198, 0.12);
  overflow: hidden;
  margin: 0;
}

.case-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  display: block;
}

.case-gallery-item figcaption {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-shadow: 0 12px 28px rgba(0, 0, 0, 0.58);
}

.case-gallery-item.is-missing-image img {
  display: none;
}

.case-gallery-item.is-missing-image::before {
  content: "Afbeelding toevoegen";
  position: absolute;
  inset: 1rem;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(151, 168, 198, 0.28);
  border-radius: 18px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.case-gallery-item:first-child {
  grid-row: span 2;
}

.case-gallery-item:first-child,
.case-gallery-item:first-child img {
  min-height: 29rem;
}

.case-section {
  height: 100%;
  padding: 1.7rem;
}

.case-section h2 {
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
}

.case-section p,
.case-list {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.case-list {
  margin: 0;
  padding-left: 1.1rem;
}

.case-list li + li {
  margin-top: 0.65rem;
}

.case-next {
  margin-top: 2.5rem;
}

.project-card h3,
.info-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.8rem;
}

.project-card {
  --card-reveal-y: 0px;
  --card-reveal-scale: 1;
  --card-hover-y: 0px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  transform-style: preserve-3d;
  transform:
    perspective(1200px)
    translate3d(0, calc(var(--card-reveal-y) + var(--card-hover-y)), 0)
    scale(var(--card-reveal-scale))
    rotateX(var(--rotate-x, 0deg))
    rotateY(var(--rotate-y, 0deg));
  transition:
    opacity 0.82s ease,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card.reveal {
  --card-reveal-y: 46px;
  --card-reveal-scale: 0.985;
  transform:
    perspective(1200px)
    translate3d(0, calc(var(--card-reveal-y) + var(--card-hover-y)), 0)
    scale(var(--card-reveal-scale))
    rotateX(var(--rotate-x, 0deg))
    rotateY(var(--rotate-y, 0deg));
}

.project-card.reveal.is-visible {
  --card-reveal-y: 0px;
  --card-reveal-scale: 1;
}

.project-preview {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 220px;
  margin-bottom: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(151, 168, 198, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(5, 11, 22, 0.26);
  overflow: hidden;
}

.project-preview::before {
  content: "";
  position: absolute;
  inset: 2.5rem 1rem auto;
  height: 1px;
  background: rgba(151, 168, 198, 0.12);
}

.project-preview:has(.project-preview-image)::before {
  display: none;
}

.project-preview-dot {
  position: relative;
  z-index: 1;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: rgba(151, 168, 198, 0.44);
  display: inline-block;
}

.project-preview-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-preview-fallback {
  display: none;
}

.project-preview.is-missing-image .project-preview-image {
  display: none;
}

.project-preview.is-missing-image .project-preview-fallback {
  display: grid;
}

.project-preview strong {
  position: relative;
  z-index: 1;
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.project-preview-lines {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.project-preview-lines span {
  height: 0.5rem;
  border-radius: 999px;
  background: rgba(151, 168, 198, 0.18);
}

.project-preview-lines span:nth-child(2) {
  width: 72%;
}

.project-preview-lines span:nth-child(3) {
  width: 48%;
}

.project-card::after,
.info-card::after,
.contact-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 50%), rgba(124, 140, 255, 0.18), transparent 32%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.project-card:hover,
.info-card:hover {
  border-color: rgba(124, 140, 255, 0.3);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  --card-hover-y: -6px;
}

.info-card:hover {
  transform: translateY(-6px);
}

.project-card:hover::after,
.info-card:hover::after,
.contact-card:hover::after {
  opacity: 1;
}

.project-category {
  display: inline-flex;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-secondary);
}

.accent-sand {
  background:
    linear-gradient(180deg, rgba(24, 35, 59, 0.96), rgba(11, 18, 31, 0.96)),
    var(--color-surface);
}

.accent-coral {
  background:
    linear-gradient(180deg, rgba(28, 33, 63, 0.96), rgba(11, 18, 31, 0.96)),
    var(--color-surface);
}

.accent-olive {
  background:
    linear-gradient(180deg, rgba(15, 40, 47, 0.96), rgba(11, 18, 31, 0.96)),
    var(--color-surface);
}

.accent-sky {
  background:
    linear-gradient(180deg, rgba(15, 31, 55, 0.96), rgba(11, 18, 31, 0.96)),
    var(--color-surface);
}

.project-link {
  padding: 0;
  margin-top: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0);
  transition: transform 0.25s ease, letter-spacing 0.25s ease;
}

.project-link:hover {
  letter-spacing: 0.01em;
}

.project-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.project-card-actions .project-link {
  margin-top: 0;
}

.project-link-secondary {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.btn {
  position: relative;
  border-radius: 16px;
  padding: 0.95rem 1.45rem;
  font-weight: 700;
  border-width: 1px;
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.btn:hover {
  transform: translate3d(var(--magnetic-x, 0px), calc(var(--magnetic-y, 0px) - 2px), 0);
}

.btn::after,
.filter-chip::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 38%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn:hover::after,
.filter-chip:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #5ac8ff);
  border-color: rgba(124, 140, 255, 0.3);
  box-shadow: 0 18px 40px rgba(92, 112, 255, 0.24);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-outline-light {
  border-color: rgba(151, 168, 198, 0.16);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.02);
}

.filter-chip {
  position: relative;
  border: 1px solid rgba(151, 168, 198, 0.14);
  background: rgba(12, 20, 34, 0.72);
  color: var(--color-text-muted);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  font-weight: 700;
  transform: translate3d(var(--magnetic-x, 0px), var(--magnetic-y, 0px), 0);
  transition: all 0.25s ease;
  overflow: hidden;
}

.filter-chip.is-active,
.filter-chip:hover {
  background: rgba(124, 140, 255, 0.16);
  border-color: rgba(124, 140, 255, 0.34);
  color: var(--color-text);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
}

.tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(151, 168, 198, 0.1);
  color: var(--color-text-muted);
}

.tag-light {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.form-label {
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--color-text);
}

.form-control {
  border: 1px solid rgba(151, 168, 198, 0.14);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background: rgba(5, 11, 22, 0.48);
  color: var(--color-text);
}

.form-control:focus {
  border-color: rgba(124, 140, 255, 0.45);
  box-shadow: 0 0 0 0.25rem rgba(124, 140, 255, 0.14);
  background: rgba(5, 11, 22, 0.66);
  color: var(--color-text);
}

.form-note {
  color: var(--color-text-muted);
  min-height: 1.5rem;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.form-note[data-state="loading"] {
  color: rgba(110, 242, 212, 0.88);
}

.form-note[data-state="success"] {
  color: #7ce8b9;
}

.form-note[data-state="error"] {
  color: #ff9b9b;
}

.contact-form .form-control:invalid {
  border-color: rgba(255, 130, 130, 0.18);
}

.contact-form.was-validated .form-control:invalid {
  border-color: rgba(255, 130, 130, 0.72);
  box-shadow: 0 0 0 0.22rem rgba(255, 130, 130, 0.12);
}

.contact-form button[type="submit"][disabled] {
  opacity: 0.78;
  cursor: wait;
}

.contact-form button[type="submit"]::after {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 0.65rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.8);
}

.contact-form button[type="submit"][disabled]::after {
  opacity: 0.9;
  animation: form-spinner 0.7s linear infinite;
}

.contact-links a {
  font-weight: 700;
  color: var(--color-text);
}

@keyframes form-spinner {
  to {
    transform: rotate(1turn);
  }
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1rem;
  width: 1px;
  background: linear-gradient(rgba(124, 140, 255, 0), rgba(124, 140, 255, 0.4), rgba(110, 242, 212, 0));
}

.timeline-item {
  position: relative;
  margin-left: 2.5rem;
  padding: 1.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.7rem;
  left: -2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 6px rgba(124, 140, 255, 0.12);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.7rem;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--color-text-muted);
  border-top: 1px solid rgba(151, 168, 198, 0.08);
}

.footer-link {
  font-weight: 700;
  color: var(--color-text);
}

@media (max-width: 991.98px) {
  .section-padding {
    padding: 5.5rem 0;
  }

  .hero-section {
    min-height: auto;
    display: block;
    padding-top: 7.5rem;
    padding-bottom: 0;
  }

  .hero-section::before {
    display: none;
  }

  .hero-copy-panel,
  .hero-aside-stack {
    transform: none;
  }

  .hero-focus-row {
    grid-template-columns: 1fr;
  }

  .hero-scroll-indicator {
    bottom: 0.25rem;
  }

  .hero-scroll-after {
    bottom: auto;
  }

  .hero-command-panel {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-command-panel {
    min-height: auto;
  }

  .hero-stage {
    min-height: min(58svh, 34rem);
  }

  .hero-name-composition {
    overflow: visible;
  }

  .hero-role-back {
    width: 100vw;
    margin-top: clamp(0.75rem, 2.2vw, 1.6rem);
    margin-right: 0;
    margin-left: calc((100vw - min(100%, 72rem)) / -2);
    padding-left: clamp(1rem, 4vw, 2rem);
    font-size: clamp(2rem, 7.5vw, 4.8rem);
  }

  .hero-name-back {
    width: auto;
    font-size: clamp(4.8rem, 16.5vw, 9rem);
  }

  .hero-portrait-card {
    min-height: 520px;
  }

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

  .about-photo-card {
    min-height: 34rem;
    place-items: end center;
  }

  .about-photo {
    width: min(118vw, 34rem);
    max-width: none;
    height: auto;
    transform: none;
  }

  .skills-card {
    grid-column: auto;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 4rem 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 1rem;
  }

  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 5.75rem;
    padding-bottom: 0.85rem;
    display: grid;
    align-content: stretch;
  }

  .hero-stage {
    min-height: calc(100svh - 12.5rem);
    align-content: center;
  }

  .site-footer {
    text-align: center;
  }

  .about-layout-grid {
    gap: 1rem;
    min-width: 0;
  }

  .about-photo-card {
    order: 2;
    min-height: 23rem;
    margin-top: 0;
    overflow: hidden;
  }

  .profile-card {
    order: 1;
    position: relative;
    z-index: 2;
    display: flex;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
  }

  .info-card.profile-card::before {
    display: block;
  }

  .about-photo {
    width: min(94vw, 24rem);
    max-width: 100%;
    height: auto;
    transform: none;
  }

  .profile-card,
  .info-card,
  .skills-card,
  .project-card,
  .contact-card,
  .resume-card,
  .case-section,
  .case-meta-grid article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.25rem;
    border-radius: 22px;
  }

  .project-card {
    min-height: auto;
    overflow-wrap: anywhere;
  }

  .project-preview {
    min-height: 12rem;
    margin-bottom: 1rem;
  }

  .project-card-actions,
  .tag-row,
  .contact-links,
  .about-actions {
    width: 100%;
  }

  .contact-card {
    padding: 1.25rem;
  }

  .hero-copy-panel,
  .hero-panel {
    padding: 1.3rem;
  }

  .hero-title {
    max-width: 11ch;
    font-size: 3.3rem;
  }

  .hero-name-composition {
    width: 100%;
    overflow: visible;
    padding: 3.5rem 0 2.4rem;
  }

  .hero-type-layer {
    width: 100%;
    transform: none;
  }

  .hero-role-back {
    width: 100%;
    margin-top: 1.15rem;
    margin-right: 0;
    margin-left: 0;
    padding-left: 0;
    font-family: var(--font-body);
    font-size: clamp(1.45rem, 7vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.96;
    text-align: center;
    -webkit-text-stroke: 0;
    -webkit-text-fill-color: rgba(237, 243, 255, 0.82);
    color: rgba(237, 243, 255, 0.82);
    text-shadow: 0 18px 46px rgba(5, 11, 22, 0.34);
  }

  .hero-name-back {
    width: 100%;
    transform: none;
    font-size: clamp(3.65rem, 18vw, 5.6rem);
    line-height: 0.8;
    text-align: center;
  }

  .hero-status-row {
    gap: 0.65rem;
  }

  .case-hero h1 {
    font-size: 3.1rem;
  }

  .case-visual {
    min-height: auto;
  }

  .case-visual-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    margin-top: 2rem;
  }

  .case-gallery-item,
  .case-gallery-item:first-child,
  .case-gallery-item:first-child img {
    min-height: 13rem;
  }

  .hero-panel-body {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .hero-scroll-indicator {
    bottom: 0;
  }

  .hero-scroll-after {
    bottom: auto;
    margin-top: -4.8rem;
    margin-bottom: 1.15rem;
  }

  .scroll-indicator-line {
    width: 2.05rem;
    height: 3.65rem;
  }

  .hero-portrait-card::before {
    display: none;
  }

  .resume-grid {
    grid-template-columns: 1fr;
  }

  .detail-list li {
    flex-direction: column;
  }

  .timeline-item {
    margin-left: 2rem;
  }
}

@keyframes scrollDot {
  0%,
  100% {
    opacity: 0.45;
    transform: translate(-50%, 0);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, 2.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-section::before,
  .floating-card-top,
  .floating-card-bottom,
  .scroll-indicator-dot {
    animation: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Recruiter-focused redesign layer */
.hero-section {
  min-height: 100svh;
  padding-top: 9rem;
  padding-bottom: 5rem;
  align-items: center;
}

.hero-section::after {
  bottom: 1.5rem;
}

.hero-value-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero-value-grid::before {
  content: "Frontend";
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: -1;
  color: rgba(237, 243, 255, 0.035);
  font-size: clamp(7rem, 17vw, 16rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.08em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.hero-copy-block {
  max-width: 48rem;
}

.hero-copy-block h1 {
  margin: 0 0 1rem;
  font-size: clamp(4.8rem, 10vw, 9.4rem);
  line-height: 0.82;
  letter-spacing: -0.08em;
}

.hero-role-line {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.6rem;
  color: rgba(237, 243, 255, 0.92);
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-role-line span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 243, 255, 0.5);
}

.hero-intro {
  max-width: 46rem;
  margin-bottom: 1.6rem;
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.8;
}

.hero-tech-stack,
.skill-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-tech-stack span,
.skill-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(124, 140, 255, 0.24);
  border-radius: 999px;
  background: rgba(124, 140, 255, 0.1);
  color: var(--color-text);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-proof-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.3rem);
  border: 1px solid rgba(151, 168, 198, 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 15% 15%, rgba(124, 140, 255, 0.2), transparent 35%),
    linear-gradient(180deg, rgba(18, 29, 49, 0.84), rgba(8, 14, 26, 0.86));
  box-shadow: var(--shadow-card);
}

.hero-proof-label,
.project-meta-label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-proof-list {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-proof-list li {
  padding: 1.1rem;
  border: 1px solid rgba(151, 168, 198, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.hero-proof-list strong,
.hero-proof-list span {
  display: block;
}

.hero-proof-list strong {
  margin-bottom: 0.25rem;
  color: var(--color-text);
  font-size: 1.1rem;
}

.hero-proof-list span {
  color: var(--color-text-muted);
}

.hero-scroll-after {
  position: relative;
  left: 50%;
  bottom: auto;
  margin-top: -6rem;
  margin-bottom: 4rem;
}

.project-list {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: clamp(1.5rem, 4vw, 2.6rem);
  overflow: visible;
}

.project-slider-shell {
  position: relative;
}

.project-slider-viewport {
  overflow: visible;
  padding: 0.15rem 0 1rem;
}

.project-slider-track {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  padding-inline: max(1rem, calc((100vw - var(--container-max)) / 2));
  will-change: transform;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-slider-card {
  flex: 0 0 min(calc(100vw - 2rem), 70rem);
  --card-reveal-scale: 0.88;
  opacity: 0.2;
  filter: saturate(0.65) blur(0.2px);
  pointer-events: none;
}

.project-slider-card.is-previous,
.project-slider-card.is-next {
  --card-reveal-scale: 0.9;
  opacity: 0.34;
  filter: saturate(0.75);
  cursor: pointer;
  pointer-events: auto;
}

.project-slider-card.is-active,
.project-slider-card.reveal.is-visible.is-active {
  --card-reveal-scale: 1;
  opacity: 1;
  filter: saturate(1);
  pointer-events: auto;
}

.project-slider-card.reveal.is-visible:not(.is-active) {
  opacity: 0.2;
}

.project-slider-card.reveal.is-visible.is-previous,
.project-slider-card.reveal.is-visible.is-next {
  opacity: 0.34;
}

.project-slider-card.is-previous:hover,
.project-slider-card.is-next:hover {
  opacity: 0.48;
  filter: saturate(0.9);
}

.project-slider-controls {
  display: grid;
  grid-template-columns: auto minmax(6rem, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  width: min(calc(100% - 2rem), var(--container-max));
  margin-inline: auto;
  margin-top: 1rem;
}

.project-slider-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0 1.15rem;
  border: 1px solid rgba(151, 168, 198, 0.16);
  border-radius: 14px;
  background: rgba(11, 18, 31, 0.58);
  color: var(--color-text);
  font-weight: 800;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.project-slider-button:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 140, 255, 0.36);
  background: rgba(25, 36, 66, 0.76);
}

.project-slider-progress {
  height: 1px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(151, 168, 198, 0.16);
}

.project-slider-progress span {
  display: block;
  width: var(--project-progress, 33.333%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
  transition: width 0.45s ease;
}

.project-slider-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(151, 168, 198, 0.34);
  padding: 0;
  transition:
    width 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.project-slider-dot.is-active {
  width: 1.9rem;
  background: var(--color-secondary);
  box-shadow: 0 0 18px rgba(108, 248, 221, 0.28);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  min-height: 0;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}

.project-preview {
  min-height: 100%;
  margin-bottom: 0;
  text-decoration: none;
}

.project-preview-image {
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.3s ease;
}

.project-card:hover .project-preview-image {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.05);
}

.project-card-content {
  display: grid;
  align-content: center;
  gap: 1.35rem;
}

.project-card-top p,
.project-evidence-grid p,
.project-evidence-grid li {
  color: var(--color-text-muted);
  line-height: 1.75;
}

.project-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.25rem;
}

.project-evidence-grid ul {
  display: grid;
  gap: 0.45rem;
  padding-left: 1rem;
  margin: 0;
}

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

.skills-field {
  position: relative;
  width: min(100%, 100vw);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: 0 max(1rem, calc((100vw - var(--container-max)) / 2));
  background: transparent;
}

.skills-field::before {
  display: none;
}

.skills-cluster {
  position: relative;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.skills-cluster::before {
  display: none;
}

.skills-cluster.is-backend {
  background: transparent;
}

.skills-cluster.is-tools {
  background: transparent;
}

.skills-cluster-map {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(1rem, 1.8vw, 1.35rem);
  min-height: 21rem;
}

.skills-field-glow {
  position: absolute;
  inset: 18% 12%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(124, 140, 255, 0.18), transparent 62%);
  filter: blur(26px);
  pointer-events: none;
}

.skills-cluster-label {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  margin: 0 0 1rem;
  min-height: 2.6rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-secondary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.skill-floating-chip {
  --push-x: 0px;
  --push-y: 0px;
  --push-scale: 1;
  --drift-x: 8px;
  --drift-y: -8px;
  --float-duration: 8s;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform:
    translate3d(var(--push-x), var(--push-y), 0)
    scale(var(--push-scale));
  transition:
    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.28s ease,
    background 0.28s ease;
  will-change: transform;
}

.skill-floating-chip-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(6.4rem, 10vw, 8.8rem);
  min-height: 4rem;
  padding: 0.78rem 1.05rem;
  border: 1px solid rgba(124, 140, 255, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 10%, rgba(110, 242, 212, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(18, 29, 49, 0.76);
  box-shadow: 0 18px 46px rgba(3, 8, 18, 0.22);
  color: var(--color-text);
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
  animation: skillFloat var(--float-duration) ease-in-out infinite;
  animation-delay: var(--float-delay);
  will-change: transform;
}

.skill-floating-chip.is-tech .skill-floating-chip-inner {
  border-color: rgba(124, 140, 255, 0.28);
  background:
    radial-gradient(circle at 20% 10%, rgba(110, 242, 212, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(18, 29, 49, 0.76);
}

.skill-floating-chip.is-tool .skill-floating-chip-inner {
  border-color: rgba(92, 184, 255, 0.24);
  background:
    radial-gradient(circle at 18% 8%, rgba(92, 184, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.025)),
    rgba(17, 27, 45, 0.72);
}

.skill-floating-chip.is-craft .skill-floating-chip-inner {
  border-color: rgba(108, 248, 221, 0.18);
  background:
    radial-gradient(circle at 18% 8%, rgba(108, 248, 221, 0.11), transparent 42%),
    linear-gradient(180deg, rgba(108, 248, 221, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(10, 33, 40, 0.48);
  color: rgba(224, 236, 255, 0.9);
}

.skill-floating-chip:hover .skill-floating-chip-inner {
  border-color: rgba(110, 242, 212, 0.38);
  background:
    radial-gradient(circle at 20% 10%, rgba(110, 242, 212, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(18, 29, 49, 0.86);
}

.skill-floating-chip:nth-of-type(3n) .skill-floating-chip-inner {
  border-color: rgba(110, 242, 212, 0.22);
  border-radius: 18px;
}

.skill-group-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2vw, 1.8rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 0%, rgba(124, 140, 255, 0.14), transparent 32%),
    var(--color-surface);
  box-shadow: var(--shadow-soft);
}

.skill-group-card h3 {
  margin-bottom: 1.2rem;
}

.contact-links a {
  min-height: 2.75rem;
}

@media (min-width: 992px) {
  .portfolio-section {
    padding-top: 6rem;
  }

  .about-layout-grid {
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  }

  .about-photo-card {
    min-height: 44rem;
    align-self: stretch;
  }

  .about-photo {
    width: min(122%, 40rem);
    transform: translate(2rem, 0.5rem);
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 100svh;
    padding-top: 7rem;
    padding-bottom: 3.2rem;
  }

  .hero-value-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-value-grid::before {
    top: 34%;
    font-size: clamp(5rem, 28vw, 9rem);
  }

  .hero-copy-block h1 {
    font-size: clamp(4.2rem, 18vw, 7rem);
  }

  .hero-role-line {
    font-size: clamp(1.7rem, 8vw, 3rem);
  }

  .hero-proof-card {
    padding: 1.15rem;
  }

  .hero-scroll-after {
    margin-top: -5rem;
    margin-bottom: 3.5rem;
  }

  .project-card,
  .project-evidence-grid,
  .skill-groups-grid {
    grid-template-columns: 1fr;
  }

  .project-list {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .project-slider-viewport {
    overflow: hidden;
    touch-action: pan-y;
  }

  .project-slider-track {
    padding-inline: 0;
  }

  .project-slider-card {
    flex-basis: 100%;
  }

  .project-card {
    min-height: 0;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .project-card-content {
    gap: 0.65rem;
  }

  .project-card h3 {
    font-size: clamp(1.08rem, 5.2vw, 1.25rem);
    margin-bottom: 0.35rem;
  }

  .project-category,
  .project-meta-label {
    margin-bottom: 0.45rem;
    font-size: 0.63rem;
  }

  .project-card-top p,
  .project-evidence-grid p,
  .project-evidence-grid li {
    line-height: 1.42;
    font-size: 0.9rem;
  }

  .project-card-top p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .tag-row {
    gap: 0.45rem;
  }

  .tag {
    min-height: 2.05rem;
    padding: 0.45rem 0.72rem;
    font-size: 0.78rem;
  }

  .tag:nth-child(n + 5) {
    display: none;
  }

  .project-evidence-grid {
    gap: 0.6rem;
  }

  .project-evidence-grid > div:last-child {
    display: none;
  }

  .project-evidence-grid ul {
    gap: 0.25rem;
  }

  .project-evidence-grid li:nth-child(n + 2) {
    display: none;
  }

  .project-evidence-grid p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .project-slider-controls {
    grid-template-columns: 1fr 1fr;
  }

  .project-slider-progress {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .project-slider-dots {
    grid-column: 1 / -1;
    justify-content: center;
    order: 2;
  }

  .project-slider-button {
    order: 3;
  }

  .skills-field {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .skills-cluster {
    min-height: 0;
  }

  .skills-cluster-map {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
  }

  .skill-floating-chip {
    width: 100%;
  }

  .skill-floating-chip:nth-child(odd) {
    transform:
      translate3d(calc(var(--push-x) - 0.35rem), var(--push-y), 0)
      scale(var(--push-scale));
  }

  .skill-floating-chip:nth-child(even) {
    transform:
      translate3d(calc(var(--push-x) + 0.35rem), var(--push-y), 0)
      scale(var(--push-scale));
  }

  .skill-floating-chip-inner {
    width: 100%;
  }

  .project-preview {
    min-height: 8.6rem;
  }

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

  .about-photo-card {
    min-height: 34rem;
    overflow: hidden;
  }

  .about-photo {
    width: min(112%, 30rem);
    transform: translateY(0.5rem);
  }

  .profile-card {
    padding: 1.4rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 6rem;
  }

  .hero-proof-list li {
    padding: 0.95rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .project-card,
  .skill-group-card,
  .contact-card,
  .info-card {
    border-radius: 22px;
  }

  .project-card {
    padding: 0.75rem;
  }

  .project-preview {
    min-height: 7.4rem;
  }

  .project-card-actions {
    gap: 0.6rem;
    margin-top: 0.45rem;
  }

  .project-card-actions .project-link {
    font-size: 0.88rem;
  }

  .about-photo-card {
    min-height: 30rem;
  }

  .skills-cluster-map {
    display: flex;
    justify-content: center;
    gap: 0.52rem;
  }

  .skill-floating-chip,
  .skill-floating-chip:nth-child(3n) {
    width: auto;
    grid-column: auto;
    justify-self: auto;
  }

  .skill-floating-chip:nth-child(odd),
  .skill-floating-chip:nth-child(even) {
    transform:
      translate3d(var(--push-x), var(--push-y), 0)
      scale(var(--push-scale));
  }

  .skill-floating-chip-inner {
    width: auto;
    min-width: 5.45rem;
    min-height: 2.35rem;
    padding: 0.42rem 0.72rem;
    border-radius: 9px;
    font-size: clamp(0.7rem, 3vw, 0.78rem);
    line-height: 1.15;
  }
}

@keyframes skillFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  28% {
    transform: translate3d(calc(var(--drift-x) * 0.45), calc(var(--drift-y) * -0.35), 0) rotate(-0.4deg);
  }

  50% {
    transform: translate3d(var(--drift-x), var(--drift-y), 0) rotate(0.55deg);
  }

  76% {
    transform: translate3d(calc(var(--drift-x) * -0.5), calc(var(--drift-y) * 0.55), 0) rotate(-0.25deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skill-floating-chip-inner {
    animation: none;
  }
}

/* Keep the earlier typography-only hero while retaining the redesigned sections below. */
.hero-section {
  padding-top: 8.5rem;
  padding-bottom: 7.5rem;
}

.hero-scroll-after {
  display: flex;
  margin-top: -7.25rem;
  margin-bottom: 4.5rem;
  margin-left: auto;
  margin-right: auto;
  left: auto;
  transform: none;
}

@media (max-width: 991.98px) {
  .hero-section {
    min-height: 100svh;
    padding-top: 6.75rem;
    padding-bottom: 5rem;
  }

  .hero-scroll-after {
    margin-top: -6rem;
    margin-bottom: 3.5rem;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding-top: 5.75rem;
  }
}
