/* Nitpecker — metro mosaic world */

@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("assets/fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url("assets/fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --smalt: #13294b;
  --smalt-deep: #0b1a33;
  --smalt-bed: #0e2040;
  --smalt-2: #1b3863;
  --gold: #d2a92c;
  --gold-deep: #a9841a;
  --terra: #b5452c;
  --terra-2: #d0603f;
  --teal: #2c6e68;
  --teal-2: #3f8c84;
  --stone: #dcdfe0;
  --stone-2: #cdd1d3;
  --stone-3: #a9a69c;
  --enamel: #f6f5f1;
  --ink: #111a2b;
  --ink-2: #3c4558;
  --on-smalt: #e9edf4;
  --on-smalt-2: #aebbd0;

  --t: 8px;               /* tile unit */
  --grout: 2px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 3px;

  --display: "Unbounded", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--stone);
  caret-color: var(--terra);
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--smalt-2) var(--stone);
}
::selection { background: var(--gold); color: var(--smalt-deep); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: .9em; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--smalt-deep); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- fields (smalt mosaic ground) ---------- */
.field {
  color: var(--on-smalt);
  background-color: var(--smalt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cg fill='%23ffffff'%3E%3Crect x='1' y='1' width='22' height='22' opacity='.025'/%3E%3Crect x='25' y='1' width='22' height='22' opacity='.05'/%3E%3Crect x='49' y='1' width='22' height='22' opacity='.015'/%3E%3Crect x='73' y='1' width='22' height='22' opacity='.04'/%3E%3Crect x='1' y='25' width='22' height='22' opacity='.045'/%3E%3Crect x='25' y='25' width='22' height='22' opacity='.02'/%3E%3Crect x='49' y='25' width='22' height='22' opacity='.055'/%3E%3Crect x='73' y='25' width='22' height='22' opacity='.025'/%3E%3Crect x='1' y='49' width='22' height='22' opacity='.015'/%3E%3Crect x='25' y='49' width='22' height='22' opacity='.04'/%3E%3Crect x='49' y='49' width='22' height='22' opacity='.03'/%3E%3Crect x='73' y='49' width='22' height='22' opacity='.06'/%3E%3Crect x='1' y='73' width='22' height='22' opacity='.05'/%3E%3Crect x='25' y='73' width='22' height='22' opacity='.025'/%3E%3Crect x='49' y='73' width='22' height='22' opacity='.045'/%3E%3Crect x='73' y='73' width='22' height='22' opacity='.015'/%3E%3C/g%3E%3C/svg%3E");
}
.field ::selection { background: var(--gold); color: var(--smalt-deep); }
.stone { background: var(--stone); color: var(--ink); }
.enamel-bg { background: var(--enamel); color: var(--ink); }

section { padding-block: clamp(72px, 10vw, 136px); }

.section-head { display: grid; gap: 16px; max-width: 60ch; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.12; }
.section-head p { font-size: 1.125rem; color: var(--ink-2); max-width: 56ch; }
.field .section-head p { color: var(--on-smalt-2); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--enamel); --fg: var(--smalt-deep);
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1 var(--text);
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg); border-radius: var(--r);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 6px 18px -8px rgba(0,0,0,.45);
  transition: transform .18s var(--ease-out), background-color .18s, box-shadow .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 10px 24px -10px rgba(0,0,0,.5); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn__arrow { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--enamel { --bg: var(--enamel); --fg: var(--smalt-deep); }
.btn--enamel:hover { --bg: #ffffff; }
.btn--gold { --bg: var(--gold); --fg: var(--smalt-deep); }
.btn--gold:hover { --bg: #e0b93a; }
.btn--line { background: transparent; color: var(--on-smalt); border-color: rgba(233,237,244,.45); box-shadow: none; }
.btn--line:hover { border-color: var(--on-smalt); box-shadow: none; }
.btn--line-dark { background: transparent; color: var(--smalt); border-color: var(--smalt); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--smalt-deep); color: var(--on-smalt); border-bottom: 1px solid rgba(255,255,255,.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-smalt); }
.brand__mark { width: 35px; height: 30px; }
.brand__word { font: 700 1.125rem/1 var(--display); letter-spacing: -0.01em; }
.mk-crest rect { fill: var(--terra-2); }
.mk-head rect { fill: var(--enamel); }
.mk-eye { fill: var(--smalt-deep); }
.mk-beak rect { fill: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .9688rem; color: var(--on-smalt-2); padding-block: 8px; transition: color .15s; }
.nav__links a:not(.btn):hover { color: var(--on-smalt); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle {
    display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
    background: transparent; color: var(--on-smalt); border: 1px solid rgba(255,255,255,.25); border-radius: var(--r);
    font: 500 .9375rem var(--text); cursor: pointer;
  }
  .nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s var(--ease-out), opacity .2s; }
  .nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav__toggle-bars::before { top: -5px; } .nav__toggle-bars::after { top: 5px; }
  .nav[data-open] .nav__toggle-bars { background: transparent; }
  .nav[data-open] .nav__toggle-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav[data-open] .nav__toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--smalt-deep);
    border-bottom: 1px solid rgba(255,255,255,.08);
    display: none;
  }
  .nav[data-open] .nav__links { display: flex; }
  .nav__links a:not(.btn) { padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 1.0625rem; }
  .nav__links .btn { margin-top: 16px; justify-content: center; min-height: 48px; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 112px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.5vw, 4.15rem); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .hl { color: var(--gold); display: inline-block; transform: rotate(-3deg) translateY(-.04em); transform-origin: 50% 60%; transition: transform .6s var(--ease-out); }
.hero.is-straight h1 .hl { transform: none; }
.hero__lede { margin-top: 28px; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.6; color: var(--on-smalt-2); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* mosaic panel */
.mosaic { margin: 0; display: grid; gap: 16px; }
.mosaic__frame {
  position: relative; padding: 10px;
  background: var(--smalt-bed);
  border-radius: 4px;
  border: 6px solid transparent;
  background:
    linear-gradient(var(--smalt-bed), var(--smalt-bed)) padding-box,
    repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--gold-deep) 14px 16px) border-box;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7);
}
.mosaic__grid { display: grid; grid-template-columns: repeat(var(--cols, 24), 1fr); gap: var(--grout); }
.tile {
  aspect-ratio: 1; border-radius: 1.5px; background: var(--c, var(--smalt-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.25);
  transition: transform .35s var(--ease-out), background-color .35s;
}
.tile--empty { background: var(--smalt); box-shadow: inset 0 1px 0 rgba(255,255,255,.03); }
.tile--gutter { background: #233a5f; }
.tile.nit { background: var(--nit, var(--terra-2)); transform: rotate(var(--rot, 14deg)) translate(var(--dx, 1px), var(--dy, -2px)); box-shadow: 0 3px 6px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.25); cursor: pointer; position: relative; z-index: 2; }
.tile.fixed { animation: seat .5s var(--ease-out); }
@keyframes seat { 0% { transform: scale(1.35); } 60% { transform: scale(.92); } 100% { transform: none; } }
.mosaic.is-setting .tile { animation: set .5s var(--ease-out) both; animation-delay: calc(var(--i) * 4ms); }
@keyframes set { from { opacity: 0; transform: translateY(-6px) scale(.6); } to { opacity: 1; transform: none; } }
.mosaic.is-setting .tile.nit { animation-name: set-nit; }
@keyframes set-nit { from { opacity: 0; } to { opacity: 1; } }

.pecker { position: absolute; left: 0; top: 0; width: 46px; height: 40px; pointer-events: none; opacity: 0; transform: translate(var(--px, 60%), var(--py, 40%)); transition: transform .55s var(--ease-out), opacity .3s; filter: drop-shadow(0 4px 6px rgba(0,0,0,.45)); z-index: 3; }
.pecker.is-on { opacity: 1; }
.pecker.is-pecking .mk-beak { animation: peck .14s ease-in-out 3; transform-box: fill-box; }
@keyframes peck { 50% { transform: translateX(5px); } }

.note { background: var(--enamel); color: var(--ink); border-radius: 4px; padding: 16px 18px; display: grid; gap: 10px; box-shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 30px -16px rgba(0,0,0,.6); }
.note__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: .9375rem; }
.note__head strong { font: 700 .875rem/1 var(--display); letter-spacing: 0; }
.note__count { color: var(--ink-2); font-variant-numeric: tabular-nums; font-size: .875rem; }
.note__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 4.6em; font-size: .9063rem; }
.note__list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; animation: in .4s var(--ease-out); }
.note__list .ln { font-family: var(--mono); font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.note__list .st { font-size: .8125rem; font-weight: 600; color: var(--terra); }
.note__list li.ok .st { color: var(--teal); }
@keyframes in { from { opacity: 0; transform: translateY(4px); } }
.note__again { justify-self: start; background: none; border: 0; padding: 4px 0; font: 600 .9063rem var(--text); color: var(--smalt); text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.note__again:hover { color: var(--terra); }
.note__again:disabled { color: var(--stone-3); cursor: default; text-decoration: none; }

/* frieze */
.frieze {
  height: 24px;
  background:
    repeating-linear-gradient(90deg, var(--terra) 0 22px, transparent 22px 24px, var(--gold) 24px 46px, transparent 46px 48px, var(--teal) 48px 70px, transparent 70px 72px, var(--gold) 72px 94px, transparent 94px 96px),
    var(--smalt-deep);
  border-block: 2px solid var(--smalt-deep);
}
.frieze--thin { height: 12px; border-width: 1px; }

/* ---------- review demo ---------- */
.demo__inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.demo__copy h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 700; line-height: 1.12; }
.demo__copy > p { margin-top: 20px; font-size: 1.125rem; color: var(--ink-2); max-width: 46ch; }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 12px; height: 12px; border-radius: 1.5px; background: var(--teal); box-shadow: inset 0 -1px 0 rgba(0,0,0,.25); }
.ticks li:nth-child(1)::before { background: var(--terra); }
.ticks li:nth-child(2)::before { background: var(--gold); }
.ticks li:nth-child(4)::before { background: var(--smalt-2); }

.code { background: var(--smalt-deep); color: #d9e1ee; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(11,26,51,.8); }
.code__bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font: 500 .8125rem var(--mono); color: var(--on-smalt-2); }
.code__badge { font: 600 .75rem var(--text); background: var(--terra); color: var(--enamel); padding: 4px 8px; border-radius: 2px; }
.code__body { margin: 0; padding: 18px 0; overflow-x: auto; font: 400 .875rem/1.75 var(--mono); tab-size: 2; scrollbar-color: var(--smalt-2) transparent; }
.code__body code { display: block; min-width: max-content; padding-right: 24px; font-size: inherit; }
.code .ln { display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: #8a9bbb; user-select: none; }
.code .flag-ln { color: var(--enamel); background: var(--terra); }
.code .k { color: #e6c35c; }
.code .s { color: #8fd1c6; }
.code .f { color: #f0a58c; }
.flag { display: inline-grid; place-items: center; margin-left: 12px; width: 20px; height: 20px; border-radius: 2px; background: var(--enamel); color: var(--smalt-deep); font: 700 .6875rem/1 var(--text); vertical-align: 1px; }
.flag::before { content: attr(data-n); }
.code__notes { list-style: none; margin: 0; padding: 4px 18px 20px; display: grid; gap: 10px; counter-reset: n; }
.code__notes li { position: relative; padding: 12px 14px 12px 46px; background: var(--enamel); color: var(--ink); border-radius: 3px; font-size: .9375rem; line-height: 1.5; }
.code__notes li::before { content: attr(data-n); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 2px; background: var(--terra); color: var(--enamel); font: 700 .75rem/1 var(--text); }
.code__notes li[data-n="2"]::before { background: var(--gold); color: var(--smalt-deep); }
.code__notes li[data-n="3"]::before { background: var(--teal); }
.code__notes code { background: var(--stone); padding: 1px 5px; border-radius: 2px; font-size: .85em; }

/* ---------- services ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.14); }
.svc {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) minmax(200px, .7fr);
  gap: clamp(20px, 3vw, 48px); align-items: start;
  padding: clamp(28px, 3.4vw, 44px) clamp(8px, 2vw, 28px);
  border-bottom: 1px solid rgba(255,255,255,.14);
  transition: color .35s var(--ease-out);
}
.svc::before { /* colour flood */
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--svc);
  clip-path: inset(0 100% 0 0); transition: clip-path .55s var(--ease-out);
}
.svc:hover, .svc:focus-within { color: var(--svc-ink); }
.svc:hover::before, .svc:focus-within::before { clip-path: inset(0 0 0 0); }
.svc__tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; width: 44px; margin-top: 6px; }
.svc__tiles i { aspect-ratio: 1; border-radius: 1.5px; background: var(--svc); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(0,0,0,.25); transition: transform .4s var(--ease-out); }
.svc__tiles i:nth-child(2) { opacity: .75; } .svc__tiles i:nth-child(3) { opacity: .55; }
.svc:hover .svc__tiles i, .svc:focus-within .svc__tiles i { background: var(--svc-ink); }
.svc:hover .svc__tiles i:nth-child(4) { transform: rotate(12deg); }
.svc h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 700; line-height: 1.15; }
.svc__main p { margin-top: 14px; color: var(--on-smalt-2); max-width: 48ch; transition: color .35s; }
.svc:hover .svc__main p, .svc:focus-within .svc__main p { color: inherit; opacity: .88; }
.svc__incl { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: .9688rem; }
.svc__incl li { padding-left: 18px; position: relative; }
.svc__incl li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 1px; background: currentColor; opacity: .55; }
.svc__meta { display: grid; gap: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.svc__meta small { display: block; font-size: .8125rem; font-weight: 500; opacity: .72; margin-bottom: 2px; }
.svc__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 4px; justify-self: start; }
.svc__cta svg { width: 16px; height: 16px; transition: transform .2s var(--ease-out); }
.svc__cta:hover svg { transform: translateX(3px); }

/* ---------- work ---------- */
.work-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.case { grid-column: span 5; background: var(--enamel); border-radius: 4px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; box-shadow: 0 1px 0 rgba(17,26,43,.08), 0 18px 40px -28px rgba(17,26,43,.45); transition: transform .3s var(--ease-out), box-shadow .3s; }
.case--wide { grid-column: span 7; }
.case:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(17,26,43,.08), 0 26px 50px -28px rgba(17,26,43,.55); }
.case__art { aspect-ratio: 16 / 8; background: var(--smalt); display: grid; grid-template-columns: repeat(var(--ac, 32), 1fr); gap: 2px; padding: 8px; align-content: center; }
.case__art i { aspect-ratio: 1; border-radius: 1px; background: var(--c, var(--smalt-2)); }
.case__body { padding: 22px 24px 26px; display: grid; gap: 6px; align-content: start; }
.case h3 { font-size: 1.25rem; font-weight: 700; }
.case__type { color: var(--ink-2); font-size: .9375rem; }
.case__result { margin-top: 10px; display: flex; align-items: center; gap: 10px; font-size: .9688rem; font-variant-numeric: tabular-nums; }
.case__result b { font-weight: 700; }

.trend { display: inline-block; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; flex: none; }
.trend.up { border-bottom: 9px solid var(--teal); }
.trend.down { border-top: 9px solid var(--teal); }

/* ---------- process (metro line) ---------- */
.line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.line::before { content: ""; position: absolute; left: 12px; right: 12px; top: 11px; height: 6px; background: var(--gold); border-radius: 1px; }
.stop { position: relative; display: grid; gap: 10px; align-content: start; }
.stop__tile { width: 28px; height: 28px; background: var(--enamel); border: 5px solid var(--smalt); border-radius: 3px; position: relative; z-index: 1; }
.stop--transfer .stop__tile { width: 40px; border-color: var(--terra); margin-left: -6px; }
.stop h3 { margin-top: 14px; font-size: 1.125rem; font-weight: 700; }
.stop p { color: var(--ink-2); font-size: .9688rem; max-width: 26ch; }

/* ---------- prices (fare board) ---------- */
.board { background: var(--smalt-deep); border-radius: 4px; padding: clamp(8px, 1.4vw, 16px); overflow-x: auto; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 24px 50px -30px rgba(0,0,0,.8); scrollbar-color: var(--smalt-2) transparent; }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 4px; min-width: 680px; font-variant-numeric: tabular-nums; }
.board th, .board td { text-align: left; padding: 16px 18px; vertical-align: top; }
.board thead th { font: 500 .8125rem var(--text); color: var(--on-smalt-2); padding-block: 10px; }
.board tbody tr { background: var(--smalt); }
.board tbody th { font: 700 1rem var(--display); color: var(--enamel); white-space: nowrap; border-radius: 3px 0 0 3px; }
.board tbody td { color: var(--on-smalt-2); }
.board tbody td:last-child { border-radius: 0 3px 3px 0; }
.board .r { text-align: right; white-space: nowrap; }
.board tbody td.r { color: var(--gold); font: 700 1.125rem var(--display); }
.dot { display: inline-block; width: 12px; height: 12px; margin-right: 12px; border-radius: 1.5px; background: var(--c); vertical-align: 0; }

/* ---------- quotes ---------- */
.quotes { padding-block: clamp(64px, 8vw, 112px); }
.quotes__title { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; margin-bottom: 40px; }
.quote-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.quote-list li { display: grid; gap: 18px; align-content: space-between; padding-top: 22px; border-top: 6px solid var(--smalt); }
.quote-list li:nth-child(2) { border-color: var(--terra); }
.quote-list li:nth-child(3) { border-color: var(--teal); }
.quote-list blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.quote-list li:first-child blockquote { font: 500 clamp(1.15rem, 1.7vw, 1.4rem)/1.45 var(--display); letter-spacing: -0.01em; }
.who { font-size: .9375rem; color: var(--ink-2); }
.who b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- contact ---------- */
.contact__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__copy h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
.contact__copy > p { margin-top: 22px; font-size: 1.125rem; color: var(--on-smalt-2); max-width: 42ch; }
.contact__ways { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; max-width: 420px; }
.contact__ways li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding-block: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.contact__ways span { color: var(--on-smalt-2); font-size: .9375rem; }
.contact__ways a { text-decoration: none; font-weight: 600; }
.contact__ways a:hover { text-decoration: underline; }

.form { background: var(--enamel); color: var(--ink); border-radius: 4px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 1px 0 rgba(0,0,0,.25), 0 40px 70px -40px rgba(0,0,0,.85); position: relative; }
.form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 4px 4px 0 0; background: repeating-linear-gradient(90deg, var(--gold) 0 22px, var(--smalt-deep) 22px 24px, var(--terra) 24px 46px, var(--smalt-deep) 46px 48px, var(--teal) 48px 70px, var(--smalt-deep) 70px 72px); }
.form__panel { display: grid; gap: 20px; }
.field2 { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field2 label, .field2 legend { font-weight: 600; font-size: .9375rem; padding: 0; }
.opt { font-weight: 400; color: var(--ink-2); }
.field2 input, .field2 textarea, .field2 select {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink);
  background: #ffffff; border: 1.5px solid var(--stone-3); border-radius: var(--r);
  padding: 13px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
.field2 textarea { resize: vertical; min-height: 120px; }
.field2 input::placeholder, .field2 textarea::placeholder { color: #6b7180; }
.field2 input:hover, .field2 textarea:hover, .field2 select:hover { border-color: var(--ink-2); }
.field2 input:focus, .field2 textarea:focus, .field2 select:focus { outline: none; border-color: var(--smalt); box-shadow: 0 0 0 3px rgba(210,169,44,.55); }
.field2 [aria-invalid="true"] { border-color: var(--terra); }
.select { position: relative; }
.select select { appearance: none; padding-right: 44px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.err { color: var(--terra); font-size: .875rem; font-weight: 500; min-height: 0; }
.err:empty { display: none; }

.choice legend { margin-bottom: 8px; }
.choice__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; background: #fff; border: 1.5px solid var(--stone-3); border-radius: var(--r); cursor: pointer; font-weight: 500; font-size: .9688rem; transition: border-color .15s, background-color .2s; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: flex; align-items: center; gap: 12px; }
.chip span::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 2px; background: var(--c); box-shadow: inset 0 -1px 0 rgba(0,0,0,.2); transition: transform .3s var(--ease-out); transform: rotate(12deg); }
.chip:hover { border-color: var(--ink-2); }
.chip:has(input:checked) { border-color: var(--smalt); background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: inset 0 0 0 1px var(--smalt); }
.chip:has(input:checked) span::before { transform: none; }
.chip:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.form__submit { width: 100%; justify-content: center; min-height: 56px; font-size: 1.0625rem; margin-top: 4px; }
.form__submit[aria-busy="true"] { opacity: .75; cursor: progress; }
.form__submit[aria-busy="true"] .btn__arrow { animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.form__fine { font-size: .8438rem; color: var(--ink-2); text-align: center; }
.err--form { text-align: center; }

.form__done { display: grid; gap: 16px; justify-items: start; padding-block: 24px; outline: none; }
.form__done[hidden] { display: none; }
.form__done h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; }
.form__done p { color: var(--ink-2); font-size: 1.0625rem; max-width: 40ch; }
.done__tiles { display: grid; grid-template-columns: repeat(3, 18px); gap: 3px; margin-bottom: 8px; }
.done__tiles i { aspect-ratio: 1; border-radius: 1.5px; background: var(--teal); animation: set .45s var(--ease-out) both; }
.done__tiles i:nth-child(odd) { background: var(--gold); }
.done__tiles i:nth-child(5) { background: var(--terra); }
.done__tiles i:nth-child(1) { animation-delay: 0ms } .done__tiles i:nth-child(2) { animation-delay: 40ms } .done__tiles i:nth-child(3) { animation-delay: 80ms }
.done__tiles i:nth-child(4) { animation-delay: 120ms } .done__tiles i:nth-child(5) { animation-delay: 160ms } .done__tiles i:nth-child(6) { animation-delay: 200ms }
.done__tiles i:nth-child(7) { animation-delay: 240ms } .done__tiles i:nth-child(8) { animation-delay: 280ms } .done__tiles i:nth-child(9) { animation-delay: 320ms }

/* ---------- footer ---------- */
.foot { background: var(--smalt-deep); color: var(--on-smalt-2); }
.foot__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 16px 40px; align-items: center; padding-block: 40px 48px; }
.foot__line { font-size: .9375rem; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__nav a { text-decoration: none; font-size: .9375rem; color: var(--on-smalt-2); padding-block: 6px; }
.foot__nav a:hover { color: var(--on-smalt); }
.foot__copy { grid-column: 1 / -1; font-size: .8438rem; color: #a3b0c6; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .svc { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr); }
  .svc__meta { grid-column: 2 / -1; grid-template-columns: auto auto 1fr; align-items: end; gap: 28px; }
  .svc__cta { justify-self: end; }
}
@media (max-width: 960px) {
  .hero__inner, .demo__inner, .contact__inner { grid-template-columns: 1fr; }
  .mosaic { max-width: 620px; }
  .case, .case--wide { grid-column: span 6; }
  .quote-list { grid-template-columns: 1fr; }
  .line { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .line::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 6px; height: auto; }
  .stop { grid-template-columns: 44px 1fr; column-gap: 16px; row-gap: 4px; }
  .stop__tile { grid-row: span 2; }
  .stop--transfer .stop__tile { width: 28px; height: 40px; margin-left: 0; margin-top: -6px; }
  .stop h3 { margin-top: 2px; }
  .stop p { max-width: 48ch; }
  .foot__inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .svc { grid-template-columns: 1fr; gap: 16px; padding-inline: 0; }
  .svc::before { inset: 0 calc(var(--gutter) * -1); }
  .svc__tiles { width: 36px; margin: 0; }
  .svc__meta { grid-column: auto; grid-template-columns: 1fr 1fr; gap: 16px; }
  .svc__cta { grid-column: 1 / -1; justify-self: start; }
  .case, .case--wide { grid-column: 1 / -1; }
  .choice__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
  .contact__ways li { grid-template-columns: 80px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
