/* ==========================================================================
   Pushevska – site styles
   Design canvas: 1920 × 1205 (from "MP Logo_05.08.26_Final.pdf").
   On desktop every measurement is expressed in design points × --u,
   so the homepage scales 1:1 with the original layout.
   ========================================================================== */

/* Self-hosted fonts (no third-party requests → GDPR friendly) */
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/sofia-sans-latin-400-normal.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:"Sofia Sans";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/sofia-sans-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/sofia-sans-latin-500-normal.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:"Sofia Sans";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/sofia-sans-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/sofia-sans-latin-600-normal.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:"Sofia Sans";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/sofia-sans-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/sofia-sans-latin-800-normal.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:"Sofia Sans";font-style:normal;font-weight:800;font-display:swap;src:url(../fonts/sofia-sans-cyrillic-800-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:900;font-display:swap;src:url(../fonts/sofia-sans-latin-900-normal.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:"Sofia Sans";font-style:normal;font-weight:900;font-display:swap;src:url(../fonts/sofia-sans-cyrillic-900-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Kalam";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/kalam-latin-700-normal.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 {
  /* Brand colours (sampled from the design file) */
  --blue: #1746e0;
  --lime: #c0ff04;
  --ink: #171a1b;
  --black: #000;
  --white: #fff;
  --grid: #e2e0e2;

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

  /* 1 design point */
  --u: calc(min(100vw, 1920px) / 1920);
  /* background grid cell (31 columns across the canvas) */
  --cw: calc(61.935 * var(--u));
  --ch: calc(54.76 * var(--u));

  /* content column = hero width */
  --col-left: calc(294 * var(--u));
  --col-width: calc(1333 * var(--u));
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@font-face{font-family:"Caveat BG";font-style:normal;font-weight:100 900;font-display:swap;src:url(../fonts/caveat-bg-700.woff2) format("woff2");}
/* Kalam has no Cyrillic → Bulgarian pages use Caveat (bold), whose handwritten Cyrillic follows the Bulgarian letterforms */
html:lang(bg) { --hand: "Caveat BG", "Comic Sans MS", cursive; }
html:lang(bg) .hero__quote,
html:lang(bg) .kalam,
html:lang(bg) .work-card__img--empty span { font-weight: 400; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--white);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--cw) var(--ch);
  background-position: max(0px, (100vw - 1920px) / 2) 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
em.hl { font-style: normal; }

.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.hidden { display: none; }
.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--lime); padding: 8px 14px;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

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

.site-header {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  height: calc(150 * var(--u));
}

.logo { display: block; color: var(--ink); line-height: 0; }
.logo svg { width: 100%; height: auto; }
.site-header .logo {
  position: absolute;
  left: calc(74 * var(--u));
  top: calc(63 * var(--u));
  width: calc(229 * var(--u));
}

.site-nav {
  position: absolute;
  left: calc(410 * var(--u));
  right: calc(295 * var(--u));
  top: calc(61 * var(--u));
  display: grid;
  grid-template-columns: repeat(3, calc(356 * var(--u))) auto;
}
.site-nav .btn { justify-self: start; }
.site-nav .btn:last-child { justify-self: end; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: calc(140 * var(--u));
  height: max(34px, calc(40 * var(--u)));
  padding: 0 calc(20 * var(--u));
  border: max(1.5px, calc(2 * var(--u))) solid var(--blue);
  background: var(--white);
  color: var(--ink);
  font: 500 max(14px, calc(22 * var(--u))) / 1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.btn:hover,
.btn.is-active { background: var(--blue); color: var(--white); }
.btn--lime { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--lang {
  position: absolute;
  right: calc(75 * var(--u));
  top: calc(61 * var(--u));
  min-width: calc(62 * var(--u));
  padding: 0 calc(12 * var(--u));
  font-weight: 600;
  letter-spacing: .04em;
}

.nav-toggle { display: none; }

/* ---------- Homepage hero ---------- */

.hero {
  position: relative;
  max-width: 1920px;
  margin: 0 auto;
  height: calc(733 * var(--u) + 49 * var(--u));
  padding-top: calc(49 * var(--u));
}

.hero > * { position: absolute; }

.wordmark {
  z-index: 3;
  left: calc(293 * var(--u));
  top: calc(49 * var(--u));
  width: calc(1335 * var(--u));
  aspect-ratio: 1335 / 209;
  color: var(--ink);
  pointer-events: none;
}
.wordmark > span { position: absolute; inset: 0; }
.wordmark svg { width: 100%; height: 100%; display: block; }
/* lime copy only shows where the wordmark overlaps the photo */
.wordmark__lime { clip-path: inset(48.8% 0 0 52.62%); }

.hero__blue {
  left: calc(294 * var(--u));
  top: calc((49 + 103) * var(--u));
  width: calc(701.5 * var(--u));
  height: calc(629 * var(--u));
  background: var(--blue);
}

.hero__services {
  list-style: none;
  margin: 0;
  padding: calc(202 * var(--u)) 0 0 calc(182 * var(--u));
}
.hero__services { font-size: max(15px, calc(31 * var(--u))); }
.hero__services li { line-height: max(28px, calc(54 * var(--u))); }
.hero__services a {
  color: var(--white);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: max(1px, calc(2 * var(--u)));
  text-underline-offset: calc(5 * var(--u));
  transition: color .15s;
}
.hero__services a:hover { color: var(--lime); }

.hero__photo {
  margin: 0;
  z-index: 1;
  left: calc(995.5 * var(--u));
  top: calc((49 + 102) * var(--u));
  width: calc(631.5 * var(--u));
  height: calc(631 * var(--u));
  background: var(--black);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }

.hero__quote {
  position: absolute;
  z-index: 4;
  left: calc(-48 * var(--u));
  bottom: calc(8 * var(--u));
  width: calc(560 * var(--u));
  color: var(--white);
  font: 700 max(16px, calc(37.5 * var(--u))) / 1.18 var(--hand);
  transform: rotate(-3.4deg);
  transform-origin: 0 100%;
}
.hero__quote span { display: block; white-space: nowrap; }
@media (min-width: 861px) {
  html:lang(bg) .hero__quote { font-size: max(16px, calc(37.5 * var(--u))); width: calc(600 * var(--u)); left: calc(-48 * var(--u)); }
}
.hero__quote .hl { color: var(--lime); }

/* ---------- Homepage sections ---------- */

.section {
  width: var(--col-width);
  margin-left: max(var(--col-left), (100vw - 1920px) / 2 + var(--col-left));
  padding-top: calc(160 * var(--u));
  scroll-margin-top: 0;
}
.section > .page-intro { margin: calc(28 * var(--u)) 0 calc(56 * var(--u)); }
.section-title { font-size: calc(170 * var(--u)); }
.section-title + .split { margin-top: calc(56 * var(--u)); }
.section .split,
.section .service-list,
.section .work-grid { width: auto; margin-left: 0; margin-bottom: 0; }
.split__white { background: var(--white); border: 1px solid var(--grid); max-width: none; }
.split--about .split__dark { justify-content: space-between; }

/* Smoke pictograms: 2×2 grid cells merge into one tile with the icon (about section) */
.section--smoke { position: relative; }
.smoke-tiles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.smoke-tile {
  position: absolute;
  display: none;
  place-items: center;
  color: var(--grid);
}
.smoke-tile.is-placed { display: grid; }
.smoke-tile::before {           /* covers the inner grid lines, keeps the outer ones */
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--grid);
}
.smoke-tile .smoke { position: relative; width: 62%; height: auto; }

.js-smoke .smoke-tile::before { opacity: 0; transition: opacity .6s ease; }
.js-smoke .smoke-tile .smoke { opacity: 0; transform: scale(.7) rotate(-12deg); transition: opacity .7s ease .45s, transform .9s cubic-bezier(.2,.8,.2,1.2) .45s; }
.js-smoke .smoke-tile.is-in::before { opacity: 1; }
.js-smoke .smoke-tile.is-in .smoke { opacity: 1; transform: none; }

/* ---------- Inner pages ---------- */

.page-hero,
.page-body,
.split,
.service-list,
.work-grid,
.stats,
.case__cover,
.next-link {
  width: var(--col-width);
  margin-left: max(var(--col-left), (100vw - 1920px) / 2 + var(--col-left));
}

.page-hero { padding: calc(60 * var(--u)) 0 calc(64 * var(--u)); }

.page-title {
  margin: 0;
  font-weight: 900;
  font-size: calc(200 * var(--u));
  line-height: .9;
  letter-spacing: -0.05em;
  text-transform: lowercase;
}
.page-title--md { font-size: calc(120 * var(--u)); text-transform: none; letter-spacing: -0.04em; }
.page-title .hl { background: linear-gradient(to bottom, transparent 30%, var(--lime) 30%, var(--lime) 84%, transparent 84%); padding: 0 .03em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.page-intro {
  max-width: 34em;
  margin: calc(34 * var(--u)) 0 0;
  font-size: max(18px, calc(30 * var(--u)));
  line-height: 1.35;
  font-weight: 500;
}
.eyebrow {
  margin: 0 0 calc(24 * var(--u));
  font-size: max(15px, calc(22 * var(--u)));
  font-weight: 600;
}
.eyebrow a { color: var(--blue); text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.page-body { padding-bottom: calc(110 * var(--u)); }

.prose {
  max-width: 760px;
  background: var(--white);
  padding: calc(48 * var(--u)) calc(56 * var(--u));
  border: 1px solid var(--grid);
  font-size: max(17px, calc(22 * var(--u)));
}
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5em; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 1.2em; font-weight: 800; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li::marker { color: var(--blue); }
.prose img { margin: 1.5em 0; }

/* Two-colour split (blue | black) – mirrors the homepage blocks */
.split {
  display: grid;
  grid-template-columns: 701.5fr 631.5fr;
  min-height: calc(520 * var(--u));
  margin-bottom: calc(110 * var(--u));
}
.split__blue,
.split__dark {
  padding: calc(72 * var(--u)) calc(80 * var(--u));
  color: var(--white);
  font-size: max(17px, calc(24 * var(--u)));
}
.split__blue { background: var(--blue); }
.split__dark { background: var(--black); display: flex; flex-direction: column; justify-content: flex-end; gap: calc(28 * var(--u)); align-items: flex-start; }
.split h2 { margin: 0 0 .8em; font-size: 1.4em; font-weight: 800; }
.split .hl { color: var(--lime); }

.kalam {
  margin: 0;
  font: 700 max(26px, calc(56 * var(--u))) / 1.1 var(--hand);
  transform: rotate(-3.4deg);
  transform-origin: 0 100%;
}

.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: .45em 0 .45em 1.6em; border-bottom: 1px solid rgba(255,255,255,.25); }
.checks li::before { content: ""; position: absolute; left: 0; top: .95em; width: .7em; height: .7em; background: var(--lime); }

.next-link { margin-top: 0; margin-bottom: calc(110 * var(--u)); font-size: max(16px, calc(24 * var(--u))); font-weight: 600; }
.next-link a { color: var(--blue); }

/* Services overview */
.service-list {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: calc(110 * var(--u));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(16 * var(--u));
  min-height: calc(380 * var(--u));
  padding: calc(44 * var(--u)) calc(44 * var(--u)) calc(40 * var(--u));
  background: var(--blue);
  color: var(--white);
  font-size: max(16px, calc(21 * var(--u)));
}
.service-card--dark { background: var(--black); }
.service-card--lime { background: var(--lime); color: var(--ink); justify-content: space-between; }
.service-card__num { font-weight: 800; color: var(--lime); font-size: 1.1em; }
.service-card h3 { margin: 0; font-size: 1.6em; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.service-card p { margin: 0; opacity: .9; }
.service-card .more { margin-top: auto; font-weight: 600; color: var(--lime); text-decoration: none; }
.service-card .more:hover { text-decoration: underline; }
.service-card--lime .kalam { font-size: max(26px, calc(46 * var(--u))); }
.service-card--lime .btn { align-self: flex-start; border-color: var(--ink); }
.service-card--lime .btn:hover { background: var(--ink); color: var(--lime); }

/* Work grid */
.work-grid {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: calc(110 * var(--u));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(40 * var(--u));
}
.work-card a { display: block; text-decoration: none; background: var(--white); border: 1px solid var(--grid); transition: transform .2s; }
.work-card a:hover { transform: translateY(-4px); }
.work-card a:hover h3 { color: var(--blue); }
.work-card__img { aspect-ratio: 16 / 10; background: var(--black); overflow: hidden; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; }
.work-card__img--empty { display: grid; place-items: center; padding: 8%; text-align: center; }
.work-card__img--empty span { color: var(--lime); font: 700 max(22px, calc(40 * var(--u))) / 1.15 var(--hand); transform: rotate(-3.4deg); }
.work-card:nth-child(even) .work-card__img--empty { background: var(--blue); }
.work-card__meta { padding: calc(28 * var(--u)) calc(32 * var(--u)); font-size: max(15px, calc(20 * var(--u))); }
.work-card__meta h3 { margin: 0 0 .2em; font-size: 1.35em; font-weight: 800; line-height: 1.15; transition: color .15s; }
.work-card__meta p { margin: 0; opacity: .7; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: .9em 0 0; }
.tags li { border: 1.5px solid var(--blue); padding: 2px 10px; font-size: .8em; font-weight: 600; }
.empty { font-size: 1.2em; }

/* Case study */
.case__cover { margin-top: 0; margin-bottom: calc(40 * var(--u)); }
.stats {
  list-style: none; padding: 0; margin-top: 0; margin-bottom: calc(40 * var(--u));
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stats li { background: var(--black); color: var(--white); padding: calc(36 * var(--u)) calc(40 * var(--u)); display: flex; flex-direction: column; gap: 4px; }
.stats li:nth-child(even) { background: var(--blue); }
.stats strong { color: var(--lime); font-size: max(34px, calc(72 * var(--u))); font-weight: 900; line-height: 1; letter-spacing: -.03em; }
.stats span { font-size: max(15px, calc(20 * var(--u))); }

/* Contact form */
.form { display: grid; gap: 6px; max-width: 560px; }
.form label { font-weight: 600; font-size: .85em; }
.form input:not([type=hidden]), .form select, .form textarea { margin-bottom: calc(18 * var(--u) + 6px); }
.form input,
.form select,
.form textarea {
  width: 100%;
  font: 400 max(16px, calc(21 * var(--u))) var(--font);
  color: var(--ink);
  background: var(--white);
  border: 2px solid transparent;
  padding: 10px 12px;
  border-radius: 0;
}
.form input:focus,
.form select:focus,
.form textarea:focus { outline: none; border-color: var(--lime); }
.form .btn { justify-self: start; margin-top: 6px; }
.contact-list { list-style: none; margin: 0; padding: 0; width: 100%; }
.contact-list li { display: grid; grid-template-columns: 7em 1fr; gap: 1em; padding: .55em 0; border-top: 1px solid rgba(255,255,255,.2); }
.contact-list span { color: var(--lime); font-weight: 600; }
.contact-list a { text-decoration: none; word-break: normal; overflow-wrap: break-word; }
.contact-list a:hover { text-decoration: underline; }

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

.site-footer { max-width: 1920px; margin: 0 auto; padding: calc(40 * var(--u)) 0 calc(60 * var(--u)); }
.is-home .site-footer { padding-top: calc(110 * var(--u)); }
.footer-inner {
  width: var(--col-width);
  margin-left: var(--col-left);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px;
  padding: 18px 24px;
  background: var(--white);
  border: 1px solid var(--grid);
  font-size: max(14px, calc(18 * var(--u)));
}
.logo--sm { width: max(110px, calc(150 * var(--u))); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--blue); text-decoration: underline; }
.copy { margin: 0 0 0 auto; opacity: .6; }

/* ==========================================================================
   Tablet / mobile
   ========================================================================== */

@media (max-width: 860px) {
  :root {
    --cw: calc(100vw / 8);
    --ch: calc(100vw / 8 * 0.884);
    --gut: 16px;
    --col-left: var(--gut);
    --col-width: calc(100vw - 2 * var(--gut));
  }
  body { background-position: 0 0; }

  /* header + menu */
  .site-header { height: 72px; }
  .site-header .logo { left: var(--gut); top: 22px; width: 150px; }
  .btn--lang { right: calc(var(--gut) + 52px); top: 16px; height: 40px; min-width: 48px; font-size: 15px; }
  .nav-toggle {
    position: absolute; right: var(--gut); top: 16px;
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 44px; height: 40px; padding: 0 10px;
    border: 1.5px solid var(--blue); background: var(--white); cursor: pointer;
  }
  .nav-toggle span:not(.sr) { display: block; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute; z-index: 20; left: var(--gut); right: var(--gut); top: 64px;
    display: none; flex-direction: column; gap: 8px;
    background: var(--white); padding: 12px; border: 1.5px solid var(--blue);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .btn { height: 48px; font-size: 18px; justify-content: flex-start; padding: 0 16px; }

  /* hero: wordmark over [blue | photo], blue continues underneath as an L */
  .hero {
    --w: calc(100vw - 2 * var(--gut));
    height: auto;
    padding: 12px var(--gut) 0;
    display: grid;
    grid-template-columns: 52.62% 47.38%;
  }
  .hero > * { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .wordmark {
    grid-column: 1 / -1; grid-row: 1;
    margin-bottom: calc(var(--w) * -0.0802);
  }
  .hero__blue { grid-column: 1 / -1; grid-row: 2; padding-top: calc(var(--w) * 0.4738 * 4 / 3); }
  .hero__photo { grid-column: 2; grid-row: 2; align-self: start; aspect-ratio: 3 / 4; }
  .hero__photo img { object-position: 50% 30%; }
  .hero__services { padding: 28px 22px 32px; }
  .hero__services li { line-height: 1.25; margin-bottom: 14px; }
  .hero__services a { font-size: 18px; text-underline-offset: 4px; }
  .hero__quote {
    left: auto; right: 100%; bottom: 14px;
    width: 111.06%;
    padding: 0 12px 0 14px;
    font-size: clamp(16px, 4.6vw, 26px);
  }
  .hero__quote span { white-space: normal; }
  html:lang(bg) .hero__quote { font-size: clamp(16px, 4.6vw, 26px); }

  /* inner pages */
  .page-hero { padding: 24px 0 32px; }
  .page-title { font-size: clamp(64px, 19vw, 140px); }
  .section { padding-top: 72px; }
  .section-title { font-size: clamp(52px, 15vw, 120px); }
  .section > .page-intro { margin: 16px 0 28px; }
  .section-title + .split { margin-top: 28px; }
  .page-title--md { font-size: clamp(40px, 11vw, 80px); }
  .split { grid-template-columns: 1fr; margin-bottom: 56px; }
  .split__blue, .split__dark { padding: 32px 22px; }
  .split__dark { min-height: 220px; }
  .service-list { grid-template-columns: 1fr; margin-bottom: 56px; }
  .service-card { min-height: 0; padding: 28px 22px; gap: 12px; }
  .service-card--dark { background: var(--black); }
  .work-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 56px; }
  .work-card__meta { padding: 18px 20px; }
  .prose { padding: 24px 20px; }
  .page-body { padding-bottom: 56px; }
  .next-link { margin-bottom: 56px; }
  .site-footer { padding: 24px 0 40px; }
  .is-home .site-footer { padding-top: 48px; }
  .copy { margin-left: 0; width: 100%; }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Projects: brand cards */
.work-card .work-card__box { display: block; height: 100%; background: var(--white); border: 1px solid var(--grid); }
.work-card .work-card__logo { display: grid; place-items: center; padding: 8% 12%; }
.work-card .work-card__logo--black { background: var(--black); }
.work-card .work-card__logo--blue { background: var(--blue); }
.work-card .work-card__logo--lime { background: var(--lime); }
.work-card .work-card__logo { grid-template-columns: 100%; }
.work-card .work-card__logo img { height: auto; max-width: 100%; object-fit: contain; }
.work-card .work-card__meta p.work-card__text { opacity: 1; margin: .7em 0 1em; font-size: .85em; line-height: 1.5; }

/* Projects: carousel */
.section .work-grid.work-carousel { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.work-carousel > .work-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
@media (max-width: 1199px) { .work-carousel > .work-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 699px) { .work-carousel > .work-card { flex-basis: 100%; } }
.work-carousel-wrap { position: relative; }
.work-carousel__arrow { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; border: 1.5px solid var(--black); background: rgba(192, 255, 4, .82); color: var(--black); font-family: inherit; font-size: 22px; font-weight: 700; line-height: 1; display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s ease, background-color .2s ease; }
.work-carousel__arrow--prev { left: 12px; }
.work-carousel__arrow--next { right: 12px; }
.work-carousel-wrap.show-prev .work-carousel__arrow--prev, .work-carousel-wrap.show-next .work-carousel__arrow--next, .work-carousel__arrow:focus-visible { opacity: 1; pointer-events: auto; }
.work-carousel__arrow:hover { background: var(--lime); }
@media (hover: none) { .work-carousel__arrow { display: none; } }

/* Projects: links, word tile, site logo */
.work-card .work-card__meta h3 a, .work-card .work-card__meta p a { color: inherit; transition: color .15s; }
.work-card .work-card__meta h3 a { text-decoration: none; }
.work-card .work-card__meta p a { text-decoration: none; }
.work-card .work-card__meta a:hover, .work-card .work-card__meta a:focus-visible { color: var(--blue); }
.work-card .work-card__meta p.work-card__links { opacity: 1; font-weight: 600; }
.work-card .work-card__word { font-family: var(--font); font-weight: 900; font-size: clamp(44px, 5vw, 84px); line-height: 1; letter-spacing: -0.04em; color: var(--white); white-space: nowrap; }
.work-card .work-card__word-hl { background: var(--lime); color: var(--black); padding: 0 .08em; }
.work-card .work-card__logo svg { width: 75%; height: auto; max-height: 96px; }
.work-card .work-card__logo--lime { color: var(--black); }

#contact .page-intro a { color: inherit; text-decoration: none; transition: color .15s; }
#contact .page-intro a:hover, #contact .page-intro a:focus-visible { color: var(--blue); }

.work-card .work-card__meta a { display: inline; border: 0; background: none; padding: 0; transform: none; }
.work-card .work-card__meta a:hover { transform: none; }

/* Technical pass: hero H1, title arrows, carousel dots, form note */
.hero__quote .hero__h1 { font: inherit; margin: 0; color: inherit; letter-spacing: inherit; }
.work-card .work-card__meta h3 a::after { content: "↗"; content: "↗" / ""; display: inline-block; margin-left: .25em; font-size: .7em; vertical-align: .2em; opacity: .55; transition: opacity .15s; }
.work-card .work-card__meta h3 a:hover::after { opacity: 1; }
.work-carousel__dots { display: flex; gap: 2px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.work-carousel__dot { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.work-carousel__dot::before { content: ""; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--black); background: transparent; transition: background-color .2s, transform .2s; }
.work-carousel__dot[aria-current="true"]::before { background: var(--lime); transform: scale(1.2); }
.work-carousel__dot:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-radius: 50%; }
.form-note { font-size: .85em; opacity: .9; margin: 1em 0 0; }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: .18em; }
.form-note a:hover, .form-note a:focus-visible { color: var(--lime); }

.service-format { font-weight: 600; margin: .8em 0 0; }
.service-format span { background: var(--lime); padding: 0 .3em; }
.work-card .work-card__meta p a.is-blue { color: var(--blue); }
.work-card .work-card__meta p a.is-blue:hover, .work-card .work-card__meta p a.is-blue:focus-visible { text-decoration: underline; text-underline-offset: .18em; }

/* 404 and thank-you pages */
.page-404 main, .page-thanks main { min-height: 70vh; display: flex; align-items: center; }
.page-404 main { background: var(--blue); color: var(--white); }
.page-thanks main { background: var(--lime); color: var(--black); }
.page-404 .page-title, .page-thanks .page-title { font-family: var(--font); font-weight: 900; letter-spacing: -0.04em; line-height: .9; margin: 0; }
.page-404 .page-title { font-size: clamp(120px, 26vw, 400px); color: var(--white); }
.page-thanks .page-title { font-size: clamp(64px, 12vw, 200px); color: var(--black); }
.page-404 .page-intro, .page-thanks .page-intro { font-weight: 900; font-size: clamp(22px, 3vw, 52px); line-height: 1.15; letter-spacing: -0.01em; margin: .6em 0 1em; color: inherit; opacity: 1; }
.page-404 .btn { background: var(--lime); border-color: var(--lime); color: var(--black); }
.page-404 .btn:hover, .page-404 .btn:focus-visible { background: var(--white); border-color: var(--white); color: var(--black); }
.page-thanks .btn { background: var(--black); border-color: var(--black); color: var(--lime); }
.page-thanks .btn:hover, .page-thanks .btn:focus-visible { background: var(--white); border-color: var(--white); color: var(--black); }

.nowrap { white-space: nowrap; }
