/* Hallmark · Presence · component rules. The stamp, critique and tokens are in tokens.css. */

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

html {
  overflow-x: clip;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--ink-4) var(--bg);
  scroll-padding-top: var(--bar-h);
}

body {
  margin: 0;
  overflow-x: clip;
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-text);
  line-height: 1.55;
  font-synthesis: none;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--ink);
  transition: background-color var(--t-3) var(--ease), color var(--t-3) var(--ease);
}

::selection { background: var(--select); color: var(--ink); }

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b { font-weight: var(--weight-strong); }
.nb { white-space: nowrap; }
svg { display: block; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled { cursor: not-allowed; color: var(--ink-4); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

code, .mono {
  font-family: var(--font-outlier);
  font-size: 0.9em;
  font-variant-ligatures: none;
}
code {
  padding: 0.08em 0.36em;
  border-radius: 0.4em;
  background: var(--well-2);
  color: var(--ink);
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sprite { position: absolute; }

.skip {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 60;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--r-1);
  background: var(--ink);
  color: var(--on-ink);
  font-size: var(--text-small);
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
main, .foot { position: relative; z-index: 1; }

/* State glyphs: an open ring for exposed, a closed ring with a core for sealed. */
.st { flex: none; width: 12px; height: 12px; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.st-exposed { stroke: var(--exposed); }
.st-sealed { stroke: var(--sealed); }
.st-sealed .st-core { fill: var(--sealed); stroke: none; }
.st-tick { stroke: var(--sealed); }

.ic { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

.tk { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px var(--tk-rim); }

/* ── Bar ──────────────────────────────────────────────────────────────── */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  /* The same column as the content below it. */
  padding: 0 max(var(--pad-x), calc((100% - var(--wide)) / 2));
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-2) var(--ease), background-color var(--t-3) var(--ease);
}
.bar.is-stuck { border-bottom-color: var(--line); }
.bar-brand { display: inline-flex; align-items: center; height: 44px; color: var(--ink); border-radius: var(--r-1); }
.bar-brand .lockup { height: 30px; width: auto; }
.bar-tools { display: flex; align-items: center; gap: var(--space-3); }

/* Segmented control with one sliding thumb. */
.seg {
  --n: 2;
  --i: 0;
  position: relative;
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  padding: var(--space-1);
  border-radius: var(--r-pill);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg-opt {
  position: relative;
  z-index: 1;
  height: 28px;
  padding: 0 var(--space-4);
  border-radius: inherit;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  transition: color var(--t-2) var(--ease);
}
.seg-opt:hover { color: var(--ink-2); }
.seg-opt[aria-checked="true"] { color: var(--ink); }
.seg-opt:active { transform: scale(0.97); }
.seg-thumb {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / var(--n));
  border-radius: inherit;
  background: var(--glass-2);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--rim-hi), 0 1px 3px var(--shade-1);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform var(--t-3) var(--ease);
}

.sun {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: color var(--t-2) var(--ease), background-color var(--t-2) var(--ease);
}
.sun:hover { color: var(--ink); background: var(--well-2); }
.sun:active { transform: scale(0.94); }
.sun svg { width: 16px; height: 16px; transition: transform var(--t-4) var(--ease); }
.sun[aria-pressed="true"] svg { transform: rotate(180deg); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-5);
  border-radius: var(--r-pill);
  font-size: var(--text-ui);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color var(--t-2) var(--ease), color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--ink); color: var(--on-ink); box-shadow: inset 0 1px 0 var(--rim-solid); }
.btn-solid:hover { background: var(--ink-hover); }
.btn-rim { background: var(--well); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--rim-lo); }
.btn-rim:hover { background: var(--well-2); }
.bar-cta { height: 36px; padding: 0 var(--space-4); font-size: var(--text-small); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.72fr);
  align-items: center;
  column-gap: var(--space-10);
  /* One screen, but never taller than the composition needs: the first idea stays one rhythm away. */
  min-height: min(100svh, 61rem);
  max-width: calc(var(--wide) + 2 * var(--pad-x));
  margin: 0 auto;
  padding: calc(var(--bar-h) + var(--space-8)) var(--pad-x) var(--space-10);
}
.hero-copy { min-width: 0; }
.hero-h {
  max-width: 10.5em;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-display);
  letter-spacing: var(--track-display);
  line-height: 1;
  text-wrap: balance;
}
.lead {
  max-width: var(--measure);
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-copy .lead { margin-top: var(--space-7); }

.try { max-width: 33rem; margin-top: var(--space-9); }
.try-note { margin-bottom: var(--space-3); font-size: var(--text-small); color: var(--ink-3); }
.moments { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.moment {
  --p: 0;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  column-gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--ink-2);
  transition: color var(--t-2) var(--ease);
}
.moment:hover, .moment[aria-pressed="true"] { color: var(--ink); }
.moment:active .moment-t { transform: translateX(2px); }
.moment-t { font-size: var(--text-body); font-weight: 450; letter-spacing: -0.012em; white-space: nowrap; transition: transform var(--t-2) var(--ease); }
.t-short { display: none; }
.moment-ws { font-family: var(--font-outlier); font-size: var(--text-note); color: var(--ink-3); }
.js .moment-ws { visibility: hidden; }
.moment-go {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--ink-3);
  transform: translateX(-4px);
  transition: transform var(--t-2) var(--ease), color var(--t-2) var(--ease);
}
.moment:hover .moment-go, .moment[aria-pressed="true"] .moment-go { color: var(--ink); transform: none; }
.moment-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(var(--p));
  transform-origin: left center;
  transition: transform var(--t-3) var(--ease);
}
.ws-copy { max-width: 30rem; margin-top: var(--space-5); font-size: var(--text-ui); color: var(--ink-3); }
/* Both workspace notes share one cell, so the taller one sets the height and the phone below never shifts. */
.ws-copies { display: grid; }
.ws-copies > .ws-copy { grid-area: 1 / 1; }
html[data-ws="personal"] .ws-copies > [data-ws-only="business"], html[data-ws="business"] .ws-copies > [data-ws-only="personal"] { display: block; visibility: hidden; }

/* ── Stage and phone ──────────────────────────────────────────────────── */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); justify-self: center; }
.ph-wrap { --k: 1; position: relative; width: calc(316px * var(--k)); height: calc(652px * var(--k)); }
.ph {
  position: relative;
  width: 316px;
  height: 652px;
  padding: var(--space-1);
  border-radius: 56px;
  background: linear-gradient(142deg, var(--ti-hi) 0%, var(--ti-mid) 20%, var(--ti-lo) 48%, var(--ti-mid) 78%, var(--ti-hi) 100%);
  box-shadow: 0 0 0 1px var(--ti-edge), inset 0 0 0 1px var(--ti-rim), var(--phone-shadow);
  transform: scale(var(--k));
  transform-origin: 0 0;
  animation: ph-in var(--t-4) var(--ease) both;
}
.js .ph { animation-delay: 380ms; }
/* Opacity only: the phone has its final box from the first frame. */
@keyframes ph-in {
  from { opacity: 0.001; }
  to { opacity: 1; }
}
.ph-keys { position: absolute; width: 3px; background: var(--ti-mid); box-shadow: inset 0 0 0 1px var(--rim-lo); }
.ph-keys-l { left: -3px; top: 112px; height: 24px; border-radius: 2px 0 0 2px; }
.ph-keys-l::before, .ph-keys-l::after { content: ""; position: absolute; left: 0; width: 3px; height: 46px; border-radius: 2px 0 0 2px; background: var(--ti-mid); box-shadow: inset 0 0 0 1px var(--rim-lo); }
.ph-keys-l::before { top: 46px; }
.ph-keys-l::after { top: 104px; }
.ph-keys-r { right: -3px; top: 178px; height: 76px; border-radius: 0 2px 2px 0; }

.ph-screen {
  position: relative;
  height: 100%;
  border: 6px solid var(--bezel);
  border-radius: 52px;
  background: var(--screen);
  /* clip, with hidden for browsers without it: the screen is a window, never a scroller. */
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: background-color var(--t-3) var(--ease);
}
.ph-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  border-radius: 46px;
  background: linear-gradient(118deg, var(--glare) 0%, transparent 26%);
  box-shadow: inset 0 0 0 1px var(--rim-lo);
  pointer-events: none;
}
.ph-status {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding: var(--space-2) var(--space-6) 0 var(--space-7);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ph-island { position: relative; width: 88px; height: 26px; border-radius: 13px; background: var(--island); box-shadow: inset 0 0 0 1px var(--island-rim); }
.ph-island::after { content: ""; position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--lens); box-shadow: inset 0 0 0 1px var(--island-rim); }
.ph-sys { justify-self: end; display: flex; align-items: center; gap: var(--space-1); }
.ph-homebar { position: absolute; left: 50%; bottom: 7px; z-index: 8; width: 108px; height: 4px; border-radius: 2px; background: var(--ink); opacity: 0.85; transform: translateX(-50%); }

.ph-views { position: absolute; inset: 48px 0 0 0; transition: opacity var(--t-2) var(--ease); }
.view { position: absolute; inset: 0; display: flex; flex-direction: column; padding: var(--space-1) var(--space-4) var(--space-7); }
.view:not(.is-on) { display: none; }
/* Views and steps change by opacity alone, the old one first, so every control keeps one box. */
.js .view { transition: opacity var(--t-2) var(--ease) 100ms, visibility 0s linear 0s; }
.js .view:not(.is-on) { display: flex; opacity: 0; visibility: hidden; transition: opacity var(--t-1) var(--ease), visibility 0s linear var(--t-1); pointer-events: none; }

/* Home */
.v-head { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.ws-pick {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 30px;
  padding: 0 var(--space-3) 0 var(--space-2);
  border-radius: var(--r-pill);
  background: var(--well-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  font-weight: 560;
  transition: background-color var(--t-2) var(--ease);
}
.ws-pick:hover { background: var(--well); }
.ws-pick:active { transform: scale(0.97); }
.ws-mark { width: 14px; height: 14px; }
.ws-pick .ic { color: var(--ink-3); }
.v-head-note { font-size: 0.75rem; color: var(--ink-3); }

.bal-wrap { margin-top: var(--space-4); }
.bal-k { font-size: 0.78125rem; color: var(--ink-3); }
.bal { font-size: 2.5rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.cents { color: var(--ink-3); font-size: 0.62em; letter-spacing: -0.02em; }
/* Tabular figures: the balance, which counts, and every money column in the phone. */
.bal, .vault-a, .feed-a, .num, .plate-a .cents { font-family: var(--font-figures); }
.vault-a .cents, .feed-a .cents { font-size: 0.82em; letter-spacing: 0; }
.seal-line { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-1); font-size: 0.78125rem; color: var(--ink-2); }

.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); margin-top: var(--space-4); }
.act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  border-radius: var(--r-2);
  background: var(--well-2);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 var(--rim-lo);
  font-size: 0.8125rem;
  font-weight: 560;
  transition: background-color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.act:hover { background: var(--well); }
.act:active { transform: scale(0.96); }

.waiting {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  row-gap: 1px;
  margin-top: var(--space-3);
  padding: var(--space-2) var(--space-3) var(--space-2) var(--space-3);
  border-radius: var(--r-2);
  background: var(--well-2);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--rim-lo);
  text-align: left;
  transition: background-color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.waiting[hidden] { display: none; }
.waiting:hover { background: var(--well); }
.waiting:active { transform: scale(0.985); }
.waiting-t { grid-column: 1; overflow: hidden; font-size: 0.8125rem; font-weight: 560; white-space: nowrap; text-overflow: ellipsis; }
.waiting-s { grid-column: 1; overflow: hidden; font-size: 0.75rem; color: var(--ink-3); white-space: nowrap; text-overflow: ellipsis; }
.waiting-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--ink-3); }

.vaults { margin-top: var(--space-3); border-top: 1px solid var(--line); }
.vault {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: var(--space-1);
  min-height: 48px;
  border-bottom: 1px solid var(--line);
}
.vault:last-child { border-bottom: 0; }
.vault-tk { display: flex; align-items: center; }
.vault-tk .tk { position: relative; z-index: 1; width: 18px; height: 18px; box-shadow: 0 0 0 1px var(--tk-rim), 0 0 0 2px var(--screen); }
.vault-tk .tk:first-child { z-index: 3; }
.vault-tk .tk:nth-child(2) { z-index: 2; }
.vault-tk .tk + .tk { margin-left: calc(var(--space-2) * -1); }
.guard { width: 22px; height: 22px; fill: none; stroke: var(--line-2); stroke-width: 1; stroke-linecap: round; }
.guard-on { stroke: var(--ink); stroke-width: 1.6; }
.guard-off { stroke: var(--ink-4); stroke-width: 1.6; }
.vault-n { min-width: 0; overflow: hidden; font-size: 0.84375rem; font-weight: 560; letter-spacing: -0.008em; white-space: nowrap; text-overflow: ellipsis; }
.vault-s { display: block; overflow: hidden; font-size: 0.75rem; font-weight: 400; color: var(--ink-3); letter-spacing: 0; text-overflow: ellipsis; }
.vault-a { font-size: 0.8125rem; font-weight: 500; }
.vault-a-quiet { color: var(--ink-3); font-family: var(--font-body); font-weight: 400; }
.js .vaults.is-swap .vault { animation: row-in var(--t-3) var(--ease) both; animation-delay: calc(var(--d, 0) * 50ms); }
@keyframes row-in {
  from { opacity: 0.001; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Activity: the newest row is what the last flow did. */
.feed-k { margin-top: var(--space-4); font-size: 0.75rem; color: var(--ink-3); }
.feed { margin-top: var(--space-2); border-top: 1px solid var(--line); }
.feed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--space-3); min-height: 44px; border-bottom: 1px solid var(--line); }
.feed-row:last-child { border-bottom: 0; }
.feed-n { min-width: 0; overflow: hidden; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.feed-s { display: block; overflow: hidden; font-size: 0.75rem; font-weight: 400; color: var(--ink-3); text-overflow: ellipsis; }
.feed-a { font-size: 0.8125rem; font-weight: 500; }
.js .feed.is-swap .feed-row { animation: row-in var(--t-3) var(--ease) both; animation-delay: calc(var(--d, 0) * 50ms + 120ms); }

/* Sub-screens */
.v-nav { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; }
.v-back { position: absolute; left: -6px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); transition: background-color var(--t-2) var(--ease); }
.v-back:hover { background: var(--well-2); color: var(--ink); }
.v-back:active { transform: scale(0.92); }
.v-title { font-size: 0.875rem; font-weight: 600; }
.steps { position: relative; flex: 1; min-height: 0; }
.step { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-2); }
.step:not(.is-on) { display: none; }
.js .step { transition: opacity var(--t-2) var(--ease) 100ms, visibility 0s linear 0s; }
.js .step:not(.is-on) { display: flex; opacity: 0; visibility: hidden; transition: opacity var(--t-1) var(--ease), visibility 0s linear var(--t-1); pointer-events: none; }
.step > .cta { margin-top: auto; }

.v-lead { font-size: 0.875rem; color: var(--ink-2); }
.v-fine { font-size: 0.75rem; color: var(--ink-3); }
.v-fine-foot { margin-top: auto; text-align: center; }
.step > .v-fine-foot + .cta { margin-top: 0; }
.in-wrap { display: block; }
.addr-in, .rule-in {
  display: block;
  width: 100%;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--r-2);
  background: var(--well-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  resize: none;
}
.addr-in { font-family: var(--font-outlier); font-size: 0.75rem; line-height: 1.5; overflow-wrap: anywhere; }
.rule-in { font-family: var(--font-body); font-size: 0.9375rem; line-height: 1.42; }
.addr-in:focus-visible, .rule-in:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink-2); }

.seg-pick { display: grid; --n: 4; }
.seg-pick .seg-opt { height: 30px; padding: 0 var(--space-1); font-size: 0.75rem; }
.seg-sent { --n: 3; margin-top: var(--space-2); }
.seg-sent[hidden] { display: none; }

.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 46px;
  border-radius: var(--r-3);
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: inset 0 1px 0 var(--rim-solid);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform var(--t-1) var(--ease), background-color var(--t-2) var(--ease);
}
.cta:hover { background: var(--ink-hover); }
.cta:active { transform: scale(0.975); }
.cta-quiet { background: var(--well-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.cta-quiet:hover { background: var(--well); }
.cta:disabled { background: var(--well-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.cta:disabled:active { transform: none; }

.pane { padding: var(--space-3); border-radius: var(--r-3); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.pane-exposed { background: var(--exposed-soft); box-shadow: inset 0 0 0 1px var(--exposed-line); }
.pane-sealed { background: var(--sealed-soft); box-shadow: inset 0 0 0 1px var(--sealed-line); }
.pane-exposed.is-quiet { background: var(--well); box-shadow: inset 0 0 0 1px var(--line-2); }
.pane-exposed.is-quiet .bytes, .pane-exposed.is-quiet .bytes.is-flow b { color: var(--ink-2); }
.pane-exposed.is-quiet .st-exposed { stroke: var(--ink-3); }
.pane-k { display: flex; align-items: center; gap: var(--space-2); font-size: 0.75rem; color: var(--ink-2); }
.pane-t { margin-top: 2px; font-size: 0.875rem; font-weight: 600; letter-spacing: -0.008em; }
.pane-s { margin-top: var(--space-2); font-size: 0.75rem; color: var(--ink-2); }
.addr-echo { font-family: var(--font-outlier); font-size: 0.6875rem; line-height: 1.4; color: var(--ink-3); overflow-wrap: anywhere; }

.bytes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  row-gap: 1px;
  margin-top: var(--space-2);
  font-family: var(--font-outlier);
  font-size: 0.6875rem;
  line-height: 1.45;
  font-variant-ligatures: none;
}
.bytes:empty { display: none; }
.pane-exposed .bytes, .is-exposed .bytes { color: var(--exposed); }
.pane-sealed .bytes, .is-sealed .bytes { color: var(--sealed); }
.bytes.is-flow { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); font-size: 0.625rem; color: var(--ink-3); }
.bytes.is-flow b { padding: 2px var(--space-1); white-space: nowrap; border-radius: 6px; background: var(--well-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 400; color: var(--exposed); }
.bytes.is-flow svg { width: 12px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.js .bytes.is-fresh span { animation: byte-in var(--t-2) var(--ease) both; animation-delay: calc(var(--d, 0) * 9ms); }
@keyframes byte-in {
  from { opacity: 0.001; }
  to { opacity: 1; }
}

.amt-wrap { padding: var(--space-2) 0 var(--space-1); text-align: center; }
.amt-k { font-size: 0.78125rem; color: var(--ink-3); }
.amt { font-size: 2.375rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1.1; }
.amt-s { font-size: 0.78125rem; color: var(--ink-3); }

.route { display: grid; gap: 2px; padding: var(--space-3); border-radius: var(--r-3); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); }
.route-end { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; }
.route-tk { position: relative; width: 28px; height: 28px; }
.route-tk .tk { width: 28px; height: 28px; }
.route-tk .tk-sub { position: absolute; right: -5px; bottom: -3px; width: 14px; height: 14px; box-shadow: 0 0 0 1.5px var(--screen-2); }
.route-n { font-size: 0.875rem; font-weight: 560; }
.route-s { display: block; font-size: 0.75rem; font-weight: 400; color: var(--ink-3); }
.route-line { width: 24px; height: 22px; margin-left: 2px; fill: none; stroke: var(--ink-3); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }

.kv > div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { flex: none; color: var(--ink-3); }
.kv dd { min-width: 0; text-align: right; font-weight: 500; }
.kv-sub { display: block; font-size: 0.6875rem; font-weight: 400; color: var(--ink-3); overflow-wrap: anywhere; }
.kv-tall > div { padding: var(--space-2) 0; }
.uve { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-1); font-size: 0.6875rem; font-weight: 500; color: var(--sealed); }

.quorum { display: grid; gap: 2px; }
.quorum li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; height: 34px; font-size: 0.8125rem; }
.av { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--well-2); box-shadow: inset 0 0 0 1px var(--line-2); font-family: var(--font-outlier); font-size: 0.5625rem; color: var(--ink-2); }
.q-n { font-weight: 500; }
.q-s { font-size: 0.75rem; color: var(--ink-3); }
.quorum .is-yes .av { box-shadow: inset 0 0 0 1px var(--sealed-line); color: var(--sealed); }
.quorum .is-yes .q-s { color: var(--sealed); }
.quorum .is-you .av { box-shadow: inset 0 0 0 1px var(--ink-2); color: var(--ink); }

.pane-read { background: var(--well-2); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--rim-lo); }
.readback { margin-top: var(--space-2); font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.readback b { color: var(--ink); }
.proofline { display: flex; align-items: flex-start; gap: var(--space-2); font-size: 0.8125rem; font-weight: 500; }
.proofline .st { margin-top: 0.2em; }

.kv-rule dd { font-weight: 500; }
.pick {
  padding: 2px var(--space-2);
  border-radius: 7px;
  background: var(--well-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-weight: 560;
  transition: background-color var(--t-2) var(--ease), transform var(--t-1) var(--ease);
}
.pick:hover { background: var(--well); }
.pick:active { transform: scale(0.95); }
.pick:disabled { background: none; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); cursor: not-allowed; }
.compiled { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--r-1); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.65625rem; color: var(--ink-3); overflow-wrap: anywhere; }
.compiled span:last-child { margin-left: auto; color: var(--ink); }
.lint { font-size: 0.75rem; color: var(--exposed); }
.lint[hidden] { display: none; }

.step-done { align-items: center; text-align: center; padding-top: var(--space-6); }
.step-done .kv { align-self: stretch; margin-top: var(--space-3); text-align: left; }
.step-done .cta { align-self: stretch; }
/* Done: the lattice inside a closed ring, the same sign as sealed. */
.done { width: 56px; height: 56px; overflow: visible; }
.done-ring { fill: none; stroke: var(--sealed); stroke-width: 1.5; stroke-dasharray: 167; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 28px 28px; }
.done-core circle { fill: var(--sealed); transform-box: fill-box; transform-origin: center; }
.js .step-done.is-on .done-ring { animation: ring-in var(--t-4) var(--ease) both; }
.js .step-done.is-on .done-core circle { animation: core-in var(--t-3) var(--ease) both; animation-delay: 260ms; }
.js .step-done.is-on .done-core circle:first-child { animation-delay: 140ms; }
@keyframes ring-in {
  from { stroke-dashoffset: 167; }
  to { stroke-dashoffset: 0; }
}
@keyframes core-in {
  from { opacity: 0.001; transform: scale(0.4); }
  to { opacity: 1; transform: scale(1); }
}
.done-t { margin-top: var(--space-2); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; }
.done-s { font-size: 0.8125rem; color: var(--ink-2); max-width: 16rem; text-wrap: balance; }
.quorum-done { align-self: stretch; margin-top: var(--space-2); text-align: left; }

/* Face ID: an optical reticle, not a face. */
.face {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  background: var(--screen-veil);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.face:not(.is-on) { display: none; }
.js .face { transition: opacity var(--t-2) var(--ease), visibility 0s linear 0s; }
.js .face:not(.is-on) { display: grid; opacity: 0; visibility: hidden; transition-delay: 0s, var(--t-2); pointer-events: none; }
.reticle { width: 124px; height: 124px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rt-corner { stroke: var(--ink-2); }
.rt-ticks { stroke: var(--ink-3); stroke-width: 5; stroke-dasharray: 0.9 4.6; stroke-linecap: butt; transform-origin: 60px 60px; }
.rt-ring { stroke: var(--line-2); stroke-width: 1; }
.rt-sweep { stroke: var(--ink); stroke-width: 1.75; stroke-dasharray: 40 180; transform-origin: 60px 60px; }
.rt-cross { stroke: var(--ink-3); stroke-width: 1; }
.rt-core circle { fill: var(--ink); stroke: none; }
.rt-tick { stroke: var(--sealed); stroke-width: 2.25; stroke-dasharray: 40; stroke-dashoffset: 40; }
.face.is-on .rt-ticks { animation: spin 5s linear infinite; }
.face.is-on .rt-sweep { animation: spin 0.9s linear infinite; }
.face.is-on .rt-core { animation: core 0.9s var(--ease) infinite alternate; }
.face.is-read .rt-sweep { animation: none; opacity: 0; }
.face.is-read .rt-core { animation: none; opacity: 0; transition: opacity var(--t-2) var(--ease); }
.face.is-read .rt-ticks { stroke: var(--sealed); }
.face.is-read .rt-ring { stroke: var(--sealed-line); }
.face.is-read .rt-tick { animation: draw-tick var(--t-3) var(--ease) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
@keyframes draw-tick { to { stroke-dashoffset: 0; } }
.face-t { font-size: 0.9375rem; font-weight: 600; }
.face-s { min-height: 2.9em; font-size: 0.6875rem; line-height: 1.45; color: var(--ink-2); text-align: center; }

/* Receive sheet: an overlay inside the screen. Closed, it is display: none (the hidden attribute);
   opening and closing move it by transform and opacity only. */
.sheet {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 7;
  display: grid;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-8);
  border-radius: 28px 28px 0 0;
  background: var(--sheet-bg);
  box-shadow: 0 -1px 0 var(--line-2), 0 -24px 48px var(--shade-2);
  opacity: 0;
  transform: translateY(100%);
  transition: transform var(--t-3) var(--ease), opacity var(--t-2) var(--ease);
}
.sheet.is-on { opacity: 1; transform: translateY(0); }
.sheet-grab { position: relative; justify-self: center; width: 64px; height: 20px; border-radius: var(--r-1); }
.sheet-grab::before { content: ""; position: absolute; left: 14px; top: 8px; width: 36px; height: 4px; border-radius: 2px; background: var(--ink-4); transition: background-color var(--t-2) var(--ease); }
.sheet-grab:hover::before { background: var(--ink-3); }
.sheet-t { font-size: 0.8125rem; color: var(--ink-3); }
.sheet-h { font-size: 1.125rem; color: var(--ink); overflow-wrap: anywhere; }
.sheet-h.is-long { font-size: 0.8125rem; }
.sheet-s { font-size: 0.8125rem; color: var(--ink-2); }
.ph-screen.has-sheet .ph-views { opacity: 0.32; }

/* X-Ray: the screen goes quiet and the annotated parts keep their ink. */
html { --keep-ink: var(--ink); --keep-ink-2: var(--ink-2); --keep-ink-3: var(--ink-3); --keep-exposed: var(--exposed); --keep-sealed: var(--sealed); }
.ph-screen.is-xray .view { --ink: var(--x-quiet); --ink-2: var(--x-quiet); --ink-3: var(--x-quiet-2); --exposed: var(--x-quiet); --sealed: var(--x-quiet); color: var(--x-quiet); }
.ph-screen.is-xray .view [data-x] { --ink: var(--keep-ink); --ink-2: var(--keep-ink-2); --ink-3: var(--keep-ink-3); --exposed: var(--keep-exposed); --sealed: var(--keep-sealed); }
.ph-screen.is-xray .view :is(div, ul, dl, label, .waiting)[data-x] { color: var(--keep-ink); }
.ph-screen.is-xray .tk { filter: grayscale(1); opacity: 0.5; }
.ph-screen.is-xray [data-x] .tk { filter: none; opacity: 1; }
.ph-screen.is-xray .cta:not([data-x]) { background: var(--well-2); color: var(--x-quiet); box-shadow: inset 0 0 0 1px var(--line); }
.ph-screen.is-xray [data-x] { outline: 1px dashed var(--line-2); outline-offset: 4px; border-radius: var(--r-1); }
.xmark {
  position: absolute;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--ink-2);
  font-family: var(--font-outlier);
  font-size: 0.625rem;
  color: var(--ink);
  pointer-events: none;
}
.xray { position: absolute; inset: 0; pointer-events: none; }
.xray:empty { display: none; }
.xray-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; stroke: var(--ink-3); stroke-width: 1; }
.xray-lines circle { fill: var(--bg); stroke: var(--ink-2); }
.xnote {
  position: absolute;
  width: 184px;
  font-family: var(--font-outlier);
  font-size: var(--text-note);
  line-height: 1.5;
  color: var(--ink-2);
  animation: note-in var(--t-3) var(--ease) both;
  animation-delay: calc(var(--d, 0) * 60ms);
}
.xnote b { display: none; font-weight: 400; color: var(--ink); }
.xnote.is-l { text-align: right; }
@keyframes note-in {
  from { opacity: 0.001; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
/* As a list the notes come after the X-Ray control, so the control stays under the pointer that pressed it. */
.xray.is-list { position: static; order: 1; display: grid; gap: var(--space-3); width: min(100%, 316px); pointer-events: auto; }
.xray.is-list .xnote { position: static; display: grid; grid-template-columns: 24px minmax(0, 1fr); width: auto; text-align: left; }
.xray.is-list .xnote b { display: block; }
/* Switched off, the list leaves no gap behind it. */
.xray.is-list:empty { display: none; }

.xray-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 36px;
  padding: 0 var(--space-4) 0 var(--space-2);
  border-radius: var(--r-pill);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink-2);
  transition: color var(--t-2) var(--ease), background-color var(--t-2) var(--ease), box-shadow var(--t-2) var(--ease);
}
.xray-btn:hover { color: var(--ink); background: var(--well-2); }
.xray-btn:active { transform: scale(0.97); }
.xray-btn[aria-pressed="true"] { color: var(--ink); background: var(--well-2); box-shadow: inset 0 0 0 1px var(--ink-3); }
.kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 var(--space-2);
  border-radius: 6px;
  background: var(--well-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-outlier);
  font-size: 0.6875rem;
  color: var(--ink-2);
}
.kbd svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.kbd-pc, .is-pc .kbd-mac { display: none; }
.is-pc .kbd-pc { display: inline; margin-right: 0.35em; }

/* ── One idea per section ─────────────────────────────────────────────── */
.idea { padding: var(--section-y) var(--pad-x); }
/* The hero ends a little above its own edge, so the first idea takes the difference: one rhythm down the page. */
.hero + .idea { padding-top: calc(var(--section-y) * 1.55); }
.idea-in {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--space-6);
  max-width: var(--wide);
  margin: 0 auto;
}
.idea-h {
  grid-column: 1 / span 7;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-display);
  letter-spacing: var(--track-head);
  line-height: 1.04;
  text-wrap: balance;
}
.idea .lead { grid-column: 9 / span 4; align-self: end; }
.fig { grid-column: 1 / -1; margin-top: var(--space-11); }
.idea .rows { grid-column: 6 / -1; margin-top: var(--space-11); }

.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) 0;
  text-align: left;
  font-size: var(--text-h3);
  letter-spacing: -0.016em;
  color: var(--ink);
  transition: color var(--t-2) var(--ease);
}
.row-q:hover .row-x { color: var(--ink); }
.row-q:active span { transform: translateX(2px); }
.row-q span { white-space: nowrap; transition: transform var(--t-2) var(--ease); }
.row-x { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; color: var(--ink-3); transition: transform var(--t-3) var(--ease), color var(--t-2) var(--ease); }
.row-q[aria-expanded="true"] .row-x { transform: rotate(45deg); color: var(--ink); }
.js .row-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-3) var(--ease); }
.js .row-q[aria-expanded="true"] + .row-a { grid-template-rows: 1fr; }
.js .row-a.is-found { transition: none; }
.row-a-in { min-height: 0; overflow: hidden; }
.row-a-in p { max-width: 38rem; padding-bottom: var(--space-6); color: var(--ink-2); text-wrap: pretty; }

.fig-cap { margin-top: var(--space-5); font-size: var(--text-ui); color: var(--ink-2); max-width: 40rem; }
.fig-cap-s { color: var(--ink-3); }

/* Figure 1: two rows of 32 bytes */
.fig-keys { display: grid; gap: var(--space-9); }
.keyline-k { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-ui); color: var(--ink); }
.keyline-a { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-3); }
.bytes-wide {
  grid-template-columns: repeat(32, minmax(0, 1fr));
  margin-top: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: clamp(0.6875rem, 1.02vw, 0.9375rem);
  text-align: center;
}
.keyline-s { max-width: 36rem; margin-top: var(--space-4); font-size: var(--text-ui); color: var(--ink-3); }

/* Figure 2: hash path */
.fig-top, .fig-root { font-size: var(--text-small); color: var(--ink-3); }
.fig-root { margin-top: var(--space-3); text-align: center; color: var(--ink-2); }
.hashpath { width: 100%; height: auto; margin-top: var(--space-3); overflow: visible; }
.hp-edge { fill: none; stroke: var(--ink-4); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke var(--t-2) var(--ease); }
.hp-edge.is-on { stroke: var(--ink); }
.hp-node { fill: var(--bg); stroke: var(--ink-4); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke var(--t-2) var(--ease), fill var(--t-2) var(--ease); }
.hp-node.is-on { fill: var(--ink); stroke: var(--ink); }
.hp-node.is-sib { stroke: var(--sealed); fill: var(--sealed); }
.hp-leaf { cursor: pointer; outline: none; }
.hp-hit { fill: transparent; }
.hp-box { fill: var(--ink-4); transition: fill var(--t-2) var(--ease), transform var(--t-2) var(--ease); transform-box: fill-box; transform-origin: center; }
.hp-leaf:hover .hp-box { fill: var(--ink-2); }
.hp-leaf.is-sib .hp-box { fill: var(--sealed); }
.hp-leaf[aria-pressed="true"] .hp-box { fill: var(--ink); transform: scale(1.35); }
.hp-leaf:focus-visible .hp-box { stroke: var(--focus); stroke-width: 2; }
.hp-root { fill: var(--ink); }

/* Figure 3: a Safe that keeps its address */
.fig-safe { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr; gap: var(--space-9) var(--space-6); align-items: start; }
.seg-phase { --n: 3; justify-self: start; }
.safe-addr { grid-column: 1; }
.safe-addr-v { display: block; font-size: clamp(0.8125rem, 1.15vw, 1rem); color: var(--ink); overflow-wrap: anywhere; }
.safe-addr-n { display: block; margin-top: var(--space-2); font-size: var(--text-small); color: var(--ink-3); }
.kv-wide { grid-column: 2; grid-row: 1 / span 2; border-top: 1px solid var(--line); }
.kv-wide > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); padding: var(--space-4) 0; font-size: var(--text-ui); }
.kv-wide > div:last-child { border-bottom: 1px solid var(--line); }
.kv-wide dd { text-align: left; font-weight: 450; transition: color var(--t-3) var(--ease); }
/* Centred in its row: a leading glyph would otherwise move the row's baseline and its height with it. */
.safe-state { display: flex; align-items: center; align-self: center; gap: var(--space-2); }
.safe-state.is-exposed { color: var(--exposed); }
.safe-state.is-sealed { color: var(--sealed); }
.safe-state.is-exposed .st { stroke: var(--exposed); }
.js .kv-wide dd.is-new { animation: note-in var(--t-3) var(--ease) both; }

/* Figure 4: one vault at two sizes. Each vault is its own plate of obsidian glass with a specular rim.
   A household's plates are narrower than a treasury's; the count and the height never change. */
.fig-scale { display: grid; gap: var(--space-8); justify-items: start; }
.fig-scale .fig-cap { margin-top: calc(var(--space-3) * -1); }
.plates { display: grid; gap: var(--space-3); width: min(100%, max(62%, 34rem)); }
html[data-ws="business"] .plates { width: 100%; }
.plate {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "tk n a";
  align-items: center;
  column-gap: var(--space-5);
  min-height: 104px;
  padding: var(--space-5) var(--space-7);
  border: 1px solid transparent;
  border-radius: var(--r-3);
  background: var(--plate-fill) padding-box, var(--plate-rim-hot) border-box, var(--plate-rim) border-box;
  box-shadow: var(--plate-shadow);
  isolation: isolate;
}
.plate::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--plate-sheen); pointer-events: none; }
.plate-tk { grid-area: tk; display: flex; align-items: center; min-width: 68px; }
.plate-tk .tk { position: relative; z-index: 1; width: 28px; height: 28px; box-shadow: 0 0 0 1px var(--tk-rim), 0 0 0 3px var(--plate-ring); }
.plate-tk .tk:first-child { z-index: 3; }
.plate-tk .tk:nth-child(2) { z-index: 2; }
.plate-tk .tk + .tk { margin-left: calc(var(--space-2) * -1); }
.plate-n { grid-area: n; min-width: 0; font-size: var(--text-body); font-weight: var(--weight-strong); letter-spacing: -0.012em; }
.plate-s { display: block; font-size: var(--text-small); font-weight: 400; letter-spacing: 0; color: var(--ink-3); }
.plate-a { grid-area: a; font-size: clamp(1.5rem, 2.3vw, 2.125rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.js .plates.is-swap .plate { animation: row-in var(--t-3) var(--ease) both; animation-delay: calc(var(--d, 0) * 60ms); }
.js .fig-cap.is-swap { animation: note-in var(--t-3) var(--ease) both; animation-delay: 180ms; }

/* Figure 5: with and without Unlattice */
.fig-escape { display: grid; gap: var(--space-8); justify-items: start; }
.switch { display: inline-flex; align-items: center; gap: var(--space-3); font-size: var(--text-ui); color: var(--ink); white-space: nowrap; }
.switch-track { position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color var(--t-3) var(--ease); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); box-shadow: 0 1px 2px var(--shade-1); transform: translateX(18px); transition: transform var(--t-3) var(--ease); }
.switch[aria-checked="false"] .switch-track { background: var(--well-2); }
.switch[aria-checked="false"] .switch-thumb { background: var(--ink-2); transform: translateX(0); }
.switch:active .switch-thumb { transform: translateX(14px); }
.switch[aria-checked="false"]:active .switch-thumb { transform: translateX(4px); }

.emap { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto; align-items: center; width: 100%; }
.emap-node {
  display: grid;
  gap: 2px;
  min-width: 9.5rem;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--r-3);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--rim-lo);
  font-size: var(--text-ui);
  transition: opacity var(--t-3) var(--ease), box-shadow var(--t-3) var(--ease);
}
.emap-node b { font-weight: 500; }
.emap-node span { font-size: var(--text-small); color: var(--ink-3); }
.emap-link { height: 1px; background: var(--ink-3); transition: opacity var(--t-3) var(--ease); }
.emap-direct {
  grid-column: 1 / -1;
  height: 36px;
  margin: 0 var(--space-11);
  border: 1px solid var(--ink-4);
  border-top: 0;
  border-radius: 0 0 var(--r-3) var(--r-3);
  transition: border-color var(--t-3) var(--ease);
}
.emap-cap { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: var(--space-2); margin-top: var(--space-3); font-size: var(--text-small); color: var(--ink-3); transition: color var(--t-3) var(--ease); }
.emap-cap .st { opacity: 0; transition: opacity var(--t-3) var(--ease); }
.fig-escape[data-vendor="off"] .emap-vendor { opacity: 0.34; box-shadow: inset 0 0 0 1px var(--line); }
.fig-escape[data-vendor="off"] .emap-vendor b { text-decoration: line-through; text-decoration-thickness: 1px; }
.fig-escape[data-vendor="off"] .emap-link { opacity: 0.2; }
.fig-escape[data-vendor="off"] .emap-direct { border-color: var(--sealed); }
.fig-escape[data-vendor="off"] .emap-cap { color: var(--ink); }
.fig-escape[data-vendor="off"] .emap-cap .st { opacity: 1; }
.fig-escape[data-vendor="off"] .emap-you, .fig-escape[data-vendor="off"] .emap-chain { box-shadow: inset 0 0 0 1px var(--sealed-line), inset 0 1px 0 var(--rim-lo); }

/* ── Close ────────────────────────────────────────────────────────────── */
.close { padding: var(--section-y) var(--pad-x) var(--space-13); }
.close-in { display: grid; justify-items: center; max-width: 44rem; margin: 0 auto; text-align: center; }
.gather { width: clamp(168px, 17vw, 216px); aspect-ratio: 1; margin-bottom: var(--space-10); color: var(--ink); }
.gather-mark { width: 100%; height: 100%; }
.has-field .gather-mark { visibility: hidden; }
.close-h {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: var(--weight-display);
  letter-spacing: var(--track-head);
  line-height: 1.04;
}
.close .lead { margin-top: var(--space-6); }
.reserve { width: min(100%, 30rem); margin-top: var(--space-9); }
.handle {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 var(--space-2) 0 var(--space-5);
  border-radius: var(--r-pill);
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 var(--rim-lo);
}
.handle:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.handle-at { color: var(--ink-3); font-size: var(--text-body); }
.handle-in {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 var(--space-2) 0 2px;
  border: 0;
  background: none;
  font: inherit;
  color: var(--ink);
}
.handle-in:focus-visible { outline: none; }
.handle-in::placeholder { color: var(--ink-4); }
.reserve-note { min-height: 3.2em; margin-top: var(--space-3); font-size: var(--text-small); color: var(--ink-3); }
.reserve-note.is-told { color: var(--ink-2); }
.close .btn-rim { margin-top: var(--space-4); }

/* ── Foot ─────────────────────────────────────────────────────────────── */
.foot { padding: var(--space-10) var(--pad-x) var(--space-9); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-9) var(--space-10); max-width: var(--wide); margin: 0 auto; }
.foot-status { max-width: 36rem; font-size: var(--text-ui); color: var(--ink-2); }
.foot-map { display: grid; gap: var(--space-2); font-size: var(--text-small); color: var(--ink-3); }
.foot-map li { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-3); }
.foot-map .mono { color: var(--ink-2); }
.foot-end { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); font-size: var(--text-small); color: var(--ink-3); }
.foot-end a { text-decoration: none; border-radius: 4px; transition: color var(--t-2) var(--ease); }
.foot-end a:hover { color: var(--ink); }
.foot-end a:active { color: var(--ink-2); }

/* Workspace-specific content */
html[data-ws="personal"] [data-ws-only="business"], html[data-ws="business"] [data-ws-only="personal"] { display: none; }
html[data-ws="business"] .moment[data-ws-of="business"] { order: -1; }
html[data-ws="personal"] .moment[data-ws-of="business"] .moment-ws, html[data-ws="business"] .moment[data-ws-of="personal"] .moment-ws { visibility: visible; }

/* ── Smaller screens ──────────────────────────────────────────────────── */
/* The hero keeps two columns down to 1000px. A narrow column or a short window gets a smaller phone. */
@media (min-width: 1000px) and (max-width: 1100px) {
  .ph-wrap { --k: 0.9; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .ph-wrap { --k: 0.9; }
}
@media (min-width: 1000px) and (max-height: 730px) {
  .ph-wrap { --k: 0.8; }
}
/* Below the X-Ray rail's width the notes list under the phone. The columns hang from the top there,
   so opening the list lengthens the hero without moving the phone or the words beside it. */
@media (min-width: 1000px) and (max-width: 1279px) {
  .hero { align-items: start; }
  .hero-copy { padding-top: var(--space-7); }
}

@media (max-width: 1100px) {
  .idea-h { grid-column: 1 / -1; }
  .idea .lead { grid-column: 1 / span 9; margin-top: var(--space-6); }
  .idea .rows { grid-column: 3 / -1; }
}

@media (max-width: 999px) {
  .hero { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-9); padding-top: calc(var(--bar-h) + var(--space-9)); }
  .stage { justify-self: center; }
}

@media (max-width: 720px) {
  .bar-cta { display: none; }
  .bar-tools { gap: var(--space-2); }
  .seg-ws .seg-opt { padding: 0 var(--space-3); }
  .hero { padding-top: calc(var(--bar-h) + var(--space-7)); padding-bottom: var(--space-9); row-gap: var(--space-7); }
  .hero-copy .lead { margin-top: var(--space-5); }
  .try { margin-top: var(--space-7); }
  .moments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
  .moment { grid-template-columns: minmax(0, 1fr) auto; padding: var(--space-3) 0; }
  .moment-ws { display: none; }
  .t-long { display: none; }
  .t-short { display: inline; }
  .moment-t { font-size: var(--text-ui); }
  .ws-copy { margin-top: var(--space-4); }
  .idea .lead { grid-column: 1 / -1; }
  .idea .rows { grid-column: 1 / -1; margin-top: var(--space-9); }
  .fig { margin-top: var(--space-9); }
  .bytes-wide { grid-template-columns: repeat(16, minmax(0, 1fr)); row-gap: var(--space-1); }
  .keyline-a { display: none; }
  .fig-safe { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .kv-wide { grid-column: 1; grid-row: auto; }
  .kv-wide > div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .plate { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n tk" "a a"; row-gap: var(--space-4); padding: var(--space-5); }
  .plate-tk { align-self: start; justify-content: flex-end; }
  .emap { grid-template-columns: minmax(0, 1fr); justify-items: stretch; row-gap: 0; }
  .emap-node { min-width: 0; }
  .emap-link { justify-self: center; width: 1px; height: 20px; }
  .emap-direct { display: none; }
  .emap-cap { justify-content: flex-start; margin-top: var(--space-4); }
  .handle { height: auto; flex-wrap: wrap; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5); border-radius: var(--r-4); }
  .handle-in { height: 44px; }
  .handle .btn { width: 100%; }
  .handle-at { margin-left: 0; }
  .reserve-note { min-height: 4.75em; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 350px) {
  .ph-wrap { --k: 0.9; }
}

@media (hover: none) {
  .kbd { display: none; }
  .xray-btn { padding: 0 var(--space-4); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    animation-delay: 0s;
    transition-duration: 0.01ms;
    transition-delay: 0s;
    scroll-behavior: auto;
  }
}

[hidden] { display: none; }
