:root {
  --ink: #f3f0e8;
  --muted: #adb7b1;
  --paper: #111614;
  --surface: #19201d;
  --teal: #6bc7bd;
  --teal-dark: #95ded6;
  --coral: #ff9b83;
  --gold: #f0c86b;
  --line: rgba(243, 240, 232, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --glass-bg: rgba(25, 32, 29, 0.76);
  --card-bg: rgba(25, 32, 29, 0.72);
  --panel-bg: rgba(25, 32, 29, 0.84);
  --particle-dot: rgba(243, 240, 232, 0.2);
  --cursor-x: 50vw;
  --cursor-y: 38vh;
  --bg-drift-x: 0px;
  --bg-drift-y: 0px;
  --bg-counter-x: 0px;
  --bg-counter-y: 0px;
  --scroll-lift: 0px;
  --scroll-progress: 0%;
  --scroll-sway: 0px;
  --magnet-x: 0px;
  --magnet-y: 0px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --hover-x: 50%;
  --hover-y: 50%;
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  isolation: isolate;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: var(--scroll-progress);
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
  box-shadow: 0 0 18px rgba(107, 199, 189, 0.36);
  content: "";
  pointer-events: none;
  transform-origin: left center;
  transition: width 120ms ease;
}

.custom-cursor {
  display: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  transform: translateY(-140%);
}

.skip-link:focus {
  transform: translateY(0);
}

.interactive-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 12%, rgba(31, 116, 109, 0.1), transparent 34rem),
    radial-gradient(ellipse at 88% 72%, rgba(227, 111, 87, 0.08), transparent 28rem),
    var(--paper);
  background-size: 130% 130%, 130% 130%, auto;
  animation: ambient-wash 24s ease-in-out infinite alternate;
  transform: translate3d(calc(var(--scroll-sway) * -0.18), calc(var(--scroll-lift) * 0.28), 0);
  transition: transform 260ms ease-out;
}

.interactive-bg::before,
.interactive-bg::after {
  display: none;
  position: absolute;
  inset: -12%;
  content: "";
  will-change: transform, opacity;
}

.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.interactive-bg::before {
  background:
    radial-gradient(circle, var(--particle-dot) 1px, transparent 1.7px) 0 0 / 15px 15px,
    radial-gradient(circle, rgba(31, 116, 109, 0.18) 1px, transparent 1.6px) 7px 8px / 22px 22px;
  -webkit-mask-image:
    linear-gradient(112deg, #000 0 28%, transparent 44% 52%, #000 66% 100%),
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), #000 0 32%, transparent 70%);
  mask-image:
    linear-gradient(112deg, #000 0 28%, transparent 44% 52%, #000 66% 100%),
    radial-gradient(circle at var(--cursor-x) var(--cursor-y), #000 0 32%, transparent 70%);
  opacity: 0.52;
  animation: ambient-particles 9s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.interactive-bg::after {
  background:
    radial-gradient(circle, var(--particle-dot) 1px, transparent 1.65px) 0 0 / 18px 18px,
    radial-gradient(circle, rgba(214, 163, 61, 0.18) 1px, transparent 1.55px) 9px 10px / 26px 26px;
  -webkit-mask-image:
    linear-gradient(58deg, transparent 0 6%, #000 18% 56%, transparent 76%),
    radial-gradient(ellipse 96% 90% at 74% 28%, #000 0 52%, transparent 78%);
  mask-image:
    linear-gradient(58deg, transparent 0 6%, #000 18% 56%, transparent 76%),
    radial-gradient(ellipse 96% 90% at 74% 28%, #000 0 52%, transparent 78%);
  opacity: 0.4;
  animation: ambient-particle-ribbons 11s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

@keyframes ambient-wash {
  0% {
    background-position: 0% 48%, 100% 52%, 0 0;
  }

  50% {
    background-position: 46% 54%, 58% 42%, 0 0;
  }

  100% {
    background-position: 92% 50%, 8% 58%, 0 0;
  }
}

@keyframes ambient-particles {
  0% {
    background-position: 0 0, 7px 8px;
    transform: translate3d(calc(var(--bg-drift-x) - 44px), calc(var(--bg-drift-y) + 24px), 0) skewY(-3deg);
  }

  50% {
    background-position: 40px -26px, -20px 42px;
    transform: translate3d(calc(var(--bg-drift-x) + 28px), calc(var(--bg-drift-y) - 38px), 0) skewY(2deg);
  }

  100% {
    background-position: 82px -58px, -42px 86px;
    transform: translate3d(calc(var(--bg-drift-x) + 62px), calc(var(--bg-drift-y) + 18px), 0) skewY(-1deg);
  }
}

@keyframes ambient-particle-ribbons {
  0% {
    background-position: 0 0, 9px 10px;
    opacity: 0.3;
    transform: translate3d(calc(var(--bg-counter-x) + 58px), calc(var(--bg-counter-y) - 36px), 0) scale(1.04) skewY(4deg);
  }

  50% {
    background-position: -44px 36px, 38px -24px;
    opacity: 0.5;
    transform: translate3d(calc(var(--bg-counter-x) - 26px), calc(var(--bg-counter-y) + 48px), 0) scale(1.08) skewY(-2deg);
  }

  100% {
    background-position: -90px 74px, 74px -48px;
    opacity: 0.38;
    transform: translate3d(calc(var(--bg-counter-x) - 64px), calc(var(--bg-counter-y) + 8px), 0) scale(1.05) skewY(3deg);
  }
}

@keyframes button-wave {
  0% {
    opacity: 0;
    transform: translateX(-76%) rotate(2deg);
  }

  18% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: translateX(76%) rotate(2deg);
  }
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html,
  body,
  a,
  button,
  .experience-card {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    top: var(--cursor-y);
    left: var(--cursor-x);
    z-index: 100;
    display: block;
    width: 34px;
    height: 34px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 160ms ease;
  }

  body.cursor-active .custom-cursor {
    opacity: 1;
  }

  .cursor-ring,
  .cursor-dot {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: 50%;
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      opacity 180ms ease,
      transform 180ms ease;
  }

  .cursor-ring {
    display: none;
  }

  .cursor-dot {
    inset: 14px;
    background: var(--coral);
  }

  body.cursor-interactive .cursor-dot {
    background: var(--teal);
    transform: scale(1.15);
  }
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(16px);
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand,
.site-nav,
.button,
.status-card,
.skill-pill {
  border: 1px solid var(--line);
  background: var(--glass-bg);
  box-shadow: 0 10px 28px rgba(29, 35, 32, 0.06);
}

.brand {
  order: 1;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  font-weight: 800;
  overflow: hidden;
}

.brand-photo {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(243, 240, 232, 0.22);
  border-radius: 50%;
  background: var(--ink);
  object-fit: cover;
  object-position: center 34%;
}

.site-nav {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
}

.site-nav a {
  position: relative;
  min-height: 36px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(31, 116, 109, 0.11);
  color: var(--teal-dark);
}

.nav-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass-bg);
  cursor: pointer;
  overflow: hidden;
}

.nav-toggle span:not(.sr-only) {
  position: relative;
  z-index: 1;
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: var(--ink);
}

.section-pad {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.76fr);
  align-items: center;
  gap: clamp(36px, 6vw, 72px);
  min-height: calc(100vh - 132px);
  padding-top: 32px;
  padding-bottom: 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: 4.2rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 3.2rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-profile-photo {
  width: 68px;
  height: 68px;
  margin-bottom: 30px;
  border: 4px solid #050706;
  border-radius: 12px;
  background: var(--ink);
  object-fit: cover;
  object-position: center 34%;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.hero-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.verified-badge {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: #39aaf7;
}

.verified-badge svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(57, 170, 247, 0.24));
}

.verified-badge path:first-child {
  fill: currentColor;
}

.verified-badge path:last-child {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.hero-role {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.4;
}

.hero-text,
.about-grid p,
.timeline-item p,
.project-card p,
.certification-card p,
.contact-panel p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  overflow: hidden;
}

.hero-actions .button::after {
  position: absolute;
  inset: -48% -62%;
  border-radius: inherit;
  background:
    repeating-linear-gradient(
      112deg,
      transparent 0 14%,
      rgba(107, 199, 189, 0.34) 16% 19%,
      rgba(240, 200, 107, 0.24) 21% 24%,
      transparent 27% 40%
    );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translateX(-72%) rotate(2deg);
}

.brand,
.site-nav a,
.nav-toggle,
.button {
  isolation: isolate;
  transform:
    translate3d(var(--magnet-x), var(--magnet-y), 0)
    perspective(700px)
    rotateX(var(--tilt-y))
    rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition:
    transform 220ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.brand::before,
.site-nav a::before,
.nav-toggle::before,
.button::before {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    radial-gradient(
      circle 90px at var(--hover-x) var(--hover-y),
      rgba(107, 199, 189, 0.36),
      rgba(214, 163, 61, 0.18) 38%,
      transparent 72%
  );
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: opacity 180ms ease, transform 220ms ease;
}

.brand:hover,
.brand:focus-visible,
.brand.is-interacting,
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-interacting,
.nav-toggle:hover,
.nav-toggle:focus-visible,
.nav-toggle.is-interacting,
.button:hover,
.button:focus-visible,
.button.is-interacting {
  box-shadow: 0 16px 36px rgba(31, 116, 109, 0.16);
}

.brand:hover::before,
.brand:focus-visible::before,
.brand.is-interacting::before,
.site-nav a:hover::before,
.site-nav a:focus-visible::before,
.site-nav a.is-interacting::before,
.nav-toggle:hover::before,
.nav-toggle:focus-visible::before,
.nav-toggle.is-interacting::before,
.button:hover::before,
.button:focus-visible::before,
.button.is-interacting::before {
  opacity: 1;
  transform: scale(1);
}

.hero-actions .button:hover::after,
.hero-actions .button:focus-visible::after,
.hero-actions .button.is-interacting::after {
  animation: button-wave 620ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button-primary {
  border-color: transparent;
  background: var(--ink);
  color: var(--surface);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(31, 116, 109, 0.38);
  color: var(--teal-dark);
}

.contact-button {
  min-width: 136px;
  padding-left: 14px;
}

.contact-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  object-fit: contain;
}

.button-primary .contact-icon {
  filter: none;
}

.button-secondary .contact-icon {
  filter: brightness(0) invert(1);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(420px, 100%);
}

.hero-visual img {
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid rgba(29, 35, 32, 0.12);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.status-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 36px);
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #36b37e;
  box-shadow: 0 0 0 6px rgba(54, 179, 126, 0.18);
}

.section-heading {
  margin-bottom: 34px;
}

.about-section,
.split-section,
.skills-section,
.certifications-section {
  border-top: 1px solid var(--line);
}

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

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item,
.project-card,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.experience-card {
  display: block;
  overflow: visible;
  padding: 0;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.experience-card:hover,
.experience-card:focus-visible,
.experience-card.is-expanded {
  border-color: rgba(31, 116, 109, 0.36);
  box-shadow: 0 18px 42px rgba(29, 35, 32, 0.1);
}

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

.experience-trigger {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.experience-trigger:focus-visible {
  outline: 3px solid rgba(31, 116, 109, 0.24);
  outline-offset: -6px;
}

.experience-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.experience-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  box-shadow: 0 10px 22px rgba(29, 35, 32, 0.08);
}

.experience-company {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.experience-date-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
  text-align: right;
}

.experience-date-wrap .timeline-date {
  margin: 0;
}

.experience-arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: var(--teal-dark);
  transition: transform 180ms ease;
}

.experience-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.experience-card.is-expanded .experience-arrow {
  transform: rotate(180deg);
}

.experience-cue {
  position: absolute;
  top: var(--hover-y);
  left: var(--hover-x);
  padding: 7px 10px;
  border: 1px solid rgba(31, 116, 109, 0.24);
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: translate(16px, -50%) scale(0.96);
  transition: opacity 120ms ease, transform 120ms ease;
}

.experience-card:hover .experience-cue,
.experience-trigger:focus-visible .experience-cue {
  opacity: 1;
  transform: translate(20px, -50%) scale(1);
}

.experience-card.is-expanded .experience-cue {
  opacity: 0;
}

.experience-details {
  margin: 0 24px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.experience-details-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 900;
}

.experience-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.timeline-item p:last-child,
.project-card p:last-child,
.certification-card p:last-child,
.contact-panel p:last-child {
  margin-bottom: 0;
}

.meta,
.project-type {
  display: block;
  margin-bottom: 0;
  color: var(--coral);
  font-size: 0.84rem;
  font-weight: 800;
}

.timeline-date {
  display: block;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

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

.project-card,
.certification-card {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  padding: 24px;
}

.project-card a,
.certification-card a {
  margin-top: auto;
  color: var(--teal-dark);
  font-weight: 800;
}

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

.project-preview-link {
  position: relative;
  display: block;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.project-preview-link:hover,
.project-preview-link:focus-visible {
  outline: 3px solid rgba(31, 116, 109, 0.24);
  outline-offset: 3px;
}

.project-preview-video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
  transition: transform 220ms ease;
}

.project-preview-link:hover .project-preview-video,
.project-preview-link:focus-visible .project-preview-video {
  transform: scale(1.03);
}

.project-preview-cue {
  position: absolute;
  top: var(--hover-y);
  left: var(--hover-x);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: 999px;
  background: rgba(17, 22, 20, 0.86);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(16px, -50%) scale(0.96);
  transition: opacity 160ms ease, transform 180ms ease;
  backdrop-filter: blur(14px);
}

.project-preview-cue svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.project-preview-cue path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.project-preview-link:hover .project-preview-cue,
.project-preview-link:focus-visible .project-preview-cue,
.project-preview-link.is-interacting .project-preview-cue {
  opacity: 1;
  transform: translate(20px, -50%) scale(1);
}

.project-tech-list {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(5px, 1.8vw, 9px);
  margin: 2px 0 18px;
  max-width: 100%;
  overflow: visible;
}

.project-tech {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  width: clamp(28px, 8vw, 36px);
  height: clamp(28px, 8vw, 36px);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.project-tech-list .project-tech::after {
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  z-index: 5;
  padding: 5px 8px;
  border: 1px solid rgba(243, 240, 232, 0.14);
  border-radius: 999px;
  background: rgba(5, 7, 6, 0.92);
  color: var(--ink);
  content: attr(aria-label);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) scale(0.96);
  transition: opacity 150ms ease, transform 170ms ease;
  white-space: nowrap;
}

.project-tech-list .project-tech:hover::after,
.project-tech-list .project-tech.is-interacting::after {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.project-tech img {
  width: clamp(17px, 5vw, 22px);
  height: clamp(17px, 5vw, 22px);
  object-fit: contain;
}

.project-tech:hover {
  border-color: rgba(107, 199, 189, 0.54);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.project-detail-main {
  padding-top: 1px;
}

.project-detail-hero {
  display: block;
}

.project-back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 26px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(243, 240, 232, 0.06);
  color: var(--muted);
  font-weight: 800;
}

.project-back-button svg,
.project-detail-actions svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.project-back-button path,
.project-detail-actions path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.project-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.project-detail-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 4px solid #050706;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.32), transparent 32%),
    linear-gradient(135deg, var(--teal), var(--coral));
  color: #06100e;
  font-size: 1.1rem;
  font-weight: 950;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.project-detail-title {
  margin: 0;
  font-size: clamp(2.35rem, 10vw, 3.15rem);
}

.project-detail-lede,
.project-overview p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.project-detail-lede strong,
.project-overview strong,
.project-feature-card strong {
  color: var(--ink);
}

.project-detail-actions {
  display: flex;
  gap: 10px;
  margin: 24px 0 30px;
}

.project-detail-actions .button {
  flex: 1 1 0;
  justify-content: center;
  padding-inline: 14px;
}

.project-detail-media {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #050706;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.project-detail-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.project-detail-section .section-heading {
  margin-bottom: 22px;
}

.project-detail-section h2 {
  font-size: 1.35rem;
  line-height: 1.22;
}

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

.project-detail-stat,
.project-feature-card,
.project-built-item {
  border: 1px solid rgba(243, 240, 232, 0.08);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.project-detail-stat {
  min-height: 88px;
  padding: 18px;
  border-radius: 10px;
}

.project-detail-stat span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.project-detail-stat strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.24;
}

.project-feature-block,
.project-built-with {
  margin-top: 30px;
}

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

.project-feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 116px;
  padding: 16px;
  border-radius: 10px;
}

.project-feature-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(243, 240, 232, 0.08);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.project-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.48;
}

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

.project-built-item {
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  height: 56px;
  padding: 10px;
  border-radius: 10px;
  color: var(--ink);
}

.project-built-item img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  padding: 5px;
  border-radius: 8px;
  background: #fff;
}

.project-built-item span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card:hover,
.project-card.is-interacting {
  box-shadow: 0 18px 42px rgba(29, 35, 32, 0.1);
}

.certification-card:hover,
.certification-card.is-interacting {
  box-shadow: 0 18px 42px rgba(29, 35, 32, 0.1);
}

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 620ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 620ms ease;
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

body[data-scroll-direction="up"] .scroll-reveal:not(.is-visible) {
  transform: translate3d(0, -26px, 0) scale(0.985);
}

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

.scroll-reveal:nth-child(2) {
  transition-delay: 55ms;
}

.scroll-reveal:nth-child(3) {
  transition-delay: 110ms;
}

.scroll-reveal:nth-child(4) {
  transition-delay: 165ms;
}

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

.certification-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card-bg);
  min-height: 0;
  padding: 14px;
}

.certification-card-featured {
  background:
    linear-gradient(135deg, rgba(31, 116, 109, 0.12), transparent 44%),
    var(--card-bg);
}

.certification-card h3 {
  margin-bottom: 5px;
  font-size: 0.98rem;
  line-height: 1.28;
}

.certification-card p {
  font-size: 0.9rem;
  line-height: 1.45;
}

.certification-card > a:not(.certificate-preview-link) {
  font-size: 0.9rem;
}

.certificate-preview-link {
  display: block;
  margin: 10px 0 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.certificate-preview-link:hover,
.certificate-preview-link:focus-visible {
  outline: 3px solid rgba(31, 116, 109, 0.24);
  outline-offset: 3px;
}

.certificate-preview {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  object-position: center top;
  transition: transform 180ms ease;
}

.certificate-preview-link:hover .certificate-preview,
.certificate-preview-link:focus-visible .certificate-preview {
  transform: scale(1.025);
}

.skills-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.skills-filter-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.skills-filter-button svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.skills-filter-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.skills-filter-button.is-active,
.skills-filter-button:hover,
.skills-filter-button:focus-visible {
  border-color: rgba(243, 240, 232, 0.12);
  background: var(--ink);
  color: var(--surface);
}

.skills-search-wrap {
  margin-bottom: 18px;
}

.skills-search-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(243, 240, 232, 0.1);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(17, 22, 20, 0.58);
  color: var(--muted);
}

.skills-search-label svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.skills-search-label path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.skills-search-label input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  outline: 0;
}

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

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

.skill-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(243, 240, 232, 0.035), transparent 38%),
    var(--card-bg);
  font-weight: 800;
}

.skill-pill[hidden] {
  display: none;
}

.skill-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
}

.skill-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.skill-name {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.1;
}

.skill-meta {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
}

.skills-empty {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.skills-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 18px auto 0;
  border: 1px solid rgba(243, 240, 232, 0.12);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(17, 22, 20, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.skills-more-button[hidden] {
  display: none;
}

.skills-more-button svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  transition: transform 180ms ease;
}

.skills-more-button path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.skills-more-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.contact-section {
  padding-bottom: 60px;
}

.contact-panel {
  display: grid;
  gap: 20px;
  padding: clamp(28px, 6vw, 58px);
  background:
    linear-gradient(135deg, rgba(31, 116, 109, 0.12), transparent 48%),
    var(--panel-bg);
}

.contact-panel p {
  max-width: 700px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--teal-dark);
}

.footer-clock {
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1020px) {
  .certification-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: 8px;
    padding: 10px;
  }

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

  .site-nav a {
    border-radius: 6px;
  }

  .hero,
  .about-grid,
  .timeline-item,
  .experience-trigger,
  .project-grid,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .experience-date-wrap {
    justify-self: start;
    text-align: left;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.8rem;
  }

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

  .hero-visual {
    justify-self: start;
    width: min(440px, 100%);
  }

  .section-pad {
    padding: 64px 0;
  }
}

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

  .brand,
  .site-nav a,
  .nav-toggle,
  .button {
    transform: none;
    transition: none;
  }

  .brand::before,
  .site-nav a::before,
  .nav-toggle::before,
  .button::before,
  .hero-actions .button::after {
    display: none;
  }

  .interactive-bg,
  .interactive-bg::before,
  .interactive-bg::after {
    animation: none;
    transform: none;
  }

  body::before {
    transition: none;
  }

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

@media (max-width: 520px) {
  .brand {
    max-width: 226px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: row;
  }

  .button {
    flex: 1 1 150px;
  }

  .status-card {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: auto;
    justify-content: center;
    margin-top: 0;
    border-radius: 999px;
    font-size: 0.78rem;
  }

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

  h1 {
    font-size: 2.45rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .hero {
    gap: 24px;
    padding-top: 22px;
    padding-bottom: 30px;
  }

  .hero-text {
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 16 / 10;
  }

  .certificate-preview {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
  }
}

/* Fixed mobile-shell layout: the site stays phone-sized even on large monitors. */
:root {
  --mobile-shell-width: 430px;
}

.site-header,
.section-pad,
.site-footer {
  width: min(var(--mobile-shell-width), calc(100% - 24px));
}

.site-header {
  min-height: 68px;
}

.nav-toggle {
  display: inline-block;
}

.site-nav {
  position: fixed;
  inset: 74px max(12px, calc((100vw - var(--mobile-shell-width)) / 2)) auto;
  display: none;
  flex-direction: column;
  align-items: stretch;
  border-radius: 8px;
  padding: 10px;
}

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

.site-nav a {
  border-radius: 6px;
}

.hero,
.about-grid,
.timeline-item,
.experience-trigger,
.project-grid,
.certification-grid {
  grid-template-columns: 1fr;
}

.hero {
  min-height: auto;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 30px;
}

.section-pad {
  padding: 54px 0;
}

h1 {
  font-size: clamp(2.45rem, 10vw, 3.05rem);
}

.hero-name {
  font-size: clamp(1.56rem, 7vw, 1.95rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(2.05rem, 8vw, 2.42rem);
}

.hero-text {
  margin-bottom: 22px;
  font-size: 1rem;
  line-height: 1.62;
}

.hero-actions,
.contact-actions {
  flex-direction: row;
}

.button {
  flex: 1 1 150px;
}

.hero-visual {
  justify-self: start;
  width: 100%;
}

.hero-visual img {
  aspect-ratio: 16 / 10;
}

.timeline-item,
.project-card,
.contact-panel {
  padding: 22px;
}

.experience-trigger {
  gap: 16px;
  padding: 22px;
}

.experience-date-wrap {
  justify-self: start;
  text-align: left;
}

.certification-grid {
  gap: 12px;
}

.certificate-preview {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.skills-list {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

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

/* Stacked section bubbles inspired by the reference mobile-card layout. */
.section-pad {
  position: relative;
  isolation: isolate;
  margin: 14px auto 16px;
  padding: 28px 22px;
  border-top: 0;
}

.section-pad::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(243, 240, 232, 0.13);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(243, 240, 232, 0.035), transparent 34%),
    rgba(25, 32, 29, 0.9);
  box-shadow:
    0 18px 54px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
  content: "";
  pointer-events: none;
}

.section-pad:first-of-type {
  margin-top: 18px;
}

.about-section,
.split-section,
.skills-section,
.certifications-section {
  border-top: 0;
}

.contact-section {
  padding-bottom: 28px;
}

.hero-profile-photo,
.skill-pill.scroll-reveal.is-visible,
.skill-pill:not(.scroll-reveal),
.project-tech,
.project-card.scroll-reveal.is-visible,
.project-card:not(.scroll-reveal),
.certification-card.scroll-reveal.is-visible,
.certification-card:not(.scroll-reveal) {
  transform:
    translate3d(var(--magnet-x), var(--magnet-y), 0)
    perspective(720px)
    rotateX(var(--tilt-y))
    rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition:
    transform 520ms cubic-bezier(0.18, 1.55, 0.32, 1),
    box-shadow 180ms ease,
    border-color 180ms ease;
  will-change: transform;
}

.hero-profile-photo.is-interacting,
.skill-pill.is-interacting,
.project-tech.is-interacting,
.project-card.is-interacting,
.certification-card.is-interacting {
  border-color: rgba(107, 199, 189, 0.46);
}

.hero-profile-photo.is-interacting {
  box-shadow:
    0 22px 42px rgba(0, 0, 0, 0.34),
    0 0 0 6px rgba(107, 199, 189, 0.08);
}

/* Compact two-column credentials layout. */
.certifications-section {
  padding-inline: 18px;
}

.certifications-section .section-heading {
  margin-bottom: 20px;
}

.certification-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 12px;
}

.certification-card {
  min-height: 0;
  padding: 10px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(243, 240, 232, 0.035), transparent 38%),
    var(--card-bg);
}

.certification-card .project-type {
  margin-bottom: 6px;
  font-size: 0.68rem;
  line-height: 1.15;
}

.certification-card h3 {
  margin-bottom: 6px;
  font-size: 0.82rem;
  line-height: 1.2;
}

.certification-card p {
  margin-bottom: 8px;
  font-size: 0.72rem;
  line-height: 1.35;
}

.certification-card > a:not(.certificate-preview-link) {
  font-size: 0.72rem;
}

.certificate-preview-link {
  order: -1;
  margin: 0 0 10px;
  border-radius: 8px;
}

.certificate-preview {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}
