/* ============================================================
   CANOPY — FRONT PAGE (home composition)
   ------------------------------------------------------------
   One quiet first viewport: brand, question, search, two alts,
   living corner blobs (js/blobs.js corners layout), footer + SOS.
   Hamburger is bare lines — never covered by a blob.
   ============================================================ */

/* Kill legacy solid geometric decorations on home */
body:not(.is-browsing) .canopy-top {
  overflow: visible;
}
body:not(.is-browsing) .canopy-top::before,
body:not(.is-browsing) .canopy-top::after,
body:not(.is-browsing) .hero::after,
.shapes {
  content: none !important;
  display: none !important;
}

/* ---------- living home blob stage (real search blobs, corner seats) ---------- */
#home-blob-stage.home-blob-stage {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background: transparent !important;
  isolation: auto !important;
  border: none !important;
}
#home-blob-stage .blob-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: none;
  background: transparent !important;
}
#home-blob-stage .blob-label {
  display: none !important;
}

body.is-browsing #home-blob-stage,
body.has-blobs #home-blob-stage,
body.has-deck #home-blob-stage,
body.has-strip #home-blob-stage,
body.has-crisis #home-blob-stage,
body.has-art-page #home-blob-stage,
body:not(.has-home-blobs) #home-blob-stage {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ---------- bare hamburger — three lines only, no chrome ---------- */
body:not(.is-browsing) .menu-toggle-fixed.pill-btn,
body:not(.is-browsing) .menu-toggle-fixed {
  position: fixed;
  top: max(env(safe-area-inset-top, 0px), 0.9rem);
  right: max(env(safe-area-inset-right, 0px), 1rem);
  z-index: 180;
  width: 2.6rem;
  height: 2.6rem;
  min-width: 0;
  padding: 0 !important;
  margin: 0;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--espresso);
  -webkit-tap-highlight-color: transparent;
  overflow: visible;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
body:not(.is-browsing) .menu-toggle-fixed.pill-btn:hover,
body:not(.is-browsing) .menu-toggle-fixed:hover {
  background: transparent !important;
  color: var(--terre);
  transform: none !important;
  box-shadow: none !important;
}
body:not(.is-browsing) .menu-toggle-fixed .menu-icon {
  width: 1.45rem;
  height: 1.45rem;
  stroke: currentColor;
  stroke-width: 2.4;
  display: block;
}
body:not(.is-browsing) .menu-toggle-fixed::before,
body:not(.is-browsing) .menu-toggle-fixed::after {
  content: none !important;
  display: none !important;
}

/* ---------- top chrome ---------- */
body:not(.is-browsing) .top-bar {
  position: relative;
  z-index: 2;
  margin-bottom: 0.4rem;
}
body:not(.is-browsing) .brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- hero: one calm line ---------- */
body:not(.is-browsing) .home-stage {
  position: relative;
  z-index: 2;
  padding: 0.25rem 0 2.2rem;
  gap: 0;
  width: min(34rem, 100%);
  padding-inline: 0.15rem;
  box-sizing: border-box;
}
body:not(.is-browsing) .hero {
  min-height: 0;
  padding: 0.2em 0 0.15em;
  font-size: clamp(1.85rem, 5.2vw + 0.7rem, 3.55rem);
  overflow: visible;
}
body:not(.is-browsing) .hero h1 {
  max-width: min(16ch, 100%);
  width: 100%;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  overflow: visible;
  text-wrap: balance;
}
.hero-line {
  display: block;
  color: var(--espresso);
  text-transform: lowercase;
  overflow: visible;
}
.hero-morph {
  display: inline-block;
  position: relative;
  color: var(--terre);
  white-space: nowrap;
  min-width: var(--hero-beat-w, 4.5ch);
  vertical-align: baseline;
}
.hero-morph .hero-ch {
  display: inline-block;
  will-change: transform, opacity;
  transform-origin: 50% 85%;
  backface-visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .hero-morph .hero-ch { will-change: auto; }
}

@media (max-width: 560px) {
  body:not(.is-browsing) .home-stage {
    padding-inline: 0.5rem;
    padding-bottom: 1.6rem;
  }
  body:not(.is-browsing) .hero {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
  body:not(.is-browsing) .hero h1 {
    max-width: 12ch;
    line-height: 1.22;
  }
  body.home-locked .footer {
    font-size: 0.7rem;
    bottom: calc(env(safe-area-inset-bottom) + 4.35rem);
  }
}

/* ---------- search underline + go disc ---------- */
body:not(.is-browsing) .entry {
  margin-top: 1.65rem;
}
body:not(.is-browsing) .home-stage .search-wrap {
  max-width: 100%;
  border-bottom-width: 2px;
  border-bottom-color: color-mix(in srgb, var(--espresso) 78%, transparent);
  padding-bottom: 0.45rem;
}
body:not(.is-browsing) #search {
  font-size: clamp(1.02rem, 1.6vw + 0.7rem, 1.22rem);
  font-weight: 450;
  padding: 0.45rem 0;
}
body:not(.is-browsing) #search::placeholder {
  color: color-mix(in srgb, var(--espresso) 38%, transparent);
  font-weight: 400;
}
body:not(.is-browsing) .search-go {
  width: 2.35rem;
  height: 2.35rem;
  background: var(--terre);
}
body:not(.is-browsing) .search-go svg {
  width: 1rem;
  height: 1rem;
}
body:not(.is-browsing) .home-stage .search-wrap.is-open .search-go,
body:not(.is-browsing) .home-stage .search-wrap:focus-within .search-go {
  width: 2.55rem;
  height: 2.55rem;
}

/* ---------- alts: pill + underline breath ---------- */
body:not(.is-browsing) .home-alts {
  margin-top: 1.55rem;
  gap: 0.85rem;
}
body:not(.is-browsing) .guided-btn {
  padding: 0.78rem 1.55rem;
  border-radius: 999px;
  background: var(--espresso);
  box-shadow: none;
}
body:not(.is-browsing) .guided-btn .g-title {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
body:not(.is-browsing) .browse-btn {
  padding: 0.15rem 0.2rem;
  color: var(--terre);
}
body:not(.is-browsing) .browse-btn:hover {
  color: var(--espresso);
}
body:not(.is-browsing) .browse-btn .browse-title {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
  color: inherit;
}

/* Quiet first viewport — no art strip */
body:not(.is-browsing) .student-art-home-slot {
  display: none !important;
}

/* Footer + SOS above blob field, clear of bottom blobs */
body.home-locked .footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 4.55rem);
  z-index: 3;
  padding: 0 1.25rem;
  margin: 0;
  color: color-mix(in srgb, var(--espresso) 38%, transparent);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  pointer-events: none;
  /* Soft paper wash so footer text stays readable over BL blobs */
  text-shadow:
    0 0 12px var(--ground, #fdf0e8),
    0 0 18px var(--ground, #fdf0e8);
}
body.home-locked .footer a,
body.home-locked .footer button {
  pointer-events: auto;
}
.footer .made-heart {
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-left: 0.28em;
  vertical-align: -0.05em;
  color: var(--terre, #a13a1e);
  fill: currentColor;
  opacity: 0.85;
}
body:not(.is-browsing) .sos {
  z-index: 120;
  padding: 0.72rem 1.35rem;
  border: none;
  border-radius: 999px;
  background: var(--terre);
  color: var(--milk);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-transform: lowercase;
  box-shadow: 0 2px 14px rgba(84, 41, 22, 0.16);
}
body:not(.is-browsing) .sos:hover {
  transform: translateX(-50%) translateY(-2px);
  background: var(--espresso);
}

body:not(.is-browsing) .sos {
  position: fixed;
}
