/* KobiLipari.com — styles */

:root {
  --paper: #F3EEE6;
  --paper-2: #FBF8F3;
  --card: #FFFFFF;
  --line: #E4DDD1;
  --line-2: #D9D2C5;
  --ink: #15171C;
  --ink-2: #4A4D55;
  --ink-3: #6A6358;
  --accent: #C8553A;
  --accent-ink: #A8432B;
  --bp: #0E2438;
  --bp-line: #28435E;
  --bp-stroke: #7FB6F0;
  --bp-text: #E4F0FB;
  --bp-muted: #A9C4DE;
  /* Text that sits on an --ink fill (dark in light theme, light in dark). */
  --on-ink: #FFFFFF;
  --soft-fill: #EFE7DA;
  --soft-fill-2: #D9CFBF;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 5.5vw, 80px);
  --radius: 16px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--paper-2); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 8px; z-index: 10; }

/* Placeholders to fill in: easy to spot, remove the class when done */
.todo { background: rgba(200, 85, 58, 0.12); border-bottom: 1px dashed var(--accent); }

/* ---------- Nav ---------- */
.nav {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px var(--gutter);
}
.nav__name { font-size: 18px; font-weight: 600; text-decoration: none; }
.nav__links { display: flex; gap: clamp(14px, 2.5vw, 32px); align-items: center; font-size: 15px; }
.nav__links a { text-decoration: none; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 999px; text-decoration: none;
}
@media (max-width: 560px) {
  .nav__links .hide-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(24px, 3vw, 40px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 48px;
  flex-wrap: wrap;
}
.hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 7.4vw, 96px); line-height: 0.98; letter-spacing: -0.01em;
  max-width: 900px;
}
.hero__lede { margin: 0; color: var(--ink-2); max-width: 340px; }

/* ---------- Seam stage ---------- */
.stage-wrap { padding: 0 var(--gutter); }
.stage {
  --split: 50;
  position: relative;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  --cw: 1280;
  aspect-ratio: var(--cw) / 620;
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  container-type: inline-size;
}
/* The composition is drawn at 1280×620 and scaled to fit */
.stage__canvas {
  position: absolute; left: 0; top: 0;
  width: calc(var(--cw) * 1px); height: 620px;
  transform-origin: 0 0;
  transform: scale(var(--scale, 1));
}
.layer { position: absolute; inset: 0; }
.layer--final { background: var(--paper-2); }
.layer--blueprint {
  background-color: var(--bp);
  background-image:
    repeating-linear-gradient(0deg, rgba(127,182,240,0.12) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(127,182,240,0.12) 0 1px, transparent 1px 32px);
  color: #CFE3F7;
  font-family: var(--mono);
  clip-path: inset(0 calc(100% - var(--split) * 1%) 0 0);
}
.abs { position: absolute; }
.corner-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; top: 20px; }

/* Final layer pieces */
.f-card {
  left: 48px; top: 64px; width: 700px; height: 492px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 32px; display: flex; flex-direction: column; gap: 10px;
}
.f-card__eyebrow { font-size: 13px; color: var(--ink-3); }
.f-card__title { font-family: var(--serif); font-size: 38px; line-height: 1.05; }
.f-card__sub { font-size: 15px; color: var(--ink-2); }
.bars {
  flex-grow: 1; display: flex; align-items: flex-end; gap: 22px;
  padding-top: 20px; border-bottom: 1px solid var(--line-2);
}
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bar__fill { width: 100%; background: var(--soft-fill-2); border-radius: 6px 6px 0 0; }
.bar--hi .bar__fill { background: var(--accent); }
.bar__label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.phone {
  left: 800px; top: 40px; width: 260px; height: 540px;
  background: var(--ink); border-radius: 36px; padding: 10px;
}
.phone__screen {
  width: 100%; height: 100%; background: var(--card); border-radius: 28px;
  padding: 28px 18px; display: flex; flex-direction: column; gap: 14px;
}
.phone__title { font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.phone__img {
  height: 120px; border-radius: 14px; background: var(--soft-fill);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); }
.chip--on { background: var(--accent); border-color: var(--accent); color: #fff; }
.phone__cta {
  margin-top: auto; background: var(--ink); color: var(--on-ink); border-radius: 12px;
  padding: 14px; text-align: center; font-size: 15px;
}

.tiles { left: 1100px; top: 64px; width: 140px; display: flex; flex-direction: column; gap: 20px; }
.tile {
  height: 150px; border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.tile span:first-child { font-size: 12px; }
.tile span:last-child { font-family: var(--serif); font-size: 26px; }
.tile--accent { background: var(--accent); color: #fff; }
.tile--plain { background: var(--card); border: 1px solid var(--line); }
.tile--plain span:first-child { color: var(--ink-3); }
.tile--dark { background: var(--ink); color: var(--on-ink); }
.tile--dark span:first-child { opacity: 0.7; }

/* Blueprint layer pieces */
.bp-box { border: 1.5px dashed var(--bp-stroke); border-radius: 14px; }
.bp-card { left: 48px; top: 64px; width: 700px; height: 492px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.bp-dim { position: absolute; top: -22px; left: 0; font-size: 11px; color: var(--bp-stroke); }
.bp-code {
  margin: 0; font-family: var(--mono); font-size: 15px; line-height: 1.65;
  color: var(--bp-text); white-space: pre;
}
.bp-code .kw { color: var(--bp-stroke); }
.bp-bars {
  position: absolute; left: 32px; right: 32px; bottom: 58px; height: 300px;
  display: flex; align-items: flex-end; gap: 22px; border-bottom: 1.5px dashed var(--bp-stroke);
}
.bp-bar { flex: 1; border: 1.5px dashed var(--bp-stroke); border-bottom: 0; border-radius: 6px 6px 0 0; }
.bp-phone {
  left: 800px; top: 40px; width: 260px; height: 540px; border-radius: 36px;
  padding: 26px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 12px;
}
.bp-el { border: 1px solid var(--bp-stroke); border-radius: 6px; padding: 10px; }
.bp-tiles { left: 1100px; top: 64px; width: 140px; display: flex; flex-direction: column; gap: 20px; font-size: 11px; }
.bp-tiles .bp-box { height: 150px; padding: 12px; }

/* Seam line + handle */
.seam {
  position: absolute; top: 0; bottom: 0;
  left: calc(var(--split) * 1%);
  width: 2px; margin-left: -1px; background: #fff;
  pointer-events: none;
}
.seam__handle {
  position: absolute; top: 50%; left: calc(var(--split) * 1%);
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%; background: #fff; border: 1px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: ew-resize;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.seam__handle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.stage.is-animating .layer--blueprint { transition: clip-path 900ms cubic-bezier(.2,.7,.2,1); }
.stage.is-animating .seam,
.stage.is-animating .seam__handle { transition: left 900ms cubic-bezier(.2,.7,.2,1); }

.snaps { display: flex; justify-content: center; gap: 8px; margin: 16px 0 0; flex-wrap: wrap; }
.snaps button {
  font: inherit; font-size: 14px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  cursor: pointer; background: transparent; color: var(--ink); border: 1px solid var(--line-2);
}
.snaps button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ---------- Work columns ---------- */
.work {
  margin: clamp(48px, 6vw, 64px) var(--gutter) 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--ink);
}
@media (max-width: 820px) { .work { grid-template-columns: 1fr; } }
.col { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.col h2 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; }
.col--built { background: var(--bp); color: var(--bp-text); }
.col--built h2 { color: var(--bp-stroke); }
.col--designed { background: var(--paper-2); }
.col--designed h2 { color: var(--ink-3); }
.col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.item {
  text-decoration: none; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 20px; align-items: start;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.col--built .item { border-top-color: var(--bp-line); color: var(--bp-text); }
.col--built .item:hover { color: #fff; }
.col--built .item:hover .item__title { text-decoration: underline; text-underline-offset: 4px; }
.col--designed .item:hover .item__title { color: var(--accent-ink); }
.item__thumb {
  display: block; width: 112px; height: 70px; object-fit: cover; object-position: 50% 35%;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card);
  transition: transform 200ms ease;
}
.col--built .item__thumb { border-color: var(--bp-line); }
.item:hover .item__thumb { transform: translateY(-2px); }
.item__thumb--ph {
  background-color: var(--bp);
  background-image:
    repeating-linear-gradient(0deg, rgba(127,182,240,0.16) 0 1px, transparent 1px 10px),
    repeating-linear-gradient(90deg, rgba(127,182,240,0.16) 0 1px, transparent 1px 10px);
  outline: 1.5px dashed var(--bp-stroke); outline-offset: -6px;
}
.item__text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.item__title { font-size: 22px; font-weight: 500; line-height: 1.2; }
.col--designed .item__title { font-family: var(--serif); font-size: 28px; font-weight: 400; line-height: 1.1; }
.item__note { font-size: 15px; color: var(--ink-2); }
.col--built .item__note { color: var(--bp-muted); }
.item__tools { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.col--built .item__tools { color: var(--bp-stroke); }
@media (max-width: 560px) {
  .item { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .item__thumb { width: 76px; height: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .steps li { padding: 10px 12px 12px; gap: 6px; }
  .steps__label { font-size: 15px; }
  .item__title { font-size: 20px; }
  .col--designed .item__title { font-size: 24px; }
}

/* ---------- About strip ---------- */
.about {
  margin: clamp(48px, 6vw, 72px) var(--gutter) 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }
.about__side { display: flex; flex-direction: column; gap: 24px; }
.about__photo { width: min(100%, 280px); aspect-ratio: 657 / 751; height: auto; border-radius: 14px; object-fit: cover; }
@media (max-width: 820px) { .about__side { flex-direction: row; align-items: flex-end; justify-content: space-between; } .about__photo { width: 120px; } }
.about h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 56px); line-height: 1; }
.about p { margin: 0 0 16px; color: var(--ink-2); }
.about dl { margin: 20px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15px; }
.about dt { font-family: var(--mono); font-size: 12px; color: var(--ink-3); padding-top: 3px; }
.about dd { margin: 0; }

/* ---------- Footer ---------- */
.footer {
  margin-top: clamp(56px, 7vw, 96px);
  padding: 40px var(--gutter);
  border-top: 1px solid var(--ink);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.footer__cta { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); line-height: 0.95; margin: 0; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; }

/* ---------- Project page ---------- */
.proj { padding: 0 var(--gutter); max-width: 1120px; margin: 0 auto; }
.proj--narrow { max-width: 760px; padding-top: 48px; padding-bottom: 24px; }
.soon { color: var(--ink-3); }
.soon em { font-style: normal; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 7px; margin-left: 2px; vertical-align: 1px; }
.back { display: inline-flex; min-height: 44px; align-items: center; font-size: 15px; text-decoration: none; }
.proj__eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--ink-3); margin: 24px 0 12px; text-transform: uppercase; }
.proj h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 84px); line-height: 1; }
.proj__outcome { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; max-width: 820px; margin: 20px 0 0; }
.meta {
  display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 32px 0; padding: 20px 0;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 15px;
}
.meta dt { color: var(--ink-3); font-size: 13px; }
.meta dd { margin: 4px 0 0; font-weight: 500; }
.meta div { display: flex; flex-direction: column; }
.media {
  aspect-ratio: 16 / 8; border-radius: 12px; background: var(--soft-fill);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--ink-3); text-align: center; padding: 16px;
}
.pipeline {
  margin: 40px 0; background: var(--bp); color: var(--bp-text); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 32px);
  background-image:
    repeating-linear-gradient(0deg, rgba(127,182,240,0.10) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(127,182,240,0.10) 0 1px, transparent 1px 28px);
}
.pipeline h2 { margin: 0 0 16px; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.1em; color: var(--bp-stroke); }
.steps {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.steps li {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: 1.5px dashed var(--bp-stroke); border-radius: 10px; padding: 14px 16px 16px;
  background: rgba(14, 36, 56, 0.6);
}
.steps__n { font-family: var(--mono); font-size: 12px; color: var(--bp-stroke); }
.steps__label { font-size: 16px; line-height: 1.35; color: var(--bp-text); }
.sections { display: flex; flex-direction: column; }
.section {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px;
  padding: 28px 0; border-top: 1px solid var(--line-2);
}
@media (max-width: 700px) { .section { grid-template-columns: 1fr; gap: 8px; } }
.section h2 { margin: 0; font-family: var(--mono); font-weight: 400; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; padding-top: 4px; }
.section p { margin: 0; font-size: 18px; line-height: 1.6; max-width: 720px; }
.pager {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink); font-size: 15px;
}
.pager a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .stage.is-animating .layer--blueprint,
  .stage.is-animating .seam,
  .stage.is-animating .seam__handle { transition: none; }
}

/* ---------- Project showcase (browser + phone frames) ---------- */
.showcase { margin: 8px 0 0; }
.showcase__stage { position: relative; padding: 0 0 48px; }
.browser {
  margin: 0; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden;
  background: var(--card); box-shadow: 0 18px 40px -24px rgba(21, 23, 28, 0.45);
  width: calc(100% - 120px);
}
.browser__bar {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.browser__url {
  flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser__visit {
  font-size: 14px; text-decoration: none; white-space: nowrap;
  min-height: 36px; display: inline-flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--ink); border-radius: 999px;
}
.browser__visit:hover { background: var(--ink); color: var(--paper-2); }
.browser__view { background: #fff; position: relative; }
.browser__pane { position: absolute; inset: 0; }
.browser__pane[hidden] { display: none; }
.showcase__stage--solo { padding-bottom: 0; }
.showcase__stage--solo .browser { width: 100%; }
.showcase__caption { margin-top: 14px !important; }
.browser__view img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; }

.phone-frame {
  position: absolute; right: 0; bottom: 0; margin: 0;
  width: 22%; max-width: 230px; min-width: 150px;
  padding: 8px; border-radius: 34px; background: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(21, 23, 28, 0.55);
}
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 26px; }
.phone-frame .ph { aspect-ratio: 390 / 844; height: auto; border-radius: 26px; }

.ph {
  width: 100%; height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 24px; text-align: center; color: #CFE3F7;
  background-color: var(--bp);
  background-image:
    repeating-linear-gradient(0deg, rgba(127,182,240,0.12) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(127,182,240,0.12) 0 1px, transparent 1px 28px);
  outline: 1.5px dashed var(--bp-stroke); outline-offset: -14px;
}
.ph__tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--bp); background: var(--bp-stroke); border-radius: 999px; padding: 3px 10px;
}
.ph__label { font-family: var(--serif); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.05; color: var(--bp-text); }
.ph__hint { font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--bp-muted); max-width: 40ch; }
.phone-frame .ph { padding: 14px; outline-offset: -8px; }
.phone-frame .ph__label { font-size: 20px; }
.phone-frame .ph__hint { font-size: 11px; }
.about__photo.ph { width: min(100%, 280px); height: auto; border-radius: 14px; outline-offset: -10px; }
@media (max-width: 820px) { .about__photo.ph { width: 120px; padding: 10px; } }
.about__photo.ph .ph__label { font-size: 26px; }
@media (max-width: 820px) { .about__photo.ph .ph__label { font-size: 18px; } .about__photo.ph .ph__hint, .about__photo.ph .ph__tag { display: none; } }
.thumb__ph {
  display: block; width: 100%; height: 86px; border-radius: 8px; box-sizing: border-box;
  background-color: var(--bp);
  background-image:
    repeating-linear-gradient(0deg, rgba(127,182,240,0.16) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgba(127,182,240,0.16) 0 1px, transparent 1px 12px);
  border: 2px solid transparent; outline: 1px solid var(--line-2);
}
.thumb[aria-pressed="true"] .thumb__ph { border-color: var(--accent); outline-color: var(--accent); }

.showcase__caption { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.thumbs { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.thumb {
  font: inherit; cursor: pointer; background: transparent; border: 0; padding: 0; color: var(--ink);
  display: flex; flex-direction: column; gap: 6px; width: 150px; text-align: left;
}
.thumb img {
  display: block; width: 100%; height: 86px; object-fit: cover; object-position: top;
  border-radius: 8px; border: 2px solid transparent; outline: 1px solid var(--line-2);
}
.thumb span { font-size: 14px; }
.thumb[aria-pressed="true"] img { border-color: var(--accent); outline-color: var(--accent); }
.thumb[aria-pressed="true"] span { font-weight: 600; }

@media (max-width: 700px) {
  .showcase__stage { padding: 0; }
  .browser { width: 100%; }
  .phone-frame { position: relative; width: 38%; min-width: 0; padding: 5px; border-radius: 22px; margin: -72px 10px 14px auto; }
  .phone-frame img { border-radius: 17px; }
  .thumb { width: calc(50% - 6px); }
}

/* On phones, crop the hero composition to the chart and phone so they read larger. */
@media (max-width: 700px) { .stage { --cw: 1070; } }
@media (max-width: 560px) { .browser__dots { display: none; } .browser__bar { gap: 8px; padding: 8px 10px; } }


/* ================================================================
   Dark theme
   ================================================================ */
:root[data-theme="dark"] {
  --paper: #111418;
  --paper-2: #171B21;
  --card: #1C2128;
  --line: #2A3038;
  --line-2: #3A424D;
  --ink: #ECE7DF;
  --ink-2: #BDB6AC;
  --ink-3: #978F84;
  --accent: #E0704F;
  --accent-ink: #F2946F;
  --on-ink: #111418;
  --soft-fill: #262C34;
  --soft-fill-2: #3A424D;
  color-scheme: dark;
}
:root[data-theme="dark"] .todo { background: rgba(224, 112, 79, 0.16); }
:root[data-theme="dark"] .seam__handle svg { stroke: #15171C; }
:root { transition: none; }
body { transition: background-color 0.35s ease, color 0.35s ease; }
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

/* ================================================================
   Nav tools: palette, blueprint, theme
   ================================================================ */
.nav__tools { display: inline-flex; gap: 4px; align-items: center; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px;
  border: 1px solid transparent; background: transparent; color: var(--ink);
  font: inherit; font-size: 13px; cursor: pointer;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.icon-btn--wide { border-color: var(--line-2); padding: 0 12px 0 14px; }
/* The theme button swaps its icon instead of looking switched on. */
[data-theme-toggle][aria-pressed="true"] { background: transparent; color: var(--ink); }
kbd {
  font-family: var(--mono); font-size: 11px; line-height: 1; padding: 3px 5px;
  border: 1px solid var(--line-2); border-radius: 5px; color: var(--ink-3); background: var(--paper-2);
}
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (max-width: 560px) {
  .nav { padding-top: 16px; padding-bottom: 16px; }
  .nav__links { gap: 6px; }
  .nav__tools { gap: 0; }
  .icon-btn { min-width: 40px; padding: 0 8px; }
  .pill { padding: 0 14px; }
}

/* ================================================================
   Blueprint mode: the page as its own build drawing
   ================================================================ */
:root.bp-mode {
  --paper: #0E2438;
  --paper-2: #10293F;
  --card: #122C44;
  --line: #28435E;
  --line-2: #3A5B7C;
  --ink: #E4F0FB;
  --ink-2: #A9C4DE;
  --ink-3: #86A9CB;
  --on-ink: #0E2438;
  --soft-fill: #173552;
  --soft-fill-2: #2A4E72;
  color-scheme: dark;
}
:root.bp-mode body {
  background-image:
    repeating-linear-gradient(0deg, rgba(127, 182, 240, 0.08) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(127, 182, 240, 0.08) 0 1px, transparent 1px 24px);
}
:root.bp-mode img { filter: grayscale(1) brightness(0.9) contrast(0.9); opacity: 0.55; }
:root.bp-mode .col--built,
:root.bp-mode .pipeline { box-shadow: inset 0 0 0 1px var(--bp-stroke); }
:root.bp-mode ::selection { background: var(--accent); color: #fff; }

.bp-overlay { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 40; }
.bp-guide { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(127, 182, 240, 0.45); }
.bp-box-outline { position: absolute; border: 1px dashed rgba(127, 182, 240, 0.7); border-radius: 4px; }
.bp-label {
  position: absolute; white-space: nowrap; max-width: calc(100vw - 16px); overflow: hidden; text-overflow: ellipsis;
  font-family: var(--mono); font-size: 11px; line-height: 18px; padding: 0 6px; border-radius: 4px;
  background: var(--bp-stroke); color: #0E2438;
}
.bp-label--guide { background: transparent; color: var(--bp-stroke); padding: 0; }
.bp-dim-line {
  position: absolute; width: 0; border-left: 1px solid var(--accent);
}
.bp-dim-line::before, .bp-dim-line::after {
  content: ''; position: absolute; left: -5px; width: 9px; border-top: 1px solid var(--accent);
}
.bp-dim-line::before { top: 0; }
.bp-dim-line::after { bottom: 0; }
.bp-dim-line span {
  position: absolute; top: 50%; left: 6px; transform: translateY(-50%);
  font-family: var(--mono); font-size: 10px; color: var(--accent); background: var(--paper); padding: 0 3px;
}
.bp-inspect {
  position: absolute; border: 1.5px solid var(--accent); background: rgba(224, 112, 79, 0.08);
  border-radius: 3px; opacity: 0; transition: all 0.08s linear;
}
.bp-inspect-tip {
  position: absolute; opacity: 0; max-width: min(460px, calc(100vw - 16px));
  font-family: var(--mono); font-size: 11px; line-height: 1.5; padding: 6px 8px; border-radius: 6px;
  background: #07131F; color: #E4F0FB; border: 1px solid var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.bp-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px);
  padding: 8px 8px 8px 16px; border-radius: 999px; font-size: 14px;
  background: #07131F; color: #E4F0FB; border: 1px solid var(--bp-stroke);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.bp-toast button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px;
  border: 0; border-radius: 999px; background: var(--bp-stroke); color: #07131F; font: inherit; font-weight: 500; cursor: pointer;
}
.bp-toast kbd { background: transparent; border-color: rgba(7, 19, 31, 0.4); color: #07131F; }
.bp-toast > span { white-space: nowrap; }
@media (hover: none) {
  /* No hover on touch screens: the labels carry the drawing on their own. */
  .bp-toast__hint { display: none; }
  .bp-toast kbd { display: none; }
}
@media (max-width: 560px) {
  .bp-label--guide { display: none; }
}

/* ================================================================
   Command palette
   ================================================================ */
.cmdk {
  position: fixed; inset: 0; z-index: 70; display: flex; justify-content: center; align-items: flex-start;
  padding: min(14vh, 120px) 16px 16px; background: rgba(10, 14, 20, 0.45); backdrop-filter: blur(2px);
}
.cmdk__panel {
  width: min(620px, 100%); max-height: min(560px, 76vh); display: flex; flex-direction: column;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.45); overflow: hidden;
}
.cmdk__input {
  font: inherit; font-size: 17px; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent; color: var(--ink); outline: none;
}
.cmdk__input::placeholder { color: var(--ink-3); }
.cmdk__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.cmdk__group {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding: 10px 12px 4px;
}
.cmdk__item {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px;
}
.cmdk__item[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.cmdk__hint { font-family: var(--mono); font-size: 12px; opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk__empty { padding: 20px 12px; color: var(--ink-3); font-size: 15px; }
.cmdk__foot {
  display: flex; gap: 16px; margin: 0; padding: 10px 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3);
}
.cmdk__foot kbd { margin-right: 2px; }
@media (hover: none) { .cmdk__foot { display: none; } }


/* ================================================================
   Scanner demo (project page)
   ================================================================ */
.demo {
  margin: 32px 0 40px; padding: clamp(18px, 3vw, 32px); border-radius: var(--radius);
  background: var(--paper-2); border: 1px solid var(--line-2);
}
.demo__noscript { margin: 0; color: var(--ink-3); }
.demo__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.demo__eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent-ink); margin: 0 0 6px; }
.demo__title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.05; margin: 0; }
.demo__lede { margin: 10px 0 0; max-width: 620px; color: var(--ink-2); font-size: 16px; }
.demo__go {
  font: inherit; font-weight: 500; min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: #fff; border: 0;
}
.demo__go:hover { background: var(--accent-ink); }
.demo__go:disabled { opacity: 0.6; cursor: progress; }
.demo__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(20px, 3vw, 36px); align-items: start; }
@media (max-width: 820px) { .demo__grid { grid-template-columns: 1fr; } }

/* The sheet: a USCF-style grid in handwriting */
.sheet {
  margin: 0; background: #FFFDF8; color: #1B2A4A; border: 1px solid #D8D0C0; border-radius: 10px;
  padding: 14px 14px 10px; box-shadow: 0 10px 30px -18px rgba(21, 23, 28, 0.5);
}
.sheet__head { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #5B6275; padding-bottom: 8px; border-bottom: 2px solid #1B2A4A; }
.sheet__head b { font-family: 'Caveat', 'Segoe Print', cursive; font-size: 19px; font-weight: 600; color: #1D3F8F; margin-left: 4px; }
.sheet__table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet__table thead th { font-size: 11px; font-weight: 600; color: #5B6275; text-align: left; padding: 6px 8px 4px; }
.sheet__table thead th:first-child, .sheet__table tbody th { width: 34px; }
.sheet__table tbody th { font-size: 11px; font-weight: 500; color: #8A8FA0; text-align: right; padding-right: 8px; border-right: 1px solid #D8D0C0; }
.sheet__table td { border-bottom: 1px solid #E6DFD1; padding: 1px 8px; height: 30px; vertical-align: middle; white-space: nowrap; }
.sheet__table td + td { border-left: 1px solid #E6DFD1; }
.sheet__ink { font-family: 'Caveat', 'Segoe Print', cursive; font-size: 21px; line-height: 1; color: #1D3F8F; }
.sheet__ink--unsure { text-decoration: underline wavy rgba(200, 85, 58, 0.55); text-underline-offset: 4px; font-style: normal; }
.sheet__fix { font-family: var(--mono); font-size: 11px; margin-left: 8px; padding: 1px 5px; border-radius: 4px; }
.sheet td.is-corrected .sheet__fix { background: #E3EEF9; color: #1D4F86; }
.sheet td.is-look .sheet__fix { background: #FCE3B0; color: #7A4B00; }
.sheet td.is-fixed .sheet__fix { background: #D6F0DC; color: #1E6B37; }
.sheet figcaption { font-size: 12px; color: #5B6275; margin-top: 8px; }
.sheet figcaption b { font-family: 'Caveat', cursive; font-size: 18px; color: #1D3F8F; }
.sheet__legend i { font-style: normal; }

/* Board, controls, moves */
.board { display: block; width: 100%; max-width: 440px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; margin: 0 auto; }
.sq--light { fill: #F0E6D6; }
.sq--dark { fill: #B98F6B; }
.sq--last.sq--light { fill: #F2C9A8; }
.sq--last.sq--dark { fill: #D9926B; }
.pc {
  font-family: 'DejaVu Sans', 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'Apple Symbols', sans-serif;
  font-size: 8.4px; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke-linejoin: round;
}
.pc--w { fill: #FFFDF8; stroke: #15171C; stroke-width: 0.55px; }
.pc--b { fill: #15171C; stroke: #FFFDF8; stroke-width: 0.25px; }
.coord { font-family: var(--mono); font-size: 2.3px; fill: #B98F6B; }
.coord--on-dark { fill: #F0E6D6; }
.demo__nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0; }
.demo__nav button {
  min-width: 44px; min-height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card);
  color: var(--ink); font-size: 14px; cursor: pointer;
}
.demo__pos { min-width: 110px; text-align: center; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.moves { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.mv {
  font-family: var(--mono); font-size: 13px; padding: 5px 8px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
}
.mv:hover { border-color: var(--accent); }
.mv.is-current { outline: 2px solid var(--ink); outline-offset: 1px; }
.mv--corrected { border-style: dashed; border-color: #5B8FCB; }
.mv--look { background: #FCE3B0; border-color: #E8B658; color: #5A3700; }
.mv--fixed { background: #D6F0DC; border-color: #7CC08F; color: #154D27; }
.demo__status { margin: 14px 0 0; font-size: 15px; color: var(--ink-2); min-height: 1.5em; }
.demo__status.is-look { color: var(--ink); }
.demo__status.is-good { color: var(--ink); }
.demo__status.is-good b { color: #1E8A45; }
:root[data-theme="dark"] .demo__status.is-good b { color: #7CD69A; }
.demo__time { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.picker {
  margin-top: 14px; padding: 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card);
}
.picker__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.picker__head p { margin: 0; font-size: 14px; }
.picker__close { min-width: 36px; min-height: 36px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 16px; }
.picker__sub { margin: 10px 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.picker__row { display: flex; flex-wrap: wrap; gap: 6px; }
.picker__row button {
  font-family: var(--mono); font-size: 13px; min-height: 36px; padding: 0 10px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink);
}
.picker__row button:hover { border-color: var(--accent); }
.picker__row button.is-current { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.picker__row--all { max-height: 150px; overflow-y: auto; }


/* ================================================================
   SQL playground (project page) and its chart
   ================================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sqlpad__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.sqlpad__presets button {
  font: inherit; font-size: 14px; min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
}
.sqlpad__presets button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.sqlpad__note { margin: 12px 0 16px; color: var(--ink-2); font-size: 15px; }
.sqlpad__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .sqlpad__grid { grid-template-columns: 1fr; } }
.sqlpad__editor textarea {
  width: 100%; min-height: 250px; resize: vertical; padding: 14px 16px; border-radius: 10px;
  font-family: var(--mono); font-size: 13px; line-height: 1.6; tab-size: 2;
  background: var(--bp); color: var(--bp-text); border: 1px solid var(--bp-line); caret-color: var(--bp-stroke);
}
.sqlpad__editor textarea:focus-visible { outline: 2px solid var(--bp-stroke); outline-offset: 2px; }
.sqlpad__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.sqlpad__bar .demo__go { min-height: 42px; padding: 0 18px; }
.sqlpad__hint { font-size: 12px; color: var(--ink-3); }
.sqlpad__meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.sqlpad__meta.is-error { color: #B3261E; font-family: var(--mono); }
:root[data-theme="dark"] .sqlpad__meta.is-error { color: #F2A29B; }
@media (hover: none) { .sqlpad__hint { display: none; } }
.sqlpad__schema { margin-top: 12px; font-size: 14px; }
.sqlpad__schema summary { cursor: pointer; color: var(--ink-2); }
.sqlpad__schema pre {
  margin: 8px 0 0; padding: 12px; border-radius: 8px; overflow-x: auto;
  font-family: var(--mono); font-size: 12px; line-height: 1.5; background: var(--card); border: 1px solid var(--line);
}
.sqlpad__table { max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.sqlpad__table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sqlpad__table th {
  position: sticky; top: 0; background: var(--paper-2); text-align: left; font-family: var(--mono); font-weight: 500;
  font-size: 12px; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap;
}
.sqlpad__table td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sqlpad__table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sqlpad__table .null { color: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.sqlpad__more { margin: 0; padding: 8px 10px; font-size: 12px; color: var(--ink-3); }

.viz-host {
  --s1: #C8553A; --s2: #2E6FB8; --s3: #2E8B57;
  position: relative; margin-bottom: 14px; padding: 12px 12px 6px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
}
:root[data-theme="dark"] .viz-host, :root.bp-mode .viz-host { --s1: #E0704F; --s2: #4F86D8; --s3: #3FA36B; }
.viz { display: block; width: 100%; height: auto; overflow: visible; }
.viz__title { margin: 0 0 4px 4px; font-size: 13px; font-weight: 500; color: var(--ink); }
.viz__grid { stroke: var(--line); stroke-width: 1; }
.viz__tick, .viz__cat, .viz__val, .viz__direct { font-family: var(--sans); fill: var(--ink-3); font-size: 12px; }
.viz__cat { fill: var(--ink-2); font-size: 12px; }
.viz__val { fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.viz__direct { fill: var(--ink); font-size: 12px; }
.viz__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz__line.s1, .viz__bar.s1, .viz__dot.s1 { stroke: var(--s1); }
.viz__line.s2, .viz__dot.s2 { stroke: var(--s2); }
.viz__line.s3, .viz__dot.s3 { stroke: var(--s3); }
.viz__dot { stroke-width: 2; fill: var(--card); }
.viz__bar { stroke: none !important; }
.viz__bar.s1 { fill: var(--s1); }
.viz__bar.s2 { fill: var(--s2); }
.viz__bar.s3 { fill: var(--s3); }
.viz__cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.viz__legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin: 0 0 6px 4px; }
.viz__legend:empty { display: none; }
.viz__legend span, .viz__tip span { display: inline-flex; align-items: center; gap: 6px; }
.viz__key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.viz__key--line { height: 3px; width: 14px; border-radius: 2px; }
.viz__key.s1 { background: var(--s1); }
.viz__key.s2 { background: var(--s2); }
.viz__key.s3 { background: var(--s3); }
.viz__tip[hidden] { display: none; }
.viz__tip {
  position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; gap: 3px;
  padding: 8px 10px; border-radius: 8px; font-size: 12px; white-space: nowrap;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-2); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3);
}


/* ================================================================
   Dashboards before ⇄ after (project page)
   ================================================================ */
.dash { position: relative; }
.dash-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 14px; }
.dash-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-tabs button {
  font: inherit; font-size: 14px; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
}
.dash-tabs button[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.dash-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.dash-field[hidden] { display: none; }
.dash-field select {
  font: inherit; font-size: 14px; min-height: 40px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
}
.dash-stage {
  --split: 50; position: relative; aspect-ratio: 1400 / 900; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid var(--line-2); box-shadow: 0 14px 40px -24px rgba(21, 23, 28, 0.55);
  user-select: none; -webkit-user-select: none;
}
.dash-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dash-svg--after { clip-path: inset(0 0 0 calc(var(--split) * 1%)); }
.dash-svg text { pointer-events: none; }
.dash-svg .hit-line { pointer-events: stroke; }
.dash-svg [data-tip] { cursor: default; }
.dash-seam {
  position: absolute; top: 0; bottom: 0; left: calc(var(--split) * 1%); width: 3px; margin-left: -1.5px;
  background: var(--accent); cursor: ew-resize; touch-action: none;
}
.dash-seam::before { content: ""; position: absolute; inset: 0 -14px; }
.dash-handle {
  position: absolute; top: 50%; left: calc(var(--split) * 1%); transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: ew-resize; touch-action: none;
  background: #fff; border: 2px solid var(--accent); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45);
}
.dash-handle:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dash-stage.is-animating .dash-svg--after { transition: clip-path 0.6s cubic-bezier(.2, .7, .2, 1); }
.dash-stage.is-animating .dash-seam, .dash-stage.is-animating .dash-handle { transition: left 0.6s cubic-bezier(.2, .7, .2, 1); }
.dash-tag {
  position: absolute; bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 6px; background: rgba(21, 23, 28, 0.78); color: #fff; pointer-events: none;
}
.dash-tag { transition: opacity 0.2s; }
.dash-tag--before { left: 10px; opacity: var(--before-tag, 1); }
.dash-tag--after { right: 10px; background: rgba(166, 25, 46, 0.9); opacity: var(--after-tag, 1); }
.dash-tip {
  position: absolute; z-index: 5; pointer-events: none; display: flex; flex-direction: column; gap: 2px; max-width: 280px;
  padding: 8px 10px; border-radius: 8px; font-size: 13px; background: #fff; color: #15171C;
  border: 1px solid #D9D2C5; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35);
}
.dash-tip[hidden] { display: none; }
.dash-tip__head { font-weight: 600; }
.dash-snaps { margin-top: 14px; }
.dash-note { margin: 12px 0 0; min-height: 3em; color: var(--ink-2); font-size: 15px; }
.dash-credit { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.dash-cursor {
  position: absolute; top: 0; left: 0; z-index: 8; pointer-events: none; margin: -3px 0 0 -4px;
  transition: transform 0.6s cubic-bezier(.3, .7, .2, 1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
.dash-cursor[hidden] { display: none; }
.dash-cursor svg { transition: transform 0.15s; }
.dash-cursor.is-click svg { transform: scale(0.82); }
.dash.is-touring .dash-stage { outline: 2px dashed rgba(200, 85, 58, 0.5); outline-offset: 4px; }
@media (max-width: 600px) { .dash-tag { font-size: 10px; padding: 3px 6px; } }
