/*
 * Pavla Pavelková – personal website
 * Palette: --main #0A111E (base), --plane #182949 (secondary sections),
 *          --yellow #FFD84D (links, buttons, claim highlight), --sky #99C5FD (accent).
 * Fonts (self-hosted, SIL OFL): Bricolage Grotesque (claims, buttons), Pavelkova Serif = subset of Bitter (headings),
 *          Pavelkova Mono = subset of IBM Plex Mono (eyebrows), DM Sans (body).
 */

/* One WOFF2 per face: Latin subset incl. Czech and Slovak diacritics.
   The range leaves ← and → to the fallback font on purpose. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pavelkova Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pavelkova-serif-400.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pavelkova Serif";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/pavelkova-serif-500.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pavelkova Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pavelkova-serif-700.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pavelkova Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/pavelkova-serif-italic-400.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pavelkova Serif";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/pavelkova-serif-italic-700.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pavelkova Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/pavelkova-mono-500.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Pavelkova Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/pavelkova-mono-600.woff2") format("woff2");
  unicode-range:
    U+0000-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2000-206F, U+20A0-20C0, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F,
    U+A720-A7FF, U+FEFF, U+FFFD;
}

:root {
  --main: #0a111e;
  --plane: #182949;
  --yellow: #ffd84d;
  --sky: #99c5fd;

  --text: #f1ede2;
  --white: #ffffff;
  --muted: #c3cdd9;
  --text-soft: rgba(241, 237, 226, 0.92);
  --ink-on-accent: var(--main);

  --line: rgba(241, 237, 226, 0.28);
  --sky-line: rgba(153, 197, 253, 0.55);

  --shadow: color-mix(in srgb, var(--main) 80%, transparent);
  --veil-main-0: color-mix(in srgb, var(--main) 0%, transparent);
  --veil-main-74: color-mix(in srgb, var(--main) 74%, transparent);
  --veil-main-96: color-mix(in srgb, var(--main) 96%, transparent);
  --veil-main-98: color-mix(in srgb, var(--main) 98%, transparent);

  --veil-contact-light: color-mix(in srgb, var(--main) 22%, transparent);
  --veil-contact-dense: color-mix(in srgb, var(--main) 90%, transparent);

  --font-claim: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-section: "Pavelkova Serif", Georgia, "Times New Roman", serif;
  --font-mono: "Pavelkova Mono", ui-monospace, "Courier New", monospace;
  --font-body: "DM Sans", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --rail-w: 212px;
  --pad-section: 96px;
  --pad-after-claim: 56px;
  --radius: 20px;

  --num-fs: calc(0.4375rem + 9px);
  --q-mark: 88px;
  --q-indent: 46px;

  --hl-bleed: min(0.2em, 20px);
  --hl-slant: 0.18em;

  --hl-size:
    var(--hl-slant) 100%, var(--hl-slant) 100%, calc(100% - 2 * var(--hl-slant) + 2px) 100%;
  --hl-pos: left center, right center, calc(var(--hl-slant) - 1px) center;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 20px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--main);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
}
ul,
ol {
  list-style: none;
}

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

section[id],
.clients[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.claim__title {
  font-family: var(--font-claim);
  font-weight: 700;
  font-size: min(clamp(calc(1.0625rem + 17px), 5vw, 3.25rem), 13vw);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 17ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2 {
  font-family: var(--font-section);
  font-weight: 500;
  font-size: min(clamp(calc(0.6875rem + 11px), 2.6vw, 2rem), 8.6vw);
  line-height: 1.25;
  letter-spacing: 0;
  max-width: 24ch;
  text-wrap: balance;
  margin-bottom: 20px;
}

.services__title {
  max-width: 34ch;
}

h3 {
  font-family: var(--font-section);
  font-weight: 400;
  letter-spacing: 0.02em;
  font-size: clamp(calc(0.5625rem + 9px), 1.6vw, 1.375rem);
  line-height: 1.3;
}

/* Shared mono label typography (eyebrows, scroll links, footer kicker). */
.eyebrow,
.claim__micro--link,
.section__scroll,
.support__kicker {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.75rem, 1.2vw, 0.85rem);
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--sky);
  margin-bottom: 16px;
}

.claim__micro--link {
  color: inherit;
  margin-bottom: 0;
}

.section__scroll-wrap {
  display: flex;
  justify-content: center;
}
.section__scroll {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  margin: clamp(30px, 5vh, 56px) auto 0;
  padding: 8px 12px;
  min-height: 44px;
  color: var(--sky);
  text-decoration: none;
  text-align: center;
}
.section__scroll:hover {
  color: var(--text);
}
.section__scroll:hover .section__scroll-text {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section__scroll-text {
  display: block;
}
.section__scroll-arrow {
  font-size: 1.15rem;
  line-height: 1;
}

.section__scroll-text,
.claim__micro--link {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.section__scroll:hover .section__scroll-text,
.section__scroll:focus-visible .section__scroll-text,
.claim__scroll:hover .claim__micro--link,
.claim__scroll:focus-visible .claim__micro--link {
  opacity: 1;
}
@media (hover: none) {
  .section__scroll-text,
  .claim__micro--link {
    opacity: 1;
  }
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 58ch;
}

.eyebrow,
.claim__micro--link,
.claim__sub,
h2,
h3,
.lede,
.section__scroll-text,
.service p,
.service__label,
.service__num,
.rq blockquote p,
.rq__insight,
.quote blockquote p,
.quote figcaption,
.pcard p,
.pcard__list li,
.clients__lead-logo,
.clients__name,
.clients__field,
.clients__run-end,
.pricing__row,
.pricing__sub,
.support__kicker,
.support__link,
.role__caption h3,
.contact__tel,
.contact__social-link,
.site-footer p,
.btn,
.nav-mobile a,
.site-nav a,
.brand__name {
  overflow-wrap: anywhere;
}

.text-link {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--yellow);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--yellow);
  color: var(--ink-on-accent);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

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

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

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 4px;
  z-index: 250;
  background: transparent;
  pointer-events: none;
}
.progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--sky);
  transform: scaleX(0);
  transform-origin: left;
}

/* WebKit clips cloned backgrounds with a negative inline margin, so the bleed uses a relative shift. */
.hl {
  --hl-paint: var(--sky);
  color: var(--ink-on-accent);
  position: relative;
  inset-inline-start: calc(-1 * var(--hl-bleed));
  margin-inline: 0 calc(-1 * var(--hl-bleed));
  padding: 0.04em var(--hl-bleed) 0.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-color: transparent;
  background-image:
    linear-gradient(
      to bottom right,
      transparent calc(50% - 0.5px),
      var(--hl-paint) calc(50% + 0.5px)
    ),
    linear-gradient(to top left, transparent calc(50% - 0.5px), var(--hl-paint) calc(50% + 0.5px)),
    linear-gradient(var(--hl-paint), var(--hl-paint));
  background-repeat: no-repeat;
  background-position: var(--hl-pos);
  background-size: var(--hl-size);
}
.claim .hl {
  --hl-paint: var(--yellow);
}

h2:not(.claim__title):has(.hl) {
  padding-inline-end: var(--hl-bleed);
}

.js .hl {
  color: inherit;
  background-size:
    0 100%,
    0 100%,
    0 100%;
  background-position:
    left center,
    left center,
    var(--hl-slant) center;
}
.js .hl.is-in {
  color: var(--ink-on-accent);
  background-size: var(--hl-size);
  background-position: var(--hl-pos);
  transition:
    background-size 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
    background-position 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s,
    color 0.45s ease 0.6s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-claim);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 999px;
  padding: 13px 28px;
  border: 2px solid var(--text);
  min-height: 44px;
  cursor: pointer;
  transition:
    background-color 0.25s,
    color 0.25s,
    border-color 0.25s,
    transform 0.2s;
}
.btn--primary {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink-on-accent);
}

.contact__whatsapp {
  overflow-wrap: normal;
}

.nobr {
  white-space: nowrap;
}
.btn--primary:hover {
  background: var(--text);
  border-color: var(--text);
  transform: translateY(-2px);
}

.announce {
  background: var(--plane);
  font-size: 0.9rem;
}
.announce a {
  display: block;
  padding: 9px 0;
  text-decoration: none;
  color: var(--text-soft);
}
.announce strong {
  font-family: var(--font-claim);
  font-weight: 700;
  color: var(--yellow);
}

.announce a:hover,
.announce a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--veil-main-96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px var(--shadow);
}
.site-header__in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand__avatar {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid var(--sky);
  border-radius: 50%;
  background: var(--sky);
}
.brand__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand__name {
  font-family: var(--font-claim);
  font-weight: 700;
  min-width: 0;
  line-height: 1.15;
}

.site-nav ul {
  display: flex;
  gap: 24px;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-block: 8px;
  position: relative;
}

.site-header__cta {
  border-color: var(--yellow);
  background: transparent;
  color: var(--yellow);
}
.site-header__cta:hover,
.site-header__cta:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink-on-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle[hidden] {
  display: none;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-mobile {
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
  background: var(--main);
}
.nav-mobile ul {
  padding: 18px var(--gutter) 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
}
.nav-mobile a:not(.btn) {
  display: block;
  padding: 12px 4px;
  text-decoration: none;
  font-family: var(--font-claim);
  font-weight: 700;
  font-size: 1.15rem;
}
.nav-mobile .btn {
  margin-top: 12px;
}

@media (max-width: 1023px) {
  .site-nav,
  .site-header__cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }

  .site-header:has(.nav-toggle:not([hidden])) .nav-mobile {
    position: absolute;
    top: 100%;
    right: 0;
    width: max-content;
    min-width: 50vw;
    max-width: calc(100vw - var(--gutter));
  }

  .site-header:has(.nav-toggle[hidden]) {
    position: static;
  }
  .site-header:has(.nav-toggle[hidden]) .nav-mobile {
    max-height: none;
    overflow: visible;
  }
  .site-header:has(.nav-toggle[hidden]) .nav-mobile ul {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 18px;
    padding-block: 12px 16px;
  }

  .site-header:has(.nav-toggle[hidden]) .nav-mobile li {
    min-width: 0;
  }
  .site-header:has(.nav-toggle[hidden]) .nav-mobile a:not(.btn) {
    padding: 6px 0;
    font-size: 1rem;
    overflow-wrap: anywhere;
  }
  .site-header:has(.nav-toggle[hidden]) .nav-mobile .btn {
    margin-top: 4px;
  }

  .claim:not(.claim--hero) {
    min-height: clamp(400px, 60svh, 640px);
    padding-block: 64px 104px;
  }
}

@media (max-width: 400px) {
  .site-header__in {
    gap: 8px;
  }
  .brand {
    gap: 8px;
    min-width: 0;
  }
  .brand__avatar {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .brand__name {
    font-size: 0.847em;
  }
}
@media (max-width: 340px) {
  .brand__name {
    font-size: 0.772em;
  }
}

@media (min-width: 1024px) {
  :root {
    --header-h: 0px;
  }
  body {
    padding-left: var(--rail-w);
  }
  .progress {
    left: var(--rail-w);
  }
  .skip-link:focus {
    left: calc(var(--rail-w) + 12px);
  }
  .nav-mobile {
    display: none;
  }
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    height: 100dvh;
    background: var(--main);
    backdrop-filter: none;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }
  .site-header.is-scrolled {
    border-bottom: 0;
    box-shadow: none;
  }
  .site-header__in {
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    max-width: none;
    padding: 26px 16px 22px;
    gap: 26px;
  }
  .brand {
    margin-right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-inline: 12px;
  }
  .brand__avatar {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
  }
  .site-nav {
    flex: 1;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 2px;
  }
  .site-nav a {
    display: block;
    padding: 9px 12px;
    border-left: 3px solid transparent;
    border-radius: 0 8px 8px 0;
    transition:
      border-color 0.2s,
      background-color 0.2s;
  }
  .site-nav a:hover {
    border-left-color: var(--yellow);
    background: color-mix(in srgb, var(--text) 6%, transparent);
  }

  .site-nav a.is-active {
    border-left-color: var(--yellow);
    color: var(--yellow);
    background: transparent;
  }
  .site-header__cta {
    padding-inline: 14px;
    font-size: 0.95rem;
  }
}

.claim,
.quotes,
.joy,
.contact,
.site-footer {
  background-color: var(--main);
}

.who,
.services,
.research,
.process {
  background-color: var(--plane);
}

.who,
.services,
.research,
.process,
.quotes,
.joy,
.contact {
  padding-block: var(--pad-section);
}

.claim + section {
  padding-top: var(--pad-after-claim);
}

@media (max-width: 767px) {
  :root {
    --pad-section: 72px;
    --pad-after-claim: 48px;
  }
  .research:has(.section__scroll),
  .process:has(.section__scroll),
  .quotes:has(.section__scroll),
  .joy:has(.section__scroll) {
    padding-bottom: 28px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-section: 144px;
    --pad-after-claim: 76px;
  }
}

@media (min-width: 768px) {
  .joy:has(+ .contact) {
    padding-bottom: 48px;
  }
}
@media (max-width: 1279px) {
  .joy + .contact {
    padding-top: 32px;
  }
}

.quote,
.pcard,
.contact__card,
.role,
.who__media img {
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
  box-shadow: none;
}
.quote,
.pcard,
.contact__card {
  background: var(--plane);
}

.claim {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: clamp(460px, 82svh, 860px);
  padding-block: clamp(70px, 11vh, 130px);
}

.claim--hero {
  min-height: 0;
  align-content: end;
  padding-top: clamp(40px, 7vh, 88px);
  padding-bottom: 0;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: 8px;
}
.hero__text {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero__face {
  justify-self: center;
  width: min(100%, 640px);
  aspect-ratio: 2 / 1;
  pointer-events: none;
}
.hero__face picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero__face-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
}

/* Centred in the text column on purpose: centred on the page it would overlap the portrait. */
.claim--hero .claim__scroll {
  position: static;
  transform: none;
  width: max-content;
  margin: clamp(18px, 3vh, 32px) auto 0;
}
@media (min-width: 1280px) {
  .claim--hero {
    padding-top: clamp(48px, 8vh, 96px);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) min(62%, 700px);
    column-gap: 40px;
    align-items: end;
  }

  .hero__text {
    align-self: center;
    padding-bottom: clamp(32px, 5vh, 56px);
  }
  .hero__face {
    justify-self: end;
    width: 100%;
  }
}

.claim > .container {
  width: 100%;
}

.claim__sub {
  margin-top: clamp(18px, 3vh, 30px);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  color: var(--muted);
  max-width: 46ch;
}

.claim__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2.5vh, 26px);
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--sky);
  text-decoration: none;
  text-align: center;
  max-width: 100%;
}
.claim__scroll:hover {
  color: var(--text);
}
.claim__scroll:hover .claim__micro--link {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.claim__scroll-arrow {
  font-size: 1.15rem;
  line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .claim__scroll-arrow,
  .section__scroll-arrow {
    animation: scroll-hint 2.6s ease-in-out infinite;
  }
}
@keyframes scroll-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.72;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.kinetic .w {
  display: inline-block;
  white-space: nowrap;
}
.js .kinetic .w {
  opacity: 0;
  transform: translateY(0.6em);
}
.js .kinetic.is-in .w {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease var(--d, 0ms),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.6s ease var(--d, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

.who__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.who__media {
  margin: 0;
}
.who__media picture {
  display: block;
}
.who__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--main);
}
.who__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
@media (min-width: 900px) {
  .who__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
}

.services__list {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.service {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 34px 6px;
  border-bottom: 1px solid var(--line);
}

.service:last-child {
  border-bottom: 0;
}

.service__num,
.pcard__num {
  display: grid;
  place-items: center;
  width: var(--num-size, calc(var(--num-fs) * 2.875));
  height: var(--num-size, calc(var(--num-fs) * 2.875));
  border-radius: 50%;
  border: 1.5px solid var(--sky);
  color: var(--sky);
  font-family: var(--font-claim);
  font-weight: 700;
  font-size: var(--num-fs);
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.service h3 {
  margin-bottom: 8px;
  color: var(--sky);
  font-weight: 700;
  letter-spacing: 0;
}

.service p {
  color: var(--text-soft);
  max-width: 40ch;
}

.service__label {
  align-self: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.75rem, 1.1vw, 0.85rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
  padding-left: 16px;
  border-left: 1px solid var(--line);
}
.service__body {
  min-width: 0;
}

@media (max-width: 720px) {
  .service {
    grid-template-columns: calc(var(--num-fs) * 2.5 + 16px) 1fr;
  }
  .service__num {
    --num-size: calc(var(--num-fs) * 2.5);
  }
  .service__label {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 380px) {
  .service {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .service__label {
    grid-column: 1;
  }
}

.pricing {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.pricing__row {
  font-family: var(--font-claim);
  font-size: 1.15rem;
  font-weight: 500;
}
.pricing__row strong {
  font-weight: 800;
}
.pricing__row + .pricing__row {
  margin-top: 4px;
}
.pricing__sub {
  margin-top: 8px;
  color: var(--muted);
}

.research__grid {
  margin-top: clamp(30px, 5vh, 50px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
@media (min-width: 640px) {
  .research__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 640px) and (max-width: 1279px) {
  .research__grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (min-width: 1280px) {
  .research__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.rq {
  --quote-pad: 32px;
  position: relative;
  padding: 30px var(--quote-pad) 30px calc(var(--quote-pad) + var(--q-indent));
  background: var(--plane);
  border: 1px solid var(--sky-line);
  border-radius: var(--radius);
}

@media (max-width: 640px) {
  :root {
    --q-mark: 68px;
    --q-indent: 36px;
  }
}
.q-mark {
  position: absolute;
  font-family: var(--font-section);
  font-weight: 700;
  font-size: var(--q-mark);
  line-height: 1;
  color: var(--sky);
  pointer-events: none;
  user-select: none;
  transform: translateY(-0.62em);
}

.rq__mark {
  left: var(--quote-pad);
  top: 30px;
}
@media (max-width: 480px) {
  .rq {
    --quote-pad: 20px;
    padding-block: 26px;
  }
  .rq__mark {
    top: 26px;
  }
}
.rq blockquote p {
  font-family: var(--font-section);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--sky);
  max-width: none;
  text-wrap: pretty;
}
.rq__insight {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-soft);
  max-width: none;
}

.process__title {
  color: var(--text);
}

.process {
  --pcard-peek: 72px;
}
.process__stack {
  margin-top: 40px;
  display: grid;
  gap: 26px;
}
.pcard {
  --pcard-pad-x: 34px;
  --pcard-pad-t: 30px;
  --pcard-pad-b: 34px;
  --pcard-node: calc(var(--num-fs) * 2.875);
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--i) * var(--pcard-peek));
  padding: var(--pcard-pad-t) var(--pcard-pad-x) var(--pcard-pad-b);
  display: grid;
  grid-template-columns: var(--pcard-node) minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 10px;
  align-items: start;
}
.pcard > * {
  grid-column: 2;
}

.pcard__num {
  --num-size: var(--pcard-node);
  grid-column: 1;
  grid-row: 1;
}

.pcard h3 {
  grid-row: 1;
  align-self: center;
  color: var(--sky);
  font-weight: 700;
  letter-spacing: 0;
}

.pcard__num::before,
.pcard__num::after {
  content: "";
  position: absolute;
  left: calc(var(--pcard-pad-x) + var(--pcard-node) / 2 - 1px);
  width: 2px;
  background: var(--sky);
  border-radius: 2px;
}
.pcard__num::before {
  top: 0;
  height: calc(var(--pcard-pad-t) - 10px);
}
.pcard__num::after {
  top: calc(var(--pcard-pad-t) + var(--pcard-node) + 10px);
  bottom: var(--pcard-pad-b);
}
.pcard:first-child .pcard__num::before {
  content: none;
}
.pcard:last-child .pcard__num::after {
  content: none;
}

.pcard p {
  color: var(--text-soft);
  max-width: 43ch;
}
.pcard__list {
  margin-top: 2px;
  display: grid;
  gap: 7px;
  max-width: 43ch;
}
.pcard__list li {
  color: var(--text-soft);
  padding-left: 22px;
  position: relative;
}

.pcard__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-soft);
}

@media (max-height: 500px) {
  .pcard {
    position: relative;
    top: auto;
  }
}

.process__stack::after {
  content: "";
  display: block;
  height: calc(var(--pcard-peek) - 26px);
}
.process .section__scroll {
  margin-top: 0;
}

@media (max-width: 560px) {
  .pcard {
    --pcard-pad-x: 22px;
    --pcard-pad-t: 24px;
    --pcard-pad-b: 26px;
    --pcard-node: calc(var(--num-fs) * 2.5);
    column-gap: 14px;
  }
}

@media (max-width: 380px) {
  .pcard {
    --pcard-pad-x: 16px;
    --pcard-node: calc(var(--num-fs) * 2.2667);
    column-gap: 10px;
  }

  :root {
    --num-fs: calc(0.375rem + 9px);
  }
  .service__num {
    --num-size: calc(var(--num-fs) * 2.2667);
  }
}

.quotes__grid {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.quote {
  --quote-pad: 32px;
  position: relative;
  padding: 30px var(--quote-pad) 30px calc(var(--quote-pad) + var(--q-indent));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.quote__mark {
  left: var(--quote-pad);
  top: 30px;
  color: var(--text);
}
.quote blockquote p {
  font-family: var(--font-section);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08rem;
  line-height: 1.55;
}
.quote figcaption {
  margin-top: auto;
}
.quote figcaption strong {
  font-family: var(--font-section);
  font-weight: 500;
}
.quote figcaption span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}
@media (min-width: 801px) {
  .quote--wide {
    grid-column: 1 / -1;
  }
}
@media (max-width: 800px) {
  .quotes__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .quote {
    --quote-pad: 20px;
    padding-block: 26px;
  }
  .quote__mark {
    top: 26px;
  }
}

.clients__lead {
  margin-top: clamp(28px, 4vw, 40px);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 3.4vw, 40px);
}

.clients__lead li {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@media (min-width: 560px) {
  .clients__lead li {
    flex: 1 1 40%;
  }
}
@media (min-width: 1280px) {
  .clients__lead li {
    flex: 1 1 0;
    justify-content: center;
  }
}

.clients__lead-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  color: var(--white);
  opacity: 0.85;
}
svg.clients__lead-logo {
  fill: currentColor;
}

#logo-vsb .vsb-fill {
  fill: currentColor;
}

.clients__lead-logo--tall {
  max-height: 44px;
}
.clients__lead-logo--wide {
  max-height: 26px;
}
.clients__lead-logo--xwide {
  max-height: 20px;
}
.clients__run {
  margin-top: clamp(48px, 7vw, 72px);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.clients__name {
  font-weight: 400;
  color: var(--muted);
}
.clients__field {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.clients__field::before {
  content: "· ";
  font-weight: 400;
}
.clients__run-end {
  color: var(--muted);
}
@media (max-width: 767px) {
  .clients__run > li {
    flex-basis: 100%;
  }
}

/* Masonry via CSS columns; it only works while the list is display: block, not grid. */
.roles {
  margin-top: 44px;
  display: block;
  columns: 2;
  column-gap: 18px;
}
.role-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 18px;
  min-width: 0;
}

.role {
  position: relative;
  overflow: hidden;
  background: var(--main);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, auto);
}

.role__media {
  position: static;
  display: block;
  grid-area: 1 / 1;
  align-self: start;
}
.role__media img {
  width: 100%;
  height: auto;
  filter: grayscale(0.85);
  transition:
    filter 0.45s,
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.role:hover .role__media img,
.role:focus-within .role__media img {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* The photo filter creates a stacking context, so the caption needs its own z-index. */
.role__caption {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  z-index: 1;
  --role-cap-pad: 20px;
  padding: var(--role-cap-pad) 22px;
  background: linear-gradient(
    180deg,
    var(--veil-main-0) 0,
    var(--veil-main-74) var(--role-cap-pad),
    var(--veil-main-96) calc(var(--role-cap-pad) + 24px),
    var(--veil-main-98) 100%
  );
  color: var(--text);
}
@media (hover: none) {
  .role__media img {
    filter: grayscale(0.35);
  }
}
@media (min-width: 1280px) {
  .roles {
    columns: 3;
  }
}
@media (max-width: 480px) {
  .roles {
    columns: 1;
  }

  .role__caption {
    --role-cap-pad: 16px;
    padding: var(--role-cap-pad) 16px;
  }
}

.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.contact__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}
.contact__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.contact__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    var(--veil-contact-light) 0%,
    var(--veil-contact-light) 30%,
    var(--veil-contact-dense) 52%,
    var(--veil-contact-dense) 100%
  );
}
.contact > .container {
  position: relative;
  z-index: 1;
}
.contact__media img {
  object-position: 0% 30%;
}
@media (min-width: 1280px) {
  .contact > .container > * {
    margin-left: 46%;
  }
  .contact .contact__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .contact__media img {
    object-position: -110px 30%;
  }
}
@media (max-width: 1279px) {
  .contact__media {
    position: static;
    inset: auto;
    width: calc(100% - 2 * var(--gutter));
    margin: 0 auto clamp(32px, 6vw, 48px);
  }
  .contact__media::after {
    content: none;
  }

  .contact {
    padding-bottom: calc(var(--pad-section) - 30px);
  }
  .contact__media picture {
    height: auto;
  }
  .contact__media img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 24% 40%;
    border: 1px solid var(--sky-line);
    border-radius: var(--radius);
  }
}
@media (min-width: 640px) and (max-width: 1279px) {
  .contact__media img {
    aspect-ratio: 16 / 9;
  }
}

/* minmax(0, …) keeps the long phone number from widening the columns. */
.contact__grid {
  margin-top: clamp(40px, 7vh, 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: start;
}

.contact__card {
  color: var(--text);
  padding: 40px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.contact__whatsapp {
  justify-self: start;
  text-align: center;
  text-wrap: balance;
}

.contact__mail,
.contact__tel {
  font-family: var(--font-claim);
  font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.contact__mail {
  color: var(--yellow);
}

.contact__social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 10px;
}
.contact__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.2s;
}
.contact__social-link:hover {
  color: var(--yellow);
}
.contact__social-icon {
  display: block;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
@media (max-width: 1279px) {
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .contact__card {
    padding: 30px 22px;
    min-width: 0;
  }
}

.site-footer {
  padding: 30px 0 34px;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.privacy-page {
  padding-block: var(--pad-section);
  background: var(--main);
}
.privacy {
  max-width: 68ch;
  color: var(--text-soft);
  font-size: 1rem;
}
.privacy h1 {
  font-family: var(--font-section);
  font-weight: 500;
  font-size: clamp(calc(0.75rem + 12px), 2.6vw, 2rem);
  line-height: 1.25;
  margin-bottom: 24px;
  color: var(--text);
}
.privacy p + p {
  margin-top: 12px;
}
.privacy__back {
  margin-top: 32px;
}

.support {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.support__kicker {
  color: var(--sky);
}

.support__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.support__list li {
  display: flex;
  align-items: center;
}
.support__link {
  font-size: 0.92rem;
}

.support__link--logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  text-decoration: none;
}
.support__logo {
  display: block;
  height: 24px;
  width: auto;
  max-width: 100%;
  opacity: 0.82;
  transition: opacity 0.2s;
}
.support__link--logo:hover .support__logo,
.support__link--logo:focus-visible .support__logo {
  opacity: 1;
}

.support__logo--badge {
  height: 36px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .js .reveal,
  .js .kinetic .w {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .hl {
    color: var(--ink-on-accent) !important;
    background-size: var(--hl-size) !important;
    background-position: var(--hl-pos) !important;
  }
  .role:hover .role__media img,
  .role:focus-within .role__media img {
    transform: none !important;
  }
  .btn--primary:hover {
    transform: none !important;
  }
  .progress {
    display: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@media (forced-colors: active) {
  .hl,
  .js .hl,
  .js .hl.is-in {
    color: CanvasText;
    background-image: none;
    background-color: Canvas;
    outline: 2px solid CanvasText;
    outline-offset: -1px;
  }
  .contact__media::after {
    background: Canvas;
  }

  .hero__face {
    display: none;
  }
  .role__caption {
    background: Canvas;
  }
  .btn {
    border: 2px solid ButtonText;
  }
  .pcard__num::before,
  .pcard__num::after {
    background: CanvasText;
  }
  .quote,
  .pcard,
  .contact__card {
    border-color: CanvasText;
  }

  .support__link--logo,
  .clients__lead li {
    forced-color-adjust: none;
    background: var(--main);
    border: 1px solid ButtonText;
    padding: 4px 10px;
  }
  .clients__lead-logo {
    forced-color-adjust: none;
    color: var(--white);
    opacity: 1;
  }
  .support__logo {
    forced-color-adjust: none;
    opacity: 1;
  }
  .progress {
    display: none;
  }
}

@media print {
  .js .reveal,
  .js .reveal.is-in,
  .js .kinetic .w,
  .js .kinetic.is-in .w {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .claim__scroll-arrow,
  .section__scroll-arrow {
    animation: none !important;
  }
  .role__media img {
    transition: none !important;
    filter: grayscale(0.85) !important;
  }

  .pcard {
    position: relative !important;
    top: auto !important;
    box-shadow: none;
    break-inside: avoid;
  }
  .process__stack {
    display: block;
  }
  .process__stack > * + * {
    margin-top: 26px;
  }

  .site-header,
  .nav-mobile,
  .progress,
  .skip-link {
    display: none !important;
  }
  body {
    padding-left: 0 !important;
  }

  .role,
  .contact__card,
  .quote,
  .rq {
    box-shadow: none;
  }
  section[id] {
    break-inside: auto;
  }

  .privacy-page,
  .privacy {
    max-width: none;
    color: #000;
    background: #fff;
  }
  .privacy h1,
  .privacy a {
    color: #000;
  }
  .privacy h1 {
    break-after: avoid;
  }
  .privacy p {
    orphans: 3;
    widows: 3;
  }
}
