/* Example Ui · site.css
 * Design: the page is a drafting sheet. Everything not yet made is drawn in outline on blueprint ink;
 * everything made is solid, and one hot "build line" separates the two.
 */
:root {
  /* blueprint ink, drafting line, one hot mark */
  --ink: #0a3a3f;
  --ink-mid: #08343a;
  --ink-deep: #062b30;
  --line-rgb: 228, 250, 244;
  --text: #eafbf6;
  --mute: rgba(var(--line-rgb), .76);
  --faint: rgba(var(--line-rgb), .6);
  --hair: rgba(var(--line-rgb), .2);
  --hair-strong: rgba(var(--line-rgb), .46);
  --hot: #ff5a2b;
  --hot-deep: #c93c14;
  --hot-ink: #210b03;
  --hot-soft: #ff9d7a;
  --ok: #8ff0b8;

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-ui: var(--font-mono);

  /* layout: one 1360px sheet, a gutter that never drops under 20px, a centre gap the build line runs through */
  --gutter: clamp(20px, 4vw, 40px);
  --sheet: 1360px;
  --mid: clamp(28px, 3.4vw, 48px);
  --hero-gap: 30px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font: 400 17px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(var(--line-rgb), .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--line-rgb), .06) 1px, transparent 1px),
    linear-gradient(rgba(var(--line-rgb), .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--line-rgb), .03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: 50% 0;
}

img, svg { max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
::selection { background: var(--hot); color: var(--hot-ink); }

.wrap { width: min(100% - 2 * var(--gutter), var(--sheet)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hot { color: var(--hot-soft); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--text); color: var(--ink); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- shared pieces */
.tag {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font: 500 12px/1.3 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text);
}
.tag--faint { color: var(--faint); }
.tag-mark { flex: none; width: 8px; height: 8px; background: var(--hot); }

/* the split headline: first line still a draft, second line built */
.split-title {
  --h-size: clamp(46px, 7.2vw, 104px);
  margin: 0;
  font: 800 var(--h-size)/.88 var(--font-display);
  letter-spacing: .004em;
  text-transform: uppercase;
}
.split-title .draft,
.split-title .built { display: block; }
.split-title .draft { color: transparent; -webkit-text-stroke: clamp(1px, .016em, 2px) var(--text); }
.split-title .built { color: var(--text); }
@supports not (-webkit-text-stroke: 1px #000) {
  .split-title .draft { color: var(--faint); }
}

.lead { margin: 0; max-width: 60ch; font-size: clamp(17px, 1.4vw, 19.5px); line-height: 1.52; color: var(--mute); }
.lead strong { color: var(--text); font-weight: 600; }
.lead a { color: var(--text); text-decoration-color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lead a:hover { color: var(--hot-soft); }

/* four selection handles on the corners of a box */
.corners {
  --c: var(--text);
  position: absolute; inset: -4px;
  pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) 1px 1px / 6px 6px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) calc(100% - 1px) 1px / 6px 6px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 0 / 8px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 1px calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(var(--c), var(--c)) 0 100% / 8px 8px no-repeat,
    linear-gradient(var(--ink), var(--ink)) calc(100% - 1px) calc(100% - 1px) / 6px 6px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 100% / 8px 8px no-repeat;
}

.btn {
  appearance: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 3px;
  font: 600 17px/1 var(--font-body);
  text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.btn--hot { background: var(--hot); color: var(--hot-ink); box-shadow: 0 4px 0 var(--hot-deep); }
.btn--hot:hover { background: #ff6c41; transform: translateY(-1px); box-shadow: 0 5px 0 var(--hot-deep); }
.btn--hot:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--hot-deep); }
.btn--line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.btn--line:hover { background: rgba(var(--line-rgb), .08); box-shadow: inset 0 0 0 1px var(--text); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--small.btn--hot { box-shadow: 0 3px 0 var(--hot-deep); }
.btn--small.btn--hot:hover { box-shadow: 0 4px 0 var(--hot-deep); }
.btn--small.btn--hot:active { box-shadow: 0 1px 0 var(--hot-deep); transform: translateY(2px); }

.when-copied, .when-failed { display: none; }
[data-copied] .when-idle { display: none; }
[data-copied="yes"] .when-copied,
[data-copied="no"] .when-failed { display: inline; }

/* ---------------------------------------------------------------- header */
.top {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 58, 63, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.top[data-scrolled] { border-bottom-color: var(--hair-strong); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }

.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; }
.mark { flex: none; width: 30px; height: 30px; }
.mark-a { fill: currentColor; }
.mark-b { fill: var(--hot); }
.brand-name { font: 800 28px/1 var(--font-display); letter-spacing: .012em; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 11px 12px; border-radius: 3px;
  color: var(--mute); text-decoration: none;
  font: 500 15px/1 var(--font-body);
}
.nav a:hover { color: var(--text); background: rgba(var(--line-rgb), .08); }
.nav-fold { display: none; }            /* shown only inside the folded menu */
.top-studio { margin-left: 4px; }
.top-studio + .top-cta { margin-left: -8px; }

.menu {
  display: none;
  appearance: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  border-radius: 3px;
}
.menu i { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); transition: transform .18s ease; }
.menu i + i { margin-top: 6px; }
.top[data-nav-open] .menu i:first-child { transform: translateY(4px) rotate(45deg); }
.top[data-nav-open] .menu i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 26px 0 64px; }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }

.hero-top {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "title title" "prompt copy" "chips copy";
  column-gap: var(--mid);
  row-gap: 18px;
  align-items: start;
}

.hero-title {
  grid-area: title;
  /* each half of the headline fills its half of the sheet: "DRAWN IN WORDS." is 6.56em wide in this face */
  --h-size: min(100px, calc((100vw - 2 * var(--gutter) - var(--mid)) / 13.12));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--mid);
  margin-bottom: 6px;
}
.hero-title .draft,
.hero-title .built { white-space: nowrap; }

/* the build line: starts in the headline, crosses the window bar and meets the handle in the demo */
.hero-line {
  position: absolute; z-index: 3;
  left: 50%; top: 2px; bottom: calc(-1 * var(--hero-gap) - 45px);
  width: 2px; margin-left: -1px;
  background: var(--hot);
  pointer-events: none;
  transform-origin: 50% 0;
  animation: line-drop .8s cubic-bezier(.2, .8, .2, 1) .2s backwards;
}
@keyframes line-drop { from { transform: scaleY(0); } }
.hero-line::before {
  content: ""; position: absolute; left: -3px; top: -1px;
  width: 8px; height: 8px; background: var(--hot);
}

.prompt {
  grid-area: prompt;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px;
  padding: 18px 18px 18px 20px;
  border: 1px dashed var(--hair-strong);
  background: rgba(6, 43, 48, .55);
}
.prompt:focus-within { border-style: solid; border-color: var(--text); }
.prompt:focus-within .corners { --c: var(--hot); }
.prompt-label {
  position: absolute; left: 14px; top: -8px;
  padding: 0 8px;
  background: var(--ink);
  font: 500 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.prompt-input {
  display: block; width: 100%; min-height: 4.5em; max-height: 12em; overflow-y: auto;
  margin: 0; padding: 0;
  border: 0; outline: 0; resize: none;
  background: transparent; color: var(--text);
  font: 400 15px/1.5 var(--font-mono);
}
.prompt-input::placeholder { color: var(--faint); }

.hero-copy { grid-area: copy; display: grid; gap: 14px; padding-top: 2px; }
.checkline { display: flex; align-items: flex-start; gap: 10px; margin: 0; font: 400 13px/1.5 var(--font-mono); color: var(--mute); }
.checkline svg { flex: none; margin-top: 3px; color: var(--hot-soft); }

.chips { grid-area: chips; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { margin-right: 4px; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.chip {
  appearance: none; border: 0; cursor: pointer;
  min-height: 34px; padding: 0 12px;
  border-radius: 2px;
  background: transparent; color: var(--mute);
  box-shadow: inset 0 0 0 1px var(--hair);
  font: 500 13px/1 var(--font-mono);
}
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.chip[aria-pressed="true"] { color: var(--text); background: rgba(255, 90, 43, .12); box-shadow: inset 0 0 0 1px var(--hot); }
/* the play / pause control for the looping demo sits at the end of the row and stays quiet */
.chip--quiet,
.chip--quiet[aria-pressed="true"] { margin-left: auto; background: transparent; box-shadow: none; color: var(--faint); text-decoration: underline; text-underline-offset: 3px; }
.chip--quiet:hover { color: var(--text); box-shadow: none; }
.chip--quiet .when-off, .chip--quiet[aria-pressed="false"] .when-on { display: none; }
.chip--quiet[aria-pressed="false"] .when-off { display: inline; }

.hero-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-top: 12px; }
.hero-hint { margin: 2px 0 0; font: 400 13px/1.5 var(--font-mono); font-style: italic; color: var(--mute); }
.hero-hint .hot { font-style: normal; margin-right: 6px; }
.prompt-note { margin: 6px 0 0; min-height: 1.5em; font: 400 13px/1.5 var(--font-mono); color: var(--hot-soft); }
.prompt-note a { color: var(--text); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- the demo window, in blueprint */
:root, .stage {
  --st-bg: var(--ink-deep);
  --st-panel: var(--ink-mid);
  --st-well: var(--ink-deep);
  --st-line: var(--hair);
  --st-text: var(--text);
  --st-muted: var(--mute);
  --st-select: var(--hot);
  --st-accent: var(--hot);
  --st-accent-ink: var(--hot-ink);
  --st-radius: 0px;
  --st-font: var(--font-mono);
  --st-mono: var(--font-mono);
}
.stage { box-shadow: 0 0 0 1px var(--hair-strong); }
.rbx-viewport { --rbx-select: var(--hot); }
.stage-draft { --st-draft: var(--ink); --rbx-wire: var(--text); }

/* hero window: Explorer | drawing | Properties. The drawing is exactly 16:9, the docks take its height. */
.stage--hero { margin-top: var(--hero-gap); }
.stage--hero .stage-body { grid-template-columns: 264px minmax(0, 1fr) 232px; }
.stage--hero .stage-dock { display: contents; }
.stage--hero .dock-panel { contain: size; background: var(--st-panel); }
.stage--hero .dock-explorer { order: -1; border-right: 1px solid var(--st-line); }
.stage--hero .dock-props { order: 1; border-top: 0; border-left: 1px solid var(--st-line); }
.stage--hero .stage-screen { transition: none; }

.stage-view {
  background:
    linear-gradient(rgba(var(--line-rgb), .05) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(var(--line-rgb), .05) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--ink-deep);
}
.stage-dots i,
.stage-dots i:first-child { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.stage-bar .stage-status { flex: 0 1 auto; margin-left: auto; font: 500 12px/1.2 var(--font-mono); }
.stage-plugin { display: inline-flex; align-items: center; gap: 7px; flex: none; padding-left: 14px; border-left: 1px solid var(--hair); font: 500 12px/1 var(--font-mono); color: var(--mute); white-space: nowrap; }
.stage-plugin .mark { width: 15px; height: 15px; }
.stage-split-tag { text-transform: uppercase; }
.ex-row[aria-selected="true"] { background: rgba(255, 90, 43, .22); box-shadow: inset 2px 0 0 var(--hot); }
.dock-title span b { font-weight: 500; }

/* the title block under the drawing */
.titleblock { display: flex; align-items: stretch; min-height: 60px; border-top: 1px solid var(--hair-strong); background: var(--ink-mid); }
.titleblock-cells { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.3fr); margin: 0; }
.titleblock-cells > div { min-width: 0; padding: 10px 14px 11px; border-right: 1px solid var(--hair); }
.titleblock-cells dt { margin-bottom: 5px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.titleblock-cells dd { margin: 0; font: 500 13px/1.35 var(--font-mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titleblock-action {
  appearance: none; border: 0; cursor: pointer; flex: none;
  padding: 0 20px;
  border-right: 1px solid var(--hair);
  background: transparent; color: var(--text);
  font: 600 13px/1 var(--font-mono);
}
.titleblock-action:hover { background: rgba(var(--line-rgb), .08); }
.stamp {
  flex: none; align-self: center;
  margin: 0 16px; padding: 7px 12px 5px;
  border: 2px solid var(--hot);
  color: var(--hot-soft);
  font: 800 23px/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-2deg);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2, 1.6, .4, 1);
}
[data-busy] .stamp { opacity: .28; border-style: dashed; transform: rotate(-2deg) scale(.94); }

/* ---------------------------------------------------------------- works with */
.works { border-block: 1px solid var(--hair); background: rgba(6, 43, 48, .5); }
.works-in { display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: stretch; }
.works-in > .tag { color: var(--faint); }
.works-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.works-list li { padding: 18px 16px 19px; border-left: 1px solid var(--hair); }
.works-list b { display: block; font: 600 16px/1.3 var(--font-body); }
.works-list span { display: block; margin-top: 3px; font: 400 12.5px/1.45 var(--font-mono); color: var(--faint); }

/* ---------------------------------------------------------------- numbered sheets */
.sheet { padding-top: clamp(72px, 9vw, 128px); }
.sheet-intro { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 28px var(--mid); align-items: end; margin-bottom: 40px; }
.sheet-intro .lead { margin-bottom: 8px; }

/* ---- sheet 02: the studio (js/land-studio.js) */
.intro-side { display: grid; gap: 20px; margin-bottom: 8px; }
.intro-side .lead { margin-bottom: 0; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.prompt--line { margin-top: 4px; padding-block: 14px; }
.prompt--line .prompt-input { min-height: 0; height: 30px; }
.chips--studio { margin-top: 14px; }
.chips-gap { flex: 1 1 0; }
.chip--play { display: inline-flex; align-items: center; gap: 9px; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.chip--play::before { content: ""; flex: none; width: 0; height: 0; border-left: 9px solid var(--ok); border-block: 5.5px solid transparent; }
.chip--play .when-on, .chip--play[aria-pressed="true"] .when-off { display: none; }
.chip--play[aria-pressed="true"] .when-on { display: inline; }
.chip--play[aria-pressed="true"]::before { width: 9px; height: 9px; border: 0; background: var(--hot); }
.chip[disabled] { opacity: .5; cursor: default; }

.studio-window { margin-top: 6px; }
.studio-window[data-state="active"] { box-shadow: 0 0 0 2px var(--hot); }
.studio-window .stage-plugin { display: inline-flex; color: var(--text); text-decoration: none; }
.studio-window .stage-plugin:hover { color: var(--hot-soft); }
.studio-window .titleblock-action { display: grid; place-items: center; text-decoration: none; }
.studio-window .titleblock-wide dd { white-space: normal; }
.studio-release {
  appearance: none; border: 0; cursor: pointer; flex: none;
  min-height: 28px; padding: 0 10px;
  background: var(--hot); color: var(--hot-ink);
  font: 600 12px/1 var(--font-mono);
}
.studio-release kbd { margin-left: 6px; padding: 1px 4px; border: 1px solid rgba(33, 11, 3, .5); font: inherit; font-size: 10.5px; }

.studio-frame { position: relative; height: clamp(440px, 74vh, 765px); overflow: hidden; background: var(--ink-deep); }
.studio-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--ink-deep); visibility: hidden; }
.studio-window[data-state="ready"] iframe,
.studio-window[data-state="active"] iframe { visibility: visible; }
.studio-window[data-state="ready"] .studio-poster,
.studio-window[data-state="active"] .studio-poster { display: none; }

/* until the visitor clicks, wheel and touch belong to the page, not to the studio */
.studio-cover {
  appearance: none; border: 0; cursor: pointer;
  position: absolute; inset: 0; z-index: 2;
  display: grid; align-content: end; justify-items: center; gap: 6px;
  padding: 0 16px 22px;
  background: linear-gradient(transparent 60%, rgba(6, 43, 48, .72));
  color: var(--text);
}
.studio-cover span { padding: 10px 14px 9px; background: var(--hot); color: var(--hot-ink); font: 600 13.5px/1 var(--font-mono); box-shadow: 0 3px 0 var(--hot-deep); }
.studio-cover small { font: 400 12px/1.3 var(--font-mono); color: var(--mute); }
.studio-cover:hover span { background: #ff6c41; }
.studio-cover:focus-visible { outline-offset: -4px; }

/* the poster: the studio window as a drawing. It is what shows until the live one is ready. */
.studio-poster { position: absolute; inset: 0; display: grid; }
.poster-ui { grid-area: 1 / 1; display: grid; grid-template: 46px minmax(0, 1fr) / minmax(0, 1fr) clamp(150px, 19%, 250px); min-height: 0; }
.poster-ribbon { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px dashed var(--hair-strong); }
.poster-ribbon i { flex: none; width: 24px; height: 24px; box-shadow: inset 0 0 0 1px var(--hair-strong); }
.poster-ribbon b { flex: none; width: 1px; height: 24px; margin: 0 6px; background: var(--hair); }
.poster-ribbon span { flex: 1; }
.poster-ribbon .poster-play { width: 0; height: 0; margin-right: 6px; box-shadow: none; border-left: 15px solid var(--hair-strong); border-block: 9px solid transparent; }
.poster-view { position: relative; min-width: 0; border-right: 1px dashed var(--hair-strong); }
.scene--sheet {
  background:
    linear-gradient(rgba(var(--line-rgb), .16) 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, rgba(var(--line-rgb), .16) 1px, transparent 1px) 0 0 / 120px 100%,
    linear-gradient(rgba(var(--line-rgb), .07) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(var(--line-rgb), .07) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--ink);
}
.poster-dock { display: grid; grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); min-height: 0; }
.poster-panel { display: grid; align-content: start; gap: 9px; padding: 12px; overflow: hidden; }
.poster-panel + .poster-panel { border-top: 1px dashed var(--hair-strong); }
.poster-panel h4 { margin: 0 0 4px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.poster-panel i { display: block; height: 7px; width: var(--w, 60%); margin-left: calc(var(--d, 0) * 12px); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.poster-note {
  grid-area: 1 / 1; place-self: center; z-index: 1;
  display: grid; gap: 12px; justify-items: start;
  width: min(100% - 32px, 400px); padding: 20px 22px 22px;
  background: var(--ink); box-shadow: 0 0 0 1px var(--hair-strong), 0 18px 40px rgba(3, 22, 25, .5);
}
.poster-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--mute); }
.poster-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0; }
.poster-link { font: 500 13px/1.3 var(--font-mono); color: var(--mute); text-underline-offset: 3px; }
.poster-link:hover { color: var(--text); }

/* call-outs under the window: each leader rises to the drawing it describes */
.callouts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.callouts li { position: relative; display: grid; gap: 8px; align-content: start; padding: 34px 18px 0 0; }
.callouts li::before { content: ""; position: absolute; left: 19px; top: 0; width: 1px; height: 34px; background: var(--hair-strong); }
.callouts li::after { content: ""; position: absolute; left: 15px; top: -4px; width: 9px; height: 9px; box-sizing: border-box; background: var(--ink); border: 1px solid var(--text); }
.callouts .bub { background: var(--ink); }
.callouts h3 { margin: 4px 0 0; font: 800 clamp(21px, 1.7vw, 25px)/1 var(--font-display); letter-spacing: .012em; text-transform: uppercase; }
.callouts p { margin: 0; font: 400 12.5px/1.5 var(--font-mono); color: var(--mute); }

/* the parts bin: five primitives, each cut by its own build line */
.catalog { margin-top: clamp(44px, 5.5vw, 72px); }
.catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.catalog-head .tag { margin: 0; }
.catalog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: rgba(6, 43, 48, .6); box-shadow: 0 0 0 1px var(--hair-strong); }
.catalog-item { display: grid; gap: 5px; align-content: start; min-width: 0; padding-bottom: 15px; border-right: 1px solid var(--hair); }
.catalog-item:last-child { border-right: 0; }
.catalog-view {
  position: relative; aspect-ratio: 5 / 4; margin-bottom: 8px;
  border-bottom: 1px solid var(--hair);
  background:
    linear-gradient(rgba(var(--line-rgb), .05) 1px, transparent 1px) 50% 50% / 100% 24px,
    linear-gradient(90deg, rgba(var(--line-rgb), .05) 1px, transparent 1px) 50% 50% / 24px 100%;
}
.catalog-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.catalog-fallback { position: absolute; inset: 12% 16%; width: 68%; height: 76%; fill: none; stroke: var(--text); stroke-width: 1.1; stroke-linejoin: round; opacity: .8; }
.catalog-line { position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; background: var(--hot); display: none; }
.catalog-line::before { content: ""; position: absolute; left: -3px; top: -1px; width: 8px; height: 8px; background: var(--hot); }
.catalog-view.is-live canvas { opacity: 1; }
.catalog-view.is-live .catalog-line { display: block; }
.catalog-view.is-live .catalog-fallback { display: none; }
.catalog-item b { padding: 0 14px; font: 800 clamp(22px, 2vw, 28px)/1 var(--font-display); letter-spacing: .012em; text-transform: uppercase; }
.catalog-item span { padding: 0 14px; font: 400 12.5px/1.4 var(--font-mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- sheet 03: the assistant (js/land-assistant.js) */
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ai-grid .ai-card { grid-column: auto; }
.ai-view {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background:
    linear-gradient(rgba(var(--line-rgb), .05) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(var(--line-rgb), .05) 1px, transparent 1px) 0 0 / 24px 100%,
    var(--ink-deep);
}
.ai-view canvas, .ai-pane canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.ai-fallback { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; font: 400 12.5px/1.5 var(--font-mono); color: var(--faint); }
.ai-line { position: absolute; top: 0; bottom: 0; left: var(--ai-split, 50%); width: 2px; margin-left: -1px; background: var(--hot); display: none; pointer-events: none; }
.ai-line::before { content: ""; position: absolute; left: -3px; top: 0; width: 8px; height: 8px; background: var(--hot); }
.is-live > canvas { opacity: 1; }
.is-live > .ai-line { display: block; }
.is-live > .ai-fallback { display: none; }
.ai-view--code { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.ai-code { min-width: 0; min-height: 0; margin: 0; border-right: 1px solid var(--hair); font-size: 12px; }
.ai-code code { padding: 14px; white-space: pre; }
.ai-pane { position: relative; min-width: 0; }
.ai-run {
  position: absolute; right: 10px; top: 10px; z-index: 1;
  display: none; align-items: center; gap: 7px;
  padding: 5px 8px;
  background: rgba(6, 43, 48, .86); color: var(--mute);
  font: 500 11px/1 var(--font-mono); white-space: nowrap;
}
.is-live > .ai-run { display: inline-flex; }
.ai-run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hair-strong); }
.ai-run[data-on] { color: var(--text); }
.ai-run[data-on]::before { background: var(--ok); }
.ai-chips { padding: 12px 14px; border-top: 1px solid var(--hair); }
.ai-chips .chip--quiet { margin-left: auto; }
.ai-foot { align-items: center; }
.ai-plan { flex: 1 1 0; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; counter-reset: step; color: var(--mute); }
.ai-plan li { counter-increment: step; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-plan li::before { content: counter(step, decimal-leading-zero); margin-right: 10px; color: var(--faint); }
.ai-how { margin-top: 20px; background: rgba(6, 43, 48, .6); box-shadow: 0 0 0 1px var(--hair-strong); }
.ai-how > .tag { padding: 14px 14px 13px; border-bottom: 1px solid var(--hair); }
.ai-how-cells dd { white-space: normal; overflow: visible; }
.ai-how-cells > div:last-child { border-right: 0; }
.ai-how-cells code { font: inherit; color: var(--hot-soft); }
.ai-how-note { margin: 0; padding: 13px 14px 14px; border-top: 1px solid var(--hair); font: 400 12.5px/1.6 var(--font-mono); color: var(--mute); }

/* ---- sheet 04: the set */
.set-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.card {
  grid-column: span 6;
  display: flex; flex-direction: column; min-width: 0;
  background: rgba(6, 43, 48, .6);
  box-shadow: 0 0 0 1px var(--hair-strong);
}
/* the last card is a strip across the sheet: the screens we have not drawn here */
.card--list { grid-column: 1 / -1; display: grid; grid-template-columns: 260px minmax(0, 1fr) 230px; }
.card--list .card-head { border-bottom: 0; border-right: 1px solid var(--hair); }

.card-head { display: flex; align-items: center; gap: 13px; min-height: 62px; padding: 10px 14px; border-bottom: 1px solid var(--hair); }
.bub {
  flex: none; display: grid; place-items: center; align-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  font-family: var(--font-mono); line-height: 1;
}
.bub b { font-size: 12px; font-weight: 600; padding-bottom: 2px; border-bottom: 1px solid var(--hair-strong); width: 22px; text-align: center; }
.bub i { font-size: 9px; font-style: normal; padding-top: 3px; color: var(--faint); }
.card-head h3 { margin: 0; font: 800 clamp(24px, 2.3vw, 31px)/1 var(--font-display); letter-spacing: .012em; text-transform: uppercase; }
.card-meta { margin: 0 0 0 auto; text-align: right; font: 500 10.5px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.card-meta b { display: block; font-weight: 600; color: var(--hot-soft); }

.card-view { background: var(--ink-deep); }
.card-view .stage-screen { width: 100%; aspect-ratio: 16 / 9; }

.card-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: auto; padding: 12px 14px 13px; border-top: 1px solid var(--hair); font: 400 12.5px/1.5 var(--font-mono); color: var(--faint); }
.card-foot q { flex: 1 1 100%; font-style: italic; color: var(--mute); quotes: "\201C" "\201D"; }
.card-open { margin-left: auto; color: var(--hot-soft); font-weight: 600; text-decoration: none; }
.card-open:hover { text-decoration: underline; text-underline-offset: 3px; }

/* cells sit on a hairline-coloured ground with 1px gaps, so the rules between them survive any column count */
.also { list-style: none; margin: 0; padding: 0; counter-reset: also 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--hair); }
.also li { counter-increment: also; display: flex; align-items: baseline; gap: 10px; padding: 14px 14px 13px; background: var(--ink-mid); font: 500 13px/1.4 var(--font-mono); }
.also li::before { content: counter(also, decimal-leading-zero); flex: none; width: 20px; color: var(--faint); }
.also li i { margin-left: auto; font-style: normal; font-size: 11px; letter-spacing: .08em; color: var(--faint); }
.card-more { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-left: 1px solid var(--hair); color: var(--hot-soft); font: 600 13.5px/1.3 var(--font-mono); text-decoration: none; }
.card-more:hover { background: rgba(255, 90, 43, .1); }

/* ---- sheet 05: style reference */
.style-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; align-items: stretch; }
.style-picker { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto repeat(4, minmax(0, 1fr)); gap: 10px; }
.style-picker .style-picker-title { grid-row: auto; height: auto; margin: 0 0 2px; }
.style-chip {
  appearance: none; border: 0; cursor: pointer; text-align: left;
  display: grid; gap: 7px; align-content: center;
  padding: 12px 14px 13px;
  background: rgba(6, 43, 48, .55); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair);
  font: inherit;
}
.style-chip:hover { box-shadow: inset 0 0 0 1px var(--hair-strong); }
.style-chip[aria-pressed="true"] { background: rgba(255, 90, 43, .1); box-shadow: inset 0 0 0 2px var(--hot); }
.swatches { display: flex; height: 16px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35); }
.swatches i { flex: 1; }
.style-chip b { font: 600 16px/1.2 var(--font-body); }
.style-chip small { font: 400 12px/1.4 var(--font-mono); color: var(--faint); }

.frame { position: relative; background: var(--ink-deep); box-shadow: 0 0 0 1px var(--hair-strong); }
.frame .stage-screen { width: 100%; aspect-ratio: 16 / 9; }
.titleblock--flat { border: 1px solid var(--hair-strong); border-top: 0; }
.titleblock--flat .titleblock-cells { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.titleblock--flat .titleblock-cells > div:last-child { border-right: 0; }

/* ---- sheet 06: studio plugin */
.plugin-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.panel { display: flex; flex-direction: column; min-width: 0; background: var(--ink-deep); box-shadow: 0 0 0 1px var(--hair-strong); }
.panel-head { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--hair); font: 500 12.5px/1.2 var(--font-mono); color: var(--faint); }
.panel-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-file b { font-weight: 500; color: var(--text); }
.panel-meta { margin-left: auto; white-space: nowrap; }
.panel-action {
  appearance: none; border: 0; cursor: pointer; flex: none;
  min-height: 34px; padding: 0 12px;
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--hair-strong);
  font: 600 12.5px/1 var(--font-mono);
}
.panel-action:hover { background: rgba(var(--line-rgb), .08); }
.panel--code .luau { flex: 1 1 0; height: 0; min-height: 340px; }
.panel--device .stage-devices { margin-left: auto; }
.panel--device .stage-view { aspect-ratio: 16 / 10; }
.panel--device .stage-screen { box-shadow: 0 0 0 1px var(--hair-strong); }
.panel-note { margin: 0; padding: 12px 14px 13px; border-top: 1px solid var(--hair); font: 400 12.5px/1.5 var(--font-mono); color: var(--mute); }

.luau {
  --lx-comment: var(--faint);
  --lx-string: #ffd9a8;
  --lx-number: #ffe58f;
  --lx-keyword: var(--hot-soft);
  --lx-global: #9fe8ff;
  --lx-function: var(--text);
  --lx-property: #c9f3e6;
  --lx-operator: var(--faint);
  background: transparent;
  color: var(--mute);
  font: 400 13px/1.62 var(--font-mono);
  scrollbar-color: var(--hair-strong) transparent;
}
.stage-devices { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--hair); }
.stage-devices button { border-radius: 0; font: 600 12px/1 var(--font-mono); }
.stage-devices button[aria-pressed="true"] { background: var(--text); color: var(--ink); }

.specs { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); box-shadow: 0 0 0 1px var(--hair-strong); background: rgba(6, 43, 48, .6); }
.specs li { display: grid; gap: 10px; align-content: start; padding: 22px 22px 24px; border-right: 1px solid var(--hair); }
.specs li:last-child { border-right: 0; }
.specs h3 { margin: 0; font: 800 28px/1 var(--font-display); letter-spacing: .012em; text-transform: uppercase; }
.specs p { margin: 0; font-size: 16px; color: var(--mute); }
.specs code { font: 500 12.5px/1.4 var(--font-mono); color: var(--hot-soft); overflow-wrap: anywhere; }

/* ---- sheet 07: questions */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--mid); align-items: start; }
.faq-side { display: grid; gap: 20px; position: sticky; top: 96px; }
.faq-side .sheet-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--hair-strong); }
.faq-list details { border-bottom: 1px solid var(--hair-strong); }
.faq-list summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 84px minmax(0, 1fr) 20px; align-items: center; gap: 14px;
  padding: 20px 4px;
  font: 600 19px/1.3 var(--font-body);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: rgba(var(--line-rgb), .05); }
.faq-list summary::after {
  content: ""; width: 14px; height: 14px; justify-self: end;
  background:
    linear-gradient(var(--hot-soft), var(--hot-soft)) 50% 50% / 100% 2px no-repeat,
    linear-gradient(var(--hot-soft), var(--hot-soft)) 50% 50% / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-n { font: 500 11.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.faq-list details p { margin: 0 24px 22px 102px; max-width: 62ch; color: var(--mute); }

/* ---- closing box: download */
.cta { padding-bottom: clamp(72px, 9vw, 128px); }
.cta-box {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 20px var(--mid); align-items: center;
  padding: clamp(22px, 4vw, 56px);
  border: 1px dashed var(--hair-strong);
  background: rgba(6, 43, 48, .6);
}
.cta-box .sheet-head { grid-column: 1 / -1; margin-bottom: 0; }
.cta-main { display: grid; gap: 20px; min-width: 0; }
.cta-title { --h-size: clamp(50px, 8.4vw, 124px); }

/* the mark as a part: an extruded object when WebGL is on (js/land-assistant.js), its outline otherwise */
.cta-mark {
  position: relative; justify-self: center;
  width: min(100%, 330px); aspect-ratio: 1 / 1;
  border: 1px solid var(--hair-strong);
  background:
    linear-gradient(rgba(var(--line-rgb), .05) 1px, transparent 1px) 50% 50% / 100% 24px,
    linear-gradient(90deg, rgba(var(--line-rgb), .05) 1px, transparent 1px) 50% 50% / 24px 100%,
    var(--ink);
}
.cta-mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
.cta-mark-flat { position: absolute; inset: 15%; width: 70%; height: 70%; fill: none; stroke: var(--text); stroke-width: .9; }
.cta-mark-flat rect { stroke: var(--hot); }
.cta-mark.is-live canvas { opacity: 1; }
.cta-mark.is-live .cta-mark-flat { display: none; }
.cta-mark.is-live .cta-mark-line { display: block; }
.cta-mark b {
  position: absolute; left: 0; bottom: calc(100% + 9px);
  padding: 4px 7px; border-radius: 3px;
  background: var(--hot); color: var(--hot-ink);
  font: 600 11px/1 var(--font-mono); white-space: nowrap;
}
.cta-mark .corners { --c: var(--hot); }
.cta-mark-line { display: none; position: absolute; top: -7px; bottom: -7px; left: var(--mark-split, 50%); width: 2px; margin-left: -1px; background: var(--hot); pointer-events: none; }
.cta-mark-line::before { content: ""; position: absolute; left: -3px; top: 0; width: 8px; height: 8px; background: var(--hot); }
.cta-actions { margin: 8px 0 0; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--hair-strong); background: var(--ink-deep); padding: 34px 0 0; overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-bottom: 26px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-nav a { padding: 8px 10px; color: var(--mute); text-decoration: none; font-size: 15px; }
.foot-nav a:hover { color: var(--text); }
.foot-block { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 3.6fr); box-shadow: 0 0 0 1px var(--hair); }
.foot-block > div:last-child { border-right: 0; }
.foot-block .titleblock-wide dd { white-space: normal; overflow: visible; font-weight: 400; color: var(--mute); }
.foot-legal { margin: 18px 0 0; font: 400 12px/1.5 var(--font-mono); color: var(--faint); }
.foot-ghost {
  margin: 26px 0 -.14em; padding: 0;
  font: 800 clamp(84px, 21.5vw, 330px)/.8 var(--font-display);
  letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px var(--hair-strong);
  user-select: none; pointer-events: none;
}

/* ================================================================ smaller screens */
@media (max-width: 1199px) {
  .prompt-input { min-height: 6em; }   /* room for the longest sample prompt, so the demo below never jumps */
  /* hero window: both docks stack on the left again */
  .stage--hero .stage-body { grid-template-columns: 240px minmax(0, 1fr); }
  .stage--hero .stage-dock { display: grid; order: -1; contain: size; border-left: 0; border-right: 1px solid var(--st-line); }
  .stage--hero .dock-panel { contain: none; }
  .stage--hero .dock-explorer { order: 0; border-right: 0; }
  .stage--hero .dock-props { order: 0; border-left: 0; border-top: 1px solid var(--st-line); }
}

@media (max-width: 1239px) {
  .tag-more { display: none; }
  .top-in { gap: 14px; }
  .nav a { padding: 11px 8px; font-size: 14.5px; }
  .callouts { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
  .callouts li:nth-child(n+4) { padding-top: 0; }
  .callouts li:nth-child(n+4)::before, .callouts li:nth-child(n+4)::after { display: none; }
}

@media (max-width: 1099px) {
  /* header: the links fold into a menu */
  .menu { display: block; }
  .top-studio { margin-left: auto; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    margin: 0; padding: 8px var(--gutter) 18px;
    background: var(--ink-deep);
    border-bottom: 1px solid var(--hair-strong);
  }
  .top[data-nav-open] .nav { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--hair); border-radius: 0; }
  .nav-fold { display: block; color: var(--hot-soft); }

  .works-in { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .works-list { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
  .works-list li { border-left: 0; border-top: 1px solid var(--hair); padding-left: 0; }
  .card--list { grid-template-columns: minmax(0, 1fr); }
  .card--list .card-head { border-right: 0; border-bottom: 1px solid var(--hair); }
  .also { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-more { border-left: 0; border-top: 1px solid var(--hair); }
  .titleblock-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock-cells > div:nth-child(-n+2) { border-bottom: 1px solid var(--hair); }
  .titleblock--flat .titleblock-cells { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .titleblock--flat .titleblock-cells > div { border-bottom: 0; }
}

@media (max-width: 939px) {
  /* hero: one column, the build line turns into a rule between the two headline lines */
  .hero-top { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "copy" "prompt" "chips"; }
  .hero-line { display: none; }
  .hero-title { --h-size: clamp(42px, 12.6vw, 104px); display: block; }
  .hero-title .draft { position: relative; padding-bottom: .1em; margin-bottom: .13em; border-bottom: 2px solid var(--hot); }
  .hero-title .draft::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 8px; height: 8px; background: var(--hot); }
  .stage--hero .stage-body { grid-template-columns: minmax(0, 1fr); }
  .stage--hero .stage-dock { order: 0; contain: none; border-right: 0; }
  .stage-plugin { display: none; }

  .sheet-intro, .style-grid, .plugin-grid, .faq-grid, .cta-box, .ai-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-mark { width: min(100%, 240px); margin-top: 18px; justify-self: start; }
  .catalog-head .tag--faint { display: none; }
  .catalog-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .catalog-item:nth-child(3) { border-right: 0; }
  .catalog-item:nth-child(-n+3) { border-bottom: 1px solid var(--hair); }
  .ai-how-cells > div:nth-child(2) { border-right: 0; }
  .sheet-intro { align-items: start; }
  .faq-side { position: static; }
  .panel--code .luau { height: 380px; flex: none; }
  .specs { grid-template-columns: minmax(0, 1fr); }
  .specs li { border-right: 0; border-bottom: 1px solid var(--hair); }
  .specs li:last-child { border-bottom: 0; }
  .foot-block { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-block .titleblock-wide { grid-column: 1 / -1; border-right: 0; border-top: 1px solid var(--hair); }
  .foot-block > div:nth-child(-n+2) { border-bottom: 0; }
  .foot-block > div:nth-child(3) { border-right: 0; }
}

@media (max-width: 719px) {
  body { font-size: 16px; }
  .top-studio { display: none; }
  .top-studio + .top-cta { margin-left: auto; }
  .prompt--line .prompt-input { height: 44px; }
  .chips--studio .chips-gap { display: none; }
  .studio-frame { height: clamp(380px, 64vh, 520px); }
  .poster-ui { grid-template-columns: minmax(0, 1fr); }
  .poster-dock { display: none; }
  .poster-view { border-right: 0; }
  .studio-window .stage-file { display: none; }
  .studio-window .stage-bar .stage-status { display: block; flex: 1 1 auto; margin-left: 0; }
  .ai-plan { flex-basis: 100%; }
  .catalog-item span { font-size: 11.5px; }
  .callouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .callouts li:nth-child(n+3) { padding-top: 0; }
  .callouts li:nth-child(n+3)::before, .callouts li:nth-child(n+3)::after { display: none; }
  .catalog-head .tag--faint { display: none; }
  .catalog-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-item { border-bottom: 1px solid var(--hair); }
  .catalog-item:nth-child(3) { border-right: 1px solid var(--hair); }
  .catalog-item:nth-child(even) { border-right: 0; }
  .catalog-item:last-child { border-bottom: 0; }
  .ai-view--code { grid-template-columns: minmax(0, 1fr); aspect-ratio: auto; }
  .ai-code { border-right: 0; border-bottom: 1px solid var(--hair); max-height: 210px; }
  .ai-pane { aspect-ratio: 16 / 9; }
  .ai-how-cells > div { border-right: 0; }
  .sheet-head { margin-bottom: 14px; }
  .sheet-head .tag span { display: none; }
  .sheet-head .tag--faint { display: none; }
  .hero .sheet-head .tag--faint { display: flex; }
  .prompt { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 16px; }
  .prompt .btn { width: 100%; }
  .stage-bar .stage-status { display: none; }   /* the title block reports the result on small screens */
  .titleblock { flex-wrap: wrap; }
  .titleblock-cells { flex: 1 1 100%; }
  .titleblock-cells dd { white-space: normal; overflow-wrap: anywhere; }
  .titleblock-cells > div:nth-child(even) { border-right: 0; }
  .titleblock-cells > .titleblock-wide { grid-column: 1 / -1; border-right: 0; }
  .titleblock-action { flex: 1; min-height: 48px; border-top: 1px solid var(--hair); text-align: left; padding: 0 14px; }
  .stamp { margin: 8px 14px; border-top-width: 2px; }
  .titleblock--flat .titleblock-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock--flat .titleblock-cells > div { border-bottom: 1px solid var(--hair); }
  .titleblock--flat .titleblock-cells > div:first-child { grid-column: 1 / -1; border-right: 0; }
  .titleblock--flat .titleblock-cells > div:nth-child(even) { border-right: 1px solid var(--hair); }
  .titleblock--flat .titleblock-cells > div:nth-child(odd) { border-right: 0; }
  .titleblock--flat .titleblock-cells > div:nth-last-child(-n+2) { border-bottom: 0; }
  .works-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { grid-column: span 12; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .style-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-list summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 14px; padding: 16px 2px; font-size: 17.5px; }
  .faq-n { grid-column: 1 / -1; }
  .faq-list details p { margin: 0 8px 20px 2px; }
  .cta-actions .btn { width: 100%; }
  .foot-block { grid-template-columns: minmax(0, 1fr); }
  .foot-block > div { border-right: 0; border-bottom: 1px solid var(--hair) !important; }
  .foot-block > div:last-child { border-bottom: 0 !important; }
}

@media (max-width: 419px) {
  .brand-name { font-size: 25px; }
  .top-in { gap: 10px; }
  .style-picker { grid-template-columns: minmax(0, 1fr); }
  .works-list { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .studio-cover { transition: none; }
  .hero-line { animation: none; }
  .btn, .menu i, .stamp, .faq-list summary::after { transition: none; }
}
