@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #020202;
  --bg-2: #050505;
  --panel: rgba(5, 5, 7, 0.92);
  --glass: rgba(12, 12, 16, 0.8);
  --text: #f4f5fb;
  --muted: #c9c9d4;
  --accent: #39ff14;
  --accent-2: #7df9ff;
  --accent-3: #00ffc6;
  --border: rgba(255, 255, 255, 0.08);
  --success: #39ff14;
  --warning: #fbbf24;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.85);
  --radius: 18px;
  --reveal-distance: 26px;
  --reveal-blur: 12px;
  --reveal-duration: 620ms;
  --reveal-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Interactive background controls */
  --bg-shift-x: 0px;
  --bg-shift-y: 0px;
  --bg-tilt-x: 0deg;
  --bg-tilt-y: 0deg;
  --bg-glare-x: 52%;
  --bg-glare-y: 34%;
  --bg-layer-opacity: 0.9;
  --bg-grid-shift-x: 0px;
  --bg-grid-shift-y: 0px;
}

:root[data-theme='day'] {
  --bg: #050505;
  --bg-2: #090909;
  --panel: rgba(8, 8, 9, 0.94);
  --glass: rgba(16, 16, 20, 0.82);
  --text: #f8f9ff;
  --muted: #d6d6e2;
  --accent: #39ff14;
  --accent-2: #7df9ff;
  --accent-3: #00ffc6;
  --border: rgba(255, 255, 255, 0.12);
  --success: #39ff14;
  --warning: #fbbf24;
  --shadow: 0 24px 55px rgba(0, 0, 0, 0.75);
  --reveal-distance: 22px;
  --reveal-blur: 10px;
}

* {
  box-sizing: border-box;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: 'Share Tech Mono', 'Space Grotesk', monospace;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.06), transparent 45%),
    radial-gradient(circle at 78% 12%, rgba(255, 255, 255, 0.03), transparent 50%),
    radial-gradient(circle at 64% 82%, rgba(255, 255, 255, 0.05), transparent 52%),
    linear-gradient(145deg, var(--bg), var(--bg-2) 52%, #010101 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  perspective: 1600px;
  overflow-x: hidden;
  isolation: isolate;
  transition: background 200ms ease, color 200ms ease;
}

body.hydrated #fallback-home {
  display: none;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  inset: -24%;
  background:
    radial-gradient(circle at var(--bg-glare-x) var(--bg-glare-y), rgba(255, 255, 255, 0.32), transparent 52%),
    radial-gradient(circle at calc(var(--bg-glare-x) - 16%) calc(var(--bg-glare-y) + 12%), rgba(230, 230, 230, 0.2), transparent 56%),
    radial-gradient(circle at calc(var(--bg-glare-x) + 22%) calc(var(--bg-glare-y) - 16%), rgba(210, 210, 210, 0.14), transparent 60%),
    radial-gradient(circle at 72% 8%, rgba(200, 200, 200, 0.16), transparent 55%),
    radial-gradient(ellipse at 66% 78%, rgba(190, 190, 190, 0.1), transparent 58%),
    radial-gradient(circle at 10% 84%, rgba(235, 235, 235, 0.08), transparent 65%);
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.8));
  transform: translate3d(var(--bg-shift-x), var(--bg-shift-y), 0) rotateX(var(--bg-tilt-x)) rotateY(var(--bg-tilt-y)) scale(1.2);
  opacity: var(--bg-layer-opacity);
  transition: transform 260ms ease, opacity 400ms ease;
  mix-blend-mode: screen;
}

body::after {
  inset: -18%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.08), transparent 50%),
    radial-gradient(circle at 12% 86%, rgba(255, 255, 255, 0.05), transparent 50%);
  background-size: 54px 54px, 54px 54px, 120% 120%, 130% 130%;
  mix-blend-mode: screen;
  transform: translate3d(var(--bg-grid-shift-x), var(--bg-grid-shift-y), 0) scale(1.15);
  opacity: 0.6;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --bg-shift-x: 0px;
    --bg-shift-y: 0px;
    --bg-grid-shift-x: 0px;
    --bg-grid-shift-y: 0px;
    --bg-tilt-x: 0deg;
    --bg-tilt-y: 0deg;
  }

  body {
    perspective: none;
  }

  body::before,
  body::after {
    transition: none !important;
    transform: none !important;
  }
}

a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: #a78bfa;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 1.02rem;
}

.cert-label {
  color: var(--accent-2);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
}

.cert-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.65);
  background: rgba(125, 249, 255, 0.15);
  color: var(--accent-2);
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.cert-pill:hover {
  border-color: rgba(125, 249, 255, 0.95);
  background: rgba(125, 249, 255, 0.25);
  color: var(--accent-2);
  transform: translateY(-1px);
}

.cert-pill:focus-visible {
  outline: 2px solid #7df9ff;
  outline-offset: 3px;
}

.cert-sep {
  color: rgba(125, 249, 255, 0.75);
  font-size: 1.3rem;
  line-height: 1;
  padding: 0 0.2rem;
}

.cert-grid {
  margin-top: 1.2rem;
}

.cert-card {
  text-align: left;
  border: 1px solid rgba(125, 249, 255, 0.35);
  border-radius: 18px;
  padding: 1.05rem 1.2rem;
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.98), rgba(5, 7, 10, 0.92));
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, rgba(57, 255, 20, 0.65), rgba(125, 249, 255, 0.65), rgba(0, 255, 198, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

.cert-card::after {
  content: '';
  position: absolute;
  right: -10%;
  top: -40%;
  width: 70%;
  height: 160%;
  background: radial-gradient(circle, rgba(125, 249, 255, 0.18), transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.cert-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.cert-card__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.9), rgba(125, 249, 255, 0.9));
  opacity: 0.85;
}

.cert-card__meta {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.cert-card:hover {
  border-color: rgba(125, 249, 255, 0.7);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

.cert-card:focus-visible {
  outline: 2px solid #7df9ff;
  outline-offset: 3px;
}

.info-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
  z-index: 1000;
  background: rgba(1, 5, 12, 0.92);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  overflow-y: auto;
}

.info-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.info-modal__container {
  width: min(880px, 100%);
  background: radial-gradient(circle at top right, rgba(125, 249, 255, 0.14), rgba(12, 12, 18, 0.92));
  border: 1px solid rgba(125, 249, 255, 0.2);
  border-radius: 22px;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
  transform: translateY(25px) scale(0.98);
  opacity: 0;
  transition: transform 280ms var(--reveal-ease), opacity 280ms var(--reveal-ease);
}

.info-modal.is-open .info-modal__container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.info-modal__header {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.info-modal__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.72rem;
  color: rgba(125, 249, 255, 0.75);
}

.info-modal__title {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0.01em;
}

.info-modal__lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.info-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 249, 255, 0.4);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.info-modal__close:hover {
  background: rgba(125, 249, 255, 0.2);
  transform: rotate(-4deg) scale(1.05);
}

.info-modal__body {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.cert-modal__download,
.cert-modal__open {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.4);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(125, 249, 255, 0.08);
  transition: transform 120ms ease, border-color 150ms ease, background 150ms ease;
}

.cert-modal__download:hover,
.cert-modal__open:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 255, 0.8);
  background: rgba(125, 249, 255, 0.16);
}

.cert-modal__frame {
  position: relative;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(125, 249, 255, 0.5), rgba(57, 255, 20, 0.35));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.cert-modal__frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(10, 12, 22, 0.95), rgba(6, 8, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.cert-modal__pdf,
.cert-modal__image {
  width: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: #fff;
}

.cert-modal__pdf {
  height: min(70vh, 760px);
}

.cert-modal__pdf--resume {
  height: min(80vh, 900px);
}

.cert-modal__image {
  height: auto;
  max-height: min(70vh, 760px);
  object-fit: contain;
}

.cert-modal__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.portfolio-banner {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(1200px, calc(100% - 2.5rem));
  display: flex;
  justify-content: flex-end;
  z-index: 15;
  pointer-events: none;
}

.portfolio-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 200, 0.55);
  background: rgba(5, 12, 18, 0.92);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.portfolio-button__icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--accent-2);
}

.portfolio-button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.portfolio-button:hover,
.portfolio-button:focus-visible {
  transform: translateY(-1px) scale(1.01);
  border-color: rgba(125, 249, 255, 0.9);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.55), 0 0 22px rgba(57, 255, 20, 0.18);
  outline: none;
}

@media (max-width: 640px) {
  .portfolio-banner {
    width: calc(100% - 1.5rem);
    top: 0.85rem;
  }

  .portfolio-button {
    width: 100%;
    justify-content: center;
  }
}

main {
  max-width: 1150px;
  margin: 0 auto;
  padding: 2.2rem 1.25rem 3.5rem;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  color: var(--text);
  margin-top: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
}

.type-cursor {
  display: inline-block;
  width: 0.62ch;
  height: 0.9em;
  margin-left: 0.12em;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.45);
  vertical-align: -0.08em;
  opacity: 1;
}

.type-cursor--blink {
  animation: typewriter-blink 1s steps(1, end) infinite;
}

@keyframes typewriter-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

p {
  margin: 0 0 0.75rem 0;
  color: var(--muted);
}

.section,
section {
  background: linear-gradient(180deg, rgba(8, 8, 10, 0.96), rgba(2, 2, 2, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.65rem;
  margin-bottom: 1.65rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.section::after,
section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.16), transparent 32%);
  pointer-events: none;
  opacity: 0.65;
}

.contact-section {
  overflow: visible;
}

.section-content,
.container {
  position: relative;
  z-index: 1;
}

.section-content p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.contact-reveal {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 0;
  background: linear-gradient(140deg, rgba(12, 14, 20, 0.9), rgba(4, 6, 10, 0.96));
  box-shadow: var(--shadow);
  overflow: visible;
  position: relative;
}

.contact-reveal__summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-reveal__summary::-webkit-details-marker {
  display: none;
}

.contact-reveal__summary::after {
  content: '+';
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.45);
  color: var(--accent-2);
  font-size: 1rem;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.contact-reveal[open] .contact-reveal__summary::after {
  content: '-';
  transform: rotate(180deg);
  background: rgba(125, 249, 255, 0.18);
  color: #e6fbff;
}

.contact-reveal[open] .contact-reveal__summary {
  border-bottom-color: rgba(125, 249, 255, 0.3);
}

.contact-reveal__summary:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.7);
  outline-offset: 3px;
  border-radius: 14px;
}

.contact-reveal__body {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  padding: 1rem 1.2rem;
  color: var(--text);
  background: linear-gradient(160deg, rgba(10, 12, 18, 0.98), rgba(4, 6, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.projects-duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.projects-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.projects-column > .highlight {
  margin-bottom: 0.5rem;
}

.article-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  position: relative;
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 84% 22%, rgba(200, 200, 200, 0.09), transparent 38%),
    linear-gradient(190deg, rgba(10, 10, 12, 0.92), rgba(3, 3, 3, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.card-link-text {
  margin-top: 0.85rem;
  font-weight: 600;
  color: var(--accent-2);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.card-soft {
  background: linear-gradient(180deg, rgba(15, 15, 17, 0.92), rgba(5, 5, 5, 0.94));
  border-style: dashed;
}

.card-action {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.card-action:hover {
  border-color: rgba(125, 249, 255, 0.85);
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.1);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.card-heading h3 {
  margin: 0;
}

.card-heading-text h3 {
  margin: 0;
}

.card-heading-text .badge-soft {
  margin-bottom: 0.35rem;
  display: inline-flex;
}

.card-icon {
  --icon-size: 22px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: '';
  width: var(--icon-size);
  height: var(--icon-size);
  display: block;
  mask: var(--icon-url) center/contain no-repeat;
  -webkit-mask: var(--icon-url) center/contain no-repeat;
  background: currentColor;
  opacity: 0.9;
}

.card-icon--fallback {
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.9), rgba(0, 255, 198, 0.75));
  color: #001508;
  border-color: var(--border);
}

.card-icon.card-icon--fallback::before {
  display: none;
}

.card-icon-fallback {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

.muted-faint {
  font-size: 0.72rem;
  opacity: 0.55;
}

.footnote {
  font-size: 0.9rem;
  margin-top: 0.65rem;
}

.fade-whisper {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08rem;
  margin-left: 0.2rem;
  font-size: 0.85rem;
}

.fade-letter {
  display: inline-block;
  opacity: calc(1 - (var(--step) * 0.035));
  font-size: calc(0.82rem - (var(--step) * 0.012rem));
  transform: translateY(calc(var(--step) * 0.02rem));
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.list-inline {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.list-inline li {
  padding: 0.1rem 0;
  color: #e5e7eb;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
  align-items: stretch;
}

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

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

.legacy-resume {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.legacy-note {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-copy h1 {
  margin-bottom: 0.3rem;
}

.hero-copy p {
  font-size: 1.02rem;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 1.5rem;
  background: radial-gradient(circle at 18% 18%, rgba(182, 241, 255, 0.16), transparent 40%),
    radial-gradient(circle at 82% 82%, rgba(176, 132, 255, 0.22), transparent 36%),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
  display: grid;
  gap: 0.75rem;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  font-size: 0.8rem;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(182, 241, 255, 0.4);
  animation: pulse 2s infinite;
}

.focus-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
  color: var(--text);
}

.focus-list li {
  color: var(--muted);
}

.stretch {
  justify-content: center;
  width: 100%;
}

.callout {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 0.35rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 0.75rem;
}

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  transition: transform 150ms ease, border-color 150ms ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(182, 241, 255, 0.35);
}

.stat-card h3 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.35rem;
}

.event-list {
  gap: 1.2rem;
}

.focus-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0 1rem;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(182, 241, 255, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(182, 241, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(182, 241, 255, 0);
  }
}

.meta-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.meta-card {
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(140deg, rgba(182, 241, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: #e9eefc;
  font-weight: 700;
  display: grid;
  gap: 0.15rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.chip-slim {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e8edf7;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.workflow-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill-check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #0f172a;
  font-weight: 800;
  font-size: 0.9rem;
}

.chip-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(182, 241, 255, 0.14);
}

.signal-card {
  position: relative;
  padding: 1.15rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at 30% 20%, rgba(176, 132, 255, 0.16), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(75, 225, 236, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 1rem;
}

.signal-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.25rem;
  margin: 0;
}

.signal-list {
  display: grid;
  gap: 0.6rem;
}

.signal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-label {
  font-weight: 700;
}

.signal-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(182, 241, 255, 0.28), rgba(176, 132, 255, 0.3));
  color: #061026;
  font-weight: 800;
}

.accent-underline {
  display: inline-block;
  position: relative;
}

.accent-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.35;
  border-radius: 999px;
  transform: translateY(4px);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 14px;
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 150ms ease, border-color 120ms ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  color: #0b0f1e;
  box-shadow: 0 16px 36px rgba(176, 132, 255, 0.34);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: var(--border);
}

.btn-writeup {
  border: 1px solid rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.12);
  color: #fbbf24;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
}

.btn-writeup:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: rgba(251, 191, 36, 0.9);
  transform: translateY(-1px);
}

.btn-compact {
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

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

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
}

.article-visual {
  position: relative;
  min-height: 170px;
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  display: grid;
  align-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.article-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  color: #e5edff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.article-chip::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px rgba(139, 209, 255, 0.32);
}

.article-date {
  font-weight: 700;
  color: #e0f2fe;
  padding: 0.25rem 0;
  width: fit-content;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.24), transparent 36%);
  opacity: 0.5;
  mix-blend-mode: screen;
  pointer-events: none;
}

.article-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.article-summary {
  color: var(--muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0;
  color: #dbeafe;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.tag::before {
  content: '•';
  margin-right: 0.45rem;
  color: var(--accent);
}

.stacked-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  padding: 1.35rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.event-card.solo-event {
  border-color: rgba(57, 255, 20, 0.45);
  box-shadow: 0 24px 55px rgba(57, 255, 20, 0.25);
}

.event-card.solo-event::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 18% 22%, rgba(57, 255, 20, 0.18), transparent 45%),
    radial-gradient(circle at 82% 12%, rgba(125, 249, 255, 0.15), transparent 40%);
  opacity: 0.6;
}

.event-card.modern {
  background: radial-gradient(circle at 24% 18%, rgba(182, 241, 255, 0.14), transparent 42%),
    radial-gradient(circle at 92% 12%, rgba(176, 132, 255, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(182, 241, 255, 0.18);
  transition: transform 180ms ease, border-color 160ms ease, box-shadow 180ms ease;
}

.event-card.modern:hover {
  transform: translateY(-4px);
  border-color: rgba(182, 241, 255, 0.38);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.event-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.solo-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 20, 0.6);
  background: rgba(57, 255, 20, 0.18);
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(57, 255, 20, 0.35);
}

.solo-indicator::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.7);
}

.event-title-block {
  display: grid;
  gap: 0.35rem;
  margin: 0.75rem 0 1rem;
}

.event-title-block h3 {
  margin: 0;
}

.event-title-link {
  color: inherit;
  text-decoration: none;
}

.event-title-link:hover,
.event-title-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
}

.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.meta-tile {
  padding: 0.8rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  display: grid;
  gap: 0.15rem;
}

.meta-tile strong {
  color: #e8edf7;
  letter-spacing: -0.01em;
}

.placement-rank {
  font-size: 1.15rem;
}

.meta-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.event-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.reveal-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.captcha-row {
  display: grid;
  gap: 0.35rem;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #e0f2fe;
}

.article-link:hover {
  color: #a5b4fc;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}

.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.2rem;
  border: none;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.filter-toggle-icon {
  transition: transform 0.15s ease;
  display: inline-block;
}

.filter-bar.expanded .filter-toggle-icon {
  transform: rotate(180deg);
}

.filters-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-bar.collapsed .filters-panel {
  display: none;
}

.filter-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.tag-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-toggle {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.tag-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.4);
}

.tag-toggle.active {
  background: linear-gradient(120deg, rgba(139, 92, 246, 0.2), rgba(34, 211, 238, 0.25));
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.18);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  text-align: left;
}

.stat-card h3 {
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--glass);
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
}

th,
td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

th {
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5f5;
  font-weight: 700;
}

footer {
  text-align: center;
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--muted);
}

.footer-links {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  font-weight: 700;
  color: var(--text);
}

input,
textarea {
  width: 100%;
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.7);
  outline-offset: 2px;
}

button {
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1021;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.28);
}

button:disabled {
  background: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
  color: var(--muted);
  box-shadow: none;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.notice {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.timeline {
  display: grid;
  gap: 0.9rem;
}

.timeline-item {
  display: flex;
  gap: 0.95rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.timeline-state {
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.timeline-state.new {
  background: rgba(109, 40, 217, 0.16);
  color: #ede9fe;
}

.timeline-state.shipped {
  background: rgba(22, 163, 74, 0.16);
  color: #bbf7d0;
}

.timeline-body h3 {
  margin-bottom: 0.3rem;
}

.highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.2rem 0;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
}

.highlight::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}

.quick-routes-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}

.responsive-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.responsive-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.reveal-up {
  --reveal-delay: 0ms;
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  filter: blur(var(--reveal-blur));
  transition: opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease),
    filter var(--reveal-duration) var(--reveal-ease);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: none;
  transition-delay: var(--reveal-delay);
}

.reveal-delay {
  --reveal-delay: 140ms;
}

.reveal-delay-lg {
  --reveal-delay: 260ms;
}

body.resume-modal-open {
  overflow: hidden;
}

.resume-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  padding: clamp(0.5rem, 2vw, 1.5rem);
  z-index: 1200;
  background:
    radial-gradient(circle at 20% 20%, rgba(57, 255, 20, 0.12), transparent 45%),
    radial-gradient(circle at 80% 12%, rgba(125, 249, 255, 0.18), transparent 45%),
    rgba(0, 0, 0, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  overflow: auto;
}

.resume-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.resume-modal__container {
  width: min(96vw, 1100px);
  height: min(92vh, 1200px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(10, 12, 20, 0.98), rgba(4, 6, 12, 0.96));
  color: var(--text);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(22px) scale(0.98);
  opacity: 0;
  transition: transform 320ms var(--reveal-ease), opacity 320ms var(--reveal-ease);
  margin: auto;
}

.resume-modal.is-open .resume-modal__container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.resume-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 3.5rem 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(16, 20, 32, 0.95), rgba(6, 8, 18, 0.95)),
    radial-gradient(circle at 20% 20%, rgba(125, 249, 255, 0.18), transparent 55%);
}

.resume-modal__eyebrow {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
}

.resume-modal__title {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.resume-modal__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.resume-modal__download {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 249, 255, 0.4);
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(125, 249, 255, 0.08);
  transition: transform 120ms ease, border-color 150ms ease, background 150ms ease;
}

.resume-modal__download:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 249, 255, 0.8);
  background: rgba(125, 249, 255, 0.16);
}

.resume-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 1px solid rgba(125, 249, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.resume-modal__close:hover {
  background: rgba(125, 249, 255, 0.2);
  transform: rotate(-4deg) scale(1.05);
}

.resume-modal__body {
  flex: 1;
  min-height: 0;
  padding: clamp(0.5rem, 1.4vw, 0.85rem);
  overflow-y: auto;
  background:
    radial-gradient(circle at 10% 10%, rgba(57, 255, 20, 0.08), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(125, 249, 255, 0.12), transparent 45%),
    linear-gradient(160deg, rgba(8, 10, 20, 0.9), rgba(5, 7, 14, 0.95));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.resume-modal__frame {
  position: relative;
  flex: 1;
  min-height: 0;
  height: min(1600px, 140vh);
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(125, 249, 255, 0.5), rgba(57, 255, 20, 0.35));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.resume-modal__frame::before {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 14px;
  background: linear-gradient(140deg, rgba(10, 12, 22, 0.95), rgba(6, 8, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.resume-modal__pdf {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 14px;
  background: #fff;
}

.resume-modal__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .type-cursor--blink {
    animation: none;
  }
}

@media (max-width: 720px) {
  main {
    padding: 1.5rem 1rem 2.25rem;
  }

  .resume-modal__container {
    width: 100%;
    height: 94vh;
  }

  .resume-modal__header {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 3rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 540px) {
  .section,
  section {
    padding: 1.25rem;
  }

  .card {
    padding: 1.1rem;
  }
}
