/* ============================================================
   TOKENS & RESET
   ============================================================ */
:root {
  --bg: #090c10;
  --surface: #0f1319;
  --surface-2: #151a22;
  --border: #1c2128;
  --border-2: #252b33;
  --text-primary: #eceff4;
  --text-secondary: #a4adba;
  --text-muted: #5c6475;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --live: #10b981;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1120px;
  --nav-h: 60px;
  --radius: 8px;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 96px 0;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}

.site-header.scrolled {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  flex-shrink: 0;
}

.nav-logo-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 400;
}

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

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: border-color var(--transition), background var(--transition);
}

.nav-cta:hover {
  border-color: var(--text-muted);
  background: var(--surface);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-hamburger.open span:first-child {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-hamburger.open span:last-child {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(12, 12, 12, 0.97);
  border-bottom: 1px solid var(--border);
  padding: 20px 28px 28px;
  z-index: 999;
  backdrop-filter: blur(12px);
}

.mobile-menu.open {
  display: block;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-link {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--text-primary);
}

.mobile-menu li:last-child .mobile-nav-link {
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 28px 60px;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 64px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.inline-link {
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-2);
  transition: border-color var(--transition);
}

.inline-link:hover {
  border-bottom-color: var(--text-primary);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Portrait */
.hero-portrait {
  display: flex;
  justify-content: flex-end;
}

.portrait-frame {
  width: 340px;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(15%);
  transition: filter 0.4s ease;
}

.portrait-frame:hover img {
  filter: grayscale(0%);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--text-secondary);
  animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text-primary);
  color: var(--bg);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: opacity var(--transition), transform var(--transition);
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 400;
  border: 1px solid var(--border-2);
  transition: color var(--transition), border-color var(--transition);
}

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-label-row {
  margin-bottom: 12px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 52px;
}

/* ============================================================
   WHY I BUILD (homepage teaser)
   ============================================================ */
.why-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.why-left {}

.why-right {}

.why-heading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-primary);
}

.why-body {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.why-link {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.why-link:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-muted);
}

/* ============================================================
   HOME PAGE PRODUCT CARDS (3‑col)
   ============================================================ */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.home-product-card {
  background: var(--bg);
  padding: 32px 28px 28px;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-product-card:hover {
  background: var(--surface);
}

.hpc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hpc-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-secondary);
}

.hpc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hpc-img--placeholder {}

.hpc-status {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.hpc-status--live {
  color: var(--live);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hpc-status--dev {
  color: var(--accent);
  border: 1px solid rgba(79, 126, 248, 0.3);
}

.hpc-name {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.hpc-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.hpc-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: auto;
}

.hpc-arrow {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
  margin-top: 8px;
}

.home-product-card:hover .hpc-arrow {
  color: var(--text-primary);
}

/* ============================================================
   CURRENTLY SECTION
   ============================================================ */
.currently-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.currently-inner {}

.currently-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  color: var(--text-primary);
}

.currently-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.currently-item {
  background: var(--bg);
  padding: 18px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.currently-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
  margin-top: 7px;
}

.currently-dot--active {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.currently-dot--idle {
  background: var(--text-muted);
}

.currently-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.currently-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   PHILOSOPHY
   ============================================================ */
.philosophy-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-quote {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
  quotes: none;
}

.philosophy-cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ============================================================
   PRODUCTS PAGE DETAIL
   ============================================================ */
.product-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  padding: 56px 0;
}

.product-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.product-meta-col {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-number {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.product-tags {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: fit-content;
}

.product-content-col {}

.product-image-wrap {
  width: 100%;
  max-width: 640px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 28px;
  aspect-ratio: 16/9;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-image-wrap:hover img {
  transform: scale(1.02);
}

.product-name {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 24px;
}

.product-details {
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.product-detail-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.detail-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.detail-value {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.detail-live {
  color: var(--live);
}

.product-cta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.product-cta:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-muted);
}

/* ============================================================
   STACK SECTION (optional)
   ============================================================ */
.stack-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.stack-group {
  background: var(--surface);
  padding: 28px 24px;
}

.stack-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.stack-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.stack-list li:last-child {
  border-bottom: none;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline-section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 100px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border-2);
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 36px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-2);
  border: 1px solid var(--border-2);
}

.timeline-item--current::before {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.timeline-year {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
  min-width: 36px;
}

.timeline-item--current .timeline-year {
  color: var(--accent);
}

.timeline-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.timeline-body p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 540px;
}

/* ============================================================
   PRESS
   ============================================================ */
.press-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.press-item {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  transition: background var(--transition);
}

.press-item:hover {
  background: var(--surface);
}

.press-pub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
  transition: color var(--transition);
}

.press-item:hover .press-pub {
  color: var(--text-primary);
}

.press-arrow {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.press-item:hover .press-arrow {
  color: var(--text-secondary);
  transform: translate(2px, -2px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section {
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 420px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.contact-link-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.contact-link-item.no-link {
  cursor: default;
}

.contact-link-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-link-value {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

a.contact-link-item:hover .contact-link-value {
  color: var(--text-primary);
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.contact-card-tagline {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.contact-open-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
}

.contact-open-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-open-list li::before {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.contact-open-list li:last-child {
  border-bottom: none;
}

.btn-copy-email {
  width: 100%;
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  font-weight: 400;
}

.btn-copy-email:hover {
  background: var(--border);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-copy-email.copied {
  border-color: var(--live);
  color: var(--live);
}

.copy-confirm {
  font-size: 0.75rem;
  color: var(--live);
  text-align: center;
  margin-top: 8px;
  min-height: 18px;
  transition: opacity var(--transition);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--text-primary);
}

/* ============================================================
   STATS ROW
   ============================================================ */
.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  background: var(--surface);
}

.stats-row {
  display: flex;
  align-items: stretch;
}

.stat-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 28px 32px;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
}

.stat-num {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.page-hero-heading {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.page-hero-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.65;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.breadcrumb span {
  color: var(--text-muted);
}

/* ============================================================
   NAV ACTIVE LINK
   ============================================================ */
.nav-link--active {
  color: var(--text-primary) !important;
}

/* ============================================================
   BIO SECTION (about page)
   ============================================================ */
.bio-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 64px;
  align-items: start;
}

.bio-portrait-frame {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 24px;
  aspect-ratio: 4/5;
}

.bio-portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.bio-sidebar-info {
  display: flex;
  flex-direction: column;
}

.bio-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.bio-info-item:last-child {
  border-bottom: none;
}

.bio-info-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bio-info-value {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.status-live {
  color: var(--live) !important;
}

.bio-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.bio-text p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.bio-text p:last-child {
  margin-bottom: 0;
}

.bio-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.bio-text em {
  font-style: italic;
}

/* ============================================================
   RAW SECTION (about: why I started)
   ============================================================ */
.raw-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.raw-heading {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.raw-text p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ============================================================
   DRIVES CARDS (about)
   ============================================================ */
.drives-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.drive-card {
  background: var(--bg);
  padding: 28px 24px;
  transition: background var(--transition);
}

.drive-card:hover {
  background: var(--surface);
}

.drive-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.drive-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   FAILURES (about)
   ============================================================ */
.failures-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.failure-item {
  background: var(--bg);
  padding: 24px 24px;
  transition: background var(--transition);
}

.failure-item:hover {
  background: var(--surface);
}

.failure-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.failure-label {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.failure-result {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.failure-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   TECH FOCUS (about)
   ============================================================ */
.tech-focus-section {
  border-top: 1px solid var(--border);
}

.tech-focus-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.tech-focus-card {
  background: var(--bg);
  padding: 28px 24px;
  transition: background var(--transition);
}

.tech-focus-card:hover {
  background: var(--surface);
}

.tech-focus-icon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 4px 8px;
  display: inline-block;
  margin-bottom: 16px;
}

.tech-focus-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.focus-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.focus-list li:last-child {
  border-bottom: none;
}

/* ============================================================
   PRODUCTS INDEX (products page)
   ============================================================ */
.products-index {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.product-index-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg);
  transition: background var(--transition);
}

.product-index-item:hover {
  background: var(--surface);
}

.product-index-num {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 24px;
}

.product-index-name {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
  flex: 1;
}

.product-index-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-right: 12px;
}

.product-index-arrow {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================================
   PRODUCT DETAIL (products page)
   ============================================================ */
.product-detail-section {
  border-top: 1px solid var(--border);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 56px;
  align-items: start;
}

.product-detail-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.product-quick-facts {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.quick-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.quick-fact:last-child {
  border-bottom: none;
}

.qf-label {
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.qf-val {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.product-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}

.product-why {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 28px;
}

.product-why-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.product-why p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-feature-grid {
  margin-top: 28px;
  margin-bottom: 24px;
}

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.feature-item:nth-child(2n) {
  border-right: none;
}

.feature-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.feature-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.tag--live {
  color: var(--live);
  border-color: rgba(34, 197, 94, 0.3);
}

.tag--dev {
  color: var(--accent);
  border-color: rgba(79, 126, 248, 0.3);
}

.product-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section-divider {
  padding: 0;
}

.section-divider hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* Architecture flow */
.product-arch {
  margin-bottom: 28px;
}

.arch-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.arch-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.arch-step-num {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
}

.arch-step strong {
  font-size: 0.82rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 3px;
}

.arch-step span {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.arch-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.arch-flow--vertical {
  flex-direction: column;
  align-items: stretch;
}

.arch-step-v {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.arch-step-v:last-child {
  border-bottom: none;
}

/* Roadmap */
.roadmap-list {
  display: flex;
  flex-direction: column;
}

.roadmap-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.roadmap-item:last-child {
  border-bottom: none;
}

.roadmap-status {
  font-size: 0.85rem;
  min-width: 20px;
  text-align: center;
  color: var(--text-muted);
}

.roadmap-status--active {
  color: var(--accent);
}

.roadmap-item strong {
  font-size: 0.85rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 2px;
}

.roadmap-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Placeholder for Ghumakkad */
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  aspect-ratio: 16/9;
}

.placeholder-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.placeholder-label {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.placeholder-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ============================================================
   VISION PAGE
   ============================================================ */
.vision-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 0;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.goal-card {
  background: var(--bg);
  padding: 28px 24px;
  transition: background var(--transition);
}

.goal-card:hover {
  background: var(--surface);
}

.goal-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.goal-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.goal-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.future-section {
  border-top: 1px solid var(--border);
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.future-item {
  background: var(--bg);
  padding: 28px 24px;
  transition: background var(--transition);
}

.future-item:hover {
  background: var(--surface);
}

.future-item h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.future-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mindset-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mindset-traits {
  display: flex;
  flex-direction: column;
}

.mindset-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.mindset-item:last-child {
  border-bottom: none;
}

.mindset-num {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  min-width: 24px;
  padding-top: 3px;
}

.mindset-item h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.mindset-item p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.current-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.focus-item {
  display: flex;
  gap: 14px;
  background: var(--bg);
  padding: 24px;
  align-items: flex-start;
  transition: background var(--transition);
}

.focus-item:hover {
  background: var(--surface);
}

.focus-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
  margin-top: 6px;
}

.focus-dot--active {
  background: var(--live);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.focus-item h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.focus-item p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CONTACT PAGE EXTRAS
   ============================================================ */
.contact-about-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.contact-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.contact-fact {
  background: var(--bg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-fact-val {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.contact-fact-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--transition), color var(--transition);
}

details[open] .faq-question::after {
  transform: rotate(45deg);
  color: var(--text-secondary);
}

.faq-answer {
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   NOTES PAGE
   ============================================================ */
.note-entry {
  margin-top: 20px;
}

.note-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.note-body p {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.note-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.placeholder-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  border-top: 1px solid var(--border);
  padding: 80px 0;
  background: var(--surface);
}

.cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cta-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ============================================================
   PHILOSOPHY CTA
   ============================================================ */
.philosophy-cta {
  margin-top: 24px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-portrait {
    justify-content: flex-start;
  }

  .portrait-frame {
    width: 280px;
    height: 340px;
  }

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

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

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

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

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

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

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .contact-card {
    position: static;
  }

  .product-detail-grid {
    grid-template-columns: 140px 1fr;
    gap: 36px;
  }

  .product-detail-meta {
    position: static;
  }

  .timeline {
    padding-left: 80px;
  }

  .bio-grid {
    grid-template-columns: 240px 1fr;
    gap: 40px;
  }

  .vision-text-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: calc(var(--nav-h) + 32px) 24px 52px;
  }

  .container {
    padding: 0 20px;
  }

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

  .portrait-frame {
    width: 240px;
    height: 290px;
  }

  .hero-portrait {
    justify-content: flex-start;
  }

  .home-products-grid {
    grid-template-columns: 1fr;
  }

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

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .product-detail-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .product-quick-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    padding-left: 60px;
  }

  .timeline::before {
    left: 42px;
  }

  .timeline-item::before {
    left: -22px;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 16px;
  }

  .philosophy-section {
    padding: 56px 0;
  }

  .stats-row {
    flex-wrap: wrap;
  }

  .stat-block {
    min-width: 50%;
  }

  .stat-divider {
    display: none;
  }

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

  .bio-portrait-frame {
    max-width: 280px;
  }

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

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

  .current-focus-grid {
    grid-template-columns: 1fr;
  }

  .contact-about-grid {
    grid-template-columns: 1fr;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-item {
    border-right: none !important;
  }

  .feature-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .feature-item:last-child {
    border-bottom: none !important;
  }

  .product-index-type {
    display: none;
  }

  .vision-text-grid {
    grid-template-columns: 1fr;
  }

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

  .tech-focus-grid {
    grid-template-columns: 1fr;
  }

  .raw-section-grid {
    grid-template-columns: 1fr;
  }

  .why-inner {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-portrait {
    display: none;
  }

  .product-details {
    flex-direction: column;
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   3D HOVER EFFECTS (subtle)
   ============================================================ */
.portrait-frame--3d {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  perspective: 800px;
}

.portrait-frame--3d:hover {
  transform: rotateY(-6deg) rotateX(3deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.home-product-card,
.press-item,
.product-index-item {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-product-card:hover {
  transform: translateY(-4px) perspective(600px) rotateX(1deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

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

.product-index-item:hover {
  transform: translateX(4px);
}

/* ============================================================
   ENHANCED HERO BACKGROUND
   ============================================================ */
.hero {
  background: radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
}

/* ============================================================
   REFINED SCROLL REVEAL (more pronounced)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Add reveal class to more elements automatically via JS later if needed,
   but these rules make existing reveals smoother. */

/* ============================================================
   3D HOVER & CARD ELEVATION
   ============================================================ */
.portrait-frame {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  perspective: 800px;
}

.portrait-frame:hover {
  transform: rotateY(-4deg) rotateX(3deg) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--accent-dim);
}

.home-product-card,
.press-item,
.product-index-item,
.drive-card,
.goal-card,
.future-item,
.tech-focus-card,
.interest-item,
.contact-fact,
.failure-item,
.currently-item,
.mindset-item,
.contact-card {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.2s;
}

.home-product-card:hover,
.press-item:hover {
  transform: translateY(-4px) perspective(600px) rotateX(1deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
  border-color: var(--accent-dim);
}

.product-index-item:hover,
.drive-card:hover,
.goal-card:hover,
.future-item:hover,
.tech-focus-card:hover,
.interest-item:hover,
.contact-fact:hover,
.failure-item:hover,
.currently-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--border-2);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   BUTTONS & LINKS — ACCENT COLOR
   ============================================================ */
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--border-2);
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--accent-bright);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}

.inline-link {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-dim);
}

.inline-link:hover {
  border-bottom-color: var(--accent-bright);
}

/* ============================================================
   SECTION DIVIDERS – WITH GRADIENT
   ============================================================ */
.section-divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

/* ============================================================
   STATS COUNTER ANIMATION (CSS only pulse)
   ============================================================ */
.stat-num {
  transition: color 0.3s;
}

.stat-block:hover .stat-num {
  color: var(--accent-bright);
}

/* ============================================================
   MOBILE MENU ACCENT
   ============================================================ */
.mobile-nav-link:hover {
  color: var(--accent-bright);
}

/* ============================================================
   INTERESTS GRID (about page)
   ============================================================ */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-item {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  background: var(--surface);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  cursor: default;
}

.interest-item:hover {
  color: var(--accent-bright);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* ============================================================
   BLOG / NOTE CARD STYLES (notes page)
   ============================================================ */
.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.blog-card {
  background: var(--bg);
  padding: 32px 28px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.blog-card:last-child {
  border-bottom: none;
}

.blog-card:hover {
  background: var(--surface);
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 3px 10px;
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  background: var(--accent-dim);
}

.blog-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.blog-card-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.blog-card-body p:last-child {
  margin-bottom: 0;
}

.blog-card-body strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ============================================================
   ENHANCED ANIMATIONS & KEYFRAMES
   ============================================================ */

/* Floating orbs in hero */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(59,130,246,0.07) 0%, transparent 70%);
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  bottom: 0;
  left: -80px;
  background: radial-gradient(circle, rgba(16,185,129,0.05) 0%, transparent 70%);
  animation: orbFloat2 16s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -30px) scale(1.08); }
}

/* Stagger reveal delays */
.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }

/* Pulse animation for live dots */
.currently-dot--active,
.focus-dot--active {
  animation: pulseLive 2.5s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}

/* Timeline dot pulse (current item) */
.timeline-item--current::before {
  animation: pulseAccent 2.5s ease-in-out infinite;
}

@keyframes pulseAccent {
  0%, 100% { box-shadow: 0 0 0 3px var(--accent-dim); }
  50% { box-shadow: 0 0 0 7px rgba(59,130,246,0.04); }
}

/* Shimmer on primary button */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

.btn-primary:hover::after {
  left: 160%;
}

/* Nav logo glow on hover */
.nav-logo:hover .nav-logo-name {
  color: var(--accent-bright);
  transition: color 0.2s;
}

/* Scroll hint fade in */
.hero-scroll-hint {
  animation: fadeUp 1s ease 1.2s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero content stagger */
.hero-eyebrow {
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-heading {
  animation: fadeUp 0.7s ease 0.35s both;
}

.hero-body {
  animation: fadeUp 0.7s ease 0.5s both;
}

.hero-actions {
  animation: fadeUp 0.7s ease 0.65s both;
}

.hero-portrait {
  animation: fadeIn 0.9s ease 0.4s both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Page hero stagger */
.page-hero-eyebrow {
  animation: fadeUp 0.6s ease 0.15s both;
}

.page-hero-heading {
  animation: fadeUp 0.6s ease 0.3s both;
}

.page-hero-body {
  animation: fadeUp 0.6s ease 0.45s both;
}

/* Gradient border on product cards (on hover) */
.home-product-card {
  position: relative;
}

.home-product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.home-product-card:hover::before {
  opacity: 1;
}

/* Stat number glow animation */
@keyframes statAppear {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.stat-num {
  display: inline-block;
  animation: statAppear 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

/* Section label accent glow */
.section-label {
  position: relative;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--live));
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
}

/* Mobile menu slide-in animation */
.mobile-menu {
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
              opacity 0.25s ease,
              display 0s 0.25s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  display: block;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1),
              opacity 0.25s ease;
}

/* Footer link hover underline animation */
.footer-links a,
.footer-bottom-links a {
  position: relative;
}

.footer-links a::after,
.footer-bottom-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: width 0.25s ease;
}

.footer-links a:hover::after,
.footer-bottom-links a:hover::after {
  width: 100%;
}

/* Nav link underline animation */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-bright);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

/* Contact card gradient glow */
.contact-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(59,130,246,0.04) 100%);
}

/* Bio portrait shimmer */
.bio-portrait-frame {
  position: relative;
  overflow: hidden;
}

.bio-portrait-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Responsive: hide orbs on mobile */
@media (max-width: 768px) {
  .hero-orb { display: none; }

  .blog-card {
    padding: 24px 20px;
  }

  .blog-card h3 {
    font-size: 1rem;
  }

  .interests-grid {
    gap: 6px;
  }
}