/* ----------------------------------------------------
   Cindy Style Aesthetic for Abella's Portfolio
   Color Palette:
   - Cream / Paper: #f6f3eb, #ece6d8, #e4dfd3
   - Ink / Charcoal: #0c0d12, #15161f, #1e202b
   - Accent Red: #f70121, #d6001a
   - Font: Anton (Headings) + Space Grotesk (Body) + JetBrains Mono (Tech/Meta)
---------------------------------------------------- */

:root {
  --bg-cream: #f6f3eb;
  --bg-cream-card: #ece6d8;
  --bg-cream-alt: #f0ebe0;
  --bg-ink: #0c0d12;
  --bg-ink-card: #15161f;
  --bg-ink-alt: #1c1e2a;
  --text-ink: #0c0d12;
  --text-cream: #f6f3eb;
  --accent-red: #f70121;
  --accent-red-hover: #d6001a;
  --border-cream: #dfd7c5;
  --border-ink: #262938;
  --mono-font: 'JetBrains Mono', monospace;
  --title-font: 'Anton', sans-serif;
  --body-font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  background-color: var(--bg-ink);
  color: var(--text-cream);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-red);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Typography elements */
.h-cn {
  font-family: var(--title-font);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-weight: 400;
  line-height: 0.95;
}

code {
  font-family: var(--mono-font);
  background: rgba(247, 1, 33, 0.12);
  color: var(--accent-red);
  padding: 0.15em 0.4em;
  font-size: 0.88em;
  border-radius: 2px;
}

/* Navigation bar */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(12, 13, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-ink);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-cream);
}

.logo-text {
  font-family: var(--title-font);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--text-cream);
}

.logo-badge {
  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--accent-red);
  color: #fff;
  padding: 0.15rem 0.4rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
}

.logo-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent-red);
  animation: blink 1s infinite steps(2, start);
}

@keyframes blink {
  to { visibility: hidden; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #9d9db0;
  text-decoration: none;
  font-family: var(--mono-font);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #fff;
}

.nav-cta {
  background: var(--accent-red);
  color: #fff;
  padding: 0.5rem 1.1rem;
  font-family: var(--mono-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.nav-cta:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
}

/* Container */
.container {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: var(--bg-ink);
  overflow: hidden;
  border-bottom: 1px solid var(--border-ink);
}

.hero-watermark {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--title-font);
  font-size: 26vw;
  color: rgba(255, 255, 255, 0.015);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  white-space: nowrap;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-edge-fx {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(247, 1, 33, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-side-tag {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  font-family: var(--mono-font);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #555869;
  z-index: 5;
}

.hero-side-tag .sep {
  color: var(--accent-red);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-red);
  background: rgba(247, 1, 33, 0.08);
  border: 1px solid rgba(247, 1, 33, 0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: pulse 1.5s infinite;
}

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

.hero-title {
  font-family: var(--title-font);
  font-size: clamp(3rem, 6.5vw, 5.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -0.01em;
}

.hero-title .accent {
  color: var(--accent-red);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #b0afb8;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn-red {
  background: var(--accent-red);
  color: #fff;
}
.btn-red:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 1, 33, 0.4);
}

.btn-line {
  background: transparent;
  color: #fff;
  border: 1px solid #3c3f52;
}
.btn-line:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.btn-dark {
  background: #1c1e2a;
  color: #fff;
  border: 1px solid #333649;
}
.btn-dark:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
}

.btn-ink {
  background: #000;
  color: #fff;
  border: 1px solid #222;
}
.btn-ink:hover {
  background: var(--accent-red);
  color: #fff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--mono-font);
  font-size: 0.72rem;
  color: #6a6a7c;
  letter-spacing: 0.06em;
}

/* Cindy Character Stage */
.hero-chara-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.chara-stage {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 500px;
  border: 1px solid #282a3a;
  background: radial-gradient(circle at center, #181926 0%, #0c0d12 80%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(247, 1, 33, 0.15);
  border-radius: 4px;
}

.chara-img {
  width: 88%;
  height: 92%;
  object-fit: contain;
  object-position: bottom;
  position: absolute;
  bottom: 0;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.9));
}

.chara-img.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}

.chara-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0));
  background-size: 100% 6px;
  pointer-events: none;
}

.chara-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-family: var(--mono-font);
  font-size: 0.7rem;
  background: rgba(12, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid #2f3244;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
  letter-spacing: 0.08em;
  z-index: 5;
}

.chara-tag .dot {
  color: var(--accent-red);
}

.corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent-red);
}

.corner.tl {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.corner.br {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

/* Marquee Ticker */
.ticker-wrap {
  background: var(--accent-red);
  color: #fff;
  padding: 0.65rem 0;
  overflow: hidden;
  user-select: none;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.ticker-item {
  font-family: var(--title-font);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  padding: 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.ticker-item em {
  font-style: normal;
  font-size: 0.75rem;
  opacity: 0.8;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Common Section Styles */
.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-cream {
  background: var(--bg-cream);
  color: var(--text-ink);
  border-bottom: 1px solid var(--border-cream);
}

.section-ink {
  background: var(--bg-ink);
  color: var(--text-cream);
  border-bottom: 1px solid var(--border-ink);
}

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-family: var(--mono-font);
}

.sec-index {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.9rem;
}

.sec-name {
  color: inherit;
  opacity: 0.7;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  margin-bottom: 1.25rem;
  line-height: 0.95;
}

.section-title span {
  color: var(--accent-red);
}

.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 650px;
}

/* 2-column grid in About */
.grid-2col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.f-bullet {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.f-num {
  font-family: var(--mono-font);
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: var(--text-ink);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.f-bullet h4 {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.f-bullet p {
  font-size: 0.92rem;
  opacity: 0.75;
  line-height: 1.5;
}

/* Profile Card (About) */
.profile-card {
  background: #fff;
  border: 1px solid var(--border-cream);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  border: 2px solid var(--accent-red);
  object-fit: cover;
}

.profile-name {
  font-family: var(--body-font);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-ink);
}

.profile-sub {
  font-family: var(--mono-font);
  font-size: 0.8rem;
  color: #666;
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.p-stat {
  background: var(--bg-cream-alt);
  border: 1px solid var(--border-cream);
  padding: 0.8rem 0.5rem;
  text-align: center;
  border-radius: 2px;
}

.p-val {
  display: block;
  font-family: var(--title-font);
  font-size: 1.6rem;
  color: var(--accent-red);
  line-height: 1;
}

.p-lbl {
  font-family: var(--mono-font);
  font-size: 0.65rem;
  color: #555;
  text-transform: uppercase;
}

.profile-bio-box {
  background: var(--bg-ink);
  color: #dedee8;
  padding: 1.2rem;
  border-radius: 3px;
  margin-bottom: 1.25rem;
}

.bio-label {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  color: var(--accent-red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bio-text {
  font-size: 0.88rem;
  line-height: 1.5;
  font-style: italic;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.profile-tags span {
  font-family: var(--mono-font);
  font-size: 0.72rem;
  background: #e4dfd3;
  color: #222;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* Stack Section (Go + Rust Harness Deck) */
.harness-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.harness-card {
  background: var(--bg-ink-card);
  border: 1px solid var(--border-ink);
  padding: 2rem 1.6rem;
  border-radius: 4px;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.harness-card:hover {
  transform: translateY(-4px);
  border-color: #3b3f54;
}

.harness-accent-go {
  border-top: 3px solid #00add8;
}

.harness-accent-rust {
  border-top: 3px solid #f74c00;
}

.harness-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  font-family: var(--mono-font);
  font-size: 0.7rem;
}

.harness-card-id {
  color: #888a9e;
  font-weight: 700;
}

.harness-card-status {
  color: var(--accent-red);
  background: rgba(247, 1, 33, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
  font-size: 0.65rem;
}

.stack-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.stack-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--accent-red);
}

.harness-accent-go .stack-icon-svg { color: #00add8; }
.harness-accent-rust .stack-icon-svg { color: #f74c00; }

.stack-name {
  font-family: var(--title-font);
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  color: #fff;
}

.stack-summary {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #9d9db0;
  margin-bottom: 1.25rem;
  min-height: 45px;
}

.stack-spec-list {
  list-style: none;
  font-size: 0.85rem;
  color: #cfd0dc;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.stack-spec-list li strong {
  color: #fff;
  font-weight: 600;
}

.stack-code-snippet {
  background: #090a0f;
  border: 1px solid #20222f;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-tag {
  color: var(--accent-red);
  font-weight: 700;
}

/* Projects Showcase (Curated 4 items) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.project-card {
  background: #fff;
  border: 1px solid var(--border-cream);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 3px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag-pill {
  font-family: var(--mono-font);
  font-size: 0.65rem;
  font-weight: 700;
  background: #eeeadf;
  color: #333;
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

.tag-pill.tag-primary {
  background: #000;
  color: #fff;
}

.tag-pill.tag-rust {
  background: #f74c00;
  color: #fff;
}

.tag-pill.tag-go {
  background: #00add8;
  color: #fff;
}

.project-stars {
  font-family: var(--mono-font);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
}

.project-title {
  font-family: var(--title-font);
  font-size: 1.85rem;
  color: var(--text-ink);
  letter-spacing: 0.02em;
  margin-bottom: 0.6rem;
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555866;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.project-meta {
  font-family: var(--mono-font);
  font-size: 0.7rem;
  color: #8c8c9a;
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  border-top: 1px solid #f0ecdf;
  padding-top: 0.75rem;
}

/* Cindy Orca Pipeline Style */
.orca-block {
  background: #111219;
  border: 1px solid var(--border-ink);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 2rem;
}

.orca-pipeline {
  padding: 2rem;
}

.orca-pipeline-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  color: #7b7e93;
  border-bottom: 1px solid #232536;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.orca-pipeline-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.orca-stage {
  background: #171824;
  border: 1px solid #282a3d;
  padding: 1.5rem;
  border-radius: 3px;
}

.orca-stage-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono-font);
  font-size: 0.68rem;
  color: var(--accent-red);
  margin-bottom: 0.75rem;
}

.orca-combo {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.orca-combo i {
  font-style: normal;
  color: var(--accent-red);
  margin: 0 0.35rem;
}

.orca-stage p {
  font-size: 0.85rem;
  color: #9d9db0;
  line-height: 1.4;
}

.orca-continuity {
  background: #0d0e14;
  border: 1px solid #232536;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono-font);
  font-size: 0.75rem;
  color: #8c8ea3;
  border-radius: 2px;
}

.orca-continuity strong {
  color: #38ef7d;
}

/* Giant Cindy-Style CTA Section with Character Art */
.download-hit {
  background: var(--bg-cream);
  color: var(--text-ink);
  padding: 7rem 0 6rem;
  text-align: center;
  border-bottom: 1px solid var(--border-cream);
  position: relative;
  overflow: hidden;
}

.download-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
}

.download-bg-art {
  position: absolute;
  top: -10%;
  right: -5%;
  height: 120%;
  object-fit: contain;
}

.download-cat {
  position: absolute;
  bottom: 5%;
  left: 6%;
  width: 180px;
}

.download-cat img {
  width: 100%;
  height: auto;
}

.display-huge {
  font-family: var(--title-font);
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 5;
}

.display-huge .hollow {
  -webkit-text-stroke: 2px var(--text-ink);
  color: transparent;
}

.download-sub {
  font-size: 1.2rem;
  max-width: 650px;
  margin: 0 auto 2.5rem;
  color: #555;
  line-height: 1.6;
  position: relative;
  z-index: 5;
}

.download-ctas {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 5;
}

.download-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-family: var(--mono-font);
  font-size: 0.8rem;
  color: #777;
  position: relative;
  z-index: 5;
}

.download-links a {
  color: var(--text-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.download-links a:hover {
  color: var(--accent-red);
}

/* Footer with Cindy Cat */
.footer {
  background: var(--bg-ink);
  color: var(--text-cream);
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 10;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #9d9db0;
  text-decoration: none;
  font-family: var(--mono-font);
  font-size: 0.82rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-family: var(--mono-font);
  font-size: 0.78rem;
  color: #5d6075;
}

.footer-cat {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 140px;
  opacity: 0.4;
  pointer-events: none;
}

.footer-cat-img {
  width: 100%;
  height: auto;
}

.footer-wordmark {
  font-family: var(--title-font);
  font-size: 20vw;
  line-height: 0.8;
  color: rgba(255, 255, 255, 0.02);
  text-align: center;
  pointer-events: none;
  user-select: none;
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .harness-deck {
    grid-template-columns: 1fr;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .orca-pipeline-stages {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }
  .hero-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Motion, spacing, and layout refinements */
html { scroll-padding-top: 90px; }
.scroll-progress { transform-origin: left center; transform: scaleX(0); width: 100%; }
.hero { min-height: min(850px, calc(100svh - 66px)); }
.hero-title { max-width: 780px; }
.hero-chara-wrapper { min-width: 0; }
.chara-stage { isolation: isolate; }
.chara-stage:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 5px; }
.chara-img { z-index: 1; }
.chara-scanline { z-index: 2; }
.chara-tag, .corner { z-index: 3; }

[data-reveal] { opacity: 1; transform: none; }
.motion-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .72s cubic-bezier(.16, 1, .3, 1), transform .72s cubic-bezier(.16, 1, .3, 1);
  transition-delay: 0ms;
  will-change: opacity, transform;
}
.motion-ready [data-reveal].revealed { opacity: 1; transform: translate3d(0, 0, 0); }
.motion-ready [data-reveal-delay="1"] { transition-delay: 90ms; }
.motion-ready [data-reveal-delay="2"] { transition-delay: 170ms; }
.motion-ready [data-reveal-delay="3"] { transition-delay: 250ms; }
.hero [data-reveal] { transition-duration: .85s; }

/* Consistent project cards and pipeline */
.projects-grid { align-items: stretch; }
.project-card { min-width: 0; min-height: 350px; }
.project-card-top { gap: .8rem; align-items: flex-start; }
.project-tags { min-width: 0; }
.project-stars { white-space: nowrap; }
.project-meta { gap: .75rem; flex-wrap: wrap; }
.project-meta span:last-child { text-align: right; }
.orca-pipeline-stages { align-items: stretch; }
.orca-stage { min-width: 0; }
.orca-combo { font-family: var(--mono-font); font-size: clamp(.9rem, 1.5vw, 1.2rem); }
.orca-continuity { gap: 1rem; flex-wrap: wrap; }
.stack-code-snippet { gap: .6rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.stack-code-snippet code { overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .nav-links { gap: .85rem; }
  .nav-link { font-size: .68rem; }
  .hero-inner { grid-template-columns: 1fr .75fr; gap: 1.5rem; }
  .chara-stage { height: 440px; }
}

@media (max-width: 820px) {
  .nav-inner { padding-inline: 1.1rem; }
  .nav-links { gap: .7rem; }
  .nav-link { font-size: .62rem; }
  .nav-cta { font-size: .68rem; padding: .55rem .7rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-copy { max-width: 760px; }
  .hero-chara-wrapper { justify-content: flex-start; }
  .chara-stage { width: min(100%, 340px); height: 420px; }
  .hero { padding: 4rem 0 5rem; }
  .hero-side-tag { font-size: .62rem; }
  .orca-pipeline-stages { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-inner { padding: .75rem 1rem; }
  .logo-text { font-size: 1.35rem; }
  .nav-links { display: flex; overflow-x: auto; max-width: 58vw; gap: .9rem; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { display: none; }
  .nav-cta { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
  .container { padding-inline: 1.1rem; }
  .hero { min-height: auto; padding: 3.5rem 0 4.5rem; }
  .hero-title { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-lead, .lead { font-size: 1rem; }
  .hero-ctas { gap: .65rem; }
  .btn { min-height: 48px; padding: .75rem 1rem; font-size: .76rem; }
  .hero-meta { gap: .45rem; font-size: .65rem; }
  .hero-side-tag { right: 1rem; bottom: .8rem; max-width: calc(100% - 2rem); text-align: right; font-size: .55rem; }
  .chara-stage { height: 390px; max-width: 100%; }
  .section { padding: 4.5rem 0; }
  .sec-head { margin-bottom: 1.25rem; }
  .section-title { font-size: clamp(2.1rem, 10vw, 3.2rem); }
  .grid-2col { gap: 2rem; }
  .profile-card { padding: 1.25rem; }
  .profile-stats-grid { gap: .4rem; }
  .p-lbl { font-size: .56rem; }
  .harness-card { padding: 1.35rem 1.1rem; }
  .harness-card-head { gap: .6rem; flex-wrap: wrap; }
  .stack-name { font-size: 1.9rem; }
  .stack-summary { min-height: 0; }
  .projects-grid { grid-template-columns: 1fr; gap: 1rem; }
  .project-card { min-height: 0; padding: 1.35rem; }
  .project-card-top { flex-direction: column; }
  .project-meta { font-size: .64rem; }
  .orca-pipeline { padding: 1.1rem; }
  .orca-pipeline-head { flex-direction: column; gap: .4rem; font-size: .65rem; }
  .orca-stage { padding: 1.15rem; }
  .orca-stage-meta { gap: .5rem; flex-wrap: wrap; }
  .orca-continuity { align-items: flex-start; flex-direction: column; font-size: .65rem; overflow-wrap: anywhere; }
  .download-hit { padding: 5rem 0 4rem; }
  .display-huge { font-size: clamp(3rem, 14vw, 5rem); }
  .download-bg-art { right: -48%; opacity: .6; }
  .download-cat { width: 100px; left: 0; bottom: 0; }
  .download-sub { font-size: 1rem; }
  .download-ctas { flex-direction: column; align-items: stretch; }
  .download-ctas .btn { justify-content: center; }
  .download-links { flex-wrap: wrap; font-size: .67rem; gap: .5rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-links { gap: .85rem 1.25rem; }
  .footer-cat { width: 90px; right: 2%; opacity: .24; }
  .footer-copy { max-width: 80%; font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Lightweight, original profile artwork and motion budget */
.profile-art {
  position: relative;
  width: min(100%, 390px);
  aspect-ratio: 4 / 5;
  margin-inline: auto;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #343747;
  background: #11131b;
  box-shadow: 14px 14px 0 rgba(247, 1, 33, .12);
}
.profile-art-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(135deg, #000 15%, transparent 85%);
}
.profile-art-avatar {
  position: absolute;
  width: 57%;
  height: 57%;
  aspect-ratio: 1;
  object-fit: cover;
  left: 50%;
  top: 43%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--bg-cream);
  box-shadow: 0 0 0 10px rgba(247,1,33,.12);
}
.profile-art-orbit {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  top: 43%;
  left: 50%;
  border: 1px solid rgba(247,1,33,.46);
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(-25deg) scaleY(.68);
}
.orbit-two { transform: translate(-50%,-50%) rotate(55deg) scaleY(.68); border-color: rgba(255,255,255,.24); }
.profile-art-mark {
  position: absolute;
  right: 8%;
  top: 5%;
  font: 400 clamp(5rem, 13vw, 8rem)/.9 var(--title-font);
  color: rgba(255,255,255,.9);
  letter-spacing: -.06em;
}
.profile-art-mark span { color: var(--accent-red); }
.profile-art-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: 1.1rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(8,9,13,.92));
  font: 700 .68rem var(--mono-font);
  letter-spacing: .08em;
}
.profile-art-caption a { color: #a7a9b7; font-size: .55rem; text-align: right; text-decoration: none; }
.profile-art-caption a:hover { color: #fff; }

/* Avoid permanent animation work: scroll-driven reveals remain, ticker is static. */
.ticker-track { animation: none; }
.hero-grid { background-size: 48px 48px; }
.hero-edge-fx { opacity: .55; }
.download-art { opacity: .12; }
.download-avatar {
  position: absolute;
  width: min(24vw, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  filter: grayscale(1);
}
.motion-ready [data-reveal] { will-change: auto; }
.motion-ready [data-reveal]:not(.revealed) { will-change: opacity, transform; }

@media (max-width: 640px) {
  .profile-art { width: min(100%, 340px); }
  .download-avatar { width: 46vw; right: -10%; opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready [data-reveal] { will-change: auto; }
}
