/* ============================================
   32BOROUGHS — Venture Studio
   Design System & Styles
   ============================================ */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

/* --- Custom Properties --- */
:root {
  /* Palette */
  --color-bg: #F6F4F0;
  --color-bg-alt: #EDEAE4;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-secondary: #6B6560;
  --color-text-muted: #9C9790;
  --color-accent: #E8513D;
  --color-accent-hover: #D14430;
  --color-accent-light: rgba(232, 81, 61, 0.08);
  --color-border: #DDD9D3;
  --color-border-light: #EBE8E3;
  --color-dark: #1A1A1A;
  --color-dark-soft: #2D2A27;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;

  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;

  /* Borders */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  max-width: 65ch;
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
  font-weight: 300;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.section--large {
  padding: var(--space-3xl) 0;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(246, 244, 240, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base) var(--ease-out),
              background var(--duration-base) var(--ease-out);
}

.header.scrolled {
  border-bottom-color: var(--color-border-light);
}

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

.logo {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.15em;
}

.logo span {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  position: relative;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-accent);
  transition: width var(--duration-base) var(--ease-out);
}

.nav a:hover,
.nav a.active {
  color: var(--color-text);
}

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

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-fast);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.hero__label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--color-accent);
}

.hero h1 {
  margin-bottom: var(--space-md);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-accent);
}

.hero .lead {
  margin-bottom: var(--space-xl);
  max-width: 55ch;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1em 2.2em;
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--color-dark);
  color: var(--color-bg);
}

.btn--primary:hover {
  background: var(--color-accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(232, 81, 61, 0.2);
}

.btn--outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--ghost {
  color: var(--color-text);
  padding: 0.5em 0;
  font-weight: 500;
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--duration-base) var(--ease-out);
}

.btn--ghost:hover {
  color: var(--color-accent);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

.btn-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.card:hover {
  border-color: var(--color-border);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(26, 26, 26, 0.06);
}

.card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: var(--space-sm);
  transition: color var(--duration-base) var(--ease-out);
}

.card:hover .card__number {
  color: var(--color-accent);
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
}

.card__text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Venture Cards --- */
.venture-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.venture-card:hover {
  border-color: var(--color-border);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.08);
}

.venture-card__visual {
  height: 200px;
  background: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.venture-card__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-light), transparent);
}

.venture-card__icon {
  font-size: 3rem;
  position: relative;
  z-index: 1;
  filter: grayscale(0.2);
}

.venture-card__body {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.venture-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.venture-card__category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35em 0.85em;
  border-radius: 100px;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.badge--live {
  background: #E8F5E9;
  color: #2E7D32;
}

.badge--live::before {
  background: #4CAF50;
}

.badge--dev {
  background: #FFF3E0;
  color: #E65100;
}

.badge--dev::before {
  background: #FF9800;
}

.badge--soon {
  background: #E8EAF6;
  color: #283593;
}

.badge--soon::before {
  background: #5C6BC0;
}

.badge--beta {
  background: #FCE4EC;
  color: #AD1457;
}

.badge--beta::before {
  background: #E91E63;
}

.badge--early-access {
  background: #E8F5E9;
  color: #1B5E20;
}

.badge--early-access::before {
  background: #43A047;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.venture-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.venture-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.venture-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  transition: gap var(--duration-base) var(--ease-out);
}

.venture-card__link:hover {
  gap: 0.8em;
}

/* --- Grids --- */
.grid {
  display: grid;
  gap: var(--space-md);
}

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

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

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

/* --- Section Headers --- */
.section-header {
  margin-bottom: var(--space-xl);
}

.section-header .label {
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header--center {
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 1.5px;
  background: var(--color-accent);
  margin: var(--space-md) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Stats Row --- */
.stats {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* --- Process / Timeline --- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--color-border);
}

.process__step {
  text-align: center;
  position: relative;
  padding: 0 var(--space-sm);
}

.process__marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text-muted);
  position: relative;
  z-index: 1;
  transition: all var(--duration-base) var(--ease-out);
}

.process__step:hover .process__marker {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: scale(1.08);
  box-shadow: 0 4px 20px var(--color-accent-light);
}

.process__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.process__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Team --- */
.team-card {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.team-card__photo {
  width: 280px;
  min-width: 280px;
  aspect-ratio: 3/4;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.team-card__photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border-light));
}

.team-card__info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.2rem;
}

.team-card__role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.team-card__bio {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* --- Contact Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.form__input,
.form__textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1em 1.2em;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.form__textarea {
  resize: vertical;
  min-height: 160px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* --- Contact Info --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.contact-info__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 1rem;
}

.contact-info__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--color-text);
}

.contact-info__value a {
  transition: color var(--duration-fast);
}

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

/* --- CTA Section --- */
.cta {
  background: var(--color-dark);
  color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 81, 61, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  color: var(--color-bg);
  margin-bottom: var(--space-md);
  position: relative;
}

.cta p {
  color: rgba(246, 244, 240, 0.7);
  margin: 0 auto var(--space-lg);
  position: relative;
}

.cta .btn--primary {
  background: var(--color-accent);
  color: white;
  position: relative;
}

.cta .btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 8px 30px rgba(232, 81, 61, 0.35);
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

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

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.page-hero .label {
  margin-bottom: var(--space-sm);
}

.page-hero h1 {
  margin-bottom: var(--space-md);
}

/* --- Split Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.split--40-60 {
  grid-template-columns: 2fr 3fr;
}

.split--60-40 {
  grid-template-columns: 3fr 2fr;
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }

/* --- Stagger children --- */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

.stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger.visible > *:nth-child(2) { transition-delay: 100ms; }
.stagger.visible > *:nth-child(3) { transition-delay: 200ms; }
.stagger.visible > *:nth-child(4) { transition-delay: 300ms; }
.stagger.visible > *:nth-child(5) { transition-delay: 400ms; }
.stagger.visible > *:nth-child(6) { transition-delay: 500ms; }

.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Marquee --- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.marquee__inner {
  display: inline-flex;
  animation: marquee 40s linear infinite;
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--color-border);
  padding: 0 var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
  white-space: nowrap;
}

.marquee__item span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .process::before {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .split--40-60,
  .split--60-40 {
    grid-template-columns: 1fr;
  }

  .team-card {
    flex-direction: column;
  }

  .team-card__photo {
    width: 200px;
    min-width: 200px;
  }

  .stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-md);
    transform: translateX(100%);
    transition: transform var(--duration-base) var(--ease-out);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.08);
    z-index: 105;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.5rem;
    font-family: var(--font-display);
  }

  .menu-toggle {
    display: flex;
  }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .footer .container {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

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

  .stats {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --- Grain texture overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
