body.login { background: var(--ink); color: #F2F6EF; min-height: 100vh; }
.stage {
  position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 600px at 18% 30%, rgba(143, 212, 58, 0.16), transparent 60%),
    radial-gradient(700px 520px at 85% 75%, rgba(69, 185, 240, 0.14), transparent 62%),
    linear-gradient(160deg, var(--forest-800) 0%, var(--ink) 70%);
}
.stage::before {   /* fine dot texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(242, 246, 239, 0.08) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.globe {
  position: absolute; width: min(980px, 120vw); right: -18vw; top: -12vh; color: rgba(143, 212, 58, 0.18);
  animation: spin 160s linear infinite; pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero {
  position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, 300px) minmax(340px, 440px);
  align-items: center; gap: 40px; padding: 48px 48px 16px;
}
.story { min-width: 0; display: flex; flex-direction: column; gap: 22px; animation: rise .8s ease-out both; }
.logo { width: 220px; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.eyebrow { margin: 6px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lime); }
h1 {
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 800; font-size: clamp(40px, 4.4vw, 76px);
  line-height: 0.95; letter-spacing: -1px; text-transform: uppercase; color: #FFFFFF;
}
h1 span { color: var(--lime); }
.story > .proof { margin-top: 2px; }
.lede { margin: 0; max-width: 560px; font-size: 19px; line-height: 1.6; color: #C8D6CC; }
.proof { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.proof li { display: flex; align-items: center; gap: 9px; font-size: 15px; color: #E3ECE5; }
.proof svg { width: 20px; height: 20px; fill: none; stroke: var(--lime); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.panel { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; animation: rise .8s .15s ease-out both; }
.card {
  width: 100%; max-width: 440px; background: rgba(255, 255, 255, 0.97); color: var(--text);
  border-radius: 24px; padding: 40px 36px 32px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  border-top: 6px solid var(--lime);
}
.greeting { margin: 0; font-size: 14px; font-weight: 600; color: var(--forest-600); letter-spacing: .4px; }
.card h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 34px; line-height: 1.05; color: var(--forest-900); }
.sub { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.signin {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; padding: 0 22px;
  border-radius: 14px; background: var(--lime); color: var(--forest-900); text-decoration: none;
  font-weight: 700; font-size: 17px; box-shadow: 0 10px 24px rgba(143, 212, 58, 0.35);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.signin:hover { transform: translateY(-2px); background: #9BDE47; box-shadow: 0 16px 32px rgba(143, 212, 58, 0.45); }
.signin:active { transform: translateY(0); }
.signin svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.signin .arrow { transition: transform .15s ease; }
.signin:hover .arrow { transform: translateX(4px); }
.secure { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 16px; background: var(--paper); border-radius: 14px; }
.secure svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--forest-600); stroke-width: 2; stroke-linejoin: round; }
.secure p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #3E4A43; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.notice.error { background: #FCE4E2; color: #8C1D18; }
.notice.ok { background: var(--lime-50); color: var(--ok); }
.help { margin: 0; font-size: 14px; color: #B5C4BA; }
.help a { color: var(--lime); font-weight: 600; text-decoration: none; }
.help a:hover { text-decoration: underline; }

.route { position: relative; z-index: 1; padding: 0 0 18px; }
.route svg { display: block; width: 100%; height: 90px; }
.road { fill: none; stroke: rgba(242, 246, 239, 0.12); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.trail { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260 2400; animation: drive 9s linear infinite; }
.stop { fill: var(--ink); stroke: var(--sky); stroke-width: 3; }
.credits { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; max-width: 1320px; margin: 2px auto 0; padding: 0 48px; font-size: 13px; color: #8FA396; }
.builtby { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #B5C4BA; padding: 6px 10px; border-radius: 10px; transition: background .15s ease; }
.builtby:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.builtby img { height: 44px; width: auto; display: block; }

/* ---- the stove ---- */
.story-text { display: flex; flex-direction: column; gap: 22px; }
.stove-wrap { align-self: end; margin-bottom: 40px; animation: rise .8s .1s ease-out both; }
.stove { width: 100%; height: auto; display: block; overflow: visible; }
.room-glow { transform-origin: 150px 190px; animation: glow 3.2s ease-in-out infinite; }
.coals { animation: coals 2.4s ease-in-out infinite; }
.flame { transform-box: fill-box; transform-origin: 50% 100%; }
.f1 { animation: flick 1.6s ease-in-out infinite; }
.f2 { animation: flick 1.2s ease-in-out infinite .2s; }
.f3 { animation: flick 1.35s ease-in-out infinite .45s; }
.f4 { animation: flick2 1.05s ease-in-out infinite .1s; }
.f5 { animation: flick2 .8s ease-in-out infinite .3s; }
.e { opacity: 0; transform-box: fill-box; animation: ember 2.6s linear infinite; }
.e2 { animation-delay: .5s; } .e3 { animation-delay: 1.1s; } .e4 { animation-delay: 1.6s; } .e5 { animation-delay: 2.1s; }
@keyframes flick {
  0%, 100% { transform: scale(1, 1) skewX(0deg); opacity: .95; }
  25% { transform: scale(.94, 1.08) skewX(-3deg); opacity: 1; }
  50% { transform: scale(1.04, .9) skewX(2deg); opacity: .85; }
  75% { transform: scale(.97, 1.05) skewX(-1deg); opacity: 1; }
}
@keyframes flick2 {
  0%, 100% { transform: scale(1, 1) translateY(0); }
  33% { transform: scale(.9, 1.12) translateY(-2px); }
  66% { transform: scale(1.06, .92) translateY(1px); }
}
@keyframes ember {
  0% { opacity: 0; transform: translate(0, 0); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(6px, -90px); }
}
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes coals { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes drive { from { stroke-dashoffset: 2660; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); }
  .stove-wrap { grid-column: 1; grid-row: 2; width: 220px; margin: -10px 0 0; align-self: start; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .hero { padding: 32px 20px 8px; gap: 32px; }
  .logo { width: 160px; }
  .lede { font-size: 17px; }
  .card { padding: 30px 22px 24px; }
  .credits { padding: 0 20px; justify-content: center; }
}
@media (min-width: 861px) { h1 { white-space: nowrap; } }
