.project-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 4.5rem 1rem 1rem;
  border: 0;
  background: rgba(3, 7, 18, 0.96);
  overflow: hidden;
}

.project-lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
}

.project-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
}

.project-lightbox__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}

.project-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(248, 250, 252, 0.5);
  border-radius: 50%;
  color: #f8fafc;
  background: #111827;
  font: 2rem/1 system-ui, sans-serif;
  cursor: pointer;
}

.project-lightbox__close:hover {
  background: #334155;
}

.project-lightbox__close:focus-visible {
  outline: 3px solid #5eead4;
  outline-offset: 4px;
}

.project-evidence,
.project-media {
  margin: 2rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.72);
}

.project-media > video,
.project-media > iframe {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 0.5rem;
}

.project-media > video {
  height: auto;
}

.project-media > .project-dashboard {
  height: auto;
  min-height: 320px;
  aspect-ratio: 800 / 486;
}

.project-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.project-media-grid > .project-evidence {
  min-width: 0;
  margin: 0;
}

.project-evidence > a {
  display: block;
  border-radius: 0.5rem;
}

.project-evidence img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

.project-evidence figcaption {
  margin-top: 0.8rem;
  padding: 0 0.2rem 0.2rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.65;
}

.project-evidence figcaption a {
  white-space: nowrap;
}

.project-evidence__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;
}

#post .signsee-flow,
#post .signsee-lifecycle,
#post .project-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 1.75rem 0;
  list-style: none;
  counter-reset: signsee-step;
}

#post .signsee-flow li,
#post .signsee-lifecycle li,
#post .project-workflow li {
  margin: 0;
  padding: 1rem;
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.8);
  counter-increment: signsee-step;
}

.signsee-flow li::before,
.signsee-lifecycle li::before,
.project-workflow li::before {
  content: counter(signsee-step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.5rem;
  color: #5eead4;
  font-size: 0.8rem;
  font-weight: 700;
}

.signsee-flow strong,
.signsee-lifecycle strong,
.project-workflow strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
}

.signsee-flow span,
.signsee-lifecycle span,
.project-workflow span {
  display: block;
  margin-top: 0.45rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  #post .signsee-flow,
  #post .signsee-lifecycle,
  #post .project-workflow {
    grid-template-columns: 1fr;
  }
}

@keyframes gentle-bounce {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px); /* Slight upward movement */
  }
  100% {
    transform: translateY(0); /* Return to original position */
  }
}

a.gentle-clicked {
  animation: gentle-bounce 0.1s ease-out; /* Shorter, smoother animation */
}

html {
  min-height: 100%;
  background: #030712;
}

body {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background: #030712 !important;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 23%, rgba(148, 163, 184, 0.16) 23.1% 23.3%, transparent 23.4% 100%),
    linear-gradient(35deg, transparent 0 68%, rgba(148, 163, 184, 0.12) 68.1% 68.3%, transparent 68.4% 100%),
    linear-gradient(160deg, transparent 0 44%, rgba(148, 163, 184, 0.1) 44.1% 44.25%, transparent 44.35% 100%),
    #030712;
  background-repeat: repeat;
  background-size: 920px 460px, 820px 520px, 1080px 620px, auto;
}

body > nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.84) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Keep every project section beneath the navbar's frosted-glass layer. */
#post {
  position: relative;
  z-index: 0;
}

.dark #page h1 {
  color: #f8fafc;
}

.resume-page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.5rem 0 3rem;
}

.resume-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.resume-page__header h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
}

.resume-page__action {
  flex: 0 0 auto;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  font-family: Mulish, system-ui, sans-serif;
  font-weight: 700;
  text-decoration: none;
}

.resume-page__action:hover {
  border-color: rgba(248, 250, 252, 0.7);
  text-decoration: underline;
}

.resume-page__document {
  width: 100%;
}

.resume-page__status {
  margin: 2rem 0;
  color: #cbd5e1;
  font-family: Mulish, system-ui, sans-serif;
  font-size: 1rem;
}

.resume-page__status a {
  color: #f8fafc;
  font-weight: 700;
  text-decoration: underline;
}

.resume-pdf-page {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.resume-pdf-page canvas {
  display: block;
  max-width: 100%;
  height: auto;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

@media (max-width: 640px) {
  .resume-page {
    width: min(100% - 1rem, 1180px);
    padding-top: 5rem;
  }

  .resume-page__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .resume-pdf-page {
    margin-bottom: 1rem;
  }
}

/* Vertical arrow stack on the right */
#arrow-nav{
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 12px;
  z-index: 50;
}
#arrow-nav .arrow{
  width: 60px; height: 60px;
  border: none; border-radius: 9999px;
  background: rgba(255,255,255,.9);
  color: rgb(17, 24, 39); cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
#arrow-nav .arrow:disabled{ opacity:.4; cursor:not-allowed; }

/* Mobile: move to bottom center, side-by-side */
@media (max-width:640px){
  #arrow-nav{ right: 50%; left: 50%; top: auto; bottom: 16px; transform: translateX(-50%); grid-auto-flow: column; }
}

/* Scale + glow animation */
@keyframes ctaBlinkLight {
  0%, 100% { 
    transform: scale(1);
    text-shadow: 
    0 0 4 rgba(0, 0, 0, 0.983),
    0 0 10 rgba(0, 0, 0, 0.983); }
  50%      { 
    transform: scale(1.04);
    text-shadow:
    0 0 24px rgba(0, 0, 0, 1),
    0 0 30px rgba(0, 0, 0, 1); }
}
@keyframes ctaBlinkDark {
  0%, 100% { 
    transform: scale(1);
    text-shadow:
    0 0 4 rgb(255, 255, 255),
    0 0 10 rgba(255, 255, 255, 0.694); }
  50%      {
    transform: scale(1.04);
    text-shadow:
    0 0 24px rgba(255, 255, 255, 0.937),
    0 0 30px rgba(255, 255, 255, 0.937); }
}

/* Default (light mode) */
.cta-attn {
  display: inline-block;            /* needed for transform */
  animation: ctaBlinkLight 2.2s ease-in-out infinite;
}

/* Dark mode override (the <html> element has class="dark") */
.dark .cta-attn {
  animation: ctaBlinkDark 2.2s ease-in-out infinite;
}

.work-experience-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 1rem;
  background: transparent;
  color: #f8fafc;
}

.work-experience-section::before {
  display: none;
}

.work-experience-shell {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.work-experience-heading,
.projects-heading {
  text-align: center;
  margin-bottom: 4rem;
}

.work-experience-heading h2,
.projects-heading h2 {
  display: inline-block;
  margin: 0;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid rgba(248, 250, 252, 0.8);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
}

.work-experience-timeline {
  display: grid;
  gap: 3.5rem;
}

.work-experience-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px 74px minmax(0, 1fr);
  align-items: center;
}

.work-experience-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.work-experience-logo {
  width: 128px;
  height: 128px;
  border: 4px solid #f8fafc;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--experience-accent);
  color: #020617;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.35);
  font-family: Mulish, system-ui, sans-serif;
  font-size: 2.15rem;
  font-weight: 900;
  overflow: hidden;
}

.work-experience-logo.has-image {
  width: 180px;
  height: 150px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.work-experience-logo img {
  width: auto;
  height: auto;
  max-width: var(--experience-logo-size, 100%);
  max-height: var(--experience-logo-size, 100%);
  object-fit: contain;
}

.work-experience-rail {
  position: relative;
  height: 100%;
  min-height: 176px;
}

.work-experience-rail::before,
.work-experience-rail::after {
  content: "";
  position: absolute;
  background: rgba(148, 163, 184, 0.45);
}

.work-experience-rail::before {
  left: 50%;
  top: 50%;
  bottom: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.work-experience-item.has-previous .work-experience-rail::before {
  top: -2rem;
}

.work-experience-item.has-next .work-experience-rail::before {
  bottom: -2rem;
}

.work-experience-rail::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}

.work-experience-card {
  position: relative;
  padding: 2.1rem 2.4rem;
  border-left: 6px solid var(--experience-accent);
  border-radius: 8px;
  background: rgba(24, 31, 27, 0.92);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.work-experience-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.work-experience-period {
  margin: 0 0 0.8rem;
  font-family: Mulish, system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.work-experience-card h3 {
  margin: 0 0 0.55rem;
  color: var(--experience-accent);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.work-experience-role {
  margin: 0 0 1.15rem;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
}

.work-experience-summary {
  margin: 0 0 1rem;
  color: #cbd5e1;
  font-family: Mulish, system-ui, sans-serif;
  line-height: 1.7;
}

.work-experience-highlights {
  margin: 0;
  padding-left: 1.15rem;
  list-style: disc;
  color: #e5e7eb;
  font-family: Mulish, system-ui, sans-serif;
  line-height: 1.65;
}

.work-experience-highlights li::marker {
  color: var(--experience-accent);
}

.work-experience-highlights li + li {
  margin-top: 0.35rem;
}

@media (max-width: 760px) {
  .work-experience-section {
    padding: 5rem 1rem;
  }

  .work-experience-heading {
    text-align: center;
    margin-bottom: 3rem;
  }

  .work-experience-item {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
  }

  .work-experience-logo-wrap {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
  }

  .work-experience-logo {
    width: 64px;
    height: 64px;
    border-width: 3px;
    font-size: 1.1rem;
  }

  .work-experience-logo.has-image {
    width: 72px;
    height: 72px;
  }

  .work-experience-rail {
    position: absolute;
    left: 32px;
    top: 68px;
    bottom: -3rem;
    width: 2px;
    min-height: 0;
  }

  .work-experience-rail::before {
    left: 0;
    transform: none;
  }

  .work-experience-rail::after {
    display: none;
  }

  .work-experience-card {
    grid-column: 2;
    padding: 1.45rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .work-experience-item {
    grid-template-columns: 1fr;
  }

  .work-experience-logo-wrap,
  .work-experience-card {
    grid-column: 1;
  }

  .work-experience-logo-wrap {
    justify-content: center;
  }

  .work-experience-rail {
    display: none;
  }

  .work-experience-card {
    border-left-width: 4px;
  }
}
