/* TattooFlow — landing.
   Strict monochrome (ink on paper), flat 2D: hairline rules, no shadows, no
   gradients, no colour. Light + dark are the same design, inverted. Filled and
   inverted blocks always use paired tokens (--solid/--on-solid, --inv-bg/--inv-text)
   so text can never match its background. Numbers and the bot address are
   server-rendered; the page works with JavaScript off. */

:root {
  --bg: #ffffff;          /* page surface */
  --panel: #f5f5f3;       /* subtle fill */
  --text: #0c0c0c;        /* primary text */
  --text-dim: #2f2f2b;    /* secondary text */
  --muted: #6f6f68;       /* tertiary text */
  --hair: #e4e4df;        /* hairline rule */
  --rule: #0c0c0c;        /* strong rule / outline */

  --solid: #0c0c0c;       /* filled element background */
  --on-solid: #ffffff;    /* text on filled element */

  --inv-bg: #0c0c0c;      /* inverted section background */
  --inv-text: #ffffff;    /* text on inverted section */
  --inv-muted: #b4b4ae;   /* tertiary text on inverted */
  --inv-hair: rgba(255,255,255,.20);

  --radius: 3px;
  --maxw: 1140px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #0b0b0b;
  --panel: #141414;
  --text: #f6f6f4;
  --text-dim: #d8d8d3;
  --muted: #9a9a93;
  --hair: #262624;
  --rule: #f6f6f4;
  --solid: #f6f6f4;
  --on-solid: #0b0b0b;
  --inv-bg: #f6f6f4;
  --inv-text: #0b0b0b;
  --inv-muted: #55554f;
  --inv-hair: rgba(11,11,11,.18);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0b0b0b; --panel: #141414; --text: #f6f6f4; --text-dim: #d8d8d3;
    --muted: #9a9a93; --hair: #262624; --rule: #f6f6f4;
    --solid: #f6f6f4; --on-solid: #0b0b0b;
    --inv-bg: #f6f6f4; --inv-text: #0b0b0b; --inv-muted: #55554f;
    --inv-hair: rgba(11,11,11,.18);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

h1, h2, h3 { line-height: 1.06; margin: 0 0 .42em; font-weight: 700; letter-spacing: -.03em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.5rem); }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono); font-size: .84em;
  background: var(--panel); border: 1px solid var(--hair);
  border-radius: var(--radius); padding: .1em .4em; white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--rule); outline-offset: 3px; }
.muted { color: var(--muted); }
.fine { font-size: .82rem; color: var(--muted); line-height: 1.5; }

.kicker {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 18px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 clamp(16px, 4.5vw, 44px); height: 62px;
  background: var(--bg); border-bottom: 1px solid var(--hair);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--rule); border-radius: var(--radius); color: var(--text); flex: none;
}
.brand-name { font-size: 1.02rem; }

.head-nav { display: none; gap: 26px; margin-left: auto; margin-right: 8px; }
.head-nav a { font-size: .86rem; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; transition: color .16s ease, border-color .16s ease; }
.head-nav a:hover { color: var(--text); border-color: var(--rule); }
@media (min-width: 860px) { .head-nav { display: flex; } }

.head-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  background: transparent; color: var(--text);
  border: 1px solid var(--hair); border-radius: var(--radius); cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.theme-btn:hover { border-color: var(--rule); }
.theme-btn svg { display: block; }

.head-cta {
  font-size: .84rem; font-weight: 600; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 8px 14px; color: var(--text); transition: background .16s ease, color .16s ease;
}
.head-cta:hover { background: var(--solid); color: var(--on-solid); }

/* ---------- layout ---------- */

.hero, .band { padding-inline: clamp(16px, 4.5vw, 44px); }
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding-top: clamp(48px, 9vw, 100px); padding-bottom: clamp(48px, 8vw, 92px);
  display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 64px); align-items: center;
  text-align: center;
}
@media (min-width: 940px) {
  .hero { grid-template-columns: 1.05fr .95fr; text-align: left; }
  .hero .cta-row, .hero .eyebrow { justify-content: flex-start; }
}
.eyebrow {
  font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .2em;
  color: var(--muted); margin: 0 auto 20px;
}
@media (min-width: 940px) { .eyebrow { margin-left: 0; } }
.lede { font-size: clamp(1.04rem, 2.4vw, 1.16rem); color: var(--text-dim); max-width: 54ch; margin-inline: auto; }
.hero .sub { color: var(--muted); max-width: 52ch; margin-inline: auto; }
@media (min-width: 940px) { .lede, .hero .sub { margin-inline: 0; } }

.band {
  max-width: var(--maxw); margin: 0 auto;
  padding-block: clamp(48px, 8vw, 94px); border-top: 1px solid var(--hair);
  text-align: center;
}
.band > .kicker { margin-bottom: 12px; }
.band > h2 { margin-bottom: .18em; }
.band > .band-lede { color: var(--muted); margin: 0 auto 2.2em; max-width: 58ch; }

/* text stays left-aligned inside real content blocks for readability */
.pains, .feat-grid, .steps, .plans, .faq, .split, .softmode, .feat, .step, .plan, .pains li { text-align: left; }

/* inverted section */
.band.invert, .cta-band { background: var(--inv-bg); color: var(--inv-text); border-top-color: transparent; }
.band.invert { max-width: none; padding-inline: clamp(16px, 4.5vw, 44px); }
.band.invert > * { max-width: var(--maxw); margin-inline: auto; }
.band.invert .kicker { color: var(--inv-muted); }
.band.invert code { background: transparent; border-color: var(--inv-hair); color: var(--inv-text); }
.band.invert .fine { color: var(--inv-muted); }

/* ---------- buttons ---------- */

.cta-row { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; justify-content: center; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 1rem;
  border-radius: var(--radius); padding: 13px 20px; border: 1px solid var(--rule);
  transition: background .16s ease, color .16s ease;
}
.btn svg { transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn.primary { background: var(--solid); color: var(--on-solid); }
.btn.primary:hover { background: var(--bg); color: var(--text); }
.btn.ghost { background: transparent; color: var(--text); }
.btn.ghost:hover { background: var(--solid); color: var(--on-solid); }
.btn.ghost svg { transform: rotate(90deg); }
.btn.ghost:hover svg { transform: rotate(90deg) translateX(3px); }
.btn.big { padding: 15px 26px; font-size: 1.06rem; }
.btn.invert-btn { background: var(--inv-text); color: var(--inv-bg); border-color: var(--inv-text); }
.btn.invert-btn:hover { background: transparent; color: var(--inv-text); }
.btn.invert-btn:hover svg { transform: translateX(3px); }

.hero-note { margin-top: 16px; font-size: .85rem; color: var(--muted); font-family: var(--mono); }

/* ---------- hero art (drawn scene, in-style) ---------- */

.hero-art { position: relative; margin: 8px auto 0; max-width: 420px; padding: 22px; }
.dotgrid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  color: var(--hair); opacity: .6;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(120% 90% at 60% 40%, #000 45%, transparent 72%);
          mask-image: radial-gradient(120% 90% at 60% 40%, #000 45%, transparent 72%);
}
.phone {
  position: relative; z-index: 2;
  border: 1px solid var(--rule); border-radius: 16px; background: var(--bg);
  overflow: hidden; max-width: 330px; margin-inline: auto;
}
.ph-top { display: flex; align-items: center; gap: 9px; padding: 12px 15px; border-bottom: 1px solid var(--hair); background: var(--panel); }
.ph-dot { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--rule); }
.ph-name { font-family: var(--mono); font-size: .78rem; color: var(--text); }
.ph-body { padding: 15px; display: flex; flex-direction: column; gap: 9px; }
.msg { max-width: 88%; border: 1px solid var(--hair); border-radius: 12px; padding: 8px 11px; }
.msg p { margin: 0; font-size: .85rem; line-height: 1.4; color: var(--text-dim); }
.msg.in { align-self: flex-start; border-bottom-left-radius: 3px; background: var(--panel); }
.msg.out { align-self: flex-end; border-bottom-right-radius: 3px; background: var(--solid); }
.msg.out p { color: var(--on-solid); }
.slot { font-family: var(--mono); font-size: .76rem !important; letter-spacing: -.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.chips span { font-size: .72rem; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; color: var(--text); }

/* floating cards that turn the mock into a scene */
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px;
}
.float .ft-ico { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--hair); border-radius: 8px; color: var(--text); flex: none; }
.float .ft-meta { display: flex; flex-direction: column; line-height: 1.25; }
.float .ft-meta .t { font-size: .78rem; font-weight: 650; color: var(--text); }
.float .ft-meta .m { font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.float-preview { top: -14px; right: -20px; }
.float-slot { bottom: 58px; left: -16px; }
/* live «проявление»: a developer light-bar with a soft gradient feather sweeps
   top→down and the butterfly materialises behind it (mask wipe); ink soaks into
   the wings (fresh → healed); a diagonal shine glides across the finished
   sketch with a single expanding pulse as it settles; then it fades and loops.
   Mask/translate/opacity only — monochrome, flat 2D, no colour or shadow. */
.float-preview { padding: 10px 12px; }
.preview-arm { color: var(--text); flex: none; display: block; }
.preview-arm .pa-skin { fill: var(--panel); stroke: var(--rule); stroke-width: 2.4; }
.preview-arm .pa-life { animation: paLife 8s ease-in-out infinite; }
.preview-arm .pa-wash { fill: var(--text); opacity: 0; animation: paSoak 8s ease-in-out infinite; }
.preview-arm .pa-outline { color: var(--text); }
.preview-arm .dev-wipe {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transform: scaleY(0);
  animation: paWipe 8s cubic-bezier(.45, 0, .2, 1) infinite;
}
.preview-arm .pa-scan {
  color: var(--rule);
  opacity: 0;
  animation: paScan 8s cubic-bezier(.45, 0, .2, 1) infinite;
}
.preview-arm .pa-shine {
  transform-box: view-box;
  opacity: 0;
  animation: paShine 8s ease-in-out infinite;
}
.preview-arm .pa-pulse {
  color: var(--text);
  transform-box: view-box;
  transform-origin: 88px 150px;
  opacity: 0;
  animation: paPulse 8s ease-out infinite;
}
@keyframes paWipe {
  0%   { transform: scaleY(0); }
  6%   { transform: scaleY(.04); }
  44%  { transform: scaleY(1); }
  100% { transform: scaleY(1); }
}
@keyframes paScan {
  0%   { opacity: 0; transform: translateY(0); }
  5%   { opacity: .9; }
  44%  { opacity: .9; transform: translateY(112px); }
  50%  { opacity: 0; transform: translateY(112px); }
  100% { opacity: 0; transform: translateY(112px); }
}
@keyframes paSoak {
  0%, 40% { opacity: 0; }
  58%     { opacity: .46; }  /* fresh ink */
  76%     { opacity: .3; }   /* settled / healed */
  95%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes paShine {
  0%, 52%  { opacity: 0; transform: translateX(0) skewX(-14deg); }
  56%      { opacity: .9; }
  72%      { opacity: .9; transform: translateX(116px) skewX(-14deg); }
  76%, 100%{ opacity: 0; transform: translateX(116px) skewX(-14deg); }
}
@keyframes paPulse {
  0%, 56% { opacity: 0; transform: scale(.55); }
  60%     { opacity: .32; transform: scale(.62); }
  76%     { opacity: 0; transform: scale(1.18); }
  100%    { opacity: 0; transform: scale(1.18); }
}
@keyframes paLife {
  0%   { opacity: 0; }
  8%   { opacity: 1; }
  86%  { opacity: 1; }
  97%  { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .preview-arm .dev-wipe { transform: scaleY(1); animation: none; }
  .preview-arm .pa-life  { opacity: 1; animation: none; }
  .preview-arm .pa-wash  { opacity: .4; animation: none; }
  .preview-arm .pa-scan, .preview-arm .pa-shine, .preview-arm .pa-pulse { display: none; animation: none; }
}
@media (max-width: 560px) { .float { display: none; } .hero-art { padding: 0; } .dotgrid { inset: 10px; } }
.art-cap { position: relative; z-index: 2; text-align: center; margin-top: 6px; font-size: .8rem; color: var(--muted); }

/* ---------- fact strip ---------- */

.strip { max-width: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
@media (min-width: 720px) { .strip { grid-template-columns: repeat(4, 1fr); } }
.strip-item { padding: 26px clamp(16px, 4vw, 30px); border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.strip-item:last-child { border-right: 0; }
.strip-item .k { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; }
.strip-item .l { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* ---------- pains ---------- */

.pains { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 0; max-width: 940px; }
@media (min-width: 760px) { .pains { grid-template-columns: 1fr 1fr; column-gap: 46px; } }
.pains li { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; padding: 20px 0; border-top: 1px solid var(--hair); }
.pains .ico { display: grid; place-items: center; width: 42px; height: 42px; color: var(--text); border: 1px solid var(--hair); border-radius: var(--radius); }
.pains b { display: block; font-weight: 650; margin-bottom: 3px; }
.pains p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- features ---------- */

.feat-grid { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); grid-template-columns: 1fr; }
@media (min-width: 620px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feat-grid { grid-template-columns: repeat(4, 1fr); } }
.feat { background: var(--bg); padding: 24px 22px 26px; display: flex; flex-direction: column; gap: 10px; transition: background .18s ease, color .18s ease; }
.feat-ico { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: var(--radius); color: var(--text); transition: inherit; }
.feat h3 { margin: 4px 0 0; }
.feat p { margin: 0; font-size: .9rem; color: var(--muted); transition: inherit; }
@media (hover: hover) {
  .feat:hover { background: var(--solid); color: var(--on-solid); }
  .feat:hover .feat-ico { color: var(--on-solid); border-color: var(--on-solid); }
  .feat:hover p { color: var(--on-solid); opacity: .78; }
}

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0 auto 4px; padding: 0; display: grid; gap: 0; max-width: 820px; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: start; padding: 24px 0; border-top: 1px solid var(--hair); }
.step:last-child { border-bottom: 1px solid var(--hair); }
.step-n { font-family: var(--mono); font-size: 1.5rem; font-weight: 500; color: var(--muted); letter-spacing: -.04em; }
.step h3 { margin-bottom: 4px; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; max-width: 60ch; }

/* ---------- try-on split ---------- */

.split { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1.1fr .9fr; gap: 50px; } .split-art { position: sticky; top: 84px; } }
.split-copy h2 { margin-top: 0; }
.split-copy p { color: var(--inv-text); opacity: .9; }
.split-copy code { white-space: nowrap; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; }
.ticks li { position: relative; padding: 10px 0 10px 26px; font-size: .94rem; border-top: 1px solid var(--inv-hair); }
.ticks li:last-child { border-bottom: 1px solid var(--inv-hair); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 11px; height: 6px; border-left: 1.6px solid var(--inv-text); border-bottom: 1.6px solid var(--inv-text); transform: rotate(-45deg); }
.keyfact { border: 1px solid var(--inv-hair); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.keyfact p { font-size: .95rem; margin: 0; }
.art-frame { fill: none; stroke: var(--inv-hair); }
.art-skin { fill: none; stroke: var(--inv-text); stroke-width: 1.4; }
.art-sketch { color: var(--inv-text); opacity: .85; }
.art-ruler { color: var(--inv-text); }
.art-label { fill: var(--inv-muted); font-family: var(--mono); }

/* ---------- pricing ---------- */

.plans { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); grid-template-columns: 1fr; max-width: 1000px; margin-inline: auto; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--bg); padding: 24px 22px; display: flex; flex-direction: column; }
.plan h3 { margin-bottom: 10px; font-family: var(--mono); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; color: var(--muted); }
.price { font-size: 2rem; font-weight: 750; letter-spacing: -.04em; margin-bottom: 14px; color: var(--text); }
.price span { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: -.01em; }
.plan ul { list-style: none; margin: 0 0 14px; padding: 0; flex: 1; }
.plan li { font-size: .88rem; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--hair); }
.plan li:first-child { border-top: 0; }
.plan .fine { margin-top: auto; font-size: .78rem; }

/* best card — always the solid (filled) treatment; text pair guarantees contrast */
.plan.best { background: var(--solid); }
.plan.best, .plan.best h3, .plan.best .price { color: var(--on-solid); }
.plan.best h3 { color: var(--on-solid); opacity: .62; }
.plan.best .price span { color: var(--on-solid); opacity: .6; }
.plan.best li { color: var(--on-solid); opacity: .82; border-top-color: color-mix(in srgb, var(--on-solid) 22%, transparent); }
.plan.best .fine { color: var(--on-solid); opacity: .6; }

.softmode { margin: 26px auto 0; padding: 20px 22px; border: 1px solid var(--hair); border-left: 3px solid var(--rule); border-radius: var(--radius); font-size: .93rem; color: var(--text-dim); max-width: 78ch; text-align: left; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--hair); max-width: 820px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.02rem; letter-spacing: -.01em; text-align: left; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; top: 50%; background: var(--text); transition: transform .2s ease, opacity .2s ease; }
.faq summary::before { width: 14px; height: 1.6px; right: 6px; transform: translateY(-50%); }
.faq summary::after { width: 1.6px; height: 14px; right: 12.2px; transform: translateY(-50%); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(90deg); opacity: 0; }
.faq p { padding: 0 0 20px; margin-top: -4px; font-size: .96rem; color: var(--muted); max-width: 66ch; text-align: left; }
.faq p:first-of-type { margin-top: 0; }

/* ---------- final cta ---------- */

.cta-band { max-width: none; text-align: center; padding-block: clamp(58px, 10vw, 112px); }
.cta-inner { max-width: 760px; margin: 0 auto; padding-inline: clamp(16px, 4.5vw, 44px); }
.cta-band .kicker { color: var(--inv-muted); margin-bottom: 12px; }
.cta-band .band-lede { color: var(--inv-text); opacity: .92; margin: 0 auto 8px; max-width: 60ch; }
.cta-band code { background: transparent; border-color: var(--inv-hair); color: var(--inv-text); }
.cta-band .fine { margin-top: 16px; color: var(--inv-muted); }

/* ---------- footer ---------- */

.site-foot { border-top: 1px solid var(--hair); padding: 34px clamp(16px, 4.5vw, 44px) calc(34px + env(safe-area-inset-bottom)); }
.foot-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.foot-nav a { font-size: .85rem; color: var(--muted); }
.foot-nav a:hover { color: var(--text); }
.site-foot .muted { font-size: .8rem; }

/* ---------- reveal (progressive enhancement only) ---------- */

.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-pending.is-in { opacity: 1; transform: none; }

/* ---------- boot splash ---------- */

/* The mark draws itself, the wordmark wipes in, then the mark alone flies onto
   the header logo as the backdrop dissolves — ~1.45 s total. Ink stroke/fill and
   opacity only: no colour, no shadows, no 3D. app.js owns the timing.
   The flight is a *transition*, so no filled animation may hold transform or
   opacity on the flying element — that is what used to freeze it in place. */
html.no-scroll, body.no-scroll { overflow: hidden; }
.splash { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; }
html.js .splash { display: grid; }
.splash-bg { position: absolute; inset: 0; background: var(--bg); transition: opacity .6s ease; }
.splash-logo { position: relative; display: flex; flex-direction: column; align-items: center; color: var(--text); }
.splash-logo > * { animation: sl-take .4s ease; }
.sl-mark { display: block; width: 92px; height: 92px; }
.sl-line {
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: sl-draw .44s cubic-bezier(.35, .9, .3, 1) .06s forwards;
}
.sl-stem { animation-duration: .4s; animation-delay: .28s; }
/* the ink bead is a solid shape, so it cannot be traced — it swells down from
   the needle tip instead (scaleY is flat 2D, no colour, no shadow) */
.sl-drop {
  fill: currentColor; stroke: none;
  transform-box: fill-box; transform-origin: 50% 0;
  animation: sl-drop .3s cubic-bezier(.34, 1.25, .64, 1) .58s both;
}
@keyframes sl-drop { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.sl-word {
  margin-top: 18px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em;
  clip-path: inset(0 100% 0 0);
  animation: sl-take .4s ease, sl-wipe .42s cubic-bezier(.2, .7, .2, 1) .36s forwards;
}
.sl-rule {
  width: 0; height: 1px; margin-top: 12px; background: var(--rule);
  animation: sl-take .4s ease, sl-rule .34s cubic-bezier(.2, .7, .2, 1) .46s forwards;
}
@keyframes sl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sl-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes sl-rule { to { width: 128px; } }
@keyframes sl-take { from { opacity: 0; } to { opacity: 1; } }
/* hand-off: word and rule sink away, the backdrop fades, the mark flies onto the
   header logo. --fly-* are measured against the *mark*, never the text block. */
.splash.is-leaving .splash-bg { opacity: 0; }
.splash.is-leaving .sl-word, .splash.is-leaving .sl-rule { opacity: 0; transform: translateY(6px); transition: opacity .26s ease, transform .26s ease; }
.splash.is-leaving .sl-mark {
  transform: translate(var(--fly-x, 0px), var(--fly-y, -260px)) scale(var(--fly-s, .22));
  transition: transform .56s cubic-bezier(.5, 0, .2, 1);
}
/* the header logo is blank until the flying copy has landed exactly on it */
.brand-mark.is-hidden svg { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  .splash, html.js .splash { display: none; }
  html.no-scroll, body.no-scroll { overflow: auto; }
  .brand-mark.is-hidden svg { opacity: 1; }
}

/* ---------- print ---------- */

@media print {
  .site-head, .head-cta, .cta-row, .theme-btn, .hero-art, .strip, .splash { display: none; }
  .brand-mark.is-hidden svg { opacity: 1; }
  body { background: #fff; color: #000; }
}
