:root {
  --bg: #eaf6ff;
  --card: rgba(255, 255, 255, 0.78);
  --line: rgba(13, 42, 67, 0.18);
  --signal: #0284c7;
  --ember: #f97316;
  --text: #0f2740;
  --muted: #274862;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 18% 20%, #f0f9ff, #dbeafe 45%, #dbeafe 60%, #e0f2fe);
  color: var(--text);
}

body.loading {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #0b2237, #071725);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-core {
  width: min(90vw, 420px);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(3, 16, 28, 0.7);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

.loader-label {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  color: #67e8f9;
}

.loader-scan {
  margin-top: 0.75rem;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.loader-scan span {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 999px;
  background: linear-gradient(90deg, #06b6d4, #fb923c);
  animation: loaderSweep 1.2s ease-in-out infinite;
}

.loader-text {
  margin: 0.7rem 0 0;
  color: #cbe6ff;
  font-size: 0.82rem;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.section-handoff {
  position: absolute;
  inset: -2%;
  background:
    linear-gradient(
      125deg,
      color-mix(in srgb, var(--handoff-a, #a5f3fc) 20%, transparent) 0%,
      color-mix(in srgb, var(--handoff-a, #a5f3fc) 12%, transparent) var(--handoff-mix, 35%),
      color-mix(in srgb, var(--handoff-b, #fdba74) 18%, transparent) 100%
    );
  opacity: 0.65;
  filter: blur(4px);
  transition: background 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.bg-photo-fade {
  position: absolute;
  inset: -4%;
  background-image:
    linear-gradient(120deg, rgba(15, 31, 46, 0.78), rgba(15, 31, 46, 0.62)),
    url('./assets/bg-photo-optimized.jpg');
  background-size: cover;
  background-position: center 20%;
  opacity: 0.18;
  transform: scale(1.04);
  filter: saturate(1.1) contrast(1.05);
  animation: bgFade 16s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.34;
}

.orb-a {
  width: 340px;
  height: 340px;
  left: -80px;
  top: 15vh;
  background: #67e8f9;
  animation: floatA 16s ease-in-out infinite;
}

.orb-b {
  width: 360px;
  height: 360px;
  right: -120px;
  top: 38vh;
  background: #fdba74;
  animation: floatB 18s ease-in-out infinite;
}

.grid-fade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 85%);
  opacity: 0.2;
}

.bird-flock {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}

.bird {
  position: absolute;
  left: -15vw;
  top: 12vh;
  width: 28px;
  height: 12px;
  animation: birdFly linear infinite;
}

.bird::before,
.bird::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 8px;
  border-top: 2px solid rgba(12, 74, 110, 0.45);
  border-radius: 100% 100% 0 0;
  transform-origin: center bottom;
}

.bird::before {
  left: 0;
  transform: rotate(20deg);
  animation: wingFlapLeft 1s ease-in-out infinite;
}

.bird::after {
  right: 0;
  transform: rotate(-20deg);
  animation: wingFlapRight 1s ease-in-out infinite;
}

.bird-1 {
  top: 18vh;
  animation-duration: 20s;
  animation-delay: -3s;
}

.bird-2 {
  top: 28vh;
  animation-duration: 24s;
  animation-delay: -8s;
  transform: scale(0.88);
}

.bird-3 {
  top: 40vh;
  animation-duration: 22s;
  animation-delay: -13s;
  transform: scale(1.1);
}

.bird-4 {
  top: 54vh;
  animation-duration: 26s;
  animation-delay: -17s;
  transform: scale(0.95);
}

.bird-5 {
  top: 66vh;
  animation-duration: 23s;
  animation-delay: -11s;
  transform: scale(0.84);
}

.bird-6 {
  top: 22vh;
  animation-duration: 27s;
  animation-delay: -19s;
  transform: scale(0.82);
}

.bird-7 {
  top: 34vh;
  animation-duration: 19s;
  animation-delay: -7s;
  transform: scale(1.12);
}

.bird-8 {
  top: 47vh;
  animation-duration: 25s;
  animation-delay: -15s;
  transform: scale(0.92);
}

.bird-9 {
  top: 61vh;
  animation-duration: 21s;
  animation-delay: -5s;
  transform: scale(1.04);
}

.bird-10 {
  top: 74vh;
  animation-duration: 29s;
  animation-delay: -12s;
  transform: scale(0.76);
}

.wind-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
}

.wind-line {
  position: absolute;
  left: -24vw;
  width: 18vw;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0), rgba(56, 189, 248, 0.3), rgba(56, 189, 248, 0));
  filter: blur(0.35px);
  animation: windDrift linear infinite;
}

.wind-1 { top: 14vh; animation-duration: 10s; animation-delay: -2s; }
.wind-2 { top: 24vh; animation-duration: 13s; animation-delay: -8s; width: 24vw; }
.wind-3 { top: 36vh; animation-duration: 11s; animation-delay: -4s; }
.wind-4 { top: 46vh; animation-duration: 9s; animation-delay: -6s; width: 22vw; }
.wind-5 { top: 58vh; animation-duration: 12s; animation-delay: -10s; }
.wind-6 { top: 68vh; animation-duration: 14s; animation-delay: -3s; width: 20vw; }
.wind-7 { top: 78vh; animation-duration: 10.5s; animation-delay: -9s; }
.wind-8 { top: 88vh; animation-duration: 15s; animation-delay: -13s; width: 26vw; }

.cloud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.44;
}

.cloud {
  position: absolute;
  left: -26vw;
  width: 24vw;
  height: 7vw;
  max-width: 360px;
  max-height: 120px;
  background: radial-gradient(circle at 28% 45%, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2) 70%);
  border-radius: 100px;
  filter: blur(1px);
  animation: cloudDrift linear infinite;
}

.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
}

.cloud::before {
  width: 48%;
  height: 74%;
  left: 12%;
  top: -34%;
}

.cloud::after {
  width: 38%;
  height: 64%;
  right: 16%;
  top: -28%;
}

.cloud-1 { top: 9vh; animation-duration: 55s; animation-delay: -16s; }
.cloud-2 { top: 19vh; animation-duration: 66s; animation-delay: -40s; width: 18vw; }
.cloud-3 { top: 32vh; animation-duration: 58s; animation-delay: -29s; width: 20vw; }
.cloud-4 { top: 46vh; animation-duration: 72s; animation-delay: -52s; width: 26vw; }

.storm-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.storm-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 25% 18%, rgba(127, 29, 29, 0.36), transparent 55%),
    radial-gradient(circle at 74% 24%, rgba(127, 29, 29, 0.34), transparent 52%);
  mix-blend-mode: multiply;
}

.storm-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  animation: stormScreenFlash 8s linear infinite;
}

.storm-flash {
  position: absolute;
  width: 10px;
  height: 46vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  clip-path: polygon(38% 0, 68% 0, 52% 20%, 72% 20%, 34% 52%, 58% 52%, 26% 100%, 8% 100%, 34% 62%, 16% 62%, 44% 28%, 26% 28%);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
  transform: skewX(-18deg);
  opacity: 0;
  animation: lightningFlash 6.5s linear infinite;
}

.flash-1 { left: 26vw; top: 4vh; animation-delay: -2s; }
.flash-2 { left: 72vw; top: 9vh; animation-delay: -5s; }
.flash-3 { left: 45vw; top: 2vh; animation-delay: -3.3s; transform: scale(0.9) skewX(-22deg); }
.flash-4 { left: 86vw; top: 7vh; animation-delay: -1.4s; transform: scale(0.78) skewX(-26deg); }

.storm-rain {
  position: absolute;
  top: -18vh;
  width: 1.2px;
  height: 16vh;
  background: linear-gradient(180deg, rgba(191, 219, 254, 0), rgba(191, 219, 254, 0.6), rgba(191, 219, 254, 0));
  transform: rotate(14deg);
  animation: rainFall linear infinite;
}

.rain-1 { left: 12vw; animation-duration: 1.2s; animation-delay: -0.2s; }
.rain-2 { left: 24vw; animation-duration: 1.35s; animation-delay: -0.5s; }
.rain-3 { left: 36vw; animation-duration: 1.1s; animation-delay: -0.8s; }
.rain-4 { left: 52vw; animation-duration: 1.25s; animation-delay: -1.1s; }
.rain-5 { left: 66vw; animation-duration: 1.15s; animation-delay: -0.4s; }
.rain-6 { left: 81vw; animation-duration: 1.3s; animation-delay: -0.9s; }
.rain-7 { left: 6vw; animation-duration: 1.05s; animation-delay: -0.35s; }
.rain-8 { left: 18vw; animation-duration: 1.18s; animation-delay: -0.75s; }
.rain-9 { left: 30vw; animation-duration: 1.12s; animation-delay: -0.62s; }
.rain-10 { left: 43vw; animation-duration: 1.27s; animation-delay: -0.88s; }
.rain-11 { left: 59vw; animation-duration: 1.14s; animation-delay: -1.02s; }
.rain-12 { left: 74vw; animation-duration: 1.2s; animation-delay: -0.56s; }

.fear-vignette {
  position: absolute;
  inset: -8%;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0) 22%, rgba(10, 0, 0, 0.42) 68%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(circle at 22% 12%, rgba(127, 29, 29, 0.16), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(127, 29, 29, 0.14), transparent 36%);
}

.danger-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.016) 0 1px, transparent 1px 4px);
  mix-blend-mode: soft-light;
  animation: grainShift 0.35s steps(2) infinite;
}

.nav-link {
  color: #23435f;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--signal);
}

.nav-link.active {
  color: #0b2239;
  text-shadow: 0 0 16px rgba(2, 132, 199, 0.3);
}

.social-top {
  align-items: center;
  gap: 0.45rem;
}

.team-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: #1b4263;
}

.team-toggle input {
  display: none;
}

.team-slider {
  width: 2.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.35);
  background: rgba(255, 255, 255, 0.8);
  position: relative;
}

.team-slider::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: #0284c7;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.team-toggle input:checked + .team-slider::after {
  transform: translateX(0.98rem);
  background: #ef4444;
}

.team-label.red {
  color: #b91c1c;
}

.quiz-options {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.quiz-option {
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.55rem 0.7rem;
  color: #15344d;
  text-align: left;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: rgba(249, 115, 22, 0.6);
}

.quiz-option.correct {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(34, 197, 94, 0.13);
}

.quiz-option.wrong {
  border-color: rgba(239, 68, 68, 0.7);
  background: rgba(239, 68, 68, 0.12);
}

.quiz-feedback {
  margin-top: 0.75rem;
  font-size: 0.84rem;
  color: #0f2740;
  min-height: 1.2rem;
}

body.red-team-mode {
  --signal: #dc2626;
  --ember: #ef4444;
  --line: rgba(127, 29, 29, 0.42);
  --text: #fef2f2;
  --muted: #fecaca;
  background: radial-gradient(circle at 18% 20%, #2a0505, #230507 35%, #1a0407 68%, #0d0204 100%);
}

body.red-team-mode::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle at 15% 12%, rgba(220, 38, 38, 0.18), transparent 40%),
    radial-gradient(circle at 82% 76%, rgba(185, 28, 28, 0.14), transparent 42%);
}

body.red-team-mode .section-handoff {
  opacity: 1;
  background:
    linear-gradient(
      125deg,
      rgba(220, 38, 38, 0.38) 0%,
      rgba(225, 29, 72, 0.32) var(--handoff-mix, 45%),
      rgba(244, 63, 94, 0.38) 100%
    );
}

body.red-team-mode header {
  border-color: rgba(239, 68, 68, 0.4) !important;
  background: rgba(16, 3, 5, 0.84) !important;
}

body.red-team-mode #mobile-menu {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(16, 3, 5, 0.94);
}

body.red-team-mode .nav-link {
  color: #fecaca;
}

body.red-team-mode .nav-link.active {
  color: #fff1f2;
  text-shadow: 0 0 16px rgba(248, 113, 113, 0.42);
}

body.red-team-mode .scroll-progress {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

body.red-team-mode .hero-split-bg {
  background:
    linear-gradient(90deg, rgba(252, 165, 165, 0.24) 0, rgba(252, 165, 165, 0.24) var(--split-pos), transparent var(--split-pos)),
    linear-gradient(90deg, transparent 0, transparent var(--split-pos), rgba(251, 113, 133, 0.24) var(--split-pos));
}

body.red-team-mode .bg-photo-fade {
  background-image:
    linear-gradient(120deg, rgba(69, 10, 10, 0.84), rgba(127, 29, 29, 0.76)),
    url('./assets/bg-photo-optimized.jpg');
  opacity: 0.3;
  filter: saturate(1.22) contrast(1.08);
}

body.red-team-mode .bird::before,
body.red-team-mode .bird::after {
  border-top-color: rgba(127, 29, 29, 0.6);
}

body.red-team-mode .wind-line {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0), rgba(239, 68, 68, 0.34), rgba(239, 68, 68, 0));
}

body.red-team-mode .cloud-layer {
  opacity: 0;
}

body.red-team-mode .storm-layer {
  opacity: 1;
}

body.red-team-mode .storm-rain {
  background: linear-gradient(180deg, rgba(254, 202, 202, 0), rgba(254, 202, 202, 0.6), rgba(254, 202, 202, 0));
}

body.red-team-mode .orb-a {
  background: #fda4af;
}

body.red-team-mode .orb-b {
  background: #f87171;
}

body.red-team-mode .grid-fade {
  background-image: linear-gradient(rgba(239, 68, 68, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.12) 1px, transparent 1px);
  opacity: 0.26;
}

body.red-team-mode main > section,
body.red-team-mode .post-card,
body.red-team-mode .timeline-card,
body.red-team-mode .glass-card,
body.red-team-mode .metric-card,
body.red-team-mode .game-wrap,
body.red-team-mode .owasp-mini-tab {
  background: linear-gradient(130deg, rgba(42, 5, 5, 0.75), rgba(69, 10, 10, 0.65));
  border-color: rgba(239, 68, 68, 0.34);
  box-shadow: 0 18px 36px rgba(127, 29, 29, 0.28);
}

body.red-team-mode main > section::before {
  background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.16), transparent);
}

body.red-team-mode .section-title {
  color: #7f1d1d;
}

body.red-team-mode .timeline-card ul,
body.red-team-mode .post-card p,
body.red-team-mode .project-card p,
body.red-team-mode .story-step p,
body.red-team-mode .ambient-panel p {
  color: #fecaca;
}

body.red-team-mode .card-title,
body.red-team-mode .timeline-card h3,
body.red-team-mode .metric-num,
body.red-team-mode .quote-card p,
body.red-team-mode .owasp-mini-tab h3,
body.red-team-mode .game-status,
body.red-team-mode .command-head p {
  color: #fff1f2;
}

body.red-team-mode .storm-layer {
  opacity: 1;
  animation: stormBreath 4.8s ease-in-out infinite;
}

body.red-team-mode .fear-vignette {
  opacity: 1;
}

body.red-team-mode .danger-grain {
  opacity: 0.35;
}

body.red-team-mode .btn-primary {
  background: #dc2626;
}

body.red-team-mode .btn-primary:hover {
  background: #b91c1c;
}

body.red-team-mode .btn-secondary {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(255, 255, 255, 0.58);
  color: #4a0f0f;
}

body.red-team-mode .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.88);
}

body.red-team-mode .project-link,
body.red-team-mode .stack,
body.red-team-mode .timeline-meta,
body.red-team-mode .post-meta,
body.red-team-mode .owasp-tag {
  color: #b91c1c;
  border-bottom-color: rgba(185, 28, 28, 0.5);
}

body.red-team-mode .chip {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(255, 255, 255, 0.56);
  color: #6b1111;
}

body.red-team-mode .chip.active {
  border-color: rgba(220, 38, 38, 0.72);
  background: rgba(254, 202, 202, 0.6);
  color: #450a0a;
}

body.red-team-mode .social-icon {
  border-color: rgba(220, 38, 38, 0.35);
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.8);
}

body.red-team-mode .social-icon:hover {
  background: #fff;
  border-color: rgba(185, 28, 28, 0.7);
  color: #991b1b;
}

body.red-team-mode .team-toggle,
body.red-team-mode .mini-toggle,
body.red-team-mode .icon-btn {
  color: #fecaca;
}

body.red-team-mode .team-slider {
  border-color: rgba(220, 38, 38, 0.45);
  background: rgba(255, 255, 255, 0.9);
}

body.red-team-mode .team-slider::after {
  background: #dc2626;
}

body.red-team-mode .team-toggle input:checked + .team-slider::after {
  background: #991b1b;
}

body.red-team-mode .radar-canvas,
body.red-team-mode .radar-legend article,
body.red-team-mode .quiz-option,
body.red-team-mode .ttt-cell,
body.red-team-mode .game-score p,
body.red-team-mode .owasp-item,
body.red-team-mode .game-select {
  border-color: rgba(220, 38, 38, 0.34);
  background: rgba(255, 255, 255, 0.75);
  color: #5b1111;
}

body.red-team-mode .project-card::after {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(254, 202, 202, 0.6), transparent 35%);
}

body.red-team-mode .hero-dual-label span:last-child,
body.red-team-mode .team-label.red {
  color: #b91c1c;
}

body.red-team-mode .profile-photo {
  border-color: rgba(248, 113, 113, 0.72);
}

body.red-team-mode .skill-badge {
  border-color: rgba(220, 38, 38, 0.38);
  background: rgba(220, 38, 38, 0.08);
  color: #5b1111;
}

body.red-team-mode .project-card:hover {
  border-color: rgba(220, 38, 38, 0.44);
}

body.red-team-mode .owasp-item.active {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.54);
  color: #3f0d0d;
}

body.red-team-mode .owasp-why {
  border-top-color: rgba(220, 38, 38, 0.34);
  color: #5b1111;
}

body.red-team-mode .ttt-cell.cell-x,
body.red-team-mode .ttt-cell.cell-o {
  color: #f87171;
}

body.red-team-mode .sticky-cta {
  background: #dc2626;
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.32);
}

body.red-team-mode .sticky-cta:hover {
  background: #b91c1c;
}

body.red-team-mode .heat-cell {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(254, 202, 202, 0.4);
}

body.red-team-mode .heat-cell.l1 {
  background: rgba(252, 165, 165, 0.5);
}

body.red-team-mode .heat-cell.l2 {
  background: rgba(248, 113, 113, 0.56);
}

body.red-team-mode .heat-cell.l3 {
  background: rgba(239, 68, 68, 0.6);
}

body.red-team-mode .heat-cell.l4 {
  background: rgba(185, 28, 28, 0.74);
}

.social-icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.25);
  background: rgba(255, 255, 255, 0.62);
  color: #124365;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-icon svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.social-icon:hover {
  transform: translateY(-2px);
  background: #ffffff;
  border-color: rgba(249, 115, 22, 0.6);
  color: #b45309;
}

.scroll-progress {
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, #06b6d4, #fb923c);
  transition: width 0.1s linear;
}

.section-title {
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  --split-pos: 50%;
}

.hero-split-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 132, 199, 0.12) 0, rgba(2, 132, 199, 0.12) var(--split-pos), transparent var(--split-pos)),
    linear-gradient(90deg, transparent 0, transparent var(--split-pos), rgba(249, 115, 22, 0.12) var(--split-pos));
  pointer-events: none;
  transition: background 0.2s ease;
}

.hero-content,
.hero-shell aside {
  position: relative;
  z-index: 1;
}

.hero-dual-label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: #1d4c75;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.6rem;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: var(--ember);
  color: #fff;
}

.btn-primary:hover {
  background: #f97316;
}

.btn-secondary {
  border-color: rgba(2, 132, 199, 0.28);
  color: #0f2740;
  background: rgba(255, 255, 255, 0.5);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.78);
}

.glass-card,
.timeline-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  backdrop-filter: blur(10px);
  padding: 1.2rem;
  box-shadow: 0 12px 30px rgba(2, 19, 36, 0.08);
}

.project-card {
  animation: none;
}

.card-title {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.profile-photo {
  width: 128px;
  height: 128px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 22%;
  border: 3px solid rgba(34, 211, 238, 0.6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.9rem;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.profile-photo:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 22px 45px rgba(3, 24, 44, 0.3);
}

#skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-badge {
  border: 1px solid rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #0a3555;
  animation: badgeBob 5s ease-in-out infinite;
  animation-delay: calc(var(--i, 1) * 120ms);
}

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: linear-gradient(180deg, var(--signal), var(--ember));
}

.timeline-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-card h3 span {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3e5f79;
  margin-top: 0.1rem;
}

.timeline-meta {
  margin-top: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #67e8f9;
}

.timeline-card ul {
  margin-top: 0.7rem;
  padding-left: 1rem;
  color: #274862;
  font-size: 0.92rem;
}

.timeline-card li + li {
  margin-top: 0.45rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(2, 132, 199, 0.24);
  background: rgba(255, 255, 255, 0.45);
  color: #183953;
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.chip.active {
  border-color: rgba(249, 115, 22, 0.75);
  background: rgba(249, 115, 22, 0.2);
  color: #561f0a;
}

.project-card {
  transition: transform 0.25s ease, border-color 0.2s ease, opacity 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(15, 39, 64, 0.08);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.4);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.18), transparent 35%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.project-card p {
  margin-top: 0.55rem;
  color: #274862;
  font-size: 0.92rem;
}

.project-card p strong {
  color: #0f2740;
}

.project-link {
  display: inline-block;
  margin-top: 0.9rem;
  color: #67e8f9;
  font-size: 0.84rem;
  text-decoration: none;
  border-bottom: 1px dashed rgba(103, 232, 249, 0.55);
}

.project-link:hover {
  color: #f97316;
  border-bottom-color: rgba(249, 115, 22, 0.6);
}

.stack {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  color: #67e8f9;
}

.post-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  backdrop-filter: blur(8px);
  padding: 1.2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover,
.timeline-card:hover,
.quote-card:hover,
.metric-card:hover,
.glass-card:hover,
.lift-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(15, 39, 64, 0.12);
}

.post-card h3 {
  margin-top: 0.35rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.post-card p {
  margin-top: 0.55rem;
  color: #274862;
  font-size: 0.92rem;
}

.post-meta {
  margin: 0;
  font-size: 0.74rem;
  font-family: 'JetBrains Mono', monospace;
  color: #0369a1;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: linear-gradient(140deg, rgba(2, 132, 199, 0.1), rgba(249, 115, 22, 0.12));
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(16, 38, 56, 0.08);
}

.metric-num {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #0f2740;
}

.metric-label {
  margin-top: 0.35rem;
  font-size: 0.84rem;
  color: #274862;
}

.repo-meta {
  margin-top: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: #a5f3fc;
}

.quote-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1.2rem;
  box-shadow: 0 10px 26px rgba(16, 38, 56, 0.08);
}

.quote-card p {
  margin: 0;
  color: #274862;
}

.quote-card span {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.78rem;
  font-family: 'JetBrains Mono', monospace;
  color: #67e8f9;
}

.game-wrap {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(16, 38, 56, 0.08);
  padding: 1.2rem;
}

.learn-wrap {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.owasp-list {
  display: grid;
  gap: 0.55rem;
}

.owasp-item {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.65rem 0.75rem;
  color: #12334d;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.owasp-item:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.6);
}

.owasp-item.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: rgba(2, 132, 199, 0.55);
  color: #0b2239;
}

.owasp-mini-tab {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 10px 26px rgba(16, 38, 56, 0.08);
  padding: 1rem;
  min-height: 180px;
}

.owasp-mini-tab h3 {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  color: #0f2740;
}

.owasp-mini-tab p {
  margin-top: 0.6rem;
  color: #274862;
  font-size: 0.9rem;
}

.owasp-tag {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  color: #0369a1;
  font-size: 0.72rem;
}

.owasp-why {
  border-top: 1px dashed rgba(2, 132, 199, 0.3);
  padding-top: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #0b3957;
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.game-mode {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #274862;
}

.game-select {
  border: 1px solid rgba(2, 132, 199, 0.35);
  background: rgba(255, 255, 255, 0.7);
  color: #0f2740;
  border-radius: 0.6rem;
  padding: 0.35rem 0.55rem;
  font-size: 0.82rem;
}

.game-status {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86rem;
  color: #0f2740;
}

.ttt-board {
  margin-top: 1rem;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 320px;
}

.ttt-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 0.85rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(224, 242, 254, 0.45));
  color: #0f2740;
  font-size: 2.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ttt-cell:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.6);
  box-shadow: 0 10px 16px rgba(15, 39, 64, 0.1);
}

.ttt-cell:disabled {
  cursor: default;
  opacity: 0.95;
}

.ttt-cell.cell-x {
  color: #0284c7;
}

.ttt-cell.cell-o {
  color: #f97316;
}

.game-score {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: #274862;
}

.game-score p {
  margin: 0;
  padding: 0.35rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(2, 132, 199, 0.2);
  background: rgba(255, 255, 255, 0.56);
}

.game-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.radar-wrap {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.radar-canvas {
  width: 100%;
  max-width: 560px;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 26px rgba(16, 38, 56, 0.08);
}

.radar-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.radar-legend article {
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 0.65rem;
}

.radar-legend h3 {
  margin: 0;
  font-size: 0.92rem;
  color: #0f2740;
}

.radar-legend p {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: #274862;
}

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

.sticky-cta-wrap {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 55;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.sticky-cta {
  position: static;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.7rem 1rem;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
}

.sticky-cta:hover {
  background: #ea580c;
}

.sticky-cta.secondary {
  background: #0369a1;
  box-shadow: 0 8px 30px rgba(3, 105, 161, 0.3);
}

.sticky-cta.secondary:hover {
  background: #075985;
}

.footer-link {
  color: #22415f;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #f97316;
  transform: translateY(-1px);
}

.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.caret {
  animation: blink 1s step-end infinite;
}

.timeline-pulse {
  animation: pulse 0.9s ease;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes floatA {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(60px, 35px);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-50px, -22px);
  }
}

@keyframes birdFly {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  50% {
    transform: translateX(55vw) translateY(-20px);
  }
  100% {
    transform: translateX(122vw) translateY(10px);
    opacity: 0;
  }
}

@keyframes wingFlapLeft {
  0%,
  100% {
    transform: rotate(16deg);
  }
  50% {
    transform: rotate(-8deg);
  }
}

@keyframes wingFlapRight {
  0%,
  100% {
    transform: rotate(-16deg);
  }
  50% {
    transform: rotate(8deg);
  }
}

@keyframes windDrift {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  60% {
    transform: translateX(70vw) translateY(-10px);
  }
  100% {
    transform: translateX(136vw) translateY(4px);
    opacity: 0;
  }
}

@keyframes cloudDrift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(142vw);
  }
}

@keyframes lightningFlash {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  81%,
  82% {
    opacity: 0.95;
  }
  83% {
    opacity: 0.3;
  }
  84% {
    opacity: 0.96;
  }
  85% {
    opacity: 0.82;
  }
  86% {
    opacity: 0.28;
  }
  87% {
    opacity: 0.98;
  }
}

@keyframes stormScreenFlash {
  0%,
  79%,
  100% {
    background: rgba(255, 255, 255, 0);
  }
  80% {
    background: rgba(255, 255, 255, 0.08);
  }
  82% {
    background: rgba(255, 255, 255, 0.02);
  }
  84% {
    background: rgba(255, 255, 255, 0.1);
  }
  87% {
    background: rgba(255, 255, 255, 0.16);
  }
}

@keyframes rainFall {
  0% {
    transform: translateY(0) rotate(14deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(125vh) rotate(14deg);
    opacity: 0;
  }
}

@keyframes grainShift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(1px, -1px);
  }
}

@keyframes stormBreath {
  0%,
  100% {
    filter: brightness(0.92) contrast(1);
  }
  50% {
    filter: brightness(1.05) contrast(1.05);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.45);
  }
  100% {
    box-shadow: 0 0 0 20px rgba(34, 211, 238, 0);
  }
}

@keyframes bgFade {
  0% {
    opacity: 0.12;
    transform: scale(1.02);
  }
  50% {
    opacity: 0.2;
  }
  100% {
    opacity: 0.16;
    transform: scale(1.08);
  }
}

@keyframes badgeBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

main > section {
  position: relative;
  border-radius: 1rem;
  padding: 1.4rem;
  margin-inline: -0.2rem;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

main > section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(-100%);
  animation: shimmerSweep 9s linear infinite;
  pointer-events: none;
}

main > section:nth-of-type(even) {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.48), rgba(236, 254, 255, 0.2));
}

@keyframes shimmerSweep {
  to {
    transform: translateX(100%);
  }
}

@keyframes loaderSweep {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(300%);
  }
}

.icon-btn {
  border: 1px solid rgba(2, 132, 199, 0.28);
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.78);
  color: #124365;
  padding: 0.38rem 0.6rem;
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
}

.mini-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  color: #0f2740;
  font-family: 'JetBrains Mono', monospace;
}

.mini-toggle input {
  width: 0.85rem;
  height: 0.85rem;
}

.terminal-hero {
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 0.85rem;
  background: linear-gradient(165deg, rgba(7, 26, 42, 0.9), rgba(18, 62, 95, 0.88));
  box-shadow: 0 12px 24px rgba(8, 24, 40, 0.22);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(2, 22, 37, 0.7);
  padding: 0.5rem 0.75rem;
}

.terminal-bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #22d3ee;
}

.terminal-bar span:nth-child(2) {
  background: #facc15;
}

.terminal-bar span:nth-child(3) {
  background: #fb7185;
}

.terminal-bar p {
  margin: 0 0 0 0.4rem;
  color: #bae6fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.terminal-output {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: #e0f2fe;
  min-height: 118px;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.story-wrap {
  display: grid;
  gap: 0.8rem;
}

.story-step {
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.story-step.active {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.18);
  transform: translateY(-2px);
}

.story-kicker {
  margin: 0;
  color: #0369a1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
}

.story-step h3 {
  margin: 0.4rem 0 0;
  font-size: 1rem;
}

.story-step p {
  margin: 0.5rem 0 0;
  color: #274862;
  font-size: 0.9rem;
}

.heatmap-wrap {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
}

.activity-heatmap {
  display: grid;
  grid-template-columns: repeat(26, minmax(0, 1fr));
  gap: 0.25rem;
}

.heat-cell {
  aspect-ratio: 1 / 1;
  border-radius: 0.25rem;
  border: 1px solid rgba(2, 132, 199, 0.14);
  background: rgba(148, 163, 184, 0.18);
}

.heat-cell.l1 { background: rgba(56, 189, 248, 0.24); }
.heat-cell.l2 { background: rgba(14, 165, 233, 0.35); }
.heat-cell.l3 { background: rgba(2, 132, 199, 0.5); }
.heat-cell.l4 { background: rgba(3, 105, 161, 0.7); }

.heatmap-legend {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #33536f;
}

.heatmap-scale {
  display: inline-flex;
  gap: 0.2rem;
}

.heatmap-scale i {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 0.2rem;
  background: rgba(148, 163, 184, 0.18);
}

.heatmap-scale i:nth-child(2) { background: rgba(56, 189, 248, 0.24); }
.heatmap-scale i:nth-child(3) { background: rgba(14, 165, 233, 0.35); }
.heatmap-scale i:nth-child(4) { background: rgba(2, 132, 199, 0.5); }
.heatmap-scale i:nth-child(5) { background: rgba(3, 105, 161, 0.7); }

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

.lab-scoreboard article {
  border: 1px solid rgba(2, 132, 199, 0.22);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 0.8rem;
  padding: 0.65rem;
}

.lab-scoreboard p {
  margin: 0;
  font-size: 0.74rem;
  color: #33536f;
}

.lab-scoreboard strong {
  font-size: 1.1rem;
  color: #0f2740;
}

.lab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-drawer {
  margin-top: 0.75rem;
  max-height: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: rgba(241, 245, 249, 0);
  transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.project-drawer.open {
  max-height: 260px;
  padding: 0.75rem;
  border-color: rgba(2, 132, 199, 0.22);
  background: rgba(241, 245, 249, 0.72);
}

.project-drawer h4 {
  margin: 0.25rem 0;
  font-size: 0.82rem;
  color: #0f2740;
}

.project-drawer p {
  margin: 0;
  font-size: 0.82rem;
  color: #274862;
}

.compare-wrap {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
}

.compare-frame {
  position: relative;
  border: 1px solid rgba(2, 132, 199, 0.24);
  border-radius: 0.9rem;
  overflow: hidden;
  min-height: 220px;
}

.compare-pane {
  padding: 1rem;
}

.compare-pane ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  color: #274862;
  font-size: 0.88rem;
}

.compare-before {
  background: linear-gradient(140deg, rgba(251, 113, 133, 0.14), rgba(254, 226, 226, 0.7));
}

.compare-after {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(74, 222, 128, 0.14), rgba(220, 252, 231, 0.78));
  clip-path: inset(0 50% 0 0);
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(15, 39, 64, 0.6);
  transform: translateX(-1px);
}

.compare-range {
  width: 100%;
  margin-top: 0.6rem;
}

.map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.skill-map-wrap {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--card);
  padding: 1rem;
}

.skill-map {
  margin-top: 0.75rem;
  position: relative;
  min-height: 260px;
  border-radius: 0.8rem;
  border: 1px dashed rgba(2, 132, 199, 0.32);
  background:
    radial-gradient(circle at 20% 25%, rgba(125, 211, 252, 0.35), transparent 40%),
    radial-gradient(circle at 75% 68%, rgba(249, 115, 22, 0.16), transparent 40%),
    rgba(255, 255, 255, 0.52);
}

.skill-node {
  position: absolute;
  border: 1px solid rgba(2, 132, 199, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  padding: 0.35rem 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #124365;
  cursor: grab;
  user-select: none;
}

.skill-node[data-state='learning'] { border-color: rgba(245, 158, 11, 0.6); }
.skill-node[data-state='strong'] { border-color: rgba(2, 132, 199, 0.6); }
.skill-node[data-state='mentoring'] { border-color: rgba(16, 185, 129, 0.6); }

.skill-node:active {
  cursor: grabbing;
}

.ambient-panel {
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
  padding: 1rem;
}

.ambient-panel h3 {
  margin: 0;
  font-size: 1rem;
}

.ambient-panel p {
  margin: 0.45rem 0 0;
  color: #274862;
  font-size: 0.9rem;
}

.command-palette {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.58);
}

.command-card {
  position: relative;
  width: min(640px, calc(100% - 2rem));
  margin: 12vh auto 0;
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.32);
  padding: 0.9rem;
}

.command-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.command-head p {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #12334d;
}

.command-input {
  margin-top: 0.6rem;
  width: 100%;
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: 0.6rem;
  padding: 0.6rem 0.7rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
}

.command-list {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
  max-height: 340px;
  overflow: auto;
}

.command-list button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 0.6rem;
  background: rgba(241, 245, 249, 0.8);
  padding: 0.55rem 0.65rem;
  color: #0f2740;
}

.command-list button.active {
  border-color: rgba(249, 115, 22, 0.5);
  background: rgba(254, 215, 170, 0.3);
}

body.recruiter-mode .ambient-layer,
body.recruiter-mode .sticky-cta-wrap,
body.recruiter-mode #ctf,
body.recruiter-mode #challenge,
body.recruiter-mode #play,
body.recruiter-mode #testimonials,
body.recruiter-mode #analytics .ambient-panel {
  display: none;
}

body.recruiter-mode .terminal-hero,
body.recruiter-mode .story-wrap,
body.recruiter-mode .skill-map-wrap,
body.recruiter-mode .compare-wrap {
  display: none;
}

body.recruiter-mode .reveal {
  opacity: 1 !important;
  transform: none !important;
}

body.motion-disabled *,
body.motion-disabled *::before,
body.motion-disabled *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body.red-team-mode .icon-btn,
body.red-team-mode .mini-toggle,
body.red-team-mode .command-card,
body.red-team-mode .command-list button {
  border-color: rgba(220, 38, 38, 0.35);
  color: #6b1111;
}

body.red-team-mode .terminal-hero {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(165deg, rgba(69, 10, 10, 0.92), rgba(127, 29, 29, 0.85));
}

body.red-team-mode .story-step,
body.red-team-mode .heatmap-wrap,
body.red-team-mode .lab-scoreboard article,
body.red-team-mode .project-drawer.open,
body.red-team-mode .compare-wrap,
body.red-team-mode .skill-map-wrap,
body.red-team-mode .ambient-panel {
  border-color: rgba(220, 38, 38, 0.32);
  background: rgba(255, 241, 242, 0.7);
}

body.red-team-mode .story-step.active {
  border-color: rgba(185, 28, 28, 0.6);
  box-shadow: 0 12px 26px rgba(185, 28, 28, 0.18);
}

body.red-team-mode .skill-map {
  border-color: rgba(220, 38, 38, 0.38);
  background:
    radial-gradient(circle at 20% 25%, rgba(252, 165, 165, 0.34), transparent 40%),
    radial-gradient(circle at 75% 68%, rgba(239, 68, 68, 0.2), transparent 40%),
    rgba(255, 241, 242, 0.7);
}

body.red-team-mode .skill-node {
  border-color: rgba(220, 38, 38, 0.38);
  color: #7f1d1d;
}

body.red-team-mode .compare-after {
  background: linear-gradient(140deg, rgba(244, 63, 94, 0.2), rgba(254, 226, 226, 0.8));
}

body.red-team-mode .compare-before {
  background: linear-gradient(140deg, rgba(239, 68, 68, 0.2), rgba(254, 242, 242, 0.8));
}

@media (max-width: 768px) {
  .lab-scoreboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-heatmap {
    grid-template-columns: repeat(18, minmax(0, 1fr));
  }

  .mini-toggle {
    display: none;
  }

  .icon-btn {
    display: none;
  }

  .timeline-card ul {
    font-size: 0.88rem;
  }

  .sticky-cta-wrap {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .sticky-cta {
    font-size: 0.78rem;
  }

  .ttt-board {
    max-width: 100%;
  }

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

  .hero-dual-label {
    font-size: 0.62rem;
  }
}

@media (min-width: 900px) {
  .learn-wrap {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }

  .radar-wrap {
    grid-template-columns: 1.05fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .bg-photo-fade,
  .bird,
  .bird::before,
  .bird::after,
  .wind-line,
  .cloud,
  .storm-flash,
  .storm-rain,
  .storm-layer::after,
  .danger-grain,
  .section-handoff,
  .loader-scan span,
  .caret,
  main > section::before {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
