/* ───────────────────────────────────────────────────────────────
   wyp v4 — overrides on v2 + the slash index
   (load after v2.css)
   ─────────────────────────────────────────────────────────────── */

/* de-terminalized hero meta */
.hero-role {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── loading screen ─────────────────────────────────────────────
   styles live inline in <head> (Base.astro) so the loader covers
   the page from the first paint, before this stylesheet arrives */

/* entrance initial states — applied by CSS so nothing can flash before
   the GSAP CDN script arrives; the intro tweens TO the final state.
   Gated on html.js + motion preference so static visitors see everything. */
@media (prefers-reduced-motion: no-preference) {
  html.js .nav { opacity: 0; visibility: hidden; transform: translateY(-24px); }
  html.js .hero-h1 .line { opacity: 0; visibility: hidden; transform: translateY(120%); }
  html.js .hero-desc2 { opacity: 0; visibility: hidden; transform: translateY(24px); }
  html.js .hero-ctas2,
  html.js .hero-links { opacity: 0; visibility: hidden; transform: translateY(18px); }
  html.js .hw { opacity: 0; visibility: hidden; transform: translateY(30px); }
  /* the rotating notification sits outside .hw — hide it from first
     paint too; the notes loop fades it in once it starts */
  html.js .hw-toast { opacity: 0; visibility: hidden; }
}

/* ── hero: ambient, never-ending motion ─────────────────────── */

.hero { position: relative; overflow: hidden; }
.hero > :not(.hero-bg) { position: relative; z-index: 1; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  top: 8%;
  right: -8%;
  width: 55%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.07), transparent 65%);
  opacity: 0.5;
}
.hb {
  position: absolute;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.03), transparent 70%);
  border-radius: 10px;
  transform: skewX(-12deg);
}
.hb1 { width: 90px;  height: 150px; right: 12%;  top: 16%; }
.hb2 { width: 56px;  height: 100px; right: 26%;  top: 52%; border-color: var(--line-soft); }
.hb3 { width: 120px; height: 190px; right: 3%;   top: 48%; }
.hb4 { width: 34px;  height: 70px;  right: 38%;  top: 24%; border-color: var(--line-soft); }
.hb5 { width: 70px;  height: 120px; left: -1.5%; top: 60%; border-color: var(--line-soft); }

/* split layout: identity left, live workshop right */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: var(--container);
  margin-inline: auto;
}

.hero-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.hero-h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  overflow: hidden;
  margin-bottom: 1.3rem;
}
.hero-h1 .line { display: block; }
.hero-h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: -0.01em;
}

.hero-desc2 {
  font-size: 14px;
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 1.8rem;
}

.hero-ctas2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.hero-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bg);
  background: var(--amber);
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -14px var(--amber-glow);
}
.hero-links { font-size: 12.5px; color: var(--faint); }
.hero-links a { color: var(--muted); transition: color 0.25s; }
.hero-links a:hover { color: var(--amber); }

/* the live workshop — fixed sizes so it can never sprawl */
.hero-right { display: flex; justify-content: center; }
.hero-stack {
  position: relative;
  width: min(100%, 440px);
  height: 330px;
}
.hw { position: absolute; }
.hw-site {
  top: 0;
  left: 0;
  width: min(300px, 72%);
  rotate: -2deg;
  z-index: 1;
}
.hw-board {
  bottom: 14px;
  right: 0;
  width: min(280px, 68%);
  rotate: 1.6deg;
  z-index: 2;
}
.hw .term-body { padding: 0.8rem 0.9rem; }

.hw-page { display: grid; gap: 0.45rem; white-space: normal; }
.hw-b { border-radius: 5px; background: var(--line-soft); }
.hw-bnav { height: 10px; width: 55%; }
.hw-bimg { height: 44px; background: linear-gradient(120deg, var(--line-soft), var(--surface)); border: 1px solid var(--line-soft); }
.hw-bt1 { height: 8px; width: 88%; }
.hw-bt2 { height: 8px; width: 64%; }
.hw-bbtn { height: 16px; width: 64px; background: var(--amber); opacity: 0.85; }

.hw-cols {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  white-space: normal;
  min-height: 96px;
}
.hw-col b {
  display: block;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-card {
  position: absolute;
  /* absolute children resolve against the padding box, so offset by the
     body padding to sit exactly under the column header text */
  top: calc(0.8rem + 18px);
  left: calc(0.9rem - 1px);
  width: calc((100% - 1.8rem - 1rem) / 3);
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 5px;
  padding: 0.32rem 0.4rem;
  color: var(--muted); /* JS animates this; the title inherits it */
}
.hw-card b {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  color: inherit;
  margin-bottom: 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-card i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--line-soft);
  margin-bottom: 3px;
}
.hw-card i:last-child { width: 64%; margin-bottom: 0; }
.hw-toast {
  position: absolute;
  top: -14px;
  right: 4px;
  z-index: 3;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--olive);
  border: 1px solid #5a6244;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.7);
}
/* reserved perch for a future interactive character */
.hero-buddy {
  position: absolute;
  top: -44px;
  left: 8%;
  width: 56px;
  height: 44px;
  z-index: 4;
  pointer-events: none;
}

/* availability pill with a pinging dot */
.contact-avail { margin-top: 1.6rem; }
.hero-avail {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 99px;
  padding: 0.4rem 0.95rem;
  white-space: nowrap;
}
.hero-avail i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--olive);
}
.hero-avail i::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--olive);
  animation: hero-ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes hero-ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.8); opacity: 0; }
}

/* about tweaks */
.ab-box { white-space: normal; }
.ab-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.ab-row:last-child { border-bottom: none; }
.ab-row b {
  flex: 0 0 110px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 3px;
}
.ab-row .gk-chips i {
  font-size: 10.5px;
  padding: 2.5px 8px;
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.ab-row .gk-chips i:hover {
  color: var(--amber);
  border-color: var(--amber-deep);
  background: var(--surface-2, var(--surface));
  transform: translateY(-2px);
}

.philo-head {
  display: block;
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.stack-rows p {
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
}
.stack-rows .k { color: var(--muted); }
.stack-rows .s { color: var(--ink); }
.stack-rows .c { justify-content: flex-start; margin-top: 0.6rem; }

/* ── archive: the slash index ───────────────────────────────── */

.archive {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding: clamp(4rem, 9vh, 6rem) var(--pad) clamp(3rem, 8vh, 5rem);
  /* subtle slanted hatch — echoes the card skew without adding objects */
  background:
    radial-gradient(ellipse 65% 50% at 50% 45%, rgba(var(--accent-rgb), 0.045), transparent 70%),
    repeating-linear-gradient(102deg, transparent 0 26px, rgba(var(--accent-rgb), 0.03) 26px 27px),
    var(--bg);
}

.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* reserve the close button's height so the header never resizes */
  min-height: 2.4rem;
  margin-bottom: clamp(2rem, 5vh, 4rem);
}

.archive-close {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.archive-close:hover { color: var(--amber); border-color: var(--amber-deep); }
.archive-close[hidden] { display: none; }

.archive-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

/* cap the work content on ultra-wide screens and center it, so the
   detail's two columns don't split the full viewport and leave a big
   empty gap in the middle */
.archive-head,
.archive-body {
  width: 100%;
  max-width: var(--container);
  align-self: center;
}

/* idle: a 4×2 grid of skewed cards — 8 projects, the hint sits in a
   full-width caption row below */
.strip {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.55rem, 1.3vw, 1.1rem);
}
.strip > * { height: clamp(120px, 22vh, 190px); }

.proj {
  /* lit-from-above surface: lighter at the top edge, sinking to near-bg
     at the bottom — gives the flat card a sense of dimension */
  background: linear-gradient(158deg, var(--surface) 0%, var(--bg-2) 46%, var(--bg) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  transform: skewX(-12deg);
  display: flex;
  align-items: flex-end;
  padding: clamp(0.7rem, 1.4vw, 1.1rem);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  /* top inset highlight = a catch of light on the rim; bottom inset =
     soft grounding; outer drop shadow lifts the card off the page */
  box-shadow:
    inset 0 1px 0 0 rgba(255, 236, 205, 0.055),
    inset 0 -26px 36px -28px rgba(0, 0, 0, 0.85),
    0 16px 34px -18px rgba(0, 0, 0, 0.72);
  /* no transform transition here — GSAP Flip animates this element's
     transform, and a CSS transition would replay it after Flip ends */
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.proj::after {
  /* faint top glow inside the card */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 0%, var(--amber-glow), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.proj-in {
  transform: skewX(12deg); /* counter-skew so text reads upright */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  text-align: left;
  transition: transform 0.3s; /* hover motion lives here, away from Flip */
}
.proj-idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.proj-name {
  font-family: var(--mono);
  font-size: clamp(0.95rem, 1.5vw, 1.35rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--ink);
  transition: color 0.25s;
}
.proj-desc {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(0.78rem, 1vw, 0.95rem);
  color: var(--muted);
}
/* hover only on devices that truly hover — keeps touch taps from sticking
   the hover state and removes hover styling on mobile entirely */
@media (hover: hover) {
  .proj:hover {
    border-color: var(--amber-deep);
    background: linear-gradient(158deg, #1d1813 0%, var(--bg-2) 50%, var(--bg) 100%);
    box-shadow:
      inset 0 1px 0 0 rgba(255, 236, 205, 0.09),
      0 24px 48px -18px rgba(0, 0, 0, 0.8),
      0 0 46px -12px var(--amber-glow);
  }
  .proj:hover::after { opacity: 1; }
  .proj:hover .proj-in { transform: skewX(12deg) translateY(-8px); }
  .proj:hover .proj-name { color: var(--amber); }
}
.proj:focus-visible {
  outline: 1px dashed var(--amber);
  outline-offset: 4px;
}



.strip-hint {
  grid-column: 1 / -1;
  height: auto !important; /* .strip > * sets card height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0.02em;
  color: var(--faint);
}

/* open: project cards dock into a left rail, fillers leave */
.archive.open .archive-body { align-items: stretch; }

.archive.open .strip {
  width: clamp(170px, 19vw, 270px);
  display: flex; /* the idle grid becomes a docked rail */
  flex: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0.6rem;
}
.archive.open .strip > * { height: auto; }

.archive.open .strip-hint { display: none; }

.archive.open .proj {
  width: 100%;
  transform: skewX(-8deg);
  align-items: center;
  padding: 0.65rem 1rem;
  /* docked rail is a compact nav — drop the grid card's depth gradient
     and heavy shadows so short rows don't read as over-darkened */
  background: var(--bg-2);
  box-shadow: inset 0 1px 0 0 rgba(255, 236, 205, 0.04);
}
.archive.open .proj-in {
  transform: skewX(8deg);
  flex-direction: row;
  align-items: baseline;
  gap: 0.7rem;
}
.archive.open .proj-name { font-size: clamp(0.85rem, 1.2vw, 1.05rem); color: var(--muted); }
.archive.open .proj-desc { display: none; } /* rail stays compact */
@media (hover: hover) {
  .archive.open .proj:hover { box-shadow: none; }
  .archive.open .proj:hover .proj-in { transform: skewX(8deg) translateX(6px); }
  .archive.open .proj:hover .proj-name { color: var(--ink); }
}
.archive.open .proj.active {
  border-color: var(--amber-deep);
  background: linear-gradient(100deg, var(--amber-glow), var(--bg-2) 60%);
}
.archive.open .proj.active .proj-name { color: var(--amber); }

/* prev/next switcher — the rail is the picker on desktop, so this is
   mobile-only; it sticks just under the fixed nav while you read a detail */
.proj-nav { display: none; }
@media (max-width: 920px) {
  .proj-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
  }
  .proj-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    padding: 0.3rem 0;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.2s;
  }
  .proj-nav-btn .chev { font-size: 1.35rem; line-height: 1; }
  .proj-nav-btn:active { color: var(--amber); }
}
@media (hover: hover) {
  .proj-nav-btn:hover { color: var(--amber); }
}

/* detail pane */
.details { display: none; }
.archive.open .details {
  display: block;
  flex: 1;
  min-width: 0;
  align-self: center;
}

.detail[hidden] { display: none; }
.detail {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr);
  gap: clamp(1.8rem, 3.5vw, 3.5rem);
  align-items: center;
}

.d-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 12px;
  margin-bottom: 1.2rem;
}

.d-title {
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.d-tagline {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  color: var(--amber);
  margin-bottom: 1rem;
}
.d-tagline em { font-style: italic; }

.d-desc {
  color: var(--muted);
  font-size: 14px;
  max-width: 46ch;
  margin-bottom: 1.4rem;
}

.d-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.7rem;
  padding: 0;
}
.d-tags li {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
}

.d-links { display: flex; gap: 1.6rem; }
.d-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--amber-deep);
  padding-bottom: 0.2rem;
  transition: color 0.25s, border-color 0.25s;
}
.d-links a:hover { color: var(--amber); border-color: var(--amber); }

/* ── spoosh demo scene ──────────────────────────────────────── */

.spoosh-demo {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.spoosh-demo .term-body {
  font-size: clamp(10px, 1vw, 12.5px);
  line-height: 1.75;
  padding: 0.9rem 1.2rem;
}

/* scenes stack in the same cell; only one is visible at a time */
.sp-code,
.sp-out { display: grid; }
.sp-code .sp-scene,
.sp-out .sp-scene { grid-area: 1 / 1; }
.sp-code { min-height: calc(1.75em * 5); }
.sp-out { min-height: calc(1.75em * 3); }

.sp-caption,
.wh-caption {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.sp-typo {
  text-decoration: underline wavy var(--amber-deep);
  text-underline-offset: 3px;
}

/* top pane: scenes stack like the code/out panes */
.sp-app { white-space: normal; display: grid; }
.sp-app .sp-scene { grid-area: 1 / 1; align-self: center; }
.sp-app { min-height: calc(1.75em * 5); }

/* scene 1: post grid */
.sp-apphead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 0.6rem;
}
.sp-applabel { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.sp-applabel b { color: var(--amber); }
.sp-new {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.2rem 0.65rem;
  /* keep width stable when the label swaps to "creating…" */
  display: inline-block;
  min-width: 70px;
  text-align: center;
}
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.sp-tile {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  font-size: 10.5px;
  color: var(--muted);
}
.sp-tile i {
  display: block;
  height: 20px;
  border-radius: 4px;
  background: var(--line-soft);
  margin-bottom: 0.4rem;
}
.sp-tile-new { border-color: var(--amber-deep); color: var(--ink); }
.sp-tile-new i { background: var(--amber-glow); }

/* scene 2: like card */
.sp-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.sp-title {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.sp-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  position: relative;
}

.sp-like {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 0.28rem 0.8rem;
  font-size: 12px;
  color: var(--ink);
}
.sp-heart { font-size: 13px; color: var(--muted); }

.sp-flags { position: relative; flex: 1; height: 1.4em; }
.sp-flag {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 0.14rem 0.45rem;
  white-space: nowrap;
}
.sp-flag-opt { color: var(--amber); border: 1px solid var(--amber-deep); }
.sp-flag-ok { color: var(--olive); border: 1px solid #5a6244; }

.sp-pointer {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  box-shadow: 0 0 14px var(--amber-glow);
  pointer-events: none;
  z-index: 3;
}
.sp-pointer-like { left: 16px; top: 4px; }
.sp-pointer-grid { right: 28px; top: 2px; }


/* ── geckoui demo scene ─────────────────────────────────────── */

.sp-app .sp-scene { position: relative; }

/* fit mode: the pane keeps its natural padding; scenes are absolute
   inside a stage whose height JS animates to hug the active scene */
.gk-fit {
  display: block;
  min-height: 0;
}
.gk-stage {
  position: relative;
  overflow: hidden;
}
.gk-stage .sp-scene {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.gk-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.gk-label b { color: var(--amber); }

.gk-input {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 250px;
  height: 30px;
  padding: 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-2);
  font-size: 11px;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.gk-text { display: inline-block; }
.gk-ph {
  position: absolute;
  left: 0.6rem;
  color: var(--faint);
}
.gk-caret {
  width: 1.5px;
  height: 14px;
  margin-left: 2px;
  background: var(--amber);
  animation: blink 1.1s steps(1) infinite;
}

.gk-error {
  font-size: 9.5px;
  color: #d98a78;
  margin-bottom: 0.35rem;
}

.gk-saverow { position: relative; display: inline-block; }
.gk-save {
  display: inline-block;
  min-width: 76px;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  border-radius: 6px;
  padding: 0.32rem 0.9rem;
}
.gk-pointer { left: 24px; top: 4px; }

.gk-toast {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  font-weight: 600;
  color: var(--olive);
  border: 1px solid #5a6244;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
}

/* scene 2: kit */
.gk-kit {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.gk-comp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font-size: 9.5px;
  color: var(--muted);
}
.gk-switch {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 12px;
  border-radius: 99px;
  background: var(--line);
}
.gk-switch i {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.gk-counter b { color: var(--amber); font-weight: 700; }
.gk-count { min-width: 14px; text-align: center; color: var(--ink); }
.gk-otp { gap: 3px; }
.gk-otp i {
  width: 14px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-style: normal;
  font-size: 10px;
  color: var(--amber);
}

/* scene 3: the kit at a glance */
.gk-stats {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.gk-stat {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
  text-align: center;
}
.gk-stat b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
}
.gk-stat span {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
/* text-valued stats (e.g. "React · Angular") sit on one line */
.gk-statt {
  font-size: 11px !important;
  padding: 3.5px 0;
  white-space: nowrap;
}
.gk-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.gk-chips i {
  font-style: normal;
  font-size: 8.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 1.5px 6px;
}

/* ── notessa demo scene (single product window) ─────────────── */

.nt-app { white-space: normal; }

.nt-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.55rem;
}
.nt-head-sub { font-size: 9px; color: var(--faint); margin-left: 0.4rem; }

.nt-doc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 10.5px;
  color: var(--ink);
}
.nt-file {
  flex: none;
  width: 11px;
  height: 13px;
  border: 1px solid var(--muted);
  border-radius: 2px 4px 2px 2px;
}
.nt-tag {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 3px;
  padding: 0 4px;
}
.nt-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 9.5px;
}
.nt-status b { font-weight: 600; }
.nt-spin {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--line);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: nt-spin 0.9s linear infinite;
}
@keyframes nt-spin { to { rotate: 1turn; } }

.nt-meta { font-size: 8.5px; color: var(--faint); white-space: nowrap; }

/* pipeline log strip — what the backend actually does */
.nt-logs {
  border-top: 1px dashed var(--line);
  margin-top: 0.65rem;
  padding-top: 0.55rem;
}
.nt-log {
  font-size: 9.5px;
  line-height: 1.85;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ask notessa */
.nt-ask-head {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--amber);
  margin-bottom: 0.6rem;
}
.nt-sugg { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.6rem; }
.nt-sugg i {
  font-style: normal;
  font-size: 8.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: 0.18rem 0.55rem;
}

.nt-q {
  margin-left: auto;
  width: max-content;
  max-width: 85%;
  background: var(--amber);
  color: var(--bg);
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 8px 8px 2px 8px;
  padding: 0.32rem 0.6rem;
  margin-bottom: 0.55rem;
}
.nt-a {
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px 8px 8px 2px;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.5rem;
}
.nt-a-line {
  font-size: 10.5px;
  line-height: 1.75;
  color: var(--ink);
  white-space: nowrap;
}
.nt-cite {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 11px;
  height: 11px;
  font-size: 7.5px;
  font-weight: 700;
  border-radius: 3px;
  background: var(--amber-glow);
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  vertical-align: 1px;
}
.nt-src { font-size: 9px; color: var(--muted); }
.nt-src b { color: var(--amber); margin-left: 0.45rem; font-weight: 600; }

/* cross-referencing */
.nt-xwrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.nt-pdf {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.5rem 0.6rem;
  min-width: 0;
}
.nt-pdf b {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 9px;
  color: var(--ink);
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
}
.nt-pg {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 3px;
  padding: 0 4px;
}
.nt-pdf p {
  font-size: 8.5px;
  color: var(--muted);
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nt-hl {
  display: inline-block; /* clip-path reveal needs a box */
  background: var(--amber-glow);
  border-bottom: 1px solid var(--amber-deep);
  color: var(--amber);
}

/* ── stayora demo scene (single product window) ─────────────── */

.st-app { white-space: normal; }

.st-hero {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.st-hero b { color: var(--amber); font-weight: 500; }

.st-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.st-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.5rem;
  font-size: 9.5px;
  color: var(--muted);
}
.st-card b { display: block; color: var(--ink); font-size: 10px; margin-bottom: 0.15rem; }
.st-img {
  position: relative;
  height: 30px;
  border-radius: 5px;
  background: linear-gradient(120deg, var(--line-soft), var(--surface));
  margin-bottom: 0.4rem;
}
.st-flag {
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--amber);
  border-radius: 3px;
  padding: 1px 4px;
}
.st-city { display: block; font-size: 8.5px; color: var(--faint); margin-bottom: 0.25rem; }
.st-price { font-size: 8.5px; }
.st-price b { display: inline; color: var(--amber); font-size: 9.5px; }

.st-form { display: flex; align-items: center; gap: 0.45rem; }
.st-pill {
  font-size: 9px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: 0.22rem 0.6rem;
}
.st-add {
  margin-left: auto;
  display: inline-block;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  border-radius: 6px;
  padding: 0.28rem 0.7rem;
}

/* checkout */
.st-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.st-field {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.3rem 0.5rem;
}
.st-field-wide { grid-column: 1 / -1; }
.st-fl {
  display: block;
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 1px;
}
.st-fv { font-size: 9.5px; color: var(--ink); }

.st-steps { display: flex; gap: 0.8rem; margin-bottom: 0.65rem; }
.st-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.st-step i {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
}
.st-pay { display: grid; gap: 0.4rem; margin-bottom: 0.6rem; }
.st-payopt {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 9.5px;
  color: var(--ink);
}
.st-alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 9px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
}

.st-badge {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid;
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}
.st-badge-pending,
.st-badge-live { color: var(--amber); border-color: var(--amber-deep); }
.st-badge-ok { color: var(--olive); border-color: #5a6244; }

/* booking confirmation */
.st-sum {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
}
.st-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 10px;
  color: var(--ink);
}
.st-sum-row b { color: var(--amber); }
.st-sum-sub {
  margin-top: 0.3rem;
  font-size: 8.5px;
  color: var(--faint);
}
.st-div { height: 1px; background: var(--line-soft); margin: 0.45rem 0; }
.st-kv {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 9px;
  color: var(--faint);
  padding: 0.12rem 0;
}
.st-kv span:last-child { color: var(--muted); }
.st-total { font-size: 10px; }
.st-total span:first-child { color: var(--ink); }
.st-total b { color: var(--amber); }
.st-actions { margin-bottom: 0.4rem; }
.st-receipt {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
}
.st-mail { font-size: 8.5px; color: var(--faint); margin-top: 0.15rem; }
.st-toast {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--olive);
  border: 1px solid #5a6244;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}

/* pointers */
.st-ptr1 { right: 24px; bottom: 14px; }
.st-ptr2 { right: 20px; top: 6px; }

/* ── extension demo scene (single browser window) ───────────── */

.ex-app { white-space: normal; }

.ex-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.ex-nav span {
  width: 38px;
  height: 9px;
  border-radius: 3px;
  background: var(--line-soft);
}
.ex-nav i {
  width: 18px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-soft);
}
.ex-htitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.ex-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
.ex-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.5rem 0.55rem 0.55rem;
  font-size: 9px;
  color: var(--muted);
}
.ex-card b { display: block; color: var(--ink); font-size: 10px; }
.ex-card span { display: block; color: var(--faint); margin: 0.15rem 0 0.45rem; }
.ex-card u {
  text-decoration: none;
  display: inline-block;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  padding: 0.18rem 0.5rem;
}
.ex-tip {
  position: absolute;
  top: -1.7rem;
  left: 0;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  z-index: 3;
}
.ex-ref {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--bg);
  background: var(--amber);
  border-radius: 50%;
  z-index: 3;
}
.ex-ptr { right: 18px; bottom: 8px; }

/* composer */
.ex-composer {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}
.ex-chead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.ex-cbadge {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 3px;
  padding: 0 4px;
}
.ex-copy {
  position: relative;
  margin-left: auto;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  border-radius: 4px;
  padding: 0.16rem 0.55rem;
}
.ex-ptr2 { left: 14px; top: 2px; }
.ex-desc {
  display: flex;
  align-items: center;
  font-size: 9.5px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
}
.ex-desc-text { display: inline-block; }
.ex-yaml {
  border: 1px solid var(--line-soft);
  background: var(--surface);
  border-radius: 5px;
  padding: 0.4rem 0.55rem;
}
.ex-yaml .sp-line { font-size: 9px; line-height: 1.75; }
.ex-toast {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--olive);
  border: 1px solid #5a6244;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
}

/* agent */
.ex-agent {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.5rem;
}
.ex-ahead {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.45rem;
}
.ex-ainput {
  position: relative;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 0.4rem 0.55rem;
  margin-bottom: 0.45rem;
}
.ex-acaret { position: absolute; left: 0.55rem; top: 0.5rem; }
.ex-menu {
  position: absolute;
  left: 1.2rem;
  top: 1.1rem;
  z-index: 6;
  min-width: 86px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.18rem 0;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.7);
}
.ex-menu span {
  display: block;
  font-size: 8.5px;
  color: var(--faint);
  padding: 0.18rem 0.6rem;
}
.ex-menu .ex-paste {
  color: var(--ink);
  font-weight: 600;
  background: var(--line-soft);
}
.ex-ptr3 { left: 2.4rem; top: 1.9rem; }
.ex-aline {
  font-size: 9.5px;
  color: var(--ink);
  line-height: 1.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ex-attach {
  display: inline-block;
  font-size: 8px;
  color: var(--amber);
  border: 1px dashed var(--amber-deep);
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  margin-top: 0.25rem;
}
.ex-send {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  border-radius: 5px;
  padding: 0.24rem 0.7rem;
}
.ex-note { font-size: 8.5px; color: var(--faint); }

/* ── whipped demo scene (single product window) ─────────────── */

.wh-body {
  white-space: normal;
  padding: 0.9rem 1rem;
}

/* page views stack in the same cell — board, memories, recurring */
.wh-views { display: grid; margin-bottom: 0.8rem; }
.wh-view { grid-area: 1 / 1; align-self: start; }

.wh-viewhead {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.5rem;
}

.wh-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  align-items: start;
}
.wh-col b {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.45rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* column lanes need a visible floor even when empty;
   min-width 0 lets 1fr tracks shrink below header text width */
.wh-col { min-height: 74px; min-width: 0; border-radius: 6px; }

.wh-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.45rem 0.5rem;
  font-size: 10px;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.wh-live {
  border-color: var(--amber-deep);
  color: var(--ink);
  box-shadow: 0 0 16px -8px var(--amber-glow);
  position: relative;
  z-index: 2;
  will-change: transform;
}
.wh-card-title { display: block; margin-bottom: 0.35rem; }

.wh-chips { display: grid; height: 14px; }
.wh-chipset {
  grid-area: 1 / 1;
  display: flex;
  gap: 4px;
  align-items: center;
}
.wh-chip {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 3px;
  padding: 0 4px;
  line-height: 13px;
  white-space: nowrap;
}
.wh-chip.ok { color: var(--olive); border-color: #5a6244; }
.wh-chip.pr { color: var(--ink); border-color: var(--line); }

/* memories page */
.wh-mem {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 0.45rem;
}
.wh-mem-meta {
  color: var(--faint);
  font-size: 9px;
  white-space: nowrap;
}
.wh-mem-new {
  border-color: var(--amber-deep);
  box-shadow: 0 0 16px -8px var(--amber-glow);
}
.wh-mem-new .wh-mem-meta { color: var(--amber-deep); }

/* recurring agents page */
.wh-agent {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-size: 10px;
  margin-bottom: 0.45rem;
}
.wh-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
}
.wh-dot-idle { background: var(--faint); box-shadow: none; }
.wh-agent-name { color: var(--ink); font-weight: 600; }
.wh-agent-sched { color: var(--faint); font-size: 9px; }
.wh-agent-status { margin-left: auto; color: var(--muted); font-size: 9px; }
.wh-run { font-size: 10px; color: var(--muted); padding-top: 0.15rem; }

.wh-termlines {
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
  display: grid;
  min-height: calc(1.8em * 3);
}
.wh-scene { grid-area: 1 / 1; }
.wh-line { font-size: 10.5px; line-height: 1.8; }

.wh-toast {
  position: absolute;
  top: 2.5rem;
  right: 0.8rem;
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  z-index: 5;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}
.wh-toast-pr { border: 1px solid #5a6244; color: var(--olive); }
.wh-toast-slack {
  border: 1px solid var(--line);
  border-left: 3px solid var(--olive);
  color: var(--muted);
  font-weight: 500;
}
.wh-toast-slack b { color: var(--olive); font-weight: 700; margin-right: 0.3em; }
.wh-toast-mem { border: 1px solid var(--amber-deep); color: var(--amber); }

/* ── brams demo scene (single product window) ───────────────── */

.br-body {
  white-space: normal;
  padding: 0.9rem 1rem;
}

/* page views stack in the same cell — dashboard, ask, report */
.br-views { display: grid; margin-bottom: 0.8rem; }
.br-view { grid-area: 1 / 1; align-self: start; }

.br-rates {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.br-rate {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  text-align: center;
}
.br-rate b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.2;
}
.br-rate b i { font-style: normal; }
.br-rate span {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* live market-rate ticker */
.br-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 0.6rem;
}
.br-ticker i {
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}

/* a tiny building — floors as scanlines */
.br-bldg {
  flex: none;
  width: 11px;
  height: 13px;
  border: 1px solid var(--muted);
  border-radius: 2px 2px 0 0;
  background: repeating-linear-gradient(transparent 0 2px, var(--line-soft) 2px 3px);
}

/* signer initials */
.br-init {
  flex: none;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 50%;
}

/* ask brams — tool calls fire before the answer streams */
.br-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0.5rem; }
.br-tool {
  font-style: normal;
  font-size: 8px;
  letter-spacing: 0.04em;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  background: var(--surface);
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
}
.br-a b { color: var(--amber); font-weight: 600; }

/* terminal narration, per scene */
.br-termlines {
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
  display: grid;
  min-height: calc(1.8em * 2);
}
.br-scene { grid-area: 1 / 1; }
.br-line { font-size: 10.5px; line-height: 1.8; }

.br-toast {
  position: absolute;
  top: 2.5rem;
  right: 0.8rem;
  font-size: 10px;
  font-weight: 600;
  color: var(--olive);
  border: 1px solid #5a6244;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  z-index: 5;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

/* ── vicx demo scene (iphone, 19.5:9) ───────────────────────── */

.vx-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.vx-caption { margin-left: 0; } /* sp-caption right-aligns inside term bars */

.vx-phone {
  width: min(250px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  padding: 7px;
  background: #0a0908;
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(var(--accent-rgb), 0.04),
    0 0 60px -20px var(--amber-glow);
  position: relative;
}
/* volume keys (left) and power (right) */
.vx-phone::before {
  content: "";
  position: absolute;
  left: -2.5px;
  top: 19%;
  width: 2.5px;
  height: 26px;
  border-radius: 2px;
  background: var(--line);
  box-shadow: 0 34px 0 var(--line);
}
.vx-phone::after {
  content: "";
  position: absolute;
  right: -2.5px;
  top: 26%;
  width: 2.5px;
  height: 42px;
  border-radius: 2px;
  background: var(--line);
}

.vx-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 33px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  overflow: hidden;
  padding: 8px 11px 5px;
}
.vx-island {
  position: absolute;
  top: 9px;
  left: 50%;
  translate: -50% 0;
  width: 64px;
  height: 16px;
  border-radius: 9px;
  background: #000;
  z-index: 4;
}
.vx-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 8px 12px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--muted);
}
.vx-sig { display: inline-flex; align-items: flex-end; gap: 1.5px; }
.vx-sig i { width: 2px; border-radius: 1px; background: var(--muted); }
.vx-sig i:nth-child(1) { height: 3px; }
.vx-sig i:nth-child(2) { height: 5px; }
.vx-sig i:nth-child(3) { height: 7px; }
.vx-sig b {
  position: relative;
  width: 15px;
  height: 7px;
  margin-left: 4px;
  border: 1px solid var(--muted);
  border-radius: 2px;
}
.vx-sig b::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 1px;
  width: 8px;
  border-radius: 1px;
  background: var(--olive);
}

/* app pages stack in the same cell — book, data, bag */
.vx-views { flex: 1; display: grid; }
.vx-view { grid-area: 1 / 1; align-self: start; }

.vx-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.vx-head span { font-size: 8px; color: var(--faint); font-weight: 400; }
.vx-head .vx-count { font-style: normal; color: var(--amber); font-weight: 700; }

.vx-label {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 0.3rem;
}

/* booking flow */
.vx-opts { display: grid; gap: 0.35rem; margin-bottom: 0.55rem; }
.vx-opt {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.42rem 0.6rem;
  font-size: 10px;
  color: var(--ink);
}
.vx-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.55rem; }
.vx-chip {
  font-style: normal;
  font-size: 8.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 99px;
  padding: 0.18rem 0.5rem;
}
.vx-chip-on { color: var(--amber); border-color: var(--amber-deep); }
.vx-store {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 0.36rem 0.55rem;
  font-size: 9.5px;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.vx-store + .vx-pills { margin-top: 0.55rem; }
.vx-store span { margin-left: auto; font-size: 8px; color: var(--faint); }
.vx-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
}
.vx-dot-idle { background: var(--faint); box-shadow: none; }
.vx-pills { display: flex; gap: 0.3rem; margin-bottom: 0.5rem; }
.vx-pill {
  flex: 1;
  text-align: center;
  font-size: 9px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 99px;
  padding: 0.28rem 0;
}
.vx-sum {
  font-size: 8.5px;
  color: var(--faint);
  text-align: center;
  margin-bottom: 0.5rem;
}
.vx-cta {
  position: relative;
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--bg);
  background: var(--amber);
  border-radius: 9px;
  padding: 0.48rem 0;
}
.vx-ptr { right: 34px; bottom: -4px; }

/* swing analytics */
.vx-clip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 9px;
  color: var(--ink);
}
.vx-clip span { margin-left: auto; font-size: 8px; color: var(--faint); }
.vx-play {
  font-style: normal;
  flex: none;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--amber);
  color: var(--bg);
  font-size: 7px;
}
.vx-metric {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  font-size: 9px;
  color: var(--muted);
}
.vx-metric > span { flex: none; width: 56px; }
.vx-metric i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.vx-metric b {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber-glow);
}
.vx-metric em {
  font-style: normal;
  flex: none;
  width: 16px;
  text-align: right;
  color: var(--ink);
}
.vx-grade {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  padding: 0.42rem 0;
  margin-bottom: 0.45rem;
}
.vx-grade b { color: var(--amber); font-size: 12.5px; margin-left: 0.3rem; }
.vx-reco {
  font-size: 8.5px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 0.34rem 0.5rem;
  margin-bottom: 0.45rem;
  text-align: center;
}
.vx-reco span { color: var(--amber); }
.vx-note { font-size: 8.5px; color: var(--faint); text-align: center; }

/* my bag */
.vx-club {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 0.38rem 0.55rem;
  font-size: 9.5px;
  color: var(--ink);
  margin-bottom: 0.42rem;
}
.vx-ctype {
  flex: none;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--amber);
  border: 1px solid var(--amber-deep);
  border-radius: 3px;
  padding: 1px 3px;
}
.vx-cspec { margin-left: auto; font-size: 8px; color: var(--faint); }
.vx-club-new {
  border-color: var(--amber-deep);
  box-shadow: 0 0 16px -8px var(--amber-glow);
}
.vx-sync {
  font-size: 8.5px;
  color: var(--faint);
  text-align: center;
  margin-top: 0.3rem;
}

.vx-toast {
  position: absolute;
  top: 34px;
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--olive);
  border: 1px solid #5a6244;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.26rem 0.55rem;
  z-index: 5;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.6);
}

.vx-tabs {
  flex: none;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--line-soft);
  padding: 0.5rem 0 0.25rem;
}
.vx-tabs span {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.vx-home {
  flex: none;
  display: block;
  width: 60px;
  height: 3px;
  border-radius: 2px;
  margin: 5px auto 1px;
  background: var(--muted);
  opacity: 0.45;
}

/* ── responsive ─────────────────────────────────────────────── */

@media (max-width: 920px) {
  .archive-body { flex-direction: column; align-items: stretch; }

  .strip { grid-template-columns: repeat(2, 1fr); } /* 2×4 on small screens */
  .strip > * { height: clamp(90px, 14vh, 130px); }

  .archive.open .strip {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    /* centered + overflow clips the start edge — items before the
       center become unreachable (can scroll right, never left) */
    justify-content: flex-start;
    overflow-x: auto;
    /* inline padding gives the skewed cards room to paint — without it the
       first card's skewX overhang is clipped at the scroll container edge */
    padding: 0 0.7rem 0.9rem;
    scrollbar-width: none;
  }
  .archive.open .strip::-webkit-scrollbar { display: none; }
  .archive.open .proj { width: auto; flex: none; }
  .archive.open .proj-name { white-space: nowrap; }

  /* detail + illustration stay side by side in tablet (tabs move to the
     top via the column flex above); they only stack on mobile (below) */

  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { order: -1; } /* the workshop visual leads on mobile */
  .hero-stack { height: 290px; }
  /* no forced break — the headline flows as one sentence on mobile */
  .h1-br { display: none; }
  .hb4, .hb5 { display: none; } /* fewer ambient shapes on small screens */
}

@media (max-width: 560px) {
  /* mobile: detail + illustration stack top-to-bottom */
  .detail { grid-template-columns: 1fr; gap: 2rem; }

  /* phones: the archive index grows to fit rather than filling the screen */
  .archive {
    min-height: auto;
    padding: 4rem var(--pad) 3rem;
  }

  /* whipped board: tighter cards so they fit their columns */
  .wh-body { padding: 0.7rem; }
  .wh-board { gap: 0.35rem; }
  .wh-card { padding: 0.3rem 0.35rem; font-size: 8.5px; }
  .wh-card-title { margin-bottom: 0.25rem; }
  .wh-col b { font-size: 7.5px; letter-spacing: 0.06em; }
  .wh-chip { font-size: 7px; padding: 0 3px; line-height: 11px; }
  /* let "✓ review ✓ qa" wrap instead of overflowing the card */
  .wh-chips { height: auto; min-height: 12px; }
  .wh-chipset { flex-wrap: wrap; row-gap: 2px; }
  .wh-toast { font-size: 9px; max-width: 60%; }
}

/* ── reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .proj, .proj-in, .archive-close { transition: none; }
  .hero-avail i::before { animation: none; }
}
