/* Kagel landing — tokens match the console mock */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --text: #131417;
  --text-soft: #24262b;
  --muted: #74777e;
  --border: #e6e7e9;
  --border-strong: #d5d7db;
  --accent: #d96f92;
  --well: #f0f1f3;
  --deboss-ink: #e2e4e8;
  --deboss-hi: rgba(255, 255, 255, 0.95);
  --deboss-lo: rgba(19, 20, 23, 0.3);
  color-scheme: light;
}
html.dark {
  --bg: #191a1e;
  --card: #1e1f24;
  --text: #f7f8f9;
  --text-soft: #e0e0e0;
  --muted: #a4a7ad;
  --border: rgba(153, 153, 153, 0.16);
  --border-strong: rgba(153, 153, 153, 0.32);
  --accent: #f2a6bc;
  --well: #222327;
  --deboss-ink: #141518;
  --deboss-hi: rgba(255, 255, 255, 0.07);
  --deboss-lo: rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: background-color 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; }
a { color: inherit; text-decoration: none; }

/* ---------- debossed wordmark ---------- */
.deboss {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--deboss-ink);
  text-shadow:
    0 1px 0 var(--deboss-hi),
    0 -1px 1px var(--deboss-lo);
  user-select: none;
}

/* ---------- header ---------- */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 18px 5vw;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.hdr.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.hdr .brand { font-size: 19px; }
.hdr nav { display: flex; gap: 4px; }
.hdr nav a {
  font-size: 13.5px; color: var(--muted);
  padding: 7px 12px; border-radius: 8px;
  transition: color 0.15s ease;
}
.hdr nav a:hover { color: var(--text); }
.hdr .cta { display: flex; align-items: center; gap: 10px; }

/* ---------- buttons (bolt-neum bezel from the mock) ---------- */
.btn {
  --bez-top: #ffffff;
  --bez-bot: #d0d2cd;
  --btn-from: #f5f5f5;
  --btn-to: #fffefe;
  position: relative;
  appearance: none; border: none; font: inherit; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 14px; font-weight: 400; color: var(--text);
  height: 42px; padding: 0 20px; border-radius: 8px;
  background: linear-gradient(180deg, var(--btn-from), var(--btn-to));
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
html.dark .btn {
  --bez-top: #999999;
  --bez-bot: #000000;
  --btn-from: #35373c;
  --btn-to: #484b52;
}
.btn::before {
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: 7px;
  background: linear-gradient(180deg, var(--bez-top), var(--bez-bot));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none; z-index: 1;
}
.btn:hover { --btn-from: #ffffff; }
html.dark .btn:hover { --btn-from: #3c3e44; }
.btn:active { --btn-from: #ededee; --btn-to: #f6f6f7; }
html.dark .btn:active { --btn-from: #2f3136; --btn-to: #3f4248; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.primary::after {
  content: ""; position: absolute; inset: -1px; padding: 1px; border-radius: 8px;
  background: linear-gradient(180deg, #f6c6d4, #f2a6bc);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
          mask-composite: exclude;
  pointer-events: none; z-index: 2;
}
.btn.primary:hover { box-shadow: 0 0 8px rgba(242, 166, 188, 0.5); }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.ghost::before { display: none; }
.btn.ghost:hover { background: var(--well); color: var(--text); box-shadow: none; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; }
section { padding: 0 5vw; }
.wrap { max-width: 1080px; margin: 0 auto; }

/* hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding-top: 90px; }
.hero .wrap { width: 100%; }
.hero .inner { max-width: 620px; }
.eyebrow {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 0 0 26px;
}
.rotator { display: inline-block; position: relative; white-space: nowrap; }
.rotator .word {
  display: inline-block;
  animation: word-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero .sub {
  font-size: 17px; line-height: 1.6; color: var(--muted);
  max-width: 46ch; margin: 0 0 34px;
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* trust strip */
.strip { padding-top: 20px; padding-bottom: 96px; }
.strip .wrap {
  display: flex; align-items: center; gap: 14px 34px; flex-wrap: wrap;
  border-top: 1px solid var(--border); padding-top: 26px;
}
.strip .cap { font-size: 13.5px; color: var(--muted); max-width: 44ch; line-height: 1.55; margin-right: auto; }
.trust { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.trust svg { color: var(--muted); flex: none; }

/* generic section blocks */
.block { padding-top: 9vh; padding-bottom: 13vh; }
.block h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.02em; font-weight: 600;
  margin: 0 0 14px; max-width: 20ch;
}
.block .lead { font-size: 16px; color: var(--muted); line-height: 1.6; max-width: 52ch; margin: 0 0 44px; }

/* how steps */
.steps-l { display: flex; flex-direction: column; gap: 0; max-width: 640px; counter-reset: hs; }
.step-l {
  display: flex; gap: 26px; padding: 30px 0;
  border-top: 1px solid var(--border);
}
.step-l:last-child { border-bottom: 1px solid var(--border); }
.step-l::before {
  counter-increment: hs; content: "0" counter(hs);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 15px; font-weight: 600; color: var(--muted);
  flex: none; width: 40px; padding-top: 2px;
}
.step-l h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; }
.step-l p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 48ch; }

/* features */
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; max-width: 900px; }
.feat {
  padding: 26px 0; border-top: 1px solid var(--border);
  display: flex; gap: 18px; align-items: flex-start;
}
.feat svg { flex: none; color: var(--muted); margin-top: 2px; }
.feat h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* security */
.sec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; max-width: 900px; }

/* trial */
.trial .points { display: flex; gap: 26px; flex-wrap: wrap; margin: 26px 0 36px; padding: 0; list-style: none; }
.trial .points li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-soft); }
.trial .points svg { color: var(--muted); }

/* faq */
.faq details {
  border-top: 1px solid var(--border);
  max-width: 720px;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font-size: 16px; font-weight: 500;
  font-family: "Space Grotesk", "Inter", sans-serif;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .x {
  flex: none; width: 22px; height: 22px; position: relative; color: var(--muted);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq summary .x::before, .faq summary .x::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: currentColor;
}
.faq summary .x::before { width: 14px; height: 1.5px; }
.faq summary .x::after { width: 1.5px; height: 14px; }
.faq details[open] summary .x { transform: rotate(45deg); }
.faq .a { padding: 0 40px 24px 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 62ch; margin-top: -6px; }

/* final */
.final { text-align: center; padding-top: 4vh; padding-bottom: 10vh; }
.final .giant {
  font-size: clamp(72px, 16vw, 240px);
  line-height: 1;
  margin: 0 0 4vh;
  text-shadow:
    0 0.014em 0.008em var(--deboss-hi),
    0 -0.014em 0.018em var(--deboss-lo);
}
.final h2 { margin-left: auto; margin-right: auto; max-width: 22ch; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .actions { display: flex; justify-content: center; }

/* footer */
footer {
  position: relative; z-index: 1;
  padding: 30px 5vw 40px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* reveals */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.08s; }
.rv.d2 { transition-delay: 0.16s; }
.rv.d3 { transition-delay: 0.24s; }

/* theme toggle */
#kagel-theme-toggle {
  position: fixed; bottom: 20px; right: 20px; z-index: 30;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--text); border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(19, 20, 23, 0.16); cursor: pointer; padding: 0;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease;
}
#kagel-theme-toggle:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(19, 20, 23, 0.22); }
#kagel-theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#kagel-theme-toggle .moon { display: none; }
html.dark #kagel-theme-toggle .moon { display: block; }
html.dark #kagel-theme-toggle .sun { display: none; }

@media (max-width: 860px) {
  .hdr nav { display: none; }
  .feat-list, .sec-list { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; align-items: center; }
  .hero .inner { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { transition: none; opacity: 1; transform: none; }
  .rotator .word { animation: none; }
}

/* ----- pricing ----- */
.pricing .card-price {
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  padding: 34px 36px;
  box-shadow: 0 18px 50px rgba(19, 20, 23, 0.08);
}
html.dark .pricing .card-price { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); }
.card-price .plan { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card-price .amount {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: 56px; font-weight: 600; letter-spacing: -0.03em;
  margin: 10px 0 2px;
}
.card-price .amount small { font-size: 17px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.card-price .trial-note { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.card-price ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.card-price li { display: flex; align-items: center; gap: 11px; font-size: 14px; color: var(--text-soft); }
.card-price li svg { color: var(--muted); flex: none; }
.card-price .fine { font-size: 12px; color: var(--muted); margin-top: 14px; }



/* ================= pinned chat demo (v4) ================= */
.demo { position: relative; height: 1250vh; padding: 0; }
.demo-pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 78px 5vw 24px;
}
.chat {
  width: 100%; max-width: 780px;
  height: min(82vh, 720px);
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
html:not(.dark) .chat { box-shadow: 0 30px 90px rgba(19, 20, 23, 0.14); }
.chat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  flex: none;
}
.chat-head .dots { display: flex; gap: 6px; }
.chat-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--well); border: 1px solid var(--border-strong); }
.chat-head .t { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.chat-head .mcp {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; color: var(--text-soft);
  background: var(--well); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 11px;
}
.chat-head .mcp .dot { width: 6px; height: 6px; border-radius: 50%; background: #4c9e63; }

.chat-body { flex: 1; overflow: hidden; padding: 22px 22px 12px; }
.thread { transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }

.m {
  opacity: 0; transform: translateY(20px) scale(0.98);
  transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-bottom: 16px;
  display: none;
}
.m.show { display: flex; }
.m.user { justify-content: flex-end; }
.m.user .bub {
  background: var(--well); border: 1px solid var(--border);
  border-radius: 14px 14px 4px 14px;
  padding: 10px 16px; font-size: 14px; max-width: 78%;
}
.m.ai { gap: 11px; }
.m.ai .who {
  flex: none; width: 27px; height: 27px; border-radius: 8px;
  background: linear-gradient(180deg, #e8e9eb, #c9cbd0); color: #24262b;
  font-size: 12px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
html:not(.dark) .m.ai .who { background: linear-gradient(180deg, #35373c, #484b52); color: #f7f8f9; }
.m.ai .txt { font-size: 14px; line-height: 1.65; color: var(--text-soft); padding-top: 2px; }
.m.ai .txt b { color: var(--text); }

/* two-frame trick: .m.show gets its transition end-state via .settle */
.m.show { animation: m-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes m-in { to { opacity: 1; transform: none; } }

#typing-dots { display: none; padding: 2px 0 10px 38px; }
#typing-dots.on { display: flex; gap: 4px; }
#typing-dots i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: tblink 1s infinite;
}
#typing-dots i:nth-child(2) { animation-delay: 0.15s; }
#typing-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes tblink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* input line */
.chat-foot {
  flex: none; margin: 0 22px 20px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 12px 16px; font-size: 14px;
  position: relative; min-height: 46px;
}
.chat-foot .placeholder { color: var(--muted); position: absolute; left: 16px; }
.chat-foot .input-line { color: var(--text); white-space: nowrap; overflow: hidden; }
.chat-foot .input-line.typing + .placeholder { display: none; }
.chat-foot .input-line.typing::after {
  content: ""; display: inline-block; width: 1.5px; height: 1.05em;
  background: var(--text); margin-left: 2px; vertical-align: -2px;
  animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.chat-foot .send {
  margin-left: auto; appearance: none; border: none; cursor: default;
  background: transparent; color: var(--muted); display: inline-flex; padding: 4px;
  border-radius: 8px; transition: color 0.2s ease, background-color 0.2s ease;
}
.chat-foot .send.armed { color: var(--accent); }

/* widget bits reused */
.wg .st-done { display: none; }
.wg.approved .st-done { display: inline-flex; }
.wg.approved .st-wait { display: none; }
.wg.approved .wdiff { margin-bottom: 0; }

@media (max-width: 640px) {
  .demo-pin { padding: 74px 3vw 16px; }
  .chat-body { padding: 16px 14px 8px; }
  .chat-foot { margin: 0 14px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .m.show { animation: none; opacity: 1; transform: none; }
  .thread { transition: none; }
}

/* ----- in-chat widgets ----- */
.wg {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 17px;
  background: var(--bg);
}
.wg .wh { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wg .wh b { font-size: 13.5px; font-weight: 600; font-family: "Space Grotesk", "Inter", sans-serif; }
.wg .wh .chip { margin-left: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; padding: 3px 10px; border-radius: 999px;
  background: var(--well); color: var(--muted);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: #1d2c22; color: #7dc491; }
html:not(.dark) .chip.ok { background: #e3f2e8; color: #2f7a46; }
.chip.warn { background: #322a1a; color: #e0b063; }
html:not(.dark) .chip.warn { background: #f9efdb; color: #91641c; }

.wrow {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--border);
  font-size: 12.5px;
}
.wrow:first-of-type { border-top: none; }
.wrow .ico {
  flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--well); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; font-size: 12px; color: var(--text-soft);
}
.wrow .nm { font-weight: 500; }
.wrow .sb { color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.wrow .rt { margin-left: auto; text-align: right; }
.wrow .rt b { font-size: 13px; font-weight: 600; }
.wrow .rt span { display: block; color: var(--muted); font-size: 11px; }

.wbarrow { display: flex; align-items: center; gap: 10px; font-size: 12px; padding: 5px 0; }
.wbarrow .lb { flex: none; width: 84px; color: var(--muted); }
.wbar { flex: 1; height: 7px; border-radius: 999px; background: var(--well); overflow: hidden; }
.wbar > i {
  display: block; height: 100%; border-radius: 999px;
  background: #9599a1;
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html:not(.dark) .wbar > i { background: #52555c; }
.m:not(.show) .wbar > i { width: 0 !important; }
.wbarrow .vl { flex: none; width: 52px; text-align: right; font-weight: 500; font-size: 12px; }

.wdiff {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 14px; background: var(--card);
  font-size: 13px;
}
.wdiff .from { color: var(--muted); text-decoration: line-through; }
.wdiff .to { font-weight: 600; font-size: 15px; font-family: "Space Grotesk", "Inter", sans-serif; }
.wdiff svg { color: var(--muted); }
.wact { display: flex; gap: 10px; }


/* ----- chapters ----- */
.chapter { display: block; }
.demo-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo-label.swap { opacity: 0; transform: translateY(6px); transition: none; }

.wrow.opt { cursor: pointer; border-radius: 10px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; transition: background-color 0.15s ease; }
.wrow.opt:hover { background: var(--well); }
.wrow.opt .ico { background: var(--card); }

/* ----- widget KPI tiles ----- */
.wkpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wkpi { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--card); }
.wkpi .l { font-size: 10.5px; color: var(--muted); margin-bottom: 4px; }
.wkpi .v { font-family: "Space Grotesk", "Inter", sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.wkpi .d { font-size: 10.5px; color: #7dc491; margin-top: 3px; }
html:not(.dark) .wkpi .d { color: #2f7a46; }
.wnote { font-size: 11.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }


/* ----- hero rotator line with logos ----- */
.hero h1 .rot-line {
  display: block;
  height: 1.25em;
  margin-top: 0.08em;
  white-space: nowrap;
}
.rotator .word { display: inline-flex; align-items: center; gap: 0.22em; vertical-align: baseline; }
.rlogo { height: 0.82em; width: auto; display: inline-block; border-radius: 0.12em; }
.wbarrow .lb.lb-w { width: 118px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11px; }

/* ----- dark only ----- */
#kagel-theme-toggle { display: none !important; }


/* ----- scroll hint ----- */
#scroll-hint {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 25;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  opacity: 1; transition: opacity 0.4s ease;
  pointer-events: none;
}
#scroll-hint.hidden { opacity: 0; }
#scroll-hint svg { animation: hint-bob 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
@keyframes hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { #scroll-hint svg { animation: none; } }


/* ----- brand logo ----- */
.brandlogo { height: 30px; width: auto; display: block; }
.giant-logo { width: clamp(180px, 34vw, 400px); height: auto; margin: 0 auto 5vh; display: block; opacity: 0.9; }
