:root {
  --bg: #080a0f;
  --panel: rgba(22, 27, 38, 0.72);
  --panel-strong: rgba(29, 36, 50, 0.88);
  --line: rgba(175, 250, 255, 0.26);
  --line-strong: rgba(175, 250, 255, 0.52);
  --text: #eff7ff;
  --muted: #aebbc9;
  --cyan: #77f4ff;
  --blue: #6fa7ff;
  --green: #8dffca;
  --shadow: rgba(0, 234, 255, 0.16);
}

@font-face {
  font-family: "Gotham Medium";
  src: url("gothammedium-webfont.woff");
}

@font-face {
  font-family: "Gotham Bold";
  src: url("gothambold-webfont.woff");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-color: rgba(119, 244, 255, 0.72) rgba(8, 10, 15, 0.72);
  scrollbar-width: thin;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Gotham Medium", Arial, sans-serif;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at top left, rgba(0, 234, 255, 0.15), transparent 36rem),
    var(--bg);
  background-size: 40px 40px, 40px 40px, auto, auto;
  overflow-x: hidden;
  isolation: isolate;
}

* {
  scrollbar-color: rgba(119, 244, 255, 0.72) rgba(8, 10, 15, 0.72);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 0.72rem;
  height: 0.72rem;
}

*::-webkit-scrollbar-track {
  border: 1px solid rgba(119, 244, 255, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(119, 244, 255, 0.08), rgba(141, 255, 202, 0.035)),
    rgba(8, 10, 15, 0.68);
  box-shadow: inset 0 0 14px rgba(0, 234, 255, 0.08);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(8, 10, 15, 0.86);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(119, 244, 255, 0.95), rgba(141, 255, 202, 0.78));
  box-shadow: 0 0 12px rgba(119, 244, 255, 0.24);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(119, 244, 255, 0.88));
}

*::-webkit-scrollbar-corner {
  background: rgba(8, 10, 15, 0.72);
}

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

.matrix-container {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  min-height: 100vh;
  height: 100%;
  display: flex;
  overflow: hidden;
  pointer-events: none;
  background: #0000002f;
}

.matrix-pattern {
  position: relative;
  width: 1000px;
  min-height: 100vh;
  height: 100%;
  flex-shrink: 0;
}

.matrix-column {
  position: absolute;
  top: -100%;
  width: 20px;
  height: 100%;
  font-size: 15px;
  line-height: 17px;
  font-weight: bold;
  animation: fall linear infinite;
  animation-delay: calc(var(--delay, 0s) + var(--pattern-delay, 0s));
  animation-duration: var(--duration, 8s);
  white-space: nowrap;
  --matrix-peak: 0.78;
  --matrix-mid: 0.62;
}

.matrix-pattern:nth-child(1) {
  --pattern-delay: 0s;
}

.matrix-pattern:nth-child(2) {
  --pattern-delay: -2.6s;
}

.matrix-pattern:nth-child(3) {
  --pattern-delay: -5.1s;
}

.matrix-pattern:nth-child(4) {
  --pattern-delay: -7.4s;
}

.matrix-column::before {
  content: "QUESTSYSTEMSAVELOADRUNTIMESTATEDATAASSETS";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 5%,
    #00eaff 10%,
    #00ddff 20%,
    #00cedd 30%,
    #00a8bb 40%,
    #003b99 50%,
    #001477 60%,
    #003755 70%,
    #002133 80%,
    rgba(36, 142, 255, 0.5) 90%,
    transparent 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  writing-mode: vertical-lr;
  letter-spacing: 1px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.matrix-column:nth-child(1) { left: 0px; --delay: -6.8s; --duration: 8.4s; }
.matrix-column:nth-child(2) { left: 25px; --delay: -2.1s; --duration: 10.6s; }
.matrix-column:nth-child(3) { left: 50px; --delay: -7.9s; --duration: 7.2s; }
.matrix-column:nth-child(4) { left: 75px; --delay: -0.8s; --duration: 9.6s; }
.matrix-column:nth-child(5) { left: 100px; --delay: -5.4s; --duration: 8.8s; }
.matrix-column:nth-child(6) { left: 125px; --delay: -10.7s; --duration: 11.4s; }
.matrix-column:nth-child(7) { left: 150px; --delay: -3.6s; --duration: 7.8s; }
.matrix-column:nth-child(8) { left: 175px; --delay: -8.9s; --duration: 9.1s; }
.matrix-column:nth-child(9) { left: 200px; --delay: -1.4s; --duration: 10.2s; }
.matrix-column:nth-child(10) { left: 225px; --delay: -6.2s; --duration: 7.7s; }
.matrix-column:nth-child(11) { left: 250px; --delay: -11s; --duration: 11s; }
.matrix-column:nth-child(12) { left: 275px; --delay: -4.3s; --duration: 8.5s; }
.matrix-column:nth-child(13) { left: 300px; --delay: -9.1s; --duration: 9.8s; }
.matrix-column:nth-child(14) { left: 325px; --delay: -2.7s; --duration: 7.9s; }
.matrix-column:nth-child(15) { left: 350px; --delay: -7.4s; --duration: 10.8s; }
.matrix-column:nth-child(16) { left: 375px; --delay: -0.2s; --duration: 9.3s; }
.matrix-column:nth-child(17) { left: 400px; --delay: -5.9s; --duration: 10.1s; }
.matrix-column:nth-child(18) { left: 425px; --delay: -9.8s; --duration: 7.5s; }
.matrix-column:nth-child(19) { left: 450px; --delay: -3.1s; --duration: 11.2s; }
.matrix-column:nth-child(20) { left: 475px; --delay: -7s; --duration: 9.5s; }
.matrix-column:nth-child(21) { left: 500px; --delay: -1.8s; --duration: 7.1s; }
.matrix-column:nth-child(22) { left: 525px; --delay: -8.3s; --duration: 10.5s; }
.matrix-column:nth-child(23) { left: 550px; --delay: -4.8s; --duration: 8.6s; }
.matrix-column:nth-child(24) { left: 575px; --delay: -10.9s; --duration: 11.6s; }
.matrix-column:nth-child(25) { left: 600px; --delay: -2.4s; --duration: 7.3s; }
.matrix-column:nth-child(26) { left: 625px; --delay: -6.7s; --duration: 9.7s; }
.matrix-column:nth-child(27) { left: 650px; --delay: -0.6s; --duration: 10.7s; }
.matrix-column:nth-child(28) { left: 675px; --delay: -5.1s; --duration: 7.8s; }
.matrix-column:nth-child(29) { left: 700px; --delay: -9.5s; --duration: 9.9s; }
.matrix-column:nth-child(30) { left: 725px; --delay: -3.8s; --duration: 8.9s; }
.matrix-column:nth-child(31) { left: 750px; --delay: -7.2s; --duration: 7.6s; }
.matrix-column:nth-child(32) { left: 775px; --delay: -1.1s; --duration: 10.9s; }
.matrix-column:nth-child(33) { left: 800px; --delay: -5.6s; --duration: 8.7s; }
.matrix-column:nth-child(34) { left: 825px; --delay: -10.2s; --duration: 10.1s; }
.matrix-column:nth-child(35) { left: 850px; --delay: -2.9s; --duration: 8.1s; }
.matrix-column:nth-child(36) { left: 875px; --delay: -8.7s; --duration: 11.1s; }
.matrix-column:nth-child(37) { left: 900px; --delay: -4s; --duration: 9.4s; }
.matrix-column:nth-child(38) { left: 925px; --delay: -6.4s; --duration: 7.4s; }
.matrix-column:nth-child(39) { left: 950px; --delay: -0.9s; --duration: 10.3s; }
.matrix-column:nth-child(40) { left: 975px; --delay: -7.8s; --duration: 9.2s; }

.matrix-column:nth-child(3n) {
  font-size: 13px;
  line-height: 15px;
  --matrix-peak: 0.46;
  --matrix-mid: 0.34;
  filter: blur(0.2px);
}

.matrix-column:nth-child(4n) {
  font-size: 17px;
  line-height: 19px;
  --matrix-peak: 0.88;
  --matrix-mid: 0.72;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.24);
}

.matrix-column:nth-child(6n) {
  font-size: 12px;
  line-height: 14px;
  --matrix-peak: 0.36;
  --matrix-mid: 0.24;
  filter: blur(0.35px);
}

.matrix-column:nth-child(10n) {
  font-size: 18px;
  line-height: 20px;
  --matrix-peak: 0.96;
  --matrix-mid: 0.78;
  text-shadow: 0 0 14px rgba(119, 244, 255, 0.32);
}

.matrix-column:nth-child(odd)::before {
  content: "GAMEPLAYSYSTEMSOBJECTIVEGATESCOMBATFLOW";
}

.matrix-column:nth-child(even)::before {
  content: "UNITYCSHARPWPFXAMLWIN32APISJSONTOOLING";
}

.matrix-column:nth-child(3n)::before {
  content: "UNREALENGINEBLUEPRINTSCPLUSPLUSBEHAVIORTREES";
}

.matrix-column:nth-child(4n)::before {
  content: "DESIGNERWORKFLOWDATAASSETSEDITORFRIENDLY";
}

.matrix-column:nth-child(5n)::before {
  content: "USAFVETERANCYBEROPSNETWORKPROJECTTRACKING";
}

.matrix-column:nth-child(6n)::before {
  content: "SAVELOADCHECKPOINTSPERSISTENTRUNTIMESTATE";
}

.matrix-column:nth-child(7n)::before {
  content: "AUTOMATIONMACROOVERLAYHOTKEYPROCESSTARGETING";
}

.matrix-column:nth-child(8n)::before {
  content: "PERFORCEGITVISUALSTUDIOLINUXDOCUMENTATION";
}

@keyframes fall {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  8% {
    opacity: var(--matrix-peak);
  }

  86% {
    opacity: var(--matrix-mid);
  }

  100% {
    transform: translateY(230%);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .matrix-column {
    font-size: 14px;
    line-height: 16px;
    width: 18px;
  }
}

@media (max-width: 480px) {
  .matrix-column {
    font-size: 12px;
    line-height: 14px;
    width: 15px;
  }
}

.glow {
  position: fixed;
  z-index: 1;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 220, 226, 0.45), transparent 70%);
  filter: blur(32px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 10, 15, 0.76);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.08);
}

.brand,
.nav,
.actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  font-family: "Gotham Bold", Arial, sans-serif;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(119, 244, 255, 0.1);
}

.nav {
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  transition: 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(119, 244, 255, 0.1);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(119, 244, 255, 0.12);
  box-shadow: 0 0 16px rgba(119, 244, 255, 0.1) inset;
}

.section-rail {
  position: fixed;
  top: 50%;
  left: max(0.75rem, calc((100vw - 1180px) / 2 - 11rem));
  z-index: 9;
  display: grid;
  gap: 0.7rem;
  transform: translateY(-50%);
}

.section-rail a {
  position: relative;
  display: grid;
  grid-template-columns: 0.55rem auto;
  align-items: center;
  gap: 0.65rem;
  max-width: 8rem;
  color: rgba(174, 187, 201, 0.68);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: 180ms ease;
}

.section-rail a::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid rgba(119, 244, 255, 0.42);
  border-radius: 50%;
  background: rgba(8, 10, 15, 0.76);
  box-shadow: 0 0 12px rgba(119, 244, 255, 0.1);
}

.section-rail a.active {
  color: var(--text);
}

.section-rail a.active::before {
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(119, 244, 255, 0.28);
}

.section-rail a::after {
  content: attr(aria-label);
  position: absolute;
  left: calc(100% + 0.6rem);
  top: 50%;
  padding: 0.3rem 0.45rem;
  border: 1px solid rgba(119, 244, 255, 0.24);
  border-radius: 6px;
  color: var(--text);
  background: rgba(8, 10, 15, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(-0.25rem);
  transition: 160ms ease;
  white-space: nowrap;
}

.section-rail a:hover::after,
.section-rail a:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

main {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 0 2rem;
}

.hero-copy,
.snapshot,
.project-card,
.skill-panel,
.resume-card,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 40px var(--shadow);
}

.hero-copy {
  padding: clamp(1.3rem, 4vw, 3rem);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Gotham Bold", Arial, sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 64ch;
  font-size: 1.04rem;
}

.actions,
.contact-actions {
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.8rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  transition: 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 0 18px rgba(119, 244, 255, 0.18);
}

.btn.primary {
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  border-color: transparent;
}

.snapshot {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--panel-strong);
}

.snapshot div {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.metric {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--green);
  font-family: "Gotham Bold", Arial, sans-serif;
}

.section {
  padding: 4rem 0;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading p {
  max-width: 68ch;
}

.section-note {
  margin-top: -0.3rem;
  color: var(--green);
  font-size: 0.92rem;
}

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

.credential-card,
.education-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 34px rgba(0, 234, 255, 0.1);
}

.credential-card {
  min-height: 13rem;
  padding: 1.1rem;
}

.credential-card i {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(141, 255, 202, 0.08);
}

.credential-card span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--text);
  font-family: "Gotham Bold", Arial, sans-serif;
  font-size: 1.2rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(8, 10, 15, 0.56);
  backdrop-filter: blur(10px);
}

.filter-btn {
  min-height: 2.45rem;
  padding: 0.55rem 0.78rem;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font: inherit;
  background: transparent;
  cursor: pointer;
  transition: 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(119, 244, 255, 0.1);
  box-shadow: 0 0 16px rgba(119, 244, 255, 0.1) inset;
}

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

.portfolio-item.hidden {
  display: none;
}

.project-card {
  position: relative;
  min-height: 20rem;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
  transform-origin: top left;
  will-change: transform;
  transition: 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}

.project-card.featured {
  background:
    linear-gradient(135deg, rgba(119, 244, 255, 0.13), transparent),
    var(--panel);
}

.project-card.starred {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(119, 244, 255, 0.1), rgba(141, 255, 202, 0.035)),
    var(--panel);
}

.project-card.is-expanded {
  min-height: 30rem;
  background:
    linear-gradient(135deg, rgba(119, 244, 255, 0.1), rgba(141, 255, 202, 0.035)),
    rgba(14, 18, 28, 0.94);
  border-color: var(--line-strong);
}

.project-card.is-expanded:hover {
  transform: none;
}

.project-card.is-expanded .detail-toggle {
  border-color: rgba(141, 255, 202, 0.48);
  background: rgba(141, 255, 202, 0.12);
}

.project-card.is-compact {
  min-height: 14.5rem;
  padding: 0.95rem;
}

.project-card.is-compact .card-topline {
  margin-bottom: 0.6rem;
  padding-bottom: 0;
  font-size: 0.76rem;
}

.project-card.is-compact h3 {
  font-size: 1.05rem;
}

.project-card.is-compact > p,
.project-card.is-compact > a,
.project-card.is-compact .card-actions,
.project-card.is-compact .project-card-expanded {
  display: none;
}

.project-card.is-compact .tag-row {
  margin-top: 0.4rem;
}

.project-card.is-compact .tag-row span {
  padding: 0.32rem 0.42rem;
  font-size: 0.72rem;
}

.badge {
  width: fit-content;
  margin-bottom: 0.8rem;
  padding: 0.36rem 0.52rem;
  border: 1px solid rgba(141, 255, 202, 0.38);
  border-radius: 6px;
  color: var(--green);
  background: rgba(141, 255, 202, 0.08);
  font-size: 0.75rem;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0;
  color: var(--cyan);
  font-size: 0.84rem;
}

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

.project-card a {
  width: fit-content;
  margin-top: 0;
  color: var(--green);
  font-family: "Gotham Bold", Arial, sans-serif;
  transition: 180ms ease;
}

.project-card:not(:has(.tag-row)) > a,
.project-card:not(:has(.tag-row)) > .card-actions,
.project-card:not(:has(.tag-row)) > .detail-toggle {
  margin-top: auto;
}

.project-card > a:last-child,
.project-card > .card-actions:last-child,
.project-card > .detail-toggle:last-child {
  margin-bottom: 0;
}

.project-card a:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(141, 255, 202, 0.28);
}

.detail-toggle {
  width: fit-content;
  margin-top: 1.2rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(141, 255, 202, 0.24);
  border-radius: 6px;
  color: var(--green);
  font: inherit;
  background: rgba(141, 255, 202, 0.06);
  cursor: pointer;
  font-size: 0.9rem;
  transition: 180ms ease;
}

.detail-toggle:hover,
.detail-toggle.active {
  border-color: rgba(141, 255, 202, 0.48);
  background: rgba(141, 255, 202, 0.12);
}

.card-actions .detail-toggle {
  margin-top: 0;
}

.project-card-expanded {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-0.35rem);
  transition: max-height 260ms ease, opacity 200ms ease, transform 220ms ease;
}

.project-card.is-expanded .project-card-expanded {
  max-height: 88rem;
  opacity: 1;
  transform: translateY(0);
}

.project-card-expanded .detail-divider {
  margin-top: 1.1rem;
}

.portfolio-detail-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding: 1.15rem;
}

.detail-main h3 {
  margin-bottom: 0.7rem;
}

.detail-main p {
  margin-bottom: 0;
}

.detail-side {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.detail-side div {
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.detail-side span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--cyan);
  font-family: "Gotham Bold", Arial, sans-serif;
  font-size: 0.8rem;
}

.detail-side p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
}

.detail-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.detail-bullets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
  padding: 1.15rem 1.35rem 1.35rem;
  color: var(--muted);
  line-height: 1.65;
}

.detail-bullet {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.detail-bullet:hover,
.detail-bullet[open] {
  border-color: rgba(119, 244, 255, 0.28);
  background: rgba(119, 244, 255, 0.055);
  box-shadow: 0 0 18px rgba(119, 244, 255, 0.08) inset;
}

.detail-bullet summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}

.detail-bullet summary::-webkit-details-marker {
  display: none;
}

.detail-bullet summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.32rem solid transparent;
  border-bottom: 0.32rem solid transparent;
  border-left: 0.42rem solid var(--green);
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.detail-bullet[open] summary::before {
  transform: rotate(90deg);
}

.detail-bullet summary span {
  font-family: "Gotham Bold", Arial, sans-serif;
  font-size: 0.9rem;
}

.detail-bullet p {
  margin: 0;
  padding: 0 0.95rem 0.95rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  margin-bottom: 0;
}

.tag-row span {
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
}

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

.system-card {
  min-height: 16rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 34px rgba(0, 234, 255, 0.11);
}

.system-card i {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(141, 255, 202, 0.08);
}

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  align-items: start;
}

.skill-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 1rem;
}

.skill-panel span {
  padding: 0.65rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.education-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  padding: 1.2rem;
}

.education-card p {
  margin-bottom: 0;
}

.resume-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
}

.resume-card p {
  max-width: 58ch;
  margin-bottom: 0;
}

.resume-open,
.resume-close {
  cursor: pointer;
  font: inherit;
}

.resume-overlay {
  --resume-overlay-top: 5.8rem;
  position: fixed;
  inset: 0;
  z-index: 9;
  padding: var(--resume-overlay-top) 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(8, 10, 15, 0.58), rgba(8, 10, 15, 0.74)),
    radial-gradient(circle at top left, rgba(119, 244, 255, 0.09), transparent 34rem);
  backdrop-filter: blur(18px);
}

.resume-overlay[hidden] {
  display: none;
}

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

.resume-viewer {
  height: 100%;
  width: min(1180px, 100%);
  justify-self: center;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
}

.resume-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 27, 38, 0.86);
  box-shadow: 0 0 34px rgba(0, 234, 255, 0.12);
}

.resume-viewer-bar .eyebrow,
.resume-viewer-bar h2 {
  margin: 0;
}

.resume-close {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  transition: 180ms ease;
}

.resume-close:hover {
  border-color: var(--line-strong);
  color: #061018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  transform: translateY(-1px);
}

.resume-pages {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  overflow: auto;
  padding: 0 0.15rem 1rem;
}

.resume-page {
  position: relative;
  align-self: start;
  min-height: 20rem;
  margin: 0;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(239, 247, 255, 0.06);
  box-shadow: 0 0 38px rgba(0, 234, 255, 0.1);
}

.resume-page-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  font: inherit;
}

.resume-page-button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.resume-page-button:hover img {
  filter: brightness(1.07);
}

.resume-page img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  background: rgba(8, 10, 15, 0.7);
  object-fit: contain;
}

.resume-page figcaption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.34rem 0.5rem;
  border: 1px solid rgba(119, 244, 255, 0.28);
  border-radius: 6px;
  color: var(--text);
  background: rgba(8, 10, 15, 0.82);
  font-size: 0.72rem;
}

.resume-page.is-missing {
  min-height: 32rem;
  display: grid;
  place-items: center;
}

.resume-page.is-missing img {
  display: none;
}

.resume-page.is-missing .resume-page-button {
  display: none;
}

.resume-page.is-missing::after {
  content: "Add this screenshot as " attr(data-missing-src);
  max-width: 24ch;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.resume-zoom {
  position: fixed;
  inset: 0;
  z-index: 9;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 1rem;
  padding: var(--resume-overlay-top) 1rem 1rem;
  background: rgba(8, 10, 15, 0.52);
  backdrop-filter: blur(10px);
}

.resume-zoom[hidden] {
  display: none;
}

.resume-zoom-bar {
  width: min(1180px, 100%);
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(22, 27, 38, 0.9);
  box-shadow: 0 0 34px rgba(0, 234, 255, 0.12);
}

.resume-zoom-bar span {
  color: var(--muted);
  font-size: 0.86rem;
}

.resume-zoom-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resume-zoom-stage {
  width: min(1180px, 100%);
  min-height: 0;
  justify-self: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(3, 6, 10, 0.72);
}

.resume-zoom-img {
  display: block;
  width: min(100%, 980px);
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 38px rgba(0, 234, 255, 0.16);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 4vw, 2rem);
}

.contact p {
  max-width: 62ch;
  margin-bottom: 0;
}

footer {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 2rem));
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 1340px) {
  .topbar,
  main,
  footer {
    width: min(1180px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
  }

  .section-rail {
    left: 0.75rem;
    gap: 0.55rem;
    padding: 0.65rem 0.4rem;
    border: 1px solid rgba(119, 244, 255, 0.14);
    border-radius: 999px;
    background: rgba(8, 10, 15, 0.74);
    backdrop-filter: blur(12px);
  }

  .section-rail a {
    display: block;
    width: 0.72rem;
    height: 0.72rem;
    max-width: none;
    color: transparent;
    font-size: 0;
    letter-spacing: 0;
  }

  .section-rail a::before {
    display: block;
    width: 0.72rem;
    height: 0.72rem;
  }
}

@media (max-width: 1040px) {
  .topbar,
  main,
  footer {
    width: min(1180px, calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
  }

  .section-rail {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .split,
  .contact {
    align-items: stretch;
  }

  .topbar,
  .hero,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .topbar,
  .contact {
    flex-direction: column;
  }

  .nav {
    justify-content: center;
  }

  .section-rail {
    display: none;
  }

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

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

  .credential-grid,
  .education-card,
  .resume-card,
  .resume-pages {
    grid-template-columns: 1fr;
  }

  .resume-card,
  .resume-viewer-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .resume-overlay {
    padding: var(--resume-overlay-top) 0.75rem 0.75rem;
  }

  .resume-zoom {
    padding: var(--resume-overlay-top) 0.75rem 0.75rem;
  }

  .resume-zoom-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .resume-zoom-actions {
    justify-content: space-between;
  }

  .resume-page.is-missing {
    min-height: 24rem;
  }

  .portfolio-detail-inner,
  .detail-bullets {
    grid-template-columns: 1fr;
  }

  .portfolio-detail-inner {
    padding: 0.9rem;
  }

  .detail-bullets {
    padding: 0.9rem;
  }

  .detail-bullet summary {
    align-items: flex-start;
    padding: 0.75rem;
  }

  .detail-bullet p {
    padding: 0 0.75rem 0.85rem 1.75rem;
  }

  h1 {
    max-width: 12ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
