/* Daně Ostrava — brand "Vyřízeno"
   One family (Archivo, variable width) + Caveat for the odd handwritten note.
   Violet = office stamp ink, yellow = sticky note, the rest = a desk set of highlighters. */

:root {
  --paper: #ffffff;
  --mist: #f1f0f7;
  --ink: #1d1a3a;
  --ink-soft: #4a4766;
  --line: #dcd9e8;
  --line-strong: #b9b4d3;
  --violet: #4d2fd4;
  --violet-deep: #3a1fb0;
  --lilac: #e6e0ff;
  --note: #ffd84d;
  --hl-yellow: var(--note);
  --hl-pink: #ff9ed1;
  --hl-green: #8debb0;
  --hl-orange: #ffb35c;
  --hl-blue: #8ccfff;
  --tint-blue: #e4f3ff;
  --tint-green: #e2f8ea;
  --tint-pink: #ffeaf5;
  --error: #c0262d;
  --focus: var(--violet);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h2 {
  font-size: clamp(2rem, 1.25rem + 3vw, 3.4rem);
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  font-size: 1.4rem;
  font-stretch: 110%;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

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

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--radius);
}
.skip:focus { top: 1rem; }

.hand {
  font-family: var(--hand);
  font-weight: 600;
  color: var(--violet);
  font-size: 1.6em;
  line-height: 1;
  display: inline-block;
  padding: .1em .25em;
  transform: rotate(-6deg);
}

.small { font-size: .875rem; color: var(--ink-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: none; box-shadow: 0 0 0 var(--ink); transition-duration: .05s; }
.btn--sm { padding: .6rem 1rem; font-size: .95rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--violet); color: #fff; }
.btn--primary:hover { background: var(--violet-deep); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #000; }
.btn--light { background: #fff; color: var(--violet); }
.btn--light:hover { background: var(--lilac); }
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--violet); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.link {
  font-weight: 700;
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  background: linear-gradient(var(--hl-yellow), var(--hl-yellow)) no-repeat 0 85% / 0% .55em;
  transition: background-size .25s;
}
.link:hover { color: var(--violet-deep); background-size: 100% .55em; }

/* Highlighter marker behind text */
.hl {
  --hl: var(--hl-yellow);
  background: linear-gradient(transparent 30%, var(--hl) 30%, var(--hl) 88%, transparent 88%) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .08em;
  margin-inline: -.08em;
}
.hl--pink { --hl: var(--hl-pink); }
.hl--green { --hl: var(--hl-green); }
.hl--blue { --hl: var(--hl-blue); }

/* Logo ---------------------------------------------------------------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
}
.logo-mark { width: 40px; height: 40px; color: var(--violet); transform: rotate(-12deg); flex: none; transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover .logo-mark { transform: rotate(12deg) scale(1.08); }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-size: 1.2rem; font-weight: 850; font-stretch: 122%; letter-spacing: -0.01em; }
.logo-sub { font-size: .8rem; color: var(--ink-soft); font-weight: 500; }
.logo--light { color: #fff; }
.logo--light .logo-mark { color: var(--note); }
.logo--light .logo-sub { color: #cfcbe6; }

/* Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .98rem; white-space: nowrap; }
@media (min-width: 961px) {
  .nav a:not(.btn) { background: linear-gradient(var(--hl-yellow), var(--hl-yellow)) no-repeat 0 90% / 0% .5em; transition: background-size .25s; }
  .nav a:not(.btn):hover,
  .nav a[aria-current="page"] { background-size: 100% .5em; }
}

.nav-extra { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .6rem;
  background: none;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: .5rem .8rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s, background-color .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero ---------------------------------------------------------------- */

.hero {
  padding: clamp(3rem, 2rem + 5vw, 6.5rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
}

.hero-title {
  position: relative;
  font-size: clamp(3rem, 1rem + 8.4vw, 7.4rem);
  font-stretch: 125%;
  font-weight: 850;
  line-height: .92;
  letter-spacing: -0.03em;
}
.hero-line { display: block; }

.stamp {
  display: inline-block;
  color: var(--violet);
  font-stretch: 62%;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1;
  padding: .16em .32em .12em;
  border: .075em solid currentColor;
  border-radius: .12em;
  outline: .03em solid currentColor;
  outline-offset: -.15em;
  transform: rotate(-8deg);
  filter: url(#ink);
  mix-blend-mode: multiply;
  white-space: nowrap;
}

.stamp--hero {
  position: absolute;
  right: 0;
  top: -.12em;
  font-size: .7em;
  animation: stamp-in .5s cubic-bezier(.2, .7, .3, 1) .55s both;
}

.hero-line { animation: thud .28s ease-out .85s both; }
.stamp--hero.is-poked { animation: poke .22s ease-out; }

@keyframes poke {
  50% { scale: 1.07; rotate: -2deg; }
}

@keyframes stamp-in {
  0%   { opacity: 0; transform: translate(6%, -10%) scale(1.9) rotate(-2deg); }
  62%  { opacity: 1; transform: scale(.95) rotate(-9deg); }
  80%  { transform: scale(1.02) rotate(-7.6deg); }
  100% { opacity: 1; transform: scale(1) rotate(-8deg); }
}

@keyframes thud {
  0%, 100% { transform: none; }
  35% { transform: translateY(.03em); }
  70% { transform: translateY(-.01em); }
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 36rem) minmax(0, 21rem);
  justify-content: space-between;
  gap: 2.5rem 4rem;
  margin-top: clamp(2rem, 1rem + 3vw, 3.5rem);
  align-items: end;
}
.lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); line-height: 1.5; margin-bottom: 1.75rem; }

.proof {
  display: grid;
  gap: .9rem;
  justify-items: start;
}
.proof li {
  --c: var(--hl-yellow);
  position: relative;
  padding: .85rem 1.25rem .85rem 3rem;
  background: var(--c);
  border-radius: 2px;
  box-shadow: 0 16px 22px -16px rgba(29, 26, 58, .6);
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.35;
  transform: rotate(var(--tilt, -1.6deg));
  transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.proof li:nth-child(2) { --c: var(--hl-pink); --tilt: 1.3deg; margin-left: 1.75rem; }
.proof li:nth-child(3) { --c: var(--hl-green); --tilt: -.7deg; margin-left: .6rem; }
.proof li:hover { transform: rotate(0deg) scale(1.04); }
.proof li::before {
  content: "";
  position: absolute; left: 1rem; top: .95rem;
  width: 1.35rem; height: 1.35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17.5' fill='none' stroke='%234d2fd4' stroke-width='3'/%3E%3Cpath d='M13 20.6l4.6 4.6 9-10' fill='none' stroke='%234d2fd4' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  --rot: -10deg;
  transform: rotate(var(--rot));
}
.proof strong { display: block; color: var(--ink); font-stretch: 110%; font-size: 1.1rem; }

/* Clients strip ------------------------------------------------------- */

.clients { border-block: 1px solid var(--line); }
.clients-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2.5rem; padding-block: 1.25rem; }
.clients-label { color: var(--ink-soft); font-size: .95rem; }
.clients-list { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.75rem; }
.clients-list li { display: flex; align-items: center; }
/* logos sit in grey so they don't fight the palette; hover brings back their own colors */
.client-logo {
  height: 34px;
  width: auto;
  filter: grayscale(1);
  opacity: .6;
  mix-blend-mode: multiply;
  transition: filter .3s, opacity .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.client-logo--tamtomy { height: 40px; }
.client-logo--spirits { height: 26px; }
.client-logo--webvalley { height: 26px; }
.clients-list li:hover .client-logo { filter: none; opacity: 1; transform: translateY(-2px) rotate(-2deg); }
.client-name {
  font-weight: 800; font-stretch: 120%; color: #7b7b7b; font-size: 1rem; letter-spacing: -0.01em;
  background: linear-gradient(var(--hl-blue), var(--hl-blue)) no-repeat 0 88% / 0% .5em;
  transition: background-size .3s, color .2s;
}
.client-name:hover { background-size: 100% .5em; color: var(--ink); }

/* Sections ------------------------------------------------------------ */

.section { padding-block: var(--section); }
.section-head { max-width: 34rem; }
.section-head--wide { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2vw, 3.5rem); }
.section-head p { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 40rem; }

/* Ledger (T-account) -------------------------------------------------- */

.ledger-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem 4rem;
  align-items: start;
}

.ledger-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; line-height: 1.4; }
.ledger-table th,
.ledger-table td { text-align: left; vertical-align: top; padding: .95rem 1.25rem; width: 50%; }
.ledger-table thead th {
  font-size: 1.15rem;
  font-stretch: 112%;
  font-weight: 800;
  color: var(--violet);
  border-bottom: 3px solid var(--ink);
  padding-bottom: .7rem;
}
.ledger-table tr > :first-child { border-right: 3px solid var(--ink); padding-left: 0; }
.ledger-table tbody td:first-child { color: var(--ink-soft); }
.ledger-table tbody td:last-child { font-weight: 600; }
.ledger-table tbody tr + tr td { border-top: 1px solid var(--line); }
.ledger-table tfoot th,
.ledger-table tfoot td { border-top: 2px solid var(--ink); font-weight: 800; font-stretch: 108%; }
.ledger-table tfoot td { position: relative; }
.ledger-table tfoot td::after {
  content: "";
  display: block;
  margin-top: .5rem;
  border-bottom: 6px double var(--ink);
  width: 100%;
  transform-origin: left;
}
.strike {
  background: linear-gradient(var(--violet), var(--violet)) no-repeat 0 60% / 100% 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ledger-table tfoot .hand { position: absolute; right: .25rem; bottom: -2.4rem; font-size: 1.9rem; }

/* Services ------------------------------------------------------------ */

.services { background: var(--mist); }

.svc-main { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.svc {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}
.svc h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); font-stretch: 120%; font-weight: 850; }
.svc-hook { color: var(--violet); font-weight: 700; font-size: 1.15rem; margin: .5rem 0 1rem; line-height: 1.35; }
.svc > p:not(.svc-hook) { color: var(--ink-soft); }
.svc .btn { margin-top: auto; align-self: flex-start; }
.svc-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.5rem; }
.svc-actions .btn { margin-top: 0; }

.checks { margin: 1.4rem 0 2rem; display: grid; gap: .55rem; }
.checks li { position: relative; padding-left: 1.85rem; font-weight: 600; }
.checks li::before { --rot: 0deg; }
.checks li::before {
  content: "";
  position: absolute; left: 0; top: .2em;
  width: 1.15rem; height: 1.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Ccircle cx='20' cy='20' r='17.5' fill='none' stroke='%234d2fd4' stroke-width='3.4'/%3E%3Cpath d='M13 20.6l4.6 4.6 9-10' fill='none' stroke='%234d2fd4' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.svc-more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.svc-more li { border-top: 5px solid var(--hl-pink); padding-top: 1.25rem; display: flex; flex-direction: column; }
.svc-more li:nth-child(2) { border-top-color: var(--hl-blue); }
.svc-more li:nth-child(3) { border-top-color: var(--hl-orange); }
.svc-more li:nth-child(4) { border-top-color: var(--hl-green); }
.svc-more .svc-hook { font-size: 1rem; margin: .4rem 0 .6rem; }
.svc-more p:not(.svc-hook) { color: var(--ink-soft); font-size: 1rem; margin-bottom: 1rem; }
.svc-more .link { margin-top: auto; align-self: flex-start; }

/* Deadline sticky note ------------------------------------------------ */

.deadline {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
  background: var(--note);
  border-radius: 2px;
  padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) clamp(1.5rem, 1rem + 4vw, 4.5rem);
  box-shadow: 0 26px 40px -28px rgba(29, 26, 58, .55);
}
.tape {
  position: absolute;
  top: -14px; left: 50%;
  width: 140px; height: 30px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(29, 26, 58, .06);
  transform: translateX(-50%) rotate(-2.5deg);
}
.deadline-date {
  font-size: clamp(6rem, 3rem + 13vw, 15rem);
  font-stretch: 125%;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.deadline-copy h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); }
.deadline-copy p { margin-top: 1rem; max-width: 36rem; }
.deadline-copy .btn { margin-top: 1.75rem; }
.deadline-copy .small { color: #4b4420; }
.deadline-note {
  position: absolute;
  left: clamp(1.5rem, 1rem + 4vw, 4.5rem);
  bottom: clamp(.75rem, .5rem + 1vw, 1.5rem);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem);
  transform: rotate(-4deg);
}

/* Digitalization ------------------------------------------------------ */

.digital { background: var(--tint-blue); }
.digital-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.digital-intro > p { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }

.digital-quote { margin-top: 2.25rem; padding-left: 1.25rem; border-left: 4px solid var(--violet); max-width: 30rem; }
.digital-quote blockquote { font-size: 1.25rem; font-stretch: 108%; font-weight: 650; line-height: 1.3; }
.digital-quote figcaption { margin-top: .6rem; color: var(--ink-soft); font-size: .95rem; }
.digital-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

.digital-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2.5rem; }
.digital-list li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.digital-list li { --c: var(--hl-yellow); }
.digital-list li:nth-child(2) { --c: var(--hl-pink); }
.digital-list li:nth-child(3) { --c: var(--hl-green); }
.digital-list li:nth-child(4) { --c: var(--hl-orange); }
.digi-icon { width: 3rem; height: 3rem; color: var(--violet); --rot: -8deg; transform: rotate(var(--rot)); margin-bottom: .9rem; }
.digi-icon circle { fill: var(--c); }
.digital-list li:hover .digi-icon { animation: wiggle .5s ease-in-out; }

@keyframes wiggle {
  0%, 100% { transform: rotate(var(--rot)); }
  25% { transform: rotate(calc(var(--rot) - 10deg)) scale(1.08); }
  60% { transform: rotate(calc(var(--rot) + 8deg)) scale(1.04); }
}
.digital-list h3 { font-size: 1.3rem; }
.digital-list p { margin-top: .5rem; color: var(--ink-soft); font-size: 1rem; }

/* How to start -------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.6rem; height: 2.6rem;
  margin-bottom: 1rem;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--c, var(--hl-yellow));
  color: var(--ink);
  font-weight: 850;
  font-stretch: 120%;
  font-size: 1.2rem;
  --rot: -10deg;
  transform: rotate(var(--rot));
}
.steps li:nth-child(2) { --c: var(--hl-pink); }
.steps li:nth-child(3) { --c: var(--hl-green); }
.steps li:nth-child(4) { --c: var(--hl-blue); }
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: .5rem; color: var(--ink-soft); font-size: 1rem; }

.pull {
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  max-width: 48rem;
  padding-left: 1.5rem;
  border-left: 4px solid var(--violet);
}
.pull blockquote { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-stretch: 108%; font-weight: 650; line-height: 1.3; text-wrap: balance; }
.pull figcaption { margin-top: .75rem; color: var(--ink-soft); }

/* Expertise ----------------------------------------------------------- */

.expertise { background: var(--tint-green); }
.expertise-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3rem clamp(2rem, 1rem + 5vw, 6rem);
  align-items: center;
}
.expertise-grid > div > p { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); max-width: 36rem; }

.tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.tags li {
  background: var(--c, var(--paper));
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.3;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .2s;
}
.tags li:nth-child(5n + 1) { --c: var(--hl-yellow); }
.tags li:nth-child(5n + 2) { --c: var(--hl-pink); }
.tags li:nth-child(5n + 3) { --c: var(--paper); }
.tags li:nth-child(5n + 4) { --c: var(--hl-blue); }
.tags li:nth-child(5n + 5) { --c: var(--hl-orange); }
.tags li:hover { transform: translate(-1px, -2px) rotate(-2deg); box-shadow: 3px 3px 0 var(--ink); }

.cert img {
  background: #fff;
  padding: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(29, 26, 58, .5);
  transform: rotate(2.5deg);
  max-width: 300px;
  margin-inline: auto;
}
.cert figcaption { margin-top: 1.75rem; font-size: .98rem; color: var(--ink-soft); max-width: 22rem; margin-inline: auto; }
.cert figcaption strong { display: block; color: var(--ink); font-size: 1.1rem; font-stretch: 110%; margin-bottom: .25rem; }

/* References ---------------------------------------------------------- */

.references { background: var(--ink); color: #fff; --focus: var(--note); }
.references .section-head h2 { color: #fff; }

.quote-feature { max-width: 58rem; }
.quote-feature blockquote { display: grid; gap: 1rem; }
.quote-feature p {
  font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.4rem);
  font-stretch: 108%;
  font-weight: 650;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote-feature figcaption { margin-top: 1.5rem; color: #cfcbe6; }
.quote-feature strong,
.quotes strong { color: var(--note); }

.quotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 3rem;
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.quotes figure { border-top: 3px solid var(--hl-pink); padding-top: 1.25rem; }
.quotes figure:nth-child(2) { border-top-color: var(--hl-green); }
.quotes figure:nth-child(3) { border-top-color: var(--hl-orange); }
.quotes figure:nth-child(4) { border-top-color: var(--hl-blue); }
.quotes blockquote { color: #e4e1f5; font-size: 1.05rem; }
.quotes figcaption { margin-top: .9rem; color: #b9b4d3; font-size: .95rem; }

/* Team ---------------------------------------------------------------- */

.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; }
.person { --c: var(--hl-pink); }
.person:nth-child(2) { --c: var(--hl-green); }
.person:nth-child(3) { --c: var(--hl-blue); }
.person-photo {
  aspect-ratio: 4 / 5;
  background: var(--lilac);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 10px calc(1.25rem + 10px) 0;
  box-shadow: 10px 10px 0 var(--c);
  transition: transform .25s, box-shadow .25s;
}
.person:hover .person-photo { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--c); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.person-photo--initials { display: grid; place-items: center; }
.person-photo--initials span {
  display: grid; place-items: center;
  width: 9rem; height: 9rem;
  border: 6px solid var(--violet);
  outline: 2px solid var(--violet);
  outline-offset: -16px;
  border-radius: 50%;
  color: var(--violet);
  font-size: 3rem;
  font-weight: 900;
  font-stretch: 125%;
  transform: rotate(-10deg);
  filter: url(#ink);
}
.person-role { color: var(--violet); font-weight: 700; margin: .2rem 0 .6rem; }
.person p:last-child { color: var(--ink-soft); font-size: 1rem; }

/* Request form -------------------------------------------------------- */

.request { background: var(--tint-pink); }
.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 3rem clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
.request-intro { position: sticky; top: 110px; }
.request-intro p { margin-top: 1.1rem; font-size: 1.15rem; color: var(--ink-soft); }

.contact-list { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list span { font-size: .92rem; color: var(--ink-soft); }
.contact-list a { font-size: 1.3rem; font-weight: 750; font-stretch: 110%; text-decoration: none; line-height: 1.25; }
.contact-list a:hover { color: var(--violet); }

.form {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
}

.field-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-group legend { font-weight: 750; font-stretch: 105%; margin-bottom: .7rem; padding: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-block;
  padding: .5rem .95rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .12s, border-color .12s, color .12s;
}
.pill:hover span { border-color: var(--violet); }
.pill input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; animation: pop .3s cubic-bezier(.3, 1.6, .5, 1); }

@keyframes pop {
  0% { transform: scale(.9); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.pill input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.field { display: grid; gap: .4rem; }
.field > span:first-child { font-weight: 650; font-size: .98rem; }
.field em { font-style: normal; font-weight: 400; color: var(--ink-soft); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: .75rem .9rem;
  transition: border-color .12s, box-shadow .12s;
}
.field textarea { resize: vertical; min-height: 5.5rem; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--lilac); }
.field textarea::placeholder { color: #8f8aa8; }

.field-error { display: none; color: var(--error); font-size: .9rem; font-weight: 600; margin-top: .35rem; }
.is-invalid .field-error,
.field-error.is-visible { display: block; }
.field.is-invalid input { border-color: var(--error); }

.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .95rem; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--violet); flex: none; }
.consent + .field-error { margin-top: -1.1rem; }

.form-done { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; padding-top: .5rem; }
.form-done[hidden] { display: none; }
.form-done:focus { outline: none; }
.stamp--small { font-size: 1.9rem; animation: stamp-in .45s cubic-bezier(.2, .7, .3, 1) both; }

/* FAQ ----------------------------------------------------------------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 3rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.35;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute; right: .25rem; top: 50%;
  width: 1.4rem; height: 1.4rem;
  margin-top: -.7rem;
  background:
    linear-gradient(var(--violet), var(--violet)) center / 100% 2.5px no-repeat,
    linear-gradient(var(--violet), var(--violet)) center / 2.5px 100% no-repeat;
  transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--violet); }
.faq-list details[open] summary { color: var(--violet); }
.faq-list details p { padding: 0 3rem 1.4rem 0; color: var(--ink-soft); max-width: 44rem; }
.faq-list details[open] p { animation: answer-in .3s ease-out; }

@keyframes answer-in {
  from { opacity: 0; transform: translateY(-6px); }
}

/* Closing CTA -------------------------------------------------------- */

.closing { background: var(--violet); color: #fff; padding-block: clamp(4rem, 3rem + 5vw, 7rem); overflow: hidden; --focus: var(--note); }
.closing-inner { position: relative; }
.closing h2 { font-size: clamp(2.5rem, 1.25rem + 5vw, 5.5rem); font-stretch: 125%; font-weight: 900; line-height: .95; letter-spacing: -0.03em; max-width: 14ch; }
.closing p { margin: 1.5rem 0 2rem; font-size: 1.2rem; max-width: 36rem; color: #ece8ff; }
.closing .btn:hover { box-shadow: 4px 4px 0 var(--hl-yellow); }
.closing .btn:active { box-shadow: 0 0 0 var(--hl-yellow); }
.stamp--closing {
  position: absolute;
  right: 0;
  bottom: .5rem;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  color: var(--hl-yellow);
  mix-blend-mode: normal;
  transform: rotate(-10deg);
}

/* Footer -------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #cfcbe6; --focus: var(--note); }
.footer-stripes { display: flex; height: 12px; }
.footer-stripes span { flex: 1; background: var(--hl-yellow); transform-origin: top; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.footer-stripes span:nth-child(2) { background: var(--hl-pink); }
.footer-stripes span:nth-child(3) { background: var(--hl-green); }
.footer-stripes span:nth-child(4) { background: var(--hl-orange); }
.footer-stripes span:nth-child(5) { background: var(--hl-blue); }
.footer-stripes span:hover { transform: scaleY(1.8); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 3fr));
  gap: 2.5rem;
  padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}
.footer-grid > div:nth-child(2) { --c: var(--hl-pink); }
.footer-grid > div:nth-child(3) { --c: var(--hl-green); }
.footer-grid > div:nth-child(4) { --c: var(--hl-blue); }
.footer-brand p { margin-top: 1rem; max-width: 22rem; }
.footer-title {
  display: inline-block;
  font-size: .95rem;
  font-stretch: 105%;
  color: var(--ink);
  background: var(--c, var(--hl-yellow));
  padding: .2rem .7rem;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 1rem;
  letter-spacing: 0;
}
.footer-list { display: grid; gap: .5rem; justify-items: start; }
.footer-list a {
  text-decoration: none;
  padding-inline: .2em;
  margin-inline: -.2em;
  border-radius: 2px;
  background: linear-gradient(var(--c), var(--c)) no-repeat 0 0 / 0% 100%;
  transition: background-size .25s, color .2s;
}
.footer-list a:hover { color: var(--ink); background-size: 100% 100%; }
.footer-bottom { background: var(--hl-yellow); margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  padding-block: 1.1rem 1.25rem;
  font-size: .875rem; color: var(--ink);
}
.footer-credit a { font-weight: 800; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.footer-credit a:hover { color: var(--violet); }
/* a small stamp without the #ink filter: not every page defines it */
.footer-credit .stamp { margin-left: .35rem; font-size: .8rem; vertical-align: .1em; filter: none; mix-blend-mode: normal; }

/* Blog ---------------------------------------------------------------- */

.blog-teaser { background: var(--mist); }
.blog-teaser .section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; max-width: none; }
.blog-teaser .section-head > div { max-width: 40rem; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.post-card {
  --c: var(--hl-yellow);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-top: 10px solid var(--c);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.25rem;
  color: var(--ink);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.post-card h2,
.post-card h3 {
  font-size: 1.3rem;
  font-stretch: 110%;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: .7rem 0 .6rem;
  text-wrap: balance;
}
.post-card p { color: var(--ink-soft); font-size: .98rem; }
.post-card-more { margin-top: auto; padding-top: 1rem; font-weight: 700; color: var(--violet); }
.post-card:hover .post-card-more { text-decoration: underline; text-underline-offset: 4px; }

.post-cat {
  display: inline-block;
  align-self: flex-start;
  background: var(--c, var(--hl-yellow));
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: .1rem .65rem;
  font-size: .85rem;
  font-weight: 700;
  transform: rotate(-2deg);
}
.cat--dane { --c: var(--hl-yellow); }
.cat--ucetnictvi { --c: var(--hl-green); }
.cat--dph { --c: var(--hl-pink); }
.cat--digitalizace { --c: var(--hl-blue); }
.cat--clo { --c: var(--hl-orange); }

.blog-hero { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
.blog-hero h1 {
  font-size: clamp(3rem, 1.5rem + 6vw, 6rem);
  font-stretch: 125%;
  font-weight: 900;
  line-height: .92;
  letter-spacing: -0.03em;
}
.blog-hero p { margin-top: 1.25rem; font-size: 1.2rem; color: var(--ink-soft); max-width: 38rem; }
.blog-list { padding-bottom: var(--section); }

.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--violet); }

.post { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 var(--section); }
.post-inner { max-width: 46rem; }
.post-head h1 {
  font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem);
  font-stretch: 118%;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  text-wrap: balance;
}
.post-meta { margin-top: 1rem; font-size: .95rem; color: var(--ink-soft); }
.post-perex { margin-top: 1.5rem; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); line-height: 1.5; }

.post-body { margin-top: 2.5rem; font-size: 1.08rem; line-height: 1.7; }
.post-body h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin: 2.5rem 0 .9rem; }
.post-body h3 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.post-body p { margin-bottom: 1.1rem; }
.post-body a { color: var(--violet); font-weight: 600; text-underline-offset: 3px; }
.post-body ul,
.post-body ol { margin: 0 0 1.25rem; display: grid; gap: .55rem; }
.post-body ul li { position: relative; padding-left: 1.6rem; }
.post-body ul li::before {
  content: "";
  position: absolute; left: .2rem; top: .62em;
  width: .6rem; height: .6rem;
  border-radius: 50%;
  background: var(--c, var(--hl-yellow));
  border: 1.5px solid var(--ink);
}
.post-body ol { counter-reset: item; }
.post-body ol li { position: relative; padding-left: 2.4rem; counter-increment: item; }
.post-body ol li::before {
  content: counter(item);
  position: absolute; left: 0; top: .05em;
  display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--c, var(--hl-yellow));
  font-size: .85rem;
  font-weight: 850;
  line-height: 1;
}
.post-body code { font-size: .92em; background: var(--mist); padding: .1em .35em; border-radius: 3px; }
.post-tip {
  position: relative;
  margin: 1.75rem 0;
  padding: 1.25rem 1.4rem;
  background: var(--hl-yellow);
  border-radius: 2px;
  box-shadow: 0 16px 22px -16px rgba(29, 26, 58, .55);
  transform: rotate(-.6deg);
}
.post-tip p:last-child { margin-bottom: 0; }

.post-cta {
  margin-top: 3rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--violet);
  color: #fff;
  border-radius: var(--radius);
  --focus: var(--note);
}
.post-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); font-stretch: 120%; }
.post-cta p { margin: .75rem 0 1.5rem; color: #ece8ff; }
.post-cta .btn:hover { box-shadow: 4px 4px 0 var(--hl-yellow); }

.post-more { padding-bottom: var(--section); }
.post-more h2 { margin-bottom: 1.75rem; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }

/* Sub-pages: services, about, contact ---------------------------------- */

.page-hero { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 2.5rem clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
.page-hero h1 { margin-top: 1rem; font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.9rem); font-stretch: 122%; font-weight: 900; line-height: .95; letter-spacing: -0.03em; text-wrap: balance; }
.page-hero .lead { margin: 1.25rem 0 1.75rem; max-width: 40rem; color: var(--ink-soft); }
.page-hero .post-cat { margin-top: .25rem; }
.page-note {
  align-self: center;
  padding: 1.5rem 1.6rem 1.4rem;
  background: var(--hl-yellow);
  border-radius: 2px;
  box-shadow: 0 22px 30px -22px rgba(29, 26, 58, .6);
  transform: rotate(1.6deg);
}
.page-note b { display: block; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-stretch: 125%; font-weight: 900; line-height: .95; letter-spacing: -0.03em; }
.page-note p { margin-top: .6rem; font-weight: 600; }
.page-note .link { display: inline-block; margin-top: .8rem; }
.page-hero .proof { align-self: center; }

.offer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2.5rem; }
.offer-list li { border-top: 5px solid var(--c, var(--hl-yellow)); padding-top: 1.1rem; }
.offer-list li:nth-child(6n + 2) { --c: var(--hl-pink); } .offer-list li:nth-child(6n + 3) { --c: var(--hl-green); }
.offer-list li:nth-child(6n + 4) { --c: var(--hl-blue); } .offer-list li:nth-child(6n + 5) { --c: var(--hl-orange); }
.offer-list li:nth-child(6n + 6) { --c: var(--violet); }
.offer-list h3 { font-size: 1.25rem; }
.offer-list p { margin-top: .45rem; color: var(--ink-soft); font-size: 1rem; }
.offer-list .link { display: inline-block; margin-top: .6rem; font-size: .95rem; }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.why li { --c: var(--hl-yellow); padding: 1.5rem; background: var(--paper); border: 2px solid var(--ink); border-top: 9px solid var(--c); border-radius: var(--radius); }
.why li:nth-child(2) { --c: var(--hl-pink); } .why li:nth-child(3) { --c: var(--hl-green); }
.why h3 { font-size: 1.3rem; }
.why p { margin-top: .5rem; color: var(--ink-soft); font-size: 1rem; }

.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.story-text p { margin-bottom: 1.1rem; font-size: 1.1rem; color: var(--ink-soft); max-width: 42rem; }
.story-text p:first-child { font-size: 1.3rem; color: var(--ink); font-weight: 600; line-height: 1.45; }

.contact-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.contact-card { --c: var(--hl-yellow); display: grid; gap: .35rem; align-content: start; padding: 1.5rem; background: var(--paper); border: 2px solid var(--ink); border-top: 9px solid var(--c); border-radius: var(--radius); }
.contact-card:nth-child(2) { --c: var(--hl-pink); } .contact-card:nth-child(3) { --c: var(--hl-green); }
.contact-card > span { font-size: .92rem; color: var(--ink-soft); }
.contact-card > a, .contact-card > strong { font-size: 1.35rem; font-weight: 800; font-stretch: 112%; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; }
.contact-card > a:hover { color: var(--violet); }
.contact-card p { color: var(--ink-soft); font-size: .98rem; }
.contact-card .links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .4rem; }
.company { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; max-width: 60rem; color: var(--ink-soft); }
.company b { color: var(--ink); }

/* 404 ----------------------------------------------------------------- */

.notfound { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--section); overflow: hidden; }
.notfound-head { position: relative; display: inline-block; }
.notfound-code {
  font-size: clamp(7rem, 4rem + 14vw, 15rem);
  font-stretch: 125%;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.notfound-stamp {
  position: absolute;
  left: 80%;
  bottom: 12%;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem);
  animation: stamp-in .5s cubic-bezier(.2, .7, .3, 1) .35s both;
}
.notfound h1 { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); max-width: 18ch; font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); font-stretch: 118%; font-weight: 850; line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; }
.notfound .lead { margin-top: 1.25rem; max-width: 38rem; color: var(--ink-soft); }
.notfound-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2.5rem; max-width: 60rem; }
.notfound-links a {
  --c: var(--hl-yellow);
  display: grid;
  gap: .25rem;
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-top: 8px solid var(--c);
  border-radius: var(--radius);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.15rem;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.notfound-links li:nth-child(2) a { --c: var(--hl-pink); }
.notfound-links li:nth-child(3) a { --c: var(--hl-green); }
.notfound-links li:nth-child(4) a { --c: var(--hl-blue); }
.notfound-links a span { font-size: .92rem; font-weight: 500; font-stretch: 100%; color: var(--ink-soft); }
.notfound-links a:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.notfound-game { margin-top: 2.5rem; color: var(--ink-soft); }
.notfound-game .link { background-color: transparent; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* Legal subpages ------------------------------------------------------ */

.legal { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) var(--section); }
.legal-inner { max-width: 46rem; }
.legal h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.6rem);
  font-stretch: 120%;
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
  text-wrap: balance;
}
.legal h2 { font-size: 1.35rem; font-stretch: 110%; line-height: 1.25; letter-spacing: -0.01em; margin: 2.25rem 0 .75rem; }
.legal p { margin-bottom: 1rem; color: var(--ink-soft); }
.legal ol { list-style: decimal; padding-left: 1.4rem; margin-bottom: 1rem; color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1rem; color: var(--ink-soft); }
.legal li { margin-bottom: .6rem; padding-left: .25rem; }
.legal strong { color: var(--ink); }
.legal a { color: var(--violet); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

.nobr,
.logo-name,
.btn--sm { white-space: nowrap; }

/* Motion -------------------------------------------------------------- */
/* Scroll-triggered: main.js adds .is-in to [data-anim] once it is on screen.
   Start states live behind .js + no-preference, so without JS or with reduced
   motion everything is simply in its final state. */

@media (prefers-reduced-motion: no-preference) {
  /* highlighter swipe */
  .js .hl[data-anim],
  .js [data-anim] .hl { background-size: 0% 100%; transition: background-size .8s cubic-bezier(.6, .1, .2, 1) var(--d, .15s); }
  .js .hl[data-anim].is-in,
  .js [data-anim].is-in .hl { background-size: 100% 100%; }
  .js .hl--hero { --d: 1.15s; }

  /* checks and step numbers stamp in, one after another */
  .js [data-anim] > li::before {
    opacity: 0;
    transform: scale(1.9) rotate(calc(var(--rot, 0deg) - 25deg));
    transition: opacity .15s, transform .4s cubic-bezier(.3, 1.6, .5, 1);
  }
  .js [data-anim].is-in > li::before { opacity: 1; transform: rotate(var(--rot, 0deg)); }
  .js [data-anim] > li:nth-child(2)::before { transition-delay: .12s; }
  .js [data-anim] > li:nth-child(3)::before { transition-delay: .24s; }
  .js [data-anim] > li:nth-child(4)::before { transition-delay: .36s; }
  .js [data-anim] > li:nth-child(5)::before { transition-delay: .48s; }
  .js .proof[data-anim] > li::before { transition-delay: calc(var(--i, 0) * .15s + 1.55s); }
  .js .proof[data-anim] > li:nth-child(2) { --i: 1; }
  .js .proof[data-anim] > li:nth-child(3) { --i: 2; }
  .js .proof[data-anim]:not(.is-in) > li { opacity: 0; }
  .js .proof[data-anim].is-in > li { animation: note-in .5s cubic-bezier(.3, 1.5, .5, 1) calc(var(--i, 0) * .15s + 1.15s) backwards; }

  /* digital icons and tags pop in (animation, so hover effects stay snappy afterwards) */
  .js .digital-list[data-anim]:not(.is-in) .digi-icon,
  .js .tags[data-anim]:not(.is-in) li { opacity: 0; }
  .js .digital-list[data-anim].is-in .digi-icon,
  .js .tags[data-anim].is-in li { animation: pop-in .45s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i, 0) * .08s) backwards; }
  .js .digital-list[data-anim].is-in li:hover .digi-icon { animation: wiggle .5s ease-in-out; }
  .digital-list li:nth-child(2), .tags li:nth-child(2) { --i: 1; }
  .digital-list li:nth-child(3), .tags li:nth-child(3) { --i: 2; }
  .digital-list li:nth-child(4), .tags li:nth-child(4) { --i: 3; }
  .tags li:nth-child(5) { --i: 4; }
  .tags li:nth-child(6) { --i: 5; }
  .tags li:nth-child(7) { --i: 6; }

  /* ledger: worries get crossed out, relief gets highlighted, the total gets ruled and signed */
  .js .ledger-table[data-anim] .strike { background-size: 0% 2px; transition: background-size .45s ease-in var(--d, 0s); }
  .js .ledger-table[data-anim].is-in .strike { background-size: 100% 2px; }
  .js .ledger-table[data-anim] .hl { --d: calc(var(--row) * .28s + .3s); }
  .js .ledger-table[data-anim] .strike { --d: calc(var(--row) * .28s); }
  .js .ledger-table tbody tr:nth-child(1) { --row: 0; }
  .js .ledger-table tbody tr:nth-child(2) { --row: 1; }
  .js .ledger-table tbody tr:nth-child(3) { --row: 2; }
  .js .ledger-table tbody tr:nth-child(4) { --row: 3; }
  .js .ledger-table tbody tr:nth-child(5) { --row: 4; }
  .js .ledger-table[data-anim] tfoot td::after { transform: scaleX(0); transition: transform .5s ease-out 1.7s; }
  .js .ledger-table[data-anim].is-in tfoot td::after { transform: none; }

  /* handwriting writes itself left to right */
  .js [data-anim] .hand {
    -webkit-mask: linear-gradient(90deg, #000 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
    mask: linear-gradient(90deg, #000 50%, transparent 50%) 100% 0 / 200% 100% no-repeat;
    transition: -webkit-mask-position .7s ease-out 2.1s, mask-position .7s ease-out 2.1s;
  }
  .js [data-anim].is-in .hand { -webkit-mask-position: 0 0; mask-position: 0 0; }
  .js .deadline[data-anim] .hand { transition-delay: .6s; }

  /* the sticky note slaps onto the page */
  .js .deadline[data-anim] { transform: rotate(-2deg) scale(.96); transition: transform .5s cubic-bezier(.3, 1.5, .5, 1); }
  .js .deadline[data-anim].is-in { transform: none; }

  /* closing stamp */
  .js .closing[data-anim] .stamp--closing { opacity: 0; }
  .js .closing[data-anim].is-in .stamp--closing { animation: stamp-in-closing .5s cubic-bezier(.2, .7, .3, 1) .3s both; }
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(-18px) rotate(-9deg) scale(1.12); }
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(.6) rotate(-20deg); }
}

@keyframes stamp-in-closing {
  0%   { opacity: 0; transform: scale(1.9) rotate(-3deg); }
  62%  { opacity: 1; transform: scale(.95) rotate(-11deg); }
  100% { opacity: 1; transform: scale(1) rotate(-10deg); }
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 1180px) {
  .nav { gap: 1.1rem; }
  .svc-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* below 1200px the headline always breaks into three lines; the stamp sits next to the short "Mzdy." */
@media (max-width: 1199px) {
  .hero-word { display: block; }
  .stamp--hero { top: .95em; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  /* backdrop-filter would make the header the containing block of the fixed menu panel below */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }

  /* Mobile menu: a full-height panel under the header (main.js locks the page scroll and moves the focus) */
  .nav {
    position: fixed;
    top: var(--header-h, 77px);
    left: 0; right: 0; bottom: 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
    background: var(--paper);
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-.75rem);
    transition: opacity .2s ease, transform .25s ease, visibility 0s linear .25s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s ease, transform .25s ease, visibility 0s; }
  .nav > a:not(.btn) {
    --c: var(--hl-yellow);
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.7rem;
    font-stretch: 118%;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.05;
  }
  .nav > a:not(.btn)::before {
    content: "";
    flex: none;
    width: .8rem; height: .8rem;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--c);
    transition: transform .2s cubic-bezier(.3, 1.6, .5, 1);
  }
  .nav > a:nth-of-type(2) { --c: var(--hl-pink); }
  .nav > a:nth-of-type(3) { --c: var(--hl-green); }
  .nav > a:nth-of-type(4) { --c: var(--hl-blue); }
  .nav > a:nth-of-type(5) { --c: var(--hl-orange); }
  .nav > a:nth-of-type(6) { --c: var(--hl-yellow); }
  .nav > a:not(.btn):active,
  .nav > a[aria-current="page"] { color: var(--violet); }
  .nav > a:not(.btn):active::before,
  .nav > a[aria-current="page"]::before { transform: scale(1.35); }
  .nav .btn { margin-top: 1.5rem; padding: 1rem 1.4rem; font-size: 1.05rem; }
  .nav-extra { display: grid; gap: .3rem; margin-top: auto; padding-top: 2rem; font-size: .95rem; color: var(--ink-soft); }
  .nav-extra a { justify-self: start; font-weight: 700; color: var(--ink); text-decoration: none; }
  .nav-stripes { display: flex; height: 6px; margin-top: 1rem; border-radius: 3px; overflow: hidden; }
  .nav-stripes b { flex: 1; background: var(--hl-yellow); }
  .nav-stripes b:nth-child(2) { background: var(--hl-pink); }
  .nav-stripes b:nth-child(3) { background: var(--hl-green); }
  .nav-stripes b:nth-child(4) { background: var(--hl-orange); }
  .nav-stripes b:nth-child(5) { background: var(--hl-blue); }
  /* the root only: overflow on body as well would make body the scroll container and unstick the sticky header
     once the page is scrolled (the menu then hung under an empty strip) */
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: var(--paper); border-bottom-color: var(--line); }
  .nav > :nth-child(2) { --i: 1; } .nav > :nth-child(3) { --i: 2; } .nav > :nth-child(4) { --i: 3; }
  .nav > :nth-child(5) { --i: 4; } .nav > :nth-child(6) { --i: 5; } .nav > :nth-child(7) { --i: 6; } .nav > :nth-child(8) { --i: 7; }

  .request-intro { position: static; }
  .hero-foot,
  .ledger-grid,
  .digital-grid,
  .expertise-grid,
  .request-grid,
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .proof { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; }
  .proof li:nth-child(n) { margin-left: 0; }

  .svc-main,
  .svc-more { grid-template-columns: minmax(0, 1fr); }
  .post-grid,
  .notfound-links,
  .offer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero-grid,
  .story,
  .why,
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .page-note { justify-self: start; max-width: 26rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 1rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .cert img { max-width: 240px; }
  .stamp--closing { position: relative; right: auto; bottom: auto; display: inline-block; margin-top: 2.5rem; font-size: 2.75rem; }
}

@media (max-width: 720px) {
  .stamp--hero { position: relative; right: auto; top: auto; margin: -.05em 0 0 .08em; font-size: .7em; }
  .proof { grid-template-columns: minmax(0, 1fr); }
  .deadline { grid-template-columns: minmax(0, 1fr); padding-bottom: 4.5rem; }
  .deadline-note { left: auto; right: 1.5rem; bottom: 1.25rem; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .person { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1.25rem; align-items: start; }
  .person-photo { grid-row: 1 / span 3; margin-bottom: 0; }
  .person-photo--initials span { width: 5rem; height: 5rem; font-size: 1.6rem; border-width: 4px; outline-offset: -10px; }
  .person-photo { margin: 0 6px 6px 0; box-shadow: 6px 6px 0 var(--c); }
  .person:hover .person-photo { box-shadow: 8px 8px 0 var(--c); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .actions .btn { width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .quotes,
  .digital-list,
  .post-grid,
  .offer-list,
  .company { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .ledger-table { font-size: .95rem; }
  .ledger-table th, .ledger-table td { padding: .8rem .75rem; }
  .ledger-table tfoot .hand { bottom: -2rem; font-size: 1.6rem; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .logo-sub { display: none; }
  .nav-toggle-label { display: none; }
  .clients-list { gap: .9rem 1.75rem; }
  .client-logo { height: 28px; }
  .client-logo--tamtomy { height: 32px; }
  .client-logo--spirits { height: 21px; }
}

@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .nav.is-open > * { animation: nav-in .4s cubic-bezier(.2, .7, .3, 1) calc(var(--i, 0) * 45ms + 60ms) both; }
}

@keyframes nav-in {
  from { opacity: 0; transform: translateX(-14px); }
}

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

