/* ═══════════════════════════════════════════════
   devinfi — shared stylesheet (production)
   palette: cream + tomato + ink + sun + mint
   target: iOS / Mac / Android / Windows / Linux
   ═══════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --cream:        #F4EAD1;
  --cream-deep:   #E8D9B6;
  --cream-warm:   #DFCC9E;
  --paper:        #FAF6EA;
  --paper-soft:   #F4EFE3;

  --ink:          #1A1614;
  --ink-soft:     #2E2925;
  --ink-mute:     rgba(26, 22, 20, 0.62);
  --ink-faint:    rgba(26, 22, 20, 0.18);
  --hairline:     rgba(26, 22, 20, 0.16);

  --tomato:       #D33D2A;
  --tomato-deep:  #A82E1E;
  --mint:         #007355;
  --mint-bright:  #00A074;
  --sun:          #F2B33D;

  --shadow-block: 4px 4px 0 var(--ink);
  --shadow-block-sm: 2px 2px 0 var(--ink);
  --shadow-block-lg: 6px 6px 0 var(--ink);
}

/* ───── RESET ───── */
* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--tomato); outline-offset: 2px; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px; /* clear sticky masthead on anchor jumps */
  /* Defensive overflow-x guard. body already has it, but iOS Safari needs
     it on the root element too to actually prevent rubber-band scroll. */
  overflow-x: hidden;
  max-width: 100%;
  /* Firefox custom scrollbar (matches brand palette). */
  scrollbar-width: thin;
  scrollbar-color: var(--tomato) var(--cream);
}
/* ───── custom scrollbar (Chromium / Safari / Edge) ─────
   Matches paper / tomato palette. Mobile browsers usually only show
   the bar transiently during scroll — the colour still inherits, so
   touch scroll on iOS / Android picks up the brand colour too. */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
  border-left: 1px solid rgba(26, 22, 20, 0.12);
}
::-webkit-scrollbar-thumb {
  background: var(--tomato);
  border: 3px solid var(--cream);
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(26, 22, 20, 0.18);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink);
}
::-webkit-scrollbar-thumb:active {
  background: #5a322a;
}
::-webkit-scrollbar-corner { background: var(--cream); }
/* Small inner scrollers (modals, code blocks, drawer body) get a thinner version. */
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { border-width: 2px; }
/* Respect "increased contrast" / high-contrast mode — let the OS take over. */
@media (forced-colors: active) {
  ::-webkit-scrollbar-thumb { background: CanvasText; border-color: Canvas; }
  ::-webkit-scrollbar-track { background: Canvas; }
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  /* iOS safe area */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}
::selection { background: var(--tomato); color: var(--paper); }

/* paper grain (subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(98deg, transparent 0 60px, rgba(26,22,20,0.018) 60px 80px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgba(26,22,20,0.012) 14px 15px);
  pointer-events: none;
  z-index: 1;
}
body > * { position: relative; z-index: 2; }

img, svg { display: block; max-width: 100%; height: auto; }
button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select { font: inherit; color: inherit; }

/* ───── i18n: language visibility ───── */
html[lang="bg"] [lang="en"]:not(html):not(input):not(textarea):not(select):not(option) { display: none !important; }
html[lang="en"] [lang="bg"]:not(html):not(input):not(textarea):not(select):not(option) { display: none !important; }

/* ───── A11Y: skip-to-content link ───── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--tomato);
  transition: top 150ms ease;
}
.skip-link:focus { top: 12px; }

/* ───── Reduced motion respect ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .deco-walker, .steam path { animation: none !important; }
}

/* ───── Print styles ───── */
@media print {
  .masthead, .main-footer, .deco-walker, .deco-sticky, .desk-wrap, .cfg-section, .skip-link { display: none !important; }
  body { background: white; color: black; }
  body::before { display: none; }
  a::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
  .btn, .card, .svc, .nav-tile { box-shadow: none !important; border: 1px solid #333 !important; }
}

/* ───── UTILITIES ───── */
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.hand { font-family: 'Caveat', cursive; }
.italic { font-style: italic; }
.tabnum { font-variant-numeric: tabular-nums; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container-narrow { padding: 0 48px; } }

/* sticky / mute helpers */
.text-mute { color: var(--ink-mute); }
.text-red  { color: var(--tomato); }
.text-mint { color: var(--mint); }

/* highlighter */
.hl-sun {
  background: linear-gradient(180deg, transparent 65%, var(--sun) 65%, var(--sun) 92%, transparent 92%);
  padding: 0 4px;
}
.hl-mint {
  background: linear-gradient(180deg, transparent 65%, rgba(0,160,116,0.28) 65%);
  padding: 0 2px;
}

/* ───── MASTHEAD (used on every page) ───── */
.masthead {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(244, 234, 209, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--ink);
  padding: 14px 24px;
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
  padding-top: max(14px, env(safe-area-inset-top));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}
@media (min-width: 1024px) { .masthead { padding: 16px 40px; } }

.mast-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mast-back {
  display: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  border-radius: 50%;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
  box-shadow: 2px 2px 0 var(--ink);
  flex-shrink: 0;
}
.mast-back.is-visible { display: inline-flex; }
.mast-back:hover,
.mast-back:focus-visible {
  background: var(--ink);
  color: var(--paper);
  transform: translate(-3px, -1px);
  box-shadow: 5px 3px 0 var(--tomato);
  outline: none;
}
.mast-back:active {
  transform: translate(0, 0);
  box-shadow: 0 0 0 var(--ink);
}

.wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.045em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}
.wordmark .inf {
  display: inline-block;
  color: var(--tomato);
  margin-left: 1px;
  transform: translateY(-1px);
}

.mast-links {
  display: none;
  gap: 6px;
  align-items: center;
  justify-self: center;
}
@media (min-width: 980px) { .mast-links { display: flex; } }
.mast-links a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  transition: color 160ms ease, background 160ms ease;
  position: relative;
  padding: 8px 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  border-radius: 999px;
}
.mast-links a::before {
  content: attr(data-num);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--tomato);
  opacity: 0.78;
  letter-spacing: 0.06em;
  transform: translateY(-1px);
}
.mast-links a:hover {
  color: var(--ink);
  background: rgba(196, 69, 54, 0.10);
}
.mast-links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1.5px;
  background: var(--tomato);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mast-links a:hover::after { transform: scaleX(1); }
.mast-links a.is-active {
  color: var(--tomato);
  font-weight: 600;
  background: rgba(196, 69, 54, 0.08);
}
.mast-links a.is-active::after {
  transform: scaleX(1);
  background: var(--tomato);
  height: 2px;
}
.mast-links a.is-active::before {
  color: var(--tomato);
  opacity: 1;
}

.mast-right { display: flex; gap: 12px; align-items: center; }
.lang-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1.5px solid var(--ink);
  padding: 6px 10px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 150ms ease;
}
.lang-pill:hover { background: var(--cream-deep); }
.lang-pill [data-lang-tag] { transition: color 150ms ease; }
.lang-pill [data-lang-tag].active { font-weight: 700; color: var(--tomato); }
.lang-pill [data-lang-tag].dim { color: var(--ink-mute); }
.lang-pill .sep { color: var(--ink-faint); }

/* mobile menu button (placeholder visual) */
.mast-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1.5px solid var(--ink);
  padding: 6px 10px;
  background: transparent;
  cursor: pointer;
}
@media (min-width: 860px) { .mast-menu { display: none; } }

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 18px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-block-sm);
  transition: background 150ms ease, color 150ms ease, transform 80ms ease, box-shadow 80ms ease;
  line-height: 1.1;
  white-space: nowrap;
  min-height: 44px; /* Apple HIG / WCAG touch target */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--cream-deep); }
.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.btn .arr { transition: transform 150ms ease; display: inline-block; }
.btn:hover .arr { transform: translateX(3px); }

.btn-cta {
  background: var(--tomato);
  color: var(--paper);
}
.btn-cta:hover { background: var(--ink); color: var(--paper); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover { background: var(--tomato); color: var(--paper); }

.btn-mint {
  background: var(--mint);
  color: var(--paper);
}
.btn-mint:hover { background: var(--mint-bright); }

.btn-lg {
  padding: 16px 24px;
  font-size: 13px;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  box-shadow: var(--shadow-block-sm);
  min-height: 36px;
}

/* ───── PAGE SHELL ───── */
main {
  padding-top: 70px;  /* clear masthead */
}

.page-section {
  padding: 80px 0;
  position: relative;
}
@media (min-width: 1024px) { .page-section { padding: 100px 0; } }

.page-section.compact { padding: 48px 0; }
@media (min-width: 1024px) { .page-section.compact { padding: 60px 0; } }

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-tag .red { color: var(--tomato); font-weight: 700; }
.section-tag .mint { color: var(--mint); font-weight: 700; }
.section-tag .dash {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--ink);
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 16px;
}
.section-title .red { color: var(--tomato); }

.section-deck {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
}

/* ───── BREADCRUMBS (subdirectory pages) ───── */
.breadcrumbs {
  padding: 90px 0 0;
  background: var(--cream);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--ink-faint);
  font-weight: 400;
}
.breadcrumbs a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
  color: var(--tomato);
  border-bottom-color: var(--tomato);
}
.breadcrumbs li[aria-current="page"] {
  color: var(--ink);
  font-weight: 700;
}
@media (max-width: 640px) {
  .breadcrumbs { padding-top: 84px; font-size: 10px; }
  .breadcrumbs ol { gap: 6px; }
}

/* ───── HERO (common pattern) ───── */
.hero {
  padding: 100px 0 60px;
  position: relative;
}
@media (min-width: 1024px) { .hero { padding: 120px 0 80px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1fr auto; }
}

h1.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 18px;
}
h1.hero-title .red { color: var(--tomato); }

.hero-deck {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-hint {
  font-family: 'Caveat', cursive;
  color: var(--tomato);
  font-size: 1.5rem;
  line-height: 1.1;
  transform: rotate(-3deg);
  text-align: right;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* trust strip used under heros / above footer */
.trust-strip {
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 22px 0;
}
.trust-strip .items {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
@media (min-width: 700px) { .trust-strip .items { grid-template-columns: repeat(4, 1fr); } }
.trust-strip .item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}
.trust-strip .item strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 4px;
  text-transform: none;
}
.trust-strip .item strong.red { color: var(--tomato); }
.trust-strip .item strong.mint { color: var(--mint); }

/* ───── CARD PATTERNS ───── */
.card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block);
  padding: 24px 26px;
  transition: transform 220ms ease, box-shadow 220ms ease;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-block-lg);
}
.card.flat {
  box-shadow: none;
  background: var(--paper);
}
.card.flat:hover { transform: none; box-shadow: var(--shadow-block-sm); }

/* "tape" decoration on a card */
.tape {
  position: absolute;
  width: 60px;
  height: 22px;
  background: rgba(242, 179, 61, 0.7);
  border: 1px solid rgba(26, 22, 20, 0.18);
  transform: rotate(-3deg);
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(26,22,20,0.15) 3px 4px);
}
.tape::before { left: 0; }
.tape::after { right: 0; }

/* ───── PRICE / STAMP CHIPS ───── */
.stamp-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--ink);
  padding: 4px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  box-shadow: var(--shadow-block-sm);
}
.stamp-chip.red { color: var(--tomato); border-color: var(--tomato); }
.stamp-chip.mint { color: var(--mint); border-color: var(--mint); }
.stamp-chip.filled { background: var(--ink); color: var(--paper); }

/* ───── BADGES ───── */
.badge {
  display: inline-block;
  background: var(--tomato);
  color: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  border-radius: 1px;
}
.badge.mint { background: var(--mint); }
.badge.sun { background: var(--sun); color: var(--ink); }
.badge.ink { background: var(--ink); color: var(--paper); }

/* ───── FORMS ───── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  color: var(--ink);
  border-radius: 0;
  transition: all 150ms ease;
  box-shadow: var(--shadow-block-sm);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--tomato);
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--tomato);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-mute);
  font-style: italic;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field select { appearance: none; cursor: pointer; }
.field .help {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ───── FOOTER (used on every page) ───── */
footer.main-footer {
  background: var(--ink);
  color: var(--cream);
  border-top: 1.5px solid var(--ink);
}
.footer-top {
  padding: 60px 24px 40px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 70px 48px 50px; }
}

.footer-brand .wordmark {
  color: var(--cream);
  font-size: 2rem;
  margin-bottom: 14px;
}
.footer-brand p {
  font-family: 'Caveat', cursive;
  color: var(--sun);
  font-size: 1.3rem;
  max-width: 320px;
  line-height: 1.3;
}

.footer-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sun);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-left: 0; }
.footer-contact {
  list-style: none;
  padding-left: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
}
.footer-contact a, .footer-contact span {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  transition: color 150ms ease, opacity 150ms ease;
}
.footer-contact a:hover { color: var(--sun); opacity: 1; }
.footer-col a {
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  font-size: 0.95rem;
  transition: all 150ms ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-col a:hover { color: var(--sun); opacity: 1; gap: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(244, 234, 209, 0.16);
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(244, 234, 209, 0.6);
}
@media (min-width: 1024px) { .footer-bottom { padding: 22px 48px; } }
.footer-bottom .sig {
  font-family: 'Caveat', cursive;
  color: var(--sun);
  text-transform: none;
  font-size: 1rem;
  letter-spacing: 0;
}
.footer-bottom .legal-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-bottom .legal-links a {
  color: rgba(244, 234, 209, 0.7);
  text-decoration: none;
  transition: color 150ms ease;
}
.footer-bottom .legal-links a:hover { color: var(--sun); }
.footer-bottom .legal-links .sep { color: rgba(244, 234, 209, 0.3); }

/* ═══════════════════════════════════════════════
   SUB-COMPONENTS (used on specific pages)
   ═══════════════════════════════════════════════ */

/* ───── BIG NAV TILES (home fallback nav + service cards) ───── */
.nav-tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) { .nav-tiles { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 1024px) { .nav-tiles { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.nav-tile {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block);
  padding: 24px 24px 22px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: all 220ms ease;
  min-height: 200px;
}
.nav-tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-block-lg);
}
.nav-tile:hover .nt-arrow { transform: translate(4px, -4px); color: var(--tomato); }
.nav-tile .nt-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}
.nav-tile .nt-num .red { color: var(--tomato); }
.nav-tile h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  line-height: 1;
}
.nav-tile h3 .red { color: var(--tomato); }
.nav-tile p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: auto;
}
.nav-tile .nt-arrow {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 1.6rem;
  color: var(--ink);
  transition: all 200ms ease;
  line-height: 1;
}

/* ───── SERVICE / PRICING CARDS ───── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }

.svc {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block);
  padding: 28px 24px 26px;
  transition: all 220ms ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.svc:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-block-lg);
}
.svc-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--tomato);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.svc h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.1;
}
.svc p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 18px;
  line-height: 1.5;
}
.svc .svc-price {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--ink-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.svc .svc-price .from {
  color: var(--ink-mute);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.svc .svc-price .amt {
  color: var(--tomato);
  font-weight: 700;
  font-size: 18px;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tomato);
  text-decoration: none;
  align-self: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease;
  padding: 4px 0;
}
.svc-link:hover, .svc-link:focus-visible {
  border-bottom-color: var(--tomato);
  outline: none;
}

/* ───── PROCESS TIMELINE (used on several pages) ───── */
.timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  position: relative;
}
@media (min-width: 760px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 8%; right: 8%;
    height: 2px;
    background: var(--ink);
  }
}
.tl-step {
  position: relative;
  z-index: 1;
}
@media (min-width: 760px) { .tl-step { text-align: center; padding: 0 12px; } }
.tl-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--tomato);
  border: 2px solid var(--ink);
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--ink);
}
@media (min-width: 760px) { .tl-dot { margin: 0 auto 18px; } }
.tl-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.tl-dur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tl-desc {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 8px;
}

/* ───── CONFIGURATOR ───── */
.cfg-section {
  background: var(--paper);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 80px 0;
}
.cfg-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) { .cfg-inner { grid-template-columns: 380px 1fr; gap: 64px; padding: 0 48px; } }

.cfg-card {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block-lg);
  padding: 30px 30px 24px;
  position: relative;
}
.cfg-card::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px dashed var(--ink-mute);
  opacity: 0.35;
  pointer-events: none;
}
.cfg-tape {
  position: absolute;
  top: -12px; left: 28px;
}

.cfg-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.cfg-header h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.cfg-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
}

.cfg-sec { margin-bottom: 22px; }
.cfg-sec-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tomato);
  margin-bottom: 10px;
  font-weight: 700;
}

.cfg-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cfg-chip {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: all 150ms ease;
  line-height: 1.2;
  text-align: left;
  flex: 1;
  min-width: 90px;
  box-shadow: var(--shadow-block-sm);
}
.cfg-chip:hover { background: var(--cream-deep); }
.cfg-chip.active {
  background: var(--tomato);
  color: var(--paper);
}
.cfg-chip .sub {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  margin-top: 3px;
  letter-spacing: 0.04em;
  opacity: 0.78;
}

.cfg-slider-wrap {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 12px 16px;
}
.cfg-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}
.cfg-slider-head .v {
  color: var(--tomato);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
}
.cfg-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--ink);
  outline: none;
  cursor: pointer;
}
.cfg-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  background: var(--tomato);
  border: 2px solid var(--ink);
  cursor: pointer;
  border-radius: 50%;
  transition: transform 100ms ease;
}
.cfg-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.cfg-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--tomato);
  border: 2px solid var(--ink);
  cursor: pointer;
  border-radius: 50%;
}
.cfg-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--ink-mute);
}

.cfg-addons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.cfg-addon {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  padding: 10px 12px;
  cursor: pointer;
  transition: all 150ms ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  user-select: none;
}
.cfg-addon:hover { background: var(--cream-deep); }
.cfg-addon.is-on {
  background: var(--mint);
  color: var(--paper);
}
.cfg-addon .box {
  width: 16px; height: 16px;
  border: 1.5px solid currentColor;
  flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.cfg-addon.is-on .box { background: var(--paper); color: var(--mint); }
.cfg-addon .lbl { flex: 1; font-weight: 500; line-height: 1.15; }
.cfg-addon .p {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.78;
  white-space: nowrap;
}
.cfg-addon-note {
  margin-top: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(242, 179, 61, 0.18), rgba(242, 179, 61, 0.06));
  border-left: 3px solid var(--sun);
  border-top: 1px dashed rgba(26, 22, 20, 0.18);
  border-right: 1px dashed rgba(26, 22, 20, 0.18);
  border-bottom: 1px dashed rgba(26, 22, 20, 0.18);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  display: grid;
  gap: 6px;
  animation: cfgNoteIn 240ms ease;
}
.cfg-addon-note[hidden] { display: none; }
.cfg-addon-note strong {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--tomato);
}
.cfg-addon-note em {
  font-style: normal;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px dotted rgba(26, 22, 20, 0.2);
  padding-top: 6px;
  margin-top: 2px;
}
.cfg-addon-note em u { text-decoration: underline; text-decoration-thickness: 1.5px; }
@keyframes cfgNoteIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cfg-total {
  margin-top: 26px;
  padding: 18px 22px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  position: relative;
}
.cfg-total::before {
  content: "";
  position: absolute;
  top: -6px; right: -6px;
  width: 100%; height: 100%;
  background: var(--tomato);
  z-index: -1;
}
.cfg-total .l1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.7;
  margin-bottom: 4px;
}
.cfg-total .price {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: transform 200ms ease;
}
.cfg-total .price .cur { color: var(--cream-warm); font-weight: 500; font-size: 1.4rem; margin-right: 4px; }
.cfg-total .l3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  margin-top: 6px;
  color: var(--cream-warm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cfg-send {
  background: var(--tomato);
  color: var(--paper);
  border: 2px solid var(--paper);
  padding: 14px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 150ms ease;
  white-space: nowrap;
}
.cfg-send:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cfg-send .arr { margin-left: 6px; display: inline-block; transition: transform 150ms ease; }
.cfg-send:hover .arr { transform: translateX(3px); }

.cfg-foot {
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-align: center;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}
.cfg-total .price.flash { animation: priceFlash 360ms ease; }
@keyframes priceFlash {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); color: var(--sun); }
  100% { transform: scale(1); }
}

/* ───── MOBILE NAV DRAWER ─────
   Right-side slide-in panel over a dimmed scrim. Matches the site palette
   (cream panel, tomato accents, ink text). Animates with prefers-reduced-
   motion respected via the global media query near the top of this file. */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26, 22, 20, 0);
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  pointer-events: none;
  visibility: hidden;
  transition: background 240ms ease, visibility 0s linear 240ms;
}
.mobile-drawer.is-open {
  background: rgba(26, 22, 20, 0.55);
  pointer-events: auto;
  visibility: visible;
  transition: background 240ms ease, visibility 0s linear 0s;
}
.drawer-panel {
  width: min(360px, 88vw);
  max-width: 100%;
  background: var(--cream);
  color: var(--ink);
  border-left: 1.5px solid var(--ink);
  box-shadow: -6px 0 0 var(--ink), -14px 0 32px rgba(26, 22, 20, 0.28);
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  padding-right: max(24px, env(safe-area-inset-right));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(105%);
  transition: transform 280ms cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.mobile-drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-panel .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.drawer-panel .wordmark { color: var(--ink); font-size: 1.35rem; }
.drawer-panel .wordmark .inf { color: var(--tomato); }
.drawer-panel .close {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 6px 12px;
  color: var(--ink);
  cursor: pointer;
  min-height: 36px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-block-sm);
  transition: background 150ms ease, transform 80ms ease, box-shadow 80ms ease;
}
.drawer-panel .close:hover { background: var(--cream-deep); }
.drawer-panel .close:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

.drawer-panel nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-panel nav a {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-decoration: none;
  padding: 12px 8px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  line-height: 1.1;
  transition: color 150ms ease, padding-left 180ms ease, background 150ms ease;
  position: relative;
}
.drawer-panel nav a::before {
  content: "";
  position: absolute;
  left: -8px; top: 50%;
  width: 4px; height: 0;
  background: var(--tomato);
  transform: translateY(-50%);
  transition: height 180ms ease;
}
.drawer-panel nav a:hover,
.drawer-panel nav a:focus-visible {
  color: var(--tomato);
  padding-left: 16px;
  outline: none;
}
.drawer-panel nav a:hover::before,
.drawer-panel nav a:focus-visible::before { height: 60%; }
.drawer-panel nav a .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--tomato);
  letter-spacing: 0.14em;
  font-weight: 700;
}

/* Optional CTA inside the drawer (added on home/services if needed). */
.drawer-panel .drawer-cta {
  margin-top: 18px;
  background: var(--tomato);
  color: var(--paper);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 18px;
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block-sm);
  text-align: center;
  display: block;
}

.drawer-panel .footer {
  margin-top: auto;
  padding-top: 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ink-mute);
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.drawer-panel .footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted transparent;
  transition: border-color 150ms ease, color 150ms ease;
}
.drawer-panel .footer a:hover {
  color: var(--tomato);
  border-bottom-color: var(--tomato);
}

/* Lock body scroll while drawer is open (without jumping). */
body.drawer-locked { overflow: hidden; }

@media (min-width: 860px) {
  .mobile-drawer { display: none !important; }
}
@media (max-width: 360px) {
  .drawer-panel nav a { font-size: 1.3rem; }
}

/* ───── FORM SUCCESS / ERROR ───── */
.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  display: none;
}
.form-status.is-success {
  display: block;
  border-color: var(--mint);
  background: rgba(0, 160, 116, 0.08);
  color: var(--mint);
}
.form-status.is-error {
  display: block;
  border-color: var(--tomato);
  background: rgba(211, 61, 42, 0.08);
  color: var(--tomato);
}

/* ───── DEEP RESPONSIVE TWEAKS ───── */
@media (max-width: 720px) {
  /* Below 720px there isn't room for both the CTA pill and the menu button
     next to the lang toggle. Drop the inline CTA — the menu drawer has it. */
  .mast-right .btn-cta { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .hero { padding: 80px 0 50px; }
  .page-section { padding: 60px 0; }
  .footer-top { padding: 50px 20px 36px; }
  .footer-bottom { padding: 20px; flex-direction: column; align-items: flex-start; }
  .masthead { padding: 10px 14px; min-height: 56px; gap: 10px; }
  .wordmark { font-size: 1.25rem; }
  .lang-pill { padding: 5px 8px; font-size: 10px; min-height: 30px; }
  .mast-menu { padding: 5px 8px; font-size: 10px; }
  .mast-right { gap: 8px; }
}

@media (max-width: 360px) {
  .wordmark { font-size: 1.15rem; }
  .lang-pill { padding: 4px 7px; }
  .mast-menu { padding: 4px 7px; }
}

/* Larger screens — keep content from sprawling */
@media (min-width: 1600px) {
  body { font-size: 17px; }
}

/* ───── HIGH-CONTRAST / FORCED COLORS (Windows accessibility) ───── */
@media (forced-colors: active) {
  .btn, .card, .nav-tile, .svc, .cfg-card, .item { border: 2px solid CanvasText !important; }
  .btn-cta, .btn-ink { background: ButtonFace !important; color: ButtonText !important; }
}

/* ───── LEGAL PAGES (privacy / terms / 404) ───── */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.legal h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  line-height: 1.05;
}
.legal h1 .red { color: var(--tomato); }
.legal .updated {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--ink);
}
.legal h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}
.legal p, .legal li {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.65;
}
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 16px; }
.legal a { color: var(--tomato); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { background: var(--sun); }
.legal .toc {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block-sm);
  padding: 18px 22px;
  margin-bottom: 40px;
}
.legal .toc h2 { margin: 0 0 10px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.12em; font-family: 'JetBrains Mono', monospace; color: var(--tomato); }
.legal .toc ol { padding-left: 20px; margin: 0; }
.legal .toc li { font-size: 0.92rem; margin-bottom: 4px; }
.legal .toc a { text-decoration: none; }

/* ───── 404 page ───── */
.fourohfour {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 80px 24px;
  text-align: center;
}
.fourohfour .big {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 0.9;
  color: var(--tomato);
  letter-spacing: -0.06em;
  margin-bottom: 10px;
}
.fourohfour .big .inf { display: inline-block; color: var(--ink); }
.fourohfour h1 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.fourohfour p { color: var(--ink-soft); max-width: 480px; margin: 0 auto 28px; }
.fourohfour .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ───── WORK / PORTFOLIO ───── */
.proj-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 720px) { .proj-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }

.proj {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
  overflow: hidden;
}
.proj:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-block-lg); }
.proj.is-placeholder { background: var(--cream-deep); }
.proj-mock {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  border-bottom: 1.5px solid var(--ink);
}
.proj-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proj-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.proj-meta .yr { color: var(--tomato); font-weight: 700; }
.proj h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 4px;
}
.proj p { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.5; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.proj-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 3px 9px;
  border: 1px solid var(--ink);
  background: var(--cream);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
.proj-tag.mint { background: var(--mint); color: var(--paper); border-color: var(--mint); }

/* mock visual variants */
.mock-weather { background: linear-gradient(135deg, #0a1a2a 0%, #103045 100%); position: relative; }
.mock-weather::before {
  content: ""; position: absolute; top: 20%; right: 18%;
  width: 45%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #4DAFFF 0%, #1F5F9F 60%, #0a2a44 100%);
  box-shadow: inset -10px -20px 30px rgba(0,0,0,0.5), 0 0 40px rgba(77,175,255,0.3);
}
.mock-weather::after {
  content: "weather · 3d globe · multilang";
  position: absolute; bottom: 16px; left: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.55); letter-spacing: 0.12em; text-transform: uppercase;
}

.mock-gradeup { background: linear-gradient(135deg, #1a0a2a 0%, #2a1045 100%); position: relative; }
.mock-gradeup::before {
  content: ""; position: absolute; inset: 22% 18% 28%;
  background:
    linear-gradient(0deg, rgba(0,160,116,0.4) 0 12%, transparent 12%) 0% 100% / 14% 100% no-repeat,
    linear-gradient(0deg, rgba(0,160,116,0.6) 0 28%, transparent 28%) 14% 100% / 14% 100% no-repeat,
    linear-gradient(0deg, rgba(0,160,116,0.5) 0 42%, transparent 42%) 28% 100% / 14% 100% no-repeat,
    linear-gradient(0deg, rgba(0,160,116,0.7) 0 60%, transparent 60%) 42% 100% / 14% 100% no-repeat,
    linear-gradient(0deg, rgba(0,160,116,0.6) 0 75%, transparent 75%) 56% 100% / 14% 100% no-repeat,
    linear-gradient(0deg, rgba(0,160,116,0.85) 0 88%, transparent 88%) 70% 100% / 14% 100% no-repeat,
    linear-gradient(0deg, rgba(0,160,116,0.55) 0 96%, transparent 96%) 84% 100% / 14% 100% no-repeat;
}
.mock-gradeup::after {
  content: "AI · neural net · azure · team";
  position: absolute; bottom: 16px; left: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.55); letter-spacing: 0.12em; text-transform: uppercase;
}

.mock-devinfi {
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--cream-warm) 100%);
  position: relative;
}
.mock-devinfi::before {
  content: "devinf∞";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'Inter', sans-serif; font-weight: 800;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  letter-spacing: -0.045em; color: var(--ink);
}
.mock-devinfi::after {
  content: "this site · 2026 · in-house build";
  position: absolute; bottom: 16px; left: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase;
}

.mock-empty {
  background: var(--cream-deep);
  border: none;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}
.mock-empty::before {
  content: "[ налично ]";
  font-family: 'Caveat', cursive;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--tomato);
  font-weight: 700;
  transform: rotate(-4deg);
  letter-spacing: -0.01em;
}
.mock-empty::after {
  content: "twoят проект тук →";
  position: absolute; bottom: 16px; left: 18px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.12em; text-transform: uppercase;
}

/* ───── ABOUT — team / values ───── */
.values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } }

.value-card {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block-sm);
  padding: 26px 26px 22px;
}
.value-card .v-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--tomato);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.value-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.value-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }

/* ───── CONTACT page specifics ───── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; }
}
.contact-info {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block);
  padding: 28px 28px 26px;
  position: relative;
}
.contact-info h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  line-height: 1.1;
}
.contact-line {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-faint);
  align-items: baseline;
}
.contact-line .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  font-weight: 600;
}
.contact-line a, .contact-line span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
  font-weight: 500;
}
.contact-line a:hover { color: var(--tomato); }

.founder-note {
  margin-top: 22px;
  padding: 18px 20px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  position: relative;
}
.founder-note .from {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tomato);
  font-weight: 700;
  margin-bottom: 8px;
}
.founder-note p {
  font-family: 'Caveat', cursive;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 12px;
}
.founder-note .sig {
  font-family: 'Caveat', cursive;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--tomato);
  border-top: 1px solid var(--ink-faint);
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.founder-note .sig small {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-mute);
  font-weight: 500;
  letter-spacing: 0.06em;
}

.contact-form-wrap {
  background: var(--cream);
  border: 1.5px solid var(--ink);
  box-shadow: var(--shadow-block-lg);
  padding: 32px 32px 28px;
}
.contact-form-wrap > h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}
.contact-form-wrap > p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.contact-form-wrap form {
  display: grid;
  gap: 18px;
}
.field .invalid-msg {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--tomato);
  display: none;
  margin-top: 2px;
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--tomato);
  box-shadow: 3px 3px 0 var(--tomato);
}
.field.is-invalid .invalid-msg { display: block; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.consent input[type="checkbox"] {
  width: 20px; height: 20px;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--tomato);
  cursor: pointer;
}
.consent a { color: var(--tomato); text-decoration: underline; text-underline-offset: 2px; }

/* ═══════════════════════════════════════════════
   Floating contact dock (WhatsApp/Viber/Phone/Email)
   Injected globally by site.js. Hidden on print.
   ═══════════════════════════════════════════════ */
.float-dock {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9999;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.float-dock .float-btn,
.float-dock .float-menu { pointer-events: auto; }

.float-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: var(--tomato);
  color: #fff;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  border-radius: 999px;
}
.float-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.float-btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.float-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}
.float-btn-label { display: inline-block; }

.float-menu {
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 280px;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  animation: float-pop 180ms ease;
}
/* The HTML [hidden] attribute must beat the explicit display:flex above.
   Without this rule the popover renders open on every page load. */
.float-menu[hidden] { display: none !important; }
.launch-offer[hidden] { display: none !important; }
@keyframes float-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.float-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 30, 24, 0.12);
  transition: background 120ms ease;
}
.float-item:last-child { border-bottom: 0; }
.float-item:hover, .float-item:focus-visible {
  background: var(--paper);
  outline: none;
}
.float-item:focus-visible { box-shadow: inset 0 0 0 2px var(--tomato); }
.float-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  flex-shrink: 0;
  color: var(--ink);
}
.float-item[data-channel="whatsapp"] .float-icon { background: #25D366; color: #fff; border-color: var(--ink); }
.float-item[data-channel="viber"] .float-icon    { background: #7360F2; color: #fff; border-color: var(--ink); }
.float-item[data-channel="call"] .float-icon     { background: var(--tomato); color: #fff; border-color: var(--ink); }
.float-item[data-channel="email"] .float-icon    { background: var(--sun); color: var(--ink); border-color: var(--ink); }
.float-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.float-title { font-weight: 700; letter-spacing: -0.005em; }
.float-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .float-btn-label { display: none; }
  .float-btn { padding: 14px; }
  .float-menu { min-width: 260px; }
}

/* If launch offer is showing, lift the dock above the banner */
body.has-offer .float-dock { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 64px); }
@media (max-width: 640px) {
  body.has-offer .float-dock { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 96px); }
}

/* ═══════════════════════════════════════════════
   Launch offer banner (dismissible, persists via localStorage)
   ═══════════════════════════════════════════════ */
.launch-offer {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 9998;
  background: var(--ink);
  color: var(--cream);
  border-top: 1.5px solid var(--cream);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  animation: offer-slide 320ms ease;
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes offer-slide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.launch-offer.is-dismissed { transform: translateY(100%); transition: transform 240ms ease; }
.offer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.offer-badge {
  background: var(--sun);
  color: var(--ink);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.offer-text {
  font-size: 0.95rem;
  line-height: 1.4;
  flex: 1 1 240px;
  min-width: 0;
}
.offer-text strong { color: var(--sun); font-weight: 800; }
.offer-cta {
  background: var(--tomato);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 18px;
  text-decoration: none;
  border: 1.5px solid var(--cream);
  transition: transform 120ms ease;
  flex-shrink: 0;
}
.offer-cta:hover { transform: translate(-1px, -1px); }
.offer-close {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244,234,209,0.4);
  width: 32px; height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}
.offer-close:hover { background: rgba(244,234,209,0.12); }
@media (max-width: 720px) {
  .offer-inner { padding: 12px 16px; gap: 10px; }
  .offer-text { font-size: 0.85rem; flex-basis: 100%; order: 2; }
  .offer-cta { font-size: 0.85rem; padding: 8px 14px; order: 3; }
  .offer-close { order: 4; }
  .offer-badge { order: 1; }
}

/* Prefilled form fields get a subtle highlight */
.field input.prefilled,
.field select.prefilled,
.field textarea.prefilled {
  background-color: rgba(255, 199, 95, 0.18);
  border-color: var(--sun);
}

/* Hide floating UI when printing */
@media print {
  .float-dock, .launch-offer, .consent-bar { display: none !important; }
}

/* ═══════════════════════════════════════════════
   Cookie consent banner (GDPR, default-deny)
   ═══════════════════════════════════════════════ */
.consent-bar {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 0px);
  z-index: 1000;
  background: var(--cream);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  max-width: 760px;
  margin: 0 auto;
  font-family: 'Inter', system-ui, sans-serif;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.consent-bar.is-visible { opacity: 1; transform: translateY(0); }
.consent-bar.is-dismissed { opacity: 0; transform: translateY(14px); pointer-events: none; }
.consent-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 18px 20px 18px 20px;
  align-items: center;
}
.consent-text { min-width: 0; }
.consent-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tomato);
  font-weight: 700;
  margin-bottom: 4px;
}
.consent-bar h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 6px 0;
  color: var(--ink);
}
.consent-bar p {
  margin: 0 0 8px 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.consent-more {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--tomato);
  text-decoration: none;
  border-bottom: 1px dashed var(--tomato);
  padding-bottom: 1px;
}
.consent-more:hover { color: var(--ink); border-color: var(--ink); }
.consent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
}
.consent-actions button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 10px 18px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  min-width: 130px;
  transition: background 140ms ease, color 140ms ease;
}
.consent-actions button:hover { background: var(--ink); color: var(--cream); }
.consent-actions .btn-accept {
  background: var(--tomato);
  color: var(--cream);
  border-color: var(--tomato);
}
.consent-actions .btn-accept:hover {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.consent-actions .btn-reject {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--ink-faint);
}
.consent-actions .btn-reject:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}
/* Push the floating dock / launch offer up while the consent bar is open. */
body.has-consent .float-dock { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 200px); }
body.has-consent.has-offer .float-dock { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 260px); }
body.has-consent .launch-offer { bottom: 180px; }
@media (min-width: 720px) {
  .consent-inner { grid-template-columns: 1fr auto; padding: 22px 26px; gap: 26px; }
  .consent-bar h3 { font-size: 1.1rem; }
  .consent-bar p { font-size: 0.92rem; }
  .consent-actions { flex-direction: row; align-items: center; }
  body.has-consent .float-dock { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 140px); }
  body.has-consent .launch-offer { bottom: 130px; }
}
@media (max-width: 480px) {
  .consent-inner { grid-template-columns: 1fr; padding: 16px 16px; gap: 14px; }
  .consent-bar h3 { font-size: 0.98rem; }
  .consent-actions button { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-bar, .consent-bar.is-visible { transition: none; transform: none; }
}

/* ═══════════════════════════════════════════════
   Reference pages (info/imprint, credentials)
   ═══════════════════════════════════════════════ */
.page-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.page-title .red { color: var(--tomato); }
.page-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 640px;
}

.legal-block {
  border-top: 1.5px solid var(--ink);
  padding-top: 28px;
}
.legal-block h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 28px 0 14px;
  color: var(--ink);
}
.legal-block h2:first-child { margin-top: 4px; }
.legal-block p,
.legal-block li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.legal-block ul {
  padding-left: 22px;
  margin-bottom: 18px;
}
.legal-block ul li { margin-bottom: 10px; }
.legal-block a {
  color: var(--tomato);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-block a:hover { background: var(--sun); }
.legal-meta {
  margin-top: 28px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 24px;
  font-size: 0.97rem;
  border: 1.5px solid var(--ink);
  background: var(--paper);
}
.info-table th,
.info-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(31, 30, 24, 0.18);
  vertical-align: top;
  line-height: 1.5;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: 0; }
.info-table th {
  width: 36%;
  background: var(--cream);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  border-right: 1.5px solid var(--ink);
}
.info-table th small { display: block; font-weight: 400; color: var(--ink-mute); margin-top: 2px; }
.info-table td { color: var(--ink-soft); }
.info-table td a { color: var(--tomato); }
.info-meta {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-top: 2px;
  line-height: 1.5;
}

.todo {
  background: rgba(255, 199, 95, 0.35);
  border-bottom: 1px dashed var(--ink-mute);
  padding: 1px 3px;
  font-style: italic;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  .info-table th, .info-table td { padding: 10px 12px; font-size: 0.92rem; }
  .info-table th { width: 40%; }
}
@media (max-width: 520px) {
  .info-table { display: block; }
  .info-table thead, .info-table tbody, .info-table tr { display: block; }
  .info-table tr {
    border-bottom: 1.5px solid var(--ink);
    padding: 4px 0;
  }
  .info-table tr:last-child { border-bottom: 0; }
  .info-table th, .info-table td {
    display: block;
    width: 100%;
    border-right: 0;
    border-bottom: 0;
    padding: 6px 12px;
  }
  .info-table th { background: transparent; padding-top: 12px; padding-bottom: 2px; }
  .info-table td { padding-top: 2px; padding-bottom: 12px; }
}

/* ═══════════════════════════════════════════════
   Credentials page (cert grid)
   ═══════════════════════════════════════════════ */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  margin: 24px 0 32px;
}
.cred-card {
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  min-height: 180px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.cred-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--ink);
}
.cred-card .cred-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.cred-card .cred-name {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}
.cred-card .cred-issuer {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.cred-card .cred-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-mute);
}
.cred-card .cred-pill {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid currentColor;
  margin-right: 4px;
}
.cred-card.is-cambridge .cred-pill { color: #b71540; }
.cred-card.is-microsoft .cred-pill { color: #0078d4; }
.cred-card.is-adobe .cred-pill { color: #cc1f25; }
.cred-card.is-its .cred-pill { color: #00b04f; }
.cred-card.is-other .cred-pill { color: var(--ink); }

.cred-group {
  margin: 32px 0;
}
.cred-group h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.cred-group .cred-group-desc {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

.cred-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 12px;
  margin: 24px 0;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  padding: 4px;
}
.cred-stats > div {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid rgba(31, 30, 24, 0.2);
}
.cred-stats .num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  color: var(--tomato);
  line-height: 1;
}
.cred-stats .label {
  display: block;
  margin-top: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
