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

:root {
  --bg: #090d16;
  --surface: #111726;
  --surface-elevated: #161f33;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-coral: #ff6b4a;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --link: #38bdf8;
  --link-hover: #7dd3fc;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(circle 600px at 90% 20%, rgba(99, 102, 241, 0.05), transparent),
    radial-gradient(circle 500px at 10% 40%, rgba(255, 107, 74, 0.04), transparent);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

/* Sticky Glassmorphic Navigation / Breadcrumb */
.breadcrumb {
  position: sticky;
  top: 1rem;
  z-index: 50;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.65rem 1rem;
  background: rgba(17, 23, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .separator {
  color: var(--border-hover);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 500;
}

/* Headings */
h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

/* Paragraphs */
p {
  margin-bottom: 1rem;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Hero Bento Layout */
.hero-bento {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-top: 0.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-name {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 55%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.25rem 0 0.25rem 0;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.hero-work-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  width: fit-content;
  text-decoration: none;
}

.hero-work-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

/* Status Pill & Pulsing Dot */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #34d399;
  width: fit-content;
  letter-spacing: 0.01em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.6);
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.85;
  }
  60%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* Hero Athlete Spotlight Card */
.hero-athlete-card {
  position: relative;
  width: 220px;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 12px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  background: var(--surface);
  user-select: none;
  outline: none;
  padding: 0;
  display: block;
}

.hero-athlete-card:hover,
.hero-athlete-card:focus-visible {
  transform: translateY(-4px) scale(1.02);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.4);
}

.athlete-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-athlete-card:hover .athlete-img,
.hero-athlete-card:focus-visible .athlete-img {
  transform: scale(1.06);
}

.athlete-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.1) 0%, rgba(9, 13, 22, 0.25) 40%, rgba(9, 13, 22, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.85rem;
  pointer-events: none;
}

.athlete-card-tag {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}

.athlete-expand-pill {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #f1f5f9;
  transition: all 0.2s ease;
}

.hero-athlete-card:hover .athlete-expand-pill,
.hero-athlete-card:focus-visible .athlete-expand-pill {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: translateY(-1px);
}

/* Compact Subpage Hero & Mini Avatar */
.hero-compact {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.avatar-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
  outline: none;
}

.avatar-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.6), rgba(255, 107, 74, 0.5));
  z-index: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  opacity: 0.8;
}

.avatar-btn:hover::before,
.avatar-btn:focus-visible::before {
  opacity: 1;
  transform: scale(1.08);
}

.avatar-img {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid var(--bg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}

.avatar-btn:hover .avatar-img {
  transform: scale(1.02);
}

.hero-compact-info h1 {
  margin-bottom: 0.25rem;
}

.hero-compact-info .subtitle {
  margin-bottom: 0;
}

/* Legacy hero-profile fallback */
.hero-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* Links */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

/* Cards with Top-Edge Lighting & Hover Glow */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 23, 38, 0.7) 100%);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  border-top-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(56, 189, 248, 0.12);
  text-decoration: none;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.card.card-f1 {
  grid-column: 1 / -1;
  border-top-color: rgba(225, 6, 0, 0.55);
}

.card.card-f1:hover {
  border-color: rgba(225, 6, 0, 0.45);
  border-top-color: #e10600;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 24px rgba(225, 6, 0, 0.16);
}

/* Tables */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  overflow-x: auto;
  display: block;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

thead {
  background: var(--surface-elevated);
}

th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

/* Stats Cockpit (Single unified card container on homepage) */
.stats-cockpit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 23, 38, 0.75) 100%);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 6px 24px rgba(0, 0, 0, 0.28);
  border-radius: 14px;
  margin: 2rem 0;
  overflow: hidden;
}

.stat-cell {
  padding: 1.5rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: background-color 0.2s ease;
}

.stat-cell:not(:last-child) {
  border-right: 1px solid var(--border);
}

.stat-cell:hover {
  background: rgba(255, 255, 255, 0.02);
}

.stat-cell .stat-value {
  font-size: 1.75rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-cell .stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

.stat-cell .stat-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.85;
  margin-top: 0.35rem;
}

/* Bold Tabular Numbers & Muted Uppercase Units */
.stat-num {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.stat-unit {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* Stats Grid (Subpages: 3-column desktop, 2-column mobile) */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

/* Fallback / General Stats container */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0;
}

.stat {
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 23, 38, 0.6) 100%);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 4px 16px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.stat:hover {
  border-color: rgba(56, 189, 248, 0.3);
  border-top-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 6px 20px rgba(0, 0, 0, 0.25);
}

.stat-value {
  font-size: 1.6rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

/* Document list */
.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  margin-bottom: 1rem;
}

.doc-list a {
  display: block;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(17, 23, 38, 0.6) 100%);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1.1rem 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.doc-list a:hover {
  border-color: rgba(56, 189, 248, 0.3);
  border-top-color: rgba(56, 189, 248, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.doc-list .doc-title {
  font-weight: 600;
  color: var(--text);
}

.doc-list .doc-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* Emphasis blocks */
.highlight-block {
  background: linear-gradient(135deg, rgba(22, 31, 51, 0.85) 0%, rgba(17, 23, 38, 0.65) 100%);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--accent);
  padding: 1.15rem 1.5rem;
  border-radius: 0 12px 12px 0;
  margin: 1.75rem 0;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.highlight-block.warning {
  border-left-color: var(--accent-coral);
}

.highlight-block.success {
  border-left-color: var(--accent-emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(17, 23, 38, 0.65) 100%);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  letter-spacing: 0.02em;
}

.badge.gold {
  background: rgba(251, 191, 36, 0.12);
  color: var(--accent-gold);
  border-color: rgba(251, 191, 36, 0.28);
}

.badge.pink,
.badge.coral {
  background: rgba(255, 107, 74, 0.12);
  color: var(--accent-coral);
  border-color: rgba(255, 107, 74, 0.28);
}

.badge.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.28);
}

.badge.purple {
  background: rgba(167, 139, 250, 0.12);
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.28);
}

.badge.f1 {
  background: rgba(225, 6, 0, 0.14);
  color: #ff8a80;
  border-color: rgba(225, 6, 0, 0.45);
  text-decoration: none;
}

a.badge.f1:hover {
  color: #ffc7c2;
  border-color: rgba(225, 6, 0, 0.75);
}

/* Strong in tables */
td strong {
  color: var(--accent);
}

/* Native Glassmorphic Lightbox Modal */
.lightbox-modal {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 90vw;
  max-height: 90vh;
  outline: none;
  overflow: visible;
}

.lightbox-modal::backdrop {
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: modal-fade-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(17, 23, 38, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(56, 189, 248, 0.14);
  animation: modal-zoom-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.75);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close-btn:hover {
  background: rgba(255, 107, 74, 0.25);
  border-color: rgba(255, 107, 74, 0.5);
  color: #ff6b4a;
  transform: scale(1.08);
}

.modal-image-container {
  max-height: 72vh;
  max-width: 80vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 14px;
}

.modal-img {
  max-height: 72vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 14px;
  display: block;
}

.modal-caption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.01em;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Daily Fuel & Stack System */
.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.fuel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.fuel-card {
  position: relative;
  background: linear-gradient(180deg, #131b2e 0%, #0d1322 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 6px 20px rgba(0, 0, 0, 0.35);
  border-radius: 16px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.fuel-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  border-top-color: rgba(56, 189, 248, 0.7);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(56, 189, 248, 0.08);
}

.fuel-card.fuel-feature {
  grid-column: span 2;
  background: linear-gradient(135deg, #131b2e 0%, rgba(30, 27, 75, 0.4) 50%, #0d1322 100%);
  border-top: 1px solid rgba(129, 140, 248, 0.35);
}

.fuel-card.fuel-feature:hover {
  border-color: rgba(129, 140, 248, 0.4);
  border-top-color: rgba(129, 140, 248, 0.75);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 24px rgba(129, 140, 248, 0.12);
}

.fuel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fuel-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.fuel-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.fuel-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.fuel-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.55rem 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.fuel-spec {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  font-size: 0.74rem;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.25rem 0.55rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.fuel-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.15rem;
}

.fuel-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.fuel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fuel-cta:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.fuel-cta .ext-arrow {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.fuel-cta:hover .ext-arrow {
  transform: translate(2px, -2px);
}

/* Backward compatibility aliases */
.stack-bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.stack-col-2, .stack-col-3 { grid-column: span 1; }
.stack-card { background: linear-gradient(180deg, #131b2e 0%, #0d1322 100%); border: 1px solid var(--border); border-top: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 1.35rem; }
.stack-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.stack-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; }
.stack-prod-name { font-size: 0.96rem; font-weight: 600; color: #fff; }
.stack-brand { font-size: 0.78rem; color: var(--accent); font-weight: 600; text-transform: uppercase; }
.stack-desc { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }
.stack-link { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; font-weight: 600; color: var(--accent); text-decoration: none; padding: 0.35rem 0.75rem; background: rgba(56, 189, 248, 0.08); border: 1px solid rgba(56, 189, 248, 0.22); border-radius: 8px; }

/* Footer */
.footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: left;
}

.footer-id {
  margin: 0;
}

.footer-work {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
}

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-bento {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-athlete-card {
    margin: 0 auto;
    width: 240px;
    height: 300px;
  }

  .stats-cockpit {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-cell:not(:last-child) {
    border-right: none;
  }

  .stat-cell:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .stat-cell:nth-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .fuel-grid,
  .stack-bento {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .fuel-card.fuel-feature {
    grid-column: span 1;
  }

  .stack-col-2,
  .stack-col-3 {
    grid-column: span 1;
  }

  .stack-col-3:last-child {
    grid-column: span 1;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 1.25rem 1rem;
  }

  .breadcrumb {
    top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
  }

  .hero-compact {
    gap: 1rem;
  }

  .avatar-img {
    width: 64px;
    height: 64px;
  }

  .hero-name {
    font-size: 2.1rem;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .stat-cell {
    padding: 1.25rem 0.75rem;
  }

  .stat-cell .stat-value {
    font-size: 1.4rem;
  }

  /* Subpage stats fit into 2x3 grid on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .stat {
    padding: 1rem 0.75rem;
  }

  .stat-value {
    font-size: 1.3rem;
  }

  .modal-image-container {
    max-height: 65vh;
    max-width: 88vw;
  }

  .modal-img {
    max-height: 65vh;
  }

  table {
    font-size: 0.8rem;
  }

  th, td {
    padding: 0.55rem 0.7rem;
  }

  .fuel-grid,
  .stack-bento {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fuel-card {
    padding: 1.25rem 1.15rem;
  }

  .fuel-title {
    font-size: 1.15rem;
  }

  .fuel-card.fuel-feature,
  .stack-col-2,
  .stack-col-3,
  .stack-col-3:last-child {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
