html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html:has(#home:not([hidden])) { scroll-padding-top: 96px; }

/* Shared studio shell. The approved landing design is scoped below. */
:root {
  --sage: #829375;
  --sage-strong: #576b4d;
  --gutter: clamp(24px, 4.65vw, 76px);
  --col-max: 1440px;
  --bar-h: 118px;
}

html:not([data-theme="dark"]) {
  color-scheme: light;
  --paper: #f8f6f0;
  --paper-2: #edece5;
  --ink: #26312d;
  --ink-2: #535b54;
  --ink-3: #71776d;
  --ink-4: #9a9e93;
  --line: #deddd4;
  --line-2: #c8cbbf;
  --selection: #82937533;
  --frame-edge: #26312d1a;
}

html[data-theme="dark"] {
  --sage: #9cac8f;
  --sage-strong: #b2c2a7;
  --paper: #171d19;
  --paper-2: #232c25;
  --ink: #f0f0e7;
  --ink-2: #c0c8bd;
  --ink-3: #a4b19e;
  --ink-4: #809079;
  --line: #364236;
  --line-2: #596553;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --sage: #9cac8f;
    --sage-strong: #b2c2a7;
    --paper: #171d19;
    --paper-2: #232c25;
    --ink: #f0f0e7;
    --ink-2: #c0c8bd;
    --ink-3: #a4b19e;
    --ink-4: #809079;
    --line: #364236;
    --line-2: #596553;
  }
  html:not([data-theme]) .composer-box { background: var(--paper); }
}

.bar { position: relative; border-bottom: 0; }
.bar.is-scrolled { box-shadow: none; }
.bar-inner { max-width: var(--col-max); }
.wordmark {
  display: inline-flex;
  align-items: center;
  padding: 5px 0;
  color: var(--signal, var(--ink));
}
.wordmark-logo {
  display: block;
  width: 100px;
  aspect-ratio: 2087 / 753;
  background: currentColor;
  /* Frame the transparent artwork without recoloring or redrawing its letters. */
  mask-image: url('/assets/landing/wordmark-mask-ui.7535f0e3339b.webp');
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}
.bar-links { gap: 34px; }
.bar-link { font: 400 16px/1.4 var(--sans); color: var(--ink); }
.profile {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  font: 400 23px/1 var(--serif);
}

/* Shared brand: Satoshi, original orange wordmark, ink illustrations. */
.page[data-view="composer"] { --bar-h: 88px; --col-max: 1280px; --gutter: clamp(22px, 4vw, 64px); }
.page[data-view="composer"] .wordmark { color: var(--signal); }
.page[data-view="composer"] .bar .wordmark-logo { width: 94px; }
.page[data-view="composer"] .bar-links { margin-left: 18px; gap: 14px; }
.page[data-view="composer"] .profile { width: 32px; height: 32px; font: 500 14px/1 var(--sans); }
.page[data-view="composer"] .bar-link { font-size: 12px; }
.page[data-view="home"] > .studio-footer { display: none; }
@media (max-width: 860px) {
  .page[data-view="composer"] .bar-links { margin-left: 12px; }
}
@media (max-width: 640px) {
  .page[data-view="composer"] { --bar-h: 106px; --gutter: 22px; }
  .page[data-view="composer"] .bar-inner { flex-wrap: wrap; gap: 2px 12px; }
  .page[data-view="composer"] .bar .wordmark-logo { width: 80px; }
  .page[data-view="composer"] .bar-links { margin-left: 0; }
  .page[data-view="composer"] .profile { width: 28px; height: 28px; }
  .page[data-view="composer"] :is(#operator-lock, #operator-unlock) span { display: none; }
}
.create .recently .row-list { border: 0; border-radius: 0; }
.example-dialog { width: min(960px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); overflow: auto; }
.example-dialog::backdrop { background: #101312c9; }
.example-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; }
.example-dialog h2 { margin: 0; font: 700 23px/1.3 var(--sans); letter-spacing: -.025em; }
#example-close { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; }
#example-close:hover { background: var(--paper-2); }
#example-video { display: block; width: 100%; aspect-ratio: 16/9; background: #fff; }
.example-dialog-footer { padding: 16px 22px; }
#example-error { margin: 18px 22px; color: var(--oxide); }
.example-dialog .text-link { font-size: 14px; color: var(--sage-strong); }
:is(.choice-picker > summary, .example-card, .composer-box button, .wordmark, .profile, .example-dialog button, .landing-nav a, .landing-header-cta):focus-visible { outline: 2px solid var(--sage-strong); outline-offset: 4px; }
@media (max-width: 640px) {
  .example-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 9px; }
  .example-dialog-header { padding: 12px 14px; gap: 10px; }
  .example-dialog h2 { font-size: 20px; }
  .example-dialog-footer { padding: 14px 16px; }
}
.composer-form { width: 100%; position: relative; z-index: 2; grid-column: 1; min-width: 0; container: composer / inline-size; }
 .composer-box {
  display: flex; flex-direction: column; height: 208px; min-height: 0; padding: 0; gap: 0;
  border: 1px solid var(--line-2); border-radius: 13px;
  background: var(--paper); box-shadow: none;
}
.composer-box::after { border-color: var(--sage); box-shadow: 0 0 0 3px #82937512; }
.composer-box:focus-within::after { opacity: .65; }
.composer-content { position: relative; flex: 1; min-height: 0; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.create .field { display: block; flex: 1; width: 100%; height: 0; min-height: 0; max-height: none; margin: 0; padding: 0; border: 0; resize: none; overflow-y: auto; field-sizing: fixed; font: 400 20px/1.4 var(--sans); letter-spacing: -.015em; box-shadow: none; background: transparent; caret-color: var(--ink); }
.create .field::placeholder { color: var(--ink-3); opacity: 1; }
.create .field:focus { box-shadow: none; }
.create .count { position: absolute; bottom: 2px; right: 20px; font: 11px var(--sans); }
.composer-toolbar, .composer-input-actions, .composer-settings { display: flex; align-items: center; }
.composer-toolbar { flex: none; min-height: 64px; padding: 9px 14px; border-top: 1px solid var(--line); gap: 12px; }
.composer-input-actions { gap: 4px; }
.create .upload, .create .dictate { display: flex; align-items: center; justify-content: center; padding: 0; width: 44px; height: 44px; margin: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink); box-shadow: none; }
.create .upload:hover, .create .dictate:hover { background: var(--paper-2); }
.create .upload svg, .create .dictate svg { width: 21px; height: 21px; }
.composer-settings { gap: 4px; margin-left: auto; }
.choice-picker { position: relative; }
.choice-picker > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font: 400 14px/1.4 var(--sans);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: background-color var(--motion-fast) ease, border-color var(--motion-fast) ease, scale var(--motion-press) var(--motion-ease);
}
.choice-picker > summary::-webkit-details-marker { display: none; }
.choice-picker > summary svg { flex: none; }
.choice-picker > summary svg:last-child:not(:first-child) { width: 15px; height: 15px; transition: rotate var(--motion-menu) var(--motion-ease); }
.choice-picker[open] > summary svg:last-child:not(:first-child) { rotate: 180deg; }
.choice-picker[open] > summary, .choice-picker > summary:hover { background: var(--paper-2); border-color: var(--sage); }
.more-options > summary { width: 48px; padding: 0; }
.choice-panel {
  position: absolute;
  z-index: 10;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  box-shadow: 0 4px 10px #17221908, 0 16px 40px #17221914;
  transform-origin: top right;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}
.choice-picker.opens-up > .choice-panel { top: auto; bottom: calc(100% + 10px); transform-origin: bottom right; --menu-enter-y: 3px; }
.choice-panel > label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font: 400 14px/20px var(--sans);
  color: var(--ink-2);
  transition: background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}
.choice-panel input[type="radio"] { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.choice-panel > label::after {
  content: "";
  flex: none;
  width: 5px;
  height: 9px;
  margin-left: auto;
  margin-right: 3px;
  border: solid currentColor;
  border-width: 0 1.7px 1.7px 0;
  transform: rotate(45deg);
  opacity: 0;
  scale: .8;
  transition: opacity var(--motion-fast) ease, scale var(--motion-fast) var(--motion-ease);
}
.choice-panel > label:has(input:checked) { background: color-mix(in srgb, var(--sage) 12%, transparent); color: var(--ink); font-weight: 500; }
.choice-panel label:has(input:checked)::after { opacity: 1; scale: 1; color: var(--sage-strong); }
.choice-panel label:has(input:focus-visible) { outline: 2px solid var(--sage-strong); outline-offset: -2px; }
.options-panel { width: 296px; padding: 16px; }
/* Eighty-eight languages do not read as one column, and nobody scrolls
   eighty-eight rows to find one. Two columns, the captions spanning both,
   a filter box pinned above them, and a bounded height so the panel never
   outgrows a phone; one column when there is no room for two. */
.language-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 2px 6px;
  width: min(420px, calc(100vw - 32px));
  max-height: min(60dvh, 420px);
}
.language-choices > legend { grid-column: 1 / -1; }
.choice-filter {
  position: sticky;
  top: -6px;
  z-index: 1;
  grid-column: 1 / -1;
  min-width: 0;
  margin: -6px -6px 2px;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: 400 13px/20px var(--sans);
}
.choice-filter::placeholder { color: var(--ink-3); }
.choice-filter:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: -2px; }
.choice-note {
  grid-column: 1 / -1;
  margin: 6px 12px 2px;
  color: var(--ink-3);
  font: 400 11px/1.55 var(--sans);
}
.choice-caption {
  grid-column: 1 / -1;
  margin: 8px 12px 2px;
  color: var(--ink-3);
  font: 500 10px/1.4 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.choice-caption:first-of-type { margin-top: 4px; }
.language-choices > label { min-height: 40px; padding: 8px 10px; gap: 8px; }
.choice-native { flex: none; }
.choice-english { color: var(--ink-3); font-size: 12px; }
.choice-panel > label:has(input:checked) .choice-english { color: var(--ink-2); }
@media (max-width: 560px) {
  .language-choices { grid-template-columns: minmax(0, 1fr); width: min(280px, calc(100vw - 32px)); }
}
.voice-choices { min-width: 0; margin: 0; padding: 0; border: 0; }
.voice-choices + .voice-choices { margin-top: 16px; }
.voice-choices legend { margin-bottom: 10px; padding: 0; font: 600 12px/18px var(--sans); letter-spacing: .01em; color: var(--ink-2); }
.format-choices { min-width: 218px; }
.format-choices > label + label { margin-top: 4px; }
.format-choices svg { flex: none; color: var(--ink-3); }
.format-choices label:has(input:checked) svg { color: var(--sage-strong); }
.voice-segments { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 10px; background: var(--paper-2); }
.voice-segments label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border: 1px solid transparent; border-radius: 7px; color: var(--ink-2); font: 500 14px/20px var(--sans); cursor: pointer; transition: color var(--motion-fast) ease, background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease; }
.voice-segments label:has(input:checked) { background: var(--paper); color: var(--ink); border-color: color-mix(in srgb, var(--line) 65%, transparent); box-shadow: 0 1px 3px #1722190d; }
/* Two hosts is one choice about the whole reading, not a third narrator, so
   it takes its own full-width row under the pair. It is absent entirely on a
   studio with no Google key, or under the handwritten board. */
.voice-segments label[hidden] { display: none; }
.voice-segments label[data-podcast-option] { grid-column: 1 / -1; }
.voice-note { margin: 8px 0 0; color: var(--ink-2); font: 400 12px/17px var(--sans); }
.voice-note[hidden] { display: none; }
@media (hover: hover) {
  .choice-panel > label:hover { background: color-mix(in srgb, var(--sage) 8%, transparent); color: var(--ink); }
  .voice-segments label:hover { color: var(--ink); }
}
.choice-picker[open] > .choice-panel { animation: control-menu-enter var(--motion-menu) var(--motion-ease) both; }
.options-panel .author-options { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.options-panel .author-options > summary { font: 13px/20px var(--sans); color: var(--ink-2); }
.options-panel .author-options-fields { display: grid; grid-template-columns: 1fr; gap: 12px; }
.options-panel .author-options-fields label { min-width: 0; }
.options-panel .author-options-fields input, .options-panel .author-options-fields select { max-width: 100%; }
.create .explain { position: static; display: flex; align-items: center; justify-content: center; flex: none; min-width: 108px; width: auto; height: 44px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--sage-strong); color: white; font: 500 16px/1 var(--sans); box-shadow: none; }
.create .explain:disabled { opacity: .5; cursor: not-allowed; }
.composer-error:empty, .engine:empty { display: none; }
.composer-error, .engine { margin: 12px 2px 0; font: 13px/20px var(--sans); }


/* A bounded request area with compact, independently readable sources. */
.create .choice-picker > summary { min-height: 44px; border-color: transparent; padding: 0 10px; gap: 7px; border-radius: 7px; }
.create .more-options > summary { width: 44px; padding: 0; }
.composer-sources { display: flex; flex: none; align-items: center; gap: 8px; min-width: 0; height: 48px; }
.source-card { display: flex; flex: 0 1 250px; min-width: 0; height: 48px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); overflow: hidden; }
.source-open { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; border: 0; padding: 5px 10px; color: var(--ink); background: transparent; text-align: left; }
.source-open svg { flex: none; color: var(--ink-3); }
.source-card-copy { display: flex; flex-direction: column; min-width: 0; }
.source-card-title { font: 500 13px/18px var(--sans); }
.source-card-detail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 11px/16px var(--sans); color: var(--ink-3); }
.source-remove { flex: none; width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--ink-3); font: 20px var(--sans); }
.source-open:hover, .source-remove:hover, .source-more:hover { background: var(--paper-2); }
.source-more { flex: none; height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--ink-2); font: 12px var(--sans); }
.source-card.has-error { border-color: var(--error, #b55); }
.composer-box.is-dragging { outline: 2px solid var(--sage); outline-offset: 3px; }
.composer-notice { display: flex; align-items: center; gap: 8px; min-height: 24px; padding: 3px 2px 0; color: var(--ink-3); font: 12px/18px var(--sans); }
.composer-notice button { padding: 0; border: 0; background: transparent; color: var(--ink); text-decoration: underline; }
.source-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--line-2); border-radius: 14px; color: var(--ink); background: var(--paper); overflow: auto; }
.source-dialog::backdrop { background: #0006; }
.source-dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.source-dialog h2 { margin: 0; font: 500 22px/1.3 var(--sans); overflow-wrap: anywhere; }
.source-dialog p { margin: 6px 0 0; color: var(--ink-3); font: 12px/1.5 var(--sans); }
.source-dialog button { min-height: 44px; border: 1px solid var(--line-2); border-radius: 7px; padding: 0 12px; background: var(--paper); color: var(--ink); font: 13px var(--sans); }
.source-dialog #source-close { min-width: 44px; font-size: 22px; }
.source-search { display: flex; gap: 8px; margin-bottom: 12px; }
.source-search input { min-width: 0; flex: 1; border: 1px solid var(--line-2); border-radius: 7px; padding: 10px; background: var(--paper); color: var(--ink); font: 14px var(--sans); }
#source-preview-text { width: 100%; height: min(360px, 42dvh); resize: none; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--ink); font: 14px/1.6 var(--sans); }
#source-reader-status { min-height: 20px; }
.source-reader-footer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font: 12px var(--sans); }
#source-download { margin-left: auto; }
#source-list { display: grid; gap: 10px; }
.source-card-listed { width: 100%; }
.source-card-listed .source-remove { border: 0; }
.source-dialog button:disabled { opacity: .45; }
.source-dialog button:focus-visible, .composer-sources button:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: -3px; }
@container composer (max-width: 570px) {
 .composer-box { height: 264px; }
 .composer-content { padding: 16px; }
 /* Language, format and the options gear, then the input actions and Create
    on the row below. The gear keeps the fixed last column. */
 .composer-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 44px; gap: 6px; padding: 8px 10px; }
 .composer-settings { display: contents; }
 .create .choice-picker { grid-row: 1; }
 .composer-input-actions { grid-row: 2; grid-column: 1 / 2; }
 .create .explain { grid-row: 2; grid-column: 2 / 4; min-width: 0; width: 100%; }
 .create .choice-picker > summary { padding: 0 5px; gap: 4px; font-size: 12px; }
 .create .choice-picker > summary > svg:first-child { display: none; }
 .create .more-options > summary > svg:first-child { display: block; }
 .create .source-card { flex-basis: 240px; }
 .source-dialog { padding: 16px; }
 .source-reader-footer { gap: 5px; }
 #source-download { margin-left: 0; }
}

/* Create composer controls retained from the Create-page branch. */
.composer-box { border-radius: 10px; }
.composer-content { padding: 18px; }
.composer-toolbar { gap: 6px; padding: 8px 10px; }
.composer-settings { gap: 0; }
.create .choice-picker > summary { padding-inline: 8px; font-size: 12px; }
.create .choice-picker > summary svg { width: 17px; height: 17px; }
.create .choice-picker > summary svg:last-child:not(:first-child) { width: 12px; height: 12px; }
.create .explain { gap: 10px; background: var(--signal); color: #171a19; font-size: 14px; font-weight: 700; }
.create .explain > span:last-child { font-size: 20px; font-weight: 400; }
.choice-picker > summary { justify-content: center; }
.choice-picker .choice-panel { left: 0; right: auto; }
.more-options .choice-panel, .format-picker .choice-panel { left: auto; right: 0; }
.composer-notice:has(#composer-notice-text:empty):has(#composer-notice-undo[hidden]) { min-height: 0; padding-top: 0; }
@container composer (max-width: 570px) {
  .create .choice-picker > summary { font-size: 12px; padding-inline: 5px; }
  .composer-toolbar { gap: 6px; }
  .create .explain { min-width: 0; }
  .source-dialog { padding: 16px; }
}

/* Locked landing: paper and ink. Shared surfaces above retain their existing rules. */
.page[data-view="home"] {
  --bar-h: 68px; --col: 1280px; --col-max: 1280px; --gutter: max(clamp(22px, 4vw, 64px), env(safe-area-inset-left), env(safe-area-inset-right));
  --chapter: clamp(96px, 11.5vw, 168px); --ease: cubic-bezier(.16, 1, .3, 1); --scrub: cubic-bezier(.2, .7, .2, 1);
  --edge: var(--frame-edge);
  --sh-rest: 0 1px 1px var(--landing-shadow-soft), 0 12px 32px -14px var(--landing-shadow-deep);
  --sh-lift: 0 2px 3px var(--landing-shadow-soft), 0 28px 56px -18px var(--landing-shadow-deep);
  overflow-x: clip;
}
.page[data-view="home"] .main { padding: 0; }
.page:not([data-view="home"]) :is(.landing-nav, .landing-header-cta) { display: none; }
.page[data-view="home"] :is(#link-runs, #link-inspect, #link-new) { display: none; }
.page[data-view="home"] .bar { height: auto; padding: 0; flex: none; }
.page[data-view="home"] .bar-inner { width: min(var(--col), 100% - 2 * var(--gutter)); flex: none; justify-content: normal; }
#home {
  --landing-art-blend: multiply;
  --signal-hover: #f76342; --night: #171d1c; --night-2: #1b2220;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  position: relative; width: 100%; max-width: none; padding: 0; overflow-x: clip;
  font: 400 16px/1.5 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
/* Paper grain: the one texture on the page, 3.5% and fixed, so every sheet reads as material. */
#home::after { content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#home .wrap { width: min(var(--col), 100% - 2 * var(--gutter)); margin-inline: auto; }
#home :is(.example-card, .arrow, .copy) { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
/* Word masks: each word rises from behind its own baseline. The mask is a clip, so the italic keeps its baseline. */
#home .wm { display: inline-block; vertical-align: baseline; clip-path: inset(0); padding: .02em .07em .16em; margin: -.02em -.07em -.16em; }
#home .w { display: inline-block; }
#home .mark { position: relative; display: inline-block; white-space: nowrap; }
/* Wavy pen line: starts .11em below the baseline (the baseline sits .38em below the word centre in Satoshi). */
#home .stroke { position: absolute; left: -.02em; top: calc(50% + .49em); width: calc(100% + .04em); height: .16em; overflow: visible; color: var(--signal); pointer-events: none; }
#home .stroke path { fill: none; stroke: currentColor; stroke-width: .056em; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: var(--pen, 1.2) calc(var(--pen, 1.2) + .3); }
/* The one signature: the emphasised word of the two big headlines, set upright in Fraunces 500. Everything else on the page is Satoshi. */
#home .it { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-style: normal; font-weight: 500; font-optical-sizing: auto; font-variation-settings: "SOFT" 40; font-size: 1.06em; line-height: .9; letter-spacing: -.025em; }
#home .wm.it { padding-right: .04em; margin-right: -.04em; }
#home .mark:has(.it) .stroke { width: calc(100% + .06em); }
#home .it .w { color: var(--ink); }
/* Header: a glass bar, a quiet pill that glides under the pointer, one dark pill with the orange nib, the studio initial behind a hairline. */
.page[data-view="home"] .bar { position: sticky; top: 0; z-index: 40; background: var(--landing-bar-glass); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.page[data-view="home"] .bar::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; }
.page[data-view="home"] .bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left center; }
.page[data-view="home"] .bar-inner { display: flex; align-items: center; gap: 6px; height: 68px; }
.page[data-view="home"] .wordmark { display: inline-flex; align-items: center; min-height: 44px; margin-right: 22px; padding: 0; color: var(--signal); }
.page[data-view="home"] .wordmark:hover { color: var(--signal); }
.page[data-view="home"] .wordmark-logo { display: block; width: 94px; aspect-ratio: 2087 / 753; background: currentColor; -webkit-mask: url('/assets/landing/wordmark-mask-ui.7535f0e3339b.webp') center / contain no-repeat; mask: url('/assets/landing/wordmark-mask-ui.7535f0e3339b.webp') center / contain no-repeat; }
.page[data-view="home"] .landing-nav { position: relative; display: flex; align-items: center; gap: 2px; margin: 0 auto 0 0; }
.page[data-view="home"] .landing-nav a { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: 999px; color: var(--ink-2); font: 500 14px/1 var(--sans); letter-spacing: -.004em; text-decoration: none; transition: color 160ms ease; }
.page[data-view="home"] .landing-nav a:hover, .page[data-view="home"] .landing-nav a[aria-current] { color: var(--ink); }
.page[data-view="home"] .nav-pill { position: absolute; left: 0; top: 0; z-index: 0; width: 0; height: 36px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; pointer-events: none; transition: transform 460ms var(--ease), width 460ms var(--ease), opacity 180ms ease; }
.page[data-view="home"] .landing-nav.has-active .nav-pill { opacity: 1; }
.page[data-view="home"] .bar-links { display: flex; align-items: center; gap: 6px; margin: 0; }
.page[data-view="home"] .bar-link { display: inline-flex; align-items: center; gap: 8px; height: 36px; margin: 0; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 500 14px/1 var(--sans); letter-spacing: -.004em; text-decoration: none; cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.page[data-view="home"] .bar-link:hover { color: var(--ink); background: var(--paper-2); }
.page[data-view="home"] .bar-link svg { width: 16px; height: 16px; opacity: .85; }
.page[data-view="home"] .landing-header-cta { order: 1; display: inline-flex; align-items: center; gap: 12px; height: 40px; margin-left: 6px; padding: 0 6px 0 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); letter-spacing: -.004em; text-decoration: none; box-shadow: 0 1px 2px #171a1933, 0 10px 22px -12px #171a198c, inset 0 1px 0 #ffffff1f; transition: background-color 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease; }
.page[data-view="home"] .landing-header-cta:hover { background: #242a28; color: var(--paper); transform: translateY(-1px); box-shadow: 0 2px 3px #171a192e, 0 14px 28px -12px #171a1999, inset 0 1px 0 #ffffff24; }
.page[data-view="home"] .landing-header-cta:active { transform: translateY(0) scale(.98); }
.page[data-view="home"] .arr { display: inline-block; transition: translate 350ms var(--ease), rotate 300ms var(--ease); }
.page[data-view="home"] .landing-header-cta .arr { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--signal); color: #171a19; font: 500 15px/1 var(--sans); box-shadow: inset 0 1px 0 #ffffff47; transition: translate 220ms var(--ease), background-color 160ms ease; }
.page[data-view="home"] .landing-header-cta:hover .arr { translate: 2px -1px; background: #f76342; }
.page[data-view="home"] .profile { order: 2; position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-left: 14px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font: 600 13px/1 var(--sans); transition: box-shadow 160ms ease, background-color 160ms ease; }
.page[data-view="home"] .profile::before { content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px; width: 1px; background: var(--line); }
.page[data-view="home"] .profile:hover { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--ink-4); }
/* Hero: one object (the question), one story (the page is drawn). */
#home .hero { display: grid; grid-template-columns: minmax(0, 620fr) minmax(0, 660fr); align-items: center; padding-top: clamp(28px, 3.6vw, 52px); }
#home .hero-copy { position: relative; z-index: 2; min-width: 0; }
#home .h1 { margin: 0 0 0 -.04em; font: 800 clamp(48px, 7.25vw, 106px)/.92 var(--sans); letter-spacing: -.058em; }
#home .promise { max-width: 470px; margin: 34px 0 0; color: var(--ink-2); font: 400 clamp(17px, 1.34vw, 19px)/1.55 var(--sans); }
#home .promise strong { color: var(--ink); font-weight: 700; white-space: nowrap; }
/* The question box: one line at rest, text and button on one axis, corners concentric (18 outer, 8 padding, 10 inner). Home hands the prompt to Create. */
#home .hero-start { position: relative; z-index: 2; width: 100%; max-width: none; min-width: 0; margin-top: 34px; }
#home .hero-start-box { position: relative; display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 20px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--paper); box-shadow: var(--sh-rest), inset 0 1px 0 var(--paper); transition: border-color 160ms ease, box-shadow 320ms var(--ease), transform 320ms var(--ease); }
#home .hero-start-box:hover { box-shadow: var(--sh-lift), inset 0 1px 0 var(--paper); }
#home .hero-start-box:focus-within { border-color: #f04420a6; box-shadow: 0 0 0 4px #f044200f, var(--sh-lift); }
#home #hero-topic { flex: 1; box-sizing: border-box; min-width: 0; min-height: 48px; max-height: 190px; margin: 0; padding: 11.5px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: 400 18px/25px var(--sans); letter-spacing: -.012em; field-sizing: content; }
#home #hero-topic::placeholder { color: var(--ink-3); }
#home .caret { position: absolute; left: 19px; top: 21px; width: 2px; height: 22px; border-radius: 1px; background: var(--ink); opacity: 0; pointer-events: none; }
#home .hero-start-box:focus-within .caret, #home .hero-start-box:has(#hero-topic:not(:placeholder-shown)) .caret { display: none; }
#home .hero-start-go { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 10px; background: var(--signal); color: #171a19; box-shadow: 0 1px 0 #171a192e, inset 0 1px 0 #ffffff47; transition: background-color 160ms ease, transform 120ms var(--ease), box-shadow 160ms ease; }
#home .hero-start-go svg { transition: translate 160ms ease; }
#home .hero-start-go:hover { background: var(--signal-hover); box-shadow: 0 4px 10px -4px #f0442099, inset 0 1px 0 #ffffff47; }
#home .hero-start-go:hover svg { translate: 1.5px -1.5px; }
#home .hero-start-go:active { transform: scale(.94); }
/* The New pill: a solid orange tag, one line of ink, and a single sheen that sweeps across once. */
#home .hero-new { position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; height: 34px; min-height: 0; padding: 0 12px 0 4px; border: 0; border-radius: 999px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px var(--landing-shadow-soft); color: var(--ink); font: 500 13px/1 var(--sans); letter-spacing: -.005em; text-decoration: none; overflow: clip; transition: box-shadow 200ms var(--ease), transform 200ms var(--ease); }
#home .hero-new::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, #f044201f 50%, transparent 65%); transform: translateX(-110%); pointer-events: none; }
#home .hero-new-tag { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px 0 8px; border-radius: 999px; background: var(--signal); color: #171a19; font: 700 11px/1 var(--sans); letter-spacing: .02em; box-shadow: inset 0 1px 0 #ffffff4d; }
#home .hero-new-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #171a19; opacity: .8; }
#home .hero-new-arrow { color: var(--ink-3); font-size: 14px; transition: translate 180ms ease, color 180ms ease; }
#home .hero-new:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 18px -10px var(--landing-shadow-deep); }
#home .hero-new:hover .hero-new-arrow { color: var(--signal-text); translate: 3px 0; }
/* The illustration is a sheet laid on the desk, then inked in by a nib. Two sheets: the drawing and a blank one beneath. */
#home .hero-art { position: relative; z-index: 1; min-width: 0; margin: 0 -28px 0 20px; perspective: 1600px; }
#home .hero-sheet { position: relative; transform-origin: 40% 60%; }
#home .hero-sheet::before { content: ""; position: absolute; inset: 3% -1% -2.5% 2%; z-index: 0; background: var(--paper); border: 1px solid var(--edge); border-radius: 3px; rotate: 1.9deg; box-shadow: 0 1px 2px var(--landing-shadow-soft), 0 22px 40px -22px var(--landing-shadow-deep); }
#home .face { position: relative; z-index: 1; padding: 2.4% 2.8%; background: var(--paper); border: 1px solid var(--edge); border-radius: 3px; rotate: -1.3deg; box-shadow: var(--sh-rest); }
#home .clip { position: relative; }
#home .clip img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
#home .nib { position: absolute; left: 0; top: 58%; z-index: 3; width: 38px; height: 38px; margin: -3px 0 0 -3px; color: var(--ink); pointer-events: none; }
#home .nib svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 6px #171a1938); }
/* Chapters */
#home .landing-section { padding-top: var(--chapter); }
#home .head { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(28px, 3.3vw, 48px); }
#home .h2 { margin: 0; font: 800 clamp(34px, 4.6vw, 66px)/1 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
#home .sub { max-width: 560px; margin: 18px 0 0; color: var(--ink-2); font: 400 clamp(17px, 1.4vw, 20px)/1.5 var(--sans); }
/* Proof: two films, physical prints. Each one starts as its question, Explain is pressed, and a render head inks the picture. */
#home .films { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
#home .example { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
#home .example-card { display: block; width: 100%; min-width: 0; color: var(--ink); text-align: left; }
#home .print { display: block; perspective: 1400px; }
#home .poster { position: relative; display: block; aspect-ratio: 16 / 9; overflow: clip; border: 1px solid var(--edge); border-radius: 8px; background: #fff; box-shadow: var(--sh-rest); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); transition: box-shadow 500ms var(--ease), transform 500ms var(--ease), border-color 200ms ease; will-change: transform; }
#home .poster-media { position: absolute; inset: 0; transition: transform 650ms var(--ease); }
#home .poster img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; }
#home .play { position: absolute; left: 18px; bottom: 18px; display: grid; place-items: center; width: 56px; height: 56px; padding-left: 3px; border-radius: 50%; background: #171a19; color: #fff; box-shadow: 0 2px 4px #171a1933, 0 10px 20px -8px #171a1980, inset 0 1px 0 #ffffff29; transition: transform 400ms var(--ease), background-color 180ms ease; }
#home .play svg { width: 23px; height: 23px; }
#home .dur { position: absolute; right: 16px; bottom: 18px; padding: 4px 8px; border-radius: 4px; background: #171a19; color: #fff; font: 500 12px/1.4 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
#home .film-title { display: block; margin-top: 16px; font: 500 clamp(19px, 1.7vw, 24px)/1.3 var(--sans); letter-spacing: -.025em; text-wrap: balance; transition: color 180ms ease; }
/* What each film cost. The rule sits on one line across both films, whatever the title length. */
#home .example-facts { margin: auto 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
#home .example-facts dt { color: var(--ink-2); font: 600 13.5px/1.4 var(--sans); letter-spacing: -.008em; }
#home .example-facts dd { margin: 4px 0 0; color: var(--ink); font: 700 clamp(20px, 1.85vw, 26px)/1.15 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  #home .example-card:hover .poster { border-color: var(--signal-text); box-shadow: var(--sh-lift); }
  #home .example-card:hover .poster-media { transform: scale(1.03); }
  #home .example-card:hover .play { transform: scale(1.1) rotate(-7deg); background: #bb3112; }
  #home .example-card:hover .film-title { color: var(--signal-text); }
}
/* Rivals: one brief, three makers, one clock. The headline holds a single line at every width, so it is sized apart from .h2. */
#rivals .rivals-head { margin-bottom: clamp(20px, 2.2vw, 32px); overflow-x: clip; overflow-y: visible; text-align: center; }
#rivals .rivals-h2 { margin: 0; color: var(--ink); font: 800 clamp(15px, 4.6vw, 62px)/1.04 var(--sans); letter-spacing: -.05em; white-space: nowrap; }
/* The one input all three share, centred above the three outputs. */
#rivals .rivals-ask { margin: 0 auto clamp(34px, 4.2vw, 62px); text-align: center; }
#rivals .rivals-q-label { margin: 0 0 8px; color: var(--ink-3); font: 600 13.5px/1.5 var(--sans); letter-spacing: -.008em; }
#rivals .rivals-q { max-width: 30ch; margin: 0 auto; color: var(--ink); font: 500 clamp(20px, 1.6vw, 26px)/1.35 var(--sans); letter-spacing: -.025em; text-wrap: balance; }
#rivals .rivals-lede { max-width: 42ch; margin: 14px auto 0; color: var(--ink-3); font: 400 clamp(15px, 1.1vw, 16.5px)/1.55 var(--sans); }
#rivals .rivals-brief { margin-top: 10px; }
#rivals .rivals-brief summary { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--ink-4); font: 500 13.5px/1.5 var(--sans); letter-spacing: -.01em; list-style: none; cursor: pointer; transition: color 160ms ease; }
#rivals .rivals-brief summary::-webkit-details-marker { display: none; }
#rivals .rivals-brief summary:hover { color: var(--signal-text); }
#rivals .rivals-chev { width: 9px; height: 9px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate 300ms var(--ease); }
#rivals .rivals-brief[open] .rivals-chev { rotate: -135deg; translate: 0 2px; }
#rivals .rivals-brief-text { max-width: 62ch; margin: 12px auto 0; padding: 2px 0 2px 18px; border-left: 1px solid var(--line-2); color: var(--ink-3); font: 400 13px/1.85 var(--mono); text-align: left; white-space: pre-wrap; overflow-x: auto; }
/* Four lanes, one clock: four across, two by two on tablets. The receipt sits inside the card so a lane can fold into a row on a phone. */
#rivals .rivals-films { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
#rivals .example-card { display: flex; flex-direction: column; height: 100%; }
#rivals .poster { container-type: inline-size; }
#rivals .rivals-name { display: flex; flex: 1; flex-direction: column; margin-top: 16px; }
#rivals .film-title { margin-top: 0; }
#rivals .rivals-by { display: block; margin-top: 4px; color: var(--ink-3); font: 500 13px/1.45 var(--sans); letter-spacing: normal; }
#rivals .rivals-made { display: block; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
#rivals .rivals-made-label { display: block; color: var(--ink-2); font: 600 13.5px/1.4 var(--sans); letter-spacing: -.008em; }
#rivals .rivals-made-val { display: block; margin-top: 4px; color: var(--ink); font: 700 clamp(20px, 1.85vw, 26px)/1.15 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#rivals .rivals-ours :is(.film-title, .rivals-made-val) { color: var(--signal-text); }
/* Four across leaves each poster about 300px wide, so the play button steps down to keep its proportion. */
@media (min-width: 1101px) {
  #rivals .play { left: 14px; bottom: 14px; width: 46px; height: 46px; }
  #rivals .play svg { width: 17px; height: 17px; }
}
/* At rest every film is already made; the script opts into the race and hides these again when it ends. */
#rivals .rivals-sheet, #rivals .rivals-nib, #rivals .rivals-run { display: none; }
#rivals.is-racing .rivals-sheet { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: var(--paper); }
#rivals.is-racing .rivals-dial { color: var(--ink); font: 500 clamp(17px, 13cqi, 58px)/1 var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
#rivals.is-racing .rivals-run { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: block; height: 3px; background: var(--line); }
#rivals.is-racing .rivals-run i { display: block; height: 100%; background: var(--ink-4); transform: scaleX(var(--p, 0)); transform-origin: left; }
#rivals.is-racing .rivals-ours .rivals-run i { background: var(--signal); }
#rivals.is-racing .rivals-lane:not(.is-done) :is(.play, .rivals-made) { opacity: 0; }
/* The bill, drawn to scale. Every bar is its multiple of Ivan's price, and the dearer it is the longer it takes to draw. */
#rivals .rivals-cost { margin-top: clamp(46px, 5.4vw, 74px); }
#rivals .rivals-cost-label { margin: 0 0 6px; color: var(--ink-3); font: 600 13.5px/1.5 var(--sans); letter-spacing: -.008em; }
#rivals .rivals-bar { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) minmax(58px, auto); align-items: center; gap: clamp(14px, 2vw, 28px); padding-block: 18px; border-top: 1px solid var(--line); }
#rivals .rivals-bar-name { margin: 0; color: var(--ink-2); font: 600 13.5px/1.5 var(--sans); letter-spacing: -.008em; }
#rivals .rivals-ours .rivals-bar-name { color: var(--ink); }
#rivals .rivals-track { position: relative; display: block; height: 11px; }
#rivals .rivals-fill { position: absolute; inset-block: 0; left: 0; border-radius: 2px; background: var(--ink-4); transform-origin: left; }
#rivals .rivals-ours .rivals-fill { background: var(--signal); }
#rivals .rivals-bar[data-multiple="1"] { --draw: 340ms; }
#rivals .rivals-bar[data-multiple="1"] .rivals-fill { width: 3.2%; }
#rivals .rivals-bar[data-multiple="17"] { --draw: 1000ms; }
#rivals .rivals-bar[data-multiple="17"] .rivals-fill { width: 54.8%; }
#rivals .rivals-bar[data-multiple="31"] { --draw: 1400ms; }
#rivals .rivals-bar[data-multiple="31"] .rivals-fill { width: 100%; }
#rivals .rivals-bar-val { margin: 0; color: var(--ink); font: 700 clamp(20px, 1.85vw, 26px)/1.15 var(--sans); letter-spacing: -.035em; font-variant-numeric: tabular-nums; text-align: right; }
#rivals .rivals-ours .rivals-bar-val { color: var(--signal-text); }
#rivals .rivals-basis { margin: 14px 0 0; color: var(--ink-4); font: 400 13px/1.5 var(--sans); }
/* Vision: the manifesto inks in, the ribbon is drawn across the three drawings */
#home .manifesto { max-width: 11.6em; margin: 0; font: 800 clamp(40px, 6.4vw, 92px)/.96 var(--sans); letter-spacing: -.055em; text-wrap: balance; }
#home .vision-sub { max-width: 520px; margin: 30px 0 0; color: var(--ink-2); font: 400 clamp(18px, 1.55vw, 22px)/1.5 var(--sans); }
#home .paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(44px, 5.2vw, 76px); }
#home .path { display: flex; flex-direction: column; min-width: 0; }
#home .path-art { position: relative; aspect-ratio: 1000 / 563; }
#home .path-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
#home .path:nth-child(1) .path-art img { translate: 0 6%; }
#home .path:nth-child(3) .path-art img { translate: 0 4%; }
#home .path-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 28px 0; border-left: 1px solid var(--line); }
#home .path:first-child .path-copy { padding-left: 0; border-left: 0; }
#home .path:last-child .path-copy { padding-right: 0; }
#home .path-copy h3 { margin: 0; font: 750 clamp(21px, 2.15vw, 31px)/1.15 var(--sans); letter-spacing: -.035em; }
#home .path-copy p { max-width: 30ch; margin: 12px 0 8px; color: var(--ink-2); font: 400 17px/1.5 var(--sans); }
#home .arrow { display: inline-flex; align-items: center; width: 56px; min-height: 48px; margin-top: auto; padding-top: 8px; color: var(--signal-text); font: 400 34px/1 var(--sans); text-decoration: none; }
#home .arrow:hover { color: var(--ink); }
#home .arrow:hover .arr { translate: 7px 0; }
#home .caps { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(3, minmax(0, 1fr)); align-items: center; min-height: 104px; margin-top: clamp(48px, 5vw, 72px); padding: 16px 24px; border: 1px solid var(--edge); border-radius: 14px; background: var(--paper); box-shadow: var(--sh-rest); transition: border-color 220ms ease, box-shadow 400ms var(--ease); }
#home .caps:hover { box-shadow: var(--sh-lift); }
#home .caps:focus-within { border-color: var(--signal-text); }
#home .caps h3 { margin: 0; padding-right: 16px; font: 750 clamp(17px, 1.6vw, 23px)/1.2 var(--sans); letter-spacing: -.03em; }
#home .cap { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 6px 18px; border-left: 1px solid var(--line); cursor: pointer; }
#home .cap:last-child { padding-right: 0; }
#home .cap svg { flex: none; width: 24px; height: 24px; color: var(--ink-2); }
#home .cap-body { flex: 1; min-width: 0; }
#home .cap-label { display: block; color: var(--ink-2); font: 600 13.5px/1.4 var(--sans); letter-spacing: -.008em; }
#home .cap select { display: block; width: 100%; height: 30px; padding: 0 18px 0 0; border: 0; border-radius: 3px; appearance: none; -webkit-appearance: none; background: transparent var(--landing-select-arrow) right center / 14px no-repeat; color: var(--ink); font: 500 16px/1.4 var(--sans); cursor: pointer; }
#home .pm { position: relative; flex: none; width: 18px; height: 18px; }
#home .pm::before, #home .pm::after { content: ""; position: absolute; left: 3px; right: 3px; top: 8.25px; height: 1.5px; border-radius: 2px; background: currentColor; transition: rotate 300ms var(--ease); }
#home .pm::after { rotate: 90deg; }
#home details[open] > summary .pm::after { rotate: 0deg; }
/* Builders: the band opens like a lens; the request card floats above it in three dimensions and types itself. */
#home .night { position: relative; margin-top: var(--chapter); background: var(--night); color: #fff; overflow: clip; }
#home .night::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 78% 40%, #f044201a, transparent 55%), radial-gradient(90% 70% at 10% 100%, #ffffff0d, transparent 60%); }
#home .night-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(36px, 5.5vw, 88px); padding-block: clamp(84px, 10vw, 148px); }
#home .night .h2 { color: #fff; }
#home .dev-p { max-width: 30em; margin: 20px 0 30px; color: #eff2f0; font: 400 clamp(18px, 1.5vw, 21px)/1.5 var(--sans); }
#home .api summary { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; list-style: none; cursor: pointer; font: 500 17px/1.5 var(--sans); }
#home .api summary > span:first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: #ffffff66; transition: text-decoration-color 200ms ease; }
#home .api summary:hover > span:first-child { text-decoration-color: #fff; }
#home .api summary::-webkit-details-marker { display: none; }
#home .api summary .arr { font-size: 24px; text-decoration: none; }
#home .api[open] summary .arr { rotate: 90deg; }
#home .api p { max-width: 520px; margin: 10px 0 16px; color: #d2ddd7; font: 400 14px/1.8 var(--sans); overflow-wrap: anywhere; }
#home .api code { color: #fff; font: 12.5px/1.8 var(--mono); }
#home .invite { display: block; margin-top: 14px; color: #c4ceca; font: 400 13px/1.5 var(--sans); }
#home .stage { min-width: 0; perspective: 1600px; }
#home .code { min-width: 0; border: 1px solid #4a5450; border-radius: 12px; background: linear-gradient(180deg, #1f2724, var(--night-2)); box-shadow: 0 1px 0 #ffffff0f inset, 0 40px 90px -20px #000000b3, 0 0 0 1px #0000004d; transform: rotateY(-6deg) rotateX(2deg); transform-origin: 30% 50%; transition: transform 1100ms var(--ease), box-shadow 700ms var(--ease); }
#home .code:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-4px); box-shadow: 0 1px 0 #ffffff14 inset, 0 60px 110px -20px #000000cc, 0 0 0 1px #0000004d; }
#home .code-head { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 12px 0 20px; border-bottom: 1px solid #3c4842; font: 400 13px/1.4 var(--mono); }
#home .code-tab { display: flex; align-items: center; height: 100%; margin-bottom: -1px; border-bottom: 1px solid #f66a49; }
#home .copy { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 8px; color: #f7faf8; font: 400 13px/1.4 var(--sans); }
#home .copy:hover { color: #ff9b82; }
#home .code pre { margin: 0; padding: 22px 22px 26px; overflow: auto; color: #e0e9e4; font: 400 clamp(12px, 1vw, 14px)/1.85 var(--mono); }
#home .cl { display: block; white-space: pre; }
/* Questions, in the open */
#home .faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 48px; }
#home .faq-intro { align-self: start; position: sticky; top: 112px; }
#home .faq-title { margin: 0; font: 800 clamp(30px, 3.3vw, 48px)/1.05 var(--sans); letter-spacing: -.045em; }
#home .faq-kicker { display: block; margin-top: 14px; color: var(--ink-2); font: 600 13.5px/1.5 var(--sans); letter-spacing: -.008em; }
#home .qa { border-top: 1px solid var(--line); }
#home .qa:last-child { border-bottom: 1px solid var(--line); }
#home .qa summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 14px 0; list-style: none; cursor: pointer; font: 500 clamp(17px, 1.45vw, 20px)/1.4 var(--sans); letter-spacing: -.015em; transition: color 160ms ease; }
#home .qa summary::-webkit-details-marker { display: none; }
#home .qa summary:hover { color: var(--signal-text); }
#home .qa .pm { width: 20px; height: 20px; }
#home .qa .pm::before, #home .qa .pm::after { top: 9.25px; }
#home .qa p { max-width: 640px; margin: -2px 0 28px; color: var(--ink-2); font: 400 16px/1.7 var(--sans); }
/* Finale returns at hero scale */
#home .final { padding-block: clamp(128px, 15vw, 224px) clamp(104px, 11vw, 168px); text-align: center; }
#home .h-final { margin: 0; font: 800 clamp(46px, 7.25vw, 106px)/.94 var(--sans); letter-spacing: -.058em; }
#home .btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 58px; margin-top: clamp(34px, 3.4vw, 50px); padding: 0 30px 0 32px; border-radius: 99px; background: var(--signal); color: #171a19; font: 700 16px/1 var(--sans); text-decoration: none; box-shadow: 0 1px 0 #171a192e, 0 12px 28px -12px #f04420b3, inset 0 1px 0 #ffffff4d; transition: background-color 200ms ease, transform 200ms var(--ease), box-shadow 200ms ease; }
#home .btn:hover { background: var(--signal-hover); color: #171a19; transform: translateY(-1px); box-shadow: 0 2px 0 #171a191f, 0 20px 36px -12px #f04420cc, inset 0 1px 0 #ffffff4d; }
#home .btn:active { transform: translateY(0) scale(.98); }
#home .btn .arr { font: 400 24px/1 var(--sans); }
#home .btn:hover .arr { translate: 4px 0; }
#home .foot { display: flex; align-items: center; gap: 36px; min-height: 96px; border-top: 1px solid var(--line); }
#home .foot nav { display: flex; gap: 28px; }
#home .foot a:not(.wordmark) { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); font: 400 14px/1.4 var(--sans); text-decoration: none; }
#home .foot a:not(.wordmark):hover { color: var(--signal-text); }
#home .foot > a:last-child { margin-left: auto; }
@media (max-width: 1100px) {
  #rivals .rivals-films { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(36px, 4.4vw, 48px); }
  .page[data-view="home"] .wordmark { margin-right: 10px; }
  #home .caps { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); padding-inline: 16px; }
  #home .cap { gap: 10px; padding-inline: 12px; }
  #home .cap svg { width: 20px; height: 20px; }
  #home .cap select { font-size: 14px; }
  #home .path-copy { padding-inline: 18px; }
}
@media (max-width: 860px) {
  #home .hero { grid-template-columns: minmax(0, 1fr); }
  #home .h1 { font-size: clamp(44px, 10.2vw, 84px); }
  #home .hero-art { margin: 36px 0 0; }
  #home .example { gap: 16px; }
  #home .play { left: 14px; bottom: 14px; width: 48px; height: 48px; }
  #home .play svg { width: 20px; height: 20px; }
  #home .dur { right: 12px; bottom: 14px; font-size: 11px; }
  #home .film-title { font-size: 18px; }
  #home .example-facts { padding-top: 14px; }
  #home .example-facts dd { font-size: 19px; }
  #rivals .rivals-films { column-gap: 18px; }
  #home .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  #home .caps h3 { grid-column: 1 / -1; padding: 2px 0 14px; border-bottom: 1px solid var(--line); }
  #home .caps .cap:nth-of-type(odd) { padding-left: 0; border-left: 0; }
  #home .night-inner { grid-template-columns: minmax(0, 1fr); }
  #home .code, #home .code:hover { transform: none; }
  #home .faq { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #home .faq-intro { position: static; }
  #home .head { flex-direction: column; align-items: start; gap: 18px; }
}
/* Phones: a native-app surface. A translucent sticky bar, large titles, swipeable cards, a grouped settings list,
       full-width actions, 17px text (inputs never zoom) and 44px touch targets. */
@media (max-width: 640px) {
  html:has(#home:not([hidden])) { scroll-padding-top: 72px; }
  .page[data-view="home"] { --gutter: max(20px, env(safe-area-inset-left), env(safe-area-inset-right)); --chapter: 84px; -webkit-tap-highlight-color: transparent; }
  .page[data-view="home"] .bar { padding-top: env(safe-area-inset-top); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
  .page[data-view="home"] .bar-inner { height: 56px; gap: 4px; }
  .page[data-view="home"] .wordmark { flex-shrink: 0; margin-right: 0; }
  .page[data-view="home"] .bar .wordmark-logo { width: 74px; }
  .page[data-view="home"] .landing-nav { display: none; }
  .page[data-view="home"] .bar-links { flex: 0 1 auto; min-width: 0; margin-left: auto; gap: 2px; }
  .page[data-view="home"] .bar-link { width: 36px; padding: 0; justify-content: center; }
  .page[data-view="home"] .bar-link span { display: none; }
  .page[data-view="home"] #account-button { display: block; flex: 1 1 0; width: auto; min-width: 0; max-width: 96px; padding: 0 10px; overflow: hidden; font-size: 12.5px; line-height: 36px; white-space: nowrap; text-overflow: ellipsis; }
  .page[data-view="home"] .landing-header-cta { flex-shrink: 0; height: 38px; margin-left: 4px; padding: 0 5px 0 14px; gap: 10px; font-size: 14px; white-space: nowrap; }
  .page[data-view="home"] .landing-header-cta .arr { width: 26px; height: 26px; font-size: 14px; }
  .page[data-view="home"] .profile { width: 34px; height: 34px; margin-left: 10px; }
  .page[data-view="home"] .profile::before { left: -10px; }
  #home .hero { padding-top: 20px; }
  #home .h1 { font-size: clamp(40px, 11.8vw, 54px); line-height: .97; letter-spacing: -.055em; }
  #home .promise { margin-top: 16px; font-size: 17px; }
  html:has(#home:not([hidden])) :is(input, select, textarea) { font-size: 16px; }
  html:has(#home:not([hidden])) #home .cap select { font-size: 17px; }
  html:has(#home:not([hidden])) #home #hero-topic { font-size: 16px; }
  #home .hero-start { margin-top: 24px; }
  #home .hero-start-box { padding-left: 16px; }
  #home .caret { left: 15px; }
  #home .hero-new { height: auto; min-height: 34px; padding: 5px 12px 5px 4px; font-size: 12.5px; line-height: 1.25; }
  #home .hero-art { margin: 34px 0 0; }
  #home .head { margin-bottom: 20px; }
  #home .h2 { font-size: clamp(31px, 8.6vw, 38px); line-height: 1.04; letter-spacing: -.045em; }
  #home .films { display: flex; align-items: stretch; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  #home .films::-webkit-scrollbar { display: none; }
  #home .example { flex: 0 0 86%; gap: 14px; scroll-snap-align: start; }
  #home .poster { border-color: var(--line); border-radius: 16px; }
  #home .play { left: 12px; bottom: 12px; width: 44px; height: 44px; }
  #home .play svg { width: 19px; height: 19px; }
  #home .dur { right: 12px; bottom: 14px; padding: 3px 7px; border-radius: 6px; font-size: 11px; }
  #home .film-title { margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
  #home .example-facts { padding-top: 12px; }
  #home .example-facts dd { font-size: 17px; }
  #rivals .rivals-films { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #rivals .example { padding-block: 16px; border-top: 1px solid var(--line); }
  #rivals .example:first-child { border-top: 0; padding-top: 0; }
  #rivals .example-card { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; column-gap: 14px; height: auto; }
  #rivals .rivals-name { display: block; margin-top: 0; }
  #rivals .rivals-made { margin-top: 10px; padding-top: 0; border-top: 0; }
  #rivals .play { left: 10px; bottom: 10px; width: 36px; height: 36px; }
  #rivals .play svg { width: 16px; height: 16px; }
  #rivals .rivals-made-label { font-size: 12.5px; }
  #rivals .rivals-made-val { font-size: 17px; }
  #rivals .rivals-brief-text { font-size: 12px; }
  #rivals .rivals-bar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; padding-block: 14px; }
  #rivals .rivals-track { grid-column: 1 / -1; order: 3; }
  #home .manifesto { font-size: clamp(38px, 10.8vw, 50px); line-height: 1; }
  #home .vision-sub { margin-top: 16px; font-size: 17px; }
  #home .paths { display: flex; gap: 12px; margin: 32px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  #home .paths::-webkit-scrollbar { display: none; }
  #home .path { flex: 0 0 82%; overflow: clip; border-radius: 22px; background: var(--paper-2); scroll-snap-align: start; }
  #home .path-art { margin: 8px 8px 0; }
  #home .path .path-copy, #home .path:first-child .path-copy, #home .path:last-child .path-copy { padding: 6px 20px 18px; border-left: 0; }
  #home .path-copy h3 { font-size: 22px; }
  #home .path-copy p { margin: 6px 0 14px; font-size: 16px; }
  #home .arrow { align-self: flex-end; justify-content: center; width: 44px; min-height: 44px; padding: 0; border-radius: 50%; background: var(--paper); font-size: 22px; }
  #home .caps { display: block; min-height: 0; margin-top: 52px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  #home .caps h3 { margin-bottom: 12px; padding: 0; border: 0; font-size: 22px; }
  #home .caps .cap, #home .caps .cap:nth-of-type(n) { position: relative; gap: 14px; min-height: 54px; padding: 0 16px; border-left: 0; background: var(--paper-2); }
  #home .caps .cap:nth-of-type(1) { border-radius: 18px 18px 0 0; }
  #home .caps .cap:last-child { border-radius: 0 0 18px 18px; }
  #home .caps .cap + .cap::before { content: ""; position: absolute; left: 52px; right: 0; top: 0; height: 1px; background: var(--line); }
  #home .cap svg { width: 22px; height: 22px; color: var(--ink); }
  #home .cap-body { display: flex; align-items: center; gap: 12px; }
  #home .cap-label { flex: none; color: var(--ink); font: 400 17px/1.4 var(--sans); letter-spacing: 0; }
  #home .cap select { flex: 1; min-width: 0; height: 54px; padding-right: 22px; text-align: right; text-align-last: right; color: var(--ink-3); font-size: 17px; font-weight: 400; background-image: var(--landing-select-disclosure); background-size: 16px; }
  #home .night-inner { gap: 36px; padding-block: 72px; }
  #home .night .h2 { font-size: clamp(32px, 9.2vw, 42px); }
  #home .dev-p { margin: 16px 0 20px; font-size: 17px; }
  #home .code { border-radius: 16px; }
  #home .code pre { padding: 16px 14px 20px; font-size: clamp(10px, 2.9vw, 11px); }
  #home .faq { gap: 16px; }
  #home .faq-title { font-size: 31px; }
  #home .qa summary { min-height: 60px; font-size: 17px; }
  #home .qa p { font-size: 16px; }
  #home .final { padding-block: 104px 72px; }
  #home .h-final { font-size: clamp(42px, 12.2vw, 56px); }
  #home .btn { display: flex; width: 100%; min-height: 56px; margin-top: 32px; font-size: 17px; }
  #home .foot { flex-wrap: wrap; column-gap: 20px; row-gap: 0; padding-block: 16px calc(16px + env(safe-area-inset-bottom)); }
  #home .foot nav { order: 3; flex-basis: 100%; gap: 22px; }
}
/* Touch screens answer a press, not a hover. */
@media (hover: none) {
  #home .cap select { font-size: 16px; }
  .page[data-view="home"] .landing-header-cta, #home .btn, #home .example-card, #home .arrow { transition: scale 180ms var(--ease), background-color 180ms ease; }
  .page[data-view="home"] .landing-header-cta:active, #home .btn:active, #home .arrow:active { scale: .96; }
  #home .example-card:active { scale: .985; }
}

/* Adapt the live controls and preserve the lab's figure reset without inline styles. Drawings blend with the sheet they sit on. */
#home .clip, #home .path-art { mix-blend-mode: var(--landing-art-blend); }
#home .clip img, #home .path-art img { filter: var(--landing-art-filter) brightness(1.012); mix-blend-mode: normal; }
#home :is(.play, .dur) { background: #171a19; color: #fff; }
#home .code code { display: block; font: inherit; white-space: normal; }
#home .btn, #home .btn:hover, #home .poster-go { color: #171a19; }
@media (max-width: 640px) {
  .page[data-view="home"] { --bar-h: 56px; }
  .page[data-view="home"] #operator-lock { display: none; }
}
html[data-theme="dark"] #home { --landing-art-blend: screen; }
html[data-theme="dark"] #home::after { mix-blend-mode: screen; opacity: .045; }
html[data-theme="dark"] .page[data-view="home"] .landing-header-cta:hover { background: var(--ink-2); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) #home { --landing-art-blend: screen; }
  html:not([data-theme]) #home::after { mix-blend-mode: screen; opacity: .045; }
  html:not([data-theme]) .page[data-view="home"] .landing-header-cta:hover { background: var(--ink-2); }
}
html:has(#home:not([hidden])), body:has(#home:not([hidden])) { overflow-x: clip; }
html:has(#home:not([hidden])) { scroll-behavior: smooth; }
