body {
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(97, 214, 209, 0.08), transparent 38%),
    linear-gradient(250deg, rgba(255, 111, 61, 0.06), transparent 42%),
    #060806;
}

body.is-booting {
  overflow: hidden;
}

.portfolio-app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
  border: 1px solid var(--muted-line);
  background:
    linear-gradient(rgba(5, 7, 5, 0.86), rgba(5, 7, 5, 0.92)),
    repeating-linear-gradient(90deg, rgba(132, 162, 67, 0.05) 0 1px, transparent 1px 36px),
    repeating-linear-gradient(0deg, rgba(132, 162, 67, 0.04) 0 1px, transparent 1px 36px);
}

.side-panel {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 24px);
  align-self: start;
  gap: 32px;
  padding: 28px 22px;
  border-right: 1px solid var(--muted-line);
  color: var(--phosphor);
}

.side-brand {
  display: grid;
  gap: 8px;
  color: var(--phosphor-strong);
  text-transform: uppercase;
}

.side-brand small,
.copyright {
  color: rgba(179, 212, 95, 0.62);
}

.side-nav {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.side-nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  text-transform: uppercase;
}

.side-nav a::before {
  width: 12px;
  color: var(--ink);
  content: "";
}

.side-nav a:hover::before,
.side-nav .is-active::before {
  content: ">";
}

.side-nav a:hover,
.side-nav .is-active {
  border-color: rgba(179, 212, 95, 0.28);
  background: rgba(132, 162, 67, 0.2);
  color: var(--ink);
}

.system-card,
.info-box,
.console-panel {
  border: 1px solid var(--line);
  background: rgba(5, 7, 5, 0.72);
}

.system-card {
  display: grid;
  gap: 9px;
  margin-top: 0;
  padding: 18px;
  text-transform: uppercase;
}

.system-card strong {
  margin-bottom: 8px;
  color: var(--phosphor-strong);
  font-weight: 400;
}

.mini-meter {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin-top: 8px;
}

.mini-meter i {
  height: 10px;
  border: 1px solid rgba(179, 212, 95, 0.22);
}

.mini-meter i:nth-child(-n + 6) {
  background: var(--phosphor-strong);
}

.copyright {
  margin: 0;
  text-transform: uppercase;
}

.side-socials {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 8px;
  margin-top: auto;
}

.side-socials a {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  aspect-ratio: 1;
  border: 1px solid rgba(179, 212, 95, 0.3);
  background:
    linear-gradient(145deg, rgba(231, 194, 93, 0.12), rgba(97, 214, 209, 0.05)),
    rgba(5, 7, 5, 0.78);
  color: rgba(239, 227, 175, 0.88);
  box-shadow: inset 0 0 14px rgba(179, 212, 95, 0.05);
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.side-socials a::after {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(231, 194, 93, 0.08);
  content: "";
  opacity: 0;
  transform: scale(0.78);
  transition: opacity 160ms ease, transform 160ms ease;
}

.side-socials svg {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 0 8px rgba(231, 194, 93, 0.1));
}

.side-socials a[aria-label="Facebook"] svg,
.side-socials a[aria-label="TikTok"] svg {
  width: 16px;
  height: 16px;
}

.side-socials a[aria-label="Steam"] svg {
  width: 19px;
  height: 19px;
}

.side-socials a:hover,
.side-socials a:focus-visible {
  border-color: rgba(231, 194, 93, 0.74);
  color: var(--amber);
  outline: 0;
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(231, 194, 93, 0.14), inset 0 0 14px rgba(231, 194, 93, 0.08);
}

.side-socials a:hover::after,
.side-socials a:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.console-launch {
  min-height: 42px;
  border: 1px solid rgba(231, 194, 93, 0.52);
  background:
    linear-gradient(90deg, rgba(231, 194, 93, 0.16), rgba(132, 162, 67, 0.1)),
    rgba(5, 7, 5, 0.78);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 0 18px rgba(231, 194, 93, 0.08);
}

.console-launch:hover,
.console-launch:focus-visible {
  border-color: rgba(97, 214, 209, 0.72);
  color: var(--cyan);
  outline: 0;
}

.side-console-dock {
  display: inline-grid;
  grid-template-columns: 52px max-content;
  gap: 10px;
  align-items: center;
  justify-items: start;
  align-self: start;
  width: max-content;
  border: 0;
  background: transparent;
  color: rgba(179, 212, 95, 0.66);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
}

.console-dock-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 42px;
  border: 1px solid rgba(231, 194, 93, 0.48);
  background:
    linear-gradient(180deg, rgba(231, 194, 93, 0.12), rgba(97, 214, 209, 0.05)),
    rgba(5, 7, 5, 0.86);
  box-shadow: inset 0 0 16px rgba(231, 194, 93, 0.08);
}

.console-dock-icon::before {
  width: 26px;
  height: 16px;
  border: 1px solid rgba(97, 214, 209, 0.58);
  background:
    linear-gradient(90deg, rgba(97, 214, 209, 0.24), transparent 42%),
    rgba(0, 0, 0, 0.34);
  content: "";
}

.console-dock-icon::after {
  position: absolute;
  left: 19px;
  bottom: 7px;
  width: 14px;
  height: 1px;
  background: rgba(97, 214, 209, 0.58);
  content: "";
}

.console-dock-icon i {
  position: absolute;
  left: 16px;
  top: 15px;
  width: 8px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(97, 214, 209, 0.58);
}

.side-console-dock small {
  display: grid;
  gap: 3px;
  justify-items: start;
  font-size: 11px;
  line-height: 0.95;
  letter-spacing: 0;
  text-align: left;
}

.side-console-dock:hover,
.side-console-dock:focus-visible {
  color: var(--cyan);
  outline: 0;
}

.side-console-dock:hover .console-dock-icon,
.side-console-dock:focus-visible .console-dock-icon {
  border-color: rgba(97, 214, 209, 0.72);
  box-shadow: 0 0 20px rgba(97, 214, 209, 0.12), inset 0 0 16px rgba(97, 214, 209, 0.08);
}

.portfolio-screen {
  min-width: 0;
}

.top-bar,
.meta-strip,
.portfolio-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 0 clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--muted-line);
  color: var(--phosphor);
  text-transform: uppercase;
}

.hero-zone {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.62fr) 320px;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(34px, 5vw, 76px) clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--muted-line);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--phosphor);
  text-transform: uppercase;
}

.hero-main h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(52px, 7vw, 98px);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(239, 227, 175, 0.25);
}

.hero-main h2 {
  margin: 24px 0;
  color: var(--phosphor-strong);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 400;
  text-transform: uppercase;
}

.hero-main p:not(.eyebrow) {
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

.command-button,
.resume-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  text-transform: uppercase;
}

.command-button {
  padding: 0 22px;
  border: 1px solid var(--amber);
  color: var(--ink);
  box-shadow: inset 0 0 18px rgba(231, 194, 93, 0.08);
}

.command-button:hover,
.resume-link:hover,
.section-heading a:hover,
.console-panel a:hover {
  color: var(--cyan);
}

.resume-link,
.section-heading a {
  color: var(--phosphor-strong);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.hero-social-orbit {
  display: grid;
  justify-items: center;
  gap: 12px;
  min-height: 380px;
  color: var(--ink);
  user-select: none;
}

.orbit-scene {
  --orbit-tilt-x: 0deg;
  --orbit-tilt-y: 0deg;
  --orbit-spin: 0deg;
  --orbit-radius: clamp(104px, 13vw, 142px);
  position: relative;
  display: grid;
  place-items: center;
  width: min(430px, 100%);
  aspect-ratio: 1;
  cursor: grab;
  perspective: 760px;
  transform:
    rotateX(7deg)
    rotateX(var(--orbit-tilt-x))
    rotateY(var(--orbit-tilt-y));
  transform-style: preserve-3d;
}

.orbit-scene:active {
  cursor: grabbing;
}

.orbit-scene::before,
.orbit-scene::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.orbit-scene::before {
  inset: 11%;
  border: 1px solid rgba(97, 214, 209, 0.16);
  box-shadow:
    inset 0 0 30px rgba(97, 214, 209, 0.05),
    0 0 28px rgba(97, 214, 209, 0.05);
  transform: rotateX(64deg) rotateZ(45deg) translateZ(-28px);
}

.orbit-scene::after {
  inset: 21%;
  border: 1px dashed rgba(231, 194, 93, 0.22);
  border-radius: 50%;
  transform: rotateX(68deg) translateZ(-12px);
  animation: orbit-panel-spin 18s linear infinite reverse;
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(132, 162, 67, 0.36);
  border-radius: 50%;
  transform-style: preserve-3d;
  pointer-events: none;
}

.orbit-ring-a {
  inset: 12%;
  transform: rotateX(68deg) translateZ(0);
  animation: orbit-panel-spin 18s linear infinite;
}

.orbit-ring-b {
  inset: 21%;
  border-color: rgba(97, 214, 209, 0.22);
  transform: rotateX(74deg) rotateZ(28deg) translateZ(22px);
  animation: orbit-panel-spin 22s linear infinite reverse;
}

.orbit-ring-c {
  inset: 30%;
  border-color: rgba(231, 194, 93, 0.24);
  transform: rotateX(62deg) rotateY(52deg) rotateZ(-18deg) translateZ(-18px);
  animation: orbit-panel-spin 16s linear infinite;
}

.orbit-earth {
  position: relative;
  z-index: 34;
  display: grid;
  place-items: center;
  width: clamp(106px, 12vw, 146px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(97, 214, 209, 0.34);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(239, 227, 175, 0.35), transparent 22%),
    radial-gradient(circle at 62% 58%, rgba(97, 214, 209, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(231, 194, 93, 0.18), rgba(7, 16, 18, 0.96) 62%);
  box-shadow:
    0 0 44px rgba(97, 214, 209, 0.15),
    inset -20px -18px 30px rgba(0, 0, 0, 0.42),
    inset 18px 16px 30px rgba(239, 227, 175, 0.09);
  transform-style: preserve-3d;
  animation: earth-float 5.4s ease-in-out infinite;
}

.orbit-earth::before,
.orbit-earth::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.orbit-earth::before {
  background:
    radial-gradient(circle at 35% 30%, transparent 0 42%, rgba(255, 255, 255, 0.16) 43%, transparent 45%),
    radial-gradient(circle at 72% 68%, rgba(0, 0, 0, 0.44), transparent 58%);
  mix-blend-mode: screen;
}

.orbit-earth::after {
  inset: 7%;
  border: 1px solid rgba(97, 214, 209, 0.2);
  transform: rotateX(72deg) translateZ(18px);
  box-shadow: 0 0 22px rgba(97, 214, 209, 0.16);
}

.earth-grid {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, transparent 0 13px, rgba(239, 227, 175, 0.16) 14px 15px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(97, 214, 209, 0.12) 15px 16px);
  opacity: 0.8;
  transform: translateX(var(--earth-drift, 0px));
  animation: earth-grid-drift 8s linear infinite, earth-surface-spin 28s linear infinite;
}

.earth-core {
  position: relative;
  width: 36%;
  aspect-ratio: 1;
  border: 1px solid rgba(239, 227, 175, 0.62);
  background: rgba(239, 227, 175, 0.35);
  box-shadow: 0 0 28px rgba(231, 194, 93, 0.28);
  transform: rotate(45deg);
}

.orbit-node {
  --orbit-x: 0px;
  --orbit-y: 0px;
  --orbit-z: 0px;
  --orbit-scale: 1;
  --orbit-opacity: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid rgba(97, 214, 209, 0.42);
  background:
    radial-gradient(circle at 35% 25%, rgba(97, 214, 209, 0.22), transparent 42%),
    rgba(5, 7, 5, 0.86);
  color: rgba(239, 227, 175, 0.9);
  box-shadow:
    0 0 18px rgba(97, 214, 209, 0.08),
    inset 0 0 14px rgba(97, 214, 209, 0.07);
  transform:
    translate3d(var(--orbit-x), var(--orbit-y), var(--orbit-z))
    translate(-50%, -50%)
    scale(var(--orbit-scale));
  opacity: var(--orbit-opacity);
  transition: border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, opacity 160ms ease, scale 160ms ease;
  will-change: transform, opacity;
}

.orbit-node svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.orbit-node span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  padding: 4px 8px;
  border: 1px solid rgba(231, 194, 93, 0.26);
  background: rgba(5, 7, 5, 0.86);
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.orbit-node-feature {
  width: 62px;
  border-color: rgba(231, 194, 93, 0.72);
  background:
    radial-gradient(circle at 40% 24%, rgba(231, 194, 93, 0.3), transparent 48%),
    linear-gradient(145deg, rgba(231, 194, 93, 0.18), rgba(97, 214, 209, 0.08)),
    rgba(5, 7, 5, 0.9);
  color: var(--amber);
  box-shadow:
    0 0 26px rgba(231, 194, 93, 0.18),
    inset 0 0 16px rgba(231, 194, 93, 0.12);
  animation: featured-orbit-pulse 2.8s ease-in-out infinite;
}

.orbit-linkedin {
  border-color: rgba(97, 214, 209, 0.74);
  color: var(--cyan);
  box-shadow:
    0 0 28px rgba(97, 214, 209, 0.18),
    inset 0 0 16px rgba(97, 214, 209, 0.12);
  animation-delay: -1.2s;
}

.orbit-discord {
  border-color: rgba(132, 112, 255, 0.58);
  color: #b6adff;
  box-shadow:
    0 0 20px rgba(132, 112, 255, 0.16),
    inset 0 0 14px rgba(132, 112, 255, 0.1);
}

.orbit-node:hover,
.orbit-node:focus-visible {
  z-index: 4;
  border-color: rgba(239, 227, 175, 0.86);
  color: var(--ink);
  outline: 0;
  scale: 1.12;
  box-shadow:
    0 0 32px rgba(239, 227, 175, 0.2),
    inset 0 0 18px rgba(239, 227, 175, 0.14);
}

.orbit-caption {
  margin: 0;
  color: rgba(179, 212, 95, 0.64);
  font-size: 13px;
  text-transform: uppercase;
}

@keyframes orbit-panel-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes earth-float {
  0%,
  100% {
    transform: translateY(0) rotateZ(-2deg);
  }

  50% {
    transform: translateY(-8px) rotateZ(2deg);
  }
}

@keyframes earth-grid-drift {
  to {
    transform: translateX(-32px);
  }
}

@keyframes earth-surface-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes featured-orbit-pulse {
  0%,
  100% {
    box-shadow:
      0 0 24px rgba(231, 194, 93, 0.15),
      inset 0 0 16px rgba(231, 194, 93, 0.12);
  }

  50% {
    box-shadow:
      0 0 38px rgba(231, 194, 93, 0.28),
      inset 0 0 20px rgba(231, 194, 93, 0.18);
  }
}

.status-stack {
  display: grid;
  gap: 18px;
}

.info-box {
  padding: 20px;
}

.info-box h3,
.console-panel h2,
.section-heading h2 {
  margin: 0 0 18px;
  color: var(--phosphor-strong);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.status-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-transform: uppercase;
}

.status-list li::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  background: var(--phosphor-strong);
  content: "";
}

.skill-meter {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
  color: var(--phosphor);
  text-transform: uppercase;
}

.skill-meter i {
  height: 11px;
  border: 1px solid rgba(179, 212, 95, 0.22);
  background:
    linear-gradient(90deg, var(--phosphor-strong) var(--level), transparent 0),
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(5, 7, 5, 0.9) 8px 12px);
}

.transcript-box {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.transcript-box::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(75, 213, 202, 0.6);
  content: "";
}

.transcript-box:hover,
.transcript-box:focus-visible {
  border-color: rgba(75, 213, 202, 0.72);
  box-shadow: 0 0 26px rgba(75, 213, 202, 0.14), inset 0 0 22px rgba(75, 213, 202, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.transcript-hint {
  margin: 16px 20px 0 0;
  color: var(--cyan);
  font-size: 0.76rem;
  line-height: 1.45;
  text-transform: uppercase;
}

.meta-strip {
  flex-wrap: wrap;
  min-height: 58px;
}

.meta-strip b {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  background: var(--phosphor-strong);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  padding: 28px clamp(22px, 3vw, 48px);
  border-bottom: 1px solid var(--muted-line);
}

.story-card {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(179, 212, 95, 0.1), transparent 42%),
    rgba(5, 7, 5, 0.72);
}

.story-card::after {
  position: absolute;
  inset: auto -10% -42% auto;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(179, 212, 95, 0.22);
  content: "";
  transform: rotate(45deg);
}

.origin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
  gap: 22px;
  align-items: start;
}

.origin-copy {
  min-width: 0;
}

.portrait-column {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-self: end;
  width: min(100%, 260px);
  min-width: 0;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 194, 93, 0.62);
  background: rgba(5, 7, 5, 0.82);
  box-shadow: 0 0 28px rgba(179, 212, 95, 0.12), inset 0 0 26px rgba(5, 7, 5, 0.35);
}

.portrait-frame::before,
.portrait-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.portrait-frame::before {
  z-index: 2;
  background:
    linear-gradient(180deg, transparent, rgba(5, 7, 5, 0.12)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
}

.portrait-frame::after {
  z-index: 3;
  border: 10px solid rgba(5, 7, 5, 0.22);
  box-shadow: inset 0 0 0 1px rgba(179, 212, 95, 0.18);
}

.portrait-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 50% 48%;
  filter: saturate(0.78) contrast(1.05) brightness(0.9);
}

.dotted-portrait canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 58% 38%, rgba(142, 101, 236, 0.16), transparent 26%),
    radial-gradient(circle at 42% 62%, rgba(75, 213, 202, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(12, 15, 23, 0.98), rgba(17, 19, 31, 0.96));
  opacity: 0;
  transition: opacity 220ms ease, filter 220ms ease;
}

.dotted-portrait.is-rendered img {
  opacity: 0;
}

.dotted-portrait.is-rendered canvas {
  opacity: 1;
}

.dotted-portrait:hover canvas {
  filter: drop-shadow(0 0 14px rgba(142, 101, 236, 0.22));
}

.portrait-frame span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 4;
  border: 1px solid rgba(179, 212, 95, 0.36);
  background: rgba(5, 7, 5, 0.78);
  color: var(--phosphor-strong);
  padding: 7px 9px;
  text-transform: uppercase;
}

.section-code {
  display: block;
  margin-bottom: 18px;
  color: var(--phosphor-strong);
  text-transform: uppercase;
}

.story-card h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  text-transform: uppercase;
}

.story-card p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.58;
}

.timeline-strip,
.course-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.timeline-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-strip span,
.course-grid span {
  min-width: 0;
  border: 1px solid rgba(179, 212, 95, 0.24);
  background: rgba(132, 162, 67, 0.08);
  color: var(--phosphor);
  padding: 11px;
  text-transform: uppercase;
}

.portrait-column .timeline-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}

.portrait-column .timeline-strip span {
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.28;
}

.timeline-strip b {
  display: block;
  color: var(--amber);
  font-weight: 400;
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-strip,
.projects-section,
.skills-section {
  padding: 28px clamp(22px, 3vw, 48px) 34px;
  border-bottom: 1px solid var(--muted-line);
}

.photo-strip {
  position: relative;
  overflow: hidden;
}

.photo-lock-content {
  transition: filter 260ms ease, opacity 260ms ease, transform 260ms ease;
}

.photo-strip.is-locked .photo-lock-content {
  filter: blur(12px) brightness(0.52) saturate(0.62);
  opacity: 0.72;
  transform: scale(0.995);
  pointer-events: none;
  user-select: none;
}

.photo-lock-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  display: grid;
  width: min(520px, calc(100% - 44px));
  gap: 9px;
  padding: 16px 20px;
  border: 1px solid rgba(231, 194, 93, 0.58);
  background:
    linear-gradient(135deg, rgba(231, 194, 93, 0.12), rgba(97, 214, 209, 0.07)),
    rgba(5, 7, 5, 0.88);
  color: var(--ink);
  box-shadow:
    0 0 42px rgba(0, 0, 0, 0.48),
    0 0 30px rgba(231, 194, 93, 0.12),
    inset 0 0 18px rgba(231, 194, 93, 0.07);
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.photo-lock-panel span {
  color: var(--phosphor-strong);
}

.photo-lock-panel label {
  color: rgba(239, 227, 175, 0.86);
}

.photo-password-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 8px;
}

.photo-password-row input,
.photo-password-row button {
  min-height: 40px;
  border: 1px solid rgba(179, 212, 95, 0.34);
  background: rgba(5, 7, 5, 0.82);
  color: var(--ink);
}

.photo-password-row input {
  min-width: 0;
  padding: 0 12px;
  outline: 0;
}

.photo-password-row input:focus {
  border-color: rgba(97, 214, 209, 0.78);
  box-shadow: 0 0 18px rgba(97, 214, 209, 0.1);
}

.photo-password-row button {
  cursor: pointer;
}

.photo-password-row button:hover,
.photo-password-row button:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  outline: 0;
}

.photo-lock-panel p {
  min-height: 14px;
  margin: 0;
  color: rgba(179, 212, 95, 0.72);
  font-size: 12px;
}

.photo-lock-panel.is-denied {
  animation: photo-lock-shake 180ms linear 2;
}

.photo-strip:not(.is-locked) .photo-lock-panel {
  display: none;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

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

@keyframes photo-lock-shake {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }

  25% {
    transform: translate(calc(-50% - 5px), -50%);
  }

  75% {
    transform: translate(calc(-50% + 5px), -50%);
  }
}

.photo-row figure {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  border: 1px solid rgba(179, 212, 95, 0.28);
  background: rgba(5, 7, 5, 0.72);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.photo-row figure::before {
  position: absolute;
  inset: 8px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(231, 194, 93, 0.16);
  content: "";
}

.photo-row figure:hover {
  border-color: rgba(231, 194, 93, 0.72);
  box-shadow: 0 0 28px rgba(231, 194, 93, 0.1);
  transform: translateY(-4px);
}

.photo-row img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.06) brightness(0.86);
  transition: filter 180ms ease, transform 260ms ease;
}

.photo-row figure:hover img {
  filter: saturate(0.98) contrast(1.08) brightness(0.94);
  transform: scale(1.035);
}

.photo-row figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  border: 1px solid rgba(179, 212, 95, 0.34);
  background: rgba(5, 7, 5, 0.76);
  color: var(--phosphor-strong);
  padding: 7px 9px;
  text-transform: uppercase;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.94fr) minmax(0, 0.94fr);
  gap: 22px;
}

.skills-section .info-box {
  min-height: 250px;
}

.project-card {
  min-width: 0;
  border: 1px solid var(--muted-line);
  background: rgba(5, 7, 5, 0.65);
  transition: border-color 180ms ease, transform 180ms ease;
}

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

.project-card img,
.project-visual {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--muted-line);
}

.project-card img {
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08);
}

.project-visual {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(179, 212, 95, 0.2), transparent 30%),
    repeating-linear-gradient(90deg, rgba(179, 212, 95, 0.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(179, 212, 95, 0.06) 0 1px, transparent 1px 24px),
    rgba(5, 7, 5, 0.86);
}

.engine-visual i {
  position: absolute;
  width: 34%;
  height: 1px;
  background: var(--line);
}

.engine-visual i:nth-of-type(1) {
  left: 8%;
  top: 28%;
}

.engine-visual i:nth-of-type(2) {
  right: 8%;
  top: 36%;
}

.engine-visual i:nth-of-type(3) {
  left: 14%;
  bottom: 32%;
}

.engine-visual i:nth-of-type(4) {
  right: 15%;
  bottom: 24%;
}

.engine-ring,
.engine-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.engine-ring {
  width: 42%;
  aspect-ratio: 1;
  border: 2px solid rgba(231, 194, 93, 0.62);
  box-shadow: 0 0 28px rgba(231, 194, 93, 0.16), inset 0 0 18px rgba(179, 212, 95, 0.12);
}

.engine-ring::before,
.engine-ring::after {
  position: absolute;
  inset: 18%;
  border: 1px solid var(--line);
  content: "";
  transform: rotate(45deg);
}

.engine-ring::after {
  inset: 36%;
}

.engine-core {
  width: 18%;
  aspect-ratio: 1;
  background: var(--phosphor-strong);
  box-shadow: 0 0 24px rgba(179, 212, 95, 0.42);
}

.placeholder-visual {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--phosphor);
  text-align: center;
  text-transform: uppercase;
}

.placeholder-visual::before {
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(179, 212, 95, 0.32);
  content: "";
}

.placeholder-visual strong {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 700;
}

.placeholder-visual.alt {
  background:
    radial-gradient(circle at 72% 32%, rgba(97, 214, 209, 0.14), transparent 28%),
    repeating-linear-gradient(135deg, rgba(179, 212, 95, 0.08) 0 1px, transparent 1px 22px),
    rgba(5, 7, 5, 0.86);
}

.project-card-body {
  position: relative;
  padding: 18px;
}

.project-index {
  position: absolute;
  right: 18px;
  top: 20px;
  color: var(--phosphor);
}

.project-card h3 {
  max-width: calc(100% - 58px);
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 18px;
  text-transform: uppercase;
}

.project-card p {
  min-height: 90px;
  margin: 0;
  color: var(--ink);
  line-height: 1.5;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag-row span {
  color: var(--phosphor);
  text-transform: uppercase;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.78fr);
  gap: 22px;
  padding: 28px clamp(22px, 3vw, 48px);
}

.console-panel {
  padding: 20px;
  color: var(--ink);
  line-height: 1.55;
}

.console-panel p {
  margin: 0 0 14px;
}

.console-panel span {
  color: var(--phosphor-strong);
}

.console-panel ul {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--phosphor);
  list-style: none;
}

.facts-list {
  gap: 10px;
}

.facts-list li {
  border-left: 2px solid rgba(179, 212, 95, 0.5);
  padding-left: 12px;
}

.canada-map-module {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  margin-top: 24px;
  border: 1px solid rgba(114, 122, 143, 0.26);
  border-radius: 10px;
  background:
    radial-gradient(circle at 67% 63%, rgba(139, 92, 246, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(30, 34, 44, 0.72), rgba(11, 14, 20, 0.94)),
    #0d1117;
}

.canada-map-module::before {
  position: absolute;
  inset: 10px;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 8px;
  content: "";
}

.canada-dot-field {
  position: absolute;
  inset: 12px;
}

.map-dot {
  position: absolute;
  width: 3.8px;
  height: 3.8px;
  border-radius: 50%;
  background: rgba(126, 134, 154, 0.5);
  opacity: var(--dot-opacity, 1);
  transform: translate(var(--push-x, 0), var(--push-y, 0));
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease, opacity 180ms ease;
}

.canada-map-module:hover .map-dot {
  background: rgba(167, 174, 194, 0.58);
}

.mississauga-pin {
  position: absolute;
  left: 62.5%;
  top: 78%;
  z-index: 3;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a978ff;
  box-shadow: 0 0 0 9px rgba(169, 120, 255, 0.18), 0 0 24px rgba(169, 120, 255, 0.66);
  transform: translate(-50%, -50%);
  animation: map-pin-pulse 1.8s ease-in-out infinite;
  outline: 0;
}

.map-callout {
  position: absolute;
  right: 18px;
  top: 42px;
  z-index: 4;
  display: grid;
  gap: 5px;
  max-width: 218px;
  padding: 15px 16px;
  border: 1px solid rgba(114, 122, 143, 0.34);
  border-radius: 8px;
  background: rgba(15, 18, 25, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), 0 0 24px rgba(139, 92, 246, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.mississauga-pin:hover + .map-callout,
.mississauga-pin:focus-visible + .map-callout {
  border-color: rgba(169, 120, 255, 0.56);
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-callout strong,
.map-callout small {
  color: rgba(239, 227, 175, 0.9);
  text-transform: uppercase;
}

.map-callout span {
  color: rgba(248, 250, 252, 0.86);
}

.map-callout small {
  color: rgba(167, 174, 194, 0.74);
  font-size: 11px;
}

.console-panel a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--phosphor-strong);
  margin-bottom: 12px;
}

.contact-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(231, 194, 93, 0.62);
  background:
    linear-gradient(135deg, rgba(231, 194, 93, 0.14), transparent 38%),
    radial-gradient(circle at 90% 8%, rgba(97, 214, 209, 0.2), transparent 28%),
    rgba(5, 7, 5, 0.82);
  box-shadow:
    0 0 34px rgba(231, 194, 93, 0.08),
    inset 0 0 28px rgba(179, 212, 95, 0.08);
}

.contact-panel::before,
.contact-panel::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.contact-panel::before {
  inset: 10px;
  border: 1px solid rgba(231, 194, 93, 0.18);
}

.contact-panel::after {
  right: -42px;
  bottom: -42px;
  width: 160px;
  aspect-ratio: 1;
  border: 1px solid rgba(97, 214, 209, 0.28);
  transform: rotate(45deg);
  animation: contact-scan 4.5s ease-in-out infinite;
}

.contact-header,
.contact-links,
.contact-panel h2,
.contact-panel p {
  position: relative;
  z-index: 1;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--phosphor-strong);
  text-transform: uppercase;
}

.contact-header i {
  width: 12px;
  height: 12px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(97, 214, 209, 0.72);
  animation: contact-pulse 1.35s steps(2, end) infinite;
}

.contact-panel h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 40px);
}

.contact-panel p {
  max-width: 100%;
  color: var(--ink);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.contact-links a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(179, 212, 95, 0.24);
  background: rgba(132, 162, 67, 0.1);
  color: var(--ink);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-links a:hover {
  border-color: rgba(97, 214, 209, 0.7);
  background: rgba(97, 214, 209, 0.1);
  transform: translateY(-3px);
}

.contact-links svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  color: rgba(239, 227, 175, 0.86);
  filter: drop-shadow(0 0 8px rgba(231, 194, 93, 0.14));
}

.contact-links a span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.contact-email-link {
  position: relative;
  border-color: rgba(231, 194, 93, 0.58);
  background:
    linear-gradient(90deg, rgba(231, 194, 93, 0.18), rgba(97, 214, 209, 0.08)),
    rgba(132, 162, 67, 0.1);
  animation: email-nudge 3.4s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(231, 194, 93, 0.08), inset 0 0 18px rgba(231, 194, 93, 0.06);
}

.contact-email-link::after {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(97, 214, 209, 0.72);
  content: "";
  animation: email-ping 1.7s steps(2, end) infinite;
}

.contact-email-link:hover,
.contact-email-link:focus-visible {
  animation-play-state: paused;
}

.contact-links em {
  color: var(--cyan);
  font-size: 12px;
  font-style: normal;
  text-transform: uppercase;
}

.contact-links strong {
  color: var(--phosphor-strong);
  font-weight: 400;
  overflow-wrap: anywhere;
}

@keyframes contact-pulse {
  50% {
    opacity: 0.42;
  }
}

@keyframes contact-scan {
  50% {
    transform: rotate(45deg) translate(-10px, -10px);
    opacity: 0.48;
  }
}

@keyframes map-pin-pulse {
  50% {
    box-shadow: 0 0 0 15px rgba(169, 120, 255, 0.08), 0 0 30px rgba(169, 120, 255, 0.84);
  }
}

@keyframes email-nudge {
  0%,
  70%,
  100% {
    border-color: rgba(231, 194, 93, 0.48);
    transform: translateY(0);
  }

  76% {
    border-color: rgba(231, 194, 93, 0.92);
    transform: translateY(-5px);
  }

  82% {
    transform: translateY(0);
  }

  88% {
    transform: translateY(-2px);
  }
}

@keyframes email-ping {
  50% {
    opacity: 0.36;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-email-link,
  .contact-email-link::after,
  .mississauga-pin,
  .orbit-scene::after,
  .orbit-ring,
  .orbit-earth,
  .earth-grid,
  .orbit-node-feature {
    animation: none;
  }
}

.terminal-window {
  position: fixed;
  left: clamp(18px, 22vw, 420px);
  top: clamp(72px, 14vh, 160px);
  z-index: 30;
  display: grid;
  width: min(620px, calc(100vw - 32px));
  border: 1px solid rgba(97, 214, 209, 0.42);
  background:
    linear-gradient(135deg, rgba(97, 214, 209, 0.08), transparent 44%),
    repeating-linear-gradient(0deg, rgba(216, 230, 214, 0.025) 0 1px, transparent 1px 4px),
    #05080c;
  color: #d8e6d6;
  box-shadow:
    0 0 28px rgba(97, 214, 209, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.58),
    inset 0 0 26px rgba(97, 214, 209, 0.04);
}

.terminal-window[hidden] {
  display: none;
}

.terminal-window.is-wide {
  width: min(860px, calc(100vw - 32px));
}

.terminal-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 42px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid rgba(97, 214, 209, 0.28);
  background: linear-gradient(90deg, rgba(20, 37, 48, 0.94), rgba(8, 16, 22, 0.94));
  color: #b7f0ea;
  text-transform: uppercase;
  cursor: move;
  user-select: none;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.terminal-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border: 1px solid rgba(97, 214, 209, 0.28);
  background: rgba(3, 7, 11, 0.9);
  color: #b7f0ea;
  font: inherit;
  cursor: pointer;
}

.terminal-controls button:hover,
.terminal-controls button:focus-visible {
  border-color: rgba(97, 214, 209, 0.72);
  color: var(--cyan);
  outline: 0;
}

.terminal-body {
  padding: 16px;
}

.terminal-output {
  display: grid;
  gap: 7px;
  max-height: min(360px, 48vh);
  min-height: 260px;
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(97, 214, 209, 0.16);
  background: rgba(0, 0, 0, 0.34);
}

.terminal-output p {
  margin: 0;
}

.terminal-output span,
.terminal-form label {
  color: #8ee4dd;
}

.terminal-output strong {
  color: #ffd479;
  font-weight: 400;
}

.terminal-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.terminal-form input {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(97, 214, 209, 0.24);
  background: transparent;
  color: #f4f0c6;
  font: inherit;
  padding: 2px 0 4px;
}

.terminal-form input:focus {
  border-color: rgba(97, 214, 209, 0.72);
  outline: 0;
}

.portfolio-footer {
  border-top: 1px solid var(--muted-line);
  border-bottom: 0;
}

@media (max-width: 1180px) {
  .portfolio-app {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--muted-line);
  }

  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .system-card,
  .copyright {
    display: none;
  }

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

  .status-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .photo-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .contact-links {
    grid-template-columns: 1fr;
  }

  .origin-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }
}

@media (max-width: 760px) {
  .top-bar,
  .meta-strip,
  .portfolio-footer,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .side-nav,
  .hero-zone,
  .status-stack,
  .origin-card,
  .timeline-strip,
  .course-grid,
  .skills-grid,
  .photo-row,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-social-orbit {
    min-height: 200px;
  }

  .orbit-scene {
    --orbit-radius: 118px;
    width: min(330px, 100%);
  }

  .orbit-node-feature {
    width: 54px;
  }

  .project-card p {
    min-height: auto;
  }
}
