:root {
  color-scheme: dark;
  --bg-void: #050608;
  --bg-main: #0b0d12;
  --bg-card: rgba(18, 21, 28, 0.88);
  --bg-elevated: #12151c;
  --bg-hud: rgba(11, 13, 18, 0.78);
  --ink-primary: #ffffff;
  --ink-secondary: #9aa0ac;
  --ink-muted: #475569;
  --accent: #4169e1;
  --accent-soft: rgba(65, 105, 225, 0.18);
  --accent-text: #8eaeff;
  --sys-glow: rgba(65, 105, 225, 0.35);
  --border-light: rgba(237, 237, 240, 0.08);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 5.5rem;
  --space-xl: 9rem;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: hidden;
  width: 100%;
}

html.is-closing {
  scroll-behavior: auto;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-primary);
  overflow-x: hidden;
  width: 100%;
  touch-action: pan-y;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(65, 105, 225, 0.2),
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 0%,
      rgba(65, 105, 225, 0.12),
      transparent 45%
    ),
    linear-gradient(180deg, #050608 0%, #0b0d12 40%, #050608 100%);
  min-height: 100vh;
}

body.scroll-locked {
  overflow: clip;
  height: 100vh;
  height: 100dvh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
  opacity: 0.25;
  z-index: 0;
}

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

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

a:hover,
a:focus-visible {
  color: var(--accent-text);
}

.container {
  width: min(1120px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

#globe,
#globe-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#globe-fallback {
  opacity: 0;
}

.no-webgl #globe {
  display: none;
}

.no-webgl #globe-fallback {
  opacity: 1;
}

.scroll-spacer {
  height: 350dvh;
}

.dossier {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dossier-window {
  width: min(880px, 92vw);
  background: rgba(5, 5, 7, 0.88);
  border: 1px solid rgba(255, 42, 42, 0.28);
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  padding: 0 0 2.5rem;
  backdrop-filter: blur(16px);
  transform-origin: var(--origin-x, 50%) var(--origin-y, 50%);
  transform: translate3d(
      var(--dossier-x, -6vw),
      calc(var(--dossier-y, -6vh) + var(--drag-y, 0px)),
      0
    )
    scale(0.5);
  opacity: 0;
  transition:
    opacity 0.4s ease-out,
    transform 0.5s cubic-bezier(0.19, 1, 0.22, 1),
    filter 0.4s ease-out;
  filter: blur(20px);
  pointer-events: none;
  height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  --drag-y: 0px;
}

.dossier.is-visible .dossier-window {
  opacity: 1;
  transform: translate3d(
      var(--dossier-x, -6vw),
      calc(var(--dossier-y, -6vh) + var(--drag-y, 0px)),
      0
    )
    scale(1);
  filter: blur(0);
  pointer-events: auto;
}

.dossier-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(5, 6, 8, 0.6);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dossier-close:hover {
  background: rgba(255, 42, 42, 0.2);
  border-color: #ff2a2a;
  color: #ff2a2a;
  box-shadow: 0 0 15px rgba(255, 42, 42, 0.3);
}

.dossier-handle {
  display: none;
}

.dossier-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.6rem;
  padding-right: 3.5rem;
  border-bottom: 1px solid rgba(65, 105, 225, 0.2);
  background: linear-gradient(
    180deg,
    rgba(16, 20, 28, 0.95) 0%,
    rgba(12, 14, 20, 0.95) 100%
  );
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-text);
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.dossier-chrome::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
  opacity: 0.8;
  box-shadow: 0 0 10px var(--accent);
}

.dossier-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.65rem;
  color: var(--ink-secondary);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #33ff77;
  box-shadow: 0 0 8px rgba(51, 255, 119, 0.8);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
}

.dossier-tabs {
  display: flex;
  gap: 4px;
  padding: 0 1.2rem;
  background: rgba(10, 12, 16, 0.6);
  border-bottom: 1px solid rgba(65, 105, 225, 0.2);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dossier-tabs::-webkit-scrollbar {
  height: 0;
}

.dossier-tab {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  border-radius: 4px 4px 0 0;
  margin-bottom: -1px;
}

.dossier-tab:hover,
.dossier-tab:focus-visible {
  color: var(--accent-text);
  background: rgba(65, 105, 225, 0.08);
  outline: none;
}

.dossier-tab.is-active {
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(65, 105, 225, 0.15) 0%,
    rgba(65, 105, 225, 0.05) 100%
  );
  border: 1px solid rgba(65, 105, 225, 0.3);
  border-bottom: 1px solid var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 10px rgba(65, 105, 225, 0.5);
}

.dossier-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2.2rem 2.6rem 2.2rem;
  background-image:
    linear-gradient(rgba(65, 105, 225, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 105, 225, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}

.dossier-body::-webkit-scrollbar {
  width: 6px;
}
.dossier-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
.dossier-body::-webkit-scrollbar-thumb {
  background: rgba(65, 105, 225, 0.3);
  border-radius: 3px;
}
.dossier-body::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.dossier-panel {
  display: none;
  animation: fade-in 0.3s ease-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dossier-panel.is-active {
  display: block;
}

.overview-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.overview-card {
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid rgba(65, 105, 225, 0.15);
  border-radius: 2px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.overview-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.8;
}

.overview-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  opacity: 0.8;
}

.overview-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-text);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.overview-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(65, 105, 225, 0.3), transparent);
}

.overview-metrics {
  display: grid;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.overview-metrics > div {
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.overview-metrics > div:last-child {
  border-bottom: none;
}

.overview-metrics p.mono {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.3rem;
}

.overview-metrics p:not(.mono) {
  font-size: 1.05rem;
  color: #fff;
  margin: 0;
}

.contact-panel {
  display: grid;
  gap: 1rem;
}

.hero {
  padding: 0 0 var(--space-lg);
}

.hero {
  padding: 0 0 var(--space-lg);
}

@supports (animation-timeline: view()) {
  .scroll-tunnel {
    perspective: 1200px;
  }
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #0f1218;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  color: var(--ink-primary);
  z-index: 5;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: var(--bg-hud);
  border-bottom: 1px solid var(--border-light);
  z-index: 4;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.2rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.header-cta {
  display: flex;
  align-items: center;
}

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.ops-panel {
  position: relative;
}

@supports (animation-timeline: view()) {
  .ops-panel {
    animation: zoom-in-out linear both;
    animation-timeline: view();
    animation-range: entry 10% exit 80%;
    transform-origin: center;
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-copy .accent {
  color: var(--accent-text);
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 34rem;
}

.hero-copy h1 {
  letter-spacing: -0.02em;
}

.site-nav a,
.hero-links a,
.footer-links a {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.hero-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.hero-panel {
  display: grid;
  gap: 1.5rem;
}

.signal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.6rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mini-list {
  padding-left: 1rem;
  margin: 0.75rem 0 0;
  color: var(--ink-secondary);
}

.section {
  padding: var(--space-lg) 0;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 48rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  margin: 0 0 0.8rem;
}

p {
  margin: 0 0 1rem;
}

.muted {
  color: var(--ink-secondary);
}

.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(65, 105, 225, 0.14);
  color: var(--accent-text);
  font-size: 0.9rem;
  font-weight: 500;
}

.grid.projects {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(65, 105, 225, 0.4);
  border-left-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Subtle scan sweep on hover */
.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(65, 105, 225, 0.05) 50%,
    transparent 100%
  );
  transform: translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::after {
  transform: translateY(100%);
}

.card-head {
  padding: 1.2rem 1.5rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-head h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
  letter-spacing: 0.02em;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-text);
  background: rgba(65, 105, 225, 0.15);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(65, 105, 225, 0.3);
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card > p {
  padding: 0 1.5rem;
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-list {
  padding: 0 1.5rem 0 2.8rem;
  margin: 0.5rem 0 1.5rem;
  color: var(--ink-secondary);
  font-size: 0.9rem;
}

.card-list li {
  margin-bottom: 0.4rem;
  position: relative;
}

.card-list li::marker {
  color: var(--accent);
}

.card code {
  color: var(--accent-text);
  font-family: var(--font-mono);
  background: rgba(65, 105, 225, 0.1);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}

.card-actions {
  padding: 1rem 1.5rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  gap: 1.2rem;
}

.card-actions a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
  position: relative;
}

.card-actions a:hover {
  color: var(--accent-text);
}

.card-actions a::after {
  content: "»";
  margin-left: 4px;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  display: inline-block;
}

.card-actions a:hover::after {
  opacity: 1;
  transform: translateX(3px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: rgba(65, 105, 225, 0.15);
  color: #fff;
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px rgba(65, 105, 225, 0.15);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(65, 105, 225, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-text);
  background: rgba(65, 105, 225, 0.05);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 48rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-panel {
  background: rgba(16, 20, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  backdrop-filter: blur(4px);
}

.contact-panel .hero-links {
  margin-top: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(65, 105, 225, 0.35);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #2f54c8;
}

.btn-ghost {
  border-color: var(--border-light);
  background: rgba(18, 21, 28, 0.6);
  color: var(--ink-primary);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-text);
}

.oss-stack {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.oss-card {
  border-left: 3px solid var(--accent);
  background: linear-gradient(
    90deg,
    rgba(65, 105, 225, 0.05) 0%,
    rgba(16, 20, 28, 0.6) 100%
  );
  margin-bottom: 2.4rem;
}

#tab-experience {
  min-height: 100%;
}
#tab-experience .timeline {
  padding-bottom: 3.5rem;
  padding-top: 1rem;
}
#tab-experience .timeline-item:first-child {
  padding-top: 2rem;
}
#tab-experience .timeline-item:last-child {
  padding-bottom: 2.5rem;
}

.oss-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.oss-header div:first-child p.mono {
  margin: 0;
  font-size: 0.7rem;
  color: var(--accent-text);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oss-header h3 {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.oss-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: rgba(65, 105, 225, 0.1);
  border: 1px solid rgba(65, 105, 225, 0.2);
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.redacted {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 42, 42, 0.3);
}

.redacted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0) 10px,
    rgba(255, 42, 42, 0.03) 10px,
    rgba(255, 42, 42, 0.03) 20px
  );
  pointer-events: none;
}

.redacted .tag {
  color: #ff2a2a;
  background: rgba(255, 42, 42, 0.1);
  border-color: rgba(255, 42, 42, 0.3);
}

.timeline {
  display: grid;
  gap: 0;
  position: relative;
  padding: 1rem 0 3rem 1.5rem;
  margin-top: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 6px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0 2rem 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 1.8rem;
  left: 3px;
  width: 7px;
  height: 7px;
  background: var(--bg-main);
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(65, 105, 225, 0.6);
  z-index: 1;
}

.timeline-item p.mono {
  font-size: 0.75rem;
  color: var(--accent-text);
  margin-bottom: 0.3rem;
  opacity: 0.9;
  letter-spacing: 0.05em;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
  color: #fff;
}

.timeline-item p.muted {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
  color: var(--ink-secondary);
  font-style: italic;
}

.skill-block {
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-block h4 {
  margin: 0 0 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-text);
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-block h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.cert-list {
  padding-left: 1.2rem;
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

.chip {
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  background: rgba(65, 105, 225, 0.1);
  border: 1px solid rgba(65, 105, 225, 0.2);
  color: #fff;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 400;
  transition: all 0.2s;
}

.chip:hover {
  background: rgba(65, 105, 225, 0.2);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(65, 105, 225, 0.2);
  transform: translateY(-1px);
}

.resume {
  padding-bottom: var(--space-xl);
}

.resume-card {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.resume-card h2 {
  margin-bottom: 0.3rem;
}

.footer {
  border-top: 1px solid var(--border-light);
  padding: 2.5rem 0 4rem;
  background: rgba(5, 6, 8, 0.9);
  pointer-events: auto;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal 0.8s ease forwards;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes zoom-in-out {
  0% {
    transform: scale(0.9) translateZ(-120px);
    opacity: 0;
    filter: blur(6px);
  }
  25% {
    transform: scale(1) translateZ(0);
    opacity: 1;
    filter: blur(0);
  }
  75% {
    transform: scale(1) translateZ(0);
    opacity: 1;
    filter: blur(0);
  }
  100% {
    transform: scale(1.08) translateZ(80px);
    opacity: 0;
    filter: blur(6px);
  }
}

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

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

  .dossier-window {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

@media (max-width: 800px) {
  html, body {
    overflow-x: hidden;
    position: relative;
  }
  
  .site-nav {
    display: none;
  }

  .header-inner {
    gap: 1rem;
  }

  .soc-status {
    display: none;
  }

  .soc-frame {
    inset: 0.9rem;
  }

  .dossier {
    align-items: flex-end;
    padding: 0;
    pointer-events: none;
  }

  .dossier-window {
    width: 100vw;
    height: calc(100dvh - 5rem);
    border-radius: 24px 24px 0 0;
    transform-origin: center bottom;
    transform: translate3d(0, 110%, 0) scale(1);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    will-change: transform;
  }

  .dossier-close {
    display: none;
  }

  .dossier-handle {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 28px;
    background: transparent;
    border: none;
    cursor: grab;
    z-index: 20;
  }

  .dossier-handle::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
  }

  .dossier-window::before {
    display: none;
  }

  .dossier.is-visible .dossier-window {
    transform: translate3d(0, var(--drag-y, 0px), 0) scale(1);
    pointer-events: auto;
  }

  .dossier-body {
    touch-action: pan-y;
    overscroll-behavior: contain;
  }

  .dossier-chrome {
    padding-top: 1.2rem;
    padding-right: 1.6rem;
    border-radius: 24px 24px 0 0;
  }

  .dossier-body {
    padding: 1.5rem 1.5rem 4rem;
  }
}

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

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

  .ops-panel {
    animation: none;
    transform: none;
    opacity: 1;
    filter: none;
  }

  .card:hover {
    transform: none;
  }
}

#loader {
  position: fixed;
  inset: 0;
  background: #050608;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-out, visibility 0.8s;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loader-text {
  font-family: var(--font-mono);
  color: var(--accent-text);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: blink 2s infinite;
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: rgba(65, 105, 225, 0.2);
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--accent);
  animation: load-scan 1.5s ease-in-out infinite;
}

.scroll-indicator {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  animation: fade-up-in 2s ease-out forwards 1.5s;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-text);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(65, 105, 225, 0.12);
  border: 1px solid rgba(65, 105, 225, 0.25);
  box-shadow: 0 0 18px rgba(65, 105, 225, 0.2);
}

.scroll-track {
  width: 1px;
  height: 32px;
  background: rgba(65, 105, 225, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-track::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--accent) 50%,
    transparent 100%
  );
  transform: translateY(-100%);
  animation: scroll-scan 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
  box-shadow: 0 0 12px var(--accent);
}

@keyframes blink {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.4; }
}

@keyframes load-scan {
  0% { left: -40%; }
  100% { left: 100%; }
}

@keyframes fade-up-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes scroll-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}

.scroll-indicator.hidden {
  opacity: 0 !important;
  animation: none;
  transition: opacity 0.3s ease-out;
}
