/* Copied from gwo-site/index.html (2026-11-12) so every page shares one stylesheet. */
/* Gnome Without Organs: the FC glass on solid garden moss. Mushroom cream for ink,
     gnome-hat red for the accent, a soft storybook serif played dead straight. */
  /* Clip horizontal decoration without creating a second vertical scroll container. */
  body { overflow-x: clip; }
  .stage .app, .build-stage .app { overflow: clip; }
  section { padding: 5rem 0; }
  /* Even line lengths, so a headline never leaves one word on its last line. */
  .display.h2 { text-wrap: balance; }
  .section-head { margin-bottom: 2.4rem; }
  .h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; }
  .nav { background: rgb(31 53 39 / 0.6); }

  .brand { gap: 0.55rem; }
  .brand img { width: auto; height: 2.6rem; filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.35)); transition: transform 0.25s var(--ease-out); }
  .brand:hover img { transform: rotate(-8deg) translateY(-2px); }
  .brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }

  /* ---- Hero ---- */
  .hero { padding: 3.5rem 0 2rem; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 2rem; align-items: center; }
  .hero .hero-name { font-size: clamp(3.4rem, 6.4vw, 5.6rem); line-height: 0.88; letter-spacing: -0.01em; font-weight: 900; margin: 0.6rem 0 0.2em; }
  /* The headline stays smaller than the wordmark at every width. */
  .hero-headline { margin: 0.5rem 0 0.35rem; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 2.9vw, 2.5rem); line-height: 1; letter-spacing: -0.01em; color: var(--ink); }
  /* The wordmark: Gnome / Without / Organs, stacked, with Without in mushroom. */
  .hero-sub { margin: 0.2rem 0 1.6rem; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.15; font-weight: 500; max-width: 26ch; color: var(--ink); }
  .hero-line { margin: 0; color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 34rem; }

  /* The gnome, in 3D, on a soft red glow, with cards from the app floating around him
     in 3D: two behind him, two in front. Card sizes follow the stage's width (cqw). */
  .gnome-stage { position: relative; aspect-ratio: 1; max-width: 560px; width: 100%; justify-self: end; container-type: inline-size; }
  /* The pad and its glow spread past the stage's sides and bottom, so the canvases are larger than it. */
  /* The floor spreads past the stage's sides and bottom: its frame is the stage's 560 x 560, widened. */
  .gnome-floor { position: absolute; left: -25%; top: -10%; width: 150%; height: 150%; pointer-events: none; }
  .ui-cards { position: absolute; inset: 0; pointer-events: none; perspective: 900px; }
  .ui-cards.front { z-index: 2; }
  .ui-cards .ui-card { position: absolute; width: 38%; animation: card-float 7s ease-in-out 2; }
  @keyframes card-float { 50% { translate: 0 -2.4cqw; } }
  .uc-1 { left: -6%; top: 14%; transform: rotateY(26deg) rotateX(6deg); animation-delay: -1s; }
  .uc-2 { right: -14%; top: 2%; width: 36%; transform: rotateY(-26deg) rotateX(6deg); animation-delay: -3.5s; }
  .uc-3 { right: -12%; bottom: 20%; width: 40%; transform: rotateY(-22deg) rotateX(8deg); animation-delay: -2s; }
  .uc-4 { left: -4%; bottom: 4%; width: 31%; transform: rotateY(24deg) rotateX(8deg); animation-delay: -5s; }
  /* Below the widest layouts the stage nears the window's edge, so the right-hand cards come in. */
  @media (max-width: 1320px) { .uc-2 { right: -4%; } .uc-3 { right: -3%; } }
  @media (max-width: 640px) {
    .uc-1 { left: -2%; width: 44%; } .uc-2 { right: -2%; width: 42%; } .uc-3 { right: -2%; width: 46%; } .uc-4 { left: -2%; width: 38%; }
  }
  @media (prefers-reduced-motion: reduce) { .ui-card { animation: none; } }
  .hero { overflow-x: clip; }
  .hero-copy { position: relative; z-index: 3; }
  #insights { position: relative; z-index: 1; }
  /* The 3D view is 1.6 times the stage, centred on it, with the camera 1.6 times further
     back (136% rather than 85%): he's the same size and in the same place, but neither his
     hat nor the shadow he casts is cut off at an edge as he turns. The headline and the
     next section sit above it, so its empty margins never take their clicks. */
  model-viewer { position: absolute; left: -30%; top: -30%; width: 160%; height: 160%; z-index: 1; --poster-color: transparent; background: transparent; opacity: 0; transition: opacity 0.4s var(--ease-out); }
  model-viewer.ready { opacity: 1; }
  /* A snapshot of the 3D gnome's first frame, in the same box, so the page can show him
     at once and load the 3D viewer afterwards. When the viewer is ready it fades in over
     the snapshot, which stays fully opaque until then and only switches off once the
     viewer is all the way in: two copies of one picture crossfading would show the
     moss through him halfway. */
  .gnome-poster { position: absolute; left: -30%; top: -30%; width: 160%; height: 160%; z-index: 1; pointer-events: none; transition: opacity 0s linear 0.4s; }
  .gnome-poster.done { opacity: 0; }
  /* Loops stop while their section is off screen. */
  .paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }


  /* ---- Insights demo ---- */
  #insights .section-head { margin-bottom: 1.6rem; }
  /* The example questions: four groups named for what they get you, each
     question in a short form (the full question plays in the window). */
  .q-groups { position: relative; z-index: 1; margin-bottom: 1.4rem; }
  .q-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
  .q-controls { display: none; }
  .q-group { display: grid; align-content: start; gap: 0.4rem; padding: 0.95rem 0.65rem 0.65rem; border: 1px solid var(--edge-soft); border-radius: 16px; background: rgb(242 234 217 / 0.035); }
  .q-group h3 { margin: 0 0.45rem 0.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.25; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
  .try { text-align: left; font: inherit; font-size: 0.9rem; line-height: 1.4; color: var(--mushroom); padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px solid transparent; background: rgb(216 195 154 / 0.07); cursor: pointer; transition: var(--hover-fade); }
  .try:hover { background: rgb(216 195 154 / 0.14); color: #e6d5b3; }
  .try[aria-pressed="true"] { background: rgb(216 195 154 / 0.2); border-color: rgb(216 195 154 / 0.55); color: var(--ink); }
  .try:focus-visible { outline: 2px solid var(--sky); outline-offset: 1px; }
  .file-card { display: flex; align-items: center; gap: 0.7rem; max-width: 26rem; padding: 0.65rem 0.85rem; border: 1px solid var(--edge); border-radius: 10px; background: rgb(242 234 217 / 0.05); }
  .file-card > svg:first-child { width: 1.4rem; height: 1.4rem; color: var(--accent); flex: none; }
  .file-card > svg:last-child { width: 1rem; height: 1rem; color: var(--ink-3); flex: none; margin-left: auto; }
  .file-card b { display: block; font-weight: 500; font-size: 0.84rem; }
  .file-card small { display: block; font-size: 0.74rem; color: var(--ink-3); }
  /* The app window: the Gnome theme's Home, drawn the way the product draws a turn
     (working notes, the Progress checklist, the collapsed tool line, any approval,
     then the answer with its tables and Plot figures). */
  .rail-logo { background: var(--accent); }
  .rail-logo img { width: 100%; height: 100%; object-fit: contain; }
  .rail-bell { margin-top: auto; color: rgb(242 234 217 / 0.58); padding: 0.35rem 0; }
  .rail-bell svg { width: 1.1rem; height: 1.1rem; }
  .stage .rail-me { margin-top: 0.4rem; }
  .stage { position: relative; }
  .stage .app { background: rgb(31 53 39 / 0.45); height: 730px; }
  .stage .chat-scroll { overflow-y: auto; overscroll-behavior: auto; scrollbar-width: thin; scrollbar-color: rgb(242 234 217 / 0.2) transparent; padding: 0.6rem 0.4rem 1rem 0; gap: 1.1rem; }
  .stage .msg-user { background: var(--ink); color: var(--bg); border: 0; border-radius: 12px; padding: 0.6rem 0.85rem; max-width: 80%; font-size: 0.86rem; line-height: 1.5; }
  .reply { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); column-gap: 0.7rem; font-size: 0.86rem; line-height: 1.6; color: var(--ink); }
  .reply > * { grid-column: 2; min-width: 0; }
  .reply > .avatar { grid-column: 1; grid-row: 1 / span 60; width: 1.6rem; height: 1.6rem; object-fit: contain; margin-top: -0.1rem; }
  .reply > .r { margin: 0 0 0.75rem; transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out); }
  .reply > .r.pending { opacity: 0; transform: translateY(4px); }
  .reply p.r strong, .reply li strong { font-weight: 600; }
  .reply ol.r, .reply ul.r { padding-left: 1.2rem; display: grid; gap: 0.45rem; }
  .reply em.note { color: var(--mushroom); font-style: normal; white-space: nowrap; }
  .progress { max-width: 80%; padding: 0; border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; }
  .progress h4 { margin: 0; display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.85rem; font-size: 0.8rem; font-weight: 500; background: rgb(242 234 217 / 0.06); border-bottom: 1px solid var(--edge-soft); }
  .progress ol { list-style: none; margin: 0; padding: 0; }
  .progress li { display: flex; align-items: center; gap: 0.65rem; padding: 0.42rem 0.85rem; font-size: 0.8rem; border-bottom: 1px solid var(--edge-soft); background: rgb(20 36 27 / 0.45); color: var(--ink-3); transition: color 0.2s var(--ease-out); }
  .progress li:last-child { border-bottom: 0; }
  .progress li.done { color: var(--ink); }
  .progress li.active { color: var(--ink); font-weight: 500; }
  .progress svg { width: 0.95rem; height: 0.95rem; flex: none; }
  .progress li.done svg { color: #9bd36a; }
  .progress li.active .i-load svg { animation: spin 0.8s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  /* A step's circle, spinner and check share one slot and cross-dissolve; the check
     then draws itself. The stepper's number and check do the same. */
  .ic { display: grid; flex: none; }
  .ic > span, .stepper li i > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity 0.16s var(--ease-out), transform 0.16s var(--ease-out), filter 0.16s var(--ease-out); }
  .ic > .i-load, .ic > .i-check, li.active .ic > .i-circle, li.done .ic > .i-circle, li.done .ic > .i-load,
  .stepper li i > .c, .stepper li.done i > .n { opacity: 0; transform: scale(0.8); filter: blur(2px); }
  li.active .ic > .i-load, li.done .ic > .i-check, .stepper li.done i > .c { opacity: 1; transform: none; filter: none; }
  .i-check path, .stepper li i > .c path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset 0.22s var(--ease-out) 0.06s; }
  li.done .i-check path, .stepper li.done i > .c path { stroke-dashoffset: 0; }
  .tool-line { font-size: 0.8rem; color: var(--ink-3); display: flex; align-items: center; gap: 0.35rem; }
  .tool-line::before { content: ""; border-left: 5px solid currentColor; border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
  /* The approval card: the app's Approvals review panel in miniature. */
  .approval { max-width: 36rem; border: 1px solid var(--edge); border-radius: 12px; background: rgb(242 234 217 / 0.08); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); overflow: hidden; }
  .ap-body { padding: 0.85rem 1rem 0.9rem; display: grid; gap: 0.45rem; }
  .ap-state { display: flex; align-items: center; gap: 0.45rem; }
  .ap-dot { width: 7px; height: 7px; border-radius: 50%; background: #f6b93b; box-shadow: 0 0 8px rgb(246 185 59 / 0.7); transition: background-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
  .ap-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgb(242 234 217 / 0.55); transition: opacity var(--dur-state) var(--ease-out); }
  .ap-label.out { opacity: 0; transition: opacity 0.12s var(--ease-in); }
  .ap-title { font-weight: 600; font-size: 0.95rem; }
  .ap-fields { margin-top: 0.15rem; padding: 0.55rem 0.75rem; border: 1px solid var(--edge-soft); border-radius: 10px; background: rgb(242 234 217 / 0.045); font-size: 0.82rem; display: grid; gap: 0.15rem; }
  .ap-fields > div { display: flex; gap: 0.8rem; }
  .ap-fields > div > span:first-child { width: 8.5rem; flex: none; color: rgb(242 234 217 / 0.5); }
  .ap-link { justify-self: start; margin-top: 0.25rem; font: inherit; font-size: 0.8rem; padding: 0; border: 0; background: none; color: var(--sky); cursor: pointer; }
  .ap-link:hover { text-decoration: underline; }
  .ap-items { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--ink-2); display: grid; gap: 0.1rem; }
  /* Rows that open and close (the handout list, "Which system?" on the form) grow
     to their height instead of pushing everything below them in one frame. */
  .reveal { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows var(--dur-state) var(--ease-out), opacity var(--dur-state) var(--ease-out), margin var(--dur-state) var(--ease-out), visibility 0s linear var(--dur-state); }
  .reveal.open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition-delay: 0s; }
  .reveal > * { min-height: 0; overflow: hidden; }
  .ap-fields > .ap-more { display: grid; }
  .ap-foot { border-top: 1px solid var(--edge-soft); padding: 0.65rem 1rem; }
  /* The footer's content changes (buttons, a note, the write log): the old leaves in
     120ms, the new comes in over 220ms, rising 4px out of a slight blur. */
  .ap-foot > * { transition: opacity var(--dur-state) var(--ease-out), transform var(--dur-state) var(--ease-out), filter var(--dur-state) var(--ease-out); }
  .ap-foot.leaving > * { opacity: 0; transition: opacity 0.12s var(--ease-in); }
  .ap-foot > .entering { opacity: 0; transform: translateY(4px); filter: blur(2px); }
  .ap-actions { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
  .ap-btn { display: inline-flex; align-items: center; height: 2rem; padding: 0 0.85rem; border-radius: 8px; font: inherit; font-size: 0.8rem; font-weight: 500; cursor: pointer; border: 0; background: var(--ink); color: #14261b; transition: var(--hover-fade); }
  .ap-btn:hover { filter: brightness(0.94); }
  .ap-btn:active, .ap-btn.pressing { transform: scale(0.97); transition-duration: 0.1s; }
  .ap-btn.ghost { background: transparent; color: rgb(242 234 217 / 0.78); }
  .ap-btn.ghost:hover { background: rgb(242 234 217 / 0.08); color: var(--ink); filter: none; }
  .ap-hint { margin-left: auto; font-size: 0.75rem; color: rgb(242 234 217 / 0.5); }
  .ap-foot > .ap-hint { margin-left: 0; }
  .ap-actions.note input { flex: 1; min-width: 10rem; font: inherit; font-size: 0.82rem; color: var(--ink); background: rgb(242 234 217 / 0.05); border: 1px solid rgb(242 234 217 / 0.15); border-radius: 8px; padding: 0.4rem 0.65rem; }
  .ap-actions.note input::placeholder { color: rgb(242 234 217 / 0.4); }
  .ap-actions.note input:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: transparent; }
  .approval.approved .ap-dot { background: #7fd6a4; box-shadow: 0 0 8px rgb(127 214 164 / 0.7); }
  .approval.approved .ap-foot .ap-hint { color: #7fd6a4; }
  /* A write in progress: a running count, a bar, and the latest records saved. */
  .ap-write { display: grid; gap: 0.5rem; }
  .wr-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 500; }
  .wr-head svg { width: 0.95rem; height: 0.95rem; flex: none; color: #7fd6a4; }
  .approval.written .wr-head { color: #7fd6a4; }
  .wr-bar { height: 4px; border-radius: 2px; background: rgb(242 234 217 / 0.1); overflow: hidden; }
  .wr-bar i { display: block; height: 100%; background: #7fd6a4; transform: scaleX(0); transform-origin: left; transition: transform 0.12s linear; }
  .wr-log { list-style: none; margin: 0; padding: 0; height: 7.2rem; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font-size: 0.78rem;
    -webkit-mask-image: linear-gradient(transparent, #000 45%); mask-image: linear-gradient(transparent, #000 45%); }
  .wr-log li { display: flex; align-items: center; gap: 0.5rem; padding: 0.18rem 0; color: var(--ink-2); flex: none; animation: row-in 0.16s var(--ease-out) both; }
  @keyframes row-in { from { opacity: 0; transform: translateY(4px); } }
  .wr-log li svg { width: 0.85rem; height: 0.85rem; flex: none; color: #7fd6a4; }
  .wr-log li small { margin-left: auto; color: var(--ink-3); font-size: 0.72rem; }
  /* A handout's text, before and after. */
  .handout-diff { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 40rem; }
  .handout-diff > div { padding: 0.6rem 0.85rem; border-radius: 10px; border: 1px solid var(--edge-soft); background: rgb(242 234 217 / 0.04); }
  .handout-diff .now { border-color: rgb(127 214 164 / 0.35); background: rgb(127 214 164 / 0.06); }
  .handout-diff span { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.25rem; }
  .handout-diff .now span { color: #7fd6a4; }
  .handout-diff p { margin: 0; font-size: 0.84rem; }
  .handout-diff .was p { color: var(--ink-3); }
  @media (max-width: 640px) { .handout-diff { grid-template-columns: 1fr; } }
  .approval.declined .ap-dot { background: rgb(242 234 217 / 0.35); box-shadow: none; }
  .fig .grow { position: absolute; top: 0.5rem; right: 0.5rem; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--edge-soft); color: var(--ink-3); background: rgb(20 36 27 / 0.6); }
  .fig .grow svg { width: 0.8rem; height: 0.8rem; }
  .fig .wait { height: 12rem; display: grid; place-items: center; color: var(--ink-3); font-size: 0.8rem; }
  .tbl-wrap { overflow-x: auto; border: 1px solid var(--edge-soft); border-radius: 10px; }
  .tbl-wrap table { min-width: 100%; border-collapse: collapse; font-size: 0.76rem; text-align: left; }
  .tbl-wrap th { font-weight: 600; padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--edge); border-right: 1px solid var(--edge-soft); white-space: nowrap; }
  .tbl-wrap td { padding: 0.5rem 0.65rem; border-bottom: 1px solid var(--edge-soft); border-right: 1px solid var(--edge-soft); vertical-align: top; line-height: 1.45; color: var(--ink-2); }
  .tbl-wrap th:last-child, .tbl-wrap td:last-child { border-right: 0; }
  .tbl-wrap tr:last-child td { border-bottom: 0; }
  .tbl-wrap td.num, .tbl-wrap th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tbl-wrap td:first-child { color: var(--ink); }
  .draft-note { margin: 0; padding: 0.6rem 0.85rem; border-left: 3px solid var(--mushroom); background: rgb(242 234 217 / 0.05); border-radius: 0 10px 10px 0; color: var(--ink-2); }
  .running { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--ink-3); padding-left: 2.3rem; }
  .running svg { width: 0.95rem; height: 0.95rem; animation: spin 0.8s linear infinite; }
  .send-btn { padding: 0.35rem 0.85rem; border-radius: 8px; background: rgb(242 234 217 / 0.14); color: var(--ink-2); font-size: 0.8rem; }
  .stage .composer-opts span { display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; }
  .stage .composer-opts svg { width: 0.8rem; height: 0.8rem; }
  .spot { position: absolute; border-radius: 50%; background: var(--ink); z-index: 0; }
  .s1 { width: 160px; height: 160px; left: -50px; top: 120px; }
  .s2 { width: 80px; height: 80px; left: 60px; top: 20px; }
  .s3 { width: 300px; height: 300px; right: -90px; bottom: -80px; background: var(--accent); }
  .s4 { width: 54px; height: 54px; right: 210px; bottom: -40px; }

  .icon { background: var(--accent); color: var(--accent-ink); border-radius: 50%; }

  /* ---- One place ---- */
  #together { overflow: hidden; }
  /* The One place garden board and its Today / With Gwo switch. */
  .garden { margin-top: 0.4rem; }
  .garden-switch-wrap { text-align: center; position: relative; z-index: 1; }
  .garden-switch { position: relative; display: inline-flex; gap: 0.3rem; padding: 0.3rem; border-radius: 999px; border: 1px solid var(--edge); background: rgb(242 234 217 / 0.05); }
  .garden-switch button { position: relative; z-index: 1; font: inherit; font-size: 0.88rem; padding: 0.4rem 1rem; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; transition: background-color 0.24s var(--ease-drawer), color 0.24s var(--ease-drawer); }
  .garden-switch button[aria-pressed="true"] { background: var(--ink); color: #1f3527; font-weight: 600; }
  /* With the script running, a thumb slides under the chosen button instead. */
  .garden-switch .thumb { position: absolute; left: 0; top: 0.3rem; bottom: 0.3rem; width: 0; border-radius: 999px; background: var(--ink); transition: transform 0.24s var(--ease-drawer), width 0.24s var(--ease-drawer); }
  .garden-switch.has-thumb button[aria-pressed="true"] { background: transparent; }

  /* ---- Build: an app shelf, and a Studio window that builds the chosen app ---- */
  .chip { display: inline-block; font-size: 0.7rem; padding: 0.12rem 0.5rem; border-radius: 999px; border: 1px solid var(--edge-soft); }
  .chip.ok { color: #7fd6a4; border-color: rgb(127 214 164 / 0.45); }
  .chip.wait { color: #ffb38a; border-color: rgb(255 179 138 / 0.45); }
  .chip.red { color: #fff; background: var(--accent); border-color: var(--accent); }
  .shelf { display: flex; justify-content: center; gap: 2.2rem; margin: 0 0 1.8rem; flex-wrap: wrap; }
  .shelf-app { display: grid; justify-items: center; gap: 0.55rem; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 0.86rem; cursor: pointer; }
  /* Cutout icons: no tile. The chosen app lifts and grows, with a small red dot under its name. */
  .shelf-app { position: relative; padding-bottom: 0.7rem; }
  .shelf-app img { width: 84px; height: 84px; object-fit: contain; filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.35)); opacity: 0.72; transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), filter 0.3s var(--ease-out); }
  .shelf-app:hover img { transform: translateY(-3px); opacity: 1; }
  .shelf-app::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); opacity: 0; transition: opacity 0.3s var(--ease-out); }
  .shelf-app[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
  .shelf-app[aria-pressed="true"] img { transform: translateY(-4px) scale(1.12); opacity: 1; filter: drop-shadow(0 14px 18px rgb(0 0 0 / 0.45)); }
  .shelf-app[aria-pressed="true"]::after { opacity: 1; }
  .build-stage { position: relative; }
  .build-stage .app { height: 720px; background: rgb(31 53 39 / 0.45); }
  .studio-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.8rem; padding: 2.8rem 1rem 1rem 0.5rem; }
  .studio-top { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .stepper { display: flex; gap: 0.35rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
  .stepper li { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.28rem 0.7rem 0.28rem 0.3rem; border-radius: 999px; font-size: 0.78rem; color: var(--ink-3); border: 1px solid var(--edge-soft); transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out); }
  .stepper li i { width: 1.25rem; height: 1.25rem; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 0.7rem; font-weight: 600; background: rgb(242 234 217 / 0.1); }
  .stepper li i svg { width: 0.75rem; height: 0.75rem; }
  .stepper li.on { color: var(--bg); background: var(--ink); border-color: var(--ink); }
  .stepper li.on i { background: rgb(31 53 39 / 0.15); }
  .stepper li.done { color: var(--ink); }
  .stepper li.done i { background: #9bd36a; color: #1f3527; }
  .pub-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 0.4rem; height: 2rem; padding: 0 0.9rem; border-radius: 8px; border: 0; font: inherit; font-size: 0.8rem; font-weight: 500; background: rgb(242 234 217 / 0.1); color: var(--ink-3); transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out), transform 0.16s var(--ease-out); }
  .pub-btn svg { width: 0.9rem; height: 0.9rem; }
  .pub-btn .short { display: none; }
  @media (max-width: 640px) { .pub-btn .short { display: inline; } }
  .pub-btn.ready { background: var(--ink); color: #14261b; }
  .pub-btn.pressed { transform: scale(0.97); transition-duration: 0.1s; }
  .pub-btn.done { background: rgb(155 211 106 / 0.16); color: #9bd36a; }
  .studio-split { min-height: 0; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 1rem; }
  .studio-chat { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.6rem; }
  .studio-chat .chat-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(242 234 217 / 0.2) transparent; padding: 0.3rem 0.4rem 0.6rem 0; gap: 1rem; margin: 0; max-width: none; }
  .studio-chat .msg-user { background: var(--ink); color: var(--bg); border: 0; border-radius: 12px; padding: 0.6rem 0.85rem; max-width: 92%; font-size: 0.84rem; line-height: 1.5; }
  .studio-chat .reply { font-size: 0.84rem; }
  .studio-chat .progress { max-width: 100%; }
  .studio-chat .composer-row { padding: 0.45rem 0.5rem 0.45rem 0.85rem; }
  .studio-chat .composer-row .ph { font-size: 0.84rem; }
  .studio-preview { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgb(242 234 217 / 0.2) transparent; border-radius: 14px; border: 1px solid var(--edge-soft); background: rgb(20 36 27 / 0.6); padding: 1rem; display: grid; align-content: start; gap: 0.8rem; }
  .pv-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 0.85rem; padding: 3rem 1rem; }
  .piece { position: relative; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
  .piece * { transition: color 0.45s var(--ease-out), opacity 0.45s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
  .piece.hidden { opacity: 0; transform: translateY(6px) scale(0.98); }
  /* An empty box: its frame and colours are there, its words and pictures not yet. */
  .piece.shell, .piece.shell * { color: transparent !important; }
  .piece.shell img, .piece.shell svg, .piece.shell .wave, .piece.shell .rec-dot, .piece.shell .bar i, .piece.shell .unread { opacity: 0; }
  .piece.shell mark { background: transparent; }
  .pv-head { display: flex; align-items: center; gap: 0.75rem; }
  .pv-head img { width: 3rem; height: 3rem; object-fit: contain; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.35)); }
  .pv-head b { display: block; font-family: var(--font-display); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; font-weight: 600; font-size: 1.15rem; }
  .pv-head span { display: block; font-size: 0.78rem; color: var(--ink-3); }
  .pv-card { border: 1px solid var(--edge-soft); border-radius: 12px; background: rgb(242 234 217 / 0.045); padding: 0.75rem 0.85rem; font-size: 0.8rem; }
  .pv-card h5 { margin: 0 0 0.45rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mushroom); font-weight: 600; }
  .pv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
  .pv-stats div { border: 1px solid var(--edge-soft); border-radius: 12px; background: rgb(242 234 217 / 0.045); padding: 0.6rem 0.75rem; }
  .pv-stats b { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
  .pv-stats span { font-size: 0.72rem; color: var(--ink-3); }
  .pv-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.42rem 0; border-bottom: 1px solid var(--edge-soft); }
  .pv-row:last-child { border-bottom: 0; }
  .pv-row .grow { flex: 1; min-width: 0; }
  .pv-row small { color: var(--ink-3); }
  .pv-btn { display: inline-flex; align-items: center; height: 1.9rem; padding: 0 0.8rem; border-radius: 8px; font-size: 0.78rem; font-weight: 500; background: var(--ink); color: #14261b; transition: transform 0.16s var(--ease-out), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
  .pv-btn.quiet { background: transparent; color: var(--ink-2); border: 1px solid var(--edge); }
  /* "Try it": the button is pressed, then its label turns into what pressing it did. */
  .pv-btn.pressing { transform: scale(0.97); transition-duration: 0.1s; }
  .pv-btn .lbl { transition: opacity 0.15s var(--ease-out), filter 0.15s var(--ease-out); }
  .pv-btn .lbl.out { opacity: 0; filter: blur(2px); }
  .pv-btn.done { background: rgb(155 211 106 / 0.16); color: #9bd36a; border-color: transparent; }
  .rec { display: flex; align-items: center; gap: 0.7rem; }
  /* Once the app is published the recording has stopped: the dot holds, the waveform freezes. */
  .rec.stopped .rec-dot { animation: none; }
  .rec.stopped .wave i { animation-play-state: paused; }
  .rec-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.2s ease-in-out infinite; }
  @keyframes blink { 50% { opacity: 0.35; } }
  .wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 2rem; }
  .wave i { flex: 1; border-radius: 2px; background: var(--mushroom); animation: wave 1s ease-in-out infinite; }
  @keyframes wave { 50% { transform: scaleY(0.35); } }
  .soap p { margin: 0 0 0.45rem; line-height: 1.5; color: var(--ink-2); }
  .soap p b { color: var(--ink); margin-right: 0.3rem; }
  .bar { height: 0.42rem; border-radius: 999px; background: rgb(242 234 217 / 0.1); overflow: hidden; width: 6rem; }
  .bar i { display: block; height: 100%; border-radius: inherit; }
  .bubble-out { align-self: flex-start; max-width: 88%; padding: 0.55rem 0.75rem; border-radius: 14px 14px 14px 4px; background: rgb(242 234 217 / 0.1); line-height: 1.45; }
  .bubble-in { margin-left: auto; max-width: 88%; padding: 0.55rem 0.75rem; border-radius: 14px 14px 4px 14px; background: #3b6ea8; color: #fff; line-height: 1.45; }
  .bubble-out mark, .bubble-in mark { background: rgb(246 185 59 / 0.28); color: inherit; border-radius: 3px; padding: 0 2px; }
  .thread { display: grid; gap: 0.5rem; }
  .inbox { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 0.7rem; }
  .unread { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--sky); flex: none; }
  .suggest { display: flex; gap: 0.5rem; align-items: flex-start; padding: 0.55rem 0.7rem; border-radius: 10px; border: 1px dashed rgb(140 196 240 / 0.5); background: rgb(140 196 240 / 0.06); color: var(--ink-2); line-height: 1.45; }
  .suggest b { color: var(--sky); font-weight: 600; white-space: nowrap; }
  .actions { display: flex; gap: 0.45rem; flex-wrap: wrap; }
  .rule { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
  .rule span { padding: 0.25rem 0.6rem; border-radius: 999px; border: 1px solid var(--edge); }
  .rule em { color: var(--ink-3); font-style: normal; }


  /* ---- Watch it work: two recorded videos ---- */
  #highlights { padding-top: 2rem; }
  .vids { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.2rem; }
  .vid { margin: 0; }
  .vid-frame { aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: rgb(14 26 18); box-shadow: 0 18px 40px rgb(0 0 0 / 0.3); }
  .vid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: rgb(14 26 18); }
  .vid h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin: 1rem 0 0.3rem; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
  .vid h3 .k { display: inline; margin-right: 0.55rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mushroom); vertical-align: 0.18em; }
  .vid p { margin: 0; color: var(--ink-2); line-height: 1.55; max-width: 34rem; }
  @media (max-width: 820px) { .vids { grid-template-columns: 1fr; } }

  /* ---- Beta ---- */
  .cta-wrap { position: relative; isolation: isolate; }
  .beta { position: relative; overflow: hidden; padding: 3rem 2.6rem; display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 2.6rem; align-items: start; }
  .cta-sun { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: var(--accent); left: -170px; bottom: -200px; z-index: -1; }
  .beta-copy { display: grid; gap: 1.1rem; align-content: start; }
  .beta-copy .lede { font-size: 1.08rem; }
  /* On phones the slogan fills the line instead of balancing its lines. */
  @media (max-width: 640px) { .beta-copy .h2 { text-wrap: wrap; } }
  .beta-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; color: var(--ink-2); font-size: 0.95rem; }
  .beta-list li { display: flex; gap: 0.55rem; align-items: baseline; }
  .beta-list li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--mushroom); transform: translateY(-1px); }
  form.join { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; padding: 1.4rem; border-radius: 16px; background: rgb(31 53 39 / 0.9); border: 1px solid var(--edge); }
  form.join label { display: grid; gap: 0.35rem; font-size: 0.82rem; color: var(--ink-2); }
  form.join .wide { grid-column: 1 / -1; }
  form.join input, form.join select, form.join textarea { font: inherit; font-size: 0.95rem; color: var(--ink); background: rgb(242 234 217 / 0.06); border: 1px solid var(--edge); border-radius: 10px; padding: 0.6rem 0.75rem; width: 100%; }
  form.join select option { color: #1f3527; background: #f2ead9; }
  form.join textarea { min-height: 5rem; resize: vertical; }
  form.join input:focus, form.join select:focus, form.join textarea:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: transparent; }
  form.join .btn { justify-self: start; }
  .waitlist-head { display: flex; gap: 0.9rem; align-items: center; padding-bottom: 1rem; margin-bottom: 0.2rem; border-bottom: 1px solid var(--edge); }
  .waitlist-head img { flex: none; width: 3.2rem; height: 3.2rem; }
  .waitlist-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 1.55rem; line-height: 1.1; color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
  .waitlist-head p { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
  form.join .others { margin: -0.3rem 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--ink-3); }
  form.join .fine { grid-column: 1 / -1; margin: 0; font-size: 0.8rem; color: var(--ink-3); }
  /* "Which system?" and the error line open to their height. Each sits inside the
     row next to it and carries its own spacing, so closed they take no room at all
     (a grid row of its own would keep its gap). */
  form.join .reveal > div { padding: 3px; margin: -3px; }
  #other-wrap label { margin-top: 0.9rem; }
  form.join input, form.join select, form.join textarea { transition: border-color 0.15s var(--ease-out); }
  form.join [aria-invalid="true"] { border-color: rgb(232 67 46 / 0.85); }
  /* Sending: the label dissolves into a spinner and the button dims, at the same width. */
  form.join .btn { position: relative; }
  form.join .btn .lbl { display: inline-flex; align-items: center; gap: 0.45rem; transition: opacity 0.15s var(--ease-out), filter 0.15s var(--ease-out); }
  form.join .btn .busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.45rem; opacity: 0; transition: opacity 0.15s var(--ease-out); }
  form.join .btn .busy svg { animation: spin 0.8s linear infinite; }
  form.join .btn.sending { opacity: 0.8; cursor: progress; }
  form.join .btn.sending .lbl { opacity: 0; filter: blur(2px); }
  form.join .btn.sending .busy { opacity: 1; }
  form.join .form-msg { margin: 0 0 0.6rem; font-size: 0.85rem; color: #ffb3a6; }
  /* Signed up: the form's content leaves (160ms) and a thank-you takes its place,
     with the gnome settling in, the same tilt as the logo's hover. */
  form.join { position: relative; }
  form.join > :not(.wl-done) { transition: opacity 0.16s var(--ease-in), transform 0.16s var(--ease-in), filter 0.16s var(--ease-in); }
  form.join.sent > :not(.wl-done) { opacity: 0; transform: translateY(-4px); filter: blur(2px); pointer-events: none; }
  .wl-done { position: absolute; inset: 1.4rem; display: grid; place-content: center; justify-items: center; text-align: center; gap: 0.35rem; opacity: 0; transform: translateY(8px); filter: blur(4px); visibility: hidden; pointer-events: none;
    transition: opacity var(--dur-enter) var(--ease-out) 0.12s, transform var(--dur-enter) var(--ease-out) 0.12s, filter var(--dur-enter) var(--ease-out) 0.12s, visibility 0s 0.12s; }
  .wl-done img { width: 4.2rem; height: 4.2rem; margin-bottom: 0.3rem; transform: scale(0.9) rotate(-8deg); transition: transform 0.52s cubic-bezier(0.34, 1.4, 0.64, 1) 0.16s; }
  .wl-done b { font-family: var(--font-display); font-weight: 900; font-size: 1.45rem; line-height: 1.1; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
  .wl-done p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
  .wl-done:focus { outline: none; }
  form.join.sent .wl-done { opacity: 1; transform: none; filter: none; visibility: visible; pointer-events: auto; }
  form.join.sent .wl-done img { transform: none; }

  /* On phones the top button shortens to "Waitlist" so the name stays on one line. */
  @media (max-width: 479px) { .nav-cta-long { display: none; } .nav-cta .btn-sm { padding: 0 0.6rem; font-size: 0.8rem; } }

  /* ---- Footer ---- */
  .foot-row { align-items: center; }
  .foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink-2); }
  .foot-brand img { height: 1.9rem; width: auto; }
  .foot-brand b { font-family: var(--font-display); font-weight: 900; color: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
  .foot-links { display: flex; gap: 1.4rem; align-items: center; }
  .foot-links a { color: var(--ink-2); text-decoration: none; transition: var(--hover-fade); }
  .foot-links a:hover { color: var(--ink); }

  .toast {
    position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px); z-index: 90;
    padding: 0.6rem 1rem; border-radius: 10px; font-size: 0.85rem;
    background: rgb(31 53 39 / 0.92); border: 1px solid var(--edge); color: var(--ink);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    opacity: 0; pointer-events: none; transition: opacity 0.16s var(--ease-in), transform 0.16s var(--ease-in);
  }
  .toast.on { transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out); }
  .toast.on { opacity: 1; transform: translate(-50%, 0); }

  @media (max-width: 960px) {
    .q-groups {
      overflow: hidden;
      padding: 2px;
      touch-action: pan-y;
    }
    .q-track { display: flex; }
    .q-group { min-width: 0; flex: 0 0 100%; box-sizing: border-box; }
    .q-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0.75rem 0 0; }
    .q-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--edge); border-radius: 50%; background: var(--glass-soft); color: var(--ink); font: inherit; font-size: 1.4rem; cursor: pointer; transition: var(--hover-fade); }
    .q-controls button:active { transform: scale(0.97); }
    .q-controls button:hover { background: var(--glass); }
    .q-controls button:focus-visible { outline: 2px solid var(--sky); outline-offset: -3px; }
    .q-position { min-width: 3rem; text-align: center; color: var(--ink-2); font-size: 0.85rem; }
    .hero-grid, .beta { grid-template-columns: 1fr; }
    .studio-split { grid-template-columns: 1fr; grid-template-rows: minmax(0, 0.8fr) minmax(0, 1.2fr); }
    .build-stage .app { height: 860px; }
    .gnome-stage { justify-self: center; max-width: 440px; }
    section { padding: 4rem 0; }
  }
  @media (max-width: 640px) {
    section { padding: 3.25rem 0; }
    .brand-name { font-size: 1rem; }
    .brand img { height: 2.2rem; }
    .shelf { gap: 1.1rem; }
    .shelf-app img { width: 62px; height: 62px; }
    .shelf-app { font-size: 0.76rem; }
    .studio-main { padding: 2.6rem 0.7rem 0.7rem; }
    /* On a phone only the current step keeps its label. */
    .stepper li { font-size: 0.72rem; padding-right: 0.3rem; }
    .stepper li span { display: none; }
    .stepper li.on { padding-right: 0.65rem; }
    .stepper li.on span { display: inline; }
    .pub-btn .long { display: none; }
    .pv-row { flex-wrap: wrap; }
    .pv-row .grow { flex: 1 1 100%; }
    .pv-stats { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
    .pv-stats b { font-size: 1.05rem; }
    .inbox { grid-template-columns: 1fr; }
    .stage .app { height: 640px; }
    .stage .s3, .stage .s4 { display: none; }
    .ap-fields > div { gap: 0.5rem; }
    .ap-fields > div > span:first-child { width: 4.6rem; }
    .ap-body, .ap-foot { padding-left: 0.8rem; padding-right: 0.8rem; }
    .stage .app-bar span { padding-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .beta { padding: 2rem 1.2rem; }
    form.join { grid-template-columns: 1fr; padding: 1.1rem; }
    .foot-row { flex-direction: column; align-items: flex-start; }
  }


  /* ---- The homepage: additions to the site's styles ---- */
  ::selection { background: rgb(216 195 154 / 0.35); color: var(--ink); }
  .nav-cta-short { display: none; }
  @media (max-width: 479px) { .nav-cta-short { display: inline; } }

  /* Hero: the headline is the h1; the wordmark lives in the nav. */
  .hero-title { margin: 0.2rem 0 1.1rem; font-size: clamp(2.7rem, 4.9vw, 4.4rem); line-height: 0.98; letter-spacing: -0.015em; font-weight: 900; text-wrap: balance; max-width: 13ch; }
  .hero .hero-sub { max-width: 30ch; font-size: clamp(1.12rem, 1.55vw, 1.32rem); line-height: 1.38; margin-bottom: 1.8rem; }
  .ui-card .uc-tick { display: flex; align-items: center; gap: 0.5em; margin-top: 0.45em; font-size: 0.92em; color: var(--ink); }
  .ui-card .uc-tick::before { content: ""; flex: none; width: 0.5em; height: 0.5em; border-radius: 50%; background: #7fd6a4; }
  .ui-card.uc-2 b { display: block; font-size: 1.02em; line-height: 1.3; }

  /* Sections share one rhythm: a head, then one piece of evidence. */
  #learn .section-head, #share .section-head { max-width: 46rem; }
  .learn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--edge); }
  .learn li { display: grid; align-content: start; gap: 1.1rem; padding: 1.4rem 1.4rem 1.5rem 0; border-bottom: 1px solid var(--edge); }
  .learn li + li { padding-left: 1.4rem; border-left: 1px solid var(--edge); }
  .learn-k { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; color: var(--mushroom); }
  .art { display: grid; font-size: 0.92rem; }
  .art small { margin-bottom: 0.35rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
  .art > span { display: flex; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; border-top: 1px solid var(--edge-soft); color: var(--ink); font-variant-numeric: tabular-nums; }
  .art em { font-style: normal; color: var(--ink-2); }
  .learn-close { margin: 1.6rem 0 0; color: var(--ink-2); font-size: 1.05rem; }
  .learn-big { margin: 2.2rem 0 0; max-width: 32ch; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.12; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; text-wrap: balance; }
  .learn-big em { color: var(--mushroom); }

  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.2rem; align-items: center; }
  .split .section-head { margin: 0; }
  .plan { margin: 0; padding: 1.4rem; border-radius: 18px; border: 1px solid var(--edge); background: rgb(20 36 27 / 0.55); display: grid; gap: 1rem; }
  .plan-q { justify-self: end; max-width: 85%; margin: 0; padding: 0.7rem 0.95rem; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 0.95rem; line-height: 1.45; }
  .plan-steps { list-style: none; margin: 0; padding: 0; }
  .plan-steps li { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.1rem; font-size: 0.95rem; color: var(--ink); border-top: 1px solid var(--edge-soft); }
  .answer { display: grid; gap: 0.9rem; padding-top: 1.1rem; border-top: 1px solid var(--edge); }
  .answer-head { margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .answer-head b { font-weight: 600; font-size: 0.98rem; }
  .answer-head span { color: var(--ink-2); font-size: 0.82rem; }
  .bars { display: grid; gap: 0.4rem; }
  .bars div { display: grid; grid-template-columns: 6.8rem minmax(0, 1fr) 2.4rem; gap: 0.7rem; align-items: center; font-size: 0.86rem; color: var(--ink-2); }
  .bars i { height: 0.6rem; width: var(--w); border-radius: 3px; background: rgb(216 195 154 / 0.6); }
  .bars div:nth-child(-n+2) i { background: var(--accent); }
  .bars div:nth-child(-n+2) { color: var(--ink); }
  .bars b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
  .answer-fix { margin: 0; color: var(--ink-2); font-size: 0.93rem; line-height: 1.5; }
  .answer-fix b { color: var(--ink); font-weight: 600; }
  .answer-src { justify-self: start; color: var(--mushroom); font-size: 0.88rem; text-decoration: underline; text-decoration-color: rgb(216 195 154 / 0.45); text-underline-offset: 0.22em; }

  /* The saved workflow, and the hospitals that use it. */
  .flow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 3rem; align-items: center; }
  .flow-card { padding: 1.5rem; border-radius: 18px; border: 1px solid var(--edge); background: rgb(20 36 27 / 0.55); box-shadow: 0 18px 40px rgb(0 0 0 / 0.25); }
  .flow-top { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
  .flow-top img { width: 3.4rem; height: 3.4rem; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.35)); }
  .flow-top b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
  .flow-top span { color: var(--ink-2); font-size: 0.9rem; }
  .flow-steps { list-style: none; counter-reset: fs; margin: 0; padding: 0; }
  .flow-steps li { counter-increment: fs; display: flex; align-items: baseline; gap: 0.75rem; padding: 0.6rem 0; border-top: 1px solid var(--edge-soft); font-size: 0.95rem; }
  .flow-steps li::before { content: counter(fs); width: 1.2rem; flex: none; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .flow-steps li.added { color: #9be3b8; }
  .flow-steps li.added em { margin-left: auto; font-style: normal; font-size: 0.82rem; color: var(--ink-2); white-space: nowrap; }
  .flow-uses { margin: 0 0 0.9rem; font-size: 1.05rem; color: var(--ink-2); }
  .flow-uses b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 4rem; line-height: 0.9; color: var(--mushroom); }
  .flow-sites ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.2rem; }
  .flow-sites li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.95rem; }
  .flow-sites li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #7fd6a4; flex: none; }
  .flow-sites small { color: var(--ink-2); font-size: 0.8rem; }

  /* Video chapters. */
  .chapters { list-style: none; margin: 1.2rem 0 0; padding: 0; max-width: 60rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
  .chapters button { display: grid; gap: 0.25rem; width: 100%; min-height: 44px; padding: 0.8rem 0 0; text-align: left; font: inherit; color: var(--ink-2); background: none; border: 0; border-top: 1px solid var(--edge); cursor: pointer; transition: var(--hover-fade); }
  .chapters button:hover { color: var(--ink); }
  .chapters button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
  .chapters time { font-size: 0.85rem; color: var(--mushroom); font-variant-numeric: tabular-nums; }
  .trust { margin: 1.1rem 0 0 !important; color: var(--ink) !important; font-weight: 500; }

  /* Hero options. b: three cards, larger and flatter. a: one answer card in front. */
  .ui-card.big { font-size: calc(2.9 * var(--u)); width: 46%; }
  .ui-card.big.uc-1 { left: -8%; top: 8%; transform: rotateY(12deg); }
  .ui-card.big.uc-2 { right: -12%; top: 4%; width: 44%; transform: rotateY(-12deg); }
  .ui-card.big.uc-3 { right: -10%; bottom: 16%; width: 42%; transform: rotateY(-10deg); }
  .ui-card.held { position: absolute; left: -6%; bottom: 4%; width: 60%; font-size: calc(2.9 * var(--u)); transform: rotateY(10deg) rotateX(4deg); animation: card-float 7s ease-in-out 2; }
  .ui-card .uc-src { display: block; margin-top: 0.8em; font-size: 0.82em; color: var(--ink-2); }
  @media (max-width: 1320px) { .ui-card.big.uc-2 { right: -4%; } .ui-card.big.uc-3 { right: -3%; } }

  /* Small fixes (scopes a and b): no leftover red disc, a section row on phones,
     a footer that wraps, and tap targets of 44px. */
  .mnav { display: none; }
  html:not([data-scope="c"]) .cta-sun { display: none; }
  html:not([data-scope="c"]) .foot-links { flex-wrap: wrap; row-gap: 0; }
  @media (max-width: 820px) {
    .mnav:not([hidden]) { display: flex; gap: 1.4rem; overflow-x: auto; padding: 0 16px; border-top: 1px solid var(--edge-soft); font-size: 0.88rem; color: var(--ink-2); scrollbar-width: none; }
    .mnav a { display: flex; align-items: center; min-height: 44px; white-space: nowrap; }
  }
  @media (max-width: 640px) {
    html:not([data-scope="c"]) .nav-cta .btn-sm { min-height: 44px; }
    html:not([data-scope="c"]) .foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
    .ui-card.held { width: 72%; left: -2%; }
  }

  [data-show][hidden] { display: none !important; }

  .plan-steps svg { width: 1.05rem; height: 1.05rem; flex: none; color: #9bd36a; }

  .spread { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
  .spread li { border-top: 1px solid var(--edge); padding-top: 1.2rem; display: grid; gap: 0.45rem; }
  .spread b { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
  .spread span { color: var(--ink-2); line-height: 1.55; }

  /* Proof: the six-hospital video, loaded from YouTube only on play. */
  .yt { max-width: 60rem; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); background: rgb(14 26 18); box-shadow: 0 18px 40px rgb(0 0 0 / 0.3); }
  .yt iframe { display: block; width: 100%; height: 100%; border: 0; }
  .yt-cover { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
  .yt-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out), filter 0.3s var(--ease-out); }
  .yt-cover:hover img { transform: scale(1.015); filter: brightness(1.06); }
  .yt-cover:focus-visible { outline: 2px solid var(--sky); outline-offset: -4px; }
  .yt-play { position: absolute; left: 50%; top: 50%; width: 4.6rem; height: 4.6rem; margin: -2.3rem 0 0 -2.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgb(0 0 0 / 0.35); transition: transform 0.2s var(--ease-out); }
  .yt-cover:hover .yt-play { transform: scale(1.06); }
  .yt-cover:active .yt-play { transform: scale(0.97); }
  .yt-play svg { width: 1.6rem; height: 1.6rem; margin-left: 0.22rem; }
  .yt-len { position: absolute; right: 0.8rem; bottom: 0.8rem; padding: 0.2rem 0.5rem; border-radius: 6px; background: rgb(14 26 18 / 0.85); color: var(--ink); font-size: 0.8rem; font-variant-numeric: tabular-nums; }

  /* Works with: AVImark has its own page. */
  .systems { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 3.2rem; align-items: center; }
  .systems-copy .h2 { margin-bottom: 1.1rem; }
  .systems-copy p { margin: 0; color: var(--ink-2); max-width: 36rem; line-height: 1.6; }
  .avimark-link { display: grid; gap: 0.8rem; padding: 2rem; border-radius: 20px; color: var(--ink); text-decoration: none; transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out); }
  .avimark-link:hover { transform: translateY(-3px); border-color: rgb(216 195 154 / 0.55); }
  .avimark-link:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
  .avimark-link img { width: 3.2rem; height: 3.2rem; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.35)); }
  .avimark-link .name { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1.05; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; }
  .avimark-link .name em { color: var(--mushroom); }
  .avimark-link p { margin: 0; color: var(--ink-2); }
  .avimark-link .more { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--mushroom); font-weight: 500; }
  .avimark-link .more svg { width: 1rem; height: 1rem; transition: transform 0.25s var(--ease-out); }
  .avimark-link:hover .more svg { transform: translateX(3px); }

  /* The question form. */
  form.join ::placeholder { color: rgb(242 234 217 / 0.64); }
  form.join textarea[name="question"] { min-height: 6rem; }

  @media (max-width: 960px) {
    .split, .systems, .flow { grid-template-columns: 1fr; gap: 2rem; }
    .chapters { grid-template-columns: 1fr; gap: 0; }
    .spread { grid-template-columns: 1fr; gap: 1.4rem; }
  }
  @media (max-width: 640px) {
    .hero-title { font-size: clamp(2.35rem, 10.5vw, 3rem); }
    .learn { grid-template-columns: 1fr; }
    .learn li + li { padding-left: 0; border-left: 0; }
    .learn li { padding-right: 0; }
    .avimark-link { padding: 1.5rem; }
    .yt-play { width: 3.8rem; height: 3.8rem; margin: -1.9rem 0 0 -1.9rem; }
  }


  /* ---- The four page structures: pieces they add to home.css ---- */
  .cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
  .cmp-note { margin: 1rem 0 0; color: var(--ink-2); font-size: 0.88rem; }
  #question .beta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* The form sits straight on the section's panel, not in a second card inside it. */
  #question form.join { padding: 0; border: 0; border-radius: 0; background: none; }
  /* Under the hero button: the practice systems, AVImark linking to its page. */
  .hero-works { margin: 1.5rem 0 0; max-width: 34ch; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
  .hero-works a { color: var(--mushroom); font-weight: 600; text-decoration: underline; text-decoration-color: rgb(216 195 154 / 0.45); text-underline-offset: 0.22em; transition: var(--hover-fade); }
  .hero-works a:hover { color: var(--ink); text-decoration-color: currentColor; }
  /* No one-word last lines in running text. */
  .lede, .scene-copy p, .hero-sub, .fm-story span { text-wrap: pretty; }

  /* Savings, side by side (s4). */
  .cmp { display: grid; grid-template-columns: 1fr 1fr; max-width: 52rem; border-top: 1px solid var(--edge); }
  .cmp-col { padding: 1.4rem 1.6rem 1.4rem 0; }
  .cmp-col.gwo { padding-left: 1.6rem; border-left: 1px solid var(--edge); }
  .cmp-k { margin: 0 0 0.4rem; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
  .cmp-n { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
  .cmp-col.gwo .cmp-n { color: var(--mushroom); }
  .cmp-n span { font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; letter-spacing: 0; color: var(--ink-2); }
  .cmp-c { margin: 0.6rem 0 0; color: var(--ink); }

  /* s1: the memo. One column, read top to bottom, made to be forwarded. */
  .memo { max-width: 46rem; margin: 0 auto; padding: 2.2rem 2.4rem 2.6rem; border-radius: 18px; border: 1px solid var(--edge); background: rgb(242 234 217 / 0.04); }
  .memo-head { margin: 0 0 1.6rem; border-bottom: 1px solid var(--edge); padding-bottom: 1rem; display: grid; gap: 0.35rem; }
  .memo-head > div { display: grid; grid-template-columns: 4rem 1fr; }
  .memo-head dt { color: var(--ink-2); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.15rem; }
  .memo-head dd { margin: 0; color: var(--ink); }
  .memo-points { list-style: none; counter-reset: mp; margin: 0; padding: 0; display: grid; gap: 1.8rem; }
  .memo-points > li { counter-increment: mp; display: grid; gap: 0.6rem; padding-left: 2.6rem; position: relative; }
  .memo-points > li::before { content: counter(mp); position: absolute; left: 0; top: 0.1rem; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 1; color: var(--mushroom); }
  .memo-h { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.15; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
  .memo-points p { margin: 0; color: var(--ink-2); line-height: 1.6; }
  .art-inline { max-width: 24rem; }
  .memo-cmp { width: 100%; max-width: 30rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .memo-cmp th, .memo-cmp td { padding: 0.55rem 0.8rem 0.55rem 0; text-align: left; border-bottom: 1px solid var(--edge-soft); }
  .memo-cmp thead th { font-weight: 500; font-size: 0.8rem; color: var(--ink-2); }
  .memo-cmp tbody th { font-weight: 500; color: var(--ink-2); }
  .memo-cmp tr.gwo td, .memo-cmp tr.gwo th { color: var(--mushroom); font-weight: 600; }

  /* s2: before and after. A label column, then "By hand" and "With Gwo". */
  .ba { border-top: 1px solid var(--edge); }
  .ba-head, .ba-row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 2rem; }
  .ba-head { padding: 0.8rem 0; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--edge); }
  .ba-head span:last-child { color: var(--mushroom); }
  .ba-row { padding: 1.6rem 0; border-bottom: 1px solid var(--edge); align-items: start; }
  .ba-label { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
  .ba-old, .ba-new { display: grid; gap: 0.5rem; align-content: start; }
  .ba-old small, .ba-new small { display: none; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
  .ba-new small { color: var(--mushroom); }
  .ba-old p, .ba-new p { margin: 0; line-height: 1.55; }
  .ba-old p, .ba-old span { color: var(--ink-2); }
  .ba-new p { color: var(--ink); }
  .ba-n { white-space: nowrap; font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 2.8vw, 2.6rem); line-height: 1; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
  .ba-old .ba-n { color: var(--ink-2); }
  .ba-new .ba-n { color: var(--mushroom); }
  .ba-new span { color: var(--ink); }
  .bars.mini { max-width: 22rem; }

  /* s3: the number leads. */
  .number { padding: 3.5rem 0 4.5rem; border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); background: rgb(14 26 18 / 0.35); }
  .num-job { margin: 0 0 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; color: var(--ink); }
  .num-row { display: grid; grid-template-columns: auto auto auto; justify-content: start; align-items: center; gap: 2.4rem; }
  .num-col { display: grid; gap: 0.3rem; }
  .num-k { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
  .num-big { font-family: var(--font-display); font-weight: 900; font-size: clamp(3.6rem, 9vw, 6rem); line-height: 0.95; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .num-big.old { color: var(--ink-2); }
  .num-big.new { color: var(--mushroom); }
  .num-u { color: var(--ink); }
  .num-arrow { width: 3.2rem; color: var(--ink-2); }


  @media (max-width: 960px) {
    #question .beta { grid-template-columns: 1fr; }
    .ba-head { display: none; }
    .ba-row { grid-template-columns: 1fr; gap: 1rem; }
    .ba-old small, .ba-new small { display: block; }
  }
  @media (max-width: 640px) {
    .memo { padding: 1.5rem 1.2rem 1.8rem; }
    .memo-points > li { padding-left: 2rem; }
    .cmp { grid-template-columns: 1fr; }
    .cmp-col.gwo { padding-left: 0; border-left: 0; border-top: 1px solid var(--edge); }
    .num-row { grid-template-columns: 1fr; gap: 1rem; }
    .num-arrow { transform: rotate(90deg); width: 2.4rem; }
  }


  /* ---- Scenes: shared drawing styles ---- */
  .scene-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-body); }
  .sc-house { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .sc-name { fill: var(--ink-2); font-size: 14px; }
  .sc-chip rect { fill: rgb(242 234 217 / 0.06); stroke: rgb(242 234 217 / 0.3); }
  .sc-code { fill: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
  .sc-link { fill: none; stroke: rgb(216 195 154 / 0.55); stroke-width: 1.4; }
  .sc-label rect { fill: rgb(127 214 164 / 0.12); stroke: #7fd6a4; }
  .sc-label-t { fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 17px; }
  .sc-label-s { fill: var(--ink-2); font-size: 12px; }
  .sc-q rect { fill: var(--ink); }
  .sc-q-t { fill: #14261b; font-size: 13.5px; font-weight: 500; }
  .sc-track { fill: rgb(242 234 217 / 0.07); }
  .sc-bar { fill: rgb(216 195 154 / 0.7); }
  .sc-bar.hot { fill: var(--accent); }
  .sc-num { fill: var(--ink); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .sc-src { fill: var(--mushroom); font-size: 13px; font-variant-numeric: tabular-nums; }
  .sc-node circle { fill: rgb(242 234 217 / 0.05); stroke: rgb(242 234 217 / 0.3); transition: fill 0.4s var(--ease-out), stroke 0.4s var(--ease-out); }
  .sc-node .sc-check { fill: none; stroke: #14261b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity 0.3s var(--ease-out); }
  .sc-node.on circle { fill: rgb(127 214 164 / 0.22); stroke: #7fd6a4; }
  .sc-node.on .sc-check { opacity: 1; }
  .sc-node.on .sc-check { stroke: #7fd6a4; }
  .sc-big { fill: var(--mushroom); font-family: var(--font-display); font-weight: 900; font-size: 44px; font-variant-numeric: tabular-nums; }
  .sc-token rect { fill: #7fd6a4; }
  /* Hospital icons. */
  .hb-t { fill: #efe6d2; } .hb-l { fill: #c9bea6; } .hb-r { fill: #a99e88; }
  .hb-t, .hb-l, .hb-r { transition: fill 0.45s var(--ease-out); }
  .hi-cross { fill: none; stroke: #e8432e; stroke-width: 1.9; stroke-linecap: round; }
  .hi-pin { fill: rgb(242 234 217 / 0.06); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
  .sc-node.on .hb-t { fill: #a8ebc4; } .sc-node.on .hb-l { fill: #7fd6a4; } .sc-node.on .hb-r { fill: #5fb987; }
  .sc-node.on .hb-t ~ .hi-cross { stroke: #14261b; }
  .sc-node.on .sc-house, .sc-node.on .hi-pin { stroke: #7fd6a4; }  .sc-rule { stroke: rgb(242 234 217 / 0.14); stroke-width: 1; }
  .sc-find { fill: var(--ink); font-size: 16px; font-weight: 600; }
  .sc-kind { fill: var(--ink-2); font-size: 12px; opacity: 0.8; }
  .sc-fu rect { fill: rgb(127 214 164 / 0.12); stroke: #7fd6a4; }
  .sc-fu-t { fill: var(--ink); font-size: 13.5px; }
  .sc-dot { fill: #9be3b8; }
  .sh-card-bg { fill: rgb(242 234 217 / 0.05); stroke: rgb(242 234 217 / 0.22); }
  .sh-title { fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 17px; }
  .sh-n { fill: var(--mushroom); font-size: 13px; font-weight: 700; }
  .sh-step { fill: var(--ink); font-size: 13px; }
  .sh-add-bg { fill: rgb(127 214 164 / 0.12); stroke: #7fd6a4; }
  .sh-st { fill: var(--ink-2); font-size: 12px; }
  .sh-st.new { fill: #7fd6a4; font-weight: 600; }
  .sv-p { fill: rgb(216 195 154 / 0.8); }
  .sv-done-t { fill: #9be3b8; font-family: var(--font-display); font-weight: 900; font-size: 40px; }
  .race-viz { margin: 0.4rem 0 1.4rem; }
  .sh-story-t { fill: var(--ink); font-size: 13px; }
  /* "What works spreads" options. */
  .sc-grid { stroke: rgb(242 234 217 / 0.06); stroke-width: 1; }
  .cv-typ { fill: none; stroke: rgb(242 234 217 / 0.32); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .cv-gwo { fill: none; stroke: #7fd6a4; stroke-width: 2.8; stroke-linejoin: round; stroke-linecap: round; }
  .cv-dot { fill: #7fd6a4; stroke: var(--bg); stroke-width: 2; }
  .fm-top { fill: #1b2f22; stroke: rgb(242 234 217 / 0.1); }
  .fm-pulse { fill: none; stroke: #7fd6a4; stroke-width: 1.5; }
  .fm-pulse.y { stroke: #f2c14e; }
  .sh-n.g { fill: #7fd6a4; } .sh-n.y { fill: #f2c14e; }
  .fm-head { margin: 0 0 0.4rem; font-weight: 600; font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
  .fm-story { list-style: none; margin: 0.6rem 0 0; padding: 0.9rem 0 0; border-top: 1px solid var(--edge); display: grid; gap: 0.45rem; }
  .fm-story li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.4rem; font-size: 0.95rem; line-height: 1.4; color: var(--ink); }
  .fm-story b { font-weight: 700; font-variant-numeric: tabular-nums; }
  .fm-story b.g { color: #7fd6a4; } .fm-story b.y { color: #f2c14e; }
  .fm-badge rect:first-child { fill: #14261b; stroke: #7fd6a4; stroke-width: 1.5; }
  .fm-badge .fm-bar { fill: #7fd6a4; }
  .fm-badge.y rect:first-child { stroke: #f2c14e; }
  .fm-badge.y .fm-bar { fill: #f2c14e; }
  /* The improved version: gold buildings. */
  .sc-node.v2 .hb-t { fill: #fbe3a0; } .sc-node.v2 .hb-l { fill: #f2c14e; } .sc-node.v2 .hb-r { fill: #c99a2e; }
  .on-k { fill: var(--ink-2); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; }
  .on-k.g, .on-tot.g { fill: #9be3b8; }
  .on-b { fill: rgb(216 195 154 / 0.62); }
  .on-b.g { fill: #7fd6a4; }
  .on-re { fill: #7fd6a4; font-size: 12.5px; font-weight: 600; }
  .on-tot { fill: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; }
  .on-tot tspan + tspan { font-size: 18px; }
  .cv-n { fill: var(--mushroom); font-size: 13px; font-weight: 700; }
  .halo { paint-order: stroke; stroke: var(--bg); stroke-width: 5px; stroke-linejoin: round; }
  .sc-kind-t { fill: var(--ink-2); opacity: 0.8; }
  .cv-end { fill: #9be3b8; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .lib-t { fill: rgb(242 234 217 / 0.05); stroke: rgb(242 234 217 / 0.16); }
  .lib-l { fill: rgb(242 234 217 / 0.22); }
  .pp-run rect { fill: rgb(127 214 164 / 0.12); stroke: #7fd6a4; }
  .pp-run-t { fill: var(--ink); font-size: 13.5px; font-weight: 600; }
  .pp-run-go { fill: #9be3b8; font-size: 13px; font-weight: 700; }
  .pp-after { fill: #7fd6a4; font-size: 13px; font-weight: 600; }
  .pp-check { fill: none; stroke: #7fd6a4; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .rp-dot { fill: rgb(242 234 217 / 0.08); }
  .rp-ring { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
  .rp-green { stroke: #7fd6a4; } .rp-gold { stroke: #f2c14e; }
  .sc-node .rp-mark, .sc-node.on .rp-mark { fill: none; stroke: #f2c14e; stroke-width: 2; }
  .rp-tag { font-size: 12px; font-weight: 600; } .rp-tag.g { fill: #7fd6a4; } .rp-tag.y { fill: #f2c14e; }
  .hr-unit { font-size: 24px; }
  .rp-big, .hr-big { fill: #9be3b8; font-family: var(--font-display); font-weight: 900; font-size: 44px; font-variant-numeric: tabular-nums; }
  /* Gwo for AVImark: learn1 and handoff. */
  .l1-t { fill: var(--ink); font-size: 14px; font-weight: 600; }
  .ho-doc { fill: rgb(242 234 217 / 0.05); stroke: rgb(242 234 217 / 0.28); stroke-width: 1.2; }
  .ho-lines { stroke: rgb(242 234 217 / 0.28); stroke-width: 1.4; stroke-linecap: round; }
  .ho-card-bg { fill: rgb(20 36 27 / 0.9); stroke: var(--edge); }
  .ho-title { fill: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 17px; }
  .ho-btn { fill: #f2ead9; }
  .ho-btn-t { fill: #14261b; font-size: 13.5px; font-weight: 600; }
  .ho-saved { fill: #9be3b8; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .scene-wrap { min-width: 0; }
  .scene-replay { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.8rem; padding: 0.5rem 0; min-height: 44px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 0.85rem; cursor: pointer; }
  .scene-replay:hover { color: var(--ink); }
  .scene-replay:focus-visible { outline: 2px solid var(--mushroom); outline-offset: 2px; border-radius: 4px; }

  /* The race: two six-week calendars, one square per workday. */
  .duel { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
  .duel-col { display: grid; gap: 0.35rem; align-content: start; }
  .duel-big, .duel-cost { margin: 0; display: flex; align-items: baseline; gap: 0.45rem; color: var(--ink-2); }
  .duel-big { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
  .duel-big b { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.8rem, 5.5vw, 4.4rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
  .duel-cost { font-size: 1.05rem; }
  .duel-cost b { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.7rem, 2.8vw, 2.4rem); color: var(--ink); font-variant-numeric: tabular-nums; }
  .gwo .duel-big b, .gwo .duel-cost b { color: #9be3b8; }
  .cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-top: 0.9rem; }
  .cal i { position: relative; height: 24px; border-radius: 4px; background: rgb(242 234 217 / 0.06); overflow: hidden; }
  .cal i span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transform-origin: left; }
  .cal-hand i span { background: rgb(216 195 154 / 0.72); }
  .cal-gwo i span { background: #7fd6a4; }
  .cal-gwo i:first-child span { min-width: 3px; }
  .cal em { position: absolute; left: 9px; top: 50%; translate: 0 -50%; font-style: normal; font-size: 0.75rem; font-weight: 600; color: #9be3b8; }
  .cal-cap { margin: 0.35rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
  .duel-sum { margin: 1.6rem 0 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.4vw, 2rem); color: var(--ink); }
  /* Phones keep the two calendars side by side, so the comparison stays in one view. */
  @media (max-width: 640px) {
    .duel { gap: 1.2rem; }
    .duel-big { font-size: 1rem; gap: 0.3rem; }
    .duel-big b { font-size: 2.5rem; }
    .duel-cost { flex-wrap: wrap; column-gap: 0.35rem; row-gap: 0; font-size: 0.9rem; }
    .duel-cost b { font-size: 1.55rem; }
    .cal { gap: 3px; }
    .cal i { height: 18px; border-radius: 3px; }
    .cal em { left: 5px; font-size: 0.62rem; }
    .cal-cap { font-size: 0.82rem; }
  }
  .sc-token-lines { stroke: #14261b; stroke-width: 1.6; stroke-linecap: round; }

  /* The race. */
  .race { display: grid; gap: 1rem; width: 100%; }
  .race-job { margin: 0 0 0.2rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 1.8vw, 1.45rem); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72; }
  .race-row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; }
  .race-k { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
  .race-track { position: relative; height: 1.1rem; border-radius: 4px; background: rgb(242 234 217 / 0.07); overflow: visible; }
  .race-track i { position: absolute; inset: 0; border-radius: 4px; transform-origin: left; }
  .gwo .race-track i { right: auto; width: 0.6%; min-width: 4px; background: #7fd6a4; }
  .hand .race-track i { background: rgb(216 195 154 / 0.55); }
  .race-done { position: absolute; left: calc(0.6% + 12px); top: 50%; translate: 0 -50%; font-size: 0.82rem; font-weight: 600; color: #7fd6a4; }
  .race-n { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; min-width: 12.5rem; text-align: right; }
  .race-n b { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--ink); }
  .gwo .race-n b { color: #9be3b8; }
  .race-u { margin: 0 0.9rem 0 0.35rem; font-size: 1.15rem; color: var(--ink-2); }
  .scene-sec.wide .race-u { font-size: clamp(1.2rem, 1.7vw, 1.5rem); }
  .race-note { margin: 0.2rem 0 0; font-size: 0.85rem; color: var(--ink-2); }

  /* ---- Direction A: a scene beside each idea ---- */
  .scene-sec { padding: 4.5rem 0; }
  .scene-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: center; }
  .scene-sec:nth-of-type(even) .scene-grid > .scene-copy { order: 2; }
  /* The scene keeps the wider column on whichever side it sits. */
  .scene-sec:nth-of-type(even) .scene-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
  .scene-copy .h2 { margin: 0 0 0.8rem; }
  .scene-copy p { margin: 0; color: var(--ink-2); font-size: 1.15rem; line-height: 1.5; max-width: 30rem; }
  .scene { min-height: 12rem; }
  .scene.wide { grid-column: 1 / -1; }
  .scene-sec.band { background: rgb(14 26 18 / 0.35); border-top: 1px solid var(--edge); border-bottom: 1px solid var(--edge); }
  .scene-sec.wide .scene-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .scene-sec.wide .scene-copy { order: 0 !important; }
  .scene-sec.wide .race-n b { font-size: clamp(2rem, 4vw, 3rem); }
  .scene-sec.wide .race-track { height: 1.6rem; }
  .scene-sec.wide .race-row { grid-template-columns: 7.5rem minmax(0, 1fr) auto; }
  .scene-sec.wide .race-n { min-width: 16rem; }
  .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; max-width: 34rem; }
  .pair div { border-top: 1px solid var(--edge); padding-top: 0.6rem; }
  .pair small { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.25rem; }
  .pair .new small { color: var(--mushroom); }
  .pair .old p { color: var(--ink-2); font-size: 1rem; }
  .pair .new p { color: var(--ink); font-size: 1rem; }
  .memo-strip { max-width: 46rem; margin: 0 auto 1rem; }
  .step-n { display: block; margin-bottom: 0.6rem; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--mushroom); }

  /* ---- Directions B and C: one stage that stays while the steps scroll ---- */
  .story { padding: 2rem 0 3rem; }
  .story-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 3rem; }
  .story-steps { display: grid; }
  .st-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.35; transition: opacity 0.4s var(--ease-out); }
  .st-step.active { opacity: 1; }
  .st-step .h2 { margin: 0 0 0.8rem; }
  .st-step p { margin: 0; color: var(--ink-2); font-size: 1.15rem; line-height: 1.5; max-width: 30rem; }
  .story-stage { position: sticky; top: 12vh; height: 76vh; order: 2; }
  .stage { position: relative; width: 100%; height: 100%; }
  .stage-iso .scene-svg { height: 100%; }
  .iso-ground { fill: rgb(242 234 217 / 0.035); stroke: rgb(242 234 217 / 0.14); }
  .iso-grid { stroke: rgb(242 234 217 / 0.05); }
  .iso-pad { fill: rgb(232 67 46 / 0.18); stroke: rgb(232 67 46 / 0.75); stroke-width: 1.6; }
  .iso-t { fill: #efe6d2; } .iso-l { fill: #c9bea6; } .iso-r { fill: #a99e88; }
  .iso-b polygon { transition: fill 0.45s var(--ease-out); }
  .iso-b.seen .iso-t { fill: #f6dfa8; }
  .iso-b.on .iso-t { fill: #a8ebc4; } .iso-b.on .iso-l { fill: #7fd6a4; } .iso-b.on .iso-r { fill: #5fb987; }
  .iso-name { fill: var(--ink-2); font-size: 13px; }
  .iso-chip rect { fill: #1f3527; stroke: rgb(216 195 154 / 0.7); }
  .iso-label { opacity: 0; transition: opacity 0.4s var(--ease-out); }
  .iso-label.show { opacity: 1; }
  .iso-label rect { fill: rgb(127 214 164 / 0.14); stroke: #7fd6a4; }
  .iso-col-t { fill: #f2ead9; } .iso-col-l { fill: #d8c39a; } .iso-col-r { fill: #b9a57d; }
  .iso-col.hot .iso-col-t { fill: #ff8a73; } .iso-col.hot .iso-col-l { fill: #e8432e; } .iso-col.hot .iso-col-r { fill: #b9301f; }
  .iso-val { fill: var(--ink); font-size: 12px; font-weight: 600; }
  .iso-token { fill: #9be3b8; }
  .iso-overlay, .stage-overlay { position: absolute; left: 0; right: 0; bottom: 6%; padding: 1.2rem 1.3rem; border-radius: 14px; border: 1px solid var(--edge); background: rgb(14 26 18 / 0.9); opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); pointer-events: none; }
  .racing .iso-overlay, .racing .stage-overlay { opacity: 1; transform: none; }
  .stage-iso.racing svg { opacity: 0.35; transition: opacity 0.4s; }
  .stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
  .gl-name { position: absolute; left: 0; top: 0; font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; pointer-events: none; transition: opacity 0.4s var(--ease-out); }
  .racing .gl-name, .racing .gl-label { opacity: 0 !important; }
  .stage-canvas { -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent); mask-image: radial-gradient(closest-side, #000 82%, transparent); }
  .gl-chip { position: absolute; left: 0; top: 0; padding: 0.25rem 0.55rem; border-radius: 7px; background: #1f3527; border: 1px solid rgb(216 195 154 / 0.7); color: var(--ink); font-size: 0.82rem; font-weight: 600; pointer-events: none; }
  .gl-label { position: absolute; left: 0; top: 0; padding: 0.45rem 0.8rem; border-radius: 10px; background: rgb(127 214 164 / 0.16); border: 1px solid #7fd6a4; font-family: var(--font-display); font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.4s var(--ease-out); pointer-events: none; }
  .gl-label.show { opacity: 1; }
  .stage-flat { position: absolute; inset: 0; display: none; align-items: center; }
  .stage.flat .stage-flat { display: flex; }
  .stage.flat .stage-overlay { display: none; }

  @media (max-width: 960px) {
    .scene-grid, .scene-sec:nth-of-type(even) .scene-grid { grid-template-columns: 1fr; gap: 1.6rem; }
    .scene-sec:nth-of-type(even) .scene-grid > .scene-copy { order: 0; }
    .story-grid { grid-template-columns: 1fr; gap: 0; }
    .story-stage { order: 0; top: 64px; height: 46vh; z-index: 2; background: var(--bg); }
    .st-step { min-height: 72vh; justify-content: flex-end; padding-bottom: 6vh; }
    .st-step .h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
    .st-step p { font-size: 1rem; }
    .race-row { grid-template-columns: 5rem minmax(0, 1fr); }
    .race-n { grid-column: 1 / -1; text-align: left; min-width: 0; }
  }
  @media (max-width: 640px) {
    .scene-sec { padding: 3rem 0; }
    .pair { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) { .st-step { opacity: 1; } }
