/* Sheriff marketing theme — Wild West Let'em Cook! */
@font-face {
  font-family: "Rye";
  src: url("/assets/fonts/themes/sheriff/Rye-Regular.ttf?ts=1787284743-6dc14719da2b") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root,
html[data-theme="sheriff"] {
  --night: #151421;
  --night-soft: #201a2b;
  --plum: #493b4b;
  --plum-deep: #2d2130;
  --paper: #f2d4a0;
  --paper-light: #fae9c8;
  --paper-pale: #fff4dc;
  --gold: #e3b87c;
  --gold-bright: #f4cc72;
  /* Playlist heard-mark (✓); pair dark + bright for body and glow. */
  --check-dark: #c49a48;
  --check-bright: #f4cc72;
  --rust: #aa5238;
  --rust-dark: #763525;
  --sage: #47664f;
  --sage-deep: #2f4937;
  --sky: #173451;
  --ink: #21191d;
  --ink-soft: #5b443d;
  --cream: #fff8e8;
  --line-dark: rgb(33 25 29 / 24%);
  --line-light: rgb(255 248 232 / 22%);
  --shadow: 0 24px 70px rgb(13 10 17 / 28%);
  --display: "Rye", Georgia, serif;
  --body: Georgia, "Times New Roman", serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --shell: min(1180px, calc(100vw - 48px));
  --parallax-x: 0px;
  --parallax-y: 0px;
  --scroll-progress: 0;
  --mascot-idle: url("/assets/images/themes/sheriff/logo-normal.png?ts=1787284743-6dc14719da2b");
  --mascot-talk-a: url("/assets/images/themes/sheriff/logo-up.png?ts=1787284743-6dc14719da2b");
  --mascot-talk-b: url("/assets/images/themes/sheriff/logo-down.png?ts=1787284743-6dc14719da2b");
  --hero-backdrop: url("/assets/images/themes/sheriff/bg.png?ts=1787284743-6dc14719da2b");
  /* Applied on .hero__backdrop; themes may tint without shipping a new PNG. */
  --hero-backdrop-filter: saturate(0.9) contrast(1.02);
  --hero-backdrop-tint: transparent;
  --hero-shade:
    linear-gradient(90deg, rgb(17 17 27 / 90%) 0%, rgb(28 24 39 / 70%) 43%, rgb(29 22 34 / 20%) 76%),
    linear-gradient(0deg, var(--night) 0%, transparent 22%, rgb(18 17 29 / 18%) 70%, rgb(18 17 29 / 55%) 100%);
  --hero-shade-phone:
    linear-gradient(180deg, rgb(17 17 27 / 68%), rgb(20 18 29 / 72%) 43%, rgb(20 18 29 / 94%) 76%, var(--night) 100%),
    linear-gradient(90deg, rgb(17 17 27 / 60%), transparent);
  --hero-halo: rgb(244 204 114 / 16%);
  --hero-halo-speaking: rgb(244 204 114 / 25%);

  /* Theme type scales. Layout uses calc(var(--fs-*) * var(--type-scale-*)).
     --type-scale is the legacy global base; roles default to it so a theme
     can still raise everything, or only display / body / UI. */
  --type-scale: 1;
  --type-scale-display: var(--type-scale);
  --type-scale-body: var(--type-scale);
  --type-scale-ui: var(--type-scale);
  --fs-body: 18px;
  --fs-body-phone: 16px;
  --fs-button: 13px;
  --fs-eyebrow: 12px;
  --fs-brand: 20px;
  --fs-brand-footer: 17px;
  --fs-brand-phone: 16px;
  --fs-nav: 13px;
  --fs-control: 12px;
  --fs-control-phone: 11px;
  --fs-menu-num: 10px;
  --fs-footer: 13px;
  --fs-footer-nav: 10px;
  --fs-hero-min: 40px;
  --fs-hero-fluid: 4.6vw;
  --fs-hero-max: 68px;
  --fs-hero-sub-min: 19px;
  --fs-hero-sub-fluid: 1.45vw;
  --fs-hero-sub-max: 22px;
  --fs-hero-lead-min: 17px;
  --fs-hero-lead-fluid: 1.35vw;
  --fs-hero-lead-max: 20px;
  --fs-hero-phone-min: 38px;
  --fs-hero-phone-fluid: 10.7vw;
  --fs-hero-phone-max: 46px;
  --fs-hero-sub-phone-min: 11px;
  --fs-hero-sub-phone-fluid: 3.2vw;
  --fs-hero-sub-phone-max: 13px;
  --fs-hero-lead-phone: 15px;
  --fs-section-h2-min: 38px;
  --fs-section-h2-fluid: 5vw;
  --fs-section-h2-max: 67px;
  --fs-section-lead-min: 17px;
  --fs-section-lead-fluid: 1.5vw;
  --fs-section-lead-max: 20px;
  --fs-card-h3-min: 25px;
  --fs-card-h3-fluid: 2.45vw;
  --fs-card-h3-max: 34px;
  --fs-card-body: 14px;
  --fs-closing-h2-min: 42px;
  --fs-closing-h2-fluid: 6vw;
  --fs-closing-h2-max: 78px;
  --fs-closing-lead: 19px;
  --fs-handoff-step: 9px;
  --fs-handoff-h3-min: 24px;
  --fs-handoff-h3-fluid: 2.4vw;
  --fs-handoff-h3-max: 33px;
  --fs-handoff-body: 14px;
  --fs-handoff-label: 9px;
  --fs-handoff-code-min: 9px;
  --fs-handoff-code-fluid: 1.25vw;
  --fs-handoff-code-max: 12px;
  --fs-handoff-secret: 12px;
  --fs-handoff-chip: 7px;
  --fs-handoff-crate: 24px;
  --fs-handoff-crate-meta: 8px;
  --fs-handoff-people: 23px;
  --fs-handoff-meta: 7px;
  --fs-handoff-browser: 9px;
  --fs-handoff-browser-btn: 10px;
  --fs-handoff-receipt: 12px;
  --fs-beta-h1-min: 44px;
  --fs-beta-h1-fluid: 4.2vw;
  --fs-beta-h1-max: 62px;
  --fs-beta-h1-phone-min: 36px;
  --fs-beta-h1-phone-fluid: 11vw;
  --fs-beta-h1-phone-max: 48px;
  --fs-beta-lead-min: 17px;
  --fs-beta-lead-fluid: 1.45vw;
  --fs-beta-lead-max: 20px;
  --fs-beta-card-h2-min: 34px;
  --fs-beta-card-h2-fluid: 4vw;
  --fs-beta-card-h2-max: 48px;
  --fs-beta-body: 14px;
  /* Labels/hints are +25% over the prior 10px / 12px contact form chrome. */
  --fs-beta-label: 12.5px;
  --fs-beta-hint: 15px;
  --fs-beta-input: 14px;
  /* Docs "On this trail" nav — readable mono rail (jellyware raises these further). */
  --fs-docs-sidebar-label: 14px;
  --fs-docs-sidebar-nav: 16px;
  --fs-docs-sidebar-machine: 14px;
}
/* Jellyware Grape Edition — sampled from the 3.5" floppy talk frames. */
@font-face {
  font-family: "VT323";
  src: url("/assets/fonts/themes/jellyware/VT323-Regular.ttf?ts=1787284743-6dc14719da2b") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

html[data-theme="jellyware"] {
  /* VT323 reads smaller than Rye at the same CSS size. Own role scales so
     jellyware matches sheriff optically without sharing sheriff's numbers.
     Hero/top reorient pin absorbs title reflow; raise UI so Menu/controls
     and primary buttons read at a comfortable VT323 size. */
  --type-scale: 1;
  --type-scale-display: 1.14;
  --type-scale-body: 1.06;
  --type-scale-ui: 1.12;
  /* Header Menu, drawer links, and CTA labels — larger than sheriff mono. */
  --fs-control: 15px;
  --fs-control-phone: 13px;
  --fs-nav: 15px;
  --fs-button: 15px;
  /* Docs trail menu: VT323 needs a larger base than Rye mono before type-scale. */
  --fs-docs-sidebar-label: 16px;
  --fs-docs-sidebar-nav: 18px;
  --fs-docs-sidebar-machine: 16px;
  --night: #180a28;
  --night-soft: #301048;
  --plum: #601080;
  --plum-deep: #300060;
  --paper: #e0d0b0;
  --paper-light: #f5ecd8;
  --paper-pale: #f7f0e2;
  --gold: #c050a0;
  --gold-bright: #e070c0;
  /* Playlist heard-mark (✓); grape pair for body and glow. */
  --check-dark: #a04090;
  --check-bright: #e070c0;
  --rust: #8a2fb0;
  --rust-dark: #501070;
  --sage: #4a9b4a;
  --sage-deep: #2f6b37;
  --sky: #200440;
  --ink: #200440;
  --ink-soft: #503070;
  --cream: #f7f0e2;
  --line-dark: rgb(32 4 64 / 28%);
  --line-light: rgb(247 240 226 / 20%);
  --shadow: 0 24px 70px rgb(16 4 32 / 42%);
  --display: "VT323", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --body: "VT323", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --mono: "VT323", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --mascot-idle: url("/assets/images/themes/jellyware/logo-normal.png?ts=1787284743-6dc14719da2b");
  --mascot-talk-a: url("/assets/images/themes/jellyware/logo-up.png?ts=1787284743-6dc14719da2b");
  --mascot-talk-b: url("/assets/images/themes/jellyware/logo-down.png?ts=1787284743-6dc14719da2b");
  /* Purpose-built jellyware desert art; keep filter neutral so colors stay true. */
  --hero-backdrop: url("/assets/images/themes/jellyware/bg.png?ts=1787284743-6dc14719da2b");
  --hero-backdrop-filter: none;
  --hero-backdrop-tint: transparent;
  --hero-shade:
    linear-gradient(90deg, rgb(24 10 40 / 90%) 0%, rgb(48 16 72 / 72%) 43%, rgb(96 16 128 / 28%) 76%),
    linear-gradient(0deg, var(--night) 0%, transparent 22%, rgb(32 8 56 / 28%) 70%, rgb(24 10 40 / 62%) 100%);
  --hero-shade-phone:
    linear-gradient(180deg, rgb(24 10 40 / 72%), rgb(40 12 64 / 76%) 43%, rgb(32 8 56 / 94%) 76%, var(--night) 100%),
    linear-gradient(90deg, rgb(24 10 40 / 64%), transparent);
  --hero-halo: rgb(192 80 160 / 18%);
  --hero-halo-speaking: rgb(192 80 160 / 28%);
}
/*
 * Theme tokens live in site/themes/<id>/tokens.css and are prepended by the
 * build. This file owns structure, layout, and motion only.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  /* Theme crossfade duration; theme-boot sets this when a switch runs. */
  --theme-segue-ms: 300ms;
}

/*
 * Catalog theme switches use document.startViewTransition so the outgoing and
 * incoming paints crossfade instead of snapping. Duration matches themeSegueMs.
 */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: var(--theme-segue-ms);
  animation-timing-function: ease;
}

::view-transition-old(root) {
  animation-name: lemc-theme-crossfade-out;
}

::view-transition-new(root) {
  animation-name: lemc-theme-crossfade-in;
}

@keyframes lemc-theme-crossfade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes lemc-theme-crossfade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

html.marketing-document {
  scroll-padding-top: 0;
}

html.marketing-document .section {
  scroll-margin-top: -2px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--cream);
  font-family: var(--body);
  font-size: calc(var(--fs-body) * var(--type-scale-body));
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[data-theme="jellyware"] body {
  line-height: 1.7;
}

body::selection {
  background: var(--gold-bright);
  color: var(--ink);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

code,
pre {
  font-family: var(--mono);
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--paper-pale);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgb(18 17 29 / 86%), transparent);
  transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-light);
  background: rgb(21 20 33 / 88%);
  box-shadow: 0 8px 32px rgb(0 0 0 / 16%);
  backdrop-filter: blur(14px);
}

/* Jellyware: grape-tint the fixed marketing/docs chrome. */
html[data-theme="jellyware"] .site-header {
  background: linear-gradient(to bottom, rgb(62 36 84 / 90%), transparent);
}

html[data-theme="jellyware"] .site-header.is-scrolled {
  border-color: var(--line-light);
  background: rgb(62 36 84 / 90%);
  box-shadow: 0 8px 32px rgb(16 4 32 / 28%);
}

html[data-theme="jellyware"] .docs-header {
  border-color: var(--line-light);
  background: rgb(62 36 84 / 90%);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: calc(var(--scroll-progress) * 1%);
  height: 2px;
  background: var(--gold-bright);
  box-shadow: 0 0 16px var(--gold);
  content: "";
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* Keep the wordmark above the theme control in the stacking order so a
     tight flex row cannot paint the select over "Let'em Cook!". */
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-width: 0;
  color: var(--cream);
  font-family: var(--display);
  text-decoration: none;
  white-space: nowrap;
}

.brand__sheriff {
  display: block;
  width: clamp(46px, 4vw, 54px);
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 3px 7px rgb(0 0 0 / 30%));
}

.brand__name {
  font-size: calc(var(--fs-brand) * var(--type-scale-ui));
  letter-spacing: 0.02em;
}

/* Product name in prose and docs: italics mark the brand, not sentence stress. */
.product-name {
  font-style: italic;
  font-synthesis: style;
}

/* Soft lift only in body copy. Large display headings must not use this shadow:
   on dark sections it reads as a muddy low-contrast underline under the brand. */
p .product-name,
li .product-name,
td .product-name,
dd .product-name,
blockquote .product-name,
figcaption .product-name {
  text-shadow: 0 1px 1px rgb(0 0 0 / 24%), 0 1px 3px rgb(0 0 0 / 16%);
}

/*
 * Section self-links share one thin underline (1px). The product name is marked
 * at rest with the same thickness; on hover the parent owns the line so brand
 * and title never stack a thicker double underline.
 */
.section-heading__anchor .product-name {
  text-shadow: none;
  text-decoration: none;
}

.section-heading__anchor:not(:hover):not(:focus-visible) .product-name {
  text-decoration-line: underline;
  text-decoration-color: var(--section-kicker);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
}

.lemc-theme-shot__brand-sheriff {
  font-style: italic;
  text-shadow: 0 1px 1px rgb(0 0 0 / 24%), 0 1px 3px rgb(0 0 0 / 16%);
}

.brand__short {
  display: none;
}

.site-nav__links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: calc(var(--fs-nav) * var(--type-scale-ui));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Header demo link sits left of Menu; open the live web demo origin.
   Sheriff: solid accent face. Jellyware overrides keep Menu dark + Demo solid. */
.site-nav__demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gold-bright);
  background: var(--gold-bright);
  color: var(--ink);
  font-family: var(--mono);
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

/* External-site marker: ASCII -> rotated up-right (leave this origin). */
.site-nav__demo-exit {
  display: inline-block;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  transform: rotate(-45deg);
  transform-origin: 50% 55%;
}

.site-nav__demo:hover,
.site-nav__demo:focus-visible {
  border-color: var(--gold);
  background: var(--paper-pale);
  color: var(--ink);
  transform: translateY(-1px);
}

.site-nav__demo:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

/* One unified menu control at every breakpoint: panel holds Theme + links. */
.site-nav__menu-drawer {
  display: block;
  position: relative;
}

.site-theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--cream);
  font-family: var(--mono);
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Keep "Theme" as the accessible name only — never show the word in chrome. */
.site-theme-picker__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Shared header control face for theme <select> and Nav <summary>. */
.site-theme-picker__select,
.site-nav__jump summary {
  min-height: 44px;
  border: 1px solid var(--line-light);
  border-radius: 0;
  background: var(--night-soft);
  color: var(--cream);
  font-family: var(--mono);
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.site-theme-picker__select {
  /* Fixed px width: do not rem-scale with type (keeps chrome stable). */
  min-width: 136px;
  padding: 0 34px 0 12px;
  background:
    linear-gradient(45deg, transparent 50%, var(--cream) 50%) calc(100% - 14px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, var(--cream) 50%, transparent 50%) calc(100% - 9px) calc(50% - 2px) / 7px 7px no-repeat,
    var(--night-soft);
  text-transform: none;
  appearance: none;
}

.site-theme-picker__select:hover,
.site-nav__jump summary:hover,
.site-nav__jump summary:focus-visible,
.site-nav__jump[open] summary {
  border-color: var(--gold-bright);
  background-color: rgb(244 204 114 / 12%);
}

.site-theme-picker__select:hover {
  background:
    linear-gradient(45deg, transparent 50%, var(--cream) 50%) calc(100% - 14px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, var(--cream) 50%, transparent 50%) calc(100% - 9px) calc(50% - 2px) / 7px 7px no-repeat,
    rgb(244 204 114 / 12%);
}

.site-theme-picker__select:focus-visible,
.site-nav__jump summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .site-theme-picker__select {
    min-width: 108px;
  }

  .site-nav__links,
  .docs-header__actions {
    gap: 0;
  }
}

.site-nav__jump {
  position: relative;
}

.site-nav__jump summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  text-transform: uppercase;
  list-style: none;
}

.site-nav__jump summary::-webkit-details-marker {
  display: none;
}

.site-nav__jump summary::marker {
  content: "";
}

.site-nav__jump-icon {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
}

.site-nav__jump-icon svg {
  display: block;
  width: 12px;
  height: 8px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav__jump[open] .site-nav__jump-icon svg {
  transform: rotate(180deg);
}

.site-nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(300px, calc(100vw - 32px));
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgb(227 184 124 / 58%);
  background: rgb(32 26 43 / 98%);
  box-shadow: 0 16px 36px rgb(13 10 17 / 34%);
  backdrop-filter: blur(16px);
}

.site-nav__menu a {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: rgb(255 248 232 / 82%);
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

/* Docs/contact site destinations match the homepage section list layout. */
.site-nav__menu--site a {
  grid-template-columns: minmax(0, 1fr);
}

.site-nav__menu a + a {
  border-top: 1px solid rgb(255 248 232 / 10%);
}

.site-nav__menu a:hover,
.site-nav__menu a:focus-visible {
  background: rgb(244 204 114 / 12%);
  color: var(--cream);
}

.site-nav__menu a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: -2px;
}

/* Homepage menu site destinations after section destinations. */
.site-nav__menu .site-nav__menu-site {
  grid-template-columns: minmax(0, 1fr);
  color: var(--gold-bright);
}

.site-nav__menu .site-nav__menu-site:first-of-type,
.site-nav__menu a[href="#creator"] + .site-nav__menu-site {
  margin-top: 6px;
  border-top-color: rgb(227 184 124 / 50%);
}

/* Desktop/tablet: visible "Menu" + chevron. Phone: icon-only hamburger. */
.site-nav__menu-drawer > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: auto;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-light);
  border-radius: 0;
  background: var(--night-soft);
  color: var(--cream);
  font-family: var(--mono);
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.site-nav__menu-drawer > summary::-webkit-details-marker {
  display: none;
}

.site-nav__menu-drawer > summary::marker {
  content: "";
}

.site-nav__menu-drawer > summary:hover,
.site-nav__menu-drawer > summary:focus-visible,
.site-nav__menu-drawer[open] > summary {
  border-color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold-bright) 12%, var(--night-soft));
  color: var(--cream);
}

.site-nav__menu-drawer > summary:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
}

.site-nav__menu-drawer-label {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
}

.site-nav__menu-drawer-chevron {
  display: grid;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  place-items: center;
}

.site-nav__menu-drawer-chevron svg {
  display: block;
  width: 12px;
  height: 8px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transform-origin: center;
  transition: transform 160ms ease;
}

.site-nav__menu-drawer[open] .site-nav__menu-drawer-chevron svg {
  transform: rotate(180deg);
}

/* Phone-only bars; hidden while Menu + chevron are shown. */
.site-nav__hamburger {
  display: none;
  width: 18px;
  height: 14px;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
}

.site-nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
  transform-origin: center;
}

.site-nav__menu-drawer[open] .site-nav__hamburger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav__menu-drawer[open] .site-nav__hamburger span:nth-child(2) {
  opacity: 0;
}

.site-nav__menu-drawer[open] .site-nav__hamburger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 720px) {
  .site-nav__menu-drawer > summary {
    width: 44px;
    padding: 0;
    gap: 0;
  }

  /* Keep "Menu" as the accessible name; bars are the visible chrome. */
  .site-nav__menu-drawer-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .site-nav__menu-drawer-chevron {
    display: none;
  }

  .site-nav__hamburger {
    display: flex;
  }
}

.site-nav__drawer-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 12px;
  width: min(300px, calc(100vw - 32px));
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgb(227 184 124 / 58%);
  background: rgb(32 26 43 / 98%);
  box-shadow: 0 16px 36px rgb(13 10 17 / 34%);
  backdrop-filter: blur(16px);
}

.site-theme-picker--drawer {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(255 248 232 / 12%);
  color: var(--cream);
  text-transform: none;
}

.site-theme-picker__drawer-label {
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(var(--fs-menu-num) * var(--type-scale-ui));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-theme-picker--drawer .site-theme-picker__select {
  width: 100%;
  min-width: 0;
}

/* Nested menu inside the drawer is a static list, not a second floating panel. */
.site-nav__drawer-panel .site-nav__menu {
  position: static;
  top: auto;
  right: auto;
  width: auto;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(760px, 100svh);
  overflow: hidden;
  align-items: center;
  isolation: isolate;
}

.hero:has(.sheriff-playlist[open]) {
  z-index: 99;
  overflow: visible;
}

.hero__scene,
.hero__backdrop,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__scene {
  z-index: -3;
  overflow: hidden;
  background: var(--sky);
}

.hero__backdrop {
  inset: -4%;
  background-image: var(--hero-backdrop);
  background-position: center;
  background-size: cover;
  filter: var(--hero-backdrop-filter);
  transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(1.09);
  transition: transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1), background-image 200ms ease, filter 200ms ease;
  animation: horizon-breathe 24s ease-in-out infinite alternate;
}

/* Optional theme wash above the photo (sibling of backdrop, under shade). */
.hero__scene::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--hero-backdrop-tint);
  content: "";
  pointer-events: none;
}

.hero__shade {
  z-index: -1;
  background: var(--hero-shade);
}

.hero__sun {
  position: absolute;
  top: 8%;
  right: 16%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(255 210 116 / 30%), rgb(255 184 84 / 8%) 45%, transparent 72%);
  filter: blur(3px);
  animation: sun-pulse 8s ease-in-out infinite;
}

.hero__cloud {
  position: absolute;
  height: 32px;
  border-radius: 50%;
  background: rgb(246 220 172 / 10%);
  filter: blur(8px);
}

.hero__cloud--one {
  top: 20%;
  left: -180px;
  width: 420px;
  animation: cloud-drift 36s linear infinite;
}

.hero__cloud--two {
  top: 34%;
  left: -300px;
  width: 280px;
  animation: cloud-drift 48s 9s linear infinite;
}

.dust-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.dust-field i {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 7px rgb(244 204 114 / 70%);
  opacity: 0;
  animation: dust-rise 9s linear infinite;
}

.dust-field i:nth-child(1) { left: 4%; animation-delay: -2s; }
.dust-field i:nth-child(2) { left: 12%; width: 2px; height: 2px; animation-delay: -6s; animation-duration: 12s; }
.dust-field i:nth-child(3) { left: 24%; animation-delay: -4s; animation-duration: 11s; }
.dust-field i:nth-child(4) { left: 37%; width: 3px; height: 3px; animation-delay: -8s; }
.dust-field i:nth-child(5) { left: 48%; animation-delay: -1s; animation-duration: 13s; }
.dust-field i:nth-child(6) { left: 58%; width: 2px; height: 2px; animation-delay: -5s; }
.dust-field i:nth-child(7) { left: 66%; animation-delay: -9s; animation-duration: 14s; }
.dust-field i:nth-child(8) { left: 73%; width: 3px; height: 3px; animation-delay: -3s; }
.dust-field i:nth-child(9) { left: 81%; animation-delay: -7s; animation-duration: 12s; }
.dust-field i:nth-child(10) { left: 88%; width: 2px; height: 2px; animation-delay: -10s; }
.dust-field i:nth-child(11) { left: 93%; animation-delay: -4s; animation-duration: 10s; }
.dust-field i:nth-child(12) { left: 97%; width: 3px; height: 3px; animation-delay: -6s; }

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  column-gap: clamp(28px, 5vw, 88px);
  row-gap: 0;
  align-items: center;
  padding-block: 136px 96px;
}

.hero__copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 730px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: calc(var(--fs-eyebrow) * var(--type-scale-ui));
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--rust);
}

.eyebrow--dark {
  color: var(--rust-dark);
}

.hero h1 {
  max-width: 800px;
  margin-bottom: 28px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(
    calc(var(--fs-hero-min) * var(--type-scale-display)),
    calc(var(--fs-hero-fluid) * var(--type-scale-display)),
    calc(var(--fs-hero-max) * var(--type-scale-display))
  );
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
  /* Let the title shrink to its natural wrap. Theme reorient pins the hero
     and page top instead of reserving empty line-boxes under short titles. */
  text-shadow: 0 5px 28px rgb(0 0 0 / 42%);
}

.hero__subtitle {
  max-width: 650px;
  margin-bottom: 12px;
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: clamp(
    calc(var(--fs-hero-sub-min) * var(--type-scale-body)),
    calc(var(--fs-hero-sub-fluid) * var(--type-scale-body)),
    calc(var(--fs-hero-sub-max) * var(--type-scale-body))
  );
  line-height: 1.16;
  text-shadow: 0 3px 16px rgb(0 0 0 / 38%);
}

.hero__lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgb(255 248 232 / 84%);
  font-size: clamp(
    calc(var(--fs-hero-lead-min) * var(--type-scale-body)),
    calc(var(--fs-hero-lead-fluid) * var(--type-scale-body)),
    calc(var(--fs-hero-lead-max) * var(--type-scale-body))
  );
  line-height: 1.62;
}

/* Jellyware optical tweaks only — size comes from role type scales.
   Match sheriff line-height; natural wrap height is fine because reorient
   pins hero/top views instead of correcting for title reflow. */
html[data-theme="jellyware"] .hero h1 {
  letter-spacing: -0.01em;
  line-height: 1.08;
  font-weight: 400;
  text-wrap: balance;
}

html[data-theme="jellyware"] .hero__subtitle {
  letter-spacing: 0.02em;
  line-height: 1.28;
  font-weight: 400;
}

html[data-theme="jellyware"] .hero__lead {
  letter-spacing: 0.01em;
  line-height: 1.55;
}

html[data-theme="jellyware"] .eyebrow,
html[data-theme="jellyware"] .button {
  letter-spacing: 0.08em;
  font-weight: 400;
}

/* Larger Menu control: dark face + pink type. Demo is swapped: pink filled face. */
html[data-theme="jellyware"] .site-nav__menu-drawer > summary {
  min-height: 52px;
  padding: 0 16px;
  gap: 10px;
  border-color: var(--gold-bright);
  background: var(--night-soft);
  color: var(--gold-bright);
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
}

html[data-theme="jellyware"] .site-nav__demo {
  min-height: 52px;
  padding: 0 16px;
  gap: 10px;
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  color: var(--ink);
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
}

html[data-theme="jellyware"] .site-nav__demo:hover,
html[data-theme="jellyware"] .site-nav__demo:focus-visible {
  border-color: var(--gold);
  background: var(--paper-pale);
  color: var(--ink);
}

html[data-theme="jellyware"] .site-nav__menu-drawer > summary:hover,
html[data-theme="jellyware"] .site-nav__menu-drawer > summary:focus-visible,
html[data-theme="jellyware"] .site-nav__menu-drawer[open] > summary {
  border-color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold-bright) 16%, var(--night-soft));
  color: var(--cream);
}

html[data-theme="jellyware"] .site-nav__menu-drawer-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

html[data-theme="jellyware"] .site-nav__menu-drawer-chevron svg {
  width: 14px;
  height: 10px;
}

html[data-theme="jellyware"] .site-nav__drawer-panel {
  width: min(340px, calc(100vw - 32px));
  border-color: color-mix(in srgb, var(--gold-bright) 70%, transparent);
}

html[data-theme="jellyware"] .site-nav__drawer-panel .site-nav__menu a {
  min-height: 48px;
  font-size: calc(var(--fs-nav) * var(--type-scale-ui));
}

html[data-theme="jellyware"] .site-theme-picker,
html[data-theme="jellyware"] .site-theme-picker__select {
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
}

/* Theme select inside the drawer matches the pink Menu face. */
html[data-theme="jellyware"] .site-theme-picker__select {
  border-color: var(--gold-bright);
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 14px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 9px) calc(50% - 2px) / 7px 7px no-repeat,
    var(--gold-bright);
  color: var(--ink);
}

html[data-theme="jellyware"] .site-theme-picker__select:hover,
html[data-theme="jellyware"] .site-theme-picker__select:focus-visible {
  border-color: var(--gold);
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) calc(100% - 14px) calc(50% - 2px) / 7px 7px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) calc(100% - 9px) calc(50% - 2px) / 7px 7px no-repeat,
    var(--paper-pale);
  color: var(--ink);
}

html[data-theme="jellyware"] .brand__name {
  letter-spacing: 0.04em;
  font-weight: 400;
}

/* No halo or drop shadow on the jellyware header/footer brand mark. */
html[data-theme="jellyware"] .brand__sheriff {
  filter: none;
}

html[data-theme="jellyware"] .sheriff-control__portrait {
  filter:
    drop-shadow(0 0 8px rgb(255 255 255 / 30%))
    drop-shadow(0 0 18px rgb(255 255 255 / 16%))
    drop-shadow(0 22px 20px rgb(0 0 0 / 36%));
}

html[data-theme="jellyware"] .sheriff-control__speaker:hover .sheriff-control__portrait {
  filter:
    drop-shadow(0 0 10px rgb(255 255 255 / 36%))
    drop-shadow(0 0 20px rgb(255 255 255 / 18%))
    drop-shadow(0 24px 22px rgb(0 0 0 / 40%))
    brightness(1.04);
}

html[data-theme="jellyware"] .sheriff-control[data-speaking="true"] .sheriff-control__portrait {
  filter:
    drop-shadow(0 0 10px rgb(255 255 255 / 34%))
    drop-shadow(0 0 20px rgb(255 255 255 / 18%))
    drop-shadow(0 22px 20px rgb(0 0 0 / 36%))
    brightness(1.06);
}

.hero__lead code {
  padding: 2px 6px;
  border: 1px solid rgb(227 184 124 / 38%);
  background: rgb(21 20 33 / 58%);
  color: var(--gold-bright);
  font-size: 0.82em;
}

.hero__actions,
.closing-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  gap: 10px;
}

/* Subtle machine-docs cue under the primary hero CTA — not a second button. */
.hero__llms-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 32px;
  color: rgb(255 248 232 / 68%);
  font-family: var(--mono);
  font-size: calc(var(--fs-control) * var(--type-scale-ui));
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-decoration: none;
  transition: color 160ms ease;
}

.hero__llms-link code {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
}

.hero__llms-link:hover,
.hero__llms-link:focus-visible {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hero__llms-link:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 19px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: calc(var(--fs-button) * var(--type-scale-ui));
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  box-shadow: 6px 6px 0 var(--rust-dark);
  color: var(--ink);
}

.button--primary:hover {
  background: var(--paper-pale);
}

.button--ghost {
  border-color: rgb(255 248 232 / 34%);
  background: rgb(21 20 33 / 30%);
  color: var(--cream);
  backdrop-filter: blur(8px);
}

.button--ghost:hover {
  border-color: var(--gold);
  background: rgb(21 20 33 / 62%);
}

.sheriff-stage {
  position: relative;
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-items: center;
  align-self: center;
  padding-top: 30px;
}

.sheriff-stage:has(.sheriff-playlist[open]) {
  z-index: 10000;
  transform: none;
}

.js .sheriff-stage:has(.sheriff-playlist[open]) {
  transform: none;
  transition: none;
}

.sheriff-control {
  position: relative;
  display: grid;
  width: min(460px, 100%);
  min-height: 0;
  justify-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  isolation: isolate;
}

.sheriff-control__speaker {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.sheriff-control__visual {
  position: relative;
  display: block;
  width: 100%;
  height: 390px;
  isolation: isolate;
}

.sheriff-control__halo {
  position: absolute;
  z-index: -1;
  top: 42%;
  left: 50%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, var(--hero-halo), transparent 67%);
  transform: translate(-50%, -50%);
  transition: transform 300ms ease;
}

.sheriff-control__portrait {
  position: absolute;
  z-index: 1;
  inset: -3% -6% 9%;
  background-image: var(--mascot-idle);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 24px 22px rgb(0 0 0 / 38%));
  transform-origin: 50% 70%;
  animation: sheriff-idle 4.5s ease-in-out infinite;
}

.sheriff-heckle-sign {
  position: absolute;
  z-index: 2;
  top: 9%;
  right: calc(3% + 40px);
  display: block;
  padding: 7px 10px 8px;
  border: 1px solid var(--line-dark);
  background: var(--paper);
  box-shadow: 4px 5px 0 rgb(43 29 32 / 40%);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(9px, 0.8vw, 11px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  transform: rotate(15deg);
  white-space: nowrap;
}

.sheriff-heckle-sign::before,
.sheriff-heckle-sign::after {
  position: absolute;
  top: 4px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rust-dark);
  content: "";
}

.sheriff-heckle-sign::before { left: 4px; }
.sheriff-heckle-sign::after { right: 4px; }

.sheriff-sentence {
  position: relative;
  z-index: 4;
  width: min(430px, calc(100% - 32px));
  min-height: 4.88em;
  margin: 16px auto 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(14px, 1.35vw, 18px);
  font-weight: 400;
  line-height: 1.22;
  text-align: center;
  text-wrap: nowrap;
  pointer-events: none;
  isolation: isolate;
}

.sheriff-sentence__line {
  display: block;
  min-height: 1.22em;
  white-space: nowrap;
}

.sheriff-sentence__visual-word {
  display: inline-block;
  white-space: nowrap;
}

.sheriff-sentence__word {
  position: relative;
  display: inline-block;
  isolation: isolate;
  color: #fff;
  -webkit-text-fill-color: #fff;
  mix-blend-mode: normal;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 2px 3px rgb(0 0 0 / 55%);
}

.sheriff-sentence__word.is-landed {
  opacity: 1;
}

.sheriff-sentence__flight-layer {
  position: absolute;
  z-index: 80;
  top: 0;
  left: 0;
  display: block;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.sheriff-sentence__flight {
  position: absolute;
  top: var(--sheriff-flight-y);
  left: var(--sheriff-flight-x);
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.22;
  mix-blend-mode: normal;
  opacity: 1;
  white-space: nowrap;
  text-shadow: 0 2px 3px rgb(0 0 0 / 55%);
  animation: sheriff-word-flight var(--sheriff-flight-duration) cubic-bezier(0.16, 0.72, 0.2, 1) forwards;
  will-change: transform;
}

.sheriff-control__speaker:hover .sheriff-control__halo,
.sheriff-control__speaker:focus-visible .sheriff-control__halo {
  transform: translate(-50%, -50%) scale(1.04);
}

.sheriff-control__speaker:hover .sheriff-control__portrait {
  filter: drop-shadow(0 26px 23px rgb(0 0 0 / 42%)) brightness(1.04);
}

.sheriff-audio-controls {
  position: relative;
  z-index: 5;
  display: flex;
  width: auto;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: -32px;
  padding: 0 10px;
  border: 0;
  background: transparent;
}

.sheriff-audio-controls__mute-control,
.sheriff-audio-controls__replay-control {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgb(255 248 232 / 58%);
  cursor: pointer;
  transition: color 160ms ease, opacity 160ms ease;
}

.sheriff-audio-controls__mute-control:hover,
.sheriff-audio-controls__replay-control:hover {
  color: var(--gold-bright);
}

.sheriff-audio-controls__mute-control:focus-visible,
.sheriff-audio-controls__replay-control:focus-visible {
  color: var(--gold-bright);
  outline: 1px solid currentcolor;
  outline-offset: 2px;
}

.sheriff-audio-controls__mute-control[aria-pressed="true"] {
  color: var(--gold-bright);
}

.sheriff-audio-controls__mute-control[aria-pressed="true"] .sheriff-audio-controls__mute {
  filter: drop-shadow(0 0 5px rgb(244 204 114 / 78%));
}

.sheriff-audio-controls__mute {
  width: 18px;
  height: 18px;
  fill: currentcolor;
  transition: filter 160ms ease;
}

.sheriff-audio-controls__mute path:last-child {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.sheriff-audio-controls__replay {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sheriff-playlist {
  position: relative;
  z-index: 10000;
  display: block;
}

.sheriff-playlist > summary {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: rgb(255 248 232 / 58%);
  cursor: pointer;
  list-style: none;
  transition: color 160ms ease;
}

.sheriff-playlist > summary::-webkit-details-marker {
  display: none;
}

.sheriff-playlist > summary:hover,
.sheriff-playlist > summary:focus-visible,
.sheriff-playlist[open] > summary {
  color: var(--gold-bright);
}

.sheriff-playlist > summary:focus-visible {
  outline: 1px solid currentcolor;
  outline-offset: 2px;
}

.sheriff-playlist > summary svg {
  width: 19px;
  height: 19px;
  fill: currentcolor;
}

.sheriff-playlist > summary path:first-child {
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-width: 1.6;
}

.sheriff-playlist__panel {
  position: absolute;
  z-index: 10001;
  top: calc(100% + 8px);
  left: 50%;
  width: min(410px, calc(100vw - 32px));
  max-height: min(350px, 48vh);
  overflow: hidden;
  border: 1px solid rgb(244 204 114 / 64%);
  background: rgb(24 20 31 / 97%);
  box-shadow: 8px 10px 0 rgb(8 8 14 / 32%);
  color: var(--cream);
  text-align: left;
  transform: translateX(-50%);
}

.sheriff-playlist__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid rgb(255 248 232 / 16%);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sheriff-playlist__header span {
  color: rgb(255 248 232 / 55%);
  white-space: nowrap;
}

.sheriff-playlist__search {
  display: block;
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgb(255 248 232 / 12%);
}

.sheriff-playlist__search-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgb(255 248 232 / 18%);
  border-radius: 0;
  background: rgb(12 10 18 / 72%);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sheriff-playlist__search-input::placeholder {
  color: rgb(255 248 232 / 42%);
}

.sheriff-playlist__search-input:focus {
  border-color: color-mix(in srgb, var(--gold-bright) 72%, transparent);
  outline: 1px solid color-mix(in srgb, var(--gold-bright) 55%, transparent);
  outline-offset: 0;
}

.sheriff-playlist__search-input::-webkit-search-cancel-button {
  filter: invert(0.85);
}

.sheriff-playlist__items {
  max-height: min(250px, calc(48vh - 96px));
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  scrollbar-color: rgb(244 204 114 / 52%) transparent;
}

.sheriff-playlist__empty {
  margin: 0;
  padding: 18px 14px 20px;
  color: rgb(255 248 232 / 48%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

.sheriff-playlist__item {
  margin: 0;
}

.sheriff-playlist__item button {
  display: grid;
  width: 100%;
  grid-template-columns: 28px minmax(0, 1fr) 1.1em;
  gap: 8px;
  align-items: start;
  padding: 9px 8px;
  border: 0;
  background: transparent;
  color: rgb(255 248 232 / 78%);
  font: inherit;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.sheriff-playlist__item button:hover,
.sheriff-playlist__item button:focus-visible {
  background: rgb(244 204 114 / 10%);
  color: #fff;
  outline: 1px solid rgb(244 204 114 / 48%);
  outline-offset: -1px;
}

.sheriff-playlist__item button:disabled {
  color: rgb(255 248 232 / 42%);
  cursor: default;
  opacity: 0.72;
}

.sheriff-playlist__item-number {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.sheriff-playlist__item-check {
  color: var(--check-bright);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  text-shadow:
    0 0 1px var(--check-dark),
    0 0 6px color-mix(in srgb, var(--check-bright) 42%, transparent);
}

.sheriff-playlist__item button:disabled .sheriff-playlist__item-number {
  color: color-mix(in srgb, var(--gold-bright) 42%, transparent);
}

.sheriff-playlist__item button:disabled .sheriff-playlist__item-check {
  color: color-mix(in srgb, var(--check-dark) 72%, transparent);
}

.sound-bars {
  display: flex;
  height: 15px;
  align-items: end;
  gap: 2px;
  /* Match mute / playlist idle chrome (cream at ~58%). */
  color: rgb(255 248 232 / 58%);
  opacity: 1;
  transition: color 180ms ease, opacity 180ms ease;
}

.sound-bars i {
  display: block;
  width: 2px;
  height: 30%;
  background: currentcolor;
}

.sound-bars i:nth-child(2) { height: 65%; }
.sound-bars i:nth-child(3) { height: 100%; }
.sound-bars i:nth-child(4) { height: 45%; }

.sheriff-control[data-speaking="true"] .sheriff-control__portrait {
  animation: sheriff-idle 4.5s ease-in-out infinite, sheriff-talk-frames 180ms steps(1) infinite;
  animation-play-state: running, paused;
  filter: drop-shadow(0 24px 22px rgb(0 0 0 / 38%)) brightness(1.06);
}

.sheriff-control[data-speaking="true"][data-voiced="true"] .sheriff-control__portrait {
  animation-play-state: running, running;
}

.sheriff-control[data-speaking="true"] .sheriff-control__halo {
  background: radial-gradient(circle, var(--hero-halo-speaking), transparent 68%);
}

.sheriff-control[data-speaking="true"] .sound-bars i {
  animation: sound-bar 460ms ease-in-out infinite alternate;
}

.sheriff-control[data-speaking="true"] .sound-bars {
  color: var(--gold-bright);
  opacity: 1;
}

.sheriff-control[data-speaking="true"] .sound-bars i:nth-child(2) { animation-delay: -180ms; }
.sheriff-control[data-speaking="true"] .sound-bars i:nth-child(3) { animation-delay: -320ms; }
.sheriff-control[data-speaking="true"] .sound-bars i:nth-child(4) { animation-delay: -90ms; }

.noscript-note {
  margin: 0;
  color: rgb(255 248 232 / 52%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.noscript-note {
  max-width: 420px;
  padding-top: 12px;
}

.scroll-cue {
  position: absolute;
  z-index: 4;
  right: 32px;
  bottom: 25px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgb(255 248 232 / 62%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue__line {
  position: relative;
  display: block;
  width: 1px;
  height: 42px;
  overflow: hidden;
  background: rgb(255 248 232 / 18%);
}

.scroll-cue__line::after {
  position: absolute;
  inset: -100% 0 auto;
  height: 100%;
  background: var(--gold-bright);
  content: "";
  animation: scroll-drop 2s ease-in-out infinite;
}

.signal-strip {
  --signal-map-background: var(--gold);
  --signal-trail-color: var(--rust-dark);
  --signal-border-color: #bf8d4e;
  --signal-speck-a: rgb(118 53 37 / 10%);
  --signal-speck-b: rgb(118 53 37 / 8%);
  --signal-wash-a: rgb(255 248 232 / 10%);
  --signal-wash-b: rgb(118 53 37 / 7%);
  --signal-inset-a: rgb(87 45 30 / 8%);
  --signal-inset-b: rgb(87 45 30 / 7%);
  position: relative;
  z-index: 2;
  height: clamp(58px, 5vw, 72px);
  overflow: hidden;
  border-top: 1px solid var(--signal-border-color);
  border-bottom: 1px solid var(--signal-border-color);
  background:
    radial-gradient(circle at 16% 28%, var(--signal-speck-a) 0 1px, transparent 1.4px),
    radial-gradient(circle at 72% 68%, var(--signal-speck-b) 0 1px, transparent 1.6px),
    linear-gradient(103deg, var(--signal-wash-a), transparent 38% 65%, var(--signal-wash-b)),
    var(--signal-map-background);
  background-size: 23px 19px, 31px 27px, 100% 100%, auto;
  box-shadow: inset 0 5px 14px var(--signal-inset-a), inset 0 -4px 12px var(--signal-inset-b);
}

/* Jellyware: pink band (--gold is magenta in this theme) with white line art
   and a 1px white hairline grid under the actors. Keep cell size and opacity
   below stroke weight so the grid is graph paper, not a mosaic that turns
   line art into blobs. */
html[data-theme="jellyware"] .signal-strip {
  --signal-map-background: var(--gold);
  --signal-trail-color: #fff;
  --signal-border-color: rgb(255 255 255 / 38%);
  --signal-grid-line: rgb(255 255 255 / 16%);
  --signal-wash-a: rgb(255 255 255 / 12%);
  --signal-wash-b: rgb(48 0 96 / 14%);
  --signal-inset-a: rgb(48 0 96 / 14%);
  --signal-inset-b: rgb(48 0 96 / 12%);
  background:
    linear-gradient(var(--signal-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--signal-grid-line) 1px, transparent 1px),
    linear-gradient(103deg, var(--signal-wash-a), transparent 38% 65%, var(--signal-wash-b)),
    var(--signal-map-background);
  /* 3px cells: 1px ink / 2px gap, well under actor stroke scale on a ~60px strip. */
  background-size: 3px 3px, 3px 3px, 100% 100%, auto;
}

.signal-strip__scene {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.signal-strip__map {
  color: var(--signal-trail-color);
  opacity: 0.54;
  pointer-events: none;
}

.signal-strip__map-line,
.signal-strip__map-fine,
.signal-strip__contour {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-strip__map-line {
  stroke-width: 2.2;
}

.signal-strip__map-fine {
  stroke-width: 1.25;
}

.signal-strip__contour {
  opacity: 0.28;
  stroke-dasharray: 7 15;
  stroke-width: 1;
}

.signal-strip__trail {
  fill: none;
  opacity: 0.54;
  stroke: var(--signal-trail-color);
  stroke-dasharray: 12 18;
  stroke-linecap: round;
  stroke-width: 2;
}

.signal-strip__cities {
  opacity: 0.54;
  visibility: hidden;
}

.signal-strip__cities[data-signal-cities="true"] {
  visibility: visible;
}

.signal-strip__city-cutout {
  fill: black;
}

.signal-strip__waypoint {
  fill: none;
  stroke: var(--signal-trail-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.signal-strip__critters {
  color: var(--signal-trail-color);
  opacity: 0.54;
  pointer-events: none;
  visibility: hidden;
}

.signal-strip__critters[data-signal-critters="true"] {
  visibility: visible;
}

.signal-strip__critter[data-critter-active="false"] {
  display: none;
}

.signal-strip__critter {
  --signal-critter-flee-scale: 0.86;
  --signal-critter-facing-scale: 1;
  --signal-critter-depth-scale: 1;
  transform-box: view-box;
  transform-origin: 0 0;
}

.signal-strip__critter[data-facing="left"] {
  --signal-critter-facing-scale: -1;
}

.signal-strip__critter[data-flee-side="1"] {
  --signal-critter-flee-scale: 1.08;
}

.signal-strip__critter-facing {
  transform: scaleX(var(--signal-critter-facing-scale))
    scale(var(--signal-critter-depth-scale));
  transform-box: fill-box;
  transform-origin: center bottom;
}

.signal-strip__critter:is(
  [data-critter-state="flee"],
  [data-critter-state="away"]
) .signal-strip__critter-facing {
  --signal-critter-depth-scale: var(--signal-critter-flee-scale);
}

.signal-strip__critter-fill {
  fill: var(--signal-map-background);
  opacity: 1;
  stroke: none;
}

.signal-strip__critter-line,
.signal-strip__critter-fine {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-strip__critter-line {
  stroke-width: 2.2;
}

.signal-strip__critter-fine {
  stroke-width: 1.25;
}

.signal-strip__fright-lines {
  fill: none;
  opacity: 0;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform-box: fill-box;
  transform-origin: center;
}

.signal-strip__critter[data-critter-state="startle"] .signal-strip__critter-motion {
  animation: signal-critter-fright-hop 0.26s steps(2, end) both;
}

.signal-strip__critter[data-critter-state="startle"] .signal-strip__fright-lines {
  animation: signal-critter-fright-lines 0.26s steps(2, end) both;
}

.signal-strip__critter[data-critter-state="flee"] .signal-strip__critter-motion {
  animation: signal-critter-run 0.16s steps(2, end) infinite;
}

.signal-strip__badge {
  color: var(--signal-trail-color);
}

.signal-strip__badge-jitter {
  transform-box: fill-box;
  transform-origin: center;
  animation: signal-badge-jitter 0.4s steps(1, end) infinite;
}

.signal-strip__rider-fill {
  fill: var(--signal-map-background);
  opacity: 1;
  stroke: none;
}

.signal-strip__rider-line,
.signal-strip__rider-fine {
  fill: none;
  opacity: 0.54;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-strip__rider-line {
  stroke-width: 2.2;
}

.signal-strip__rider-fine {
  stroke-width: 1.25;
}

.signal-strip__rider-art {
  --signal-rider-tick-y: -1.5px;
  --signal-rider-surge-back: 2px;
  --signal-rider-surge-back-two: 1px;
  --signal-rider-surge-forward: -6px;
  --signal-rider-surge-forward-two: -4px;
  animation: signal-cowboy-gallop 0.91s cubic-bezier(0.45, 0, 0.55, 1) -0.19s infinite;
}

[data-signal-pursuit] {
  color: var(--signal-trail-color);
  pointer-events: none;
}

.signal-strip--pursuit .signal-strip__badge-jitter {
  animation: none;
}

.signal-strip__pursuer-motion {
  --signal-rider-tick-y: -1.8px;
  animation: signal-rider-tick 0.48s ease-in-out infinite;
}

.signal-strip__pursuer {
  animation: signal-rider-surge 0.98s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.signal-strip__pursuit-rider--cowboy {
  --signal-rider-tick-y: -1.5px;
  --signal-rider-surge-back: -2px;
  --signal-rider-surge-back-two: -1px;
  --signal-rider-surge-forward: 6px;
  --signal-rider-surge-forward-two: 4px;
}

.signal-strip__pursuit-rider--native {
  animation: none;
}

.signal-strip__pursuit-rider--lead .signal-strip__pursuer-motion {
  --signal-rider-tick-y: -2.3px;
  animation-duration: 0.47s;
  animation-delay: 0s;
}

.signal-strip__pursuit-rider--lead {
  --signal-rider-surge-back: -2px;
  --signal-rider-surge-back-two: -1px;
  --signal-rider-surge-forward: 6px;
  --signal-rider-surge-forward-two: 4px;
  animation-delay: -0.31s;
}

.signal-strip__pursuit-rider--rear-high .signal-strip__pursuer-motion {
  --signal-rider-tick-y: -1.35px;
  animation-duration: 0.49s;
  animation-delay: -0.16s;
}

.signal-strip__pursuit-rider--rear-high {
  --signal-rider-surge-back: -3px;
  --signal-rider-surge-back-two: -2px;
  --signal-rider-surge-forward: 5px;
  --signal-rider-surge-forward-two: 4px;
  animation-duration: 1.07s;
  animation-delay: -0.74s;
}

.signal-strip__pursuit-rider--rear-low .signal-strip__pursuer-motion {
  --signal-rider-tick-y: -2px;
  animation-duration: 0.51s;
  animation-delay: -0.34s;
}

.signal-strip__pursuit-rider--rear-low {
  --signal-rider-surge-back: -2px;
  --signal-rider-surge-back-two: -1px;
  --signal-rider-surge-forward: 7px;
  --signal-rider-surge-forward-two: 5px;
  animation-duration: 1.16s;
  animation-delay: -0.93s;
}

.signal-strip__pursuit-bow,
.signal-strip__pursuit-headband,
.signal-strip__pursuit-feather,
.signal-strip__arrow,
.signal-strip__arrow-stuck {
  fill: none;
  opacity: 0.72;
  stroke: var(--signal-trail-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.signal-strip__pursuit-headwear {
  pointer-events: none;
}

.signal-strip__pursuit-person {
  pointer-events: none;
}

.signal-strip__pursuit-person-body {
  fill: none;
  stroke: var(--signal-trail-color);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.25;
}

.signal-strip__pursuit-person-arms,
.signal-strip__pursuit-person-legs {
  fill: none;
  stroke: var(--signal-trail-color);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signal-strip__pursuit-person-arms {
  stroke-width: 1.25;
}

.signal-strip__pursuit-person-legs {
  stroke-width: 1.25;
}

.signal-strip__pursuit-headband {
  stroke-width: 2.2;
}

.signal-strip__pursuit-feather {
  fill: var(--signal-map-background);
  stroke-width: 1.6;
}

.signal-strip__arrow {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: signal-arrow-flight 5.2s linear both;
}

.signal-strip__arrow-stuck {
  opacity: 0.9;
  pointer-events: none;
  animation: signal-arrow-stuck-fade 3s ease 1s forwards;
}

.signal-strip__arrow-stuck-body {
  transform-origin: 0 0;
  animation: signal-arrow-stuck-twang 0.5s ease-out both;
}

.signal-strip__arrow-shaft {
  stroke: var(--signal-trail-color);
  stroke-width: 1.2;
}

.signal-strip__arrow-head {
  fill: var(--signal-trail-color);
  stroke: none;
}

.signal-strip__arrow-feathers {
  fill: none;
  opacity: 0.62;
  stroke: var(--signal-trail-color);
  stroke-linecap: round;
  stroke-width: 0.85;
}

.signal-strip__arrow-impact {
  fill: none;
  opacity: 1;
  stroke: var(--signal-trail-color);
  stroke-linecap: round;
  stroke-width: 0.85;
}

.section {
  --section-ink: var(--ink);
  --section-muted: var(--ink-soft);
  --section-line: var(--line-dark);
  --section-kicker: var(--rust-dark);
  --section-number: var(--rust);
  position: relative;
  padding-block: clamp(90px, 11vw, 155px);
  color: var(--section-ink);
}

.section--dark {
  --section-ink: var(--cream);
  --section-muted: rgb(255 248 232 / 72%);
  --section-line: rgb(255 248 232 / 20%);
  --section-kicker: var(--gold-bright);
  --section-number: var(--gold);
}

/* Jellyware dark rails: purple base washes with pink/magenta accents. */
html[data-theme="jellyware"] .section--dark {
  --section-muted: rgb(247 230 242 / 78%);
  --section-line: rgb(224 112 192 / 24%);
  --section-kicker: var(--gold-bright);
  --section-number: var(--gold);
}

.section--light {
  --section-ink: var(--ink);
  --section-muted: var(--ink-soft);
  --section-line: var(--line-dark);
  --section-kicker: var(--rust-dark);
  --section-number: var(--rust-dark);
}

.section .eyebrow {
  color: var(--section-kicker);
}

.section .eyebrow span {
  color: var(--section-number);
}

.savings-section {
  overflow: hidden;
  border-top: 1px solid rgb(244 204 114 / 22%);
  border-bottom: 1px solid rgb(244 204 114 / 22%);
  background:
    radial-gradient(circle at 8% 10%, rgb(244 204 114 / 15%), transparent 27%),
    radial-gradient(circle at 92% 82%, rgb(71 102 79 / 24%), transparent 30%),
    linear-gradient(145deg, #171522, #2b2132 56%, #142b40);
}

html[data-theme="jellyware"] .savings-section {
  border-top-color: rgb(224 112 192 / 30%);
  border-bottom-color: rgb(224 112 192 / 30%);
  background:
    radial-gradient(circle at 8% 10%, rgb(224 112 192 / 22%), transparent 27%),
    radial-gradient(circle at 92% 82%, rgb(96 16 128 / 36%), transparent 30%),
    linear-gradient(145deg, #180a28, #3a1058 56%, #200440);
}

.savings-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 88%);
  pointer-events: none;
}

.savings-section .shell {
  position: relative;
}

.customer-infra-section {
  overflow: hidden;
  border-top: 1px solid rgb(118 53 37 / 14%);
  border-bottom: 1px solid rgb(118 53 37 / 14%);
  background:
    radial-gradient(circle at 88% 12%, rgb(227 184 124 / 26%), transparent 28%),
    linear-gradient(145deg, #fff8e8, #efd6aa 58%, #f7e7c8);
  color: var(--ink);
}

.customer-infra-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(118 53 37 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(118 53 37 / 3%) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.customer-infra-section .shell {
  position: relative;
}

.customer-infra-section .section-heading--split > p {
  color: var(--ink-soft);
}

.customer-infra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(34px, 5vw, 60px);
}

.customer-infra-card {
  display: grid;
  align-content: start;
  min-height: 260px;
  gap: 14px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid rgb(118 53 37 / 24%);
  background: rgb(255 248 232 / 58%);
  box-shadow: 8px 9px 0 rgb(73 59 75 / 10%);
}

.customer-infra-card .eyebrow {
  margin-bottom: 0;
}

.customer-infra-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(
    calc(var(--fs-card-h3-min) * var(--type-scale-display)),
    calc(var(--fs-card-h3-fluid) * var(--type-scale-display)),
    calc(var(--fs-card-h3-max) * var(--type-scale-display))
  );
  font-weight: 400;
  line-height: 1.1;
}

.customer-infra-card p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: calc(var(--fs-card-body) * var(--type-scale-body));
  line-height: 1.65;
}

.savings-intro {
  align-items: stretch;
}

.savings-intro > div {
  align-self: center;
}

.carnegie-note {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "quote"
    "attribution";
  gap: 12px;
  margin: 0;
  padding: clamp(8px, 1.5vw, 18px) 0;
  border: 0;
  background: transparent;
}

.carnegie-note__attribution {
  display: flex;
  grid-area: attribution;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  margin: 0;
  padding-top: 0;
  border: 0;
}

.carnegie-note__attribution strong {
  color: var(--gold-bright);
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1;
}

.carnegie-note__attribution span {
  color: rgb(255 248 232 / 58%);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carnegie-note blockquote {
  grid-area: quote;
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(18px, 1.65vw, 24px);
  font-style: italic;
  line-height: 1.2;
}

.savings-model {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.savings-model__card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: clamp(28px, 4.5vw, 52px);
  border: 1px solid rgb(255 248 232 / 18%);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgb(0 0 0 / 24%);
}

.savings-model__card--repeat {
  background:
    linear-gradient(145deg, rgb(170 82 56 / 16%), transparent 46%),
    rgb(14 18 29 / 68%);
}

.savings-model__card--reuse {
  border-color: rgb(143 190 151 / 34%);
  background:
    linear-gradient(145deg, rgb(71 102 79 / 32%), transparent 50%),
    rgb(14 27 28 / 72%);
}

.savings-model__card .eyebrow {
  margin-bottom: 14px;
}

.savings-model__card h3 {
  margin-bottom: 22px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(27px, 3.1vw, 42px);
  font-weight: 400;
  line-height: 1.08;
}

.savings-formula {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.savings-formula li,
.savings-runs dt,
.savings-runs__step {
  position: relative;
  display: flex;
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  padding: 10px 12px 10px 32px;
  border: 1px solid rgb(255 248 232 / 11%);
  background: rgb(255 248 232 / 5%);
}

.savings-formula li,
.savings-runs__step {
  color: rgb(255 248 232 / 78%);
  font-size: 0.92rem;
}

.savings-formula li::before {
  position: absolute;
  left: 12px;
  color: var(--rust);
  content: "+";
  font-family: var(--mono);
  font-weight: 800;
}

.savings-formula li:first-child::before {
  content: "";
}

.savings-model__outcome {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
  padding: 11px 14px;
  border-top: 1px solid rgb(244 204 114 / 34%);
  border-bottom: 1px solid rgb(244 204 114 / 34%);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.savings-runs {
  display: grid;
  gap: 8px;
  margin: 0;
}

.savings-runs > div,
.savings-runs dd {
  display: contents;
}

.savings-runs dt {
  color: rgb(183 221 189 / 88%);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.savings-runs dt::before,
.savings-runs__step::before {
  color: rgb(143 190 151 / 92%);
  font-family: var(--mono);
  font-weight: 800;
}

.savings-runs dt::before {
  content: "→";
  position: absolute;
  left: 12px;
}

.savings-runs__step::before {
  content: "+";
  position: static;
  align-self: center;
  justify-self: start;
  line-height: 1;
}

.savings-runs__step {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
  padding-left: 12px;
}

.savings-runs__label {
  min-width: 0;
}

.savings-runs dd > .savings-runs__step {
  color: var(--gold);
}

.savings-model__close {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid rgb(244 204 114 / 30%);
}

.savings-model__close .eyebrow {
  margin: 0;
}

.savings-model__close h4 {
  margin: 0;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(23px, 2.3vw, 32px);
  font-weight: 400;
  line-height: 1.08;
}

.savings-model__close .button {
  justify-self: start;
  margin-top: 4px;
}

.closing-section::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 20% 20%, transparent 0, transparent 3px, rgb(67 42 34 / 11%) 4px),
    repeating-linear-gradient(95deg, transparent 0, transparent 11px, rgb(101 70 49 / 5%) 12px);
  background-size: 120px 90px, 100% 100%;
  content: "";
  pointer-events: none;
}

.section-heading {
  position: relative;
  max-width: 760px;
  margin-bottom: clamp(50px, 7vw, 86px);
}

.section-heading h2 {
  margin-bottom: 24px;
  color: var(--section-ink);
  font-family: var(--display);
  font-size: clamp(
    calc(var(--fs-section-h2-min) * var(--type-scale-display)),
    calc(var(--fs-section-h2-fluid) * var(--type-scale-display)),
    calc(var(--fs-section-h2-max) * var(--type-scale-display))
  );
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-heading__anchor {
  color: inherit;
  text-decoration-color: transparent;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-skip-ink: auto;
  transition: text-decoration-color 160ms ease;
}

.section-heading__anchor:hover,
.section-heading__anchor:focus-visible {
  text-decoration-color: var(--section-kicker);
}

.section-heading__anchor:focus-visible {
  outline: 3px solid var(--section-kicker);
  outline-offset: 7px;
}

.section-heading > p,
.section-heading--split > p {
  max-width: 650px;
  color: var(--section-muted);
  font-size: clamp(
    calc(var(--fs-section-lead-min) * var(--type-scale-body)),
    calc(var(--fs-section-lead-fluid) * var(--type-scale-body)),
    calc(var(--fs-section-lead-max) * var(--type-scale-body))
  );
}

.section-heading > p:last-child,
.section-heading--split > p {
  margin-bottom: 0;
}

.section-heading > p + p {
  margin-top: 0.85em;
}

.section-heading--split {
  display: grid;
  max-width: none;
  grid-template-columns: 1.1fr 0.75fr;
  gap: clamp(38px, 8vw, 110px);
  align-items: end;
}

/* Demo lead column: title left, both paragraphs right, equal column height. */
.demo-section__heading {
  align-items: stretch;
}

.demo-section__heading .section-heading__title,
.demo-section__heading .section-heading__lead {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100%;
}

.demo-section__heading .section-heading__lead {
  gap: 0.85em;
  max-width: 650px;
  padding-bottom: 0;
}

.demo-section__heading .section-heading__title .eyebrow {
  margin-top: 0;
}

.demo-section__heading .section-heading__lead > p {
  margin: 0;
  color: var(--section-muted);
  font-size: clamp(
    calc(var(--fs-section-lead-min) * var(--type-scale-body)),
    calc(var(--fs-section-lead-fluid) * var(--type-scale-body)),
    calc(var(--fs-section-lead-max) * var(--type-scale-body))
  );
}

.demo-section__heading .section-heading__title h2 {
  margin-bottom: 0;
}

.section-heading--split h2 {
  margin-bottom: 0;
}

.section-heading--split > p {
  padding-bottom: 8px;
  color: var(--section-muted);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading--center .eyebrow {
  justify-content: center;
}

.problem-section {
  overflow: hidden;
  border-top: 1px solid rgb(255 248 232 / 7%);
  background:
    radial-gradient(circle at 8% 12%, rgb(227 184 124 / 15%), transparent 28%),
    radial-gradient(circle at 90% 85%, rgb(170 82 56 / 18%), transparent 26%),
    linear-gradient(140deg, #181522, #2e2332 62%, #18283a);
}

html[data-theme="jellyware"] .problem-section {
  border-top-color: rgb(224 112 192 / 18%);
  background:
    radial-gradient(circle at 8% 12%, rgb(224 112 192 / 20%), transparent 28%),
    radial-gradient(circle at 90% 85%, rgb(138 47 176 / 30%), transparent 26%),
    linear-gradient(140deg, #180a28, #3a1058 62%, #200440);
}

.problem-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.problem-section .shell {
  position: relative;
}

.problem-section .section-heading h2 {
  color: var(--cream);
}

.agent-workbench {
  overflow: hidden;
  border: 1px solid rgb(118 53 37 / 24%);
  border-radius: 18px;
  background: rgb(255 248 232 / 78%);
  box-shadow: 0 22px 60px rgb(21 20 33 / 12%);
}

.workflow-tabs__list {
  display: flex;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  border-bottom: 1px solid rgb(118 53 37 / 18%);
  background: rgb(118 53 37 / 5%);
  scrollbar-width: thin;
}

.workflow-tabs__list button {
  min-height: 44px;
  flex: 1 0 max-content;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: 800 0.78rem/1.2 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-tabs__list button span {
  margin-right: 7px;
  color: var(--rust);
  font-family: var(--display);
}

.workflow-tabs__list button[aria-selected="true"] {
  border-color: rgb(118 53 37 / 28%);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 4px 14px rgb(21 20 33 / 8%);
}

.demo-onboarding {
  display: grid;
  gap: clamp(34px, 5vw, 58px);
  margin-top: clamp(34px, 6vw, 68px);
}

.demo-onboarding__step {
  display: grid;
  grid-template-columns: minmax(230px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
  padding-block: clamp(28px, 4vw, 46px);
  border-top: 1px solid rgb(118 53 37 / 22%);
}

.demo-onboarding__step:last-child {
  border-bottom: 1px solid rgb(118 53 37 / 22%);
}

.demo-registration {
  display: grid;
  gap: clamp(22px, 4vw, 36px);
}

.demo-registration__intro {
  max-width: 860px;
}

.demo-registration__screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.demo-registration-shot {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgb(118 53 37 / 32%);
  border-radius: 12px;
  background: #11101a;
  box-shadow: 10px 12px 0 rgb(118 53 37 / 12%);
}

.demo-registration-shot figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid rgb(244 204 114 / 20%);
  background: #211e2c;
  color: var(--cream);
}

.demo-registration-shot figcaption span {
  color: var(--gold-bright);
  font: 800 0.62rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-registration-shot figcaption strong {
  font-size: 0.88rem;
}

.demo-registration-shot pre {
  min-width: 0;
  margin: 0;
  overflow: auto;
  padding: clamp(16px, 2.5vw, 24px);
  color: #f8efd9;
  font: 500 clamp(0.61rem, 0.82vw, 0.72rem)/1.56 var(--mono);
  scrollbar-color: rgb(244 204 114 / 52%) #11101a;
  white-space: pre;
}

.demo-registration__note {
  max-width: 880px;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.agent-session[hidden] {
  display: none;
}

.demo-onboarding__copy h3,
.demo-registration__intro h3,
.agent-demo-result h3 {
  margin: 8px 0 14px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 400;
  line-height: 1.08;
}

.demo-onboarding__copy > p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.workflow-terminal,
.agent-session__terminal {
  margin: 0;
  overflow: auto;
  border: 1px solid rgb(244 204 114 / 22%);
  border-radius: 12px;
  background: #11101a;
  color: #f8efd9;
  box-shadow: inset 0 0 28px rgb(0 0 0 / 25%);
  font: 500 clamp(0.74rem, 1.2vw, 0.9rem)/1.68 var(--mono);
  white-space: pre-wrap;
}

.workflow-terminal {
  min-height: 260px;
  padding: clamp(18px, 3vw, 30px);
}

.demo-onboarding__command {
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

.agent-builder-section {
  overflow: hidden;
  border-top: 1px solid rgb(118 53 37 / 14%);
  border-bottom: 1px solid rgb(118 53 37 / 14%);
  background:
    radial-gradient(circle at 88% 12%, rgb(227 184 124 / 26%), transparent 28%),
    linear-gradient(145deg, #fff8e8, #efd6aa 58%, #f7e7c8);
}

.demo-agent {
  margin-top: clamp(90px, 12vw, 150px);
  padding-top: clamp(72px, 9vw, 112px);
  border-top: 2px solid rgb(118 53 37 / 18%);
}

.demo-agent-heading h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 67px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.demo-host {
  white-space: nowrap;
}

.agent-workbench {
  margin-top: clamp(36px, 6vw, 72px);
}

.workflow-tabs__list--agents {
  justify-content: center;
}

.workflow-tabs__list--agents button {
  max-width: 220px;
  font-family: var(--display);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
}

.agent-session {
  padding: clamp(20px, 4vw, 42px);
  border-bottom: 1px solid rgb(118 53 37 / 16%);
  background: linear-gradient(145deg, #171522, #22202d);
}

.agent-session__bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgb(255 248 232 / 50%);
  font: 800 0.68rem/1 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.agent-session__bar strong {
  color: var(--gold-bright);
}

.agent-session__terminal {
  min-height: 280px;
  padding: clamp(18px, 3vw, 30px);
}

.agent-session__cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 3px;
  background: var(--gold-bright);
  vertical-align: -0.13em;
  animation: agent-cursor-blink 0.85s steps(1, end) infinite;
}

.agent-session[data-agent-typing-complete="true"] .agent-session__cursor {
  animation: none;
  opacity: 0;
}

.agent-demo-result {
  display: grid;
  gap: clamp(24px, 4vw, 38px);
  padding: clamp(26px, 5vw, 64px);
}

.agent-demo-result__header {
  max-width: 780px;
}

.agent-demo-result__header > p:last-child,
.agent-demo-result__note {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.agent-demo-result__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border: 1px solid rgb(118 53 37 / 18%);
  list-style: none;
}

.agent-demo-result__steps li {
  display: grid;
  gap: 6px;
  padding: 18px;
  background: rgb(255 255 255 / 32%);
}

.agent-demo-result__steps li + li {
  border-left: 1px solid rgb(118 53 37 / 18%);
}

.agent-demo-result__steps strong {
  color: var(--ink);
}

.agent-demo-result__steps p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.agent-demo-result__terminal {
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: clamp(18px, 3vw, 30px);
}

.demo-beta-cta {
  display: grid;
  max-width: 900px;
  justify-items: center;
  gap: 20px;
  margin: clamp(56px, 8vw, 96px) auto 0;
  padding-top: clamp(38px, 6vw, 64px);
  border-top: 2px solid rgb(118 53 37 / 18%);
  text-align: center;
}

.demo-beta-cta h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.08;
}

@keyframes agent-cursor-blink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}

.handoff-story {
  --handoff-rail-width: clamp(48px, 6vw, 72px);
  --handoff-rail-x: 20px;
  --handoff-gap: clamp(32px, 5vw, 58px);
  --handoff-node-y: 32px;
  --handoff-step-left: 18px;

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--handoff-gap);
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 0 0 var(--handoff-rail-width);
  list-style: none;
}

.handoff-story__card:not(:last-child)::before {
  position: absolute;
  top: calc(var(--handoff-node-y) - 1px);
  left: calc(var(--handoff-rail-x) - var(--handoff-rail-width));
  width: 2px;
  height: calc(100% + var(--handoff-gap));
  background: linear-gradient(
    to bottom,
    var(--gold),
    rgb(227 184 124 / 48%)
  );
  content: "";
}

.handoff-story__card {
  position: relative;
  display: grid;
  overflow: visible;
  min-width: 0;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.78fr);
  grid-template-rows: minmax(250px, auto);
  border: 1px solid rgb(255 248 232 / 20%);
  background: rgb(12 12 20 / 52%);
  box-shadow: 9px 10px 0 rgb(8 8 14 / 24%);
}

.handoff-story__step::before {
  position: absolute;
  top: 15px;
  left: calc(-1 * (var(--handoff-rail-width) - var(--handoff-rail-x) + var(--handoff-step-left)));
  width: calc(var(--handoff-rail-width) - var(--handoff-rail-x));
  height: 2px;
  background: var(--gold);
  content: "";
}

.handoff-story__card::after {
  position: absolute;
  z-index: 2;
  top: var(--handoff-node-y);
  left: calc(var(--handoff-rail-x) - var(--handoff-rail-width) + 1px);
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 4px rgb(227 184 124 / 12%);
  content: "";
}

.handoff-story__card--human {
  border-color: rgb(227 184 124 / 62%);
}

.handoff-story__card--agent {
  border-color: rgb(186 164 220 / 58%);
}

.handoff-story__card--receipt {
  border-color: var(--gold);
}

.handoff-story__scene {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 42px 24px 24px;
  min-height: 250px;
  grid-column: 2;
  grid-row: 1;
  border-left: 1px solid rgb(255 248 232 / 18%);
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(145deg, rgb(227 184 124 / 8%), rgb(16 15 27 / 72%));
  background-size: 24px 24px, 24px 24px, auto;
}

.handoff-story__scene::after {
  position: absolute;
  right: -28px;
  bottom: -46px;
  width: 140px;
  height: 140px;
  border: 1px solid rgb(227 184 124 / 15%);
  border-radius: 50%;
  content: "";
}

.handoff-story__scene-label {
  position: absolute;
  top: 16px;
  right: 18px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-label) * var(--type-scale-ui));
  font-weight: 900;
  letter-spacing: 0.15em;
}

.handoff-story__copy {
  grid-column: 1;
  grid-row: 1;
  padding: clamp(68px, 6vw, 78px) clamp(34px, 4vw, 50px) clamp(34px, 4vw, 50px);
}

.handoff-story__step {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: var(--handoff-step-left);
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 0;
  color: rgb(255 248 232 / 55%);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-step) * var(--type-scale-ui));
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.handoff-story__step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  border: 1px solid var(--gold-bright);
  background: var(--gold);
  box-shadow: 3px 3px 0 rgb(8 8 14 / 35%);
}

.handoff-story__copy h3 {
  margin: 0 0 12px;
  color: var(--cream);
  font-family: var(--display);
  font-size: clamp(
    calc(var(--fs-handoff-h3-min) * var(--type-scale-display)),
    calc(var(--fs-handoff-h3-fluid) * var(--type-scale-display)),
    calc(var(--fs-handoff-h3-max) * var(--type-scale-display))
  );
  font-weight: 400;
  line-height: 1.16;
}

.handoff-story__copy > p:last-child {
  margin: 0;
  color: rgb(255 248 232 / 67%);
  font-size: calc(var(--fs-handoff-body) * var(--type-scale-body));
  line-height: 1.66;
}

.handoff-story__copy code {
  color: var(--gold-bright);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.handoff-story__window,
.handoff-story__terminal,
.handoff-story__secret-card,
.handoff-story__browser,
.handoff-story__receipt {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
  border: 1px solid rgb(255 248 232 / 30%);
  background: rgb(10 11 18 / 90%);
  box-shadow: 7px 8px 0 rgb(0 0 0 / 24%);
}

.handoff-story__window {
  padding: 45px 18px 22px;
}

.handoff-story__window-bar {
  position: absolute;
  inset: 0 0 auto;
  padding: 10px 14px;
  border-bottom: 1px solid rgb(255 248 232 / 18%);
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-label) * var(--type-scale-ui));
  letter-spacing: 0.1em;
}

.handoff-story__window code,
.handoff-story__terminal code {
  display: block;
  color: rgb(255 248 232 / 78%);
  font-family: var(--mono);
  font-size: clamp(
    calc(var(--fs-handoff-code-min) * var(--type-scale-ui)),
    calc(var(--fs-handoff-code-fluid) * var(--type-scale-ui)),
    calc(var(--fs-handoff-code-max) * var(--type-scale-ui))
  );
  line-height: 1.65;
  white-space: normal;
}

.handoff-story__secret-card {
  display: grid;
  padding: 20px;
  gap: 7px;
}

.handoff-story__secret-card strong {
  color: var(--cream);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-secret) * var(--type-scale-ui));
}

.handoff-story__secret-card > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: clamp(
    calc(8px * var(--type-scale-ui)),
    calc(1.15vw * var(--type-scale-ui)),
    calc(11px * var(--type-scale-ui))
  );
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}

.handoff-story__secret-card small {
  color: rgb(255 248 232 / 48%);
  font-family: var(--mono);
  font-size: calc(8px * var(--type-scale-ui));
  letter-spacing: 0.08em;
}

.handoff-story__chips {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 14px;
  display: flex;
  gap: 5px;
}

.handoff-story__chips span,
.handoff-story__schedule span {
  padding: 5px 7px;
  border: 1px solid rgb(227 184 124 / 36%);
  background: #1f1a28;
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-chip) * var(--type-scale-ui));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.handoff-story__crate {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(72%, 270px);
  min-height: 106px;
  place-content: center;
  border: 2px solid var(--gold);
  background: repeating-linear-gradient(135deg, #5d3328 0 12px, #6d3d2f 12px 24px);
  box-shadow: inset 0 0 0 8px rgb(20 15 21 / 24%), 9px 10px 0 rgb(0 0 0 / 22%);
  text-align: center;
}

.handoff-story__crate strong {
  color: var(--cream);
  font-family: var(--display);
  font-size: calc(var(--fs-handoff-crate) * var(--type-scale-display));
  font-weight: 400;
}

.handoff-story__crate span {
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-crate-meta) * var(--type-scale-ui));
}

.handoff-story__schedule {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 14px;
  display: grid;
  gap: 4px;
}

.handoff-story__people {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 410px);
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.handoff-story__people > span {
  display: grid;
  min-height: 82px;
  place-content: center;
  border: 1px solid rgb(255 248 232 / 30%);
  background: #211a2a;
  color: var(--cream);
  font-family: var(--display);
  font-size: calc(var(--fs-handoff-people) * var(--type-scale-display));
  text-align: center;
}

.handoff-story__people small {
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-meta) * var(--type-scale-ui));
  letter-spacing: 0.12em;
}

.handoff-story__people b {
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(8px * var(--type-scale-ui));
}

.handoff-story__deny {
  position: absolute;
  bottom: 15px;
  color: rgb(255 248 232 / 44%);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-meta) * var(--type-scale-ui));
  letter-spacing: 0.08em;
}

.handoff-story__browser {
  padding: 18px;
}

.handoff-story__browser span {
  display: block;
  margin-bottom: 18px;
  color: rgb(255 248 232 / 62%);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-browser) * var(--type-scale-ui));
}

.handoff-story__browser strong {
  display: block;
  padding: 13px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-browser-btn) * var(--type-scale-ui));
  letter-spacing: 0.1em;
  text-align: center;
}

.handoff-story__terminal {
  display: grid;
  padding: 18px;
  gap: 7px;
}

.handoff-story__terminal code::before {
  color: var(--gold);
  content: "› ";
}

.handoff-story__label-stack {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 430px);
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
}

.handoff-story__label-stack code {
  padding: 8px 10px;
  border: 1px solid rgb(227 184 124 / 42%);
  background: #211a2a;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-browser) * var(--type-scale-ui));
}

.handoff-story__receipt {
  display: grid;
  padding: 18px;
  gap: 5px;
  border-color: var(--gold);
}

.handoff-story__receipt strong {
  color: #b9e2bc;
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-receipt) * var(--type-scale-ui));
  letter-spacing: 0.14em;
}

.handoff-story__receipt span {
  color: rgb(255 248 232 / 70%);
  font-family: var(--mono);
  font-size: calc(var(--fs-handoff-browser) * var(--type-scale-ui));
}

.handoff-story__receipt b {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgb(227 184 124 / 30%);
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(8px * var(--type-scale-ui));
  letter-spacing: 0.1em;
}

.runtime-section {
  overflow: hidden;
  border-top: 1px solid rgb(118 53 37 / 14%);
  border-bottom: 1px solid rgb(118 53 37 / 14%);
  background:
    radial-gradient(circle at 10% 5%, rgb(227 184 124 / 24%), transparent 28%),
    radial-gradient(circle at 90% 90%, rgb(73 59 75 / 10%), transparent 29%),
    linear-gradient(145deg, #fff8e8, #efd6aa 58%, #f7e7c8);
  color: var(--ink);
}

.runtime-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(118 53 37 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(118 53 37 / 3%) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 88%);
  pointer-events: none;
}

.runtime-section .shell {
  position: relative;
}

.runtime-section .section-heading {
  max-width: 900px;
}

.runtime-section .section-heading h2 {
  color: var(--ink);
}

.runtime-section .section-heading > p:last-child {
  color: var(--ink-soft);
}

.runtime-section .section-heading code {
  color: var(--rust-dark);
  font-size: 0.86em;
}

.runtime-lifecycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0 0 28px;
  padding: 0;
  border-top: 1px solid rgb(118 53 37 / 18%);
  border-bottom: 1px solid rgb(118 53 37 / 18%);
  list-style: none;
}

.runtime-lifecycle li {
  display: grid;
  gap: 4px;
  padding: 20px clamp(12px, 2vw, 22px);
}

.runtime-lifecycle li:not(:last-child) {
  border-right: 1px solid rgb(118 53 37 / 18%);
}

.runtime-lifecycle strong {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 400;
}

.runtime-lifecycle small {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.45;
}

.runtime-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.runtime-panel {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: clamp(27px, 4vw, 43px);
  border: 1px solid rgb(118 53 37 / 20%);
  background: rgb(255 248 232 / 58%);
}

.runtime-panel--durable {
  border-color: rgb(71 102 79 / 42%);
  background: linear-gradient(145deg, rgb(71 102 79 / 14%), rgb(255 248 232 / 72%));
}

.runtime-panel__label {
  margin-bottom: 18px;
  color: var(--rust-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.runtime-panel h3 {
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.18;
}

.runtime-panel > p:not(.runtime-panel__label, .runtime-panel__proof) {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.runtime-panel > p.runtime-panel__proof {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid rgb(118 53 37 / 18%);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.55;
  text-transform: uppercase;
}

.runtime-analogy {
  max-width: 920px;
  margin: 32px auto 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}

.runtime-analogy strong {
  color: var(--rust-dark);
}

.authority-section__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 36px 0 0;
  text-align: center;
}

.authority-section__link,
.use-cases-section__link {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: center;
  margin: 36px 0 0;
  text-align: center;
}

.authority-section__guide,
.authority-section__link a,
.use-cases-section__link a {
  color: var(--rust-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration-color: rgb(118 53 37 / 38%);
  text-underline-offset: 5px;
  text-transform: uppercase;
}

.authority-section__guide,
.use-cases-section__link a,
.authority-section__link a {
  color: var(--gold-bright);
  text-decoration-color: rgb(244 204 114 / 42%);
}

.authority-section__guide:hover,
.authority-section__guide:focus-visible {
  color: var(--paper-pale);
}

.authority-section {
  overflow: hidden;
  border-top: 1px solid rgb(255 248 232 / 7%);
  border-bottom: 1px solid rgb(255 248 232 / 7%);
  background:
    radial-gradient(circle at 12% 12%, rgb(227 184 124 / 15%), transparent 26%),
    radial-gradient(circle at 91% 88%, rgb(71 102 79 / 20%), transparent 28%),
    linear-gradient(145deg, #181522, #2b2132 56%, #142b40);
  color: var(--cream);
}

html[data-theme="jellyware"] .authority-section {
  border-top-color: rgb(224 112 192 / 18%);
  border-bottom-color: rgb(224 112 192 / 18%);
  background:
    radial-gradient(circle at 12% 12%, rgb(224 112 192 / 20%), transparent 26%),
    radial-gradient(circle at 91% 88%, rgb(96 16 128 / 34%), transparent 28%),
    linear-gradient(145deg, #180a28, #301048 56%, #200440);
}

.authority-section .section-heading--split > p {
  color: rgb(255 248 232 / 72%);
}

.authority-section .section-heading h2 {
  color: var(--cream);
}

.lemc-theme-shot {
  --shot-primary: #493b4b;
  --shot-primary-content: #fff8e8;
  --shot-accent: #e3b87c;
  --shot-accent-strong: #d6af76;
  --shot-base: #f1c484;
  --shot-paper: #fff8e8;
  --shot-ink: #493b4b;
  --shot-muted: #786878;
  --shot-line: rgb(73 59 75 / 28%);
  --shot-action: #493b4b;
  --shot-action-content: #fff8e8;

  margin: 0;
  color: var(--shot-ink);
  font-family: var(--display);
}

.lemc-theme-shot.is-visible {
  --shot-primary: #063b78;
  --shot-primary-content: #fff;
  --shot-accent: #d8edf7;
  --shot-accent-strong: #078ec9;
  --shot-base: #eaf5fb;
  --shot-paper: #fff;
  --shot-ink: #173750;
  --shot-muted: #647a8b;
  --shot-line: rgb(6 59 120 / 22%);
  --shot-action: #078ec9;
  --shot-action-content: #fff;

  font-family: Arial, Helvetica, sans-serif;
}

.lemc-theme-shot__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.lemc-theme-shot__frames {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  height: clamp(800px, 63vw, 820px);
  overflow: hidden;
  border: 1px solid #252835;
  border-radius: 14px;
  background: #252835;
  box-shadow: 14px 16px 0 rgb(73 59 75 / 15%);
}

.lemc-theme-shot__frame {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #252835;
  pointer-events: none;
  transition: opacity 5s ease 900ms;
}

.lemc-theme-shot__frame:not([data-preview-ready="true"]) {
  visibility: hidden;
}

.lemc-theme-shot__frame--sheriff {
  z-index: 2;
  opacity: 1;
}

.lemc-theme-shot__frame--corporate {
  z-index: 1;
  opacity: 0;
}

.lemc-theme-shot[data-theme-active="corporate"] > .lemc-theme-shot__stage > .lemc-theme-shot__frames > .lemc-theme-shot__frame--sheriff {
  opacity: 0;
}

.lemc-theme-shot[data-theme-active="corporate"] > .lemc-theme-shot__stage > .lemc-theme-shot__frames > .lemc-theme-shot__frame--corporate {
  opacity: 1;
}

.lemc-theme-shot[data-theme-interacted="true"] > .lemc-theme-shot__stage > .lemc-theme-shot__frames > .lemc-theme-shot__frame {
  transition-duration: 0s;
  transition-delay: 0s;
}

.lemc-theme-shot__cycle-controls {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
  display: grid;
  grid-template-columns: 44px 132px 44px;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-block: 6px 8px;
  padding: 0;
  pointer-events: none;
}

.lemc-theme-shot[data-theme-controls-ready="true"] .lemc-theme-shot__cycle {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.lemc-theme-shot__cycle {
  appearance: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgb(73 59 75 / 38%);
  border-radius: 2px;
  color: var(--rust-dark);
  /* Opaque parchment so the rail stays readable on dark section bands. */
  background: var(--cream);
  box-shadow: 0 2px 4px rgb(33 25 29 / 14%);
  cursor: pointer;
  filter: none;
  font: 800 24px/1 var(--mono);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 140ms ease, border-color 140ms ease, background-color 140ms ease, color 140ms ease;
  visibility: hidden;
}

.lemc-theme-shot__cycle:hover {
  border-color: var(--rust-dark);
  color: var(--ink);
  background: var(--gold-bright);
  transform: translateY(-1px);
}

.lemc-theme-shot__cycle:focus-visible {
  outline: 3px solid var(--rust-dark);
  outline-offset: 3px;
}

.authority-section .lemc-theme-shot__cycle {
  border-color: rgb(244 204 114 / 48%);
  box-shadow: 0 2px 6px rgb(8 6 12 / 34%);
}

.authority-section .lemc-theme-shot__cycle:hover {
  border-color: var(--gold-bright);
}

.authority-section .lemc-theme-shot__cycle:focus-visible {
  outline-color: var(--gold-bright);
}

.lemc-theme-shot__selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65em;
  align-items: baseline;
  justify-content: center;
  width: 132px;
  min-height: 0;
  margin: 0;
  padding: 0;
  /* Follow the section rail so dark bands use cream, not brown ink. */
  color: var(--section-muted);
  border: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--body);
  font-size: 12px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: normal;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
}

.authority-section .lemc-theme-shot__selection {
  color: rgb(255 248 232 / 82%);
}

.lemc-theme-shot__selection > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lemc-theme-shot__selection b {
  color: inherit;
  font-weight: 700;
  white-space: nowrap;
}

.theme-preview-document {
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #252835;
}

.theme-preview-document > .lemc-theme-shot {
  min-height: 100vh;
  margin: 0;
}

.theme-preview-document .lemc-theme-shot__browser {
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: var(--shot-base);
  box-shadow: none;
}

.theme-preview-document .lemc-theme-shot__browserbar {
  flex: 0 0 auto;
}

.theme-preview-document .lemc-theme-shot__screen {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.theme-preview-document .lemc-theme-shot__workspace {
  flex: 1 1 auto;
}

.lemc-theme-shot__browser {
  overflow: hidden;
  border: 1px solid #252835;
  border-radius: 14px;
  background: #252835;
  box-shadow: 14px 16px 0 rgb(73 59 75 / 15%);
}

.lemc-theme-shot__browserbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  color: #d5d9e4;
  background: #252835;
  font-size: 10px;
}

.lemc-theme-shot__browser-dots {
  display: flex;
  gap: 6px;
}

.lemc-theme-shot__browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ec685f;
}

.lemc-theme-shot__browser-dots i:nth-child(2) { background: #e8b34f; }
.lemc-theme-shot__browser-dots i:nth-child(3) { background: #58b66d; }

.lemc-theme-shot__address {
  overflow: hidden;
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 9%);
  background: #303440;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lemc-theme-shot__state {
  position: relative;
  display: grid;
  min-width: 142px;
  min-height: 13px;
  color: #fff;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.lemc-theme-shot__state b,
.lemc-theme-shot__brand-copy b {
  grid-area: 1 / 1;
  transition: opacity 5s ease 900ms;
}

.lemc-theme-shot__state-sheriff,
.lemc-theme-shot__brand-sheriff,
.lemc-theme-shot__sheriff-logo {
  opacity: 1;
}

.lemc-theme-shot__state-corporate,
.lemc-theme-shot__brand-corporate,
.lemc-theme-shot__corporate-logo {
  opacity: 0;
}

.lemc-theme-shot.is-visible .lemc-theme-shot__state-sheriff,
.lemc-theme-shot.is-visible .lemc-theme-shot__brand-sheriff,
.lemc-theme-shot.is-visible .lemc-theme-shot__sheriff-logo {
  opacity: 0;
}

.lemc-theme-shot.is-visible .lemc-theme-shot__state-corporate,
.lemc-theme-shot.is-visible .lemc-theme-shot__brand-corporate,
.lemc-theme-shot.is-visible .lemc-theme-shot__corporate-logo {
  opacity: 1;
}

.lemc-theme-shot.is-visible .lemc-theme-shot__corporate-logo {
  filter: drop-shadow(0 3px 2px rgb(255 255 255 / 90%));
}

.lemc-theme-shot__screen,
.lemc-theme-shot__screen * {
  transition:
    color 5s ease 900ms,
    background-color 5s ease 900ms,
    border-color 5s ease 900ms,
    box-shadow 5s ease 900ms;
}

.theme-preview-document .lemc-theme-shot__screen,
.theme-preview-document .lemc-theme-shot__screen *,
.theme-preview-document .lemc-theme-shot__state b,
.theme-preview-document .lemc-theme-shot__brand-copy b,
.theme-preview-document .lemc-theme-shot__logo-stack img,
.theme-preview-document .lemc-theme-shot__workspace::before,
.theme-preview-document .lemc-theme-shot__workspace::after {
  transition: none;
}

.lemc-theme-shot__screen {
  overflow: hidden;
  color: var(--shot-ink);
  background: var(--shot-base);
}

.lemc-theme-shot__navbar {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 8px 20px;
  color: var(--shot-primary-content);
  background: var(--shot-primary);
  box-shadow: 0 8px 18px rgb(22 27 36 / 20%);
}

.lemc-theme-shot__brand {
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.lemc-theme-shot__logo-stack {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 66px;
}

.lemc-theme-shot__logo-stack img {
  position: absolute;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 5s ease 900ms;
}

.lemc-theme-shot__sheriff-logo {
  width: 88px;
}

.lemc-theme-shot__corporate-logo {
  width: 124px;
  height: 46px;
  margin: 10px 13px;
}

.lemc-theme-shot__brand-copy {
  display: grid;
  min-width: 146px;
  font-size: 18px;
  white-space: nowrap;
}

.lemc-theme-shot__brand-sheriff {
  font-family: var(--display);
  font-weight: 400;
}

.lemc-theme-shot__brand-corporate {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.lemc-theme-shot__navlinks {
  display: flex;
  gap: 9px;
  align-items: center;
}

.lemc-theme-shot__navlinks > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgb(255 255 255 / 22%);
  font-size: 11px;
  font-weight: 800;
}

.lemc-theme-shot__navlinks > .is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lemc-theme-shot__user {
  gap: 8px;
}

.lemc-theme-shot__user > b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--shot-primary);
  background: var(--shot-primary-content);
  font-size: 8px;
}

.lemc-theme-shot__user > span {
  display: grid;
  line-height: 1.2;
}

.lemc-theme-shot__user strong { font-size: 9px; }
.lemc-theme-shot__user small { font-size: 7px; opacity: 0.76; }

.lemc-theme-shot__workspace {
  position: relative;
  isolation: isolate;
  padding: 22px;
  background: var(--shot-base);
}

.lemc-theme-shot__workspace::before,
.lemc-theme-shot__workspace::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-position: center;
  background-size: cover;
  content: "";
  transition: opacity 5s ease 900ms;
}

.lemc-theme-shot__workspace::before {
  background-image:
    linear-gradient(rgb(73 59 75 / 16%), rgb(73 59 75 / 16%)),
    var(--hero-backdrop);
  opacity: 0.36;
}

.lemc-theme-shot__workspace::after {
  background:
    radial-gradient(circle at 12% 18%, rgb(7 142 201 / 13%), transparent 26%),
    radial-gradient(circle at 91% 82%, rgb(6 59 120 / 10%), transparent 28%),
    linear-gradient(135deg, #eef8fd, #f9fcff 54%, #e6f3fa);
  opacity: 0;
}

.lemc-theme-shot.is-visible .lemc-theme-shot__workspace::before { opacity: 0; }
.lemc-theme-shot.is-visible .lemc-theme-shot__workspace::after { opacity: 1; }

.lemc-theme-shot__app-meta {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 17px;
  border: 1px solid var(--shot-line);
  background: var(--shot-paper);
  box-shadow: 0 7px 16px rgb(30 45 61 / 10%);
}

.lemc-theme-shot__app-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--shot-primary-content);
  background: var(--shot-primary);
}

.lemc-theme-shot__app-icon svg {
  width: 30px;
  height: 30px;
}

.lemc-theme-shot__app-meta p,
.lemc-theme-shot__label {
  margin: 0;
  color: var(--shot-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lemc-theme-shot__app-meta h3 {
  margin: 3px 0;
  color: var(--shot-ink);
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.lemc-theme-shot__app-meta div > span {
  color: var(--shot-muted);
  font-size: 11px;
}

.lemc-theme-shot__access {
  padding: 7px 9px;
  color: var(--shot-primary-content);
  background: var(--shot-primary);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lemc-theme-shot__scope-tabs,
.lemc-theme-shot__page-tabs {
  display: flex;
  align-items: end;
}

.lemc-theme-shot__scope-tabs {
  gap: 5px;
  margin-bottom: 14px;
  padding: 12px 14px;
  outline: 1px solid var(--shot-accent-strong);
  background: var(--shot-accent);
}

.lemc-theme-shot__scope-tabs span,
.lemc-theme-shot__page-tabs span {
  padding: 8px 12px;
  border: 1px solid var(--shot-line);
  color: var(--shot-ink);
  background: rgb(255 255 255 / 58%);
  font-size: 9px;
  font-weight: 800;
}

.lemc-theme-shot__scope-tabs .is-active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lemc-theme-shot__app {
  border: 1px solid var(--shot-line);
  background: var(--shot-paper);
  box-shadow: 0 9px 22px rgb(30 45 61 / 10%);
}

.lemc-theme-shot__page-tabs {
  gap: 2px;
  padding: 10px 10px 0;
  border-bottom: 1px solid var(--shot-line);
}

.lemc-theme-shot__page-tabs .is-active {
  color: var(--shot-primary-content);
  border-color: var(--shot-primary);
  background: var(--shot-primary);
}

.lemc-theme-shot__content {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
  gap: 20px;
  padding: 22px;
}

.lemc-theme-shot__wiki {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--shot-line);
  background: var(--shot-paper);
}

.lemc-theme-shot__wiki h4,
.lemc-theme-shot__action h4 {
  margin: 6px 0 9px;
  color: var(--shot-ink);
  font-family: inherit;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.lemc-theme-shot__wiki h4 { font-size: 24px; }

.lemc-theme-shot__wiki > p:not(.lemc-theme-shot__label) {
  max-width: 620px;
  margin: 0;
  color: var(--shot-muted);
  font-size: 12px;
  line-height: 1.62;
}

.lemc-theme-shot__wiki dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.lemc-theme-shot__wiki dl div {
  padding: 11px;
  border: 1px solid var(--shot-line);
  background: var(--shot-base);
}

.lemc-theme-shot__wiki dt {
  color: var(--shot-muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lemc-theme-shot__wiki dd {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 800;
}

.lemc-theme-shot__wiki aside {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-left: 4px solid var(--shot-accent-strong);
  background: var(--shot-base);
}

.lemc-theme-shot__wiki aside strong { font-size: 10px; }
.lemc-theme-shot__wiki aside span { color: var(--shot-muted); font-size: 9px; }
.lemc-theme-shot__wiki aside b { color: var(--shot-ink); }

.lemc-theme-shot__job-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.lemc-theme-shot__action {
  border: 1px solid var(--shot-line);
  background: var(--shot-base);
}

.lemc-theme-shot__action {
  padding: 14px;
}

.lemc-theme-shot__action h4 { font-size: 16px; }

.lemc-theme-shot__action > p:not(.lemc-theme-shot__label) {
  margin: 0;
  color: var(--shot-muted);
  font-size: 9px;
  line-height: 1.5;
}

.lemc-theme-shot__action button {
  width: 100%;
  margin-top: 12px;
  padding: 9px 11px;
  color: var(--shot-action-content);
  border: 1px solid var(--shot-action);
  border-radius: 0;
  background: var(--shot-action);
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}

.lemc-theme-shot__pip {
  position: fixed;
  z-index: 8;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: center;
  width: min(400px, calc(100vw - 8px));
  height: 48px;
  padding: 0 14px;
  color: #f5f7fa;
  border: 1px solid #151824;
  background: #303440;
  box-shadow: 0 10px 25px rgb(0 0 0 / 42%);
  font-family: Arial, Helvetica, sans-serif;
}

.lemc-theme-shot__pip::after {
  grid-column: 3;
  content: "";
}

.lemc-theme-shot__pip-controls {
  grid-column: 1;
  display: flex;
  gap: 6px;
}

.lemc-theme-shot__pip-controls i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef5753;
}

.lemc-theme-shot__pip-controls i:nth-child(2) { background: #e8b34f; }
.lemc-theme-shot__pip-controls i:nth-child(3) { background: #58b66d; }

.lemc-theme-shot__pip strong {
  grid-column: 2;
  overflow: hidden;
  font-size: 10px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lemc-theme-shot figcaption {
  max-width: 880px;
  margin: 18px auto 0;
  border-bottom: 1px solid rgb(73 59 75 / 18%);
}

.authority-section .lemc-theme-shot figcaption {
  border-bottom-color: rgb(255 248 232 / 18%);
}

.lemc-theme-shot figcaption p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.authority-section .lemc-theme-shot figcaption p {
  color: rgb(255 248 232 / 68%);
}

.lemc-theme-shot figcaption strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.authority-section .lemc-theme-shot figcaption strong {
  color: var(--gold-bright);
}

.callers-section {
  overflow: hidden;
  border-top: 1px solid rgb(118 53 37 / 14%);
  border-bottom: 1px solid rgb(118 53 37 / 14%);
  background:
    radial-gradient(circle at 3% 7%, rgb(170 82 56 / 10%), transparent 27%),
    radial-gradient(circle at 95% 88%, rgb(73 59 75 / 10%), transparent 30%),
    var(--paper-light);
  color: var(--ink);
}

.callers-section::before {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    repeating-radial-gradient(circle at 20% 20%, transparent 0, transparent 3px, rgb(67 42 34 / 11%) 4px),
    repeating-linear-gradient(95deg, transparent 0, transparent 11px, rgb(101 70 49 / 5%) 12px);
  background-size: 120px 90px, 100% 100%;
  content: "";
  pointer-events: none;
}

.callers-section .section-heading h2 {
  color: var(--ink);
}

.caller-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.caller-card {
  position: relative;
  padding: clamp(24px, 3.2vw, 42px);
  border: 1px solid var(--line-light);
  background: rgb(19 18 29 / 55%);
  box-shadow: var(--shadow);
}

.caller-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--rust);
  content: "";
}

.caller-card--agent::before {
  background: var(--gold);
}

.caller-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.caller-card__header p {
  margin-bottom: 2px;
  color: rgb(255 248 232 / 46%);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.caller-card__header h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
}

.caller-card__icon {
  display: grid;
  width: 47px;
  height: 47px;
  place-items: center;
  border: 1px solid rgb(255 248 232 / 22%);
  border-radius: 50%;
  color: var(--gold-bright);
  font-size: 21px;
}

.caller-card__icon--terminal {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 800;
}

.caller-card__badge {
  padding: 4px 8px;
  border: 1px solid rgb(227 184 124 / 33%);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.browser-demo,
.terminal-demo {
  min-height: 330px;
  border: 1px solid rgb(255 248 232 / 14%);
  background: #12111b;
  box-shadow: 8px 10px 0 rgb(0 0 0 / 20%);
}

.browser-demo__chrome,
.terminal-demo__bar {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding-inline: 14px;
  border-bottom: 1px solid rgb(255 248 232 / 11%);
  background: #282331;
  color: rgb(255 248 232 / 46%);
  font-family: var(--mono);
  font-size: 9px;
}

.browser-demo__chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
}

.browser-demo__chrome i:nth-child(2) { background: var(--gold); }
.browser-demo__chrome i:nth-child(3) { background: #7e9571; }

.browser-demo__chrome span {
  margin-left: 8px;
}

.browser-demo__body {
  position: relative;
  min-height: 288px;
  padding: 29px;
  background:
    linear-gradient(rgb(242 212 160 / 92%), rgb(242 212 160 / 92%)),
    var(--hero-backdrop) center / cover;
  color: var(--ink);
}

.browser-demo__kicker {
  margin-bottom: 5px;
  color: var(--rust-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.browser-demo h4 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 400;
}

.browser-demo__field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 11px 13px;
  border: 1px solid var(--line-dark);
  background: rgb(255 248 232 / 50%);
  font-size: 13px;
}

.browser-demo__field span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.browser-demo__button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding-inline: 14px;
  background: var(--plum);
  box-shadow: 4px 4px 0 var(--rust);
  color: var(--paper-pale);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.browser-demo__status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 21px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
}

.browser-demo__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #52734a;
  box-shadow: 0 0 0 4px rgb(82 115 74 / 16%);
}

.terminal-demo__bar {
  justify-content: space-between;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 0;
  background: transparent;
  color: rgb(255 248 232 / 58%);
  font-family: var(--mono);
  font-size: 9px;
  cursor: pointer;
}

.copy-button:hover {
  color: var(--gold-bright);
}

.terminal-demo pre {
  min-height: 288px;
  margin: 0;
  overflow-x: auto;
  padding: 25px 22px;
  color: #e8ddc9;
  font-size: clamp(11px, 1.08vw, 13px);
  line-height: 1.72;
  tab-size: 2;
}

.terminal-prompt {
  color: var(--gold-bright);
}

.caller-card__summary {
  margin: 29px 0 0;
  color: rgb(255 248 232 / 62%);
  font-size: 15px;
}

.shared-contract {
  display: flex;
  justify-content: center;
  margin-top: 54px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.shared-contract p {
  margin: 0;
  padding: 12px 20px;
  border-top: 1px solid rgb(118 53 37 / 18%);
  border-bottom: 1px solid rgb(118 53 37 / 18%);
  text-align: center;
}

.shared-contract p span {
  margin-right: 7px;
  color: var(--gold);
  font-family: Georgia, serif;
}

.use-cases-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgb(227 184 124 / 15%), transparent 28%),
    radial-gradient(circle at 90% 85%, rgb(170 82 56 / 18%), transparent 26%),
    linear-gradient(140deg, #181522, #2e2332 62%, #18283a);
  color: var(--cream);
}

html[data-theme="jellyware"] .use-cases-section {
  background:
    radial-gradient(circle at 8% 12%, rgb(224 112 192 / 20%), transparent 28%),
    radial-gradient(circle at 90% 85%, rgb(138 47 176 / 30%), transparent 26%),
    linear-gradient(140deg, #180a28, #3a1058 62%, #200440);
}

.use-cases-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 88%);
  pointer-events: none;
}

.use-cases-section .shell {
  position: relative;
}

.use-cases-section .section-heading--split > p {
  color: rgb(255 248 232 / 72%);
}

.use-cases-section .section-heading h2 {
  color: var(--cream);
}

.use-case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 1fr;
  gap: 22px;
}

.use-case-card {
  position: relative;
  display: grid;
  min-height: 460px;
  height: 100%;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid #544256;
  background:
    linear-gradient(145deg, rgb(23 52 81 / 97%), rgb(45 33 48 / 99%)),
    var(--night-soft);
  box-shadow: 10px 11px 0 rgb(170 82 56 / 22%);
  color: var(--cream);
  grid-template-rows: auto 1fr auto;
}

.use-case-card::after {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  content: "";
}

.use-case-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 3vw, 38px);
  padding-bottom: 13px;
  border-bottom: 1px solid rgb(255 248 232 / 14%);
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.use-case-card header small {
  color: rgb(255 248 232 / 44%);
  font-size: 8px;
  font-weight: 400;
}

.use-case-card__content {
  display: grid;
  grid-template-columns: minmax(210px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(30px, 4vw, 58px);
  align-items: center;
}

.use-case-card__copy h3 {
  max-width: 430px;
  margin-top: 0;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(27px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.16;
}

.use-case-card__copy p {
  max-width: 480px;
  margin: 0;
  color: rgb(255 248 232 / 66%);
  font-size: 15px;
  line-height: 1.68;
}

.use-case-card__diagram {
  display: grid;
  grid-template-columns: minmax(160px, 0.92fr) 28px minmax(190px, 1fr) 28px minmax(160px, 0.92fr);
  gap: 10px;
  align-items: stretch;
}

.use-case-card__node {
  display: flex;
  min-width: 0;
  min-height: 142px;
  padding: 19px;
  border: 1px solid rgb(255 248 232 / 18%);
  background: rgb(8 12 22 / 36%);
  flex-direction: column;
  justify-content: center;
}

.use-case-card__node--author {
  border-color: rgb(227 184 124 / 48%);
  box-shadow: inset 4px 0 0 var(--gold);
}

.use-case-card__node--caller {
  border-color: rgb(227 184 124 / 30%);
}

.use-case-card__node--system {
  border-color: rgb(170 82 56 / 42%);
}

.use-case-card__node--outcome {
  border-color: rgb(170 82 56 / 58%);
  box-shadow: inset -4px 0 0 var(--rust);
}

.use-case-card__node small {
  margin-bottom: 10px;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.use-case-card__node strong {
  font-size: 13px;
  line-height: 1.45;
}

.use-case-card__node strong code {
  color: var(--gold-bright);
}

.use-case-card__node span {
  margin-top: 10px;
  color: rgb(255 248 232 / 43%);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
}

.use-case-card__actors {
  display: grid;
  gap: 10px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.use-case-card__actors .use-case-card__node {
  min-height: 66px;
  padding-block: 14px;
}

.use-case-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  font-family: Georgia, serif;
  font-size: 20px;
}

.use-case-card__receipt {
  margin: clamp(28px, 3vw, 38px) 0 0;
  padding: 15px 18px;
  border: 1px solid rgb(255 248 232 / 12%);
  background: rgb(8 12 22 / 32%);
  color: rgb(255 248 232 / 48%);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  text-transform: uppercase;
}

.use-case-card__receipt span {
  color: var(--gold-bright);
  font-weight: 800;
}

/* Creator profile — section 10 (keeps dark portrait treatment on the light rail) */
.creator-section {
  overflow: hidden;
  border-top: 1px solid rgb(255 248 232 / 7%);
  border-bottom: 1px solid rgb(255 248 232 / 7%);
  /* Force the dark Creator stage even on the even light rail slot. */
  --section-ink: var(--cream);
  --section-muted: rgb(255 248 232 / 72%);
  --section-line: rgb(255 248 232 / 20%);
  --section-kicker: var(--gold-bright);
  --section-number: var(--gold);
  background:
    radial-gradient(circle at 12% 5%, rgb(227 184 124 / 15%), transparent 27%),
    radial-gradient(circle at 90% 82%, rgb(170 82 56 / 18%), transparent 28%),
    linear-gradient(145deg, #142f49, #1b2136 54%, #2d2130);
  color: var(--cream);
}

html[data-theme="jellyware"] .creator-section {
  border-top-color: rgb(224 112 192 / 18%);
  border-bottom-color: rgb(224 112 192 / 18%);
  background:
    radial-gradient(circle at 12% 5%, rgb(224 112 192 / 22%), transparent 27%),
    radial-gradient(circle at 90% 82%, rgb(96 16 128 / 36%), transparent 28%),
    linear-gradient(145deg, #200440, #301048 54%, #4a1068);
}

.creator-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2.5%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2.5%) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 86%);
  pointer-events: none;
}

.creator-section .shell {
  position: relative;
}

.creator-section__inner {
  display: grid;
  justify-items: center;
}

.creator-profile {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vw, 28px);
  max-width: 40rem;
  text-align: center;
}

.creator-profile__eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
}

.creator-portrait {
  position: relative;
  width: min(240px, 58vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgb(244 204 114 / 55%),
    0 18px 42px rgb(0 0 0 / 42%);
  background: rgb(0 0 0 / 35%);
}

html[data-theme="jellyware"] .creator-portrait {
  box-shadow:
    0 0 0 3px rgb(224 112 192 / 65%),
    0 18px 42px rgb(0 0 0 / 48%);
}

.creator-portrait__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.creator-portrait__image--jellyware {
  display: none;
  object-position: center center;
}

html[data-theme="jellyware"] .creator-portrait__image--sheriff {
  display: none;
}

html[data-theme="jellyware"] .creator-portrait__image--jellyware {
  display: block;
}

.creator-profile h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--cream);
  text-shadow: 0 2px 12px rgb(0 0 0 / 35%);
}

.creator-profile h2 .section-heading__anchor {
  color: inherit;
  text-decoration: none;
}

.creator-profile h2 .section-heading__anchor:hover,
.creator-profile h2 .section-heading__anchor:focus-visible {
  color: var(--gold-bright);
}

html[data-theme="jellyware"] .creator-profile h2 .section-heading__anchor:hover,
html[data-theme="jellyware"] .creator-profile h2 .section-heading__anchor:focus-visible {
  color: rgb(255 180 230);
}

.creator-profile__bio {
  display: grid;
  gap: 1em;
  margin: 0;
  font-size: calc(var(--fs-body) * var(--type-scale-body));
  line-height: 1.55;
  color: rgb(255 248 232 / 88%);
}

.creator-profile__bio p {
  margin: 0;
}

.creator-profile__bio a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.creator-profile__bio a:hover,
.creator-profile__bio a:focus-visible {
  color: var(--cream);
}

html[data-theme="jellyware"] .creator-profile__bio a {
  color: rgb(255 180 230);
}

html[data-theme="jellyware"] .creator-profile__bio a:hover,
html[data-theme="jellyware"] .creator-profile__bio a:focus-visible {
  color: #fff;
}

.closing-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(100px, 14vw, 190px);
  background: var(--gold);
  color: var(--ink);
  text-align: center;
}

.closing-section__star {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgb(73 59 75 / 7%);
  font-family: Georgia, serif;
  font-size: min(72vw, 820px);
  line-height: 1;
  transform: translate(-50%, -50%);
}

.closing-section__content {
  position: relative;
  max-width: 930px;
}

.closing-section .eyebrow {
  justify-content: center;
  /* Gold stage uses gold kickers elsewhere; force dark type for contrast. */
  color: var(--ink);
}

html[data-theme="jellyware"] .closing-section .eyebrow {
  color: var(--ink);
}

.closing-section h2 {
  margin-bottom: 25px;
  font-family: var(--display);
  font-size: clamp(
    calc(var(--fs-closing-h2-min) * var(--type-scale-display)),
    calc(var(--fs-closing-h2-fluid) * var(--type-scale-display)),
    calc(var(--fs-closing-h2-max) * var(--type-scale-display))
  );
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.closing-section h2 .section-heading__anchor {
  color: inherit;
  text-decoration: none;
}

.closing-section h2 .section-heading__anchor:hover,
.closing-section h2 .section-heading__anchor:focus-visible {
  color: var(--plum-deep);
}

.closing-section__content > p:not(.eyebrow, .closing-section__machine-link) {
  max-width: 650px;
  margin: 0 auto 35px;
  color: var(--ink-soft);
  font-size: calc(var(--fs-closing-lead) * var(--type-scale-body));
}

.closing-section__actions {
  justify-content: center;
}

.button--dark {
  border-color: var(--plum-deep);
  background: var(--plum-deep);
  box-shadow: 5px 5px 0 var(--rust-dark);
  color: var(--paper-pale);
}

.button--dark:hover {
  background: var(--night);
}

.button--paper {
  border-color: rgb(33 25 29 / 38%);
  background: rgb(255 244 220 / 38%);
  color: var(--ink);
}

.button--paper:hover {
  background: var(--paper-pale);
}

.closing-section__machine-link {
  margin: 30px 0 0;
  font-family: var(--mono);
  font-size: 11px;
}

.closing-section__machine-link a {
  text-decoration-color: rgb(33 25 29 / 40%);
  text-underline-offset: 4px;
}

.site-footer {
  border-top: 1px solid rgb(255 248 232 / 12%);
  background: #111019;
}

html[data-theme="jellyware"] .site-footer {
  border-top-color: rgb(224 112 192 / 18%);
  background: rgb(62 36 84 / 90%);
}

.site-footer__inner {
  display: grid;
  min-height: 130px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand copyright nav";
  gap: 8px 32px;
  align-items: center;
  padding-block: 24px;
}

.brand--footer { grid-area: brand; }

.brand--footer .brand__name {
  font-size: calc(var(--fs-brand-footer) * var(--type-scale-ui));
}

.brand--footer .brand__sheriff {
  width: 44px;
}

.site-footer p {
  margin: 0;
  color: rgb(255 248 232 / 58%);
  font-size: calc(var(--fs-footer) * var(--type-scale-ui));
}

.site-footer nav {
  grid-area: nav;
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  gap: 18px;
  font-family: var(--mono);
  font-size: calc(var(--fs-footer-nav) * var(--type-scale-ui));
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-footer nav a {
  color: rgb(255 248 232 / 66%);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--gold-bright);
}

.site-footer__copyright {
  grid-area: copyright;
  font-family: var(--mono);
  font-size: 9px !important;
}

.error-page {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(90deg, rgb(21 20 33 / 94%), rgb(21 20 33 / 74%)),
    var(--hero-backdrop) center / cover;
}

.error-page__content {
  width: min(680px, calc(100% - 32px));
  padding-block: 56px;
}

.error-page__sheriff {
  width: 190px;
  height: 145px;
  margin-bottom: 12px;
  background: var(--mascot-idle) center / contain no-repeat;
  filter: drop-shadow(0 15px 20px rgb(0 0 0 / 35%));
}

.error-page h1 {
  max-width: 660px;
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(42px, 8vw, 76px);
  font-weight: 400;
  line-height: 1.05;
}

.error-page__content > p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 30px;
  color: rgb(255 248 232 / 70%);
}

.error-footer {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px solid rgb(255 248 232 / 16%);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.error-footer a {
  color: var(--gold);
  text-decoration: none;
}

.error-footer a:hover {
  color: var(--gold-bright);
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.js .reveal[data-reveal-delay="1"] { transition-delay: 100ms; }
.js .reveal[data-reveal-delay="2"] { transition-delay: 200ms; }
.js .reveal[data-reveal-delay="3"] { transition-delay: 300ms; }

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes horizon-breathe {
  from { filter: saturate(0.86) contrast(1.02) brightness(0.98); }
  to { filter: saturate(0.96) contrast(1.04) brightness(1.04); }
}

@keyframes sun-pulse {
  0%, 100% { opacity: 0.7; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 700px)); }
}

@keyframes dust-rise {
  0% { opacity: 0; transform: translate3d(0, 0, 0); }
  18% { opacity: 0.6; }
  80% { opacity: 0.25; }
  100% { opacity: 0; transform: translate3d(80px, -78vh, 0); }
}

@keyframes sheriff-idle {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-7px) rotate(0.5deg); }
}

@keyframes sheriff-talk-frames {
  0%, 49% { background-image: var(--mascot-talk-a); }
  50%, 100% { background-image: var(--mascot-talk-b); }
}

@keyframes sheriff-word-flight {
  0% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) rotate(var(--sheriff-flight-tilt)) scale(0.72);
  }

  100% {
    opacity: 1;
    transform:
      translate3d(
        calc(-50% + var(--sheriff-flight-dx)),
        calc(-50% + var(--sheriff-flight-dy)),
        0
      )
      rotate(0deg)
      scale(1);
  }
}

@keyframes sound-bar {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}

@keyframes scroll-drop {
  0% { transform: translateY(0); }
  100% { transform: translateY(200%); }
}

@keyframes signal-badge-jitter {
  0% { transform: rotate(-3deg) scale(1.03, 0.97); }
  6% { transform: rotate(2.5deg) scale(0.97, 1.03); }
  12% { transform: rotate(-1.5deg) scale(1.02, 0.98); }
  18% { transform: rotate(1deg) scale(0.99, 1.01); }
  24%, 100% { transform: rotate(0deg) scale(1); }
}

@keyframes signal-arrow-flight {
  0%, 5% { opacity: 0; transform: translate(0, 0) rotate(-20deg); }
  7% { opacity: 1; transform: translate(8px, -6px) rotate(-17deg); }
  18% { opacity: 1; transform: translate(var(--signal-arrow-arc-one-x), var(--signal-arrow-arc-y)) rotate(-7deg); }
  27% { opacity: 1; transform: translate(var(--signal-arrow-arc-two-x), var(--signal-arrow-arc-y)) rotate(12deg); }
  36%, 100% { opacity: 0; transform: translate(var(--signal-arrow-land-x), var(--signal-arrow-land-y)) rotate(68deg); }
}

@keyframes signal-arrow-stuck-fade {
  from { opacity: 0.9; }
  to { opacity: 0; }
}

@keyframes signal-arrow-stuck-twang {
  0%, 100% { rotate: 0deg; }
  16% { rotate: -5deg; }
  34% { rotate: 4deg; }
  52% { rotate: -2.75deg; }
  70% { rotate: 1.5deg; }
  86% { rotate: -0.6deg; }
}

@keyframes signal-rider-tick {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 var(--signal-rider-tick-y); }
}

@keyframes signal-rider-surge {
  0%, 100% { translate: 0 0; }
  18% { translate: var(--signal-rider-surge-forward) 0; }
  38% { translate: var(--signal-rider-surge-back) 0; }
  60% { translate: var(--signal-rider-surge-forward-two) 0; }
  82% { translate: var(--signal-rider-surge-back-two) 0; }
}

@keyframes signal-cowboy-gallop {
  0%, 100% { translate: 0 0; }
  18% { translate: var(--signal-rider-surge-forward) var(--signal-rider-tick-y); }
  38% { translate: var(--signal-rider-surge-back) 0; }
  60% { translate: var(--signal-rider-surge-forward-two) var(--signal-rider-tick-y); }
  82% { translate: var(--signal-rider-surge-back-two) 0; }
}

@keyframes signal-critter-fright-hop {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-7px) scale(1.04); }
}

@keyframes signal-critter-fright-lines {
  0% { opacity: 0; transform: scale(0.6); }
  30%, 85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

@keyframes signal-critter-run {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (max-width: 1040px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr) 390px;
    column-gap: 25px;
  }

  .hero h1 {
    font-size: clamp(
      calc(39px * var(--type-scale-display)),
      calc(5.2vw * var(--type-scale-display)),
      calc(58px * var(--type-scale-display))
    );
  }

  .sheriff-control__visual {
    height: 345px;
  }

  .sheriff-control__halo {
    width: 310px;
    height: 310px;
  }

  .savings-model {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .use-case-card__content {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

  .site-nav {
    min-height: 68px;
  }

  .hero {
    min-height: auto;
  }

  .hero__shade {
    background: var(--hero-shade-phone);
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 92px 52px;
  }

  .hero__copy {
    grid-column: 1;
    grid-row: 1;
    max-width: 650px;
  }

  .hero__lead {
    margin-bottom: 0;
  }

  .hero__actions {
    grid-column: 1;
    grid-row: 3;
  }

  .hero h1 {
    max-width: 680px;
    font-size: clamp(
      calc(39px * var(--type-scale-display)),
      calc(8vw * var(--type-scale-display)),
      calc(58px * var(--type-scale-display))
    );
  }

  .sheriff-stage {
    grid-column: 1;
    grid-row: 2;
    width: min(100%, 520px);
    justify-self: center;
    margin-top: 0;
    /* Keep air between stacked hero copy and the talking mascot. */
    padding-top: 28px;
  }

  .sheriff-control__visual {
    height: 390px;
  }

  .sheriff-control__halo {
    width: 350px;
    height: 350px;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .carnegie-note {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "quote"
      "attribution";
    gap: 16px;
  }

  .savings-model {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-infra-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-demo-result {
    padding-inline: clamp(20px, 4vw, 34px);
  }

  .agent-demo-result__steps {
    grid-template-columns: 1fr;
  }

  .agent-demo-result__steps li + li {
    border-top: 1px solid rgb(118 53 37 / 18%);
    border-left: 0;
  }

  .demo-onboarding__step {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-onboarding__step .workflow-terminal {
    grid-column: 1 / -1;
  }

  .caller-grid,
  .runtime-pair {
    grid-template-columns: 1fr;
  }

  .runtime-lifecycle {
    grid-template-columns: 1fr;
  }

  /* Two children only (strong + small); no number column. */
  .runtime-lifecycle li {
    display: grid;
    grid-template-columns: minmax(5.5rem, max-content) minmax(0, 1fr);
    gap: 8px 16px;
    align-items: baseline;
  }

  .runtime-lifecycle li:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgb(118 53 37 / 18%);
  }

  .runtime-lifecycle small {
    font-size: 11px;
    line-height: 1.45;
  }

  .runtime-panel {
    min-height: auto;
  }

  .lemc-theme-shot__content {
    grid-template-columns: 1fr;
  }

  .lemc-theme-shot__frames {
    height: 940px;
  }

  .lemc-theme-shot__job-rail {
    grid-template-columns: 1fr;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .use-case-card {
    min-height: auto;
  }

  .use-case-card__diagram {
    grid-template-columns: 1fr;
  }

  .use-case-card__node {
    min-height: auto;
  }

  .use-case-card__arrow {
    min-height: 24px;
    transform: rotate(90deg);
  }

  .caller-grid {
    gap: 22px;
  }

  .site-footer__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand copyright"
      "nav nav";
    gap: 18px;
    padding-block: 30px;
  }

  .site-footer nav {
    grid-area: nav;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 28px);
  }

  body {
    font-size: calc(var(--fs-body-phone) * var(--type-scale-body));
  }

  .agent-workbench {
    border-radius: 12px;
  }

  .workflow-tabs__list {
    justify-content: flex-start;
  }

  .workflow-tabs__list button {
    padding-inline: 12px;
    font-size: 0.68rem;
  }

  .agent-session,
  .agent-demo-result {
    padding: 20px 16px;
  }

  .demo-onboarding {
    gap: 30px;
  }

  .demo-onboarding__step {
    gap: 18px;
    padding-block: 24px;
  }

  .demo-registration__screens {
    grid-template-columns: 1fr;
  }

  .demo-registration-shot {
    box-shadow: 6px 8px 0 rgb(118 53 37 / 12%);
  }

  .demo-registration-shot figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .demo-registration-shot pre {
    padding: 15px 12px;
    font-size: 0.63rem;
  }

  .savings-model__card {
    padding: 24px 18px;
  }

  .demo-agent-heading h3 {
    font-size: clamp(34px, 11vw, 49px);
  }

  .workflow-terminal,
  .agent-session__terminal {
    min-height: 250px;
    padding: 16px 13px;
    font-size: 0.68rem;
  }

  .agent-demo-result__terminal {
    min-height: 0;
  }

  .demo-onboarding__command {
    min-height: 0;
  }

  .brand__name {
    display: inline;
    font-size: calc(var(--fs-brand-phone) * var(--type-scale-ui));
  }

  .brand--footer .brand__name {
    display: inline;
  }

  .brand__short {
    display: none;
  }

  .brand__sheriff {
    width: 40px;
  }

  .site-nav,
  .docs-header__inner {
    flex-wrap: nowrap;
    gap: 8px 10px;
  }

  /* iPhone-width headers: brand + hamburger stay on one compact row. */
  .site-nav {
    row-gap: 0;
  }

  .site-nav__links,
  .docs-header__actions {
    gap: 0;
  }

  .site-theme-picker--drawer {
    gap: 6px;
  }

  .site-theme-picker--drawer .site-theme-picker__select {
    min-width: 0;
    padding: 0 28px 0 10px;
    font-size: calc(var(--fs-control-phone) * var(--type-scale-ui));
  }

  .site-nav__demo {
    min-height: 44px;
    padding: 0 10px;
    font-size: calc(var(--fs-control-phone) * var(--type-scale-ui));
  }

  .site-nav__menu-drawer > summary {
    font-size: calc(var(--fs-control-phone) * var(--type-scale-ui));
  }

  .hero__content {
    padding-block: 76px 22px;
  }

  .hero h1 {
    margin-bottom: 8px;
    font-size: clamp(
      calc(var(--fs-hero-phone-min) * var(--type-scale-display)),
      calc(var(--fs-hero-phone-fluid) * var(--type-scale-display)),
      calc(var(--fs-hero-phone-max) * var(--type-scale-display))
    );
    line-height: 0.98;
  }

  html[data-theme="jellyware"] .hero h1 {
    margin-bottom: 10px;
    line-height: 1.12;
    letter-spacing: 0;
  }

  .hero__subtitle {
    margin-bottom: 6px;
    font-size: clamp(
      calc(var(--fs-hero-sub-phone-min) * var(--type-scale-body)),
      calc(var(--fs-hero-sub-phone-fluid) * var(--type-scale-body)),
      calc(var(--fs-hero-sub-phone-max) * var(--type-scale-body))
    );
    line-height: 1.08;
    white-space: nowrap;
  }

  html[data-theme="jellyware"] .hero__subtitle {
    line-height: 1.2;
    white-space: normal;
  }

  .hero__lead {
    font-size: calc(var(--fs-hero-lead-phone) * var(--type-scale-body));
    line-height: 1.42;
  }

  html[data-theme="jellyware"] .hero__lead {
    line-height: 1.5;
  }

  .hero__actions {
    display: none;
  }

  .closing-section__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .sheriff-stage {
    /* Extra top margin on phone when body type scale grows the lead. */
    padding-top: 40px;
  }

  .sheriff-control__visual {
    height: 340px;
  }

  .sheriff-control__halo {
    width: 300px;
    height: 300px;
  }

  .sheriff-control__portrait {
    inset: -2% 3% 5%;
  }

  .sheriff-audio-controls {
    margin-top: -24px;
    gap: 18px;
  }

  .hero:has(.sheriff-playlist[open]) {
    z-index: 1001;
  }

  .sheriff-playlist__panel {
    position: fixed;
    z-index: 10002;
    top: 50%;
    left: 50%;
    width: min(410px, calc(100vw - 32px));
    max-height: min(480px, calc(100dvh - 96px));
    transform: translate(-50%, -50%);
  }

  .sheriff-playlist__items {
    max-height: min(430px, calc(100dvh - 138px));
  }

  .sheriff-sentence {
    width: min(100%, 390px);
    min-height: 4.88em;
    margin-top: 6px;
    font-size: 15px;
  }

  .section {
    padding-block: 82px;
  }

  .section-heading h2,
  .closing-section h2 {
    font-size: clamp(34px, 11vw, 49px);
  }


  .section-heading {
    margin-bottom: 46px;
  }

  .handoff-story {
    --handoff-rail-width: 40px;
    --handoff-rail-x: 12px;
    --handoff-node-y: 28px;
    --handoff-step-left: 12px;

    gap: 32px;
  }

  .handoff-story__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 185px;
  }

  .runtime-panel,
  .use-case-card {
    padding: 24px;
  }

  .handoff-story__scene {
    grid-column: 1;
    grid-row: 2;
    padding: 39px 16px 18px;
    min-height: 185px;
    border-top: 1px solid rgb(255 248 232 / 18%);
    border-left: 0;
  }

  .handoff-story__copy {
    grid-column: 1;
    grid-row: 1;
    padding: 58px 22px 24px;
  }

  .handoff-story__step {
    top: 12px;
    left: 12px;
    gap: 0;
    font-size: 0;
  }

  .handoff-story__step span {
    width: 32px;
    height: 32px;
    font-size: 9px;
  }

  .handoff-story__scene-label {
    top: 16px;
    right: 14px;
  }

  .handoff-story__chips {
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .handoff-story__people {
    gap: 7px;
  }

  .handoff-story__people > span {
    min-height: 72px;
    font-size: 19px;
  }

  .runtime-lifecycle li {
    grid-template-columns: minmax(5rem, max-content) minmax(0, 1fr);
    gap: 6px 12px;
    padding-inline: 12px;
  }

  .lemc-theme-shot__browser {
    border-radius: 10px;
    box-shadow: 7px 8px 0 rgb(73 59 75 / 15%);
  }

  .lemc-theme-shot__frames {
    height: 1110px;
    border-radius: 10px;
    box-shadow: 7px 8px 0 rgb(73 59 75 / 15%);
  }

  .lemc-theme-shot__stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .lemc-theme-shot__cycle {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  .lemc-theme-shot__cycle-controls {
    gap: 8px;
  }

  .lemc-theme-shot__selection {
    gap: 7px;
    font-size: 11px;
  }

  .lemc-theme-shot figcaption p {
    padding-inline: 4px;
    font-size: 11px;
  }

  .lemc-theme-shot__browserbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
  }

  .lemc-theme-shot__state {
    display: none;
  }

  .lemc-theme-shot__navbar {
    gap: 10px;
    min-height: 72px;
    padding-inline: 10px;
  }

  .lemc-theme-shot__logo-stack {
    width: 120px;
    height: 54px;
  }

  .lemc-theme-shot__corporate-logo {
    width: 100px;
    height: 38px;
    margin: 8px 10px;
  }
  .lemc-theme-shot__sheriff-logo { width: 72px; }

  .lemc-theme-shot__brand-copy {
    display: none;
  }

  .lemc-theme-shot__navlinks > span {
    padding: 6px 8px;
    font-size: 8px;
  }

  .lemc-theme-shot__user > span {
    display: none;
  }

  .lemc-theme-shot__workspace {
    padding: 12px;
  }

  .lemc-theme-shot__app-meta {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .lemc-theme-shot__app-icon {
    width: 44px;
    height: 44px;
  }

  .lemc-theme-shot__app-meta h3 {
    font-size: 17px;
  }

  .lemc-theme-shot__access {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .lemc-theme-shot__scope-tabs,
  .lemc-theme-shot__page-tabs {
    flex-wrap: wrap;
  }

  .lemc-theme-shot__scope-tabs span,
  .lemc-theme-shot__page-tabs span {
    padding: 7px 8px;
    font-size: 8px;
  }

  .lemc-theme-shot__content {
    gap: 12px;
    padding: 12px;
  }

  .lemc-theme-shot__wiki {
    padding: 16px;
  }

  .lemc-theme-shot__wiki h4 {
    font-size: 19px;
  }

  .lemc-theme-shot__wiki dl,
  .lemc-theme-shot__job-rail {
    grid-template-columns: 1fr;
  }

  .use-case-card header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 34px;
  }

  .use-case-card__content {
    gap: 26px;
  }

  .use-case-card__node {
    padding: 17px;
  }

  .use-case-card__receipt {
    margin-top: 26px;
  }

  .caller-card {
    padding: 18px;
  }

  .caller-card__header {
    grid-template-columns: auto 1fr;
  }

  .caller-card__badge {
    display: none;
  }

  .browser-demo__body {
    padding: 22px 18px;
  }

  .terminal-demo pre {
    padding: 22px 15px;
    font-size: 10px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr) max-content;
    grid-template-areas:
      "brand nav"
      "copyright nav";
    min-height: auto;
    gap: 4px 12px;
    align-items: center;
    padding-block: 24px;
  }

  .brand--footer {
    align-self: end;
    justify-self: start;
    gap: 5px;
  }

  .brand--footer .brand__name {
    font-size: 12px;
  }

  .brand--footer .brand__sheriff {
    width: 30px;
  }

  .site-footer__copyright {
    align-self: start;
    justify-self: start;
  }

  .site-footer nav {
    display: grid;
    width: max-content;
    grid-template-columns: repeat(2, max-content);
    gap: 10px 12px;
    justify-content: flex-end;
    justify-self: end;
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 8px;
    line-height: 1.4;
  }

  .site-footer nav a {
    text-align: right;
  }
}

/* Browser-captured social card mode. The build renders this from the live hero. */

html.mobile-preview,
html.mobile-preview body {
  width: 390px;
  height: 1200px;
  overflow: hidden;
  scroll-behavior: auto;
}

.mobile-preview .site-header {
  position: absolute;
}

.mobile-preview .dust-field,
.mobile-preview .hero__cloud {
  display: none;
}

.mobile-preview .sheriff-control__portrait {
  animation: none;
}

/*
 * Social OG/X capture is a real 1200×630 screenshot of the desktop hero.
 * Keep type, grid, and sheriff sizes on the live homepage rules. Only force
 * the card box, freeze motion, and hide interactive chrome that does not
 * belong on a static social card.
 */
html.social-preview,
html.social-preview body {
  width: 1200px;
  height: 630px;
  overflow: hidden;
  scroll-behavior: auto;
}

.social-preview .site-header {
  position: absolute;
}

.social-preview .site-nav__menu-drawer,
.social-preview .sheriff-audio-controls,
.social-preview .sheriff-sentence,
.social-preview .sheriff-heckle-sign,
.social-preview .scroll-cue {
  display: none;
}

.social-preview .hero {
  width: 1200px;
  height: 630px;
  min-height: 630px;
}

.social-preview .hero__content {
  /* Same desktop track as the live hero; only the vertical box is card-sized. */
  height: 630px;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, 0.9fr);
  column-gap: clamp(28px, 5vw, 88px);
  row-gap: 0;
  align-items: center;
  /* Live hero is taller than 630px; keep the same composition, less padding. */
  padding-block: 92px 40px;
}

.social-preview .hero__lead {
  margin-bottom: 22px;
}

.social-preview .sheriff-stage {
  align-self: center;
  padding-top: 18px;
}

.social-preview .sheriff-control {
  cursor: default;
}

.social-preview .sheriff-control__portrait {
  animation: none;
  transform: none;
}

.social-preview .hero__backdrop {
  animation: none;
  transform: none;
}

.social-preview .hero__cloud,
.social-preview .dust-field {
  display: none;
}

.social-preview .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  .hero__backdrop {
    transform: none;
  }

  .dust-field,
  .hero__cloud,
  .scroll-cue {
    display: none;
  }

  .signal-strip__badge-jitter,
  .signal-strip__arrow,
  .signal-strip__critter-facing,
  .signal-strip__critter-motion {
    animation: none !important;
    transform: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .lemc-theme-shot__screen,
  .lemc-theme-shot__screen *,
  .lemc-theme-shot__state b,
  .lemc-theme-shot__brand-copy b,
  .lemc-theme-shot__logo-stack img,
  .lemc-theme-shot__workspace::before,
  .lemc-theme-shot__workspace::after {
    transition-delay: 0ms !important;
  }

  .sheriff-sentence__flight-layer {
    display: none;
  }
}

@media (forced-colors: active) {
  .hero__shade {
    background: Canvas;
    opacity: 0.78;
  }

  .caller-card,
  .runtime-panel,
  .lemc-theme-shot__browser,
  .lemc-theme-shot__app,
  .lemc-theme-shot__wiki,
  .lemc-theme-shot__action,
  .use-case-card,
  .use-case-card__node {
    border: 2px solid CanvasText;
  }

  .sheriff-sentence__word {
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
    -webkit-text-stroke: 0;
    text-shadow: none;
  }
}

/* First-party releases */

.release-page {
  min-height: 100svh;
  background: var(--night);
  color: var(--cream);
}

.release-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(148px, 17vw, 220px) clamp(92px, 11vw, 140px);
  border-bottom: 1px solid var(--line-light);
  background:
    radial-gradient(circle at 82% 18%, rgb(227 184 124 / 25%), transparent 24%),
    linear-gradient(rgb(21 20 33 / 88%), rgb(21 20 33 / 96%)),
    var(--hero-backdrop) center 45% / cover;
}

.release-hero::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
}

.release-hero__content {
  position: relative;
  z-index: 1;
}

.release-hero h1 {
  max-width: 900px;
  margin-bottom: 28px;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.02;
}

.release-hero__content > p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 38px;
  color: rgb(255 248 232 / 72%);
  font-size: clamp(17px, 2vw, 21px);
}

.release-hero code {
  color: var(--gold-bright);
  font-size: 0.85em;
}

.release-status {
  display: grid;
  width: min(100%, 720px);
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgb(227 184 124 / 38%);
  background: rgb(21 20 33 / 76%);
  box-shadow: 8px 9px 0 rgb(170 82 56 / 24%);
  font-family: var(--mono);
}

.release-status span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.release-status strong {
  color: var(--cream);
  font-size: 13px;
}

.release-status small {
  color: rgb(255 248 232 / 50%);
  font-size: 9px;
  text-align: right;
}

.release-catalog {
  background:
    radial-gradient(circle at 8% 8%, rgb(227 184 124 / 20%), transparent 25%),
    var(--paper-pale);
  color: var(--ink);
}

.release-catalog .section-heading--split > p {
  color: var(--ink-soft);
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.release-card {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line-dark);
  background: rgb(255 248 232 / 76%);
  box-shadow: 7px 8px 0 rgb(118 53 37 / 14%);
}

.release-card--container {
  background: rgb(227 184 124 / 16%);
}

.release-card.is-available {
  border-color: var(--rust-dark);
}

.release-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 27px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--rust-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.release-card header small {
  color: var(--ink-soft);
  font-size: 8px;
}

.release-card h3 {
  margin-bottom: 14px;
  font-size: 18px;
  line-height: 1.35;
}

.release-card h3 code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.88em;
}

.release-card > p:not(.release-card__sha) {
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.58;
}

.release-card__action {
  margin-top: auto;
}

.release-card__action > span {
  display: block;
  padding: 12px 14px;
  border: 1px dashed rgb(118 53 37 / 35%);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.release-card__download {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
}

.release-card__pull {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px 14px;
  border: 1px solid #443745;
  background: var(--night-soft);
  color: var(--cream);
  font-size: 9px;
  line-height: 1.6;
}

.release-card__sha {
  margin: 14px 0 0;
  overflow-wrap: anywhere;
  color: var(--rust-dark);
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.55;
}

.release-catalog__empty {
  margin: 34px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--rust);
  background: rgb(170 82 56 / 8%);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
}

.release-catalog__checksums a {
  color: var(--rust-dark);
  font-weight: 800;
  text-underline-offset: 4px;
}

.release-proof {
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  background:
    radial-gradient(circle at 85% 15%, rgb(227 184 124 / 14%), transparent 30%),
    var(--night-soft);
}

.release-proof__layout,
.release-verify__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(40px, 7vw, 90px);
  align-items: start;
}

.release-proof h2,
.release-history h2,
.release-verify h2 {
  margin-bottom: 22px;
  font-family: var(--display);
  font-size: clamp(36px, 4.7vw, 57px);
  font-weight: 400;
  line-height: 1.08;
}

.release-proof__layout > div > p:last-child {
  margin: 0;
  color: rgb(255 248 232 / 64%);
  font-size: 16px;
}

.release-proof__steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
  list-style: none;
}

.release-proof__steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 17px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line-light);
}

.release-proof__steps li > span {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.release-proof__steps p {
  margin: 0;
  color: rgb(255 248 232 / 64%);
  font-size: 14px;
}

.release-proof__steps strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cream);
}

.release-proof__steps code {
  color: var(--gold);
  font-size: 0.82em;
}

.release-history__open {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.release-history__open:hover,
.release-history__open:focus-visible {
  color: var(--cream);
}

.release-history__open:focus-visible,
.release-changelog__close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.release-changelog {
  width: min(760px, calc(100vw - 32px));
  max-width: none;
  max-height: min(86vh, 900px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rust);
  background: var(--cream);
  box-shadow: 0 28px 90px rgb(15 12 17 / 55%);
  color: var(--ink);
}

.release-changelog::backdrop {
  background: rgb(21 17 23 / 78%);
  backdrop-filter: blur(3px);
}

.release-changelog__frame {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(86vh, 900px);
}

.release-changelog__header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(24px, 5vw, 42px);
  border-bottom: 1px solid rgb(118 53 37 / 24%);
  background: var(--paper);
}

.release-changelog__header .eyebrow {
  margin-bottom: 10px;
}

.release-changelog__header h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 400;
  line-height: 1;
}

.release-changelog__close {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.release-changelog__close:hover {
  background: var(--ink);
  color: var(--cream);
}

.release-changelog__content {
  overflow: auto;
  padding: clamp(24px, 5vw, 42px);
  background: var(--cream);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.release-changelog__content h3,
.release-changelog__content h4,
.release-changelog__content h5 {
  margin: 34px 0 12px;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
}

.release-changelog__content h3:first-child {
  margin-top: 0;
  font-size: 32px;
}

.release-changelog__content h4 {
  font-size: 25px;
}

.release-changelog__content h5 {
  font-size: 20px;
}

.release-changelog__content p,
.release-changelog__content ul {
  margin: 0 0 16px;
}

.release-changelog__content ul {
  padding-left: 22px;
}

.release-changelog__content code {
  color: var(--rust-dark);
}

.release-changelog__content pre {
  overflow: auto;
  padding: 18px;
  background: var(--night);
  color: var(--cream);
  font-size: 12px;
}

.release-changelog__footer {
  display: flex;
  justify-content: flex-end;
  padding: 20px clamp(24px, 5vw, 42px);
  border-top: 1px solid rgb(118 53 37 / 24%);
  background: var(--paper);
}

.release-changelog__footer .button {
  min-height: 44px;
}

.release-verify {
  background: #e7c486;
  color: var(--ink);
}

.release-verify__layout > div > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.release-verify code {
  color: var(--rust-dark);
  font-size: 0.84em;
}

.release-verify pre {
  margin: 0;
  overflow-x: auto;
  padding: 28px;
  border: 1px solid #443745;
  background: var(--night-soft);
  box-shadow: 8px 9px 0 rgb(118 53 37 / 24%);
  color: var(--cream);
  font-size: 12px;
  line-height: 1.8;
}

.release-verify pre code {
  color: inherit;
}

.release-closing {
  padding-block: 58px;
  border-bottom: 1px solid var(--line-light);
  background: var(--night);
}

.release-closing .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.release-closing p {
  margin: 0;
  color: rgb(255 248 232 / 66%);
}

@media (max-width: 1040px) {
  .release-grid {
    grid-template-columns: 1fr 1fr;
  }

  .release-proof__layout,
  .release-verify__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .release-status {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .release-status small {
    text-align: left;
  }

  .release-grid {
    grid-template-columns: 1fr;
  }

  .release-card {
    min-height: auto;
  }

  .release-closing .shell {
    align-items: stretch;
    flex-direction: column;
  }
}

.beta-access-page {
  background:
    radial-gradient(circle at 12% 18%, rgb(244 204 114 / 10%), transparent 28%),
    radial-gradient(circle at 88% 76%, rgb(170 82 56 / 15%), transparent 30%),
    var(--night);
}

.beta-access-hero {
  min-height: calc(100svh - 171px);
  padding-block: clamp(74px, 9vw, 126px);
}

.beta-access-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(460px, 1.16fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}

.beta-access-pitch {
  padding-top: clamp(10px, 2.8vw, 42px);
}

.beta-access-pitch h1 {
  max-width: 680px;
  margin-bottom: 28px;
  overflow-wrap: break-word;
  font-size: clamp(
    calc(var(--fs-beta-h1-min) * var(--type-scale-display)),
    calc(var(--fs-beta-h1-fluid) * var(--type-scale-display)),
    calc(var(--fs-beta-h1-max) * var(--type-scale-display))
  );
  hyphens: auto;
}

.beta-access-pitch__lead {
  max-width: 650px;
  margin-bottom: 0;
  color: rgb(255 248 232 / 78%);
  font-size: clamp(
    calc(var(--fs-beta-lead-min) * var(--type-scale-body)),
    calc(var(--fs-beta-lead-fluid) * var(--type-scale-body)),
    calc(var(--fs-beta-lead-max) * var(--type-scale-body))
  );
  line-height: 1.65;
}

.beta-access-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid #c39f6f;
  background:
    radial-gradient(circle at 92% 5%, rgb(170 82 56 / 10%), transparent 28%),
    var(--paper-pale);
  box-shadow: 13px 15px 0 rgb(0 0 0 / 22%), var(--shadow);
  color: var(--ink);
}

.beta-access-card::before {
  position: absolute;
  top: 13px;
  right: 13px;
  bottom: 13px;
  left: 13px;
  border: 1px solid rgb(118 53 37 / 12%);
  content: "";
  pointer-events: none;
}

.beta-access-card > * {
  position: relative;
  z-index: 1;
}

.beta-access-card__heading {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line-dark);
}

.beta-access-card__heading .eyebrow {
  margin-bottom: 13px;
  font-size: 9px;
  line-height: 1.5;
}

.beta-access-card__heading h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(
    calc(var(--fs-beta-card-h2-min) * var(--type-scale-display)),
    calc(var(--fs-beta-card-h2-fluid) * var(--type-scale-display)),
    calc(var(--fs-beta-card-h2-max) * var(--type-scale-display))
  );
  font-weight: 400;
  line-height: 1.08;
}

.beta-access-card__heading > p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: calc(var(--fs-beta-body) * var(--type-scale-body));
  line-height: 1.6;
}

.beta-access-notice {
  display: none;
  margin: 0 0 25px;
  padding: 15px 17px;
  border-left: 4px solid;
  font-size: calc(var(--fs-beta-body) * var(--type-scale-body));
  line-height: 1.55;
}

.beta-access-notice:target,
.beta-access-notice--visible {
  display: block;
}

.beta-access-notice--success {
  border-color: var(--sage);
  background: rgb(71 102 79 / 13%);
  color: var(--sage-deep);
}

.beta-access-notice--error {
  border-color: var(--rust);
  background: rgb(170 82 56 / 10%);
  color: var(--rust-dark);
}

.beta-access-form {
  display: grid;
  gap: 22px;
}

.beta-access-form[hidden] {
  display: none;
}

.beta-access-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.beta-access-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.beta-access-field label {
  color: var(--ink);
  font-family: var(--mono);
  font-size: calc(var(--fs-beta-label) * var(--type-scale-ui));
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.beta-access-field > span {
  margin-top: -3px;
  color: var(--ink-soft);
  font-size: calc(var(--fs-beta-hint) * var(--type-scale-ui));
  line-height: 1.45;
}

.beta-access-field input,
.beta-access-field select,
.beta-access-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgb(91 68 61 / 45%);
  border-radius: 0;
  outline: 0;
  background: rgb(255 255 255 / 58%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 65%);
  color: var(--ink);
  font-family: var(--body);
  font-size: calc(var(--fs-beta-input) * var(--type-scale-ui));
}

.beta-access-field textarea {
  min-height: 150px;
  resize: vertical;
}

.beta-access-field input:focus,
.beta-access-field select:focus,
.beta-access-field textarea:focus {
  border-color: var(--rust-dark);
  outline: 3px solid rgb(170 82 56 / 18%);
  outline-offset: 1px;
}

.beta-access-form__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beta-access-form__turnstile {
  margin: 4px 0 2px;
  min-height: 65px;
}

.beta-access-consent {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
}

.beta-access-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--rust-dark);
}

.beta-access-form__submit {
  display: inline-flex;
  width: 100%;
  margin-top: 2px;
  gap: 0.55em;
  align-items: center;
  justify-content: center;
}

.beta-access-form__submit-spinner {
  display: none;
  flex: 0 0 auto;
  width: 1.05em;
  height: 1.05em;
  border: 2px solid rgb(255 255 255 / 28%);
  border-top-color: rgb(255 255 255 / 92%);
  border-radius: 50%;
}

.beta-access-form__submit.is-sending .beta-access-form__submit-spinner,
.beta-access-form__submit[aria-busy="true"] .beta-access-form__submit-spinner {
  display: inline-block;
  animation: beta-access-submit-spin 0.7s linear infinite;
}

.beta-access-form__submit:disabled,
.beta-access-form__submit.is-sending {
  cursor: wait;
  border-color: rgb(120 120 128 / 55%);
  background: rgb(110 110 118);
  color: rgb(240 240 244);
  box-shadow: none;
  opacity: 1;
  transform: none;
  filter: none;
}

.beta-access-form__submit:disabled:hover,
.beta-access-form__submit.is-sending:hover {
  border-color: rgb(120 120 128 / 55%);
  background: rgb(110 110 118);
  color: rgb(240 240 244);
  transform: none;
}

@keyframes beta-access-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-access-form__submit.is-sending .beta-access-form__submit-spinner,
  .beta-access-form__submit[aria-busy="true"] .beta-access-form__submit-spinner {
    animation: none;
    border-color: rgb(255 255 255 / 55%);
    border-top-color: rgb(255 255 255 / 55%);
  }
}

@media (max-width: 940px) {
  .beta-access-layout {
    grid-template-columns: 1fr;
  }

  .beta-access-pitch {
    max-width: 760px;
    padding-top: 0;
  }

  .beta-access-pitch h1 {
    max-width: 760px;
  }
}

@media (max-width: 560px) {
  .beta-access-hero {
    padding-block: 52px 70px;
  }

  .beta-access-layout {
    gap: 38px;
  }

  .beta-access-pitch h1 {
    font-size: clamp(
      calc(var(--fs-beta-h1-phone-min) * var(--type-scale-display)),
      calc(var(--fs-beta-h1-phone-fluid) * var(--type-scale-display)),
      calc(var(--fs-beta-h1-phone-max) * var(--type-scale-display))
    );
  }

  .beta-access-pitch__lead {
    margin-bottom: 32px;
  }

  .beta-access-card {
    width: calc(100% + 16px);
    margin-left: -8px;
    padding: 28px 22px 32px;
    box-shadow: 7px 8px 0 rgb(0 0 0 / 20%);
  }

  .beta-access-form__row {
    grid-template-columns: 1fr;
  }
}

/* Markdown-shaped HTML documentation */

.docs-page {
  min-height: 100svh;
  background:
    linear-gradient(rgb(21 20 33 / 96%), rgb(21 20 33 / 96%)),
    var(--hero-backdrop) center top / cover fixed;
  color: var(--cream);
}

.docs-page::before {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px);
  background-size: 32px 32px;
  content: "";
  pointer-events: none;
}

.docs-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line-light);
  background: rgb(21 20 33 / 88%);
  backdrop-filter: blur(14px);
}

.docs-header__inner {
  display: flex;
  flex-wrap: wrap;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.docs-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.docs-header__actions .site-theme-picker {
  flex: 0 0 auto;
}

.docs-header__links {
  display: flex;
  align-items: center;
  gap: clamp(17px, 3vw, 34px);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.docs-header__links a {
  color: rgb(255 248 232 / 66%);
  text-decoration: none;
}

.docs-header__links a:hover,
.docs-header__links a[aria-current="page"] {
  color: var(--gold-bright);
}

.docs-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 820px);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
  justify-content: center;
  padding-block: 70px 90px;
}

html[data-theme="jellyware"] .docs-layout {
  /* Wider rail so 18px×1.25 VT323 labels do not wrap awkwardly. */
  grid-template-columns: minmax(280px, 320px) minmax(0, 820px);
}

.docs-sidebar {
  position: sticky;
  top: 112px;
  padding-top: 7px;
}

.docs-sidebar__label {
  margin-bottom: 13px;
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(var(--fs-docs-sidebar-label) * var(--type-scale-ui));
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.docs-sidebar nav {
  display: grid;
  border-top: 1px solid var(--line-light);
}

.docs-sidebar nav a {
  position: relative;
  padding: 10px 4px 10px 17px;
  border-bottom: 1px solid rgb(255 248 232 / 8%);
  color: rgb(255 248 232 / 54%);
  font-family: var(--mono);
  font-size: calc(var(--fs-docs-sidebar-nav) * var(--type-scale-ui));
  line-height: 1.35;
  text-decoration: none;
}

.docs-sidebar nav a::before {
  position: absolute;
  left: 2px;
  color: rgb(227 184 124 / 42%);
  content: "-";
}

.docs-sidebar nav a:hover,
.docs-sidebar nav a[aria-current="page"] {
  color: var(--cream);
}

.docs-sidebar nav a[aria-current="page"]::before {
  color: var(--rust);
  content: ">";
}

.docs-sidebar__machine {
  display: block;
  margin-top: 22px;
  padding: 10px 12px;
  border: 1px solid rgb(227 184 124 / 30%);
  color: var(--gold);
  font-family: var(--mono);
  font-size: calc(var(--fs-docs-sidebar-machine) * var(--type-scale-ui));
  text-decoration: none;
}

.docs-sidebar__machine:hover {
  border-color: var(--gold);
  background: rgb(227 184 124 / 8%);
}

.markdown-document {
  position: relative;
  width: 100%;
  padding: clamp(32px, 6vw, 68px);
  border: 1px solid #c39f6f;
  background:
    radial-gradient(circle at 90% 4%, rgb(170 82 56 / 9%), transparent 25%),
    radial-gradient(circle at 5% 92%, rgb(73 59 75 / 8%), transparent 27%),
    var(--paper-pale);
  box-shadow: 13px 15px 0 rgb(0 0 0 / 18%), var(--shadow);
  color: var(--ink);
}

.markdown-document::before,
.markdown-document::after {
  position: absolute;
  z-index: -1;
  width: 35px;
  height: 35px;
  border: 1px solid rgb(227 184 124 / 30%);
  content: "";
  transform: rotate(45deg);
}

.markdown-document::before {
  top: -11px;
  left: -11px;
}

.markdown-document::after {
  right: -11px;
  bottom: -11px;
}

.markdown-file,
.markdown-breadcrumbs {
  margin-bottom: 33px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.markdown-file span,
.markdown-breadcrumbs span {
  color: var(--rust-dark);
  font-weight: 800;
}

.markdown-breadcrumbs a {
  color: var(--rust-dark);
  text-underline-offset: 3px;
}

.markdown-document h1,
.markdown-document h2,
.markdown-document h3 {
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.markdown-document h1 {
  margin-bottom: 28px;
  font-size: clamp(34px, 5vw, 52px);
}

.markdown-document h2 {
  margin: 60px 0 20px;
  padding-top: 4px;
  border-top: 1px dashed rgb(33 25 29 / 17%);
  font-size: clamp(25px, 3.4vw, 33px);
}

.markdown-document h3 {
  margin: 37px 0 14px;
  font-size: 21px;
}

.heading-anchor {
  color: inherit;
  text-decoration: none;
}

.heading-anchor > span {
  margin-right: 8px;
  color: var(--rust-dark);
  font-family: var(--mono);
  font-size: 0.58em;
  font-weight: 800;
  letter-spacing: -0.08em;
  vertical-align: 0.15em;
}

.heading-anchor:hover {
  color: var(--rust-dark);
}

.heading-anchor:focus-visible {
  outline-color: var(--rust-dark);
}

.markdown-document > p,
.markdown-document section > p,
.markdown-document li,
.markdown-document dd,
.markdown-document td,
.markdown-document th {
  color: var(--ink-soft);
}

.markdown-document > p,
.markdown-document section > p {
  margin-bottom: 22px;
}

.markdown-document .lead {
  color: var(--ink);
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.65;
}

.markdown-document strong {
  color: var(--ink);
}

.markdown-document a:not(.heading-anchor, .docs-next a) {
  color: var(--rust-dark);
  text-decoration-color: rgb(118 53 37 / 40%);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.markdown-document a:not(.heading-anchor, .docs-next a):hover {
  color: var(--plum);
  text-decoration-color: currentColor;
}

.markdown-document code {
  padding: 2px 5px;
  border: 1px solid rgb(118 53 37 / 20%);
  background: rgb(170 82 56 / 7%);
  color: var(--rust-dark);
  font-size: 0.82em;
}

.markdown-document pre {
  position: relative;
  margin: 28px 0;
  overflow-x: auto;
  border: 1px solid #443745;
  background: var(--night-soft);
  box-shadow: 6px 7px 0 rgb(170 82 56 / 25%);
  color: #f3e7d1;
  font-size: 13px;
  line-height: 1.7;
  tab-size: 2;
}

.markdown-document pre::before {
  display: block;
  padding: 7px 13px;
  border-bottom: 1px solid rgb(255 248 232 / 10%);
  background: #171520;
  color: rgb(255 248 232 / 42%);
  content: attr(data-language);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.markdown-document pre code {
  display: block;
  min-width: max-content;
  padding: 20px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

.markdown-document blockquote {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin: 30px 0 42px;
  padding: 20px 22px;
  border: 1px solid rgb(118 53 37 / 23%);
  border-left: 4px solid var(--rust);
  background: rgb(227 184 124 / 20%);
}

.markdown-document blockquote .markdown-marker {
  color: var(--rust-dark);
  font-family: var(--mono);
  font-weight: 800;
}

.markdown-document blockquote p {
  margin: 0;
  color: var(--ink-soft);
}

.markdown-link-list,
.markdown-list,
.markdown-steps {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.markdown-link-list li,
.markdown-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 24px;
}

.markdown-link-list li::before,
.markdown-list li::before {
  position: absolute;
  left: 3px;
  color: var(--rust-dark);
  content: "-";
  font-family: var(--mono);
  font-weight: 800;
}

.markdown-link-list a {
  font-weight: 700;
}

.markdown-link-list span {
  color: var(--ink-soft);
}

.markdown-steps {
  counter-reset: markdown-step;
}

.markdown-steps li {
  position: relative;
  min-height: 34px;
  margin-bottom: 12px;
  padding-left: 48px;
  counter-increment: markdown-step;
}

.markdown-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--rust-dark);
  content: counter(markdown-step) ".";
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.markdown-note {
  display: grid;
  gap: 7px;
  margin-top: 32px;
  padding: 17px 19px;
  border-left: 3px solid var(--plum);
  background: rgb(73 59 75 / 8%);
}

.markdown-note > span {
  color: var(--plum);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
}

.markdown-note--warning {
  border-left-color: var(--rust);
  background: rgb(170 82 56 / 8%);
}

.markdown-note--warning > span {
  color: var(--rust-dark);
}

.markdown-document dl {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) 1fr;
  margin-block: 25px;
  border-top: 1px solid var(--line-dark);
}

.markdown-document dt,
.markdown-document dd {
  margin: 0;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line-dark);
}

.markdown-document dt {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.markdown-document dd {
  font-size: 15px;
}

.table-scroll {
  width: 100%;
  margin-block: 28px;
  overflow-x: auto;
  border: 1px solid var(--line-dark);
}

.markdown-document table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}

.markdown-document th,
.markdown-document td {
  padding: 12px 13px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  text-align: left;
  vertical-align: top;
}

.markdown-document th {
  background: rgb(73 59 75 / 9%);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.markdown-document tr:last-child td {
  border-bottom: 0;
}

.markdown-document th:last-child,
.markdown-document td:last-child {
  border-right: 0;
}

.docs-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
}

.docs-next > span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.docs-next a {
  color: var(--rust-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.docs-next a:hover {
  color: var(--plum);
}

.docs-footer {
  position: relative;
  display: flex;
  min-height: 100px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line-light);
  color: rgb(255 248 232 / 58%);
  font-family: var(--mono);
  font-size: 9px;
}

.docs-footer p {
  margin: 0;
}

.docs-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 22px;
}

.docs-footer a {
  color: var(--gold);
  text-decoration: none;
}

.docs-footer a:hover {
  color: var(--gold-bright);
}

@media (max-width: 900px) {
  .docs-layout {
    display: block;
    max-width: 790px;
    padding-top: 32px;
  }

  .docs-sidebar {
    position: static;
    margin-bottom: 28px;
    padding: 0;
  }

  .docs-sidebar__label {
    display: none;
  }

  .docs-sidebar nav {
    display: flex;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid var(--line-light);
    scrollbar-width: thin;
  }

  .docs-sidebar nav a {
    flex: 0 0 auto;
    padding: 10px 11px;
    border-bottom: 0;
    white-space: nowrap;
  }

  .docs-sidebar nav a::before {
    display: none;
  }

  .docs-sidebar nav a[aria-current="page"] {
    border-bottom: 2px solid var(--rust);
  }

  .docs-sidebar__machine {
    display: none;
  }
}

@media (max-width: 600px) {
  .docs-header__links a:last-child {
    display: none;
  }

  .docs-layout {
    width: 100%;
    padding: 18px 0 60px;
  }

  .docs-sidebar {
    width: calc(100% - 28px);
    margin-inline: auto;
  }

  .markdown-document {
    border-right: 0;
    border-left: 0;
    box-shadow: none;
  }

  .markdown-document::before,
  .markdown-document::after {
    display: none;
  }

  .markdown-document h2 {
    margin-top: 48px;
  }

  .markdown-document blockquote {
    grid-template-columns: 1fr;
  }

  .markdown-document dl {
    grid-template-columns: 1fr;
  }

  .markdown-document dt {
    padding-bottom: 3px;
    border-bottom: 0;
  }

  .markdown-document dd {
    padding-top: 3px;
  }

  .docs-next,
  .docs-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .docs-footer {
    justify-content: center;
    padding-block: 28px;
  }

  .docs-footer__nav {
    justify-content: flex-start;
  }

  .error-footer {
    justify-content: flex-start;
  }
}
