/* =============================================================================
 * landing.css — louisbecker.dev landing + /now pages
 *
 * Scope: every rule in this file targets either `.lb-landing` (a wrapper class
 * on the landing/now page body) or a descendant of it. This keeps the file
 * from leaking into the Quarto-themed blog/notes/about/CV pages.
 *
 * Token system: every visual decision is a CSS custom property, structured so
 * extraction into the future `lb-tokens` package is mechanical.
 *
 * Source of truth for the design language: landing-prototypes/landing-v2.2-full.html
 * + landing-prototypes/now.html (in the Web Ecosystem folder).
 * ============================================================================= */

/* ---------------------------------------------------------------------------
 * Tokens — mode-stable
 * --------------------------------------------------------------------------- */

.lb-landing {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --motion-fast: 0.2s;
  --motion-base: 0.4s;
  --motion-slow: 0.8s;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* ---------------------------------------------------------------------------
 * Tokens — dark mode (default)
 * --------------------------------------------------------------------------- */

html[data-bs-theme="dark"] .lb-landing,
html:not([data-bs-theme]) .lb-landing {
  --color-bg:            #050507;
  --color-surface:       #0c0c10;
  --color-surface-hover: #131319;
  --color-text-primary:  #f5f5f7;
  --color-text-secondary:#8b8b94;
  --color-text-muted:    #5a5a62;
  --color-accent:        #8b85ff;
  --color-accent-hover:  #9d97ff;
  --color-accent-soft:   rgba(139, 133, 255, 0.15);
  --color-accent-border: rgba(139, 133, 255, 0.25);
  --color-success:       #2dd4bf;
  --color-success-soft:  rgba(45, 212, 191, 0.15);
  --color-grid:          rgba(255, 255, 255, 0.035);
  --color-border:        rgba(255, 255, 255, 0.08);
  --color-border-hover:  rgba(255, 255, 255, 0.16);

  --svg-circle-stroke:   rgba(139, 133, 255, 0.25);
  --svg-circle-fill:     rgba(139, 133, 255, 0.06);
  --svg-hex-stroke:      rgba(45, 212, 191, 0.3);
  --svg-line-stroke:     rgba(255, 255, 255, 0.08);
  --svg-dot-fill:        rgba(139, 133, 255, 0.6);
  --svg-dot-soft-fill:   rgba(45, 212, 191, 0.4);
  --svg-cross-1:         rgba(139, 133, 255, 0.5);
  --svg-cross-2:         rgba(45, 212, 191, 0.5);
  --svg-cross-3:         rgba(255, 255, 255, 0.3);
  --svg-vignette:        #050507;

  --photo-border:        rgba(255, 255, 255, 0.12);
  --photo-glow:          rgba(139, 133, 255, 0.18);
}

/* ---------------------------------------------------------------------------
 * Tokens — light mode
 * --------------------------------------------------------------------------- */

html[data-bs-theme="light"] .lb-landing {
  --color-bg:            #fafafa;
  --color-surface:       #ffffff;
  --color-surface-hover: #f3f3f5;
  --color-text-primary:  #0c0c10;
  --color-text-secondary:#5a5a62;
  --color-text-muted:    #8b8b94;
  --color-accent:        #6b66cc;
  --color-accent-hover:  #5953b8;
  --color-accent-soft:   rgba(107, 102, 204, 0.10);
  --color-accent-border: rgba(107, 102, 204, 0.20);
  --color-success:       #0d8a76;
  --color-success-soft:  rgba(13, 138, 118, 0.10);
  --color-grid:          rgba(0, 0, 0, 0.04);
  --color-border:        rgba(0, 0, 0, 0.08);
  --color-border-hover:  rgba(0, 0, 0, 0.16);

  --svg-circle-stroke:   rgba(107, 102, 204, 0.30);
  --svg-circle-fill:     rgba(107, 102, 204, 0.05);
  --svg-hex-stroke:      rgba(13, 138, 118, 0.35);
  --svg-line-stroke:     rgba(0, 0, 0, 0.10);
  --svg-dot-fill:        rgba(107, 102, 204, 0.7);
  --svg-dot-soft-fill:   rgba(13, 138, 118, 0.5);
  --svg-cross-1:         rgba(107, 102, 204, 0.6);
  --svg-cross-2:         rgba(13, 138, 118, 0.6);
  --svg-cross-3:         rgba(0, 0, 0, 0.3);
  --svg-vignette:        #fafafa;

  --photo-border:        rgba(0, 0, 0, 0.10);
  --photo-glow:          rgba(107, 102, 204, 0.12);
}

/* ---------------------------------------------------------------------------
 * Smooth scroll — unscoped (harmless on Quarto pages, required on the landing
 * for the in-page anchor links to glide rather than jump).
 * --------------------------------------------------------------------------- */

html { scroll-behavior: smooth; }

/* ---------------------------------------------------------------------------
 * Page reset + base — scoped to .lb-landing
 * --------------------------------------------------------------------------- */

body.lb-landing {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background var(--motion-base) ease, color var(--motion-base) ease;
  margin: 0;
  padding: 0;
}

.lb-landing * { box-sizing: border-box; }
.lb-landing a { color: inherit; text-decoration: none; }
.lb-landing button { font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------------------
 * Background layers
 * --------------------------------------------------------------------------- */

.lb-landing .bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 60px 60px;
}

.lb-landing .geo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.lb-landing .geo-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.lb-landing .geo-circle        { fill: none; stroke: var(--svg-circle-stroke); stroke-width: 1; }
.lb-landing .geo-circle-filled { fill: var(--svg-circle-fill); stroke: var(--svg-circle-stroke); stroke-width: 1; }
.lb-landing .geo-hex           { fill: none; stroke: var(--svg-hex-stroke); stroke-width: 1; }
.lb-landing .geo-line          { stroke: var(--svg-line-stroke); stroke-width: 1; stroke-dasharray: 4 6; }
.lb-landing .geo-dot           { fill: var(--svg-dot-fill); }
.lb-landing .geo-dot-soft      { fill: var(--svg-dot-soft-fill); }
.lb-landing .geo-cross-1       { stroke: var(--svg-cross-1); }
.lb-landing .geo-cross-2       { stroke: var(--svg-cross-2); }
.lb-landing .geo-cross-3       { stroke: var(--svg-cross-3); }
.lb-landing .geo-vignette-stop { stop-color: var(--svg-vignette); }

.lb-landing .rot-slow { animation: lb-rot 60s linear infinite; transform-origin: center; transform-box: fill-box; }
.lb-landing .rot-rev  { animation: lb-rot 80s linear infinite reverse; transform-origin: center; transform-box: fill-box; }
.lb-landing .pulse-1  { animation: lb-pulse-scale 8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.lb-landing .pulse-3  { animation: lb-pulse-opacity 6s ease-in-out infinite; }
.lb-landing .pulse-4  { animation: lb-pulse-opacity 9s ease-in-out infinite 1.5s; }
.lb-landing .drift-1  { animation: lb-drift-x 30s ease-in-out infinite alternate; }
.lb-landing .drift-2  { animation: lb-drift-y 25s ease-in-out infinite alternate; }

@keyframes lb-rot { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes lb-pulse-scale { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes lb-pulse-opacity { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes lb-drift-x { 0% { transform: translateX(0); } 100% { transform: translateX(40px); } }
@keyframes lb-drift-y { 0% { transform: translateY(0); } 100% { transform: translateY(-30px); } }

/* ---------------------------------------------------------------------------
 * Page container
 * --------------------------------------------------------------------------- */

.lb-landing .page {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .lb-landing .page { padding: 0 48px; }
}

/* Narrower container for /now */
.lb-landing.is-now .page { max-width: 760px; }

/* ---------------------------------------------------------------------------
 * Nav
 * --------------------------------------------------------------------------- */

.lb-landing nav.top-nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  gap: 12px;
}
@media (min-width: 768px) {
  .lb-landing nav.top-nav { padding: 28px 0; }
}

.lb-landing .lb-mark {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  flex-shrink: 0;
}
.lb-landing .lb-mark::before {
  content: '◆';
  color: var(--color-accent);
  margin-right: 8px;
}

.lb-landing .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lb-landing .nav-links {
  display: flex;
  gap: 20px;
}
@media (min-width: 768px) {
  .lb-landing .nav-links { gap: 28px; }
}

.lb-landing .nav-links a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--motion-fast) ease;
  padding: 6px 0;
}
.lb-landing .nav-links a:hover { color: var(--color-text-primary); }

.lb-landing .nav-links a.current {
  color: var(--color-text-primary);
  position: relative;
}
.lb-landing .nav-links a.current::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-accent);
}

@media (max-width: 479px) {
  .lb-landing .nav-links a.nav-secondary { display: none; }
}

.lb-landing .theme-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  margin-left: 8px;
  transition: all var(--motion-fast) ease;
}
.lb-landing .theme-toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-border-hover);
  color: var(--color-text-primary);
}
.lb-landing .theme-toggle svg { width: 16px; height: 16px; }

html[data-bs-theme="dark"]  .lb-landing .theme-toggle .icon-sun  { display: block; }
html[data-bs-theme="dark"]  .lb-landing .theme-toggle .icon-moon { display: none; }
html:not([data-bs-theme])   .lb-landing .theme-toggle .icon-sun  { display: block; }
html:not([data-bs-theme])   .lb-landing .theme-toggle .icon-moon { display: none; }
html[data-bs-theme="light"] .lb-landing .theme-toggle .icon-sun  { display: none; }
html[data-bs-theme="light"] .lb-landing .theme-toggle .icon-moon { display: block; }

/* ---------------------------------------------------------------------------
 * Hero
 * --------------------------------------------------------------------------- */

.lb-landing .hero-wrap {
  position: relative;
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
}

.lb-landing .hero {
  flex: 1;
  display: flex;
  align-items: center;
  max-width: 720px;
  padding: 48px 0;
  animation: lb-fade-up 1s var(--ease-out) 0.2s both;
}
@media (min-width: 768px) {
  .lb-landing .hero { padding: 80px 0; }
}

@keyframes lb-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.lb-landing .eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.lb-landing .eyebrow::before { content: '— '; color: var(--color-text-muted); }

.lb-landing h1.lb-h1 {
  font-size: clamp(40px, 9vw, 96px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  color: var(--color-text-primary);
}

.lb-landing .tagline {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 36px;
  max-width: 520px;
}
@media (min-width: 768px) {
  .lb-landing .tagline { margin-bottom: 48px; }
}

.lb-landing .cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lb-landing .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--motion-fast) ease;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-primary);
  min-height: 44px;
}
.lb-landing .cta:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}
.lb-landing .cta-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.lb-landing .cta-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.lb-landing .cta .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}
.lb-landing .arrow { transition: transform var(--motion-fast) ease; display: inline-block; }
.lb-landing .cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 479px) {
  .lb-landing .cta-row { flex-direction: column; align-items: stretch; }
}

/* ---------------------------------------------------------------------------
 * Scroll cue
 * --------------------------------------------------------------------------- */

.lb-landing .scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  animation: lb-pulse-cue 2.5s ease-in-out infinite;
}
@media (min-width: 768px) {
  .lb-landing .scroll-cue { padding-bottom: 32px; }
}
@keyframes lb-pulse-cue { 0%,100% { opacity: 0.4; } 50% { opacity: 1; } }
.lb-landing .scroll-cue svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------------------
 * Section structure
 * --------------------------------------------------------------------------- */

.lb-landing section.scroll-section {
  position: relative;
  padding: 80px 0;
  border-top: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .lb-landing section.scroll-section { padding: 120px 0; }
}

.lb-landing .section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lb-landing h2.section-heading {
  font-size: clamp(28px, 5.5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  max-width: 720px;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .lb-landing h2.section-heading { margin-bottom: 48px; }
}

.lb-landing .section-body {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 640px;
}

.lb-landing .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.lb-landing .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.lb-landing .reveal:nth-child(2) { transition-delay: 0.08s; }
.lb-landing .reveal:nth-child(3) { transition-delay: 0.16s; }
.lb-landing .reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------------------------------------------------------------------------
 * About — with photo
 * --------------------------------------------------------------------------- */

.lb-landing .about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 768px) {
  .lb-landing .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 48px;
  }
}

.lb-landing .about-photo {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--photo-border);
  box-shadow: 0 0 0 1px var(--photo-border), 0 20px 60px -20px var(--photo-glow);
  justify-self: start;
}
@media (min-width: 768px) {
  .lb-landing .about-photo { max-width: 100%; }
}
.lb-landing .about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lb-landing .about-body p { margin-bottom: 1.2em; }
.lb-landing .about-body p:last-child { margin-bottom: 0; }
.lb-landing .about-body strong { color: var(--color-text-primary); font-weight: 500; }

/* ---------------------------------------------------------------------------
 * Recent writing grid
 * --------------------------------------------------------------------------- */

.lb-landing .post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .lb-landing .post-grid { grid-template-columns: repeat(2, 1fr); }
}

.lb-landing .post-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--motion-fast) ease;
  display: flex;
  flex-direction: column;
  min-height: 180px;
}
@media (min-width: 768px) {
  .lb-landing .post-card { padding: 24px; }
}
.lb-landing .post-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent-border);
  transform: translateY(-2px);
}

.lb-landing .post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
}

.lb-landing .post-title {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .lb-landing .post-title { font-size: 18px; }
}

.lb-landing .post-excerpt {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  flex: 1;
}

.lb-landing .post-link {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-landing .post-card:hover .post-link .arrow { transform: translateX(3px); }

.lb-landing .view-all {
  font-size: 14px;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  transition: color var(--motion-fast) ease;
}
.lb-landing .view-all:hover { color: var(--color-text-primary); }
.lb-landing .view-all:hover .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
 * What I'm building grid
 * --------------------------------------------------------------------------- */

.lb-landing .build-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .lb-landing .build-grid { grid-template-columns: repeat(2, 1fr); }
}

.lb-landing .build-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  padding-top: 56px;
  transition: all var(--motion-fast) ease;
  display: flex;
  flex-direction: column;
  min-height: 200px;
  position: relative;
}
@media (min-width: 768px) {
  .lb-landing .build-card { padding: 24px; padding-top: 60px; }
}
.lb-landing .build-card:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent-border);
  transform: translateY(-2px);
}
.lb-landing .build-card.is-placeholder { opacity: 0.75; }
.lb-landing .build-card.is-placeholder:hover {
  transform: none;
  border-color: var(--color-border);
  background: var(--color-surface);
}

.lb-landing .status-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .lb-landing .status-badge { top: 24px; right: 24px; }
}
.lb-landing .badge-live     { color: var(--color-success); background: var(--color-success-soft); }
.lb-landing .badge-progress { color: var(--color-accent);  background: var(--color-accent-soft); }
.lb-landing .badge-planned  { color: var(--color-text-muted); background: var(--color-border); }

.lb-landing .build-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .lb-landing .build-title { font-size: 18px; }
}

.lb-landing .build-desc {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  flex: 1;
}

.lb-landing .build-link {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lb-landing .build-link.is-disabled {
  color: var(--color-text-muted);
  cursor: default;
}
.lb-landing .build-card:hover .build-link:not(.is-disabled) .arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------------------
 * Footer
 * --------------------------------------------------------------------------- */

.lb-landing footer.lb-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
  margin-top: 64px;
  position: relative;
  z-index: 10;
}
@media (min-width: 768px) {
  .lb-landing footer.lb-footer { padding: 64px 0 48px; margin-top: 80px; }
}

.lb-landing .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
@media (min-width: 640px) {
  .lb-landing .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .lb-landing .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .lb-landing .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }
  .lb-landing .footer-brand { grid-column: auto; }
}

.lb-landing .footer-brand .lb-mark {
  font-size: 16px;
  margin-bottom: 16px;
  display: inline-block;
}
.lb-landing .footer-blurb {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 360px;
}

.lb-landing .footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lb-landing .footer-col ul { list-style: none; padding: 0; margin: 0; }
.lb-landing .footer-col li { margin-bottom: 10px; }
.lb-landing .footer-col a {
  font-size: 14px;
  color: var(--color-text-secondary);
  transition: color var(--motion-fast) ease;
  display: inline-block;
  padding: 2px 0;
}
.lb-landing .footer-col a:hover { color: var(--color-text-primary); }

.lb-landing .footer-base {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
}
@media (min-width: 640px) {
  .lb-landing .footer-base {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------------------------------------------------------------------------
 * Mobile-only — simplify the geometric SVG
 * --------------------------------------------------------------------------- */

@media (max-width: 639px) {
  .lb-landing .geo-bg .geo-mobile-hide { display: none; }
}

/* ---------------------------------------------------------------------------
 * /now-specific overrides
 * --------------------------------------------------------------------------- */

.lb-landing .now-header {
  padding: 48px 0 32px;
  animation: lb-fade-up 0.8s var(--ease-out) 0.1s both;
}
@media (min-width: 768px) {
  .lb-landing .now-header { padding: 80px 0 48px; }
}

.lb-landing .now-header h1 {
  font-size: clamp(36px, 7vw, 64px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.lb-landing .header-blurb {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 12px;
}

.lb-landing .header-blurb a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-border);
  transition: border-color var(--motion-fast) ease;
}
.lb-landing .header-blurb a:hover { border-color: var(--color-accent); }

.lb-landing .last-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lb-landing .last-updated::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-success-soft);
}

.lb-landing .now-section {
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
  animation: lb-fade-up 0.8s var(--ease-out) both;
}
.lb-landing .now-section:nth-of-type(1) { animation-delay: 0.2s; }
.lb-landing .now-section:nth-of-type(2) { animation-delay: 0.3s; }
.lb-landing .now-section:nth-of-type(3) { animation-delay: 0.4s; }
.lb-landing .now-section:nth-of-type(4) { animation-delay: 0.5s; }
.lb-landing .now-section:nth-of-type(5) { animation-delay: 0.6s; }

@media (min-width: 768px) {
  .lb-landing .now-section { padding: 40px 0; }
}

.lb-landing .now-section h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lb-landing .now-section h3 {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--color-text-primary);
}

.lb-landing .now-section p {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}
.lb-landing .now-section p:last-child { margin-bottom: 0; }
.lb-landing .now-section strong { color: var(--color-text-primary); font-weight: 500; }
.lb-landing .now-section a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-border);
  transition: border-color var(--motion-fast) ease;
}
.lb-landing .now-section a:hover { border-color: var(--color-accent); }

.lb-landing .now-list { list-style: none; margin-top: 8px; padding: 0; }
.lb-landing .now-list li {
  padding: 10px 0;
  font-size: 16px;
  color: var(--color-text-secondary);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.lb-landing .now-list li::before {
  content: '·';
  color: var(--color-accent);
  font-weight: 500;
  flex-shrink: 0;
}
.lb-landing .now-list strong { color: var(--color-text-primary); }
.lb-landing .now-list .author {
  color: var(--color-text-muted);
  font-size: 14px;
}

.lb-landing .now-meta {
  margin-top: 48px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  animation: lb-fade-up 0.8s var(--ease-out) 0.7s both;
}
.lb-landing .now-meta strong { color: var(--color-text-primary); }
.lb-landing .now-meta a {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent-border);
}

.lb-landing footer.lb-footer-minimal {
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (min-width: 768px) {
  .lb-landing footer.lb-footer-minimal { margin-top: 80px; }
}
.lb-landing footer.lb-footer-minimal a {
  color: var(--color-text-secondary);
  transition: color var(--motion-fast) ease;
}
.lb-landing footer.lb-footer-minimal a:hover { color: var(--color-text-primary); }

/* ---------------------------------------------------------------------------
 * Hide Quarto's chrome on landing/now pages — safety net.
 *
 * The primary hide rules live INLINE in each landing page's
 * `include-in-header` so they apply before any paint. These body-class-scoped
 * rules are a redundant backup that catches anything that slipped through.
 *
 * If you find a Quarto element peeking through on a landing page, add its
 * selector to BOTH places: the inline style block in the .qmd file AND here.
 * --------------------------------------------------------------------------- */

body.lb-landing > nav.navbar,
body.lb-landing > header,
body.lb-landing > header.quarto-banner-navbar,
body.lb-landing #quarto-header,
body.lb-landing .navbar-container,
body.lb-landing nav.navbar,
body.lb-landing .quarto-title-block,
body.lb-landing header#title-block-header,
body.lb-landing h1.title,
body.lb-landing #title-block-header,
body.lb-landing .nav-footer,
body.lb-landing footer.footer,
body.lb-landing #quarto-back-to-top,
body.lb-landing .quarto-secondary-nav,
body.lb-landing .quarto-title-banner,
body.lb-landing #quarto-margin-sidebar,
body.lb-landing #quarto-sidebar,
body.lb-landing .toc-active,
body.lb-landing #TOC,
body.lb-landing .page-columns {
  display: none !important;
}

/* Reset Quarto's main content container so the custom landing has full control */
body.lb-landing #quarto-document-content,
body.lb-landing main.content,
body.lb-landing #quarto-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  grid-template-columns: none !important;
}

/* ---------------------------------------------------------------------------
 * Reduced motion
 * --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lb-landing *, .lb-landing *::before, .lb-landing *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .lb-landing .reveal { opacity: 1; transform: none; }
}
