/* =====================================================
   GuildEra AI — Minimal Editorial Theme
   Inspired by kaikostudios.xyz, solanamobile.com, stbl.com
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&display=swap');
.buttond {
  cursor: pointer;
  position: relative;
  padding: 10px 24px;
  font-size: 18px;
  color: rgb(193, 163, 98);
  border: 2px solid rgb(193, 163, 98);
  border-radius: 34px;
  background-color: transparent;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  overflow: hidden;
}

.buttond::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 50px;
  height: 50px;
  border-radius: inherit;
  scale: 0;
  z-index: -1;
  background-color: rgb(193, 163, 98);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.buttond:hover::before {
  scale: 3;
}

.buttond:hover {
  color: #212121;
  scale: 1.1;
  box-shadow: 0 0px 20px rgba(193, 163, 98,0.4);
}

.buttond:active {
  scale: 1;
}



/* ── CSS Variables ── */
:root {
  --bg: #050505;
  --bg-2: #0E0D0B;
  --bg-3: #1A1814;
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-dim: #B8923A;
  --black: #050505;
  --text: #F0EDE6;
  --text-muted: #5A5650;
  --text-dim: rgba(240,237,230,0.55);
  --border: rgba(201,168,76,0.15);
  --border-strong: rgba(201,168,76,0.30);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Syne', sans-serif;
  --font-mono: 'Orbitron', monospace;
  --tt: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 0;
}

/* Light mode overrides */
body.light-mode {
  --bg: #F5F2EA;
  --bg-2: #EDEADF;
  --bg-3: #E5E2DA;
  --text: #0A0A0A;
  --text-muted: #888070;
  --text-dim: rgba(10,10,10,0.55);
  --border: rgba(168,132,42,0.20);
  --border-strong: rgba(168,132,42,0.35);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--tt), color var(--tt);
  overflow-x: hidden;
}

img { max-width:100%; height:auto; display:block; }
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 48px; }
}
@media (min-width: 1024px) {
  .container { padding: 0 64px; }
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,5,5,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--tt), border-color var(--tt);
}
body.light-mode .site-header {
  background: rgba(245,242,234,0.85);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.2rem;
  border-radius: 50%;
}

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

/* Navigation */
.main-nav { display: none; }
@media (min-width: 768px) {
  .main-nav { display: block; }
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-menu a {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding: 4px 0;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.nav-menu a:hover::after,
.nav-menu a.current::after {
  width: 100%;
}

/* Theme Toggle */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-wrap {
  position: relative;
}

.theme-checkbox {
  opacity: 0;
  position: absolute;
  width: 0; height: 0;
}

.theme-toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50px; height: 26px;
  background: var(--bg-3);
  border-radius: 50px;
  padding: 0 6px;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
  transition: background var(--tt), border-color var(--tt);
}

.toggle-icon {
  font-size: 12px;
  line-height: 1;
  z-index: 2;
  transition: color 0.3s ease;
}

.toggle-icon.moon { color: var(--gold); }
.toggle-icon.sun { color: var(--text-muted); }

body.light-mode .toggle-icon.moon { color: var(--text-muted); }
body.light-mode .toggle-icon.sun { color: var(--gold); }

.toggle-ball {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background var(--tt);
  z-index: 1;
}

.theme-checkbox:checked + .theme-toggle-label .toggle-ball {
  transform: translateX(24px);
  background: var(--text);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 768px) {
  .mobile-toggle { display: none; }
}

/* Mobile Menu Open State */
body.menu-open .mobile-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}
body.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}
body.menu-open .mobile-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

body.menu-open .main-nav {
  display: block;
  position: fixed;
  top: 68px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 48px 24px;
  z-index: 999;
}

body.menu-open .nav-menu {
  flex-direction: column;
  gap: 24px;
}

body.menu-open .nav-menu a {
  font-size: 1.2rem;
  color: var(--text);
}

/* ── Theme Ripple ── */
#theme-ripple {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: scale(0);
  background: var(--gold);
  opacity: 0.15;
}

#theme-ripple.active {
  animation: rippleBurst 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes rippleBurst {
  to { transform: scale(4); opacity: 0; }
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
white-space: nowrap; /* ADDED: Strictly forces the text to stay on a single line */
}

.hero-title .line {
  display: block;
}

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

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 32px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
border-radius: 34px; /* ADD THIS: Fixes the "square lines" issue */
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn:hover {
  border-color: var(--gold);
  color: var(--bg);
}

.btn-primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
border-radius: 34px; /* ADD THIS: Fixes the "square lines" issue */
}

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

.btn-primary:hover {
  color: var(--black);
}

.btn-ghost {
  border-color: var(--border-strong);
}

.btn-large {
  padding: 18px 48px;
  font-size: 0.75rem;
}

/* ── Sections ── */
.section {
  padding: 120px 0;
  position: relative;
}

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 24px;
}

.section-header {
  margin-bottom: 80px;
  max-width: 700px;
}

/* ── Manifesto ── */
.manifesto {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 800px;
}

.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 32px;
}

.manifesto-body {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.8;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 32px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s ease;
}

.link-arrow:hover {
  gap: 16px;
}

.link-arrow .arrow {
  transition: transform 0.3s ease;
}

.link-arrow:hover .arrow {
  transform: translateX(4px);
}

/* ── Products Preview ── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  background: var(--bg);
  padding: 48px 32px;
  transition: background 0.4s ease;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  background: var(--bg-2);
}

.product-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-dim);
}

.section-cta {
  margin-top: 64px;
  text-align: center;
}

/* ── Team Preview ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  text-align: center;
}

.team-avatar {
  width: 160px;
  height: 230px;
  margin: 0 auto 20px;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 3px solid var(--black);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold);
  border-radius: 14px;
}

.team-name {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── CTA Band ── */
.cta-band {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-body {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 40px;
}

/* ── Page Hero ── */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--border);
}

.page-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 900px;
}

.page-title .accent {
  color: var(--gold);
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  margin-top: 24px;
  line-height: 1.7;
}

/* ── Page Content ── */
.page-content {
  padding: 80px 0 120px;
}

.content-body {
  max-width: 720px;
}

.content-body h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  margin: 48px 0 20px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* ── Story Section (About) ── */
.story {
  padding: 120px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 120px;
  }
}

.story-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Team Full (About) ── */
.team-full {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.team-grid--large {
  gap: 64px;
}

.team-card--large {
  text-align: left;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .team-grid--large {
    grid-template-columns: repeat(3, 1fr);
  }
  .team-card--large {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

.team-avatar--large {
  width: 160px;
  height: 230px;
  margin: 0 0 20px;
  border-radius: 16px;
  padding: 2.5px;
  background: linear-gradient(160deg, var(--gold-light), var(--gold-dim) 50%, var(--gold-light));
}

.team-avatar--large .avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border: 3px solid var(--black);
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--gold);
  border-radius: 14px;
}

.team-info {
  flex: 1;
}

.team-bio {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 12px;
}

/* ── Products List (Products Page) ── */
.products-list {
  padding: 80px 0 120px;
}

.product-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

@media (min-width: 768px) {
  .product-row {
    grid-template-columns: 80px 1fr;
    gap: 48px;
    padding: 64px 0;
  }
}

.product-row-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  padding-top: 8px;
}

.product-row-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.product-row-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 20px;
}

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

.product-features li {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 6px 12px;
  border: 1px solid var(--border);
}

/* ── Contact ── */
.contact-section {
  padding: 80px 0 120px;
}

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

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 120px;
  }
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 20px;
}

.contact-info-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-item-value {
  font-size: 1rem;
  color: var(--text);
  transition: color 0.3s ease;
}

.contact-item-value:hover {
  color: var(--gold);
}

/* Contact Form */
.contact-form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 48px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 14px 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235A5650' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.btn-submit {
  width: 100%;
}

.form-status {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  min-height: 20px;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ── Error Page ── */
.page-hero--error {
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 0;
}

.error-actions {
  margin-top: 40px;
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .footer-inner { padding: 0 48px; }
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 2fr;
    gap: 80px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

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

.footer-social a {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--gold);
  transform: translateY(-2px);
}

/* ── Scroll Reveal Animations ── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }
[data-reveal="delay-4"] { transition-delay: 0.4s; }

/* Stagger children */
[data-reveal-parent] > [data-reveal]:nth-child(1) { transition-delay: 0s; }
[data-reveal-parent] > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
[data-reveal-parent] > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
[data-reveal-parent] > [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
[data-reveal-parent] > [data-reveal]:nth-child(5) { transition-delay: 0.4s; }
[data-reveal-parent] > [data-reveal]:nth-child(6) { transition-delay: 0.5s; }

/* ── Selection ── */
::selection {
  background: var(--gold);
  color: var(--bg);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  height: 28px;
}
img.nav-logo-text { height: 28px !important; width: auto !important; }
.logo-light { display: none; }
body.light-mode .logo-dark { display: none; }
body.light-mode .logo-light { display: inline-block; }

/* ── Hero container ── */
.hero {
  position: relative;
  overflow: hidden;
}

/* ── BG layers ── */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%, rgba(201, 168, 76, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(120, 80, 180, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 5% 60%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.04) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Content sits above bg ── */
.hero-content {
  position: relative;
  z-index: 3;
}
.clause .highlight {
  color: var(--gold);
}

/* ── Blog ── */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
  border: 1px solid var(--border);
  transition: background 0.4s ease;
}
.blog-card:hover { background: var(--bg-2); }

.blog-card-thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.blog-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

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

.blog-card-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--gold); }

.blog-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.blog-card-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.blog-card-link .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.blog-card-link:hover .arrow { transform: translateX(4px); }

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.blog-pagination a,
.blog-pagination span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.3s ease;
}
.blog-pagination a:hover,
.blog-pagination .current {
  border-color: var(--gold);
  color: var(--gold);
}

.blog-empty {
  text-align: center;
  padding: 80px 0;
}

/* ── Team Page (Clickable Cards) ── */
.team-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 640px) {
  .team-page-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .team-page-grid { grid-template-columns: repeat(3, 1fr); }
}

.team-card--link {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: background 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
}
.team-card--link:hover {
  background: var(--bg-2);
  border-color: var(--border-strong);
}

.team-card--link .team-bio {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin-top: 12px;
}

.team-card-cta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s ease;
}
.team-card--link:hover .team-card-cta { gap: 12px; }
.team-card-cta .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.team-card--link:hover .team-card-cta .arrow { transform: translateX(4px); }

/* ── Team Member Profile ── */
.page-title--profile {
  font-size: clamp(2.5rem, 8vw, 5rem);
}

.team-profile-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

@media (min-width: 768px) {
  .profile-layout {
    grid-template-columns: 280px 1fr;
    gap: 80px;
  }
}

.profile-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease, border-color 0.3s ease;
}
.profile-link:hover {
  color: var(--gold);
  border-color: var(--border-strong);
}

.profile-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-dim);
}
.profile-content p { margin-bottom: 20px; }

/* ── Values Grid (About) ── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

.value-item {
  padding: 32px;
  border: 1px solid var(--border);
  transition: background 0.4s ease;
}
.value-item:hover { background: var(--bg-3); }

.value-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.value-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text);
  margin-bottom: 12px;
}

.value-desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ── Timeline (About) ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  align-items: baseline;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  line-height: 1;
}

.timeline-event {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ── Story Section (About) ── */
.story {
  padding: 120px 0;
}
/* ── Upgraded Profile Layout (Jochem Style) ── */
.profile-page-wrapper {
    background-image: 
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    padding-top: 140px;
    padding-bottom: 40px;
    min-height: 100vh;
}

.container--narrow {
    max-width: 680px;
    margin: 0 auto;
}

.profile-header-centered {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-header-centered .team-avatar {
    margin: 0 auto;
}

.profile-logo-mark {
    margin: 24px 0 16px;
}

.profile-name {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    line-height: 1;
}

.profile-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold);
    letter-spacing: 0.2em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.profile-subtagline {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.profile-bio-centered {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    text-align: left;
    margin-bottom: 48px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.profile-bio-centered p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-dim);
    margin-bottom: 16px;
}

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

/* ── Interactive Link Cards ── */
.profile-link-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.link-card:hover {
    border-color: var(--gold);
    background: var(--bg-3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.05);
}

.link-card-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.link-card-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: var(--bg);
}

.link-card-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.link-card-title {
font-family: 'Orbitron', sans-serif;    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    color: var(--text);
    text-transform: uppercase;
    line-height: 1;
}

.link-card-subtitle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.link-card-right {
    color: var(--text-muted);
    font-size: 1.5rem;
    padding-right: 8px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.link-card:hover .link-card-right {
    color: var(--gold);
    transform: translateX(4px);
}
.logo-light { display: none; }
body.light-mode .logo-dark { display: none; }
body.light-mode .logo-light { display: inline-block; }

.hero-title-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-title-logo img {
  height: clamp(2rem, 10vw, 6rem);
  width: auto;
  object-fit: contain;
}

/* Navigation */
.main-nav { display: none; }
@media (min-width: 768px) {
  .main-nav { display: block; }








/* ================================================================
   GUILDERA AI — MOBILE DRAWER MENU (BULLETPROOF)
   Place at VERY END of main.css. Uses high specificity + !important.
   ================================================================ */

/* ──────────────────────────────────────────────────────────────
   ROOT LEVEL: Default states (mobile-first)
   ────────────────────────────────────────────────────────────── */

/* Mobile toggle: visible by default (mobile), hidden on desktop */
.mobile-toggle {
  width: 40px;
  height: 40px;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.3s ease;
}

.mobile-toggle:hover {
  border-color: var(--gold);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger to X animation */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Drawer: hidden by default */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg) !important;
  z-index: 9999 !important;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
  transform: translateX(0);
}

/* Overlay: hidden by default */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
              visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.light-mode .mobile-drawer-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

/* ──────────────────────────────────────────────────────────────
   DESKTOP (>767px): Hide mobile elements, show desktop
   ────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .mobile-drawer,
  .mobile-drawer-overlay {
    display: none !important;
  }

  .mobile-toggle {
    display: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   MOBILE (≤767px): Hide desktop header elements
   ────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  /* Hide Launch DEX in header */
  .header-actions > a.btn,
  .header-actions > a[href*="dex"],
  .header-actions > a.btn-ghost {
    display: none !important;
  }

  /* Hide theme toggle in header */
  .header-actions > .theme-toggle-wrap,
  .header-actions > .header-theme-toggle {
    display: none !important;
  }

  /* Ensure hamburger is visible */
  .header-actions > .mobile-toggle,
  .mobile-toggle {
    display: flex !important;
  }

  /* Hide desktop nav */
  .main-nav {
    display: none !important;
  }
}

/* ── Drawer Header ── */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--bg);
}

.drawer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.drawer-logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.drawer-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--text);
  font-weight: 700;
}

/* ── Drawer Close Button ── */
.drawer-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  flex-shrink: 0;
}

.drawer-close:hover,
.drawer-close:focus {
  border-color: var(--gold);
  color: var(--gold);
  transform: rotate(90deg);
}

.drawer-close svg {
  width: 20px;
  height: 20px;
}

/* ── Drawer Navigation ── */
.drawer-nav {
  flex: 1;
  padding: 24px;
}

.drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-menu a {
  display: block;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s ease, padding-left 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  text-decoration: none;
}

.drawer-menu a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-menu a:hover,
.drawer-menu a:focus {
  color: var(--gold);
  padding-left: 20px;
}

.drawer-menu a:hover::before,
.drawer-menu a:focus::before {
  width: 12px;
}

.drawer-menu .current-menu-item a,
.drawer-menu .current_page_item a {
  color: var(--gold);
  padding-left: 20px;
}

.drawer-menu .current-menu-item a::before,
.drawer-menu .current_page_item a::before {
  width: 12px;
}

/* ── Drawer Footer ── */
.drawer-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
  background: var(--bg);
}

.btn-drawer {
  width: 100%;
  text-align: center;
  padding: 16px 32px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-weight: 500;
  border-radius: 34px;
}

.drawer-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
}

.drawer-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.drawer-toggle-wrap .theme-toggle-label {
  width: 52px;
  height: 28px;
}

.drawer-toggle-wrap .toggle-ball {
  width: 22px;
  height: 22px;
}

.drawer-toggle-wrap .theme-checkbox:checked + .theme-toggle-label .toggle-ball {
  transform: translateX(24px);
}

/* ── Focus styles ── */
.mobile-toggle:focus-visible,
.drawer-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.drawer-menu a:focus-visible {
  outline: none;
  color: var(--gold);
  padding-left: 20px;
}

/* ── Staggered entrance animations ── */
.drawer-menu li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-drawer.active .drawer-menu li:nth-child(1) { transition-delay: 0.08s; opacity: 1; transform: translateX(0); }
.mobile-drawer.active .drawer-menu li:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateX(0); }
.mobile-drawer.active .drawer-menu li:nth-child(3) { transition-delay: 0.16s; opacity: 1; transform: translateX(0); }
.mobile-drawer.active .drawer-menu li:nth-child(4) { transition-delay: 0.20s; opacity: 1; transform: translateX(0); }
.mobile-drawer.active .drawer-menu li:nth-child(5) { transition-delay: 0.24s; opacity: 1; transform: translateX(0); }
.mobile-drawer.active .drawer-menu li:nth-child(6) { transition-delay: 0.28s; opacity: 1; transform: translateX(0); }
.mobile-drawer.active .drawer-menu li:nth-child(7) { transition-delay: 0.32s; opacity: 1; transform: translateX(0); }

.drawer-footer {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease 0.25s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.mobile-drawer.active .drawer-footer {
  opacity: 1;
  transform: translateY(0);
}

/* ── Header shift when drawer opens ── */
.site-header {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body.drawer-open .site-header {
  transform: translateX(-15px);
}

@media (min-width: 768px) {
  body.drawer-open .site-header {
    transform: none;
  }
}
