:root {
  --bg0: #05060a;
  --bg1: #070816;
  --red: #ff1f1f;
  --orange: #ff8a00;
  --cyan: #00eaff;
  --text: rgba(245, 245, 245, .94);
  --muted: rgba(245, 245, 245, .72);
  --glass: rgba(0, 0, 0, .42);
  --line: rgba(255, 140, 0, .26);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Orbitron", system-ui, sans-serif;
  background: linear-gradient(180deg, var(--bg0), var(--bg1), var(--bg0));
  overflow-x: hidden;
}

a {
  color: inherit;
}

.wrap {
  width: min(1120px, 94vw);
  margin-inline: auto;
}

/* BACKGROUND */
.bg {
  position: fixed;
  inset: 0;
  z-index: -10;
}

.bg__nebula {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(900px 600px at 18% 12%, rgba(255, 0, 0, .24), transparent 60%),
    radial-gradient(900px 600px at 82% 22%, rgba(255, 140, 0, .20), transparent 60%),
    radial-gradient(1000px 700px at 44% 90%, rgba(0, 234, 255, .10), transparent 65%),
    linear-gradient(180deg, #05060a 0%, #070816 50%, #05060a 100%);
  animation: nebulaDrift 18s ease-in-out infinite alternate;
}

@keyframes nebulaDrift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1.02);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.05);
  }
}

.bg__grid {
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(to right, rgba(255, 90, 0, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 90, 0, .10) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(900px) rotateX(65deg) translateY(18%);
  opacity: .55;
  animation: gridMove 10s linear infinite;
}

@keyframes gridMove {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 240px, 240px 0;
  }
}

.bg__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .05) 1px,
      transparent 3px,
      transparent 6px);
  opacity: .10;
  mix-blend-mode: overlay;
}

.bg__vignette {
  position: absolute;
  inset: -2%;
  background: radial-gradient(circle at 50% 40%, transparent 38%, rgba(0, 0, 0, .72) 82%);
}

#sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* NAV */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 140, 0, .20);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brandDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--orange));
  box-shadow: 0 0 18px rgba(255, 140, 0, .65);
}

.brandText {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brandText__top {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .18em;
}

.brandText__bottom {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .22em;
  opacity: .78;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navItem {
  position: relative;
}

.navLink,
.navBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
  letter-spacing: .12em;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: .18s ease;
}

.navLink:hover,
.navBtn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 140, 0, .35);
  background: rgba(255, 140, 0, .10);
  box-shadow: 0 0 18px rgba(255, 120, 0, .18);
}

.navLink.isActive {
  border-color: rgba(255, 0, 0, .55);
  background: rgba(255, 0, 0, .12);
}

.navLink.cta {
  border-color: rgba(255, 140, 0, .55);
  background: linear-gradient(145deg, rgba(255, 0, 0, .36), rgba(255, 160, 0, .20));
}

.dropdown {
  position: absolute;
  top: 100%;
  min-width: 260px;
  padding: 10px;
  display: none;
  border-radius: 18px;
  border: 1px solid rgba(255, 140, 0, .30);
  background: rgba(0, 0, 0, .70);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(0, 0, 0, .55);
  z-index: 80;
}

.navItem:hover>.dropdown,
.navItem:focus-within>.dropdown {
  display: block;
}

.dropdown .navItem .dropdown {
  top: 0;
  left: 100%;
}

.dropdown a,
.dropdown button {
  width: 100%;
  justify-content: space-between;
  border-radius: 14px;
}

.navToggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 0, .35);
  background: rgba(0, 0, 0, .35);
  cursor: pointer;
}

.navToggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: #fff;
}

/* PAGE */
.page {
  padding: 34px 0 32px;
}

.section {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-align: center;
}

/* HERO */
.hero {
  padding-top: 12px;
}

.heroCard {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 30px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 35%),
    rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 140, 0, .22);
  box-shadow:
    0 0 40px rgba(255, 60, 0, .20),
    0 0 110px rgba(255, 140, 0, .08),
    inset 0 0 50px rgba(255, 120, 0, .06);
}

.heroCard::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  padding: 2px;
  background: linear-gradient(120deg, transparent, rgba(255, 0, 0, .85), rgba(255, 160, 0, .9), transparent);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: borderSweep 5s linear infinite;
  z-index: 4;
}

@keyframes borderSweep {
  from {
    background-position: 0% 50%;
  }

  to {
    background-position: 200% 50%;
  }
}

.mouseGlow {
  position: absolute;
  inset: 0;
  --mx: 50%;
  --my: 50%;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(700px circle at var(--mx) var(--my),
      rgba(255, 120, 0, .24),
      rgba(255, 60, 0, .10) 28%,
      transparent 62%);
  transition: opacity .2s ease;
  z-index: 1;
}

.heroCard:hover .mouseGlow {
  opacity: 1;
}

.heroCard>*:not(.mouseGlow) {
  position: relative;
  z-index: 2;
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 28px;
  align-items: stretch;
}

.heroContent {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.heroTitle {
  margin: 0;
  font-size: clamp(40px, 6vw, 50px);
  line-height: .98;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  -webkit-text-stroke: 1px rgba(255, 140, 0, .72);
  text-shadow:
    0 0 14px rgba(255, 60, 0, .62),
    0 0 34px rgba(255, 140, 0, .28);
}

.heroText {
  max-width: 680px;
  text-align: center;
  margin: 20px 0 20px 0;
  font-family: system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

/* PROFILE PANEL */
.profilePanel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 420px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 234, 255, .18);
  background:
    radial-gradient(circle at top, rgba(0, 234, 255, .12), transparent 46%),
    rgba(0, 0, 0, .28);
  box-shadow:
    inset 0 0 28px rgba(0, 234, 255, .05),
    0 0 35px rgba(0, 0, 0, .30);
}

.profileAvatarWrap {
  width: 170px;
  height: 170px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 234, 255, .25), transparent 58%),
    conic-gradient(from 120deg, var(--cyan), var(--orange), var(--red), var(--cyan));
  box-shadow:
    0 0 34px rgba(0, 234, 255, .25),
    0 0 70px rgba(255, 120, 0, .18);
  animation: profilePulse 4s ease-in-out infinite;
}

@keyframes profilePulse {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.22);
  }
}

.profileAvatar {
  width: 158px;
  height: 158px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .20);
  background: #05060a;
}

.profileAvatarWrap {
  overflow: visible;
  animation: profileFloat3D 5.5s ease-in-out infinite;
  transform-origin: center;

  filter:
    drop-shadow(0 18px 24px rgba(0, 0, 0, .45)) drop-shadow(0 0 18px rgba(0, 234, 255, .22)) drop-shadow(0 0 34px rgba(255, 140, 0, .12));
}

.profileAvatar {
  transform: none;
  animation: none;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, .45),
    0 0 28px rgba(0, 234, 255, .18);
}

@keyframes profileFloat3D {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

.profileInfo {
  text-align: center;
}

.profileInfo h2 {
  margin: 0 0 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: 22px;
}

.profileInfo p {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.skillGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.skillGrid span {
  padding: 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 140, 0, .20);
  background: rgba(255, 140, 0, .08);
  text-align: center;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: all 200ms ease-in-out;
}

.skillGrid span:hover {
  transform: scale(1.3);
  background-color: rgba(255, 0, 0, 0.452);
  border: 2px 2px 2px 2px solid rgba(255, 166, 0, 0.979);
}

/* BUTTONS */
.evilBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border-radius: 999px;
  padding: 16px 22px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  background: linear-gradient(145deg, rgba(255, 0, 0, .92), rgba(255, 160, 0, .82));
  box-shadow:
    0 0 18px rgba(255, 90, 0, .55),
    0 0 44px rgba(255, 0, 0, .25),
    inset 0 0 14px rgba(255, 255, 255, .20);
  transition: .18s ease;
}

.evilBtn--small {
  padding: 14px 18px;
  font-size: 12px;
}

.evilBtn__text,
.evilBtn__icon {
  position: relative;
  z-index: 2;
}

.evilBtn__icon {
  font-size: 22px;
}

.evilBtn__shine {
  position: absolute;
  inset: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: rotate(18deg) translateX(-70%);
  animation: shineSweep 3s ease-in-out infinite;
  opacity: .55;
}

@keyframes shineSweep {
  0% {
    transform: rotate(18deg) translateX(-70%);
  }

  60%,
  100% {
    transform: rotate(18deg) translateX(120%);
  }
}

.evilBtn:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.2) saturate(1.2);
  box-shadow:
    0 0 28px rgba(255, 140, 0, .85),
    0 0 70px rgba(255, 0, 0, .38),
    inset 0 0 18px rgba(255, 255, 255, .28);
}

.miniBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 140, 0, .35);
  background: rgba(0, 0, 0, .35);
  color: #fff;
  padding: 12px 16px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: .18s ease;
}

.miniBtn:hover {
  transform: translateY(-2px);
  background: rgba(255, 140, 0, .12);
  box-shadow: 0 0 18px rgba(255, 120, 0, .40);
}

/* TOOLTIP */

.tooltip {
  position: fixed;
  z-index: 9999;

  padding: 10px 14px;

  background: rgba(0, 0, 0, 0.534);
  border: 1px solid rgba(255, 138, 0, .35);
  border-radius: 14px;

  color: #fff;
  font-size: .75rem;
  font-family: "Orbitron", sans-serif;
  letter-spacing: .08em;

  pointer-events: none;

  opacity: 0;
  transform: translateY(8px);

  transition:
    opacity .18s ease,
    transform .18s ease;

  box-shadow:
    0 0 14px rgba(255, 138, 0, .22);

  backdrop-filter: blur(10px);
}

.tooltip--show {
  opacity: 1;
  transform: translateY(0);
}

/* STATUS */
.statusBar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-family: system-ui, sans-serif;
  justify-content: center;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.statusBar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 255, 160, .9);
  box-shadow: 0 0 12px rgba(0, 255, 160, .55);
  animation: dotPulse 1.6s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .8;
  }

  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* PORTALS */
.sectionHeader {
  margin-bottom: 16px;
}

.sectionTitle {
  margin: 0;
  font-size: 18px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
}

.portalGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portalCard {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 140, 0, .22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .04), transparent 42%),
    rgba(0, 0, 0, .30);
  box-shadow:
    inset 0 0 20px rgba(255, 120, 0, .04),
    0 0 28px rgba(0, 0, 0, .22);
  transition: .2s ease;
}

.portalCard::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 120, 0, .25), transparent 65%);
  opacity: .75;
}

.portalCard:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 140, 0, .48);
  box-shadow:
    0 0 34px rgba(255, 90, 0, .18),
    inset 0 0 22px rgba(255, 120, 0, .06);
}

.portalCard--featured {
  border-color: rgba(0, 234, 255, .28);
  background:
    radial-gradient(circle at top right, rgba(0, 234, 255, .10), transparent 45%),
    linear-gradient(145deg, rgba(255, 255, 255, .04), transparent 42%),
    rgba(0, 0, 0, .30);
}

.portalIcon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: rgba(255, 140, 0, .12);
  border: 1px solid rgba(255, 140, 0, .25);
  box-shadow: 0 0 20px rgba(255, 120, 0, .14);
}

.portalCard h3 {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.portalCard p {
  margin: 0 0 18px;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.portalCard a {
  position: relative;
  z-index: 2;
  display: inline-flex;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 140, 0, .30);
  background: rgba(255, 140, 0, .10);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 900;
  text-transform: uppercase;
}

/* CTA */
.ctaStrip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 140, 0, .22);
  background: rgba(0, 0, 0, .30);
  box-shadow: inset 0 0 18px rgba(255, 120, 0, .05);
}

.ctaStrip h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.ctaStrip p:not(.eyebrow) {
  margin: 8px 0 0;
  font-family: system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}

/* FOOTER */
.footer {
  padding: 20px 0 34px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* GLITCH */
body.glitchNow {
  animation: glitchShake 300ms steps(2) 1;
}

@keyframes glitchShake {
  0% {
    transform: translate(0, 0);
    filter: contrast(3) saturate(3);
  }

  25% {
    transform: translate(-2px, 1px);
  }

  50% {
    transform: translate(2px, -1px);
  }

  75% {
    transform: translate(-1px, -2px);
  }

  100% {
    transform: translate(0, 0);
  }
}


/* ------------------------------------------------ 
 PROJECTS PAGE 
 ------------------------------------------------ */
.projectsHero {
  padding: 46px;
}

.projectSummaryGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.projectSummaryCard {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 26px;
  border-radius: 28px;

  border: 1px solid rgba(255, 140, 0, .24);

  background:
    radial-gradient(circle at top, rgba(255, 120, 0, .14), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, .045), transparent 42%),
    rgba(0, 0, 0, .34);

  box-shadow:
    inset 0 0 28px rgba(255, 120, 0, .045),
    0 0 34px rgba(0, 0, 0, .28);

  transition:
    transform .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.projectSummaryCard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  background:
    linear-gradient(120deg,
      transparent,
      rgba(255, 120, 0, .22),
      rgba(0, 234, 255, .14),
      transparent);
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.projectSummaryCard::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 0, .22), transparent 65%);
  pointer-events: none;
}

.projectSummaryCard:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 140, 0, .52);
  box-shadow:
    0 0 36px rgba(255, 120, 0, .20),
    inset 0 0 28px rgba(255, 120, 0, .06);
}

.projectSummaryCard:hover::before {
  opacity: 1;
}

.projectSummaryIcon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 22px;

  border-radius: 18px;
  border: 1px solid rgba(255, 140, 0, .30);
  background: rgba(255, 140, 0, .10);

  font-size: 28px;
  box-shadow: 0 0 24px rgba(255, 120, 0, .16);
}

.projectSummaryCard h2 {
  margin: 0 0 14px;
  font-size: 22px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.projectSummaryCard p {
  margin: 0 0 24px;
  font-family: system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.projectSummaryCard a {
  position: absolute;
  left: 26px;
  bottom: 26px;

  display: inline-flex;
  padding: 11px 13px;
  border-radius: 14px;

  border: 1px solid rgba(255, 140, 0, .30);
  background: rgba(255, 140, 0, .10);

  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;

  transition: .18s ease;
}

.projectSummaryCard a:hover {
  background: rgba(255, 140, 0, .18);
  box-shadow: 0 0 18px rgba(255, 120, 0, .25);
  transform: translateY(-1px);
}

.toolboxPanel {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 140, 0, 0.25);
}

.toolboxPanel h3 {
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.toolboxGroup {
  margin-bottom: .8rem;
}

.toolboxGroup h4 {
  margin-bottom: .35rem;
  color: orange;
  font-size: .75rem;
}

.toolboxTags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.toolboxTags span {
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .7rem;
}

@media (max-width: 900px) {
  .projectSummaryGrid {
    grid-template-columns: 1fr;
  }

  .projectsHero {
    padding: 24px;
  }

  .projectSummaryCard {
    min-height: 260px;
  }
}

/* RESPONSIVE */
@media (max-width:900px) {
  .navToggle {
    display: block;
  }

  .nav {
    position: absolute;
    right: 3vw;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: min(320px, 94vw);
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 140, 0, .35);
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 0, 0, .55);
    z-index: 90;
  }

  .nav.isOpen {
    display: flex;
  }

  .dropdown {
    position: static;
    min-width: unset;
    padding: 6px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .heroGrid {
    grid-template-columns: 1fr;
  }

  .heroContent,
  .profilePanel {
    min-height: auto;
  }

  .portalGrid {
    grid-template-columns: 1fr;
  }

  .ctaStrip {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width:560px) {
  .heroCard {
    padding: 18px;
  }

  .heroContent {
    padding: 4px;
  }

  .heroTitle {
    font-size: clamp(34px, 12vw, 52px);
  }

  .heroActions {
    align-items: stretch;
    flex-direction: column;
  }

  .evilBtn,
  .miniBtn {
    width: 100%;
  }

  .statusBar {
    align-items: flex-start;
    font-size: 10px;
  }

  .profileAvatarWrap {
    width: 145px;
    height: 145px;
  }

  .profileAvatar {
    width: 134px;
    height: 134px;
  }

  @media (max-width: 700px) {
    .wrap.hero {
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      padding-left: 12px;
      padding-right: 12px;
    }

    .heroCard.youtubeHero {
      width: 100%;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
      padding: 16px;
    }

    .youtubeSignal {
      margin-left: auto;
      margin-right: auto;
    }
  }

  /* ===== Mobile card centering fix ===== */
  @media (max-width: 700px) {
    .wrap.hero {
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
      padding-left: 12px;
      padding-right: 12px;
    }

    .heroCard,
    .heroCard.projectsHero,
    .heroCard.youtubeHero {
      width: 100%;
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .projectsHero {
      padding: 18px;
    }

    .heroText {
      max-width: 100%;
      margin-left: auto;
      margin-right: auto;
    }

    .statusBar {
      justify-content: center;
      text-align: center;
    }
  }
}