/* Self-hosted variable fonts (SIL OFL 1.1, see LICENSE-*.txt), from @fontsource-variable 5.3.0. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

[hidden] {
  display: none !important;
}
/* Casewall marketing: the page is the product's own surface.
   Six colours from the app palette (BCD-255), two faces from the app. */
:root {
  --sc-canvas: #11151c;
  --sc-surface: #1a2230;
  --sc-ink: #f1f2f5;
  --sc-ink-soft: #a7b0c0;
  --sc-accent: #d66853;
  --sc-accent-ink: #11151c;
  --sc-font-display: "Inter", system-ui, sans-serif;
  --sc-font-text: "Inter", system-ui, sans-serif;
  --sc-font-mono: "JetBrains Mono", ui-monospace, monospace;

  --rail-w: 15rem;
  --bar-h: 0px;
  --line: var(--sc-hairline);
  --line-strong: var(--sc-hairline-strong);
}

html {
  background: var(--sc-canvas);
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base);
  line-height: var(--sc-leading-body);
  -webkit-font-smoothing: antialiased;
}
.mono {
  font-family: var(--sc-font-mono);
  font-size: 0.78em;
  letter-spacing: 0.01em;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- chrome */
.chrome {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--sc-z-chrome);
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: var(--sc-3);
  padding: var(--sc-5) var(--sc-4);
  background: var(--sc-canvas);
  border-right: 1px solid var(--line);
  box-sizing: border-box;
}
.chrome__mark {
  display: flex;
  align-items: center;
  gap: var(--sc-3);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: var(--sc-track-snug);
}
.chrome__crumb {
  margin: var(--sc-4) 0 0;
  font-size: var(--sc-t-sm);
  font-weight: 600;
  line-height: 1.35;
}
.chrome__crumb .mono {
  display: block;
  color: var(--sc-ink-soft);
  font-weight: 400;
  margin-bottom: 2px;
}
.chrome__note {
  margin: 0;
  font-size: var(--sc-t-xs);
  color: var(--sc-ink-soft);
  line-height: 1.45;
}
.chrome__views {
  list-style: none;
  margin: var(--sc-4) 0 0;
  padding: var(--sc-4) 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.chrome__views a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: var(--sc-r-sm);
  text-decoration: none;
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
  transition:
    background-color var(--sc-d-fast) var(--sc-ease-out),
    color var(--sc-d-fast) var(--sc-ease-out);
}
.chrome__views a:hover {
  color: var(--sc-ink);
}
.chrome__views a[aria-current="true"] {
  background: var(--sc-surface);
  color: var(--sc-ink);
}
.chrome__join {
  margin-top: auto;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 0.7rem 0.9rem;
  border-radius: var(--sc-r-sm);
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  font-weight: 600;
  font-size: var(--sc-t-sm);
}

.surface {
  margin-left: var(--rail-w);
}

/* ---------------------------------------------------------------- panes */
.pane {
  box-sizing: border-box;
  padding: var(--sc-6) clamp(1.25rem, 3.5vw, 3.5rem);
}
[data-sc-stage].pane {
  height: 100svh;
  padding-top: calc(var(--bar-h) + var(--sc-6));
}
.pane__head {
  max-width: 46rem;
}
.pane__kind {
  margin: 0 0 var(--sc-2);
  color: var(--sc-accent);
  text-transform: uppercase;
  letter-spacing: var(--sc-track-wide);
}
.pane__title {
  margin: 0;
  font-size: var(--sc-t-xl);
  font-weight: 600;
  letter-spacing: var(--sc-track-snug);
  line-height: var(--sc-leading-tight);
  text-wrap: balance;
}
.pane__sub {
  margin: var(--sc-2) 0 0;
  color: var(--sc-ink-soft);
}
.pane__status {
  margin: var(--sc-3) 0 0;
  color: var(--sc-ink-soft);
}

/* paper texture: case-file ruling, very low contrast */
.pane--inbox,
.pane--sync,
.pane--publish,
.pane--join {
  background-image: linear-gradient(
    to bottom,
    transparent 31px,
    color-mix(in oklab, var(--sc-ink) 3.5%, transparent) 32px
  );
  background-size: 100% 32px;
}

/* ---------------------------------------------------------------- 1 inbox */
.pane--inbox {
  display: grid;
  grid-template-columns: 1fr 19rem;
  grid-template-rows: auto 1fr;
  gap: var(--sc-5) var(--sc-6);
}
.pane--inbox .pane__head {
  grid-column: 1 / -1;
}
.pile {
  position: relative;
  min-height: 0;
}
.help {
  align-self: end;
  padding: var(--sc-5);
  border-radius: var(--sc-r-md);
  background: var(--sc-surface);
  border: 1px solid var(--line);
  box-shadow: var(--sc-e2);
  font-size: var(--sc-t-sm);
  position: relative;
  z-index: 2;
}
.help p {
  margin: 0;
  color: var(--sc-ink-soft);
}
.help p + p {
  margin-top: var(--sc-3);
}
.help .help__lead {
  color: var(--sc-ink);
  font-weight: 500;
  font-size: var(--sc-t-base);
  line-height: 1.45;
}

.card {
  position: absolute;
  box-sizing: border-box;
  background: var(--sc-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--sc-r-sm);
  box-shadow: var(--sc-e3);
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--sc-ink);
  opacity: 0;
  transform: translate3d(0, 10px, 0) rotate(var(--r));
  transition:
    opacity 260ms var(--sc-ease-out),
    transform 360ms var(--sc-ease-out);
}
.card.is-on {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(var(--r));
}
.card--img {
  width: 11rem;
  padding: 6px 6px 8px;
}
.card--img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.card--img span {
  display: block;
  margin-top: 6px;
}
.card--doc {
  width: 14rem;
  padding: 10px 12px;
}
.card--row {
  width: 16rem;
  padding: 9px 12px;
  font-family: var(--sc-font-mono);
  font-size: 0.72rem;
}
.card__k {
  display: block;
  color: var(--sc-ink-soft);
  font-family: var(--sc-font-mono);
  font-size: 0.68rem;
  margin-bottom: 3px;
}
.card__flag {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  font-family: var(--sc-font-mono);
  font-size: 0.66rem;
}

/* ---------------------------------------------------------------- 2 board */
.flowpane .pane {
  padding-block: var(--sc-9);
}
#board .pane {
  padding-top: var(--sc-7);
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sc-4);
  margin-top: var(--sc-6);
}
.col {
  background: var(--sc-surface);
  border: 1px solid var(--line);
  border-radius: var(--sc-r-md);
  padding: var(--sc-4);
  min-width: 0;
}
.col__head {
  margin: 0 0 var(--sc-3);
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
}
.col__head span {
  display: block;
  font-size: var(--sc-t-2xl);
  font-weight: 600;
  color: var(--sc-ink);
  letter-spacing: var(--sc-track-tight);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.col__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.col__list li {
  padding: 8px 10px;
  border-radius: var(--sc-r-sm);
  background: var(--sc-canvas);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  line-height: 1.35;
}
.col__list .code {
  display: block;
  font-family: var(--sc-font-mono);
  font-size: 0.68rem;
  color: var(--sc-ink-soft);
}
.col__list .more {
  background: none;
  border-style: dashed;
  color: var(--sc-ink-soft);
}

/* ---------------------------------------------------------------- 3 exhibit */
.pane--exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr);
  gap: var(--sc-7);
  align-items: center;
  max-width: 82rem;
}
.exhibit__plate {
  margin: 0;
  border-radius: var(--sc-r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--sc-e3);
}
.exhibit__plate img {
  display: block;
  width: 100%;
  height: auto;
}
.meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 18px;
  margin: var(--sc-5) 0;
  font-size: var(--sc-t-sm);
}
.meta dt {
  color: var(--sc-ink-soft);
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  padding-top: 2px;
}
.meta dd {
  margin: 0;
}
.exhibit__note {
  margin: 0;
  color: var(--sc-ink-soft);
}

/* ---------------------------------------------------------------- 4 sync (peak) */
.pane--sync {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "status status status" "log map links" "ruler ruler ruler";
  gap: var(--sc-4) var(--sc-5);
}
.sync__status {
  grid-area: status;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  min-height: 5.6rem;
}
.sync__now {
  margin: 0;
  font-size: var(--sc-t-xl);
  font-weight: 600;
  letter-spacing: var(--sc-track-snug);
  line-height: 1.2;
  max-width: 52rem;
  text-wrap: balance;
}
.sync__meta {
  margin: 0;
  color: var(--sc-ink-soft);
}
.sync__log {
  grid-area: log;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}
.sync__log ol {
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 320ms var(--sc-ease-out);
}
.sync__log li {
  height: 3rem;
  box-sizing: border-box;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--sc-ink-soft);
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 8px;
  overflow: hidden;
}
.sync__log li b {
  font-family: var(--sc-font-mono);
  font-weight: 400;
  font-size: 0.7rem;
  padding-top: 2px;
}
.sync__log li span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sync__log li.is-past {
  color: var(--sc-ink);
}
.sync__log li.is-now {
  color: var(--sc-ink);
  background: var(--sc-surface);
  box-shadow: inset 3px 0 0 var(--sc-accent);
}
.sync__log li.is-now b {
  color: var(--sc-accent);
}
.sync__map,
.sync__links {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--sc-surface);
  border: 1px solid var(--line);
  border-radius: var(--sc-r-md);
  padding: var(--sc-3);
}
.sync__map {
  grid-area: map;
}
.sync__links {
  grid-area: links;
}
.sync__map svg,
.sync__links svg {
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.sync__map figcaption,
.sync__links figcaption {
  color: var(--sc-ink-soft);
}
.sync__ruler {
  grid-area: ruler;
  padding-bottom: var(--sc-2);
}
.ruler {
  position: relative;
  height: 2.6rem;
  border-top: 1px solid var(--line-strong);
}
.ruler__tick {
  position: absolute;
  top: -5px;
  width: 1px;
  height: 9px;
  background: var(--sc-ink-soft);
}
.ruler__tick.is-past {
  background: var(--sc-ink);
}
.ruler__day {
  position: absolute;
  top: 10px;
  font-family: var(--sc-font-mono);
  font-size: 0.66rem;
  color: var(--sc-ink-soft);
  transform: translateX(-50%);
  white-space: nowrap;
}
.ruler__head {
  position: absolute;
  top: -9px;
  width: 3px;
  height: 17px;
  margin-left: -1px;
  background: var(--sc-accent);
  border-radius: 2px;
}

/* svg layers */
.m-water {
  fill: none;
  stroke: #2b3a52;
  stroke-width: 5;
  stroke-linecap: round;
}
.m-road {
  fill: none;
  stroke: #364156;
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
}
.m-label {
  fill: var(--sc-ink-soft);
  font: 9px var(--sc-font-mono);
}
.m-route {
  fill: none;
  stroke: var(--sc-accent);
  stroke-width: 1.4;
  stroke-dasharray: 3 3;
  opacity: 0.8;
}
.m-pin {
  fill: var(--sc-ink);
}
.m-pin.is-now {
  fill: var(--sc-accent);
}
.m-unc {
  fill: color-mix(in oklab, var(--sc-accent) 14%, transparent);
  stroke: var(--sc-accent);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.m-now {
  fill: var(--sc-ink);
  font: 600 11px var(--sc-font-text);
  paint-order: stroke;
  stroke: var(--sc-surface);
  stroke-width: 4px;
}
.m-off {
  fill: var(--sc-ink-soft);
  font: 9px var(--sc-font-mono);
}
.l-edge {
  stroke: #4a5870;
  stroke-width: 1.2;
}
.l-edge--co {
  stroke-dasharray: 2 3;
  stroke: #3b4860;
}
.l-edge.is-now {
  stroke: var(--sc-accent);
  stroke-width: 1.6;
}
.l-node circle {
  fill: var(--sc-canvas);
  stroke: var(--sc-ink-soft);
  stroke-width: 1.4;
}
.l-node.is-now circle {
  fill: var(--sc-accent);
  stroke: var(--sc-accent);
}
.l-node text {
  fill: var(--sc-ink);
  font: 10px var(--sc-font-text);
  text-anchor: middle;
  paint-order: stroke;
  stroke: var(--sc-surface);
  stroke-width: 3px;
}
.l-node.is-soft text {
  fill: var(--sc-ink-soft);
}
.svg-fade {
  transition: opacity 260ms var(--sc-ease-out);
}

/* ---------------------------------------------------------------- 5 receipts */
.pane--receipts {
  max-width: 60rem;
}
.claims {
  list-style: none;
  margin: var(--sc-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--sc-4);
}
.claim {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: var(--sc-4);
  padding: var(--sc-4);
  background: var(--sc-surface);
  border: 1px solid var(--line);
  border-radius: var(--sc-r-md);
}
.claim__thumb {
  width: 6.5rem;
  height: 4.6rem;
  object-fit: cover;
  border-radius: var(--sc-r-sm);
  display: block;
}
.claim__thumb--doc {
  display: grid;
  place-items: center;
  background: var(--sc-canvas);
  border: 1px solid var(--line);
  color: var(--sc-ink-soft);
  font-family: var(--sc-font-mono);
  font-size: 0.7rem;
  box-sizing: border-box;
}
.claim__text {
  margin: 0 0 var(--sc-2);
  font-weight: 500;
  line-height: 1.4;
}
.src-wrap {
  position: relative;
  display: block;
  touch-action: pan-y;
}
.src {
  margin: 0;
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  color: var(--sc-ink-soft);
  line-height: 1.6;
  padding: 4px 0;
}
.src strong {
  color: var(--sc-ink);
  font-weight: 500;
}
.src .warn {
  color: var(--sc-accent);
}
.redact {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 2px;
  background: var(--sc-ink);
  cursor: ew-resize;
  clip-path: inset(0 0 0 var(--lift, 0%));
  touch-action: pan-y;
}
.redact::after {
  content: "REDACTED";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 0.62rem var(--sc-font-mono);
  letter-spacing: 0.2em;
  color: var(--sc-canvas);
}
.redact.is-lifting {
  transition: clip-path 380ms var(--sc-ease-out);
}
.redact.is-lifted {
  pointer-events: none;
  visibility: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- 6 publish */
.pane--publish {
  display: flex;
  flex-direction: column;
  gap: var(--sc-5);
}
.publish__head {
  flex: none;
}
.publish__rail {
  display: flex;
  gap: var(--sc-5);
  align-items: stretch;
  width: max-content;
  flex: 1;
  min-height: 0;
  padding-bottom: var(--sc-5);
  /* engine measures travel against the viewport; the rail starts after the sidebar, so pay that lead back on the right */
  padding-right: calc(var(--rail-w, 0px) + clamp(1.25rem, 3.5vw, 3.5rem));
}
.view {
  width: min(34rem, 78vw);
  box-sizing: border-box;
  padding: var(--sc-5);
  background: var(--sc-surface);
  border: 1px solid var(--line);
  border-radius: var(--sc-r-md);
  display: flex;
  flex-direction: column;
  gap: var(--sc-3);
  overflow: hidden;
}
.view--public {
  border-color: color-mix(in oklab, var(--sc-accent) 45%, transparent);
}
.view__tag {
  margin: 0;
  color: var(--sc-ink-soft);
  text-transform: uppercase;
  letter-spacing: var(--sc-track-wide);
}
.banner {
  margin: 0;
  padding: 8px 12px;
  border-radius: var(--sc-r-sm);
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  font-weight: 600;
  font-size: var(--sc-t-sm);
}
.records {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sc-3);
}
.records li {
  padding: 10px 12px;
  border-radius: var(--sc-r-sm);
  background: var(--sc-canvas);
  border: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.4;
}
.records .name {
  display: block;
  font-weight: 600;
}
.records .role {
  display: block;
  color: var(--sc-ink-soft);
  font-size: 0.78rem;
}
.records .field-row {
  display: block;
  font-family: var(--sc-font-mono);
  font-size: 0.72rem;
  margin-top: 4px;
}
.records .withheld {
  color: var(--sc-accent);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sc-3);
}
.checks li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.45;
}
.checks li::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.22rem;
  border-radius: 3px;
  background: var(--sc-accent);
  box-shadow: inset 0 0 0 3px var(--sc-surface);
  border: 1px solid var(--sc-accent);
  box-sizing: border-box;
}
.checks .code {
  font-family: var(--sc-font-mono);
  font-size: 0.74rem;
  color: var(--sc-ink-soft);
}

/* ---------------------------------------------------------------- 7 join */
.pane--join {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
}
.firstrun {
  width: min(34rem, 100%);
  justify-self: center;
  padding: var(--sc-6);
  background: var(--sc-surface);
  border: 1px solid var(--line);
  border-radius: var(--sc-r-lg);
  box-shadow: var(--sc-e3);
  box-sizing: border-box;
  display: grid;
  gap: var(--sc-4);
}
.firstrun .pane__title {
  font-size: var(--sc-t-lg);
}
.firstrun__lead {
  margin: 0;
  color: var(--sc-ink-soft);
  font-size: var(--sc-t-sm);
}
.field {
  display: grid;
  gap: 6px;
}
.field__label {
  font-size: var(--sc-t-sm);
  font-weight: 500;
}
.field input {
  font: inherit;
  color: var(--sc-ink);
  background: var(--sc-canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--sc-r-sm);
  padding: 0.8rem 0.9rem;
  min-height: 48px;
  box-sizing: border-box;
  width: 100%;
}
.field input::placeholder {
  color: #7f899b;
}
.field input:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 1px;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
  cursor: pointer;
  min-height: 44px;
}
.check input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--sc-accent);
  flex: none;
}
.submit {
  font: inherit;
  font-weight: 600;
  min-height: 48px;
  border: 0;
  border-radius: var(--sc-r-sm);
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
  cursor: pointer;
}
.submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.firstrun__result {
  margin: 0;
  min-height: 1.4em;
  font-size: var(--sc-t-sm);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sc-2) var(--sc-5);
  padding-top: var(--sc-4);
  border-top: 1px solid var(--line);
  font-size: var(--sc-t-xs);
  color: var(--sc-ink-soft);
}
.foot p {
  margin: 0;
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 860px) {
  :root {
    --rail-w: 0px;
    --bar-h: 6.1rem;
  }
  .chrome {
    inset: 0 0 auto 0;
    width: auto;
    height: var(--bar-h);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 6px 12px;
    padding: 10px 14px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .chrome__crumb,
  .chrome__note {
    display: none;
  }
  .chrome__join {
    margin: 0 0 0 auto;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  .chrome__views {
    order: 3;
    flex-basis: 100%;
    margin: 0 -14px;
    padding: 6px 14px 8px;
    border-top: 0;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .chrome__views::-webkit-scrollbar {
    display: none;
  }
  .chrome__views a {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    min-height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }
  .surface {
    padding-top: 0;
  }
  .flowpane .pane {
    padding-block: calc(var(--bar-h) + var(--sc-5)) var(--sc-7);
  }

  .pane--inbox {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: var(--sc-3);
    padding-bottom: var(--sc-4);
  }
  .help {
    padding: var(--sc-4);
  }
  .help p:not(.help__lead) {
    display: none;
  }
  .card--img {
    width: 7.5rem;
  }
  .card--doc {
    width: 10rem;
    padding: 8px 10px;
    font-size: 0.72rem;
  }
  .card--row {
    width: 11.5rem;
    font-size: 0.66rem;
  }

  .board {
    grid-template-columns: 1fr 1fr;
  }
  .col__list li:nth-child(n + 4):not(.more) {
    display: none;
  }

  .pane--exhibit {
    grid-template-columns: 1fr;
    gap: var(--sc-5);
  }

  .pane--sync {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr) auto;
    grid-template-areas: "status" "map" "links" "ruler";
    gap: var(--sc-3);
    padding-bottom: var(--sc-3);
  }
  .sync__log {
    display: none;
  }
  .sync__status {
    min-height: 7.4rem;
  }
  .sync__now {
    font-size: var(--sc-t-lg);
  }
  .sync__map,
  .sync__links {
    padding: 6px;
  }
  .sync__map figcaption,
  .sync__links figcaption {
    font-size: 0.62rem;
  }

  .claim {
    grid-template-columns: 1fr;
  }
  .claim__thumb {
    width: 100%;
    height: 9rem;
  }

  .firstrun {
    padding: var(--sc-5);
  }
  .pane--join {
    padding-bottom: var(--sc-4);
  }
}
@media (max-width: 860px) and (max-height: 700px) {
  .sync__links figcaption,
  .sync__map figcaption {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Keep the heading put and hand only the rail back as a scroll region. */
  [data-sc-act="pan"] [data-sc-stage].pane--publish {
    overflow: clip !important;
    scroll-snap-type: none;
  }
  .publish__rail {
    width: auto;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .card,
  .sync__log ol,
  .redact.is-lifting,
  .svg-fade,
  .chrome__views a {
    transition: none;
  }
}

/* ---------------------------------------------------------------- footer links + challenge slot */
.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sc-2) var(--sc-4);
}
.foot__links a {
  color: var(--sc-ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot__links a:hover {
  color: var(--sc-ink);
}
.foot__links a:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 2px;
}
.turnstile:empty {
  display: none;
}

/* ---------------------------------------------------------------- 0 intro: the wall */
/* The app chrome waits until the demo starts; the intro reads as a website. */
.chrome {
  transition:
    transform var(--sc-d-base, 320ms) var(--sc-ease-out),
    visibility 0s linear 0s;
}
.is-intro .chrome {
  transform: translate3d(-100%, 0, 0);
  visibility: hidden;
  transition:
    transform var(--sc-d-base, 320ms) var(--sc-ease-out),
    visibility 0s linear var(--sc-d-base, 320ms);
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: calc(var(--sc-z-chrome) - 1);
  display: flex;
  align-items: center;
  gap: var(--sc-4);
  padding: var(--sc-4) clamp(1.25rem, 4vw, 3.5rem);
}
.topbar__mark {
  display: flex;
  align-items: center;
  gap: var(--sc-3);
  margin-right: auto;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: var(--sc-track-snug);
  text-decoration: none;
}
.topbar__link {
  font-size: var(--sc-t-sm);
  color: var(--sc-ink-soft);
  text-decoration: none;
  padding: 0.5rem 0.25rem;
}
.topbar__link:hover {
  color: var(--sc-ink);
}
.topbar__join,
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  box-sizing: border-box;
  padding: 0.6rem 1rem;
  border-radius: var(--sc-r-sm);
  font-weight: 600;
  font-size: var(--sc-t-sm);
  text-decoration: none;
}
.topbar__join,
.btn--primary {
  background: var(--sc-accent);
  color: var(--sc-accent-ink);
}
.btn--quiet {
  color: var(--sc-ink);
  border: 1px solid var(--line-strong);
}
.btn--quiet:hover {
  background: var(--sc-surface);
}

.hero {
  --q: var(--sc-p, 0);
  /* the prints hold for the first half of the push, then come loose */
  --fall: clamp(0, (var(--q) - 0.38) / 0.4, 1);
}
.hero__stage {
  height: 100svh;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(
      120% 90% at 72% 40%,
      color-mix(in oklab, var(--sc-surface) 70%, transparent),
      transparent 70%
    ),
    var(--sc-canvas);
}
.wall {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* far: the case's own grid, map and timeline, faint */
.wall--far {
  z-index: 0;
  transform-origin: 68% 45%;
  transform: scale(calc(1 + var(--q) * 0.07));
  background-image:
    linear-gradient(color-mix(in oklab, var(--sc-ink) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--sc-ink) 4%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
}
.wall--far svg {
  position: absolute;
  overflow: visible;
}
.far__map {
  right: 2%;
  top: 10%;
  width: 56%;
  height: 72%;
  opacity: 0.8;
}
.far__map circle {
  fill: none;
  stroke: color-mix(in oklab, var(--sc-ink) 14%, transparent);
  vector-effect: non-scaling-stroke;
}
.far__map .dot {
  fill: color-mix(in oklab, var(--sc-ink) 28%, transparent);
  stroke: none;
}
.far__time {
  left: 5%;
  right: 5%;
  bottom: 7%;
  width: 90%;
  height: 34px;
}
.far__time line {
  stroke: color-mix(in oklab, var(--sc-ink) 18%, transparent);
  vector-effect: non-scaling-stroke;
}
.far__time .tick {
  stroke: color-mix(in oklab, var(--sc-ink) 30%, transparent);
}
.far__time .tick--day {
  stroke: color-mix(in oklab, var(--sc-accent) 55%, transparent);
}

/* mid: pinned prints, tags and string */
.wall--mid {
  z-index: 1;
  transform-origin: 68% 45%;
  transform: scale(calc(1 + var(--q) * 0.24));
}
.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: calc(1 - var(--fall) * 2.6);
}
.strings path {
  fill: none;
  stroke: #c4473a;
  stroke-width: 1.6;
  stroke-linecap: round;
  filter: drop-shadow(0 2px 1.5px rgb(0 0 0 / 0.45));
}
.js-wall .strings path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: string-draw 900ms var(--sc-ease-out) forwards;
  animation-delay: calc(500ms + var(--i, 0) * 110ms);
}
@keyframes string-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.print,
.tag {
  position: absolute;
  box-sizing: border-box;
  transform: translate3d(calc(var(--fall) * var(--dx, 0vw)), calc(var(--fall) * var(--dy, 90vh)), 0)
    rotate(calc(var(--r, 0deg) + var(--fall) * var(--spin, 20deg)));
}
.print {
  width: clamp(9rem, 13vw, 13.5rem);
  padding: 7px 7px 9px;
  background: #e9e4d8;
  color: #2a2620;
  border-radius: 2px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.5) inset,
    0 18px 30px -12px rgb(0 0 0 / 0.75),
    0 4px 10px rgb(0 0 0 / 0.35);
}
.print img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 196;
  object-fit: cover;
  background: #2b3240;
}
.print figcaption {
  margin-top: 6px;
  font-family: var(--sc-font-mono);
  font-size: 0.64rem;
  line-height: 1.3;
}
.print figcaption b {
  font-weight: 600;
  margin-right: 0.4em;
}
.tag {
  padding: 6px 10px 7px;
  background: var(--sc-surface);
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--sc-e3);
}
.tag .mono {
  display: block;
  font-weight: 400;
  color: var(--sc-ink-soft);
  font-size: 0.62rem;
}
.print::before,
.tag::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f08a77, #b33a2c 60%, #6d1d15);
  box-shadow: 0 2px 3px rgb(0 0 0 / 0.5);
}

/* copy sits between the wall and the near plane */
.hero__copy {
  position: absolute;
  z-index: 2;
  left: clamp(1.25rem, 5vw, 5rem);
  top: 50%;
  width: min(36rem, 44vw);
  transform: translate3d(0, calc(-50% - var(--q) * 14vh), 0);
  opacity: calc(1 - var(--q) * 2);
}
.hero__copy::before {
  /* a soft dark pool so the prints never fight the headline */
  content: "";
  position: absolute;
  inset: -22% -30% -22% -40%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(13 16 22 / 0.88), transparent);
}
.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title span {
  display: block;
  margin-top: 0.12em;
  color: var(--sc-accent);
}
.hero__lead {
  margin: var(--sc-5) 0 0;
  max-width: 30rem;
  font-size: var(--sc-t-md, 1.125rem);
  line-height: 1.5;
  color: var(--sc-ink-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sc-3);
  margin: var(--sc-6) 0 0;
}

/* second beat: the wall has come down, the map underneath is all that's left */
.hero__beat {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 44%;
  width: min(40rem, 86vw);
  margin: 0 0 0 calc(min(40rem, 86vw) / -2);
  text-align: center;
  font-size: var(--sc-t-2xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__beat span {
  display: block;
  margin-top: var(--sc-3);
  font-size: var(--sc-t-lg);
  font-weight: 500;
  color: var(--sc-ink-soft);
}

/* near: one receipt, close to the lens, its redaction half lifted */
.wall--near {
  z-index: 3;
  transform-origin: 80% 85%;
  /* closest to the lens, so it leaves past the corner first */
  transform: translate3d(calc(var(--q) * 14vw), calc(var(--q) * 34vh), 0)
    scale(calc(1 + var(--q) * 0.6));
  opacity: calc(1 - var(--q) * 2.6);
}
.receipt {
  position: absolute;
  right: clamp(1.5rem, 6vw, 6rem);
  bottom: 13%;
  width: min(23rem, 30vw);
  padding: var(--sc-4) var(--sc-5);
  background: color-mix(in oklab, var(--sc-surface) 92%, transparent);
  border: 1px solid var(--line-strong);
  border-radius: var(--sc-r-md);
  box-shadow:
    0 30px 60px -20px rgb(0 0 0 / 0.8),
    var(--sc-e3);
  transform: rotate(-2deg);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.receipt__claim {
  margin: 0;
  font-size: var(--sc-t-sm);
  font-weight: 500;
  line-height: 1.4;
}
.receipt__src {
  position: relative;
  margin: var(--sc-3) 0 0;
  padding-top: var(--sc-3);
  border-top: 1px solid var(--line);
  color: var(--sc-ink-soft);
  overflow: hidden;
}
.receipt__bar {
  position: absolute;
  top: var(--sc-3);
  bottom: 0;
  right: 0;
  width: 46%;
  background: #05070a;
  border-radius: 2px;
}
.receipt__bar::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  bottom: 0;
  width: 7px;
  background: linear-gradient(90deg, transparent, rgb(0 0 0 / 0.5));
}

/* ---------------------------------------------------------------- what is casewall */
.what {
  position: relative;
  z-index: 2;
  background: var(--sc-canvas);
  border-top: 1px solid var(--line);
}
.what__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--sc-9) clamp(1.25rem, 5vw, 5rem);
}
.what__title {
  margin: 0;
  max-width: 50rem;
  font-size: var(--sc-t-2xl);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.what__lead {
  margin: var(--sc-5) 0 0;
  max-width: 40rem;
  font-size: var(--sc-t-md, 1.125rem);
  color: var(--sc-ink-soft);
}
.what__steps {
  list-style: none;
  margin: var(--sc-8) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sc-5);
}
.what__steps li {
  padding: var(--sc-5);
  background: var(--sc-surface);
  border: 1px solid var(--line);
  border-radius: var(--sc-r-md);
}
.what__steps .mono {
  color: var(--sc-accent);
}
.what__steps h3 {
  margin: var(--sc-3) 0 var(--sc-2);
  font-size: var(--sc-t-lg);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--sc-track-snug);
}
.what__steps p {
  margin: 0;
  color: var(--sc-ink-soft);
  font-size: var(--sc-t-sm);
}
.what__who {
  margin: var(--sc-7) 0 0;
  font-weight: 500;
}
.what__next {
  margin: var(--sc-3) 0 0;
  color: var(--sc-ink-soft);
}

@media (max-width: 860px) {
  .is-intro .chrome {
    transform: translate3d(0, -100%, 0);
  }
  .topbar {
    padding: 12px 14px;
    gap: var(--sc-3);
  }
  .topbar__link {
    display: none;
  }
  .topbar__join {
    min-height: 40px;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
  }
  .wall--far,
  .wall--mid {
    transform-origin: 50% 70%;
  }
  .far__map {
    right: 0;
    top: 52%;
    width: 70%;
    height: 34%;
  }
  .far__time {
    bottom: 4%;
  }
  .print {
    width: 8.4rem;
    padding: 5px 5px 7px;
  }
  .print figcaption {
    font-size: 0.56rem;
  }
  .tag {
    font-size: 0.7rem;
    padding: 5px 8px 6px;
  }
  .hero__copy {
    left: 1.25rem;
    right: 1.25rem;
    top: calc(4.5rem + 2svh);
    width: auto;
    transform: translate3d(0, calc(var(--q) * -10vh), 0);
  }
  .hero__copy::before {
    inset: -10% -10% -16%;
  }
  .hero__title {
    font-size: clamp(2.1rem, 9.4vw, 2.8rem);
  }
  .hero__lead {
    margin-top: var(--sc-4);
    font-size: 1rem;
  }
  .hero__actions {
    margin-top: var(--sc-5);
  }
  .receipt {
    display: none;
  }
  .what__inner {
    padding-block: var(--sc-8);
  }
  .what__title {
    font-size: var(--sc-t-xl);
  }
  .what__steps {
    grid-template-columns: 1fr;
    margin-top: var(--sc-6);
    gap: var(--sc-3);
  }
}

/* Motion off: the wall is a still picture and the act owns no extra scroll. */
@media (prefers-reduced-motion: reduce) {
  .hero {
    height: auto !important;
  }
  .hero__stage {
    position: relative !important;
  }
  .wall,
  .hero__copy {
    transform: none !important;
    opacity: 1 !important;
  }
  .print,
  .tag {
    transform: rotate(var(--r, 0deg)) !important;
  }
  .hero__beat {
    display: none;
  }
  .hero__copy {
    transform: translate3d(0, -50%, 0) !important;
  }
  .strings {
    opacity: 1 !important;
  }
  .js-wall .strings path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .chrome,
  .is-intro .chrome {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) and (max-width: 860px) {
  .hero__copy {
    transform: none !important;
  }
}
