:root {
  --paper: #f4f0e8;
  --paper-2: #ece6da;
  --surface: #fffdf8;
  --surface-2: #e9e3d6;
  --ink: #111111;
  --ink-2: #3d3a34;
  --ink-3: #5f5b52;
  --shadow-color: #111111;

  --sage: #5ce1a3;
  --mint: #5ce1a3;
  --amber: #ffd84d;
  --yellow: #ffd84d;
  --terracotta: #ff7a6b;
  --coral: #ff6b5e;
  --lavender: #b8a7ff;
  --acid: #b8f34a;
  --blue: #4d6fff;

  --bw: 2px;
  --r-sm: 4px;
  --r: 6px;
  --r-lg: 12px;

  --sh-sm: 2px 2px 0 var(--shadow-color);
  --sh: 4px 4px 0 var(--shadow-color);
  --sh-lg: 6px 6px 0 var(--shadow-color);
  --sh-xl: 8px 8px 0 var(--shadow-color);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 90ms;
  --dur: 150ms;
  --dur-slow: 220ms;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html[data-theme="dark"] {
  --paper: #101010;
  --paper-2: #171717;
  --surface: #181818;
  --surface-2: #242424;
  --ink: #f5f2ea;
  --ink-2: #d4cfc4;
  --ink-3: #a9a397;
  --shadow-color: #f5f2ea;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--sage);
  color: #111111;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

code, kbd, pre {
  font-family: var(--font-mono);
}

kbd {
  display: inline-block;
  min-width: 22px;
  padding: 1px 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: 1.5px 1.5px 0 var(--shadow-color);
}

code {
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-size: 0.88em;
  font-weight: 700;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 300;
  padding: 8px 14px;
  background: var(--sage);
  color: #111111;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  font-weight: 800;
  box-shadow: var(--sh-sm);
  transition: top var(--dur-fast) var(--ease);
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) {
  .container {
    padding-inline: 36px;
  }
}

/* ─── Tactile Press & Highlight Marks ─── */
.press {
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}
.press:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--sh-lg);
}
.press:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow-color);
}

.mark {
  display: inline-block;
  padding: 0.05em 0.24em 0.1em;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--sh);
  color: #111111;
  line-height: 0.96;
  transform: rotate(-1.5deg);
}
.mark-sage,
.mark-mint { background: var(--sage); }
.mark-amber,
.mark-yellow { background: var(--amber); }
.mark-terracotta,
.mark-coral { background: var(--terracotta); }
.mark-lavender { background: var(--lavender); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 800;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}
.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}
.btn-md {
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  height: 46px;
  padding: 0 18px;
  font-size: 15px;
}
.btn-primary,
.btn-sage {
  background: var(--sage);
  color: #111111;
}
.btn-yellow {
  background: var(--yellow);
  color: #111111;
}
.btn-surface {
  background: var(--surface);
  color: var(--ink);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-sm);
  cursor: pointer;
}
.icon-btn svg {
  width: 16px;
  height: 16px;
}
html[data-theme="light"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: none; }

/* ─── Top Navigation ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: var(--bw) solid var(--ink);
}
.topbar-inner {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-icon-wrap {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  background: var(--sage);
  box-shadow: var(--sh-sm);
}
.brand-name {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.04em;
}
.badge-mono {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--paper-2);
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-link {
  font-size: 13.5px;
  font-weight: 800;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  transition: background-color var(--dur-fast) var(--ease);
}
.nav-link:hover {
  background: var(--paper-2);
}

/* ─── Hero Section ─── */
.hero-section {
  padding-top: 28px;
  padding-bottom: 48px;
}
@media (min-width: 960px) {
  .hero-section {
    padding-top: 38px;
    padding-bottom: 64px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 40px;
  }
}

.eyebrow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.status-pill,
.pill-sage,
.pill-yellow,
.pill-mint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
}
.status-pill {
  background: var(--surface);
}
.pill-sage,
.pill-mint {
  background: var(--sage);
  color: #111111;
  box-shadow: var(--sh-sm);
}
.pill-yellow {
  background: var(--yellow);
  color: #111111;
  box-shadow: var(--sh-sm);
}

.dot-live {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sage);
  border: 1.5px solid #111111;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

/* Snappy Kinetic Hero Headline (instant paint, crisp 180ms rise) */
.hero-title {
  margin-top: 16px;
  font-size: clamp(2.45rem, 5.5vw, 4.55rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.line-clip {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.line-inner {
  display: block;
  animation: line-rise 220ms var(--ease) both;
  animation-delay: var(--d, 0ms);
}
.serif-italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: -0.025em;
  color: var(--sage);
}
html[data-theme="light"] .serif-italic {
  color: #1f513b;
}

@keyframes line-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-line-morph {
  padding-top: 8px;
  padding-bottom: 12px;
  overflow: visible;
}

.morph-slot {
  display: inline-grid;
  align-items: center;
  position: relative;
  font-size: 0.66em;
  letter-spacing: -0.035em;
}
.morph-word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(14px) rotate(-2.5deg) scale(0.97);
  pointer-events: none;
  transition: opacity 200ms var(--ease), transform 220ms var(--ease);
  white-space: nowrap;
}
.morph-word.is-active {
  opacity: 1;
  transform: translateY(0) rotate(-1.5deg) scale(1);
  pointer-events: auto;
}
.morph-word.is-leaving {
  opacity: 0;
  transform: translateY(-14px) rotate(1deg) scale(0.97);
}

.hero-sub {
  margin-top: 16px;
  max-width: 560px;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 500;
}
.hero-sub strong {
  color: var(--ink);
  font-weight: 800;
}

.hero-cta-row {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.install-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}

.hero-stats {
  margin-top: 22px;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: var(--bw) solid var(--ink);
}
.stat-cell {
  padding: 10px 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.stat-cell + .stat-cell {
  border-left: var(--bw) solid var(--ink);
  padding-left: 16px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.8vw, 2.15rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ─── Hero Right: Clean Cozy Sage/Surface Habitat Card ─── */
.habitat-card {
  background: var(--surface);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.habitat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: color-mix(in srgb, var(--sage) 24%, var(--surface));
  border-bottom: var(--bw) solid var(--ink);
}
.habitat-tag,
.habitat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: var(--sh-sm);
}

.habitat-stage {
  margin: 18px 18px 0;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
@media (min-width: 520px) {
  .habitat-stage {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }
}

.creature-stage-btn {
  position: relative;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--sage) 16%, var(--surface));
  width: 112px;
  height: 112px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: transform 140ms var(--ease);
}
.creature-stage-btn:hover {
  transform: translateY(-2px) rotate(-2deg);
}
.creature-stage-btn:active {
  transform: scale(0.95);
}
.creature-stage-btn.is-poked .creature-sprite {
  animation: creature-pop 280ms var(--ease);
}
@keyframes creature-pop {
  0% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.14) rotate(-6deg); }
  70% { transform: scale(0.95) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.creature-sprite {
  width: 86px;
  height: 86px;
  object-fit: contain;
  animation: float-slow 3.6s ease-in-out infinite;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

.poke-hint {
  position: absolute;
  bottom: -10px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 999px;
}

.speech-bubble {
  flex: 1;
  min-width: 0;
}
.speech-mood-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  background: var(--sage);
  color: #111111;
  border: 1.5px solid #111111;
  border-radius: var(--r-sm);
  padding: 2px 7px;
  margin-bottom: 8px;
}
.speech-text {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.42;
  color: var(--ink);
  min-height: 58px;
}
.speech-word {
  display: inline-block;
  animation: word-in 150ms var(--ease) both;
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.habitat-controls {
  padding: 16px 18px 14px;
}
.controls-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}

.moment-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.moment-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: transform 90ms var(--ease), background-color 90ms var(--ease);
}
.moment-btn:hover {
  transform: translate(-1px, -1px);
  background: var(--paper-2);
}
.moment-btn.is-active {
  background: var(--sage);
  color: #111111;
}

.habitat-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-top: var(--bw) solid var(--ink);
  background: var(--paper-2);
}
.local-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

/* ─── Kinetic Editorial Ticker ─── */
.ticker-wrap {
  border-block: var(--bw) solid var(--ink);
  background: var(--surface);
  overflow: hidden;
  padding-block: 11px;
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-wrap:hover .ticker-track {
  animation-play-state: paused;
}
.ticker-track .sep {
  color: var(--sage);
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── Sections ─── */
.section-block {
  padding-block: 56px;
}
@media (min-width: 768px) {
  .section-block {
    padding-block: 76px;
  }
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.9rem, 4.2vw, 3.2rem);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
.section-title-sm {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.section-lead {
  margin-top: 12px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
}

/* Snappy Split-Word & Card Reveals (zero sluggishness) */
.word-clip {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: 0.06em;
}
.word-inner {
  display: inline-block;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 200ms var(--ease), opacity 180ms var(--ease);
  transition-delay: var(--wd, 0ms);
}
.split-reveal.is-visible .word-inner {
  transform: translateY(0);
  opacity: 1;
}

.anim-rise {
  animation: rise-in 200ms var(--ease) both;
  animation-delay: min(var(--delay, 0ms), 120ms);
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-card {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  transition-delay: min(var(--delay, 0ms), 80ms);
}
.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Thesis Cards ─── */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 820px) {
  .thesis-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 24px;
  background: var(--surface);
  color: var(--ink);
}
.card-coral { background: color-mix(in srgb, var(--coral) 18%, var(--surface)); }
.card-mint { background: color-mix(in srgb, var(--mint) 18%, var(--surface)); }
.card-lavender { background: color-mix(in srgb, var(--lavender) 18%, var(--surface)); }

.card-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.card h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ─── Feature Bento Grid ─── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 680px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento-card {
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 120ms var(--ease), box-shadow 120ms var(--ease);
}
.bento-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--sh-lg);
}
.bento-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bento-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  padding: 3px 8px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--paper-2);
}
.bento-card[data-accent="yellow"] .bento-num { background: var(--yellow); color: #111; }
.bento-card[data-accent="coral"] .bento-num { background: var(--coral); color: #111; }
.bento-card[data-accent="mint"] .bento-num { background: var(--mint); color: #111; }
.bento-card[data-accent="lavender"] .bento-num { background: var(--lavender); color: #111; }
.bento-card[data-accent="acid"] .bento-num { background: var(--acid); color: #111; }
.bento-card[data-accent="blue"] .bento-num { background: var(--blue); color: #fff; }

.bento-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.bento-card h3 {
  font-size: 18.5px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.bento-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ─── Moods Gallery ─── */
.moods-panel {
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 26px;
}
.moods-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.moods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
  gap: 12px;
}
.mood-tile {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  box-shadow: var(--sh-sm);
  transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
.mood-tile:hover {
  transform: translateY(-4px) rotate(-2deg);
  background: var(--sage);
  color: #111111;
}
.mood-tile img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.mood-tile span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

/* ─── Manual Install Guide ─── */
.install-box {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xl);
  padding: 28px 22px;
}
@media (min-width: 768px) {
  .install-box {
    padding: 40px;
  }
}

.install-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 28px;
}
@media (min-width: 900px) {
  .install-header {
    flex-direction: row;
    align-items: flex-end;
  }
}

.browser-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  background: var(--paper);
  padding: 6px;
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  align-self: flex-start;
}
.browser-tab {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.browser-tab.is-active {
  background: var(--sage);
  color: #111111;
  border-color: var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--shadow-color);
}

.download-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
@media (min-width: 820px) {
  .download-methods {
    grid-template-columns: 1fr 1fr;
  }
}
.method-card {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.method-zip {
  background: color-mix(in srgb, var(--sage) 18%, var(--surface));
}
.method-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.method-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 900;
  padding: 3px 8px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-sm);
}
.method-sub {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
}
.method-card h3 {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.method-card p {
  font-size: 14px;
  color: var(--ink-2);
}

.copy-cmd-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  padding: 6px 6px 6px 12px;
  margin-top: 2px;
}
.copy-cmd-row code {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12.5px;
  overflow-x: auto;
  white-space: nowrap;
}

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1080px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 8px;
  background: var(--sage);
  color: #111111;
  border: 1.5px solid #111111;
  border-radius: var(--r-sm);
}
.step-card h4 {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.step-card p {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

.install-tips {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px) {
  .install-tips {
    grid-template-columns: 1fr 1fr;
  }
}
.tip-pill {
  background: var(--paper-2);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-2);
}

/* ─── Open Source & Contribute ─── */
.oss-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
@media (min-width: 960px) {
  .oss-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 44px;
  }
}
.oss-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.repo-tree-card {
  background: var(--surface);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.repo-tree-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--paper-2);
  border-bottom: var(--bw) solid var(--ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
}
.repo-tree {
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.6;
  overflow-x: auto;
}
.repo-tree code {
  border: none;
  background: transparent;
  padding: 0;
  font-weight: 600;
}
.c-muted {
  color: var(--ink-3);
  font-weight: 500;
}

.contrib-ideas {
  padding: 16px 18px 20px;
  border-top: var(--bw) solid var(--ink);
  background: var(--paper);
}
.idea-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.idea-tags span {
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 10px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
}

/* ─── Footer ─── */
.site-footer {
  border-top: var(--bw) solid var(--ink);
  background: var(--surface);
  padding-block: 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13.5px;
  font-weight: 800;
}
.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 140ms var(--ease), transform 140ms var(--ease);
}
.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive visibility helpers ─── */
@media (max-width: 520px) {
  .hide-xs { display: none !important; }
}
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .word-inner,
  .reveal-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
