/* P12 · Advokátska kancelária · Museum / archive catalogue
   Manila + stamp violet, Literata + Spline Sans Mono, index cards, flashlight reveal. */

:root {
  --manila: oklch(0.9 0.035 85);
  --manila-2: oklch(0.95 0.02 85);
  --manila-dim: oklch(0.85 0.04 82);
  --lit: oklch(0.985 0.012 92);
  --ink: oklch(0.2 0.01 60);
  --fg: var(--ink);
  --bg: var(--manila);
  --muted: oklch(0.42 0.015 60);
  --line: oklch(0.2 0.01 60);
  --line-soft: oklch(0.2 0.01 60 / 0.18);
  --accent: oklch(0.45 0.16 300);
  --accent-fg: oklch(0.98 0 0);
  --section-y: clamp(4rem, 3rem + 3vw, 7rem);
  --gutter: clamp(16px, 4vw, 48px);

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --display-1: clamp(2rem, 1.4rem + 2.6vw, 4rem);
  --display-2: clamp(1.5rem, 1.2rem + 1.4vw, 2.5rem);

  --ease-file: cubic-bezier(0.45, 0, 0.55, 1);
  --tabs-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
html.motion { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--step-0)/1.6 var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
html:not(.js) body { padding-top: var(--tabs-h); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--ink); color: var(--manila-2); }

.mono {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 50;
  background: var(--ink); color: var(--manila-2); padding: 12px 16px;
}
.skip:focus { top: 56px; }

.display-1 {
  font-size: var(--display-1);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.display-2 {
  font-size: var(--display-2);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

/* ---------- grid: index cards with an inventory column ---------- */
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.grid-inv { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 24px; }
.inv {
  position: sticky; top: calc(var(--tabs-h) + 28px); align-self: start;
  writing-mode: vertical-rl; transform: rotate(180deg);
  display: flex; gap: 16px; color: var(--muted);
  justify-self: center; padding-block: 4px;
}
.inv span + span::before { content: "· "; }

.card {
  position: relative;
  background: var(--manila-2);
  border: 1px solid var(--ink);
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--ink);
  transition: box-shadow 150ms ease;
}
/* punched hole at the top of every index card */
.card::before {
  content: ""; position: absolute; top: 12px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--manila);
  box-shadow: inset 0 1px 0 oklch(0.2 0.01 60 / 0.35);
}
.card--front::before, .tool::before, .scan::before, .contact__form::before { display: none; }
@media (hover: hover) {
  .area:hover, .person:hover, .step:hover, .qa:hover, .scan:hover {
    box-shadow: inset 0 0 0 1px var(--ink), 0 1px 0 var(--ink);
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--accent); color: var(--accent-fg);
  font: 500 0.875rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 0; border-radius: 2px; cursor: pointer;
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 0.875rem/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.btn-ghost {
  min-height: 44px; padding: 10px 16px; background: transparent; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px; cursor: pointer;
  font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.btn-ghost[aria-pressed="true"] { background: var(--ink); color: var(--manila-2); }

/* ---------- file tabs navigation ---------- */
.tabs {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--tabs-h);
  background: var(--manila);
  border-bottom: 1px solid var(--ink);
}
html.js .tabs { transform: translateY(-100%); visibility: hidden; transition: transform 200ms ease, visibility 0s 200ms; }
html.js .tabs.is-on { transform: none; visibility: visible; transition: transform 200ms ease; }
.tabs__in {
  max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter);
  height: 100%; display: flex; align-items: flex-end; gap: 16px;
}
.tabs__brand {
  align-self: center; flex: none; font: 600 1rem/1 var(--serif); text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px;
}
.tabs__list {
  display: flex; align-items: flex-end; height: 100%; flex: 1; min-width: 0;
  overflow-x: auto; scrollbar-width: none; padding-top: 4px;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list li { flex: none; }
.tabs__list li + li { margin-left: -1px; }
.tab {
  position: relative; display: flex; align-items: center; height: 36px; margin-bottom: -1px;
  padding: 0 14px; background: var(--manila-2);
  border: 1px solid var(--ink); border-top-width: 1px; border-radius: 3px 3px 0 0;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease;
}
.tab::after { content: ""; position: absolute; inset: -8px 0 0; }
.tab[aria-current="true"] {
  transform: translateY(-4px); z-index: 1;
  border-top: 3px solid var(--accent); padding-bottom: 2px;
  border-bottom-color: var(--manila-2);
}

/* ---------- masthead ---------- */
.masthead__in {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 4px 24px; padding-block: 20px 16px;
}
.wordmark { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.wordmark__name { font: 600 1.25rem/1.2 var(--serif); letter-spacing: 0.02em; text-transform: uppercase; white-space: nowrap; }
.masthead__hours { color: var(--muted); }

/* ---------- hero: the drawer ---------- */
.hero { overflow-x: clip; padding-block: 8px calc(var(--section-y) * 0.75); }
.hero__grid {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(24px, 3vw, 40px); align-items: center;
}
.drawer {
  position: relative; display: flex; flex-direction: column;
  min-height: 72vh; padding: 20px 14px 0;
  background: var(--manila-dim);
  border: 1px solid var(--ink); border-radius: 2px;
  box-shadow: 0 1px 0 var(--ink), inset 0 10px 18px -12px oklch(0.2 0.01 60 / 0.35);
}
html.motion .drawer { transform: translateX(-100%); }
html.motion .registers li { transform: translateY(12px); }
html.motion .drawer.is-in, html.motion .drawer.is-in .registers li { transform: none; }

/* registers: tops of the cards standing behind the pulled card */
.registers { --tw: 13.6%; position: relative; height: calc(6 * 18px + 44px); flex: none; }
.registers li { position: absolute; left: 6px; right: 6px; height: 44px; pointer-events: none; }
.registers li:nth-child(1) { --i: 0; top: 0; z-index: 1; }
.registers li:nth-child(2) { --i: 1; top: 18px; z-index: 2; }
.registers li:nth-child(3) { --i: 2; top: 36px; z-index: 3; }
.registers li:nth-child(4) { --i: 3; top: 54px; z-index: 4; }
.registers li:nth-child(5) { --i: 4; top: 72px; z-index: 5; }
.registers li:nth-child(6) { --i: 5; top: 90px; z-index: 6; }
.registers li:nth-child(7) { --i: 6; top: 108px; z-index: 7; }
.registers li::after {
  content: ""; position: absolute; left: 0; right: 0; top: 30px; bottom: -2px;
  background: var(--manila-2); border: 1px solid var(--ink); border-bottom: 0;
}
.reg {
  position: absolute; top: 0; z-index: 1; pointer-events: auto;
  left: calc((100% - var(--tw)) * var(--i) / 6); width: var(--tw); height: 31px;
  display: flex; align-items: center; justify-content: center;
  background: var(--manila-2); border: 1px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0;
  font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
}
.reg::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 44px; }
.reg:hover { background: var(--lit); }

.card--front {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px;
  margin-inline: -1px; margin-top: -2px;
  padding: clamp(28px, 3.4vw, 48px);
  box-shadow: none;
}
.card--front h1 { max-width: 22ch; }
.file-label time, .file-label span { white-space: nowrap; }
.file-label { display: inline-block; align-self: flex-start; padding: 4px 8px; border: 1px solid var(--ink); }
.lead { max-width: 52ch; font-size: var(--step-1); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 4px; }

.drawer__pull {
  flex: none; height: 64px; margin: 0 -14px; display: flex; align-items: center; justify-content: center; gap: 28px;
  border-top: 1px solid var(--ink); background: var(--manila);
}
.drawer__holder { padding: 4px 12px; border: 1px solid var(--ink); background: var(--manila-2); font-size: 0.6875rem; }
.drawer__handle {
  width: 112px; height: 18px; border: 1px solid var(--ink); border-radius: 9px;
  background: linear-gradient(var(--manila-2), var(--manila-dim));
}

/* scan */
.scan { padding: 12px 12px 14px; }
.scan figcaption { margin-top: 12px; color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line-soft); background: var(--manila); }
.media--32 { aspect-ratio: 3 / 2; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing {
  background:
    repeating-linear-gradient(to bottom, transparent 0 23px, var(--line-soft) 23px 24px),
    var(--manila-2);
}
.media.is-missing::after {
  content: "SKEN CHÝBA"; position: absolute; inset: 0; display: grid; place-items: center;
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.12em; color: var(--muted);
}
.hero .scan { transform: rotate(0.6deg); }

/* ---------- sections as folders ---------- */
.sec { padding-block: calc(var(--section-y) * 0.6) calc(var(--section-y) * 0.4); }
.sec__body { position: relative; border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.folder {
  position: absolute; top: 0; left: 0; transform: translateY(-100%);
  padding: 6px 14px 5px; background: var(--manila-2);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 3px 3px 0 0;
}
.sec__head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head p { color: var(--muted); font-size: var(--step-1); max-width: 54ch; }

/* people: cards filed with an offset */
.people { display: grid; gap: 16px; max-width: 54rem; }
.person { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 32px 32px 28px 0; }
.person:nth-child(2) { margin-left: 24px; }
.person:nth-child(3) { margin-left: 48px; }
.person::before { left: auto; right: 28px; }
.person__no {
  align-self: stretch; display: flex; justify-content: center; padding-top: 4px;
  border-right: 1px solid var(--line-soft); font-size: 0.875rem; color: var(--muted);
}
.person__name { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.person__reg { margin: 4px 0 12px; color: var(--muted); }
.person__lang { margin-top: 12px; color: var(--muted); }

/* areas */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.area { display: flex; flex-direction: column; gap: 14px; padding: 40px 28px 24px; }
.area h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.area ul { display: grid; gap: 6px; flex: 1; font-size: 1rem; }
.area ul li { padding-left: 18px; position: relative; }
.area ul li::before { content: "—"; position: absolute; left: 0; color: var(--muted); }
.price { padding-top: 12px; border-top: 1px dashed var(--line-soft); }

/* ---------- signature: flashlight reveal ---------- */
.tool { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.page {
  position: relative; padding: 28px clamp(72px, 9vw, 120px) 40px clamp(20px, 3.4vw, 44px);
  background: var(--manila-dim);
  border-right: 1px solid var(--ink);
  overflow: clip; /* the light ring never pushes the page sideways */
}
.page__hint { color: var(--muted); text-transform: none; letter-spacing: 0.02em; margin-bottom: 20px; max-width: 60ch; }
html:not(.js) .page__hint { display: none; }
.page__toggle { margin-bottom: 20px; }
.sheet { position: relative; touch-action: pan-y; --mx: 170px; --my: 40px; }
.tool.is-live .sheet { cursor: crosshair; -webkit-user-select: none; user-select: none; }
.doc { font-size: 1rem; line-height: 1.7; }
.doc p + p { margin-top: 2px; }
.doc__title { font-size: var(--step-1); font-weight: 600; line-height: 1.3; margin-bottom: 14px; }
.doc__art { font-weight: 600; margin-top: 12px; }
.doc__art:first-of-type { margin-top: 0; }
.rw { border-radius: 1px; }
.tool.is-live .doc--red .rw,
.tool.is-static:not(.is-open) .doc--red .rw {
  background: var(--ink); color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.sheet { --r: 150px; --bleed: 28px; }
/* the lit layer bleeds past the text block so the light never ends in a hard edge */
.doc--clear {
  position: absolute; inset: calc(-1 * var(--bleed)); padding: var(--bleed); pointer-events: none;
  background: var(--lit);
  -webkit-mask-image: radial-gradient(circle var(--r) at calc(var(--mx) + var(--bleed)) calc(var(--my) + var(--bleed)), #000 0 55%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at calc(var(--mx) + var(--bleed)) calc(var(--my) + var(--bleed)), #000 0 55%, transparent 100%);
}
.beam {
  position: absolute; left: 0; top: 0; width: calc(2 * var(--r)); height: calc(2 * var(--r));
  margin: calc(-1 * var(--r)) 0 0 calc(-1 * var(--r));
  border-radius: 50%; border: 1px solid var(--accent); pointer-events: none;
  transform: translate(var(--mx), var(--my));
}
/* found traps */
.trap.is-found { text-decoration: underline 2px var(--accent); text-underline-offset: 4px; text-decoration-skip-ink: none; }
.doc--red .trap.is-found .rw { box-shadow: 0 3px 0 var(--accent); }
html:not(.js) .trap { text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }

.stamps { position: absolute; top: 0; right: 0; width: clamp(72px, 9vw, 120px); height: 100%; pointer-events: none; }
.stamp {
  position: absolute; right: 12px;
  padding: 5px 9px 4px;
  font: 500 0.875rem/1 var(--mono); letter-spacing: 0.14em; color: var(--accent);
  border: 2px solid var(--accent); border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--manila-dim), inset 0 0 0 3px var(--accent);
  transform: rotate(-8deg);
  animation: stamp 300ms cubic-bezier(0.165, 0.84, 0.44, 1) both;
}
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.25) rotate(-14deg); }
  40% { opacity: 1; }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}
.tool.is-static .stamp { animation: none; }

.toolbar { display: none; }
.panel { padding: 32px clamp(20px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.panel__count { font-size: 0.875rem; }
.panel__count b, .toolbar b { font-weight: 500; color: var(--accent); }
.traps { display: grid; gap: 12px; }
.trapitem { position: relative; padding: 12px 14px; border: 1px dashed var(--line-soft); background: var(--manila); min-height: 56px; }
.trapitem__ph { display: none; color: var(--muted); font-size: 1rem; letter-spacing: 0.3em; }
.trapitem__ref { color: var(--accent); }
.trapitem__name { font-weight: 600; line-height: 1.35; }
.trapitem__why { margin-top: 4px; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.tool.is-live .trapitem:not(.is-found) .trapitem__body { display: none; }
.tool.is-live .trapitem:not(.is-found) .trapitem__ph { display: block; }
.trapitem.is-found { border-style: solid; border-color: var(--ink); background: var(--manila-2); }
.tool.is-live .trapitem.is-found { animation: file-in 600ms var(--ease-file) both; }
@keyframes file-in { from { transform: translateX(-24px); } to { transform: none; } }
.panel__note { color: var(--muted); font-size: 0.9375rem; }
.panel__done { display: grid; gap: 14px; justify-items: start; padding-top: 16px; border-top: 1px solid var(--ink); }
.panel__done-h { font-weight: 600; line-height: 1.4; }
.panel__price { color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.tool.is-live .panel__done:not([hidden]) { animation: file-in 600ms var(--ease-file) both; }

/* ---------- fee ---------- */
.fee { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.fee__card { padding: 36px clamp(16px, 3vw, 32px) 24px; }
.fee__table { width: 100%; border-collapse: collapse; }
.fee__table th, .fee__table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.fee__table thead th { font: 400 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 0; }
.fee__table tbody th { font-weight: 600; }
.fee__table td.mono { font-size: 0.875rem; white-space: nowrap; color: var(--ink); }
.fee__table td:last-child { color: var(--muted); font-size: 0.9375rem; }
.fee__small { margin-top: 18px; font-size: 0.9375rem; color: var(--muted); max-width: 62ch; }
.fee__fig { transform: rotate(-0.8deg); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { padding: 40px 24px 24px; display: grid; align-content: start; gap: 10px; }
.step__no { font-size: 1.25rem; letter-spacing: 0.04em; color: var(--muted); }
.step h3 { font-size: var(--step-1); font-weight: 600; line-height: 1.3; }
.step p { font-size: 1rem; }

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 32px 24px 20px; font-weight: 600; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 500 1.25rem/1 var(--mono); flex: none; padding-top: 2px; }
.qa[open] summary::after { content: "−"; }
.qa p { padding: 0 24px 24px; color: var(--muted); font-size: 1rem; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
.contact__form { padding: clamp(24px, 3.4vw, 44px); }
.contact__form h2 { margin-bottom: 24px; }
.form { display: grid; gap: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.label { font: 500 0.75rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.opt { color: var(--muted); text-transform: none; letter-spacing: 0.02em; }
.hint { font-size: 0.875rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 400 1rem/1.5 var(--serif); color: var(--ink);
  background: var(--lit); border: 1px solid var(--ink); border-radius: 2px;
}
textarea { min-height: 120px; resize: vertical; background-image: repeating-linear-gradient(to bottom, transparent 0 23px, var(--line-soft) 23px 24px); background-position: 0 10px; background-attachment: local; }
::placeholder { color: oklch(0.5 0.015 60); }
[aria-invalid="true"] { border-color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent); }
.err { font-size: 0.875rem; color: var(--accent); font-weight: 600; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ink); border-radius: 3px 3px 0 0; background: var(--manila);
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.chip input:checked + span { background: var(--ink); color: var(--manila-2); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.form .btn { justify-self: start; }
.form__ok { padding: 14px 16px; border: 1px solid var(--ink); background: var(--lit); font-weight: 600; }
.contact__side { display: grid; gap: 20px; }
.facts { padding: 32px 24px 20px; display: grid; gap: 14px; }
.facts dt { color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 0.9375rem; }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; }
.foot__in > div { display: grid; gap: 6px; }
.foot__name { font-weight: 600; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot__links a { display: inline-flex; min-height: 44px; align-items: center; }
.foot__demo { grid-column: 1 / -1; padding-top: 16px; border-top: 1px dashed var(--line-soft); color: var(--muted); }
.foot__demo strong { color: var(--ink); font-weight: 500; }
.foot a { overflow-wrap: anywhere; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .registers { --tw: 14.2%; }
  .reg { font-size: 0.625rem; letter-spacing: 0.04em; }
}
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .drawer { min-height: 0; }
  .hero .scan { max-width: 560px; }
  .media--scan { aspect-ratio: 3 / 2; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fee, .contact { grid-template-columns: minmax(0, 1fr); }
  .fee__fig { max-width: 560px; }
  .tool { grid-template-columns: minmax(0, 1fr); }
  .page { border-right: 0; border-bottom: 1px solid var(--ink); }
}
@media (max-width: 767px) {
  .grid-inv { grid-template-columns: minmax(0, 1fr); }
  .inv { display: none; }
  .masthead__hours { display: none; }
  .drawer { padding: 12px 12px 0; }
  /* registers become a horizontal strip of tabs */
  .registers {
    height: auto; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
    margin: 0 -12px; padding: 4px 12px 0;
  }
  .registers::-webkit-scrollbar { display: none; }
  .registers li { position: static; height: auto; pointer-events: auto; flex: none; }
  .registers li + li { margin-left: -1px; }
  .registers li::after { display: none; }
  .reg { position: static; width: auto; height: 44px; padding: 0 14px; font-size: 0.75rem; letter-spacing: 0.06em; }
  .reg::after { display: none; }
  .card--front { margin-inline: -13px; margin-top: -1px; padding: 28px 20px; gap: 18px; }
  .drawer__pull { margin: 0 -12px; height: 52px; }
  .hero__cta .btn { width: 100%; }
  .people { gap: 12px; }
  .person, .person:nth-child(2), .person:nth-child(3) { margin-left: 0; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 32px 20px 24px 0; }
  .areas, .steps, .faq { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .page { padding: 20px 52px 28px 16px; }
  .doc { font-size: 0.9375rem; }
  .sheet { --r: 112px; --bleed: 14px; }
  .stamps { width: 52px; }
  .stamp { right: 4px; font-size: 0.625rem; padding: 4px 5px 3px; letter-spacing: 0.08em; }
  /* the counter becomes a sticky bar under the contract */
  .toolbar {
    display: flex; position: sticky; bottom: 0; z-index: 5;
    height: 48px; align-items: center; justify-content: space-between; padding: 0 16px;
    background: var(--ink); color: var(--manila-2); font-size: 0.8125rem;
  }
  .toolbar b { color: oklch(0.82 0.1 300); }
  .toolbar__dots { display: flex; gap: 6px; }
  .toolbar__dots i { width: 10px; height: 10px; border: 1px solid var(--manila-2); border-radius: 50%; }
  .toolbar__dots i.is-on { background: oklch(0.82 0.1 300); border-color: oklch(0.82 0.1 300); }
  .panel__count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee__table thead { display: none; }
  .fee__table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .fee__table th, .fee__table td { padding: 0; border: 0; }
  .fee__table td:last-child { grid-column: 1 / -1; }
  .foot__in { grid-template-columns: 1fr; }
}

/* Safari: no pinned sections here; keep the mask on the prefixed property */
html.is-safari .doc--clear { will-change: auto; }

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