/* =========================
   Design Tokens
========================= */

:root {
  --bg-main: #060607;
  --bg-deep: #0b0b0e;
  --shell: rgba(12, 12, 16, 0.88);
  --shell-line: rgba(185, 24, 54, 0.12);
  --panel: rgba(16, 16, 22, 0.9);
  --panel-2: rgba(23, 23, 30, 0.94);

  --text: #f5f5f7;
  --text-soft: #aaaab6;
  --text-faint: #7d7d88;

  --red: #b10f35;
  --red-deep: #720a22;
  --red-bright: #e11d48;
  --red-soft: #f06a8d;
  --crimson: #c3001d;

  --line: rgba(255, 255, 255, 0.06);
  --white-glow: rgba(255, 255, 255, 0.08);

  --shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.3);

  --radius-2xl: 42px;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;

  --max: 1720px;

  --transition: 260ms ease;
  --transition-slow: 520ms cubic-bezier(.22, 1, .36, 1);

  --mouse-x: 50%;
  --mouse-y: 50%;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-copy-x: 0px;
  --hero-copy-y: 0px;

  --nav-h: 76px;
  --scroll-progress: 0%;

  --section-gap: 22px;
  --card-padding: 22px;
  --card-radius: 28px;
  --inner-radius: 20px;
}

/* =========================
   Micro Intro
========================= */

body.is-intro {
  overflow: hidden;
}

body.is-intro .page-shell {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  filter: brightness(0.82) blur(4px);
}

body.intro-ready .page-shell {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: brightness(1) blur(0);
  transition:
    opacity 520ms ease,
    transform 700ms cubic-bezier(.22, 1, .36, 1),
    filter 700ms cubic-bezier(.22, 1, .36, 1);
}

body.is-intro .hero-copy .title {
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  filter: blur(8px);
}

body.intro-ready .hero-copy .title {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 420ms ease 180ms,
    transform 700ms cubic-bezier(.22, 1, .36, 1) 180ms,
    filter 700ms cubic-bezier(.22, 1, .36, 1) 180ms,
    text-shadow 700ms ease 180ms;
}

body.is-intro .hero-copy .eyebrow,
body.is-intro .hero-copy .subline,
body.is-intro .hero-status {
  opacity: 0;
  transform: translateY(10px);
}

body.intro-ready .hero-copy .eyebrow,
body.intro-ready .hero-copy .subline,
body.intro-ready .hero-status {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 360ms ease 280ms,
    transform 520ms ease 280ms;
}

body.intro-ready .hero-copy .title span {
  animation: introBloomPulse 700ms ease 220ms 1;
}

@keyframes introBloomPulse {
  0% {
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.2),
      0 0 1px rgba(255, 190, 205, 0.35),
      0 0 8px rgba(227, 24, 55, 0.18),
      0 0 18px rgba(227, 24, 55, 0.12),
      0 8px 16px rgba(0, 0, 0, 0.16);
  }
  45% {
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.5),
      0 0 1px rgba(255, 190, 205, 1),
      0 0 24px rgba(227, 24, 55, 0.65),
      0 0 54px rgba(227, 24, 55, 0.34),
      0 10px 18px rgba(0, 0, 0, 0.22);
  }
  100% {
    text-shadow:
      0 0 1px rgba(255, 255, 255, 0.35),
      0 0 1px rgba(255, 190, 205, 0.95),
      0 0 18px rgba(227, 24, 55, 0.5),
      0 0 38px rgba(227, 24, 55, 0.32),
      0 10px 18px rgba(0, 0, 0, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-intro,
  body.intro-ready {
    overflow: auto;
  }

  body.is-intro .page-shell,
  body.intro-ready .page-shell,
  body.is-intro .hero-copy .title,
  body.intro-ready .hero-copy .title,
  body.is-intro .hero-copy .eyebrow,
  body.is-intro .hero-copy .subline,
  body.is-intro .hero-status,
  body.intro-ready .hero-copy .eyebrow,
  body.intro-ready .hero-copy .subline,
  body.intro-ready .hero-status {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* =========================
   Reset / Base
========================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: url("../images/cursor.png") 2 2, auto;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(225, 29, 72, 0.11), transparent 24%),
    radial-gradient(circle at top right, rgba(177, 15, 53, 0.08), transparent 25%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.03), transparent 28%),
    linear-gradient(180deg, #0b0b0d 0%, #070709 52%, #030304 100%);
  color: var(--text);
  padding: 8px;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0.012)),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.01) 0px,
      rgba(255, 255, 255, 0.01) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.13;
  mix-blend-mode: soft-light;
  animation: screenBreath 5.5s ease-in-out infinite;
  z-index: 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(225, 29, 72, 0.09), transparent 18%);
  opacity: 0.65;
  z-index: 1;
  transition: background 120ms linear;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  border: none;
  background: none;
}

/* =========================
   Animations
========================= */

@keyframes screenBreath {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.16; }
}

@keyframes heroSweep {
  0% { transform: translateX(-55%) skewX(-10deg); }
  100% { transform: translateX(60%) skewX(-10deg); }
}

@keyframes titleSheen {
  0%, 100% { transform: translateX(-2%) scaleX(0.98); opacity: 0.14; }
  50% { transform: translateX(1.5%) scaleX(1.01); opacity: 0.28; }
}

@keyframes bloomStaticIdle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-0.5px); }
  50% { transform: translateX(0.75px); }
  75% { transform: translateX(-0.25px); }
}

@keyframes bloomStaticBurst {
  0% {
    opacity: 0.18;
    transform: translateX(-2px) skewX(-1deg);
  }
  35% {
    opacity: 0.95;
    transform: translateX(2px) skewX(1deg);
  }
  65% {
    opacity: 0.7;
    transform: translateX(-1px) skewX(-0.6deg);
  }
  100% {
    opacity: 0;
    transform: translateX(0) skewX(0deg);
  }
}

@keyframes shimmer {
  0%, 78% { transform: translateX(-140%); }
  100% { transform: translateX(140%); }
}

@keyframes floatOrb {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(14px, -18px, 0) scale(1.05); }
}

@keyframes ringPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(0.98);
    opacity: 0.38;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 0.62;
  }
}

@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes lightboxFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightboxZoom {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* =========================
   Ambient / Shell
========================= */

.ambient-orb,
.ambient-orb-2 {
  position: fixed;
  width: 28vw;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(64px);
  z-index: 0;
  opacity: 0.18;
  mix-blend-mode: screen;
  animation: floatOrb 12s ease-in-out infinite;
}

.ambient-orb {
  top: 6vh;
  left: -8vw;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.48), transparent 62%);
}

.ambient-orb-2 {
  right: -8vw;
  bottom: 8vh;
  background: radial-gradient(circle, rgba(177, 15, 53, 0.34), transparent 64%);
  animation-delay: -4s;
}

.page-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(17, 17, 22, 0.95) 0%, rgba(8, 8, 12, 0.96) 100%);
  border: 1px solid var(--shell-line);
  border-radius: 42px;
  box-shadow: var(--shadow);
  padding-top: 1px;
  padding-inline: clamp(10px, 1vw, 18px);
  padding-bottom: clamp(64px, 1.6vw, 80px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  z-index: 2;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 0%, rgba(225, 29, 72, 0.08), transparent 20%),
    radial-gradient(circle at 88% 14%, rgba(177, 15, 53, 0.06), transparent 22%);
  opacity: 0.9;
  z-index: 0;
}

.scroll-progress {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 3px;
  width: 100%;
  margin-bottom: 4px;
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.025);
}

.scroll-progress::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--scroll-progress);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(177, 15, 53, 0.72), rgba(240, 106, 141, 0.92), rgba(255, 245, 248, 0.8));
  box-shadow:
    0 0 16px rgba(225, 29, 72, 0.3),
    0 0 30px rgba(240, 106, 141, 0.18);
  transition: width 120ms linear;
}

/* =========================
   Navigation
========================= */

.top-nav-wrap {
  position: sticky;
  top: 8px;
  z-index: 20;
  margin-bottom: 14px;
}

.top-nav {
  min-height: var(--nav-h);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  color: #c0c0cb;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: lowercase;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-120%);
  transition: transform 0.5s ease;
}

.nav-link:hover::after {
  transform: translateX(120%);
}

.nav-link:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: rgba(225, 29, 72, 0.1);
  border-color: rgba(225, 29, 72, 0.1);
}

.nav-link.active {
  background: linear-gradient(135deg, rgba(177, 15, 53, 0.88), rgba(105, 10, 31, 0.95));
  color: #fff;
  box-shadow:
    0 8px 18px rgba(177, 15, 53, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* =========================
   Hero
========================= */

.hero-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  min-height: 620px;
  background:
    radial-gradient(circle at 50% 20%, rgba(177, 15, 53, 0.14), transparent 35%),
    #0c0c10;
  border: 1px solid rgba(225, 29, 72, 0.1);
  margin-bottom: 22px;
  z-index: 1;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  transform: translate3d(var(--hero-shift-x), var(--hero-shift-y), 0) scale(1.02);
  transition: transform 180ms ease-out;
  background:
    radial-gradient(circle at 50% 18%, rgba(225, 29, 72, 0.20), transparent 28%),
    linear-gradient(180deg, rgba(35, 9, 16, 0.9), rgba(8, 8, 12, 0.92));
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 66%;
  filter: saturate(0.78) contrast(1.06) brightness(0.98);
  transform: scale(1.02);
}

.hero-foreground {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(circle at 50% 100%, rgba(177, 15, 53, 0.18), transparent 30%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.22) 100%);
  mix-blend-mode: screen;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 6, 0.16) 0%, rgba(4, 4, 6, 0.58) 100%),
    linear-gradient(90deg, rgba(177, 15, 53, 0.1), rgba(255, 255, 255, 0.015) 45%, rgba(177, 15, 53, 0.06) 100%),
    radial-gradient(circle at 75% 70%, rgba(225, 29, 72, 0.12), transparent 28%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.45), transparent 85%);
  opacity: 0.12;
  z-index: 2;
}

.hero-sweep {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  background: linear-gradient(
    110deg,
    transparent 38%,
    rgba(225, 29, 72, 0.02) 46%,
    rgba(225, 29, 72, 0.18) 50%,
    rgba(255,255,255,0.04) 52%,
    transparent 60%
  );
  transform: translateX(-55%);
  animation: heroSweep 8s linear infinite;
  z-index: 2;
  mix-blend-mode: screen;
}

.hero-noise {
  display: none !important;
}

.hero-rings {
  position: absolute;
  right: clamp(6%, 8vw, 12%);
  bottom: clamp(14%, 16vh, 21%);
  width: min(44vw, 520px);
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 4;
  opacity: 0.7;
  filter: blur(0.2px);
}

.hero-rings::before,
.hero-rings::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-rings::before {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.16), transparent 58%);
  filter: blur(24px);
  animation: ringPulse 7s ease-in-out infinite;
}

.hero-rings::after {
  width: 82%;
  height: 82%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(225, 29, 72, 0.08) inset,
    0 0 22px rgba(225, 29, 72, 0.1);
  mask-image: conic-gradient(
    from 0deg,
    rgba(0,0,0,0) 0deg,
    rgba(0,0,0,1) 38deg,
    rgba(0,0,0,0) 80deg,
    rgba(0,0,0,0) 180deg,
    rgba(0,0,0,1) 246deg,
    rgba(0,0,0,0) 300deg,
    rgba(0,0,0,0) 360deg
  );
  animation: ringRotate 20s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 5;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.hero-copy {
  margin-top: auto;
  margin-left: auto;
  text-align: right;
  color: #fff;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  z-index: 5;
  max-width: 860px;
  transform: translate3d(var(--hero-copy-x), var(--hero-copy-y), 0);
  transition: transform 120ms ease-out;
  will-change: transform;
  position: relative;
}

.hero-copy .eyebrow {
  font-size: clamp(0.92rem, 1.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
}

.hero-copy .title-wrap {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.hero-copy .title {
  font-size: clamp(4.2rem, 8.3vw, 7.8rem);
  font-style: italic;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: #fff7fa;
  position: relative;
  display: inline-block;
  z-index: 2;
  text-shadow:
    0 0 1px rgba(255,255,255,0.75),
    0 0 18px rgba(255,255,255,0.08),
    0 12px 26px rgba(0, 0, 0, 0.34);
  filter: saturate(1.05);
  background: transparent;
}

.hero-copy .title::after {
  content: "";
  position: absolute;
  inset: 18% 0 20% 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.16) 48%, transparent 100%);
  opacity: 0.24;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: titleSheen 5.4s ease-in-out infinite;
  z-index: 4;
}

.hero-copy .title.glitching::before,
.hero-copy .title.glitching::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  z-index: 5;
}

.hero-copy .title.glitching::before {
  color: rgba(225, 29, 72, 0.76);
  transform: translate(3px, -1px);
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 48%);
  filter: blur(0.35px);
}

.hero-copy .title.glitching::after {
  color: rgba(255,255,255,0.78);
  transform: translate(-3px, 1px);
  clip-path: polygon(0 58%, 100% 48%, 100% 100%, 0 100%);
  filter: blur(0.25px);
}

.hero-copy .title span {
  position: relative;
  color: #ff0026;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.35),
    0 0 1px rgba(255, 190, 205, 0.95),
    0 0 18px rgba(227, 24, 55, 0.5),
    0 0 38px rgba(227, 24, 55, 0.32),
    0 10px 18px rgba(0, 0, 0, 0.22);
}

.hero-meta-line {
  margin-top: 8px;
  margin-left: auto;
  color: rgba(255, 245, 248, 0.86);
  font-size: clamp(0.82rem, 0.95vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow:
    0 0 10px rgba(255,255,255,0.06),
    0 0 16px rgba(195, 0, 29, 0.14);
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.hero-meta-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(195,0,29,0.76), rgba(255,255,255,0));
  box-shadow: 0 0 12px rgba(195,0,29,0.18);
  opacity: 0.9;
}

.hero-copy .title .bloom-static {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  mix-blend-mode: screen;
  opacity: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255,255,255,0.12) 8%,
      transparent 16%,
      rgba(225,29,72,0.14) 28%,
      transparent 40%,
      rgba(255,255,255,0.10) 52%,
      transparent 66%,
      rgba(225,29,72,0.12) 78%,
      transparent 100%
    ),
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,0.07) 0px,
      rgba(255,255,255,0.07) 1px,
      transparent 1px,
      transparent 3px
    );
  filter: blur(0.15px);
  animation: bloomStaticIdle 4.2s steps(2) infinite;
}

.hero-copy .title.glitching .bloom-static {
  opacity: 0.9;
  animation: bloomStaticBurst 220ms steps(3) 1;
}

.hero-copy .subline {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-left: auto;
  max-width: 50ch;
}

.hero-status {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-time {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  font-size: clamp(0.94rem, 1vw, 1.04rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 245, 248, 0.92);
  line-height: 1;
  position: relative;
  padding-bottom: 6px;
  text-shadow:
    0 0 10px rgba(255,255,255,0.08),
    0 0 16px rgba(195, 0, 29, 0.16);
  white-space: nowrap;
}

.hero-time::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(195,0,29,0.8), rgba(255,255,255,0));
  box-shadow: 0 0 12px rgba(195,0,29,0.2);
  opacity: 0.9;
}

/* =========================
   Layout / Panels
========================= */

.content-grid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: var(--section-gap);
  align-items: start;
  position: relative;
  z-index: 1;
}

.stack {
  display: grid;
  gap: var(--section-gap);
}

.panel {
  background: linear-gradient(180deg, rgba(18, 18, 24, 0.92) 0%, rgba(10, 10, 14, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-soft);
  padding: var(--card-padding);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    opacity 600ms ease,
    filter 600ms ease,
    background 220ms ease;
  isolation: isolate;
  transform-style: preserve-3d;
  will-change: transform;
}

.panel::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  z-index: 0;
}

.panel-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(225, 29, 72, 0.14), transparent 32%);
  opacity: 0;
  transition: opacity 180ms ease;
  mix-blend-mode: screen;
  z-index: 0;
}

.panel:hover {
  transform: translateY(-3px);
  border-color: rgba(225, 29, 72, 0.12);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
  background: linear-gradient(180deg, rgba(20, 20, 27, 0.94) 0%, rgba(10, 10, 14, 0.98) 100%);
}

.profile-card,
.cert-sidebar-panel,
.bugbanner2-card,
.cert-panel,
.projects-panel,
.art-panel,
.project-card,
.art-card,
.info-card {
  z-index: 1;
}

/* =========================
   Profile
========================= */

.profile-card {
  display: grid;
  gap: 18px;
  align-content: start;
  position: sticky;
  top: calc(var(--nav-h) + 30px);
}

.profile-art {
  width: 100%;
  aspect-ratio: 1 / 1.06;
  border-radius: var(--inner-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1b1b23, #111118);
  border: 1px solid rgba(225, 29, 72, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}

.profile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%, rgba(225,29,72,0.06) 100%);
  pointer-events: none;
}

.profile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.05);
  transition: transform 500ms ease;
}

.profile-art:hover img {
  transform: scale(1.03);
}

.profile-contact-copy {
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.94rem;
  margin-top: -2px;
  position: relative;
  z-index: 1;
}

.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  padding: 12px 18px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7f4f7;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    color var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.profile-pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  transform: translateX(-140%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.profile-pill:hover::before,
.profile-pill:focus-visible::before {
  transform: translateX(140%);
}

.profile-pill:hover,
.profile-pill:focus-visible {
  transform: translateY(-2px);
  color: #ffffff;
  border-color: rgba(225, 29, 72, 0.24);
  background: rgba(225, 29, 72, 0.08);
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.24),
    0 0 18px rgba(177, 15, 53, 0.10);
}

.profile-pill:focus-visible {
  outline: 2px solid rgba(240, 106, 141, 0.92);
  outline-offset: 4px;
}

.profile-pill-linkedin {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.name-block {
  display: grid;
  gap: 8px;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.name-block h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #f7f4f7;
  text-transform: uppercase;
  margin-bottom: 0;
}

.location-line {
  color: var(--text-soft);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #b10f35, #700b22);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 20px rgba(177, 15, 53, 0.16);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.role-tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: translateX(-140%);
  animation: shimmer 4.8s ease-in-out infinite;
}

.profile-copy {
  color: var(--text-soft);
  line-height: 1.72;
  font-size: 0.98rem;
}

/* =========================
   Banner 2
========================= */

.bugbanner2-card {
  padding: 10px;
}

.bugbanner2-mobile {
  display: none;
}

.bugbanner2-art {
  width: 100%;
  aspect-ratio: 9 / 16;
  min-height: 900px;
  border-radius: var(--inner-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1b1b23, #111118);
  border: 1px solid rgba(225, 29, 72, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
  position: relative;
}

.bugbanner2-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 28%, rgba(225,29,72,0.06) 100%);
  pointer-events: none;
  z-index: 1;
}

.bugbanner2-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 500ms ease, filter 400ms ease;
}

.bugbanner2-card:hover .bugbanner2-art img {
  transform: scale(1.02);
  filter: saturate(0.98) contrast(1.06);
}

/* =========================
   Shared Section Styling
========================= */

.section-kicker {
  color: #f06a8d;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 460px);
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  position: relative;
  display: inline-block;
  width: fit-content;
}

.section-header h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 58%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(225,29,72,0.9), rgba(240,106,141,0.2));
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.18);
}

.section-header p {
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.98rem;
  text-align: right;
  justify-self: end;
}

/* =========================
   Projects / Art Cards
========================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.project-card,
.art-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    opacity 600ms ease,
    filter 600ms ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.project-card::before,
.art-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(225, 29, 72, 0.08), transparent);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.project-card::after,
.art-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.14), transparent 72%);
  pointer-events: none;
  opacity: 0.75;
  filter: blur(8px);
}

.project-card:hover::before,
.art-card:hover::before {
  transform: translateX(130%);
}

.project-card:hover,
.art-card:hover {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  background: rgba(225, 29, 72, 0.04);
}

.project-card h3,
.art-card h3,
.info-card h3 {
  font-size: 1.22rem;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.project-card p,
.art-card p,
.info-card p,
.info-card li {
  color: var(--text-soft);
  line-height: 1.75;
  font-size: 0.97rem;
  position: relative;
  z-index: 1;
}

.art-card p {
  margin-bottom: 12px;
}

.project-meta,
.art-meta {
  margin: 12px 0 14px;
  color: var(--red-soft);
  font-size: 0.89rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}

.project-image-wrap,
.art-image-wrap {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  margin-top: 12px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.project-image-wrap::after,
.art-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent 35%, rgba(225,29,72,0.06) 100%);
}

.project-image {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) contrast(1.04);
  transition: filter 450ms ease, transform 450ms ease;
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.art-image {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.92) contrast(1.04);
  transition: filter 450ms ease, transform 450ms ease;
  position: relative;
  z-index: 1;
  object-fit: cover;
}

.project-card:hover .project-image,
.art-card:hover .art-image {
  filter: saturate(0.98) contrast(1.06);
  transform: scale(1.01);
}

.project-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.10);
  border: 1px solid rgba(225, 29, 72, 0.16);
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  align-self: flex-start;
  margin-top: 18px;
}

.project-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  transform: translateX(-140%);
  transition: transform 0.6s ease;
}

.project-link:hover::before {
  transform: translateX(140%);
}

.project-link:hover {
  transform: translateY(-1px);
  background: rgba(225, 29, 72, 0.16);
  border-color: rgba(225, 29, 72, 0.28);
  box-shadow: 0 10px 20px rgba(177, 15, 53, 0.16);
}

/* =========================
   Certifications
========================= */

.cert-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.cert-link {
  display: block;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

.cert-link:focus-visible {
  outline: 2px solid rgba(240, 106, 141, 0.9);
  outline-offset: 4px;
  border-radius: 18px;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 84px;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    opacity 600ms ease,
    filter 600ms ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  will-change: transform;
}

.cert-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(225, 29, 72, 0.08), transparent);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.cert-link:hover .cert-item::before,
.cert-link:focus-visible .cert-item::before {
  transform: translateX(130%);
}

.cert-link:hover .cert-item,
.cert-link:focus-visible .cert-item {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.26);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  background: rgba(225, 29, 72, 0.05);
}

.cert-item img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.22));
  position: relative;
  z-index: 1;
}

.cert-item span {
  color: var(--text);
  line-height: 1.35;
  font-size: 0.93rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.cert-sidebar-panel .section-header {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.cert-sidebar-panel .section-header p {
  text-align: left;
  justify-self: start;
}

.cert-sidebar-panel .section-header h2 {
  font-size: clamp(1.7rem, 2vw, 2.2rem);
}

.cert-sidebar-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cert-sidebar-list .cert-item {
  min-height: 88px;
}

.cert-panel-mobile {
  display: none;
}

/* =========================
   Illustrations
========================= */

.art-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.art-card {
  min-height: 100%;
}

.art-card .art-image-wrap {
  margin-top: 10px;
  aspect-ratio: 4 / 5;
  min-height: 0;
  display: block;
  border-radius: 18px;
}

.art-card.featured .art-image,
.art-card.side-one .art-image,
.art-card.side-two .art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-card.featured .art-image {
  object-position: center center;
}

.art-card.side-one .art-image {
  object-position: 52%;
}

.art-card.side-two .art-image {
  object-position: center top;
}

/* =========================
   Info / Footer
========================= */

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.info-card {
  min-height: 100%;
}

.info-card h3 {
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.simple-list li {
  padding: 12px 14px;
  border-radius: 16px;
  gap: 16px;
  margin-top: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.simple-list li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  pointer-events: none;
}

.simple-list li:hover::before {
  transform: translateX(130%);
}

.simple-list li:hover {
  transform: translateY(-1px);
  border-color: rgba(225, 29, 72, 0.22);
  background: rgba(225, 29, 72, 0.055);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.simple-list li strong {
  color: #fff;
  font-weight: 700;
}

footer {
  padding: 24px 8px 4px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =========================
   Utility / Reveal / Fallback
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  filter: blur(8px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (max-width: 640px) {
  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

.img-fallback {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.75);
  background:
    radial-gradient(circle at 50% 25%, rgba(225, 29, 72, 0.16), transparent 24%),
    linear-gradient(180deg, rgba(24, 10, 14, 0.96), rgba(10, 10, 14, 0.98));
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================
   Lightbox
========================= */

.lightbox-trigger {
  display: block;
  width: 100%;
  border-radius: inherit;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.lightbox-trigger:focus-visible {
  outline: 2px solid rgba(240, 106, 141, 0.9);
  outline-offset: 4px;
}

.lightbox-trigger::before {
  content: "View";
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(8, 8, 12, 0.68);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
  pointer-events: none;
}

.lightbox-trigger:hover::before,
.lightbox-trigger:focus-visible::before {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(177, 15, 53, 0.16), transparent 34%),
    rgba(3, 3, 5, 0.9);
  backdrop-filter: blur(16px);
  animation: lightboxFade 220ms ease;
}

.lightbox.open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(96vw, 1400px);
  max-height: 96vh;
  display: inline-grid;
  gap: 10px;
  justify-items: center;
  animation: lightboxZoom 240ms cubic-bezier(.22, 1, .36, 1);
}

.lightbox-frame {
  position: relative;
  overflow: visible;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: inline-grid;
  place-items: center;
  min-height: 0;
  max-height: none;
  padding: 0;
}

.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(96vw, 1400px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

body.lightbox-open {
  overflow: hidden;
}

/* =========================
   Responsive
========================= */

@media (max-width: 1400px) {
  .cert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .profile-card {
    position: relative;
    top: 0;
  }

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

  .art-grid .art-card:last-child,
  .more-grid .info-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .section-header {
    grid-template-columns: 1fr;
  }

  .section-header p {
    text-align: left;
    justify-self: start;
    max-width: 48ch;
  }

  .hero-card {
    min-height: 520px;
  }

  .hero-inner {
    min-height: 520px;
    padding: 20px;
  }

  .hero-copy {
    max-width: min(82vw, 520px);
  }

  .hero-rings {
    width: min(58vw, 360px);
    right: 4%;
    bottom: 18%;
  }

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

  .art-grid .art-card:last-child,
  .more-grid .info-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  body {
    padding: 2px;
  }

  body::before,
  body::after,
  .ambient-orb,
  .ambient-orb-2,
  .hero-rings,
  .hero-sweep,
  .hero-grid {
    display: none !important;
  }

  .page-shell {
    border-radius: 28px;
    padding: 8px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  }

  .panel,
  .hero-card {
    border-radius: 22px;
  }

  .panel {
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  }

  .panel::before,
  .project-card::after,
  .art-card::after {
    display: none;
  }

  .scroll-progress {
    height: 2px;
    margin-bottom: 2px;
  }

  .top-nav-wrap {
    top: 6px;
    margin-bottom: 4px;
  }

  .top-nav {
    border-radius: 22px;
    padding: 6px 8px;
    min-height: 64px;
    backdrop-filter: none !important;
  }

  .nav-pill {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
    max-width: 100%;
    margin: 0;
  }

  .nav-link {
    min-height: 28px;
    padding: 8px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
    letter-spacing: -0.01em;
  }


  .nav-link.external:last-child {
    display: none;
  }

  .hero-card {
    min-height: 460px;
  }

  .hero-inner {
    min-height: 460px;
    padding: 14px;
  }

  .hero-media {
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .hero-media img {
    object-fit: cover;
    object-position: 51.5% top;
    transform: none;
  }

  .hero-copy {
    max-width: min(78vw, 420px);
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }

  .hero-copy .title {
    font-size: clamp(2.5rem, 10vw, 3.8rem);
    line-height: 0.95;
  }

  .hero-copy .title::after {
    animation: none;
  }

  .hero-copy .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
  }

  .hero-copy .subline {
    margin-top: 12px;
    font-size: 0.82rem;
    line-height: 1.35;
    max-width: 50ch;
    margin-left: auto;
  }

  .hero-status {
    margin-top: 14px;
    gap: 8px;
    justify-content: flex-end;
  }

  .hero-time {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding-bottom: 4px;
  }

  .hero-meta-line {
    margin-top: 6px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
  }

  .panel {
    padding: 16px;
    backdrop-filter: none !important;
  }

  .bugbanner2-card {
    padding: 10px;
  }

  .bugbanner2-mobile {
    display: block;
  }

@media (max-width: 640px) {
  .bugbanner2-art {
    border-radius: 18px;
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
  }

  .bugbanner2-art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

  .section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .section-header h2 {
    font-size: 1.55rem;
  }

  .section-header p {
    text-align: left;
    justify-self: auto;
    margin-left: 0;
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .profile-copy,
  .project-card p,
  .art-card p,
  .info-card p {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .profile-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }

  .profile-actions .profile-pill {
    flex: 1 1 100%;
    min-width: 0;
    width: auto;
    padding: 11px 12px;
    font-size: 0.86rem;
    backdrop-filter: none !important;
  }

  .art-card .art-image-wrap {
    aspect-ratio: 4 / 5;
  }

  .hero-sweep,
  .hero-grid {
    display: none;
  }

  body::after {
    opacity: 0.28;
  }

  .ambient-orb,
  .ambient-orb-2 {
    opacity: 0.12;
  }

  .cert-sidebar-panel {
    display: none;
  }

  .cert-panel-mobile {
    display: block;
    padding: 18px 14px 14px;
  }

  .cert-panel-mobile .section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
  }

  .cert-panel-mobile .section-header h2 {
    font-size: 1.55rem;
    line-height: 0.95;
  }

  .cert-panel-mobile .section-header h2::after {
    width: 72%;
    height: 4px;
    bottom: -10px;
    background: linear-gradient(90deg, rgba(225,29,72,0.98), rgba(240,106,141,0.28));
  }

  .cert-panel-mobile .section-header p {
    text-align: left;
    justify-self: auto;
    margin-left: 0;
    max-width: none;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  .cert-panel-mobile .cert-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cert-panel-mobile .cert-link {
    border-radius: 24px;
  }

  .cert-panel-mobile .cert-link:focus-visible {
    border-radius: 24px;
  }

  .cert-panel-mobile .cert-item {
    gap: 10px;
    min-height: 84px;
    padding: 12px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 15, 21, 0.96) 0%, rgba(10, 10, 15, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.03),
      0 10px 28px rgba(0,0,0,0.22);
  }

  .cert-panel-mobile .cert-item::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0.02), transparent 38%, rgba(225, 29, 72, 0.04) 100%);
    z-index: 0;
  }

  .cert-panel-mobile .cert-item img {
    width: 52px;
    height: 52px;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.28));
  }

  .cert-panel-mobile .cert-item span {
    font-size: 0.73rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.025em;
  }

  .lightbox {
    padding: 16px;
    backdrop-filter: none !important;
  }

  .lightbox-dialog {
    gap: 0;
  }

  .lightbox-frame {
    border-radius: 20px;
    padding: 0;
  }

  .lightbox-image {
    max-height: calc(92vh - 96px);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  .lightbox-trigger::before {
    backdrop-filter: none !important;
  }
}

@media (min-width: 641px) {
  .cert-panel-mobile,
  .bugbanner2-mobile {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .nav-link {
    font-size: 0.65rem;
    padding: 7px 4px;
  }

@media (max-width: 420px) {
  .bugbanner2-art {
    border-radius: 18px;
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
  }

  .bugbanner2-art img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }
}

  .cert-panel-mobile .cert-list {
    gap: 8px;
  }

  .cert-panel-mobile .cert-item {
    min-height: 80px;
    padding: 10px;
    gap: 8px;
  }

  .cert-panel-mobile .cert-item img {
    width: 42px;
    height: 42px;
  }

  .cert-panel-mobile .cert-item span {
    font-size: 0.68rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
}

@media (hover: none), (pointer: coarse) {
  * {
    cursor: auto;
  }

  .lightbox-trigger {
    cursor: pointer;
  }

  .lightbox-trigger::before {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  body::after {
    opacity: 0.2;
  }

  .reveal,
  .reveal.visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero-rings,
  .scroll-progress {
    display: none !important;
  }
}