/* =========================================================
   UBAID — THE ARCHITECT'S CODEX
   A retro-futuristic editorial portfolio
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=JetBrains+Mono:wght@300;400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  /* Palette */
  --ink: #0a0908;
  --ink-deep: #050403;
  --paper: #f4f1eb;
  --bone: #d8d2c5;
  --ash: #6b6660;
  --smoke: #2a2724;
  --blood: #c1272d;
  --blood-dark: #8b1a1f;
  --ember: #f4a261;
  --gold: #c89a5e;
  --signal: #00ff9c;

  /* Typography */
  --font-display: 'Fraunces', serif;
  --font-italic: 'Instrument Serif', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 62.5%;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--ink-deep);
  color: var(--paper);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Global film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Subtle scanline */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9997;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 3px,
    rgba(255, 255, 255, 0.012) 3px,
    rgba(255, 255, 255, 0.012) 4px
  );
}

a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; font-family: inherit; }
img { display: block; max-width: 100%; }

/* =================== ATMOSPHERIC BACKGROUND =================== */
/* Multi-layered cinematic background — aurora flow + blueprint grid +
   scanning beam + radial vignette + canvas constellation overlay */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 0%, #1a0d10 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, #0d1416 0%, transparent 55%),
    radial-gradient(ellipse at 50% 50%, #0c0907 0%, #050403 70%, #030201 100%);
  overflow: hidden;
  /* Ensure visibility */
  opacity: 1;
  display: block;
}

/* Aurora — three colored bands that drift in deep slow loops */
.atmosphere::before {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 60% 40% at 15% 25%, rgba(193, 39, 45, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 75%, rgba(244, 162, 97, 0.25), transparent 65%),
    radial-gradient(ellipse 45% 30% at 50% 100%, rgba(0, 180, 200, 0.15), transparent 60%),
    radial-gradient(ellipse 40% 50% at 0% 50%, rgba(120, 60, 180, 0.12), transparent 70%);
  filter: blur(60px);
  animation: aurora 35s ease-in-out infinite;
  opacity: 1;
}

/* Second aurora layer offset for depth */
.atmosphere::after {
  content: '';
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 40% 30% at 70% 20%, rgba(193, 39, 45, 0.15), transparent 65%),
    radial-gradient(ellipse 35% 25% at 25% 80%, rgba(244, 162, 97, 0.1), transparent 70%);
  filter: blur(80px);
  animation: aurora 50s ease-in-out infinite reverse;
  mix-blend-mode: screen;
}

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  25% { transform: translate(3%, -2%) scale(1.08) rotate(1deg); }
  50% { transform: translate(-2%, 3%) scale(0.95) rotate(-1deg); }
  75% { transform: translate(2%, 1%) scale(1.05) rotate(0.5deg); }
}

/* Blueprint grid — perspective grid that fades to vignette */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 241, 235, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 235, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(193, 39, 45, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(193, 39, 45, 0.2) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 400px 400px, 400px 400px;
  mask-image:
    radial-gradient(ellipse 80% 70% at center, black 0%, rgba(0,0,0,0.6) 40%, transparent 90%);
  -webkit-mask-image:
    radial-gradient(ellipse 80% 70% at center, black 0%, rgba(0,0,0,0.6) 40%, transparent 90%);
  animation: gridPulse 12s ease-in-out infinite;
  opacity: 1;
}

@keyframes gridPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* Constellation canvas — drawn by JS */
.constellation {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  display: block;
}

/* Scanning horizontal beam — like a CRT sweep */
.scan-beam {
  position: fixed;
  left: 0;
  right: 0;
  height: 200px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(193, 39, 45, 0.04) 45%,
    rgba(193, 39, 45, 0.12) 50%,
    rgba(193, 39, 45, 0.04) 55%,
    transparent 100%);
  animation: scanSweep 14s linear infinite;
  mix-blend-mode: screen;
}

@keyframes scanSweep {
  0% { top: -300px; }
  100% { top: 100vh; }
}

/* Vertical glow rails on edges */
.rails {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.rails::before, .rails::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
}
.rails::before {
  left: 0;
  background: linear-gradient(90deg, rgba(193, 39, 45, 0.07), transparent);
}
.rails::after {
  right: 0;
  background: linear-gradient(-90deg, rgba(244, 162, 97, 0.05), transparent);
}

/* Subtle horizon line — slowly pulsing */
.horizon {
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(193, 39, 45, 0.4) 25%,
    rgba(244, 241, 235, 0.6) 50%,
    rgba(193, 39, 45, 0.4) 75%,
    transparent 100%);
  box-shadow: 0 0 40px rgba(193, 39, 45, 0.3);
  animation: horizonPulse 6s ease-in-out infinite;
  opacity: 0.4;
}

@keyframes horizonPulse {
  0%, 100% { opacity: 0.2; transform: scaleX(0.8); }
  50% { opacity: 0.5; transform: scaleX(1); }
}

/* Corner reticles — tiny crosshair marks at screen corners */
.reticles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.reticles::before, .reticles::after {
  content: '+';
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: rgba(193, 39, 45, 0.5);
  animation: blinkSoft 3s ease-in-out infinite;
}
.reticles::before { top: 80px; left: 30px; }
.reticles::after { bottom: 80px; right: 30px; animation-delay: 1.5s; }

@keyframes blinkSoft {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.9; }
}

/* =================== HEADER =================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 2.4rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(244, 241, 235, 0.06);
  background: linear-gradient(180deg, rgba(10, 9, 8, 0.85), rgba(10, 9, 8, 0));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.5s var(--ease-out-expo);
}

.site-header.hidden { transform: translateY(-100%); }

.brand {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--blood);
  transform: rotate(45deg);
  transition: transform 0.6s var(--ease-out-expo);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--blood);
  transform: rotate(45deg);
  transition: transform 0.6s var(--ease-out-expo);
}

.brand:hover .brand-mark::before { transform: rotate(135deg); }
.brand:hover .brand-mark::after { transform: rotate(225deg); }

.brand-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.brand-text em {
  font-family: var(--font-italic);
  color: var(--blood);
  font-weight: 400;
  font-style: italic;
}

.nav-menu {
  display: flex;
  gap: 0;
  align-items: center;
}

.nav-menu a {
  position: relative;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone);
  transition: color 0.3s ease;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--blood);
  transition: width 0.4s var(--ease-out-expo), left 0.4s var(--ease-out-expo);
}

.nav-menu a:hover { color: var(--paper); }
.nav-menu a:hover::before, .nav-menu a.active::before {
  width: 20px;
  left: calc(50% - 10px);
}
.nav-menu a.active { color: var(--blood); }

.nav-counter {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ash);
  letter-spacing: 0.2em;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(244, 241, 235, 0.1);
}

.nav-counter strong {
  color: var(--paper);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  z-index: 200;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 26px;
  height: 1.5px;
  background: var(--paper);
  transition: 0.4s var(--ease-out-expo);
}
.menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--blood); }
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); background: var(--blood); }

/* =================== TOP TICKER =================== */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(193, 39, 45, 0.15);
  display: flex;
  align-items: center;
  z-index: 99;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: tick 60s linear infinite;
}

.ticker-content span {
  padding: 0 3rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.ticker-content span::before {
  content: '◆';
  color: var(--blood);
  font-size: 0.8rem;
}

@keyframes tick {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.site-header { top: 28px; }

/* =================== STATUS HUD =================== */
.status-hud {
  position: fixed;
  bottom: 2.4rem;
  right: 2.4rem;
  z-index: 90;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--ash);
  text-align: right;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0.6;
}

.status-hud .status-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
}

.status-hud .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blood);
  box-shadow: 0 0 12px var(--blood);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* =================== CUSTOM CURSOR =================== */
.cursor {
  position: fixed;
  width: 60px;
  height: 60px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.cursor-dot {
  position: absolute;
  inset: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--paper);
  border-radius: 50%;
  transition: transform 0.2s var(--ease-out-expo), width 0.3s, height 0.3s;
}

.cursor-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(244, 241, 235, 0.4);
  border-radius: 50%;
  transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, border-radius 0.3s;
}

.cursor.grow .cursor-dot {
  width: 0;
  height: 0;
}

.cursor.grow .cursor-ring {
  transform: scale(1.3);
  border-color: var(--blood);
  border-radius: 4px;
  background: rgba(193, 39, 45, 0.08);
}

.cursor.text {
  width: 80px;
  height: 80px;
  pointer-events: auto;
  cursor: pointer;
}

.cursor.text .cursor-ring {
  background: var(--blood);
  border: none;
  pointer-events: auto;
}

.cursor.text .cursor-dot {
  width: 0;
  height: 0;
}

.cursor.text::after {
  content: 'VIEW';
  position: absolute;
  inset: 50%;
  width: max-content;
  height: max-content;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  pointer-events: auto;
}

@media (max-width: 768px) {
  .cursor { display: none; }
  html { cursor: auto; }
}

/* =================== PAGE TRANSITION =================== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
}

.page-transition .slice {
  flex: 1;
  background: var(--ink-deep);
  transform: scaleY(0);
  transform-origin: top;
}

.page-transition.entering .slice {
  animation: slice-enter 1s var(--ease-in-out-quart) forwards;
}

.page-transition.leaving .slice {
  transform: scaleY(1);
  transform-origin: bottom;
  animation: slice-leave 1s var(--ease-in-out-quart) forwards;
}

@keyframes slice-enter {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes slice-leave {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.page-transition .slice:nth-child(1) { animation-delay: 0s; }
.page-transition .slice:nth-child(2) { animation-delay: 0.05s; }
.page-transition .slice:nth-child(3) { animation-delay: 0.1s; }
.page-transition .slice:nth-child(4) { animation-delay: 0.15s; }
.page-transition .slice:nth-child(5) { animation-delay: 0.2s; }
.page-transition .slice:nth-child(6) { animation-delay: 0.25s; }

/* =================== HOME / HERO =================== */
.hero {
  min-height: 100vh;
  padding: 14rem 4rem 6rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 4rem;
  align-items: end;
  position: relative;
}

.hero-left {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 2;
}

.hero-left .meta-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.4rem;
}

.hero-left .meta-row::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--blood);
}

.hero-left strong {
  color: var(--paper);
  font-weight: 500;
}

.hero-center {
  position: relative;
  text-align: center;
}

.hero-portrait {
  width: 380px;
  max-width: 30vw;
  position: relative;
  margin: 0 auto;
  cursor: pointer;
}

.hero-portrait::before {
  content: '';
  position: absolute;
  inset: -20px;
  border: 1px solid rgba(193, 39, 45, 0.3);
  z-index: -1;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: -40px;
  border: 1px solid rgba(244, 241, 235, 0.05);
  z-index: -1;
}

.hero-portrait-base {
  width: 100%;
  filter: grayscale(80%) contrast(1.1) brightness(0.85);
  transition: filter 0.6s ease, opacity 0.6s ease;
  position: relative;
  z-index: 1;
}

.hero-portrait:hover .hero-portrait-base { 
  filter: grayscale(60%) contrast(1.05) brightness(0.9); 
}

.hero-portrait-reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-portrait.revealing .hero-portrait-reveal {
  opacity: 1;
}

.hero-portrait.fully-revealed .hero-portrait-base {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-portrait.fully-revealed .hero-portrait-reveal {
  opacity: 1;
}

.hero-portrait .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
  opacity: 0.5;
  animation: scan 4s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

.hero-right {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
  text-align: right;
  line-height: 2;
}

.hero-right .meta-row {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0.4rem;
}

.hero-right .meta-row::after {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--blood);
}

.hero-right strong {
  color: var(--paper);
  font-weight: 500;
}

/* Massive name display */
.hero-display {
  margin-top: 6rem;
  text-align: center;
  position: relative;
}

.hero-display h1 {
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 22rem);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--paper);
  position: relative;
  overflow: hidden;
}

.hero-display h1 .word {
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.hero-display h1 .word .letter {
  display: inline-block;
  transform: translateY(120%);
  animation: letter-rise 1.2s var(--ease-out-expo) forwards;
}

.hero-display h1 em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
  font-weight: 400;
}

@keyframes letter-rise {
  to { transform: translateY(0); }
}

.hero-role {
  margin-top: 3.5rem;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.hero-role::before, .hero-role::after {
  content: '';
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blood), transparent);
}

#typing-target {
  color: var(--paper);
  min-width: 280px;
  text-align: left;
  border-right: 2px solid var(--blood);
  padding-right: 4px;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  0%, 100% { border-right-color: var(--blood); }
  50% { border-right-color: transparent; }
}

.hero-summary {
  margin: 5rem auto 0;
  max-width: 720px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1.9;
  color: var(--bone);
  letter-spacing: 0.02em;
}

.hero-summary em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

/* Hero CTA */
.hero-cta {
  margin-top: 4.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary {
  position: relative;
  padding: 1.8rem 3.6rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--blood);
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blood);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out-expo);
  z-index: -1;
}

.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { letter-spacing: 0.4em; }

.btn-primary .arrow {
  transition: transform 0.4s var(--ease-out-expo);
}

.btn-primary:hover .arrow { transform: translateX(6px); }

.social-rail {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.social-rail a {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 241, 235, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--bone);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.social-rail a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blood);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
}

.social-rail a i { position: relative; z-index: 1; }

.social-rail a:hover {
  color: var(--paper);
  border-color: var(--blood);
}

.social-rail a:hover::before { transform: translateY(0); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 4rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-hint .line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--blood), transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
}

@keyframes scroll-line {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =================== GENERIC SECTION =================== */
.section {
  min-height: 100vh;
  padding: 12rem 4rem 6rem;
  position: relative;
  background: transparent;
  z-index: 1;
}

.section-header {
  margin-bottom: 8rem;
  position: relative;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 2.4rem;
}

.section-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--blood);
}

.section-eyebrow .index {
  color: var(--ash);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 12rem);
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.section-title em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
  font-weight: 400;
}

.section-lede {
  margin-top: 3rem;
  max-width: 640px;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 1.9;
  color: var(--bone);
}

/* =================== ABOUT =================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8rem;
  align-items: start;
}

.about-left {
  position: sticky;
  top: 14rem;
}

.about-portrait {
  position: relative;
}

.about-portrait img {
  width: 100%;
  filter: grayscale(60%) contrast(1.05);
}

.about-portrait::before {
  content: '';
  position: absolute;
  inset: -16px;
  border: 1px solid var(--blood);
  z-index: -1;
}

.about-meta {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 2.2;
}

.about-meta strong {
  color: var(--paper);
  font-weight: 500;
}

.about-meta .meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(244, 241, 235, 0.05);
  padding: 0.8rem 0;
}

.about-prose {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 2;
  color: var(--bone);
}

.about-prose p {
  margin-bottom: 2.4rem;
}

.about-prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 300;
  float: left;
  line-height: 0.85;
  margin: 0.5rem 1.5rem -0.5rem 0;
  color: var(--blood);
}

.about-prose strong {
  color: var(--paper);
  font-weight: 500;
}

.about-prose em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--ember);
  font-size: 1.5rem;
}

.about-marquee {
  margin-top: 6rem;
  padding: 4rem 0;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
  border-bottom: 1px solid rgba(244, 241, 235, 0.1);
  overflow: hidden;
  white-space: nowrap;
}

.about-marquee-track {
  display: inline-flex;
  gap: 6rem;
  animation: tick 40s linear infinite;
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  letter-spacing: -0.03em;
}

.about-marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 6rem;
  color: var(--paper);
}

.about-marquee-track span::after {
  content: '✦';
  color: var(--blood);
  font-size: 4rem;
}

.about-marquee-track em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--ash);
}

/* =================== SKILLS / CONSTELLATION =================== */
.skills-canvas {
  position: relative;
  width: 100%;
  min-height: 70vh;
  margin-top: 4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: rgba(244, 241, 235, 0.08);
  border: 1px solid rgba(244, 241, 235, 0.08);
}

.skill-cell {
  position: relative;
  background: var(--ink);
  padding: 3.6rem 3rem;
  transition: all 0.5s var(--ease-out-expo);
  cursor: default;
  overflow: hidden;
}

.skill-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(193, 39, 45, 0.15), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.skill-cell:hover::before { opacity: 1; }

.skill-cell .skill-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--ash);
  margin-bottom: 2rem;
}

.skill-cell .skill-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 2.4rem;
  position: relative;
  z-index: 1;
}

.skill-cell .skill-name em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
}

.skill-cell .skill-meter {
  position: relative;
  height: 1px;
  background: rgba(244, 241, 235, 0.1);
  overflow: hidden;
}

.skill-cell .skill-meter-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blood), var(--ember));
  width: 0;
  transition: width 1.5s var(--ease-out-expo);
}

.skill-cell .skill-value {
  margin-top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--blood);
  display: flex;
  justify-content: space-between;
}

.skill-cell .skill-value span:last-child {
  color: var(--ash);
}

.skill-cell:hover {
  background: var(--smoke);
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.skills-categories {
  display: flex;
  gap: 4rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ash);
}

.skills-categories .cat {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.skills-categories .cat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* =================== EDUCATION =================== */
.education-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
}

.edu-card {
  border-bottom: 1px solid rgba(244, 241, 235, 0.1);
  padding: 4rem 0;
  display: grid;
  grid-template-columns: 100px 1fr 200px 60px;
  gap: 4rem;
  align-items: start;
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  cursor: pointer;
}

.edu-card::before {
  content: '';
  position: absolute;
  left: -4rem;
  right: -4rem;
  inset-block: 0;
  background: linear-gradient(90deg, transparent, rgba(193, 39, 45, 0.04), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.edu-card:hover::before { opacity: 1; }

.edu-card .year {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--ash);
  letter-spacing: 0.1em;
}

.edu-card .year strong {
  color: var(--blood);
  font-weight: 500;
}

.edu-card .info h3 {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 300;
  color: var(--paper);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.edu-card .info h3 em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
}

.edu-card .info .institution {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--bone);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.edu-card .info .details {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 2;
  color: var(--ash);
}

.edu-card .grade {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--paper);
  letter-spacing: -0.02em;
  text-align: right;
}

.edu-card .grade .label {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: var(--ash);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.edu-card .arrow-link {
  font-size: 2.4rem;
  color: var(--paper);
  transition: transform 0.4s var(--ease-out-expo), color 0.3s ease;
}

.edu-card:hover .arrow-link {
  transform: translateX(8px);
  color: var(--blood);
}

.semester-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  margin-top: 6rem;
  border: 1px solid rgba(244, 241, 235, 0.1);
}

.semester-card {
  padding: 3.2rem;
  border-right: 1px solid rgba(244, 241, 235, 0.1);
  border-bottom: 1px solid rgba(244, 241, 235, 0.1);
  position: relative;
  transition: background 0.4s ease;
}

.semester-card:hover { background: var(--smoke); }

.semester-card .sem-num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--blood);
  font-style: italic;
}

.semester-card .sem-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
  margin-top: 1rem;
  margin-bottom: 2.4rem;
}

.semester-card ul {
  list-style: none;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
}

.semester-card li {
  padding: 1.2rem 0;
  border-bottom: 1px solid rgba(244, 241, 235, 0.05);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--bone);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.semester-card li .pct {
  color: var(--blood);
  font-weight: 500;
}

.semester-card .sem-btn {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  padding: 1rem 0;
  border-bottom: 1px solid var(--blood);
  transition: gap 0.3s ease;
}

.semester-card .sem-btn:hover { gap: 1.5rem; }

/* =================== EXPERIENCE / TIMELINE =================== */
.timeline {
  position: relative;
  padding-left: 4rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--blood), transparent);
}

.timeline-node {
  position: relative;
  padding-bottom: 8rem;
}

.timeline-node:last-child { padding-bottom: 0; }

.timeline-node::before {
  content: '';
  position: absolute;
  left: -4.5rem;
  top: 0.8rem;
  width: 12px;
  height: 12px;
  background: var(--blood);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--ink), 0 0 0 5px rgba(193, 39, 45, 0.3);
}

.timeline-node .date-marker {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blood);
  margin-bottom: 1.6rem;
}

.timeline-node .company {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 0.8rem;
}

.timeline-node .company em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
}

.timeline-node .role-line {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 3rem;
}

.timeline-node .description {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  line-height: 2;
  color: var(--bone);
  max-width: 700px;
}

.timeline-node .description ul {
  list-style: none;
}

.timeline-node .description li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 1.6rem;
}

.timeline-node .description li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blood);
}

.timeline-node .description strong {
  color: var(--paper);
  font-weight: 500;
}

/* =================== PROJECTS =================== */
.projects-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -4rem;
  padding: 0 4rem;
}

.projects-track::-webkit-scrollbar { display: none; }

.project-tile {
  flex: 0 0 70vw;
  max-width: 900px;
  scroll-snap-align: start;
  position: relative;
  border-right: 1px solid rgba(244, 241, 235, 0.06);
  padding: 0 4rem 0 0;
  margin-right: 4rem;
}

.project-tile:last-child {
  border-right: none;
}

.project-tile .project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 2rem;
}

.project-tile .project-num {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--blood);
}

.project-tile .project-category {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}

.project-tile .project-title {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 5vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--paper);
  margin-bottom: 3rem;
}

.project-tile .project-title em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
}

.project-tile .project-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--smoke);
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid rgba(244, 241, 235, 0.08);
}

.project-tile .project-viewport img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.project-tile .project-viewport img.active { opacity: 1; }

.project-tile .project-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.project-tile .project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.project-tile .project-description {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--bone);
  flex: 1;
  max-width: 60%;
}

.project-tile .project-link {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.6rem 2.4rem;
  border: 1px solid var(--blood);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out-expo);
  white-space: nowrap;
}

.project-tile .project-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blood);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.project-tile .project-link:hover::before { transform: translateX(0); }

.projects-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
}

.projects-nav .progress-text {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}

.projects-nav .progress-text strong { color: var(--blood); font-weight: 500; }

.projects-nav-buttons {
  display: flex;
  gap: 0;
}

.projects-nav button {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(244, 241, 235, 0.15);
  margin-left: -1px;
  transition: all 0.3s var(--ease-out-expo);
  font-size: 1.4rem;
  color: var(--paper);
}

.projects-nav button:hover {
  background: var(--blood);
  border-color: var(--blood);
}

/* =================== CONTACT =================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 8rem;
  align-items: start;
}

.contact-left h2 {
  font-family: var(--font-display);
  font-size: clamp(6rem, 11vw, 14rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 0.88;
  color: var(--paper);
  margin-bottom: 4rem;
}

.contact-left h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(244, 241, 235, 0.1);
}

.contact-channel {
  display: grid;
  grid-template-columns: 150px 1fr 30px;
  gap: 2rem;
  align-items: center;
  padding: 2.4rem 0;
  border-bottom: 1px solid rgba(244, 241, 235, 0.1);
  transition: padding 0.4s var(--ease-out-expo);
  position: relative;
}

.contact-channel:hover { padding-left: 2rem; }

.contact-channel::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--blood);
  transform: translateY(-50%);
  transition: width 0.4s var(--ease-out-expo);
}

.contact-channel:hover::before { width: 14px; }

.contact-channel .label {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ash);
}

.contact-channel .value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.contact-channel .value a:hover { color: var(--blood); }

.contact-channel .arrow {
  font-size: 1.4rem;
  color: var(--ash);
  transition: color 0.3s ease, transform 0.4s var(--ease-out-expo);
}

.contact-channel:hover .arrow {
  color: var(--blood);
  transform: rotate(-45deg);
}

/* Form */
.contact-form {
  position: sticky;
  top: 14rem;
  padding: 4rem;
  background: var(--smoke);
  border: 1px solid rgba(244, 241, 235, 0.08);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 30px;
  height: 30px;
  border-top: 1px solid var(--blood);
  border-left: 1px solid var(--blood);
}

.contact-form::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 30px;
  height: 30px;
  border-bottom: 1px solid var(--blood);
  border-right: 1px solid var(--blood);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.contact-form h3 em {
  font-family: var(--font-italic);
  font-style: italic;
  color: var(--blood);
}

.contact-form .form-sub {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 4rem;
}

.form-field {
  margin-bottom: 3rem;
  position: relative;
}

.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 0.8rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(244, 241, 235, 0.15);
  padding: 1.2rem 0;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--paper);
  outline: none;
  transition: border-color 0.4s ease;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: var(--blood);
}

.form-field textarea {
  min-height: 100px;
  font-family: var(--font-mono);
}

.btn-send {
  width: 100%;
  padding: 1.8rem 2.4rem;
  border: 1px solid var(--blood);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: letter-spacing 0.4s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.btn-send::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--blood);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out-expo);
  z-index: -1;
}

.btn-send:hover {
  letter-spacing: 0.4em;
}

.btn-send:hover::before { transform: translateY(0); }

/* =================== FOOTER =================== */
.site-footer {
  padding: 6rem 4rem 3rem;
  border-top: 1px solid rgba(244, 241, 235, 0.06);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ash);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .left, .site-footer .right { color: var(--bone); }
.site-footer .center { color: var(--blood); }

/* =================== RESPONSIVE =================== */
@media (max-width: 1024px) {
  .about-layout { grid-template-columns: 1fr; gap: 4rem; }
  .about-left { position: relative; top: 0; }
  .contact-layout { grid-template-columns: 1fr; gap: 4rem; }
  .contact-form { position: relative; top: 0; }
  .edu-card { grid-template-columns: 1fr; gap: 2rem; }
  .edu-card .grade { text-align: left; }
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-left, .hero-right { text-align: left; }
  .hero-right .meta-row { justify-content: flex-start; }
  .hero-right .meta-row::after { display: none; }
  .hero-right .meta-row::before { content: ''; width: 16px; height: 1px; background: var(--blood); }
}

@media (max-width: 768px) {
  html { font-size: 56%; }
  .site-header { padding: 1.6rem 2rem; }
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    background: var(--ink-deep);
    transform: translateX(100%);
    transition: transform 0.6s var(--ease-out-expo);
    z-index: 150;
  }
  .nav-menu.active { transform: translateX(0); }
  .nav-menu a {
    font-size: 2rem;
    padding: 1.6rem;
  }
  .nav-counter { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 12rem 2rem 4rem; }
  .section { padding: 10rem 2rem 4rem; }
  .status-hud { display: none; }
  .ticker { font-size: 0.9rem; }
  .site-header { top: 24px; }
  .project-tile { flex: 0 0 90vw; padding-right: 2rem; margin-right: 2rem; }
  .project-tile .project-meta { flex-direction: column; align-items: flex-start; }
  .project-tile .project-description { max-width: 100%; }
}
