/* ==========================================================================
   TwoBytes Studio - Hazelight-inspired Creative Studio Design System
   Tone: Warm unbleached paper, bold editorial typography, refined borders,
         clean horizontal badges, subtle studio shadows, zero AI fluff.
   ========================================================================== */

:root {
  /* Warm unbleached paper palette */
  --bg: #F5F1E8;
  --bg-card: #FAF8F3;
  --bg-subtle: #ECE6D8;
  --bg-inset: #DFD7C6;

  --ink: #141312;
  --ink-secondary: #524E48;
  --ink-muted: #878177;

  --border: #DDD6C8;
  --border-subtle: rgba(20, 19, 18, 0.08);
  --border-strong: #141312;

  /* Stage / Showcase dark tones (used for immersive showcase islands) */
  --stage-bg: #141312;
  --stage-card: #1D1C1A;
  --stage-subtle: #272522;
  --stage-border: #2D2B27;
  --stage-ink: #F7F4ED;
  --stage-ink-secondary: #B0AAA0;
  --stage-ink-muted: #7E776E;

  --kofi: #ff5e5b;
  --kofi-hover: #e84d4a;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1160px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  /* Refined, non-cartoon studio shadows */
  --shadow-sm: 0 1px 3px rgba(20, 19, 18, 0.04);
  --shadow-card: 0 2px 8px rgba(20, 19, 18, 0.04), 0 1px 2px rgba(20, 19, 18, 0.03);
  --shadow-hover: 0 10px 24px rgba(20, 19, 18, 0.08), 0 3px 6px rgba(20, 19, 18, 0.04);
  --shadow-stage: 0 20px 48px rgba(0, 0, 0, 0.35);
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

p {
  color: var(--ink-secondary);
}

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* Scroll reveal animations */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal="up"]    { transform: translateY(28px); }
[data-reveal="down"]  { transform: translateY(-20px); }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="scale"] { transform: scale(0.96); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }

/* Sticky Header with personality */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.05);
  opacity: 0.9;
}

.brand-dot {
  display: inline-block;
  transform: translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background: var(--bg-card);
  border-color: var(--border);
}

.nav-link.is-current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

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

/* Minimal segmented language switch */
.lang-switch {
  display: flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.is-active {
  background: var(--ink);
  color: var(--bg);
}

.kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--kofi);
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  box-shadow: 0 2px 6px rgba(255, 94, 91, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.kofi-btn svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
}

.kofi-btn:hover {
  background: var(--kofi-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 94, 91, 0.35);
}

.burger {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px;
  color: var(--ink);
  cursor: pointer;
}

/* Refined Studio Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--bg) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r-full);
  border: 1px solid var(--ink);
  box-shadow: 0 2px 6px rgba(20, 19, 18, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 19, 18, 0.2);
  background: #000;
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(20, 19, 18, 0.15);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
  box-shadow: var(--shadow-hover);
  background: #ffffff;
}

.btn-secondary:active {
  transform: translateY(0);
}

/* Studio Badges - Clean, horizontal, refined */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--r-full);
  box-shadow: none;
  transform: none !important;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.stamp:hover {
  border-color: var(--ink);
}

.stamp-alt {
  background: var(--bg-subtle);
  border-color: var(--border);
  transform: none !important;
}

.stamp-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--stage-ink);
  border: 1px solid var(--stage-border);
  box-shadow: none;
  transform: none !important;
}

/* Home Hero Section */
.hero-creative {
  padding: 96px 0 64px;
}

.hero-header {
  max-width: 980px;
}

.hero-title-giant {
  font-size: clamp(3rem, 7.5vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-top: 22px;
  margin-bottom: 24px;
}

.hero-lead-text {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 740px;
  margin-bottom: 38px;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Workshop Highlights Strip */
.stats-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.stat-unit {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.stat-big {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.stat-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* Showcase Stage for Projet Amona (Organic, immersive island) */
.showcase-stage {
  margin: 64px 0;
  padding: 64px 0;
  background: var(--stage-bg);
  border-radius: var(--r-xl);
  color: var(--stage-ink);
  border: 1px solid var(--stage-border);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
  position: relative;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.showcase-stage h2 {
  color: var(--stage-ink);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-top: 14px;
  margin-bottom: 18px;
}

.showcase-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--stage-ink-secondary);
  margin-bottom: 28px;
}

.showcase-specs-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid var(--stage-border);
  border-bottom: 1px solid var(--stage-border);
  margin-bottom: 32px;
}

.spec-cell dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--stage-ink-muted);
  margin-bottom: 4px;
}

.spec-cell dd {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--stage-ink);
}

/* Blueprint Interactive VR Mockup Frame */
.vr-blueprint-card {
  background: var(--stage-card);
  border: 1px solid var(--stage-border);
  border-radius: var(--r-lg);
  padding: 28px;
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0,0,0,0.4);
}

.vr-blueprint-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--stage-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--stage-border) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
}

.vr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stage-ink-muted);
}

.vr-card-center {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px;
}

.vr-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--stage-ink);
  margin-bottom: 6px;
}

.vr-card-subtitle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--stage-ink-secondary);
  letter-spacing: 0.08em;
}

.vr-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  border-top: 1px dashed var(--stage-border);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--stage-ink-muted);
}

/* Sections Common */
.section {
  padding: 80px 0;
}

.section-intro-block {
  margin-bottom: 48px;
}

.section-title-large {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin-top: 16px;
  margin-bottom: 12px;
}

.section-lead-note {
  font-size: 1.15rem;
  color: var(--ink-secondary);
  max-width: 680px;
}

/* The Rules of the Studio (Playful Manifesto Cards) */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rule-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rule-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 19, 18, 0.35);
}

.rule-card-index {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 16px;
}

.rule-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.rule-card p {
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Team Profile Sheets */
.team-container-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.founder-sheet {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.founder-sheet:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 19, 18, 0.35);
}

.founder-sheet-top {
  display: flex;
  gap: 20px;
  align-items: center;
}

.founder-avatar-box {
  width: 58px;
  height: 58px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.founder-title-info h3 {
  font-size: 1.55rem;
  margin-bottom: 4px;
}

.founder-role-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-secondary);
}

.founder-bio-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.founder-skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: var(--r-full);
}

.founder-sheet-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1.5px solid var(--border);
  padding-top: 18px;
}

.github-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: var(--bg-card);
  transition: all 0.15s ease;
}

.github-badge-link:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.github-badge-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Call to Action Banner */
.cta-banner-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 56px 48px;
  border: 1px solid #2B2926;
  box-shadow: var(--shadow-stage);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  margin: 48px 0;
}

.cta-banner-box h3 {
  color: var(--bg);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.cta-banner-box p {
  color: #B5AFA6;
  font-size: 1.08rem;
  max-width: 620px;
}

.btn-cta-light {
  background: var(--bg);
  color: var(--ink) !important;
  border: 1px solid var(--bg);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15);
}

.btn-cta-light:hover {
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Page Intro (Subpages) */
.page-hero-subpage {
  padding: 80px 0 48px;
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-top: 16px;
  margin-bottom: 16px;
}

.page-hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--ink-secondary);
  max-width: 780px;
}

/* Projects Page Detailed Box */
.project-focus-container {
  background: var(--stage-bg);
  color: var(--stage-ink);
  border: 1px solid var(--stage-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-stage);
  margin: 48px 0;
}

.project-focus-banner {
  padding: 56px 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  border-bottom: 1px solid var(--stage-border);
}

.project-focus-banner h2 {
  color: var(--stage-ink);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  margin-top: 14px;
  margin-bottom: 16px;
}

.project-focus-grid {
  padding: 48px 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
}

.project-narrative-col h3 {
  color: var(--stage-ink);
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.project-narrative-col p {
  color: var(--stage-ink-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-quote-sticker {
  margin-top: 24px;
  padding: 24px;
  background: var(--stage-card);
  border: 1.5px solid var(--stage-border);
  border-left: 4px solid var(--stage-ink);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-style: italic;
  font-size: 1rem;
  color: var(--stage-ink);
}

.project-specs-panel-box {
  background: var(--stage-card);
  border: 1.5px solid var(--stage-border);
  border-radius: var(--r-lg);
  padding: 32px;
}

.specs-panel-heading {
  color: var(--stage-ink);
  font-family: var(--font-display);
  font-size: 1.3rem;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--stage-border);
  margin-bottom: 24px;
}

.specs-grid-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.spec-row dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--stage-ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.spec-row dd {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--stage-ink);
}

/* Lab & Research Grid */
.lab-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.lab-item-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lab-item-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 19, 18, 0.35);
}

.lab-item-box h3 {
  font-size: 1.35rem;
}

.lab-item-box p {
  font-size: 0.96rem;
  line-height: 1.65;
}

/* Contact Cards */
.contact-cards-deck {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 48px;
}

.contact-tile {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.contact-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 19, 18, 0.35);
}

.contact-tile-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-tile-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--ink);
}

/* Support Box */
.support-interactive-box {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 48px;
  border: 1px solid #2B2926;
  box-shadow: var(--shadow-stage);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin: 48px 0;
}

.support-interactive-box h2 {
  color: var(--bg);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.support-interactive-box p {
  color: #B8B2A6;
  font-size: 1.08rem;
  max-width: 700px;
}

/* Legal Content */
.legal-wrapper {
  padding: 64px 0 96px;
}

.legal-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 48px;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.legal-article h1 {
  font-size: 2.5rem;
  margin: 16px 0 8px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px dashed var(--border);
}

.legal-article h2 {
  font-size: 1.4rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-article p {
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-article ul {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--ink-secondary);
}

.legal-article li {
  margin-bottom: 6px;
}

.legal-article a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

/* Site Footer */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid #2B2926;
  padding: 72px 0 44px;
  margin-top: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid #2B2926;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
}

.footer-about .brand {
  font-size: 1.3rem;
  color: var(--bg);
}

.footer-about p {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #ADA79B;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7D776C;
  margin-bottom: 18px;
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-menu a {
  font-size: 0.94rem;
  font-weight: 600;
  color: #ADA79B;
  transition: color 0.15s ease;
}

.footer-menu a:hover {
  color: var(--bg);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 0.85rem;
  color: #7D776C;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-bottom-links a {
  color: #7D776C;
  transition: color 0.15s ease;
}

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

/* Mobile Dock */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(20, 19, 18, 0.12);
  border-radius: var(--r-full);
  padding: 6px 12px;
  z-index: 99;
  gap: 4px;
}

.dock-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  transition: all 0.15s ease;
}

.dock-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.dock-link.is-current,
.dock-link:hover {
  background: var(--ink);
  color: var(--bg);
}

.dock-link.dock-kofi {
  color: var(--kofi);
}

/* Responsive */
@media (max-width: 992px) {
  .stats-banner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stat-unit:not(:last-child) {
    border-right: none;
    border-bottom: 2px dashed var(--border);
    padding-right: 0;
    padding-bottom: 24px;
  }

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

  .rules-grid,
  .lab-cards-grid {
    grid-template-columns: 1fr;
  }

  .team-container-grid {
    grid-template-columns: 1fr;
  }

  .project-focus-banner,
  .project-focus-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px;
    gap: 12px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
  }

  .nav-links.is-open {
    display: flex;
  }

  .burger {
    display: block;
  }

  .kofi-btn span {
    display: none;
  }

  .kofi-btn {
    padding: 8px 10px;
  }

  .mobile-dock {
    display: flex;
  }

  .showcase-specs-deck {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cta-banner-box {
    padding: 36px 24px;
  }
}
